1 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
3 * nios2-tdep.c (wild_insn): Delete.
4 (profiler_insn, irqentry_insn): Delete.
5 (nios2_match_sequence): Delete.
6 (nios2_analyze_prologue): Update comments. Remove matching
7 of obsolete profiler_insn and irqentry_insn sequences.
9 2014-11-05 Alan Modra <amodra@gmail.com>
11 * charset.c (convert_between_encodings): Shrink obstack using
13 * minsyms.c (install_minimal_symbols): Likewise.
14 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
15 to char* before doing pointer arithmetic.
17 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
19 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
21 2014-11-04 Pedro Alves <palves@redhat.com>
23 * breakpoint.c (breakpoint_thread_match): Delete function.
24 * breakpoint.h (breakpoint_thread_match): Delete declaration.
26 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
29 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
30 the method args also under EVAL_SKIP when evaluating method
31 calls under EVAL_SKIP.
33 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
35 * dwarf2loc.c (read_pieced_value): Do big endian
36 processing only if gdb_regnum is not -1.
37 (write_pieced_value): Ditto.
39 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
41 * arm-linux-tdep.c (arm_linux_init_abi): Use
42 info.byte_order_for_code to choose endianity of breakpoint
43 instructions snippets.
45 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
47 * arm-tdep.c (extract_arm_insn): Use
48 gdbarch_byte_order_for_code to read arm instruction.
50 2014-11-02 Doug Evans <xdje42@gmail.com>
52 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
54 2014-11-02 Doug Evans <xdje42@gmail.com>
56 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
57 main_subfile before returning.
59 2014-10-31 Doug Evans <xdje42@gmail.com>
61 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
62 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
64 2014-10-31 Doug Evans <xdje42@gmail.com>
66 * valops.c (value_cast_pointers): Fix whitespace.
67 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
70 2014-10-30 Doug Evans <dje@google.com>
72 * NEWS: Mention ability add attributes to gdb.Objfile and
73 gdb.Progspace objects.
74 * python/py-objfile.c (objfile_object): New member dict.
75 (objfpy_dealloc): Py_XDECREF dict.
76 (objfpy_initialize): Initialize dict.
77 (objfile_getset): Add __dict__.
78 (objfile_object_type): Set tp_dictoffset member.
79 * python/py-progspace.c (progspace_object): New member dict.
80 (pspy_dealloc): Py_XDECREF dict.
81 (pspy_initialize): Initialize dict.
82 (pspace_getset): Add __dict__.
83 (pspace_object_type): Set tp_dictoffset member.
85 2014-10-30 Yao Qi <yao@codesourcery.com>
87 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
88 replace '\\' with '\\\\'.
90 2014-10-29 Joel Brobecker <brobecker@adacore.com>
94 2014-10-29 Pedro Alves <palves@redhat.com>
97 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
98 instead of assuming a thread with a stepping range is always
101 2014-10-29 Pedro Alves <palves@redhat.com>
104 * event-top.c (change_line_handler): Call
105 gdb_rl_callback_handler_remove instead of
106 rl_callback_handler_remove.
107 (callback_handler_installed): New global.
108 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
109 (gdb_rl_callback_handler_reinstall): New functions.
110 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
111 gdb_rl_callback_handler_install instead of
112 rl_callback_handler_remove and rl_callback_handler_install.
113 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
114 instead of rl_callback_handler_remove.
115 * event-top.h (gdb_rl_callback_handler_remove)
116 (gdb_rl_callback_handler_install)
117 (gdb_rl_callback_handler_reinstall): New declarations.
118 * infrun.c (reinstall_readline_callback_handler_cleanup): New
120 (fetch_inferior_event): Install it.
121 * top.c (gdb_readline_wrapper_line) Call
122 gdb_rl_callback_handler_remove instead of
123 rl_callback_handler_remove.
124 (gdb_readline_wrapper_cleanup): Don't call
125 rl_callback_handler_install.
127 2014-10-29 Pedro Alves <palves@redhat.com>
129 * event-top.c (command_line_handler): Clear the first byte of
130 linebuffer, when it is first allocated.
132 2014-10-29 Pedro Alves <palves@redhat.com>
134 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
137 2014-10-29 Pedro Alves <palves@redhat.com>
141 * tui/tui-interp.c (tui_is_toplevel): Delete global.
142 (tui_allowed_p): Delete function.
143 * tui/tui.c: Include "interps.h".
144 (tui_enable): Don't use tui_allowed_p. Error out here with
145 detailed error messages if the TUI is the top level interpreter,
146 or if output is not a terminal. Use newterm instead of initscr,
147 and error out if initializing the terminal fails. Also error out if
148 the terminal doesn't support cursor addressing.
149 * tui/tui.h (tui_allowed_p): Delete declaration.
151 2014-10-29 Joel Brobecker <brobecker@adacore.com>
153 * arm-tdep.c (arm_skip_stack_protector): Return early if
154 address loaded by first "ldr" instruction does not have
155 a corresponding minimal symbol. Update comment.
157 2014-10-29 Yao Qi <yao@codesourcery.com>
159 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
160 loaded address correctly of ldr instruction.
162 2014-10-28 Pedro Alves <palves@redhat.com>
165 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
167 * infrun.c (resume) <stepping breakpoint instruction>: Set the
168 thread's stepped_breakpoint field. Skip if reverse debugging.
170 (init_thread_stepping_state, handle_signal_stop): Clear the
171 thread's stepped_breakpoint field.
173 2014-10-27 Pedro Alves <palves@redhat.com>
175 * remote.c (remote_thread_alive): New, factored out from ...
176 (remote_thread_alive): ... this.
177 (remote_update_thread_list): Bail out before deleting threads if
178 the target returned an empty list, and, the current thread has a
181 2014-10-27 Pedro Alves <palves@redhat.com>
183 * infrun.c (handle_signal_stop): Also skip handlers when a random
184 signal arrives while handling a "stepi" or a "nexti". Set the
185 thread's 'step_after_step_resume_breakpoint' flag.
187 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
189 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
190 (arm_record_ld_st_imm_offset): Reimplement to cover all
191 load/store cases for ARM opcode 010.
192 (arm_record_ld_st_multiple): Reimplement to cover all
193 load/store cases for ARM opcode 100.
195 2014-10-26 Doug Evans <xdje42@gmail.com>
197 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
199 2014-10-26 Doug Evans <xdje42@gmail.com>
201 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
202 parameter "kind" to "block_index".
203 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
205 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
207 2014-10-26 Doug Evans <xdje42@gmail.com>
209 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
211 2014-10-26 Doug Evans <xdje42@gmail.com>
213 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
216 2014-10-26 Doug Evans <xdje42@gmail.com>
218 * parser-defs.h (block_found): Move decl from here ...
219 * symtab.h (block_found): ... to here.
221 2014-10-26 Doug Evans <xdje42@gmail.com>
223 * symtab.h (struct field_of_this_result): Fix typo in comment.
224 (lookup_symbol_in_language): Move function comment here.
225 (lookup_symbol): Improve function comment.
226 (basic_lookup_symbol_nonlocal): Ditto.
227 (lookup_symbol_static, lookup_symbol_global): Ditto.
228 (lookup_symbol_aux_block): Ditto.
229 (lookup_language_this): Add function comment.
230 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
232 (lookup_block_symbol): Improve function comment.
233 (lookup_struct): Fix capitalization in function comment.
234 (lookup_transparent_type): Add function comment.
235 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
236 Improve function comment.
237 (lookup_objfile_from_block): Add function comment.
238 * symtab.c (lookup_symbol_in_language): Update function comment.
239 (lookup_symbol, lookup_language_this): Ditto.
240 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
241 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
242 (basic_lookup_symbol_nonlocal): Ditto.
243 (lookup_symbol_static, lookup_symbol_global): Ditto.
244 (lookup_transparent_type, lookup_block_symbol): Ditto.
246 2014-10-25 Doug Evans <xdje42@gmail.com>
248 * symtab.c (types_info): Delete forward decl.
249 (functions_info, variables_info, sources_info): Ditto.
250 (_initialize_symtab): Rewrite forward decl to use
251 initialize_file_ftype.
253 2014-10-25 Doug Evans <xdje42@gmail.com>
255 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
257 2014-10-25 Doug Evans <xdje42@gmail.com>
259 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
260 of local var child_die.
262 2014-10-24 Don Breazeal <donb@codesourcery.com>
264 * infrun.c (follow_fork_inferior): Update fork message printing
265 to use target_terminal_ours_for_output instead of
266 target_terminal_ours, to use _() for all format strings, to print
267 "vfork" instead of "fork" for vforks, and to add a detach message.
268 (handle_vfork_child_exec_or_exit): Update message printing to use
269 target_terminal_ours_for_output instead of target_terminal_ours, to
270 use _() for all format strings, and to fix some formatting.
272 2014-10-24 Pedro Alves <palves@redhat.com>
274 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
275 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
276 * config/vax/vax.mh: Delete.
277 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
278 obsolete configurations section.
279 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
280 * vax-nat.c: Delete file.
282 2014-10-24 Pedro Alves <palves@redhat.com>
284 * NEWS (Removed targets): Add OS/arch column.
286 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
288 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
289 on the arg type of a constructor only if it is of reference type.
291 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
293 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
294 accessors and constants from nios2 opcodes update.
295 (nios2_get_next_pc): Likewise.
297 2014-10-19 Doug Evans <xdje42@gmail.com>
299 * gdbthread.h (set_running): Fix comment.
300 (set_executing, finish_thread_state): Fix comment.
302 2014-10-18 Doug Evans <xdje42@gmail.com>
304 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
306 2014-10-17 Doug Evans <dje@google.com>
308 * NEWS: Mention new event gdb.clear_objfiles.
309 * python/py-event.h (emit_clear_objfiles_event): Clear
310 * python/py-events.h (events_object): New member clear_objfiles.
311 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
313 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
314 emit clear_objfiles event.
315 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
317 (emit_clear_objfiles_event): New function.
318 (clear_objfiles): New event.
319 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
321 * python/python.c (_initialize_python): Call
322 gdbpy_initialize_clear_objfiles_event.
324 2014-10-17 Doug Evans <dje@google.com>
326 * NEWS: Mention new gdb.Objfile.progspace attribute.
327 * python/py-objfile.c (objfpy_get_progspace): New function.
328 (objfile_getset): New entry for "progspace".
330 2014-10-17 Pedro Alves <palves@redhat.com>
333 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
334 returns a copy of the input.
335 (run_command_1, continue_command, step_1, jump_command)
336 (signal_command, until_command, advance_command, finish_command)
337 (attach_command): Adjust and install a cleanup to free the
340 2014-10-17 Pedro Alves <palves@redhat.com>
343 * infcmd.c (continue_1): If continuing all threads in the
344 foreground, make sure the inferior's terminal settings are put in
347 2014-10-17 Pedro Alves <palves@redhat.com>
350 * annotate.c (annotate_breakpoints_invalid): Use
351 target_terminal_our_for_output instead of target_terminal_ours.
352 Give back the terminal to the target.
353 (annotate_frames_invalid): Likewise.
355 2014-10-17 Pedro Alves <palves@redhat.com>
357 * target.c (enum terminal_state): New enum.
358 (terminal_state): New global.
359 (target_terminal_init): New function.
360 (target_terminal_inferior): Skip if inferior already owns the
362 (target_terminal_ours, target_terminal_ours_for_output): New
364 * target.h (target_terminal_init): Convert to function prototype.
365 (target_terminal_ours_for_output): Convert to function prototype
367 (target_terminal_ours): Convert to function prototype and tweak
369 * windows-nat.c (do_initial_windows_stuff): Call
370 target_terminal_init instead of child_terminal_init_with_pgrp.
372 2014-10-17 Pedro Alves <palves@redhat.com>
374 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
375 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
376 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
378 * NEWS: Mention that support for alpha*-*-osf* has been removed.
379 * ada-lang.h [__alpha__ && __osf__]
380 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
381 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
382 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
384 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
386 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
387 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
388 * configure: Regenerate.
389 * configure.ac: Remove references to osf.
390 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
391 section. Remove all other references to osf.
392 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
393 Remove all other references to osf.
394 * dec-thread.c: Delete file.
395 * defs.h (GDB_OSABI_OSF1): Delete.
396 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
398 * osabi.c (gdb_osabi_names): Delete "OSF/1".
399 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
401 (unconditionally_kill_inferior)
402 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
403 * solib-osf.c: Delete file.
405 2014-10-17 Pedro Alves <palves@redhat.com>
407 * remote.c (clear_threads_listing_context): Move higher up, out of
408 the HAVE_LIBEXPAT guard.
410 2014-10-16 Tristan Gingold <gingold@adacore.com>
412 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
413 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
416 2014-10-15 Pedro Alves <palves@redhat.com>
418 * dec-thread.c (dec_thread_count_gdb_threads)
419 (dec_thread_add_gdb_thread): Delete.
420 (dec_thread_update_thread_list): Delete.
421 (dec_thread_find_new_threads): Rename to ...
422 (dec_thread_update_thread_list): ... this. Delete GDB-size
423 threads that are no longer found in dec_thread_list.
424 (resync_thread_list): Delete.
425 (dec_thread_wait): Call dec_thread_update_thread_list instead of
428 2014-10-15 Pedro Alves <palves@redhat.com>
430 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
431 * remote.c (remote_update_thread_list): Skip calling prune_threads
432 if any thread listing method is supported, and instead walk over
433 the set of remote threads listed, deleting those that are not
434 found in GDB's thread list.
436 2014-10-15 Pedro Alves <palves@redhat.com>
438 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
439 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
440 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
441 (bsd_uthread_target): Adjust.
442 * corelow.c (core_open): Adjust.
443 * dec-thread.c (dec_thread_find_new_threads): Update comment.
444 (dec_thread_update_thread_list): New function.
445 (init_dec_thread_ops): Adjust.
446 * gdbthread.h (prune_threads): New declaration.
447 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
448 (thread_db_update_thread_list): ... this. Call prune_threads.
449 (init_thread_db_ops): Adjust.
450 * nto-procfs.c (procfs_find_new_threads): Rename to ...
451 (procfs_update_thread_list): ... this. Call prune_threads.
452 (procfs_attach, procfs_create_inferior, init_procfs_targets):
454 * obsd-nat.c (obsd_find_new_threads): Rename to ...
455 (obsd_update_thread_list): ... this. Call prune_threads.
456 (obsd_add_target): Adjust.
457 * procfs.c (procfs_target): Adjust.
458 (procfs_notice_thread): Update comment.
459 (procfs_find_new_threads): Rename to ...
460 (procfs_update_thread_list): ... this. Call prune_threads.
461 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
463 (ravenscar_wait): Adjust.
464 (ravenscar_find_new_threads): Rename to ...
465 (ravenscar_update_thread_list): ... this. Call prune_threads.
466 (init_ravenscar_thread_ops): Adjust.
467 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
468 (record_btrace_update_thread_list): ... this. Adjust comment.
469 (init_record_btrace_ops): Adjust.
470 * remote.c (remote_threads_info): Rename to ...
471 (remote_update_thread_list): ... this. Call prune_threads.
472 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
474 * sol-thread.c (check_for_thread_db): Adjust.
475 (sol_find_new_threads_callback): Rename to ...
476 (sol_update_thread_list_callback): ... this.
477 (sol_find_new_threads): Rename to ...
478 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
479 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
480 * target-delegates.c: Regenerate.
481 * target.c (target_find_new_threads): Rename to ...
482 (target_update_thread_list): ... this.
483 * target.h (struct target_ops): Rename to_find_new_threads field
484 to to_update_thread_list.
485 (target_find_new_threads): Rename to ...
486 (target_update_thread_list): ... this.
487 * thread.c (prune_threads): Make extern.
488 (update_thread_list): Adjust.
490 2014-10-15 Pedro Alves <palves@redhat.com>
492 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
493 Add describing comment. Return -1 if the qL packet is not
495 (struct thread_item, thread_item_t): Move higher up in
496 the file. Add comments.
497 (struct threads_parsing_context): Move higher up in
498 the file, add comments, and remote to ...
499 (struct threads_listing_context): ... this.
500 (remote_newthread_step): Don't add the thread to GDB's thread
501 database here. Instead push it to the thread_listing_context
503 (remote_find_new_threads): Rename to ...
504 (remote_get_threads_with_ql): ... this. Add target_ops and
505 targets_listing_context parameters. Pass down context.
506 (start_thread): Adjust.
507 (clear_threads_parsing_context): Rename to ...
508 (clear_threads_listing_context): ... this.
509 (remote_get_threads_with_qxfer): New, with parts salvaged from old
511 (remote_get_threads_with_qthreadinfo): Ditto.
512 (remote_threads_info): Reimplement.
514 2014-10-15 Pedro Alves <palves@redhat.com>
516 * infrun.c (resume): Don't force displaced-stepping for all
517 single-steps on software single-stepping archs.
519 2014-10-15 Pedro Alves <palves@redhat.com>
521 * breakpoint.c (single_step_breakpoints): Delete global.
522 (insert_single_step_breakpoint): Adjust to store the breakpoint
523 pointer in the current thread.
524 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
525 (cancel_single_step_breakpoints): Delete functions.
526 (breakpoint_has_location_inserted_here): Make extern.
527 (single_step_breakpoint_inserted_here_p): Adjust to walk the
529 * breakpoint.h (breakpoint_has_location_inserted_here): New
531 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
532 (cancel_single_step_breakpoints): Remove declarations.
533 * gdbthread.h (struct thread_control_state)
534 <single_step_breakpoints>: New field.
535 (delete_single_step_breakpoints)
536 (thread_has_single_step_breakpoints_set)
537 (thread_has_single_step_breakpoint_here): New declarations.
538 * infrun.c (follow_exec): Also clear the single-step breakpoints.
539 (singlestep_breakpoints_inserted_p, singlestep_ptid)
540 (singlestep_pc): Delete globals.
541 (infrun_thread_ptid_changed): Remove references to removed
543 (resume_cleanups): Delete the current thread's single-step
545 (maybe_software_singlestep): Remove references to removed globals.
546 (resume): Adjust to use thread_has_single_step_breakpoints_set and
547 delete_single_step_breakpoints.
548 (init_wait_for_inferior): Remove references to removed globals.
549 (delete_thread_infrun_breakpoints): Delete the thread's
550 single-step breakpoints too.
551 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
552 single-step breakpoints here.
553 (delete_stopped_threads_single_step_breakpoints): New function.
554 (adjust_pc_after_break): Adjust to use
555 thread_has_single_step_breakpoints_set.
556 (handle_inferior_event): Remove references to removed globals.
557 Use delete_stopped_threads_single_step_breakpoints.
558 (handle_signal_stop): Adjust to per-thread single-step
559 breakpoints. Swap test order to do cheaper tests first.
560 (switch_back_to_stepped_thread): Extend debug output. Remove
561 references to removed globals.
562 * record-full.c (record_full_wait_1): Adjust to per-thread
563 single-step breakpoints.
564 * thread.c (delete_single_step_breakpoints)
565 (thread_has_single_step_breakpoints_set)
566 (thread_has_single_step_breakpoint_here): New functions.
567 (clear_thread_inferior_resources): Also delete the thread's
568 single-step breakpoints.
570 2014-10-15 Pedro Alves <palves@redhat.com>
572 * thread.c (delete_thread_breakpoint): New function.
573 (delete_step_resume_breakpoint)
574 (delete_exception_resume_breakpoint): Use it.
575 (delete_at_next_stop): New function.
576 (clear_thread_inferior_resources): Use delete_at_next_stop.
578 2014-10-15 Pedro Alves <palves@redhat.com>
580 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
581 (breakpoint_inserted_here_p): ... here. Remove special case for
582 software single-step breakpoints.
583 (find_non_raw_software_breakpoint_inserted_here): Inline ...
584 (software_breakpoint_inserted_here_p): ... here. Remove special
585 case for software single-step breakpoints.
586 (bp_target_info_copy_insertion_state)
587 (deprecated_insert_raw_breakpoint)
588 (deprecated_remove_raw_breakpoint): Delete functions.
589 * breakpoint.h (deprecated_insert_raw_breakpoint)
590 (deprecated_remove_raw_breakpoint): Remove declarations.
592 2014-10-15 Pedro Alves <palves@redhat.com>
595 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
596 Delete array globals.
597 (single_step_breakpoints): New global.
598 (breakpoint_xfer_memory): Remove special handling for single-step
600 (update_breakpoints_after_exec): Delete bp_single_step
602 (detach_breakpoints): Remove special handling for single-step
604 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
605 (bpstat_stop_status): Add comment.
606 (bpstat_what, bptype_string, print_one_breakpoint_location)
607 (adjust_breakpoint_address, init_bp_location): Handle
609 (new_single_step_breakpoint): New function.
610 (set_momentary_breakpoint, bkpt_remove_location): Remove special
611 handling for single-step breakpoints.
612 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
613 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
615 (detach_single_step_breakpoints, find_single_step_breakpoint):
617 (breakpoint_has_location_inserted_here): New function.
618 (single_step_breakpoint_inserted_here_p): Rewrite.
619 * breakpoint.h: Remove FIXME.
620 (enum bptype) <bp_single_step>: New enum value.
621 (insert_single_step_breakpoint): Update comment.
622 * infrun.c (resume_cleanups)
623 (delete_step_thread_step_resume_breakpoint): Remove single-step
625 (fetch_inferior_event): Install a cleanup that removes infrun
627 (switch_back_to_stepped_thread) <expect thread advanced also>:
628 Clear step-over info.
630 2014-10-15 Pedro Alves <palves@redhat.com>
632 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
633 (delete_thread_infrun_breakpoints): New function, with parts
634 salvaged from delete_step_resume_breakpoint_callback.
635 (delete_step_thread_step_resume_breakpoint): Delete.
636 (for_each_just_stopped_thread_callback_func): New typedef.
637 (for_each_just_stopped_thread): New function.
638 (delete_just_stopped_threads_infrun_breakpoints): New function.
639 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
640 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
642 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
644 2014-10-15 Pedro Alves <palves@redhat.com>
646 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
647 trying to step past a non-steppable watchpoint.
648 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
650 * infrun.c (struct step_over_info): Add new field
651 'nonsteppable_watchpoint_p' and adjust comments.
652 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
654 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
655 (stepping_past_nonsteppable_watchpoint): New function.
656 (step_over_info_valid_p): Also return true if stepping past a
657 nonsteppable watchpoint.
658 (proceed): Adjust call to set_step_over_info. Remove reference to
660 (init_wait_for_inferior): Remove reference to init_infwait_state.
661 (waiton_ptid): Delete global.
662 (struct execution_control_state)
663 <stepped_after_stopped_by_watchpoint>: Delete field.
664 (wait_for_inferior, fetch_inferior_event): Always pass
665 minus_one_ptid to target_wait.
666 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
668 (init_infwait_state): Delete function.
669 (handle_inferior_event): Remove infwait_state handling.
670 (handle_signal_stop) <watchpoints handling>: Adjust after
671 stepped_after_stopped_by_watchpoint removal. Don't remove
672 breakpoints here nor set infwait_state. Set the thread's
673 stepping_over_watchpoint flag, and call keep_going instead.
674 (keep_going): Handle stepping_over_watchpoint. Adjust
675 set_step_over_info calls.
676 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
679 2014-10-15 Pedro Alves <palves@redhat.com>
681 * infrun.c (step_over_info_valid_p): New function.
682 (resume): Use step_over_info_valid_p instead of checking the
683 threads's trap_expected flag.
685 2014-10-15 Doug Evans <dje@google.com>
686 Walfred Tedeschi <walfred.tedeschi@intel.com>
689 * python/lib/gdb/__init__.py (packages): Add "printer".
690 * python/lib/gdb/command/bound_registers.py: Moved to ...
691 * python/lib/gdb/printer/bound_registers.py: ... here.
692 Add printer to global set of builtin printers. Rename printer from
693 "bound" to "mpx_bound128".
694 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
695 registered as global "builtin" printer.
696 (add_builtin_pretty_printer): New function.
697 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
698 gdb/printer/__init__.py.
700 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
702 * Makefile.in (SFILES): Remove d-support.c.
703 (COMMON_OBS): Remove d-support.o.
704 * d-lang.h (d_parse_symbol): Remove declaration.
705 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
706 * d-support.c: Remove file.
708 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
710 * gdb/infrun.c (process_event_stop_test): Apply
711 gdbarch_addr_bits_remove to longjmp resume address.
713 2014-10-15 Pedro Alves <palves@redhat.com>
715 * regformats/microblaze.dat: Delete file.
717 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
719 * features/Makefile (microblaze-expedite): Replace pc with rpc.
720 * regformats/microblaze-with-stack-protect.dat: Regenerate.
722 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
724 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
727 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
731 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
734 2014-10-14 Joel Brobecker <brobecker@adacore.com>
736 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
737 of the case where the second operand is a pointer.
738 <BINOP_SUB>: Likewise.
740 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
742 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
743 only if it is not NULL.
744 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
745 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
746 (struct probe_ops) <clear_semaphore>: Likewise.
747 * tracepoint.c (start_tracing): Call set_semaphore only if it is
749 (stop_tracing): Likewise, for clear_semaphore.
751 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
753 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
754 using language_c, instead of current_language.
756 2014-10-13 Doug Evans <dje@google.com>
758 * python/py-objfile.c (objfpy_initialize): New function.
759 (objfpy_new, objfile_to_objfile_object): Call it.
760 * python/py-progspace.c (pspy_initialize): New function.
761 (pspy_new, pspace_to_pspace_object): Call it.
763 2014-10-13 Miroslav Franc <mfranc@redhat.com>
764 Jan Kratochvil <jan.kratochvil@redhat.com>
766 Fix "save breakpoints" for "catch" command.
767 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
770 2014-10-12 Miroslav Franc <mfranc@redhat.com>
772 Fix "save breakpoints" for "disable $bpnum" command.
773 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
775 2014-10-10 Pedro Alves <palves@redhat.com>
777 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
778 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
779 (HFILES_NO_SRCDIR): Remove solib-irix.h.
780 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
782 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
783 * configure.ac: Remove references to IRIX.
784 * configure.host: Add *-*-irix* to the obsolete hosts section.
785 Remove all other references to irix.
786 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
789 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
791 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
792 isn't valid, release the tdesc arch data and return NULL.
794 2014-10-10 Pedro Alves <palves@redhat.com>
796 * linux-tdep.c: Include observer.h.
797 (linux_inferior_data): New global.
798 (struct linux_info): New structure.
799 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
800 (get_linux_inferior_data): New functions.
801 (linux_vsyscall_range): Rename to ...
802 (linux_vsyscall_range_raw): ... this.
803 (linux_vsyscall_range): New function; handles caching.
804 (_initialize_linux_tdep): Register linux_inferior_data. Install
805 inferior_exit and inferior_appeared observers.
807 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
808 Pedro Alves <palves@redhat.com>
811 * solib-svr4.c (svr4_read_so_list): Rename to ...
812 (svr4_current_sos_1): ... this and change the function comment.
813 (svr4_current_sos): New function.
815 2014-10-10 Pedro Alves <palves@redhat.com>
817 * arch-utils.c (default_vsyscall_range): New function.
818 * arch-utils.h (default_vsyscall_range): New declaration.
819 * gdbarch.sh (vsyscall_range): New hook.
820 * gdbarch.h, gdbarch.c: Regenerate.
821 * linux-tdep.c (linux_vsyscall_range): New function.
822 (linux_init_abi): Install linux_vsyscall_range as
823 vsyscall_range gdbarch hook.
824 * memrange.c (address_in_mem_range): New function.
825 * memrange.h (address_in_mem_range): New declaration.
826 * symfile-mem.c (find_vdso_size): Delete function.
827 (add_vsyscall_page): Use gdbarch_vsyscall_range.
829 2014-10-10 Pedro Alves <palves@redhat.com>
831 * infrun.c (normal_stop): Fix typo in comment.
833 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
836 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
837 typo when using logical AND to determine instruction type.
839 2014-10-09 Yao Qi <yao@codesourcery.com>
841 * infrun.c (handle_signal_stop): Remove local variable
844 2014-10-08 Stan Shebs <stan@codesourcery.com>
846 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
848 2014-10-08 Gary Benson <gbenson@redhat.com>
850 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
852 2014-10-08 Gary Benson <gbenson@redhat.com>
854 * common/common-defs.h: Include common-exceptions.h.
855 * exceptions.h: Do not include common-exceptions.h.
857 2014-10-08 Gary Benson <gbenson@redhat.com>
859 * common/common-defs.h: Include cleanups.h.
860 * common/common-exceptions.c: Do not include cleanups.h.
863 2014-10-08 Gary Benson <gbenson@redhat.com>
865 * ada-lang.c: Do not include exceptions.h.
866 * ada-valprint.c: Likewise.
867 * amd64-tdep.c: Likewise.
868 * auto-load.c: Likewise.
870 * break-catch-throw.c: Likewise.
871 * breakpoint.c: Likewise.
872 * btrace.c: Likewise.
873 * c-lang.c: Likewise.
874 * cli/cli-cmds.c: Likewise.
875 * cli/cli-interp.c: Likewise.
876 * cli/cli-script.c: Likewise.
877 * completer.c: Likewise.
878 * corefile.c: Likewise.
879 * corelow.c: Likewise.
880 * cp-abi.c: Likewise.
881 * cp-support.c: Likewise.
882 * cp-valprint.c: Likewise.
883 * darwin-nat.c: Likewise.
884 * dwarf2-frame-tailcall.c: Likewise.
885 * dwarf2-frame.c: Likewise.
886 * dwarf2loc.c: Likewise.
887 * dwarf2read.c: Likewise.
889 * event-loop.c: Likewise.
890 * event-top.c: Likewise.
891 * f-valprint.c: Likewise.
892 * frame-unwind.c: Likewise.
894 * gdbtypes.c: Likewise.
895 * gnu-v2-abi.c: Likewise.
896 * gnu-v3-abi.c: Likewise.
897 * guile/scm-auto-load.c: Likewise.
898 * guile/scm-breakpoint.c: Likewise.
899 * guile/scm-cmd.c: Likewise.
900 * guile/scm-frame.c: Likewise.
901 * guile/scm-lazy-string.c: Likewise.
902 * guile/scm-param.c: Likewise.
903 * guile/scm-symbol.c: Likewise.
904 * guile/scm-type.c: Likewise.
905 * hppa-hpux-tdep.c: Likewise.
906 * i386-tdep.c: Likewise.
907 * inf-loop.c: Likewise.
908 * infcall.c: Likewise.
909 * infcmd.c: Likewise.
910 * infrun.c: Likewise.
911 * interps.c: Likewise.
912 * interps.h: Likewise.
914 * linespec.c: Likewise.
915 * linux-nat.c: Likewise.
916 * linux-thread-db.c: Likewise.
917 * m32r-rom.c: Likewise.
919 * memory-map.c: Likewise.
920 * mi/mi-cmd-break.c: Likewise.
921 * mi/mi-cmd-stack.c: Likewise.
922 * mi/mi-interp.c: Likewise.
923 * mi/mi-main.c: Likewise.
924 * monitor.c: Likewise.
925 * nto-procfs.c: Likewise.
926 * objc-lang.c: Likewise.
927 * p-valprint.c: Likewise.
929 * ppc-linux-tdep.c: Likewise.
930 * printcmd.c: Likewise.
932 * python/py-auto-load.c: Likewise.
933 * python/py-breakpoint.c: Likewise.
934 * python/py-cmd.c: Likewise.
935 * python/py-finishbreakpoint.c: Likewise.
936 * python/py-frame.c: Likewise.
937 * python/py-framefilter.c: Likewise.
938 * python/py-function.c: Likewise.
939 * python/py-gdb-readline.c: Likewise.
940 * python/py-inferior.c: Likewise.
941 * python/py-infthread.c: Likewise.
942 * python/py-lazy-string.c: Likewise.
943 * python/py-linetable.c: Likewise.
944 * python/py-param.c: Likewise.
945 * python/py-prettyprint.c: Likewise.
946 * python/py-symbol.c: Likewise.
947 * python/py-type.c: Likewise.
948 * python/py-value.c: Likewise.
949 * python/python-internal.h: Likewise.
950 * python/python.c: Likewise.
951 * record-btrace.c: Likewise.
952 * record-full.c: Likewise.
953 * regcache.c: Likewise.
954 * remote-fileio.c: Likewise.
955 * remote-mips.c: Likewise.
956 * remote.c: Likewise.
957 * rs6000-aix-tdep.c: Likewise.
958 * rs6000-nat.c: Likewise.
960 * solib-darwin.c: Likewise.
961 * solib-dsbt.c: Likewise.
962 * solib-frv.c: Likewise.
963 * solib-ia64-hpux.c: Likewise.
964 * solib-spu.c: Likewise.
965 * solib-svr4.c: Likewise.
967 * spu-tdep.c: Likewise.
969 * stap-probe.c: Likewise.
970 * symfile-mem.c: Likewise.
971 * symmisc.c: Likewise.
972 * target.c: Likewise.
973 * thread.c: Likewise.
975 * tracepoint.c: Likewise.
976 * tui/tui-interp.c: Likewise.
977 * typeprint.c: Likewise.
979 * valarith.c: Likewise.
980 * valops.c: Likewise.
981 * valprint.c: Likewise.
983 * varobj.c: Likewise.
984 * windows-nat.c: Likewise.
985 * xml-support.c: Likewise.
987 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
989 * mips-tdep.c (add_offset_16): Rewrite to implement what the
991 (extended_mips16_next_pc): Update accordingly.
993 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
995 * mips-tdep.c (mips16_instruction_is_compact_branch): New
997 (micromips_instruction_is_compact_branch): Likewise.
998 (mips16_scan_prologue): Terminate scanning upon seeing a branch
999 or a compact jump, reaching a jump delay slot, or seeing a
1000 second non-prologue instruction.
1001 (micromips_scan_prologue): Also terminate scanning upon seeing a
1002 compact branch or jump, or reaching a branch or jump delay slot.
1003 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1004 or jump delay slot, or seeing a second non-prologue instruction.
1005 (mips32_instruction_has_delay_slot): Retain instruction
1006 examination code only, update arguments accordingly and move
1007 instruction fetch pieces to...
1008 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1009 (micromips_instruction_has_delay_slot): Likewise and to...
1010 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1011 (mips16_instruction_has_delay_slot): Likewise and to...
1012 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1013 (mips_single_step_through_delay): Update accordingly.
1014 (mips_adjust_breakpoint_address): Likewise.
1016 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1018 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1019 !mustbe32 also return 1 for 32-bit instructions.
1020 (mips16_instruction_has_delay_slot): Likewise. Add an
1021 explanatory comment.
1023 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1025 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1028 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1030 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1032 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1033 for the breakpoint's address. Don't preinitialize `placed_size'.
1034 (insert_bp_location): Set `reqstd_address' rather than
1036 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1037 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1039 (bkpt_remove_location): Likewise.
1040 (deprecated_insert_raw_breakpoint): Likewise.
1041 (deprecated_remove_raw_breakpoint): Likewise.
1042 (find_single_step_breakpoint): Likewise.
1043 * mem-break.c (default_memory_insert_breakpoint): Use
1044 `reqstd_address' for the breakpoint's address. Don't set
1045 `placed_address' or `placed_size' if breakpoint contents couldn't
1046 have been determined.
1047 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1048 the breakpoint's address.
1049 (remote_insert_hw_breakpoint): Likewise. Don't set
1050 `placed_address' or `placed_size' if breakpoint couldn't have been
1052 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1053 `reqstd_address' for the breakpoint's address.
1054 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1055 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1056 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1057 * microblaze-linux-tdep.c
1058 (microblaze_linux_memory_remove_breakpoint): Likewise.
1059 * monitor.c (monitor_insert_breakpoint): Likewise.
1060 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1061 (procfs_insert_hw_breakpoint): Likewise.
1062 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1063 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1064 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1065 * remote-mips.c (mips_insert_breakpoint): Likewise.
1066 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1068 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1070 * valops.c (value_assign): Check for bit field assignments
1071 before calling architecture-specific register value
1072 conversion functions.
1074 2014-10-03 Pierre Muller <muller@sourceware.org>
1076 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1078 2014-10-02 Pedro Alves <palves@redhat.com>
1080 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1081 threads_are_executing.
1082 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1084 * gdbthread.h (threads_are_executing): Declare.
1085 (handle_signal_stop) <random signals>: Don't print about the
1086 signal here if stopping.
1087 (end_stepping_range): Don't notify observers here.
1088 (normal_stop): Update the thread list. If stopped by a random
1089 signal or a stepping range ended, notify observers.
1090 * thread.c (threads_executing): New global.
1091 (init_thread_list): Clear 'threads_executing'.
1092 (set_executing): Set or clear 'threads_executing'.
1093 (threads_are_executing): New function.
1094 (update_threads_executing): New function.
1095 (update_thread_list): Use it.
1097 2014-10-02 Pedro Alves <palves@redhat.com>
1099 PR breakpoints/17431
1100 * breakpoint.c (update_breakpoints_after_exec): Don't create
1101 overlay, longjmp, std terminate nor exception breakpoints here.
1103 2014-10-02 Pedro Alves <palves@redhat.com>
1105 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1107 * inferior.c (find_inferior_for_program_space): Give preference to
1108 the current inferior.
1109 * inferior.h (find_inferior_for_program_space): Update comment.
1110 * progspace.c (switch_to_program_space_and_thread): Prefer the
1111 current inferior if it's bound to the program space requested. If
1112 the inferior found doesn't have a PID yet, don't bother looking up
1114 * progspace.h (switch_to_program_space_and_thread): Adjust
1116 * thread.c (any_thread_of_process, any_live_thread_of_process):
1117 Give preference to the current thread.
1119 2014-10-01 Pedro Alves <palves@redhat.com>
1121 * breakpoint.c (insert_bp_location): Error out if inserting a
1122 software breakpoint at a read-only address.
1123 * target.c (memory_xfer_check_region): New function, factored out
1125 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1127 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1128 against the memory region attributes.
1130 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1132 * NEWS: Announce new exit-code field in -list-thread-groups
1134 * inferior.c (exit_inferior_1): Don't clear exit code.
1135 (inferior_appeared): Clear exit code.
1136 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1139 2014-10-01 Pedro Alves <palves@redhat.com>
1141 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1142 GENERATED" along with emacs/vi read-only markers.
1143 * regformats/aarch64.dat: Regenerate.
1144 * regformats/arm-with-iwmmxt.dat: Regenerate.
1145 * regformats/arm-with-neon.dat: Regenerate.
1146 * regformats/arm-with-vfpv2.dat: Regenerate.
1147 * regformats/arm-with-vfpv3.dat: Regenerate.
1148 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1149 * regformats/i386/amd64-avx.dat: Regenerate.
1150 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1151 * regformats/i386/amd64-avx512.dat: Regenerate.
1152 * regformats/i386/amd64-linux.dat: Regenerate.
1153 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1154 * regformats/i386/amd64-mpx.dat: Regenerate.
1155 * regformats/i386/amd64.dat: Regenerate.
1156 * regformats/i386/i386-avx-linux.dat: Regenerate.
1157 * regformats/i386/i386-avx.dat: Regenerate.
1158 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1159 * regformats/i386/i386-avx512.dat: Regenerate.
1160 * regformats/i386/i386-linux.dat: Regenerate.
1161 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1162 * regformats/i386/i386-mmx.dat: Regenerate.
1163 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1164 * regformats/i386/i386-mpx.dat: Regenerate.
1165 * regformats/i386/i386.dat: Regenerate.
1166 * regformats/i386/x32-avx-linux.dat: Regenerate.
1167 * regformats/i386/x32-avx.dat: Regenerate.
1168 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1169 * regformats/i386/x32-avx512.dat: Regenerate.
1170 * regformats/i386/x32-linux.dat: Regenerate.
1171 * regformats/i386/x32.dat: Regenerate.
1172 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1173 * regformats/mips-dsp-linux.dat: Regenerate.
1174 * regformats/mips-linux.dat: Regenerate.
1175 * regformats/mips64-dsp-linux.dat: Regenerate.
1176 * regformats/mips64-linux.dat: Regenerate.
1177 * regformats/nios2-linux.dat: Regenerate.
1178 * regformats/rs6000/powerpc-32.dat: Regenerate.
1179 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1180 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1181 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1182 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1183 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1184 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1185 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1186 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1187 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1188 * regformats/s390-linux32.dat: Regenerate.
1189 * regformats/s390-linux32v1.dat: Regenerate.
1190 * regformats/s390-linux32v2.dat: Regenerate.
1191 * regformats/s390-linux64.dat: Regenerate.
1192 * regformats/s390-linux64v1.dat: Regenerate.
1193 * regformats/s390-linux64v2.dat: Regenerate.
1194 * regformats/s390-te-linux64.dat: Regenerate.
1195 * regformats/s390x-linux64.dat: Regenerate.
1196 * regformats/s390x-linux64v1.dat: Regenerate.
1197 * regformats/s390x-linux64v2.dat: Regenerate.
1198 * regformats/s390x-te-linux64.dat: Regenerate.
1199 * regformats/tic6x-c62x-linux.dat: Regenerate.
1200 * regformats/tic6x-c62x.dat: Regenerate.
1201 * regformats/tic6x-c64x-linux.dat: Regenerate.
1202 * regformats/tic6x-c64x.dat: Regenerate.
1203 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1204 * regformats/tic6x-c64xp.dat: Regenerate.
1206 2014-10-01 Pedro Alves <palves@redhat.com>
1208 * features/Makefile: Update comments.
1209 (XMLTOC): List all xml files we build C files from.
1210 (clean-cfiles): New rule.
1212 2014-10-01 Pedro Alves <palves@redhat.com>
1214 * features/i386/amd64-avx512-linux.c: Regenerate.
1215 * features/i386/amd64-avx512.c: Regenerate.
1216 * features/i386/x32-avx512-linux.c: Regenerate.
1217 * features/i386/x32-avx512.c: Regenerate.
1219 2014-10-01 Pedro Alves <palves@redhat.com>
1221 * features/Makefile (WHICH): Remove arm-with-m,
1222 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1224 2014-10-01 Pedro Alves <palves@redhat.com>
1226 * features/Makefile (clean): New rule.
1228 2014-10-01 Pedro Alves <palves@redhat.com>
1230 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1231 (zmm14h): Add missing end quotes.
1233 2014-10-01 Pedro Alves <palves@redhat.com>
1235 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1236 * features/aarch64.c: Regenerate.
1238 2014-09-30 Don Breazeal <donb@codesourcery.com>
1240 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1241 code so as to work with follow_fork_inferior.
1242 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1243 (inf_ttrace_create_inferior): Remove reference to
1244 inf_ttrace_vfork_ppid.
1245 (inf_ttrace_attach): Ditto.
1246 (inf_ttrace_detach): Ditto.
1247 (inf_ttrace_kill): Use current_inferior instead of
1248 inf_ttrace_vfork_ppid.
1249 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1250 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1251 inferior away from the parent.
1252 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1254 (follow_fork_inferior): New function.
1255 (follow_inferior_reset_breakpoints): Make function static.
1256 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1257 * linux-nat.c (linux_child_follow_fork): Move target-independent
1258 code to infrun.c:follow_fork_inferior.
1260 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1262 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1263 * gdbarch.c: Regenerate.
1264 * gdbarch.h: Likewise.
1265 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1266 gdbarch method 'regset_from_core_section'.
1267 (get_core_register_section): Remove handling for the case that
1268 regset == NULL and regset_from_core_section is defined.
1269 (get_core_registers): Drop check for deleted method.
1270 * procfs.c (procfs_do_thread_registers): Adjust comment.
1272 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1274 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1275 (linux_nat_make_corefile_notes): Remove.
1276 (linux_target_install_ops): Do not set target method
1277 'make_corefile_notes'.
1278 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1280 (linux_corefile_thread_callback): Instead of args->collect, call
1281 linux_collect_thread_registers.
1282 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1283 NULL unless there is a regset iterator.
1284 (linux_make_corefile_notes_1): Remove.
1285 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1286 by linux_make_corefile_notes.
1287 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1289 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1291 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1292 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1294 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1296 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1298 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1299 (xtensa_iterate_over_regset_sections): New.
1300 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1302 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1304 * vax-tdep.c (vax_regset_from_core_section): Remove.
1305 (vax_iterate_over_regset_sections): New.
1306 (vax_gdbarch_init): Adjust gdbarch initialization.
1308 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1310 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1311 (tilegx_regset_from_core_section): Remove.
1312 (tilegx_iterate_over_regset_sections): New.
1313 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1315 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1317 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1318 (sparc_iterate_over_regset_sections): New.
1319 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1320 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1322 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1323 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1324 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1325 target method 'make_corefile_notes'.
1327 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1329 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1330 'sizeof_gregset' and 'sizeof_fpregset'.
1331 * sh-tdep.c (sh_regset_from_core_section): Remove.
1332 (sh_iterate_over_regset_sections): New.
1333 (sh_gdbarch_init): Adjust gdbarch initialization.
1334 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1336 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1339 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1341 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1342 (score7_linux_iterate_over_regset_sections): New.
1343 (score_gdbarch_init): Adjust gdbarch initialization.
1345 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1347 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1349 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1350 method 'make_corefile_notes'.
1351 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1352 (ppcfbsd_regset_from_core_section): Remove.
1353 (ppcfbsd_iterate_over_regset_sections): New.
1354 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1356 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1357 (ppcnbsd_iterate_over_regset_sections): New.
1358 (ppcnbsd_init_abi): Adjust.
1359 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1360 (ppcobsd_iterate_over_regset_sections): New.
1361 (ppcobsd_init_abi): Adjust.
1362 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1363 (rs6000_aix_iterate_over_regset_sections): New.
1364 (rs6000_aix_init_osabi): Adjust.
1366 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1368 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1369 (nios2_regset_from_core_section): Remove.
1370 (nios2_iterate_over_regset_sections): New.
1371 (nios2_linux_init_abi): Adjust gdbarch initialization.
1373 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1375 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1376 (am33_iterate_over_regset_sections): New.
1377 (am33_linux_init_osabi): Adjust gdbarch initialization.
1379 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1381 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1382 (mips_linux_iterate_over_regset_sections): New.
1383 (mips_linux_init_abi): Adjust gdbarch initialization.
1384 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1385 (mips64obsd_iterate_over_regset_sections): New.
1386 (mips64obsd_init_abi): Adjust.
1387 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1388 (mipsnbsd_iterate_over_regset_sections): New.
1389 (mipsnbsd_init_abi): Adjust.
1391 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1393 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1394 (m88k_iterate_over_regset_sections): New.
1395 (m88k_gdbarch_init): Adjust gdbarch initialization.
1397 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1399 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1400 (ia64_linux_iterate_over_regset_sections): New.
1401 (ia64_linux_init_abi): Adjust gdbarch initialization.
1403 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1405 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1406 (m68kbsd_iterate_over_regset_sections): New.
1407 (m68kbsd_init_abi): Adjust gdbarch initialization.
1408 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1409 (m68k_linux_iterate_over_regset_sections): New.
1410 (m68k_linux_init_abi): Adjust gdbarch initialization.
1412 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1414 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1415 (m32r_linux_regset_from_core_section): Remove.
1416 (m32r_linux_iterate_over_regset_sections): New.
1417 (m32r_linux_init_abi): Adjust gdbarch initialization.
1419 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1421 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1422 (amd64obsd_iterate_over_regset_sections): New.
1423 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1424 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1426 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1427 regset_from_core_section initialization.
1428 * i386-tdep.c (i386_regset_from_core_section): Remove.
1429 (i386_iterate_over_regset_sections): New.
1430 (i386_gdbarch_init): Adjust gdbarch initialization.
1431 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1432 (i386_iterate_over_regset_sections): New prototype.
1433 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1435 (i386obsd_aout_iterate_over_regset_sections): New.
1436 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1437 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1439 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1440 (amd64fbsd_init_abi): Call fbsd_init_abi.
1441 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1442 (i386fbsd4_init_abi): Call fbsd_init_abi.
1443 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1444 target method 'make_corefile_notes'.
1445 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1447 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1449 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1450 (hppa_hpux_iterate_over_regset_sections): New.
1451 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1452 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1453 (hppa_linux_iterate_over_regset_sections): New.
1454 (hppa_linux_init_abi): Adjust.
1455 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1456 (hppanbsd_iterate_over_regset_sections): New.
1457 (hppanbsd_init_abi): Adjust.
1458 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1459 (hppaobsd_iterate_over_regset_sections): New.
1460 (hppaobsd_init_abi): Adjust.
1462 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1464 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1465 (frv_linux_iterate_over_regset_sections): New.
1466 (frv_linux_init_abi): Adjust gdbarch initialization.
1468 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1470 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1471 (armbsd_iterate_over_regset_sections): New prototype.
1472 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1473 (armbsd_iterate_over_regset_sections): New.
1474 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1477 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1479 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1480 (alpha_linux_iterate_over_regset_sections): New.
1481 (alpha_linux_init_abi): Adjust gdbarch initialization.
1482 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1484 (alphanbsd_iterate_over_regset_sections): New prototype.
1486 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1488 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1490 (aarch64_linux_iterate_over_regset_sections): New.
1491 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1493 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1495 * fbsd-tdep.c: New file.
1496 * fbsd-tdep.h: New file.
1497 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1498 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1499 (ALLDEPFILES): Add fbsd-tdep.c.
1501 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1503 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1505 * gdbarch.h: Regenerate.
1506 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1508 (get_core_register_section): Add parameter 'regset' and use it, if
1509 set. Add parameter 'min_size' and verify the bfd section size
1511 (get_core_registers_cb): Add parameter 'regset' and pass it to
1512 get_core_register section. For the "standard" register sections
1513 ".reg" and ".reg2", set an appropriate default for human_name.
1514 (get_core_registers): Don't abort when the gdbarch has an iterator
1515 but no regset_from_core_section. Add NULL/0 for parameters
1516 'regset'/'min_size' in calls to get_core_register_section.
1517 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1518 'regset' and use it instead of calling the
1519 regset_from_core_section gdbarch method.
1520 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1521 * i386-tdep.c (i386_supply_xstateregset)
1522 (i386_collect_xstateregset, i386_xstateregset): Moved to
1524 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1526 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1527 core file support only if the regset iterator hasn't been set.
1528 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1529 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1530 Moved from i386-tdep.c and renamed to *_linux*.
1531 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1532 each callback invocation. Allow any .reg-xstate size when reading
1534 * amd64-tdep.c (amd64_supply_xstateregset)
1535 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1537 (amd64_regset_from_core_section): Remove.
1538 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1539 install an amd64-specific regset_from_core_section gdbarch method.
1540 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1541 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1542 Moved from amd64-tdep.c and renamed to *_linux*.
1543 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1544 to each callback invocation. Allow any .reg-xstate size when
1545 reading from a core file.
1546 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1547 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1548 each callback invocation.
1549 (arm_linux_init_abi): No longer set the regset_from_core_section
1551 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1552 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1553 each callback invocation.
1554 (ppc_linux_init_abi): No longer set the regset_from_core_section
1556 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1557 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1558 (s390_regset_from_core_section): Remove.
1559 (s390_iterate_over_regset_sections): Add regset parameter to each
1560 callback invocation.
1561 (s390_gdbarch_init): No longer set the regset_from_core_section
1562 gdbarch method. Drop initialization of deleted tdep fields.
1564 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1566 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1567 (amd64_linux_iterate_over_regset_sections): New.
1568 (amd64_linux_init_abi_common): Don't install the regset section
1569 list, but the new iterator in gdbarch.
1570 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1571 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1572 (arm_linux_iterate_over_regset_sections): ...here. New function.
1573 (arm_linux_init_abi): Set iterator instead of section list.
1574 * corelow.c (get_core_registers_cb): New function, logic moved
1576 (get_core_registers): ...loop body here. Use new iterator method
1577 instead of walking through the regset section list.
1578 * gdbarch.sh: Remove 'core_regset_sections'. New method
1579 'iterate_over_regset_sections'. New typedef
1580 'iterate_over_regset_sections_cb'.
1581 * gdbarch.c: Regenerate.
1582 * gdbarch.h: Likewise.
1583 * i386-linux-tdep.c (i386_linux_regset_sections)
1584 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1586 (i386_linux_iterate_over_regset_sections): New.
1587 (i386_linux_init_abi): Don't choose a regset section list, but
1588 install new iterator in gdbarch.
1589 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1590 (linux_collect_regset_section_cb): New function, logic moved
1592 (linux_collect_thread_registers): ...loop body here. Use iterator
1593 method instead of walking through list.
1594 (linux_make_corefile_notes_1): Check for presence of iterator
1595 method instead of regset section list.
1596 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1597 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1598 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1599 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1600 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1601 (ppc_linux_init_abi): Don't choose from above regset section
1602 lists, but install new iterator in gdbarch.
1603 * regset.h (struct core_regset_section): Remove.
1604 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1605 have_linux_v1, have_linux_v2, and have_tdb.
1606 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1607 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1608 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1609 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1610 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1611 (s390_iterate_over_regset_sections): ...here. New function. Use
1613 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1614 regset section lists, but install new iterator.
1616 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1618 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1620 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1622 * progspace.c (print_program_space): Don't prune program spaces
1623 before printing them.
1625 2014-09-25 Pedro Alves <palves@redhat.com>
1627 * infrun.c (user_visible_resume_ptid): Don't check
1628 singlestep_breakpoints_inserted_p.
1630 2014-09-25 Pedro Alves <palves@redhat.com>
1632 * breakpoint.c (should_be_inserted): Add debug output.
1634 2014-09-25 Pedro Alves <palves@redhat.com>
1636 * infrun.c (stepping_past_instruction_at)
1637 (clear_exit_convenience_vars): Point at infrun.h instead of
1639 (handle_signal_stop): Fix typo.
1641 2014-09-24 Yao Qi <yao@codesourcery.com>
1643 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1646 2014-09-22 Gary Benson <gbenson@redhat.com>
1648 * target.c (target_stop): Updated comment.
1650 2014-09-22 Gary Benson <gbenson@redhat.com>
1652 * target/target.h (target_stop_ptid): Renamed as...
1653 (target_stop_and_wait): New function. Updated comment.
1655 (target_continue_ptid): Renamed as...
1656 (target_continue_no_signal): New function. Updated comment.
1659 2014-09-22 Pedro Alves <palves@redhat.com>
1661 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1663 * breakpoint.c (enum ugll_insert_mode): New enum.
1664 (always_inserted_mode): Now a plain boolean.
1665 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1666 (breakpoints_always_inserted_mode): Delete.
1667 (breakpoints_should_be_inserted_now): New function.
1668 (insert_breakpoints): Pass UGLL_INSERT to
1669 update_global_location_list instead of calling
1670 insert_breakpoint_locations manually.
1671 (create_solib_event_breakpoint_1): New, factored out from ...
1672 (create_solib_event_breakpoint): ... this.
1673 (create_and_insert_solib_event_breakpoint): Use
1674 create_solib_event_breakpoint_1 instead of calling
1675 insert_breakpoint_locations manually.
1676 (update_global_location_list): Change parameter type from boolean
1677 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1678 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1679 (update_global_location_list_nothrow): Change parameter type from
1680 boolean to enum ugll_insert_mode.
1681 (_initialize_breakpoint): "breakpoint always-inserted" option is
1682 now a boolean command. Update help text.
1683 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1684 (breakpoints_should_be_inserted_now): New declaration.
1685 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1686 Remove breakpoints_always_inserted_mode check.
1687 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1688 * remote.c (remote_start_remote): Likewise.
1690 2014-09-22 Pedro Alves <palves@redhat.com>
1692 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1693 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1694 Instead, pass UGLL_INSERT to update_global_location_list.
1695 (update_global_location_list): Change parameter type from boolean
1696 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1697 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1698 (create_solib_event_breakpoint_1): New, factored out from ...
1699 (create_solib_event_breakpoint): ... this.
1700 (create_and_insert_solib_event_breakpoint): Use
1701 create_solib_event_breakpoint_1 instead of calling
1702 insert_breakpoint_locations manually.
1703 (update_global_location_list): Handle UGLL_INSERT.
1705 2014-09-22 Pedro Alves <palves@redhat.com>
1707 * breakpoint.c (enum ugll_insert_mode): New enum.
1708 (update_global_location_list)
1709 (update_global_location_list_nothrow): Change parameter type from
1710 boolean to enum ugll_insert_mode. All callers adjusted.
1712 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1714 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1715 SystemTap support in GDB.
1717 2014-09-19 Don Breazeal <donb@codesourcery.com>
1719 * linux-nat.c (linux_handle_extended_wait): Call
1720 linux_ptrace_get_extended_event.
1721 (wait_lwp): Call linux_is_extended_waitstatus.
1722 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1723 and linux_is_extended_waitstatus.
1724 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1725 linux_ptrace_get_extended_event.
1726 (linux_ptrace_get_extended_event): New function.
1727 (linux_is_extended_waitstatus): New function.
1728 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1729 (linux_is_extended_waitstatus): New declarations.
1731 2014-09-19 Yao Qi <yao@codesourcery.com>
1733 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1734 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1735 comments. Callers update.
1736 (dwarf_decode_lines): Likewise.
1737 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1738 comments. Skip the line table if 'lowpc' is greater than
1739 'address'. Don't check
1740 dwarf2_per_objfile->has_section_at_zero.
1742 2014-09-18 Doug Evans <dje@google.com>
1744 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1745 * python/py-symtab.c (stpy_get_producer): New function.
1746 (symtab_object_getset): Add "producer" attribute.
1748 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1751 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1752 (do_captured_read_memory_integer): Remove.
1753 (safe_read_memory_integer): Use target_read_memory directly instead
1754 of catching errors in do_captured_read_memory_integer.
1756 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1758 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1761 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1763 * objc-lang.c (find_implementation_from_class): Remove dead code.
1765 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1768 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1769 "fprintf_unfiltered (gdb_stdlog...)".
1771 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1773 PR breakpoints/12526
1774 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1776 * breakpoint.c (watch_command_1): Use these fields to retain
1777 bitfield information.
1778 (extract_bitfield_from_watchpoint_value): New function.
1779 (watchpoint_check): Use it.
1780 (update_watchpoint): Use it. Optimize the address and length of a
1781 HW watchpoint pointing to a bitfield.
1782 * value.h (unpack_value_bitfield): New prototype.
1783 * value.c (unpack_value_bitfield): Make extern.
1785 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1787 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1789 * gnu-nat.c (inf_threads): New function.
1790 * gnu-nat.h (inf_threads_ftype): New typedef.
1791 (inf_threads): New declaration.
1792 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1793 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1794 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1795 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1796 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1797 (i386_gnu_dr_get_control): New functions.
1798 (reg_addr): New structure.
1799 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1800 i386 debugging register hooks.
1801 * NEWS: Mention this.
1803 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1805 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1806 vector data transfer instructions.
1807 (arm_record_coproc_data_proc): Updated.
1809 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1811 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1812 arm_record_exreg_ld_st_insn.
1813 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1816 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1818 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1819 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1820 processing instructions.
1822 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1824 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1825 for advance SIMD struct ld/st insn.
1826 (thumb2_record_decode_insn_handler): Replace stub handler with
1827 thumb2_record_asimd_struct_ld_st.
1829 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1831 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1832 for asimd, vfp and coprocessor insns.
1833 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1834 and coprocessor insns.
1835 (thumb2_record_coproc_insn): New function.
1836 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1838 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1841 2014-09-13 Doug Evans <xdje42@gmail.com>
1843 * NEWS: Mention new "queue-signal" command.
1844 * infcmd.c (queue_signal_command): New function.
1845 (_initialize_infcmd): Add new queue-signal command.
1847 2014-09-13 Doug Evans <xdje42@gmail.com>
1849 * linux-nat.c (wait_lwp): Add debugging printf.
1850 (linux_nat_wait_1): Ditto.
1852 2014-09-12 Pedro Alves <palves@redhat.com>
1854 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1855 (create_and_insert_solib_event_breakpoint): New functions.
1856 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1857 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1858 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1859 (remove_dbx_link_breakpoint): Delete function.
1860 (insert_dbx_link_bpt_in_file): Use
1861 create_and_insert_solib_event_breakpoint instead of
1862 deprecated_insert_raw_breakpoint.
1863 (procfs_wait): Don't check whether we hit __dbx_link here.
1864 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1866 * solib-irix.c (base_breakpoint): Delete global.
1867 (disable_break): Delete function.
1868 (enable_break): Use create_solib_event_breakpoint
1869 instead of deprecated_insert_raw_breakpoint.
1870 (irix_solib_handle_event): New function.
1871 (irix_solib_create_inferior_hook): Don't run the target or disable
1872 the mapping-complete breakpoint here.
1873 (_initialize_irix_solib): Install irix_solib_handle_event as
1874 so_ops->handle_event hook.
1876 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1877 Ulrich Weigand <uweigand@de.ibm.com>
1880 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1881 instead of read_memory_unsigned_integer.
1883 2014-09-12 Gary Benson <gbenson@redhat.com>
1885 * nat/linux-waitpid.c: Include common-defs.h.
1886 [GDBSERVER]: Add FIXME comment.
1887 [!GDBSERVER]: Don't include defs.h or signal.h.
1888 (linux_debug) [!GDBSERVER]: Remove empty block.
1890 2014-09-12 Gary Benson <gbenson@redhat.com>
1892 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1893 Don't include defs.h or server.h.
1895 2014-09-12 Gary Benson <gbenson@redhat.com>
1897 * nat/linux-btrace.c: Include common-defs.h.
1898 Don't include defs.h, server.h or gdbthread.h.
1899 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1901 2014-09-12 Gary Benson <gbenson@redhat.com>
1903 * common/agent.c: Include common-defs.h.
1904 Don't include defs.h or server.h.
1905 * common/buffer.c: Likewise.
1906 * common/common-debug.c: Likewise.
1907 * common/common-utils.c: Likewise.
1908 * common/errors.c: Likewise.
1909 * common/filestuff.c: Likewise.
1910 * common/format.c: Likewise.
1911 * common/gdb_vecs.c: Likewise.
1912 * common/print-utils.c: Likewise.
1913 * common/ptid.c: Likewise.
1914 * common/rsp-low.c: Likewise.
1915 * common/signals.c: Likewise.
1916 * common/vec.c: Likewise.
1917 * common/xml-utils.c: Likewise.
1918 * nat/linux-osdata.c: Likewise.
1919 * nat/linux-procfs.c: Likewise.
1920 * nat/linux-ptrace.c: Likewise.
1921 * nat/mips-linux-watch.c: Likewise.
1922 * target/waitstatus.c: Likewise.
1924 2014-09-12 Tom Tromey <tromey@redhat.com>
1925 Gary Benson <gbenson@redhat.com>
1927 * common/common-regcache.h: New file.
1928 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1929 * regcache.h: Include common-regcache.h.
1930 (regcache_read_pc): Don't declare.
1931 * regcache.c (get_thread_regcache_for_ptid): New function.
1932 * nat/linux-btrace.c: Don't include regcache.h.
1933 Include common-regcache.h.
1934 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1936 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1938 * regcache.h (struct regset): Declare.
1940 2014-09-11 Pedro Alves <palves@redhat.com>
1943 * main.c: Include "infrun.h".
1944 (catch_command_errors, catch_command_errors_const): Wait for the
1945 foreground command to complete.
1946 * top.c (maybe_wait_sync_command_done): New function, factored out
1948 (maybe_wait_sync_command_done): ... here.
1949 * top.h (maybe_wait_sync_command_done): New declaration.
1951 2014-09-11 Tom Tromey <tromey@redhat.com>
1952 Gary Benson <gbenson@redhat.com>
1954 * common/symbol.h: New file.
1955 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1956 * minsyms.c (find_minimal_symbol_address): New function.
1957 * common/agent.c: Include common/symbol.h.
1958 [!GDBSERVER]: Don't include objfiles.h.
1959 (agent_look_up_symbols): Use find_minimal_symbol_address.
1961 2014-09-11 Gary Benson <gbenson@redhat.com>
1963 * target/target.h (target_stop_ptid, target_continue_ptid):
1965 * target.c (target_stop_ptid, target_continue_ptid): New
1967 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1968 (agent_run_command): Always use target_stop_ptid and
1969 target_continue_ptid.
1971 2014-09-11 Tom Tromey <tromey@redhat.com>
1972 Gary Benson <gbenson@redhat.com>
1974 * target/target.h: New file.
1975 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1976 * target.h: Include target/target.h.
1977 (target_read_memory, target_write_memory): Don't declare.
1978 * target.c (target_read_uint32): New function.
1979 * common/agent.c: Include target/target.h.
1980 [!GDBSERVER]: Don't include target.h.
1981 (helper_thread_id): Type changed to uint32_t.
1982 (agent_get_helper_thread_id): Use target_read_uint32.
1983 (agent_run_command): Always use target_read_memory and
1984 target_write_memory.
1985 (agent_capability): Type changed to uint32_t.
1986 (agent_capability_check): Use target_read_uint32.
1988 2014-09-11 Gary Benson <gbenson@redhat.com>
1990 * common/common-debug.h (show_debug_regs): Declare.
1991 * common/common-debug.c (show_debug_regs): Define.
1992 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1993 all uses with show_debug_regs. Replace all uses that considered
1994 debug_hw_points as a multi-value integer with straight boolean
1996 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1997 with show_debug_regs.
1998 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1999 all uses with show_debug_regs.
2000 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2001 uses with show_debug_regs.
2003 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2005 * findvar.c (address_from_register): Handle targets requiring
2006 a special conversion routine even for plain pointer types.
2008 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2010 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2011 (store_register): Do not call exec_one_dummy_insn.
2013 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2015 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2016 dereference it first. Use value_enclosing_type instead of
2018 (ada_array_length): Likewise.
2020 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2022 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2023 Adjust function implementation and documentation accordingly.
2024 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2025 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2026 Update call to ada_value_ptr_subscript.
2028 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2030 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2031 instead of VAL's type.
2033 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2035 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2037 2014-09-09 Doug Evans <xdje42@gmail.com>
2040 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2041 last parameter to pkg-config, not first.
2042 * configure.ac: Pass --with-guile provided pkg-config path to
2043 GDB_GUILE_PROGRAM_NAMES.
2044 * configure: Regenerate.
2046 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2048 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2051 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2053 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2054 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2055 the list of sections determining GDB_OSABI_IRIX.
2057 2014-09-09 James Hogan <james.hogan@imgtec.com>
2059 * MAINTAINERS (Write After Approval): Add "James Hogan".
2061 2014-09-09 James Hogan <james.hogan@imgtec.com>
2063 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2065 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2067 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2069 2014-09-08 Doug Evans <xdje42@gmail.com>
2072 * guile.c: #include <signal.h>.
2073 (_initialize_guile): Block SIGCHLD while initializing Guile.
2075 Replaces the following, which is reverted.
2077 2014-07-26 Doug Evans <xdje42@gmail.com>
2080 * configure.ac: Add check for header gc/gc.h.
2081 Add check for function setenv.
2082 * configure: Regenerate.
2083 * config.in: Regenerate.
2084 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2086 2014-09-08 Doug Evans <xdje42@gmail.com>
2088 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2089 with named constant. Fix style of pointer comparison.
2090 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2092 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2095 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2096 decide whether we display the command on "show user".
2097 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2098 printing command name.
2099 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2100 * cli/cli-decode.c (cli_user_command_p): Create helper function
2101 to verify whether cmd_list_element is a user-defined command.
2103 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2106 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2107 Fix goto out of TRY_CATCH.
2109 2014-09-06 Doug Evans <xdje42@gmail.com>
2110 Tom Tromey <tromey@redhat.com>
2113 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2114 $_any_caller_matches.
2115 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2116 * python/lib/gdb/function/caller_is.py: New file.
2118 2014-09-06 Doug Evans <xdje42@gmail.com>
2120 * infcmd.c (program_info): Fix typo.
2122 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2125 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2126 'number'. New variable 'has_digit'. Rewrite code to deal with
2127 subexpressions on SDT probes.
2129 2014-09-04 Pedro Alves <palves@redhat.com>
2131 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2132 the input is only one character long.
2134 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2137 * f-valprint.c (f_val_print): Specify the correct print option to
2138 use when printing integer values.
2140 2014-09-04 Gary Benson <gbenson@redhat.com>
2142 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2143 Remove code to cope with LWPs wrapped as PIDs.
2144 Add assertions to ensure no wrapped LWPs are passed.
2146 2014-09-04 Pedro Alves <palves@redhat.com>
2148 * value.c (value_ranges_copy_adjusted): New function, factored out
2150 (value_contents_copy_raw): ... here.
2151 (unpack_value_bits_as_long_1): Rename back to ...
2152 (unpack_bits_as_long): ... this. Remove 'original_value' and
2153 'result' parameters. Change return type to LONGEST.
2154 (unpack_value_bits_as_long): Delete.
2155 (unpack_value_field_as_long_1): Delete.
2156 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2157 (unpack_value_bitfield): New function.
2158 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2159 (value_fetch_lazy): Use unpack_value_bitfield.
2160 * value.h (unpack_value_bits_as_long): Delete declaration.
2162 2014-09-03 Sasha Smundak <asmundak@google.com>
2164 * python/py-frame.c (frapy_read_register): New function.
2166 2014-09-03 James Hogan <james.hogan@imgtec.com>
2168 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2169 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2171 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2174 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2176 (add_cmd): Set "completer_handle_brkchars" to NULL.
2177 * cli/cli-decode.h (struct cmd_list_element)
2178 <completer_handle_brkchars>: New field.
2179 * command.h (completer_ftype_void): New typedef.
2180 (set_cmd_completer_handle_brkchars): New prototype.
2181 * completer.c (set_gdb_completion_word_break_characters): New
2183 (complete_line_internal): Call "completer_handle_brkchars"
2184 callback from command.
2185 * completer.h: Include "command.h".
2186 (set_gdb_completion_word_break_characters): New prototype.
2187 * python/py-cmd.c (cmdpy_completer_helper): New function.
2188 (cmdpy_completer_handle_brkchars): New function.
2189 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2190 (cmdpy_init): Set completer_handle_brkchars to
2191 cmdpy_completer_handle_brkchars.
2193 2014-09-03 Gary Benson <gbenson@redhat.com>
2195 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2196 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2197 Loop conditions changed to equivalent form.
2198 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2199 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2200 ALL_DEBUG_ADDRESS_REGISTERS.
2202 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2204 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2207 2014-09-02 Doug Evans <dje@google.com>
2209 * typeprint.c (find_global_typedef): Fix comment.
2211 2014-09-02 Gary Benson <gbenson@redhat.com>
2213 * i386-nat.h: Renamed as...
2214 * x86-nat.h: New file. All type, function and variable name
2215 prefixes changed from "i386_" to "x86_". All references updated.
2216 * i386-nat.c: Renamed as...
2217 * x86-nat.c: New file. All type, function and variable name
2218 prefixes changed from "i386_" to "x86_". All references updated.
2219 * common/i386-xstate.h: Renamed as...
2220 * common/x86-xstate.h: New file. All type, function and variable
2221 name prefixes changed from "i386_" to "x86_". All references
2223 * nat/i386-cpuid.h: Renamed as...
2224 * nat/x86-cpuid.h: New file. All type, function and variable name
2225 prefixes changed from "i386_" to "x86_". All references updated.
2226 * nat/i386-gcc-cpuid.h: Renamed as...
2227 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2228 name prefixes changed from "i386_" to "x86_". All references
2230 * nat/i386-dregs.h: Renamed as...
2231 * nat/x86-dregs.h: New file. All type, function and variable name
2232 prefixes changed from "i386_" to "x86_". All references updated.
2233 * nat/i386-dregs.c: Renamed as...
2234 * nat/x86-dregs.c: New file. All type, function and variable name
2235 prefixes changed from "i386_" to "x86_". All references updated.
2237 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2239 * varobj.c (_initialize_varobj): Move to the end of file.
2241 2014-08-29 Gary Benson <gbenson@redhat.com>
2243 * common/common-exceptions.h: New file.
2244 * common/common-exceptions.c: Likewise.
2245 * Makefile.in (SFILES): Add common/common-exceptions.c.
2246 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2247 (COMMON_OBS): Add common-exceptions.o.
2248 (common-exceptions.o): New rule.
2249 * exceptions.h (common-exceptions.h): Include.
2250 (gdb_setjmp.h): Do not include.
2251 (return_reason): Moved to common-exceptions.h.
2252 (enum return_reason): Likewise.
2253 (RETURN_MASK): Likewise.
2254 (typedef return_mask): Likewise.
2255 (enum errors): Likewise.
2256 (struct gdb_exception): Likewise.
2257 (exceptions_state_mc_init): Likewise.
2258 (exceptions_state_mc_action_iter): Likewise.
2259 (exceptions_state_mc_action_iter_1): Likewise.
2260 (TRY_CATCH): Likewise.
2261 (throw_exception): Likewise.
2262 (throw_verror): Likewise.
2263 (throw_vquit): Likewise.
2264 (throw_error): Likewise.
2265 (throw_quit): Likewise.
2266 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2267 (enum catcher_action): Likewise.
2268 (struct catcher): Likewise.
2269 (current_catcher): Likewise.
2270 (catcher_list_size): Likewise.
2271 (exceptions_state_mc_init): Likewise.
2272 (catcher_pop): Likewise.
2273 (exceptions_state_mc): Likewise.
2274 (exceptions_state_mc_action_iter): Likewise.
2275 (exceptions_state_mc_action_iter_1): Likewise.
2276 (throw_exception): Likewise.
2277 (exception_messages): Likewise.
2278 (exception_messages_size): Likewise.
2279 (throw_it): Likewise.
2280 (throw_verror): Likewise.
2281 (throw_vquit): Likewise.
2282 (throw_error): Likewise.
2283 (throw_quit): Likewise.
2284 (prepare_to_throw_exception): New function.
2286 2014-08-29 Gary Benson <gbenson@redhat.com>
2288 * common/gdb_setjmp.h: New file.
2289 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2290 * configure.ac: Move sigsetjmp check...
2291 * common/common.m4: ...here.
2292 * configure: Regenerate.
2293 * cp-support.c (SIGJMP_BUF): Delete.
2294 (SIGSETJMP): Likewise.
2295 (SIGLONGJMP): Likewise.
2296 * exceptions.h (gdb_setjmp.h): Include.
2297 (setjmp.h): Do not include.
2298 (EXCEPTIONS_SIGJMP_BUF): Delete.
2299 (EXCEPTIONS_SIGSETJMP): Likewise.
2300 (EXCEPTIONS_SIGLONGJMP): Likewise.
2301 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2303 * exceptions.c: Likewise.
2305 2014-08-29 Gary Benson <gbenson@redhat.com>
2307 * cleanups.h: Moved to...
2308 * common/cleanups.h: New file.
2309 * cleanups.c: Moved to...
2310 * common/cleanups.c: New file. Include common-defs.h and
2311 cleanups.h. Do not include defs.h.
2312 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2313 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2314 (cleanups.o): New rule.
2316 2014-08-29 Gary Benson <gbenson@redhat.com>
2318 * common/errors.h (internal_warning): New declaration.
2319 (internal_vwarning): Likewise.
2320 * common/errors.c (internal_warning): New function.
2321 * utils.h (internal_warning): Don't declare.
2322 (internal_vwarning): Likewise.
2323 * utils.c (internal_warning): Removed.
2325 2014-08-29 Gary Benson <gbenson@redhat.com>
2327 * main.c (captured_main): Use warning during startup.
2328 Prefix startup warning messages with command name.
2330 2014-08-29 Gary Benson <gbenson@redhat.com>
2332 * main.c (captured_main): Handle usage errors with error.
2334 2014-08-29 Gary Benson <gbenson@redhat.com>
2336 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2337 exit pair with a call to error. Wrap the message with _().
2339 2014-08-29 Gary Benson <gbenson@redhat.com>
2341 * main.c (captured_main): Replace a fprintf/exit
2342 pair with a call to error. Wrap the message with _().
2344 2014-08-29 Gary Benson <gbenson@redhat.com>
2346 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2347 pairs with calls to error. Wrap the message with _().
2349 2014-08-29 Gary Benson <gbenson@redhat.com>
2351 * utils.c (vwarning): Protect calls to target_terminal_ours
2354 2014-08-29 Gary Benson <gbenson@redhat.com>
2356 * exceptions.c (print_flush): Protect calls to
2357 target_terminal_ours and wrap_here.
2359 2014-08-29 Gary Benson <gbenson@redhat.com>
2361 * utils.h (filtered_printing_initialized): New declaration.
2362 * utils.c (abort_with_message): New function.
2363 (internal_vproblem): Use abort_with_message for first level
2364 recursive internal problems, and if gdb_stderr is not set up.
2365 Protect calls to target_terminal_ours, begin_line and query.
2367 2014-08-28 Doug Evans <dje@google.com>
2369 * symtab.c (in_prologue): Move definition to better spot.
2370 (skip_prologue_using_sal): Ditto.
2372 2014-08-28 Doug Evans <dje@google.com>
2374 * symtab.c (find_function_start_sal): Move definition to better spot.
2376 2014-08-28 Yao Qi <yao@codesourcery.com>
2378 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2379 found_stack_adjust in forward scan. Remove condition check
2380 on found_stack_adjust which is always true. Indent the code.
2382 2014-08-28 Yao Qi <yao@codesourcery.com>
2384 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2385 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2386 (dwarf_decode_lines): Remove argument
2387 want_line_info. Remove condition check on want_line_info.
2390 2014-08-27 Doug Evans <dje@google.com>
2392 * dwarf2read.c (dwarf_record_line): Fix typo.
2394 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2396 * target.h (struct target_ops::to_terminal_save_ours): Remove
2398 (target_terminal_save_ours): Remove macro.
2399 * target-delegates.c: Regenerate.
2400 * inf-child.c (inf_child_target): Don't set the nonexistent
2401 field to_terminal_save_ours.
2402 * inferior.h (child_terminal_save_ours): Remove declaration.
2403 * terminal.h (gdb_save_tty_state): New declaration.
2404 * inflow.c (child_terminal_save_ours): Rename to ...
2405 (gdb_save_tty_state): ... this.
2406 * tui/tui.c: Include terminal.h.
2407 (tui_enable): Use gdb_save_tty_state instead of
2408 target_terminal_save_ours.
2409 (tui_disable): Likewise.
2411 2014-08-25 Doug Evans <dje@google.com>
2413 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2414 Pass NULL instead of 0 for context pointer.
2416 2014-08-25 Yao Qi <yao@codesourcery.com>
2418 * dwarf2read.c: Fix grammatical error.
2420 2014-08-24 Yao Qi <yao@codesourcery.com>
2422 * dwarf2read.c (scan_partial_symbols): Update comments.
2423 Rename argument 'need_pc' with 'set_addrmap'.
2424 (add_partial_namespace): Rename argument 'need_pc' with
2426 (add_partial_module): Likewise.
2427 (add_partial_subprogram): Likewise. Update comments.
2428 (dwarf2_name): Fix typo.
2430 2014-08-22 Doug Evans <dje@google.com>
2433 * dwarf2read.c (dwarf_record_line_p): New function.
2434 (dwarf_decode_lines_1): Ignore subsequent line number entries
2435 for the same line if any entry had a non-zero discriminator.
2437 2014-08-22 Doug Evans <dje@google.com>
2439 * buildsym.h (record_line_ftype): New typedef.
2440 (record_line): Use it.
2441 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2442 (dwarf_decode_lines_1): Call them.
2444 2014-08-22 Yao Qi <yao@codesourcery.com>
2446 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2447 (ctf_end): Remove code.
2449 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2451 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2452 (linux_make_corefile_notes): call update_thread_list, protected against
2455 2014-08-21 Pedro Alves <palves@redhat.com>
2457 * infcmd.c (attach_command): Remove comment.
2459 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2461 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2462 unsigned LONGEST to ULONGEST.
2464 2014-08-20 Pedro Alves <palves@redhat.com>
2466 * Makefile.in (check-read1): New rule.
2468 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2470 * value.c (value_from_contents_and_address): Strip resolved_type's
2471 typedef layers before checking its TYPE_DATA_LOCATION.
2473 2014-08-20 Pedro Alves <palves@redhat.com>
2475 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2477 2014-08-20 Yao Qi <yao@codesourcery.com>
2479 * amd64-tdep.c (amd64_classify): Add a blank line after the
2480 example. Move "*/" to a new line.
2481 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2482 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2483 * dwarf2read.c (psymtab_include_file_name): Likewise.
2485 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2486 Pedro Alves <palves@redhat.com>
2490 * ada-lang.c (coerce_unspec_val_to_type): Use
2491 value_contents_copy_raw.
2492 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2493 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2494 * cp-valprint.c (cp_print_value_fields): Let the common printing
2495 code handle optimized out values.
2496 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2497 * d-valprint.c (dynamic_array_type): Use
2498 value_bits_any_optimized_out.
2499 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2500 check_any_valid fields.
2501 (check_pieced_value_bits): Delete and inline ...
2502 (check_pieced_synthetic_pointer): ... here.
2503 (check_pieced_value_validity): Delete.
2504 (check_pieced_value_invalid): Delete.
2505 (pieced_value_funcs): Remove check_validity and check_any_valid
2507 (read_pieced_value): Use mark_value_bits_optimized_out.
2508 (write_pieced_value): Switch to use
2509 mark_value_bytes_optimized_out.
2510 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2511 of assuming the whole value is optimized out.
2512 * findvar.c (read_frame_register_value): Remove special handling
2513 of optimized out registers.
2514 (value_from_register): Use mark_value_bytes_optimized_out.
2515 * frame-unwind.c (frame_unwind_got_optimized): Use
2516 mark_value_bytes_optimized_out.
2517 * jv-valprint.c (java_value_print): Adjust.
2518 (java_print_value_fields): Let the common printing code handle
2519 optimized out values.
2520 * mips-tdep.c (mips_print_register): Remove special handling of
2521 optimized out registers.
2522 * opencl-lang.c (lval_func_check_validity): Delete.
2523 (lval_func_check_any_valid): Delete.
2524 (opencl_value_funcs): Remove check_validity and check_any_valid
2526 * p-valprint.c (pascal_object_print_value_fields): Let the common
2527 printing code handle optimized out values.
2528 * stack.c (read_frame_arg): Remove special handling of optimized
2529 out values. Fetch both VAL and ENTRYVAL before comparing
2530 contents. Adjust to value_available_contents_eq rename.
2531 * valprint.c (valprint_check_validity)
2532 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2533 (val_print_array_elements): Adjust.
2534 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2535 (value_bits_any_optimized_out): New function.
2536 (value_entirely_covered_by_range_vector): New function, factored
2537 out from value_entirely_unavailable.
2538 (value_entirely_unavailable): Reimplement.
2539 (value_entirely_optimized_out): New function.
2540 (insert_into_bit_range_vector): New function, factored out from
2541 mark_value_bits_unavailable.
2542 (mark_value_bits_unavailable): Reimplement.
2543 (struct ranges_and_idx): New struct.
2544 (find_first_range_overlap_and_match): New function, factored out
2545 from value_available_contents_bits_eq.
2546 (value_available_contents_bits_eq): Rename to ...
2547 (value_contents_bits_eq): ... this. Check both unavailable
2548 contents and optimized out contents.
2549 (value_available_contents_eq): Rename to ...
2550 (value_contents_eq): ... this.
2551 (allocate_value_lazy): Remove reference to the old optimized_out
2553 (allocate_optimized_out_value): Use
2554 mark_value_bytes_optimized_out.
2555 (require_not_optimized_out): Adjust to check whether the
2556 optimized_out vec is empty.
2557 (ranges_copy_adjusted): New function, factored out from
2558 value_contents_copy_raw.
2559 (value_contents_copy_raw): Also copy the optimized out ranges.
2560 Assert the destination ranges aren't optimized out.
2561 (value_contents_copy): Update comment, remove call to
2562 require_not_optimized_out.
2563 (value_contents_equal): Adjust to check whether the optimized_out
2565 (set_value_optimized_out, value_optimized_out_const): Delete.
2566 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2568 (value_entirely_optimized_out, value_bits_valid): Delete.
2569 (value_copy): Take a VEC copy of the 'optimized_out' field.
2570 (value_primitive_field): Remove special handling of optimized out.
2571 (value_fetch_lazy): Assert that lazy values have no unavailable
2572 regions. Use value_bits_any_optimized_out. Remove some special
2573 handling for optimized out values.
2574 * value.h: Add intro comment about <optimized out> and
2576 (struct lval_funcs): Remove check_validity and check_any_valid
2578 (set_value_optimized_out, value_optimized_out_const): Remove.
2579 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2581 (value_bits_any_optimized_out): New declaration.
2582 (value_bits_valid): Delete declaration.
2583 (value_available_contents_eq): Rename to ...
2584 (value_contents_eq): ... this, and extend comments.
2586 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2588 Fix -fsanitize=address on unreadable inferior strings.
2589 * valprint.c (val_print_string): Fix access before BUFFER.
2591 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2593 * target.c (target_struct_size): Remove.
2594 (target_struct_allocsize): Remove.
2595 (DEFAULT_ALLOCSIZE): Remove.
2596 (target_ops_p): New typedef.
2597 (DEF_VEC_P (target_ops_p)): New vector type.
2598 (target_structs): Change type to VEC (target_ops_p).
2599 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2600 (find_default_run_target): Rewrite for loop following changes to
2603 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2605 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2606 Adjust code accordingly. Adjust function description comment.
2608 2014-08-19 Yao Qi <yao@codesourcery.com>
2610 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2613 2014-08-19 Alan Modra <amodra@gmail.com>
2615 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2616 * config.in: Regenerate.
2617 * configure: Regenerate.
2619 2014-08-19 Tom Tromey <tromey@redhat.com>
2620 Gary Benson <gbenson@redhat.com>
2622 * common/common-debug.h: New file.
2623 * common/common-debug.c: Likewise.
2624 * debug.c: Likewise.
2625 * Makefile.in (SFILES): Add common/common-debug.c.
2626 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2627 (COMMON_OBS): Add common-debug.o and debug.o.
2628 (common-debug.o): New rule.
2629 * common/common-defs.h: Include common-debug.h.
2630 * common/agent.c (debug_agent_printf): New function.
2631 (DEBUG_AGENT): Redefine.
2632 * nat/i386-dregs.c (debug_printf): Undefine.
2634 2014-08-19 Gary Benson <gbenson@redhat.com>
2636 * common/common-defs.h: Include print-utils.h.
2637 * utils.h: Do not include print-utils.h.
2639 2014-08-19 Tom Tromey <tromey@redhat.com>
2640 Gary Benson <gbenson@redhat.com>
2642 * common/common-types.h: New file.
2643 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2644 * common/common-defs.h: Include common-types.h.
2645 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2648 2014-08-19 Tom Tromey <tromey@redhat.com>
2649 Gary Benson <gbenson@redhat.com>
2651 * common/errors.h: New file.
2652 * common/errors.c: Likewise.
2653 * Makefile.in (SFILES): Add common/errors.c.
2654 (HFILES_NO_SRCDIR): Add common/errors.h.
2655 (COMMON_OBS): Add errors.o.
2656 (errors.o): New rule.
2657 * common/common-defs.h: Include errors.h.
2658 * utils.h (perror_with_name, error, verror, warning, vwarning):
2660 * common/common-utils.h: (malloc_failure, internal_error):
2663 2014-08-19 Gary Benson <gbenson@redhat.com>
2665 * utils.c (internal_vproblem): Always print the message.
2667 2014-08-18 Doug Evans <dje@google.com>
2669 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2671 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2673 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2674 Return 0 if TYPE is dynamic.
2675 (print_range): Add handling of dynamic ranges.
2677 2014-08-18 Keven Boell <keven.boell@intel.com>
2678 Joel Brobecker <brobecker@adacore.com>
2680 * gdbtypes.h (struct main_type): Add field "data_location".
2681 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2682 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2683 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2684 a dynamic data location.
2685 (resolve_dynamic_type): Add DW_AT_data_location handling.
2686 (copy_recursive, copy_type): Copy the data_location information
2688 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2689 * value.c (value_from_contents_and_address): Add
2690 DW_AT_data_location handling.
2692 2014-08-18 Keven Boell <keven.boell@intel.com>
2693 Joel Brobecker <brobecker@adacore.com>
2695 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2696 field "get_object_address".
2697 * dwarf2expr.c (execute_stack_op): Add handling for
2698 DW_OP_push_object_address.
2699 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2700 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2701 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2702 (dwarf_expr_get_obj_addr): New function.
2703 (dwarf_expr_ctx_funcs): Add get_object_address field.
2704 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2705 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2706 (dwarf2_evaluate_property): Add parameter "address". Use it.
2707 (needs_get_obj_addr): New function.
2708 (needs_frame_ctx_funcs): Add get_object_address field.
2709 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2710 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2711 (resolve_dynamic_array): Likewise.
2713 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2715 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2716 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2717 fixed value for records and unions for which some GNAT encodings
2720 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2722 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2723 rewrite to avoid "else if" and "else" constructs. Should be
2724 a no-op in practice.
2726 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2728 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2731 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2734 * eval.c: Update all calls to find_overload_match.
2735 * valarith.c: Likewise.
2736 (value_user_defined_cpp_op, value_user_defined_op): New
2737 argument NOSIDE. Update all callers.
2738 * valops.c (find_overload_match): New argument NOSIDE.
2739 * value.h (find_overload_match): Update signature.
2741 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2743 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2744 'items' methods instead of 'iteritems' method on dictionaries.
2746 2014-08-15 Doug Evans <dje@google.com>
2748 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2751 2014-08-15 Doug Evans <dje@google.com>
2753 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2755 2014-08-15 Doug Evans <dje@google.com>
2757 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2759 2014-08-15 Doug Evans <dje@google.com>
2761 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2764 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2766 * dcache.h: Include target.h, to avoid compile time warnings.
2768 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2770 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2771 frame_info" partial declaration.
2772 * gdbarch.h: Regenerate.
2774 2014-08-15 Yao Qi <yao@codesourcery.com>
2776 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2777 Add parameter 'decode_for_pst_p'. Callers update.
2779 2014-08-13 Yao Qi <yao@codesourcery.com>
2782 * configure.ac: Use local variable 'pos'.
2783 * configure: Regenerated.
2785 2014-08-11 Doug Evans <dje@google.com>
2787 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2788 message, it is redundant with "Reading symbols from ..." message.
2790 2014-08-10 Doug Evans <xdje42@gmail.com>
2792 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2794 2014-08-09 Yao Qi <yao@codesourcery.com>
2797 * remote.c (remote_xfer_partial): Remove dead code.
2799 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2801 * ia64-linux-tdep.c: Include "regset.h".
2802 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2803 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2804 (ia64_linux_supply_fpregset): New function.
2805 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2806 (ia64_linux_regset_from_core_section): New function.
2807 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2810 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2812 * m68klinux-tdep.c: Include "regset.h".
2813 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2814 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2815 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2816 (m68k_linux_regset_from_core_section): New function.
2817 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2820 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2822 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2823 function. Move logic to...
2824 (tilegx_linux_regmap): ... this new register map.
2825 (tilegx_linux_regset): Refer to register map, replace supply
2826 method by regcache_supply_regset, and add collect method.
2827 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2828 TILEGX_FIRST_EASY_REGNUM.
2830 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2832 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2833 that calls regcache_supply_regset and handles the EPC register
2834 separately. Move main logic to...
2835 (score7_linux_gregmap): ... this new register map.
2836 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2837 (score7_linux_gregset): Refer to register map. Add collect method.
2838 (score7_linux_regset_from_core_section): Replace
2839 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2840 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2841 (struct regset): Delete unused forward declaraction.
2842 (struct pt_regs): Delete structure definition.
2843 (elf_gregset_t): Delete typedef.
2845 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2847 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2848 (nios2_core_regset): Add collect method.
2850 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2852 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2853 platform-independent and don't write to read-only input buffer.
2854 (m32r_linux_collect_gregset): New function.
2855 (m32r_linux_gregset): Add collect method.
2857 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2859 * hppa-linux-tdep.c (greg_map): Rename to...
2860 (hppa_linux_gregmap): ... this. Also convert to
2861 regcache_map_entry format.
2862 (hppa_linux_supply_regset): Delete function.
2863 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2864 (hppa_linux_fpregmap): ... this new register map.
2865 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2866 register map, replace supply method by regcache_supply_regset, and
2867 add collect method regcache_collect_regset.
2869 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2871 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2872 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2873 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2874 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2875 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2876 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2877 (frv_linux_supply_gregset): Replace main logic by call to
2878 regcache_supply_regset, but keep clearing gr32-gr63.
2879 (frv_linux_supply_fpregset): Delete function.
2880 (frv_linux_gregset): Refer to appropriate register map and add
2881 regcache_collect_regset as the collect method.
2882 (frv_linux_fpregset): Likewise. Also exchange the supply method
2883 by regcache_supply_regset.
2885 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2887 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2888 by call to alpha_supply_int_regs.
2889 (alpha_linux_collect_gregset): New function.
2890 (alpha_linux_supply_fpregset): Replace logic by call to
2891 alpha_supply_fp_regs.
2892 (alpha_linux_collect_fpregset): New function.
2893 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2895 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2897 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2898 by call to regcache_collect_regset.
2899 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2900 instead of aarch64_linux_supply_gregset/_fpregset.
2901 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2902 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2903 header file instead.
2904 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2905 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2906 functions. Move logic to ...
2907 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2909 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2910 refer to new register maps, replace *_regset_from_core by
2911 regcache_supply_regset, and also use regcache_collect_regset.
2912 * aarch64-linux-tdep.h: Include "regset.h".
2913 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2915 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2916 macros, moved from C source file.
2917 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2918 variable declarations.
2920 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2922 * s390-linux-nat.c: Include "regset.h".
2923 (regmap_gregset): Delete macro.
2924 (s390_64_regmap_gregset): New register map for
2925 regcache_supply/_collect_regset.
2926 (s390_64_gregset): New regset.
2927 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2928 (regmap_fpregset): Delete macro.
2929 (s390_native_supply, s390_native_collect): Delete functions.
2930 (supply_gregset, fill_gregset): Replace s390-specific regmap
2931 handling by a call to regcache_supply/_collect_regset.
2932 (supply_fpregset, fill_fpregset): Call regcache_supply/
2933 _collect_regset instead of s390_native_supply/_collect.
2934 (fetch_regset, store_regset): Likewise. Also change the last
2935 parameter to a regset instead of a regmap.
2936 (s390_linux_fetch_inferior_registers)
2937 (390_linux_store_inferior_registers): Adjust last parameter in
2938 calls to fetch_regset and store_regset.
2939 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2940 (s390_gregmap): ... this. Also make static const and convert to
2941 regcache_map_entry format.
2942 (s390x_regmap_gregset): Delete.
2943 (s390_regmap_fpregset): Rename to...
2944 (s390_fpregmap): ... this. Make static const and convert to
2945 regcache_map_entry format.
2946 (s390_regmap_upper, s390_regmap_last_break)
2947 (s390x_regmap_last_break, s390_regmap_system_call)
2948 (s390_regmap_tdb): Likewise.
2949 (s390_supply_regset, s390_collect_regset): Remove functions.
2950 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2952 (s390_gregset, s390_fpregset, s390_upper_regset)
2953 (s390_last_break_regset, s390x_last_break_regset)
2954 (s390_system_call_regset, s390_tdb_regset): Make global and
2955 replace s390_supply/_collect_regset by regcache_supply/
2957 (s390x_gregset): Delete.
2958 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2959 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2960 (s390_regmap_fpregset, s390_regmap_last_break)
2961 (s390x_regmap_last_break, s390_regmap_system_call)
2962 (s390_regmap_tdb): Delete global variable declarations.
2963 (s390_gregset, s390_fpregset, s390_last_break_regset)
2964 (s390x_last_break_regset, s390_system_call_regset)
2965 (s390_tdb_regset): New global variable declarations.
2967 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2969 * regcache.c: Include "regset.h".
2970 (regcache_transfer_regset): New local function.
2971 (regcache_supply_regset, regcache_collect_regset): New functions.
2972 * regcache.h (struct regcache_map_entry): New structure.
2973 (REGCACHE_MAP_SKIP): New enum value.
2974 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2976 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2978 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2979 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2980 (ppc_linux_collect_gregset ): Likewise.
2981 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2982 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2983 (ppc_collect_vrregset): Likewise.
2984 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2987 2014-08-07 Yao Qi <yao@codesourcery.com>
2989 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2990 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2991 * remote.c (remote_read_bytes): Likewise.
2993 2014-08-07 Yao Qi <yao@codesourcery.com>
2995 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2997 2014-08-07 Yao Qi <yao@codesourcery.com>
3000 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3001 TARGET_XFER_OK instead of 0.
3003 2014-08-07 Gary Benson <gbenson@redhat.com>
3005 * common/common-defs.h: Include errno.h.
3006 * defs.h: Do not include errno.h.
3007 * ada-typeprint.c: Likewise.
3008 * c-typeprint.c: Likewise.
3009 * core-regset.c: Likewise.
3010 * corefile.c: Likewise.
3011 * corelow.c: Likewise.
3012 * event-loop.c: Likewise.
3013 * f-typeprint.c: Likewise.
3014 * gnu-nat.c: Likewise.
3015 * go32-nat.c: Likewise.
3016 * i386gnu-nat.c: Likewise.
3017 * m2-typeprint.c: Likewise.
3018 * nat/linux-btrace.c: Likewise.
3019 * p-typeprint.c: Likewise.
3020 * procfs.c: Likewise.
3021 * remote-sim.c: Likewise.
3022 * rs6000-nat.c: Likewise.
3023 * target.c: Likewise.
3024 * typeprint.c: Likewise.
3025 * ui-file.c: Likewise.
3026 * valops.c: Likewise.
3027 * valprint.c: Likewise.
3029 2014-08-07 Gary Benson <gbenson@redhat.com>
3031 * common/common-defs.h: Include string.h.
3032 * aarch64-tdep.c: Do not include string.h.
3033 * ada-exp.y: Likewise.
3034 * ada-lang.c: Likewise.
3035 * ada-lex.l: Likewise.
3036 * ada-typeprint.c: Likewise.
3037 * ada-valprint.c: Likewise.
3038 * aix-thread.c: Likewise.
3039 * alpha-linux-tdep.c: Likewise.
3040 * alpha-mdebug-tdep.c: Likewise.
3041 * alpha-nat.c: Likewise.
3042 * alpha-osf1-tdep.c: Likewise.
3043 * alpha-tdep.c: Likewise.
3044 * alphanbsd-tdep.c: Likewise.
3045 * amd64-dicos-tdep.c: Likewise.
3046 * amd64-linux-tdep.c: Likewise.
3047 * amd64-nat.c: Likewise.
3048 * amd64-sol2-tdep.c: Likewise.
3049 * amd64fbsd-tdep.c: Likewise.
3050 * amd64obsd-tdep.c: Likewise.
3051 * arch-utils.c: Likewise.
3052 * arm-linux-nat.c: Likewise.
3053 * arm-linux-tdep.c: Likewise.
3054 * arm-tdep.c: Likewise.
3055 * arm-wince-tdep.c: Likewise.
3056 * armbsd-tdep.c: Likewise.
3057 * armnbsd-nat.c: Likewise.
3058 * armnbsd-tdep.c: Likewise.
3059 * armobsd-tdep.c: Likewise.
3060 * avr-tdep.c: Likewise.
3061 * ax-gdb.c: Likewise.
3062 * ax-general.c: Likewise.
3063 * bcache.c: Likewise.
3064 * bfin-tdep.c: Likewise.
3065 * breakpoint.c: Likewise.
3066 * build-id.c: Likewise.
3067 * buildsym.c: Likewise.
3068 * c-exp.y: Likewise.
3069 * c-lang.c: Likewise.
3070 * c-typeprint.c: Likewise.
3071 * c-valprint.c: Likewise.
3072 * charset.c: Likewise.
3073 * cli-out.c: Likewise.
3074 * cli/cli-cmds.c: Likewise.
3075 * cli/cli-decode.c: Likewise.
3076 * cli/cli-dump.c: Likewise.
3077 * cli/cli-interp.c: Likewise.
3078 * cli/cli-logging.c: Likewise.
3079 * cli/cli-script.c: Likewise.
3080 * cli/cli-setshow.c: Likewise.
3081 * cli/cli-utils.c: Likewise.
3082 * coffread.c: Likewise.
3083 * common/agent.c: Likewise.
3084 * common/buffer.c: Likewise.
3085 * common/buffer.h: Likewise.
3086 * common/common-utils.c: Likewise.
3087 * common/filestuff.c: Likewise.
3088 * common/filestuff.c: Likewise.
3089 * common/format.c: Likewise.
3090 * common/print-utils.c: Likewise.
3091 * common/rsp-low.c: Likewise.
3092 * common/signals.c: Likewise.
3093 * common/vec.h: Likewise.
3094 * common/xml-utils.c: Likewise.
3095 * core-regset.c: Likewise.
3096 * corefile.c: Likewise.
3097 * corelow.c: Likewise.
3098 * cp-abi.c: Likewise.
3099 * cp-name-parser.y: Likewise.
3100 * cp-support.c: Likewise.
3101 * cp-valprint.c: Likewise.
3102 * cris-tdep.c: Likewise.
3103 * d-exp.y: Likewise.
3104 * darwin-nat.c: Likewise.
3105 * dbxread.c: Likewise.
3106 * dcache.c: Likewise.
3107 * demangle.c: Likewise.
3108 * dicos-tdep.c: Likewise.
3109 * disasm.c: Likewise.
3110 * doublest.c: Likewise.
3111 * dsrec.c: Likewise.
3112 * dummy-frame.c: Likewise.
3113 * dwarf2-frame.c: Likewise.
3114 * dwarf2loc.c: Likewise.
3115 * dwarf2read.c: Likewise.
3116 * elfread.c: Likewise.
3117 * environ.c: Likewise.
3119 * event-loop.c: Likewise.
3120 * exceptions.c: Likewise.
3122 * expprint.c: Likewise.
3123 * f-exp.y: Likewise.
3124 * f-lang.c: Likewise.
3125 * f-typeprint.c: Likewise.
3126 * f-valprint.c: Likewise.
3127 * fbsd-nat.c: Likewise.
3128 * findcmd.c: Likewise.
3129 * findvar.c: Likewise.
3130 * fork-child.c: Likewise.
3131 * frame.c: Likewise.
3132 * frv-linux-tdep.c: Likewise.
3133 * frv-tdep.c: Likewise.
3135 * gdb_bfd.c: Likewise.
3136 * gdbarch.c: Likewise.
3137 * gdbarch.sh: Likewise.
3138 * gdbtypes.c: Likewise.
3139 * gnu-nat.c: Likewise.
3140 * gnu-v2-abi.c: Likewise.
3141 * gnu-v3-abi.c: Likewise.
3142 * go-exp.y: Likewise.
3143 * go-lang.c: Likewise.
3144 * go32-nat.c: Likewise.
3145 * guile/guile.c: Likewise.
3146 * guile/scm-auto-load.c: Likewise.
3147 * hppa-hpux-tdep.c: Likewise.
3148 * hppa-linux-nat.c: Likewise.
3149 * hppanbsd-tdep.c: Likewise.
3150 * hppaobsd-tdep.c: Likewise.
3151 * i386-cygwin-tdep.c: Likewise.
3152 * i386-dicos-tdep.c: Likewise.
3153 * i386-linux-tdep.c: Likewise.
3154 * i386-nto-tdep.c: Likewise.
3155 * i386-sol2-tdep.c: Likewise.
3156 * i386-tdep.c: Likewise.
3157 * i386bsd-tdep.c: Likewise.
3158 * i386gnu-nat.c: Likewise.
3159 * i386nbsd-tdep.c: Likewise.
3160 * i386obsd-tdep.c: Likewise.
3161 * i387-tdep.c: Likewise.
3162 * ia64-libunwind-tdep.c: Likewise.
3163 * ia64-linux-nat.c: Likewise.
3164 * inf-child.c: Likewise.
3165 * inf-ptrace.c: Likewise.
3166 * inf-ttrace.c: Likewise.
3167 * infcall.c: Likewise.
3168 * infcmd.c: Likewise.
3169 * inflow.c: Likewise.
3170 * infrun.c: Likewise.
3171 * interps.c: Likewise.
3172 * iq2000-tdep.c: Likewise.
3173 * irix5-nat.c: Likewise.
3174 * jv-exp.y: Likewise.
3175 * jv-lang.c: Likewise.
3176 * jv-typeprint.c: Likewise.
3177 * jv-valprint.c: Likewise.
3178 * language.c: Likewise.
3179 * linux-fork.c: Likewise.
3180 * linux-nat.c: Likewise.
3181 * lm32-tdep.c: Likewise.
3182 * m2-exp.y: Likewise.
3183 * m2-typeprint.c: Likewise.
3184 * m32c-tdep.c: Likewise.
3185 * m32r-linux-nat.c: Likewise.
3186 * m32r-linux-tdep.c: Likewise.
3187 * m32r-rom.c: Likewise.
3188 * m32r-tdep.c: Likewise.
3189 * m68hc11-tdep.c: Likewise.
3190 * m68k-tdep.c: Likewise.
3191 * m68kbsd-tdep.c: Likewise.
3192 * m68klinux-nat.c: Likewise.
3193 * m68klinux-tdep.c: Likewise.
3194 * m88k-tdep.c: Likewise.
3195 * machoread.c: Likewise.
3196 * macrocmd.c: Likewise.
3198 * mdebugread.c: Likewise.
3199 * mem-break.c: Likewise.
3200 * memattr.c: Likewise.
3201 * memory-map.c: Likewise.
3202 * mep-tdep.c: Likewise.
3203 * mi/mi-cmd-break.c: Likewise.
3204 * mi/mi-cmd-disas.c: Likewise.
3205 * mi/mi-cmd-env.c: Likewise.
3206 * mi/mi-cmd-stack.c: Likewise.
3207 * mi/mi-cmd-var.c: Likewise.
3208 * mi/mi-cmds.c: Likewise.
3209 * mi/mi-console.c: Likewise.
3210 * mi/mi-getopt.c: Likewise.
3211 * mi/mi-interp.c: Likewise.
3212 * mi/mi-main.c: Likewise.
3213 * mi/mi-parse.c: Likewise.
3214 * microblaze-rom.c: Likewise.
3215 * microblaze-tdep.c: Likewise.
3216 * mingw-hdep.c: Likewise.
3217 * minidebug.c: Likewise.
3218 * minsyms.c: Likewise.
3219 * mips-irix-tdep.c: Likewise.
3220 * mips-linux-tdep.c: Likewise.
3221 * mips-tdep.c: Likewise.
3222 * mips64obsd-tdep.c: Likewise.
3223 * mipsnbsd-tdep.c: Likewise.
3224 * mipsread.c: Likewise.
3225 * mn10300-linux-tdep.c: Likewise.
3226 * mn10300-tdep.c: Likewise.
3227 * monitor.c: Likewise.
3228 * moxie-tdep.c: Likewise.
3229 * mt-tdep.c: Likewise.
3230 * nat/linux-btrace.c: Likewise.
3231 * nat/linux-osdata.c: Likewise.
3232 * nat/linux-procfs.c: Likewise.
3233 * nat/linux-ptrace.c: Likewise.
3234 * nat/linux-waitpid.c: Likewise.
3235 * nbsd-tdep.c: Likewise.
3236 * nios2-linux-tdep.c: Likewise.
3237 * nto-procfs.c: Likewise.
3238 * nto-tdep.c: Likewise.
3239 * objc-lang.c: Likewise.
3240 * objfiles.c: Likewise.
3241 * opencl-lang.c: Likewise.
3242 * osabi.c: Likewise.
3243 * osdata.c: Likewise.
3244 * p-exp.y: Likewise.
3245 * p-lang.c: Likewise.
3246 * p-typeprint.c: Likewise.
3247 * parse.c: Likewise.
3248 * posix-hdep.c: Likewise.
3249 * ppc-linux-nat.c: Likewise.
3250 * ppc-sysv-tdep.c: Likewise.
3251 * ppcfbsd-tdep.c: Likewise.
3252 * ppcnbsd-tdep.c: Likewise.
3253 * ppcobsd-tdep.c: Likewise.
3254 * printcmd.c: Likewise.
3255 * procfs.c: Likewise.
3256 * prologue-value.c: Likewise.
3257 * python/py-auto-load.c: Likewise.
3258 * python/py-gdb-readline.c: Likewise.
3259 * ravenscar-thread.c: Likewise.
3260 * regcache.c: Likewise.
3261 * registry.c: Likewise.
3262 * remote-fileio.c: Likewise.
3263 * remote-m32r-sdi.c: Likewise.
3264 * remote-mips.c: Likewise.
3265 * remote-notif.c: Likewise.
3266 * remote-sim.c: Likewise.
3267 * remote.c: Likewise.
3268 * reverse.c: Likewise.
3269 * rs6000-aix-tdep.c: Likewise.
3270 * ser-base.c: Likewise.
3271 * ser-go32.c: Likewise.
3272 * ser-mingw.c: Likewise.
3273 * ser-pipe.c: Likewise.
3274 * ser-tcp.c: Likewise.
3275 * ser-unix.c: Likewise.
3276 * serial.c: Likewise.
3277 * sh-tdep.c: Likewise.
3278 * sh64-tdep.c: Likewise.
3279 * shnbsd-tdep.c: Likewise.
3281 * sol-thread.c: Likewise.
3282 * solib-dsbt.c: Likewise.
3283 * solib-frv.c: Likewise.
3284 * solib-osf.c: Likewise.
3285 * solib-som.c: Likewise.
3286 * solib-spu.c: Likewise.
3287 * solib-target.c: Likewise.
3288 * solib.c: Likewise.
3289 * somread.c: Likewise.
3290 * source.c: Likewise.
3291 * sparc-nat.c: Likewise.
3292 * sparc-sol2-tdep.c: Likewise.
3293 * sparc-tdep.c: Likewise.
3294 * sparc64-tdep.c: Likewise.
3295 * sparc64fbsd-tdep.c: Likewise.
3296 * sparc64nbsd-tdep.c: Likewise.
3297 * sparcnbsd-tdep.c: Likewise.
3298 * spu-linux-nat.c: Likewise.
3299 * spu-multiarch.c: Likewise.
3300 * spu-tdep.c: Likewise.
3301 * stabsread.c: Likewise.
3302 * stack.c: Likewise.
3303 * std-regs.c: Likewise.
3304 * symfile.c: Likewise.
3305 * symmisc.c: Likewise.
3306 * symtab.c: Likewise.
3307 * target.c: Likewise.
3308 * thread.c: Likewise.
3309 * tilegx-linux-nat.c: Likewise.
3310 * tilegx-tdep.c: Likewise.
3312 * tracepoint.c: Likewise.
3313 * tui/tui-command.c: Likewise.
3314 * tui/tui-data.c: Likewise.
3315 * tui/tui-disasm.c: Likewise.
3316 * tui/tui-file.c: Likewise.
3317 * tui/tui-layout.c: Likewise.
3318 * tui/tui-out.c: Likewise.
3319 * tui/tui-regs.c: Likewise.
3320 * tui/tui-source.c: Likewise.
3321 * tui/tui-stack.c: Likewise.
3322 * tui/tui-win.c: Likewise.
3323 * tui/tui-windata.c: Likewise.
3324 * tui/tui-winsource.c: Likewise.
3325 * typeprint.c: Likewise.
3326 * ui-file.c: Likewise.
3327 * ui-out.c: Likewise.
3328 * user-regs.c: Likewise.
3329 * utils.c: Likewise.
3330 * v850-tdep.c: Likewise.
3331 * valarith.c: Likewise.
3332 * valops.c: Likewise.
3333 * valprint.c: Likewise.
3334 * value.c: Likewise.
3335 * varobj.c: Likewise.
3336 * vax-tdep.c: Likewise.
3337 * vaxnbsd-tdep.c: Likewise.
3338 * vaxobsd-tdep.c: Likewise.
3339 * windows-nat.c: Likewise.
3340 * xcoffread.c: Likewise.
3341 * xml-support.c: Likewise.
3342 * xstormy16-tdep.c: Likewise.
3343 * xtensa-linux-nat.c: Likewise.
3345 2014-08-07 Gary Benson <gbenson@redhat.com>
3347 * common/common-defs.h: Include gdb_assert.h.
3348 * aarch64-tdep.c: Do not include gdb_assert.h.
3349 * addrmap.c: Likewise.
3350 * aix-thread.c: Likewise.
3351 * alpha-linux-tdep.c: Likewise.
3352 * alpha-mdebug-tdep.c: Likewise.
3353 * alphanbsd-tdep.c: Likewise.
3354 * amd64-nat.c: Likewise.
3355 * amd64-tdep.c: Likewise.
3356 * amd64bsd-nat.c: Likewise.
3357 * amd64fbsd-nat.c: Likewise.
3358 * amd64fbsd-tdep.c: Likewise.
3359 * amd64nbsd-nat.c: Likewise.
3360 * amd64nbsd-tdep.c: Likewise.
3361 * amd64obsd-nat.c: Likewise.
3362 * amd64obsd-tdep.c: Likewise.
3363 * arch-utils.c: Likewise.
3364 * arm-tdep.c: Likewise.
3365 * armbsd-tdep.c: Likewise.
3367 * bcache.c: Likewise.
3368 * bfin-tdep.c: Likewise.
3369 * blockframe.c: Likewise.
3370 * breakpoint.c: Likewise.
3371 * bsd-kvm.c: Likewise.
3372 * bsd-uthread.c: Likewise.
3373 * buildsym.c: Likewise.
3374 * c-exp.y: Likewise.
3375 * c-lang.c: Likewise.
3376 * charset.c: Likewise.
3377 * cleanups.c: Likewise.
3378 * cli-out.c: Likewise.
3379 * cli/cli-decode.c: Likewise.
3380 * cli/cli-dump.c: Likewise.
3381 * cli/cli-logging.c: Likewise.
3382 * cli/cli-script.c: Likewise.
3383 * cli/cli-utils.c: Likewise.
3384 * coffread.c: Likewise.
3385 * common/common-utils.c: Likewise.
3386 * common/queue.h: Likewise.
3387 * common/signals.c: Likewise.
3388 * common/vec.h: Likewise.
3389 * complaints.c: Likewise.
3390 * completer.c: Likewise.
3391 * corelow.c: Likewise.
3392 * cp-abi.c: Likewise.
3393 * cp-name-parser.y: Likewise.
3394 * cp-namespace.c: Likewise.
3395 * cp-support.c: Likewise.
3396 * cris-tdep.c: Likewise.
3397 * dbxread.c: Likewise.
3398 * dictionary.c: Likewise.
3399 * doublest.c: Likewise.
3400 * dsrec.c: Likewise.
3401 * dummy-frame.c: Likewise.
3402 * dwarf2-frame-tailcall.c: Likewise.
3403 * dwarf2-frame.c: Likewise.
3404 * dwarf2expr.c: Likewise.
3405 * dwarf2loc.c: Likewise.
3406 * dwarf2read.c: Likewise.
3408 * event-loop.c: Likewise.
3409 * exceptions.c: Likewise.
3410 * expprint.c: Likewise.
3411 * f-valprint.c: Likewise.
3412 * fbsd-nat.c: Likewise.
3413 * findvar.c: Likewise.
3414 * frame-unwind.c: Likewise.
3415 * frame.c: Likewise.
3416 * frv-tdep.c: Likewise.
3417 * gcore.c: Likewise.
3418 * gdb-dlfcn.c: Likewise.
3419 * gdb_bfd.c: Likewise.
3420 * gdbarch.c: Likewise.
3421 * gdbarch.sh: Likewise.
3422 * gdbtypes.c: Likewise.
3423 * gnu-nat.c: Likewise.
3424 * gnu-v3-abi.c: Likewise.
3425 * go-lang.c: Likewise.
3426 * guile/scm-exception.c: Likewise.
3427 * guile/scm-gsmob.c: Likewise.
3428 * guile/scm-lazy-string.c: Likewise.
3429 * guile/scm-math.c: Likewise.
3430 * guile/scm-pretty-print.c: Likewise.
3431 * guile/scm-safe-call.c: Likewise.
3432 * guile/scm-utils.c: Likewise.
3433 * guile/scm-value.c: Likewise.
3434 * h8300-tdep.c: Likewise.
3435 * hppa-hpux-nat.c: Likewise.
3436 * hppa-tdep.c: Likewise.
3437 * hppanbsd-tdep.c: Likewise.
3438 * hppaobsd-tdep.c: Likewise.
3439 * i386-darwin-nat.c: Likewise.
3440 * i386-darwin-tdep.c: Likewise.
3441 * i386-nto-tdep.c: Likewise.
3442 * i386-tdep.c: Likewise.
3443 * i386bsd-nat.c: Likewise.
3444 * i386fbsd-tdep.c: Likewise.
3445 * i386gnu-nat.c: Likewise.
3446 * i386nbsd-tdep.c: Likewise.
3447 * i386obsd-tdep.c: Likewise.
3448 * i387-tdep.c: Likewise.
3449 * ia64-libunwind-tdep.c: Likewise.
3450 * ia64-tdep.c: Likewise.
3451 * inf-ptrace.c: Likewise.
3452 * inf-ttrace.c: Likewise.
3453 * infcall.c: Likewise.
3454 * infcmd.c: Likewise.
3455 * infrun.c: Likewise.
3456 * inline-frame.c: Likewise.
3457 * interps.c: Likewise.
3458 * jv-lang.c: Likewise.
3459 * jv-typeprint.c: Likewise.
3460 * linux-fork.c: Likewise.
3461 * linux-nat.c: Likewise.
3462 * linux-thread-db.c: Likewise.
3463 * m32c-tdep.c: Likewise.
3464 * m32r-linux-nat.c: Likewise.
3465 * m32r-tdep.c: Likewise.
3466 * m68k-tdep.c: Likewise.
3467 * m68kbsd-nat.c: Likewise.
3468 * m68kbsd-tdep.c: Likewise.
3469 * m88k-tdep.c: Likewise.
3470 * machoread.c: Likewise.
3471 * macroexp.c: Likewise.
3472 * macrotab.c: Likewise.
3473 * maint.c: Likewise.
3474 * mdebugread.c: Likewise.
3475 * memory-map.c: Likewise.
3476 * mep-tdep.c: Likewise.
3477 * mi/mi-common.c: Likewise.
3478 * microblaze-tdep.c: Likewise.
3479 * mingw-hdep.c: Likewise.
3480 * mips-linux-nat.c: Likewise.
3481 * mips-linux-tdep.c: Likewise.
3482 * mips-tdep.c: Likewise.
3483 * mips64obsd-tdep.c: Likewise.
3484 * mipsnbsd-tdep.c: Likewise.
3485 * mn10300-linux-tdep.c: Likewise.
3486 * mn10300-tdep.c: Likewise.
3487 * moxie-tdep.c: Likewise.
3488 * mt-tdep.c: Likewise.
3489 * nat/linux-btrace.c: Likewise.
3490 * nat/linux-osdata.c: Likewise.
3491 * nat/linux-ptrace.c: Likewise.
3492 * nat/mips-linux-watch.c: Likewise.
3493 * nios2-linux-tdep.c: Likewise.
3494 * nios2-tdep.c: Likewise.
3495 * objc-lang.c: Likewise.
3496 * objfiles.c: Likewise.
3497 * obsd-nat.c: Likewise.
3498 * opencl-lang.c: Likewise.
3499 * osabi.c: Likewise.
3500 * parse.c: Likewise.
3501 * ppc-linux-nat.c: Likewise.
3502 * ppc-sysv-tdep.c: Likewise.
3503 * ppcfbsd-nat.c: Likewise.
3504 * ppcfbsd-tdep.c: Likewise.
3505 * ppcnbsd-nat.c: Likewise.
3506 * ppcnbsd-tdep.c: Likewise.
3507 * ppcobsd-nat.c: Likewise.
3508 * ppcobsd-tdep.c: Likewise.
3509 * printcmd.c: Likewise.
3510 * procfs.c: Likewise.
3511 * prologue-value.c: Likewise.
3512 * psymtab.c: Likewise.
3513 * python/py-lazy-string.c: Likewise.
3514 * python/py-value.c: Likewise.
3515 * regcache.c: Likewise.
3516 * reggroups.c: Likewise.
3517 * registry.c: Likewise.
3518 * remote-sim.c: Likewise.
3519 * remote.c: Likewise.
3520 * rs6000-aix-tdep.c: Likewise.
3521 * rs6000-tdep.c: Likewise.
3522 * s390-linux-tdep.c: Likewise.
3523 * score-tdep.c: Likewise.
3524 * ser-base.c: Likewise.
3525 * ser-mingw.c: Likewise.
3526 * sh-tdep.c: Likewise.
3527 * sh64-tdep.c: Likewise.
3528 * solib-darwin.c: Likewise.
3529 * solib-spu.c: Likewise.
3530 * solib-svr4.c: Likewise.
3531 * source.c: Likewise.
3532 * sparc-nat.c: Likewise.
3533 * sparc-sol2-tdep.c: Likewise.
3534 * sparc-tdep.c: Likewise.
3535 * sparc64-sol2-tdep.c: Likewise.
3536 * sparc64-tdep.c: Likewise.
3537 * sparc64fbsd-tdep.c: Likewise.
3538 * sparc64nbsd-tdep.c: Likewise.
3539 * sparc64obsd-tdep.c: Likewise.
3540 * sparcnbsd-tdep.c: Likewise.
3541 * sparcobsd-tdep.c: Likewise.
3542 * spu-multiarch.c: Likewise.
3543 * spu-tdep.c: Likewise.
3544 * stabsread.c: Likewise.
3545 * stack.c: Likewise.
3546 * symfile.c: Likewise.
3547 * symtab.c: Likewise.
3548 * target-descriptions.c: Likewise.
3549 * target-memory.c: Likewise.
3550 * target.c: Likewise.
3551 * tic6x-linux-tdep.c: Likewise.
3552 * tic6x-tdep.c: Likewise.
3553 * tilegx-linux-nat.c: Likewise.
3554 * tilegx-tdep.c: Likewise.
3556 * tramp-frame.c: Likewise.
3557 * tui/tui-out.c: Likewise.
3558 * tui/tui-winsource.c: Likewise.
3559 * ui-out.c: Likewise.
3560 * user-regs.c: Likewise.
3561 * utils.c: Likewise.
3562 * v850-tdep.c: Likewise.
3563 * valops.c: Likewise.
3564 * value.c: Likewise.
3565 * varobj.c: Likewise.
3566 * vax-nat.c: Likewise.
3567 * xml-syscall.c: Likewise.
3568 * xml-tdesc.c: Likewise.
3569 * xstormy16-tdep.c: Likewise.
3570 * xtensa-linux-nat.c: Likewise.
3571 * xtensa-tdep.c: Likewise.
3573 2014-08-07 Gary Benson <gbenson@redhat.com>
3575 * common/common-defs.h: Include common-utils.h.
3576 * defs.h: Do not include common-utils.h.
3577 * common/gdb_assert.h: Likewise.
3578 * darwin-nat.h: Likewise.
3579 * nat/linux-btrace.c: Likewise.
3580 * target/waitstatus.h: Likewise.
3582 2014-08-07 Gary Benson <gbenson@redhat.com>
3584 * common/common-defs.h: Include ptid.h.
3585 * defs.h: Do not include ptid.h.
3586 * inferior.h: Likewise.
3587 * infrun.h: Likewise.
3588 * nat/linux-btrace.h: Likewise.
3589 * nat/linux-osdata.h: Likewise.
3590 * target/waitstatus.h: Likewise.
3592 2014-08-07 Gary Benson <gbenson@redhat.com>
3594 * common/common-defs.h: Include gdb_locale.h.
3595 * defs.h: Do not include gdb_locale.h.
3597 2014-08-07 Gary Benson <gbenson@redhat.com>
3599 * common/common-defs.h: Include gdb/signals.h.
3600 * defs.h: Do not include gdb/signals.h.
3602 2014-08-07 Gary Benson <gbenson@redhat.com>
3604 * common/common-defs.h: Include pathmax.h.
3605 * defs.h: Do not include pathmax.h.
3607 2014-08-07 Gary Benson <gbenson@redhat.com>
3609 * common/common-defs.h: Include libiberty.h.
3610 * defs.h: Do not include libiberty.h.
3611 * common/queue.h: Likewise.
3612 * cp-name-parser.y: Likewise.
3613 * mi/mi-cmd-catch.c: Likewise.
3614 * python/python.c: Likewise.
3616 2014-08-07 Gary Benson <gbenson@redhat.com>
3618 * common/common-defs.h: Include ansidecl.h.
3619 * defs.h: Do not include ansidecl.h.
3620 * common/buffer.h: Likewise.
3621 * common/common-utils.h: Likewise.
3623 2014-08-07 Gary Benson <gbenson@redhat.com>
3625 * common/common-defs.h: Include stddef.h.
3626 * defs.h: Do not include stddef.h.
3627 * common/common-utils.h: Likewise.
3628 * amd64fbsd-nat.c: Likewise.
3629 * bcache.c: Likewise.
3630 * charset.c: Likewise.
3631 * common/buffer.h: Likewise.
3632 * common/vec.h: Likewise.
3633 * i386bsd-nat.c: Likewise.
3634 * nat/linux-btrace.h: Likewise.
3635 * ppcfbsd-nat.c: Likewise.
3636 * ppcnbsd-tdep.h: Likewise.
3637 * ppcobsd-nat.c: Likewise.
3638 * ppcobsd-tdep.h: Likewise.
3639 * python/py-gdb-readline.c: Likewise.
3641 2014-08-07 Gary Benson <gbenson@redhat.com>
3643 * common/common-defs.h: Include stdarg.h.
3644 * defs.h: Do not include stdarg.h.
3645 * ada-lang.c: Likewise.
3646 * common/common-utils.h: Likewise.
3647 * guile/scm-string.c: Likewise.
3648 * guile/scm-utils.c: Likewise.
3649 * m32c-tdep.c: Likewise.
3651 2014-08-07 Gary Benson <gbenson@redhat.com>
3653 * common/common-defs.h: Include stdlib.h.
3654 * defs.h: Do not include stdlib.h.
3655 * addrmap.c: Likewise.
3656 * bcache.c: Likewise.
3657 * common/buffer.c: Likewise.
3658 * common/common-utils.c: Likewise.
3659 * cp-name-parser.y: Likewise.
3660 * go32-nat.c: Likewise.
3661 * mn10300-linux-tdep.c: Likewise.
3662 * nat/linux-osdata.c: Likewise.
3663 * tui/tui.c: Likewise.
3664 * windows-nat.c: Likewise.
3666 2014-08-07 Gary Benson <gbenson@redhat.com>
3668 * common/common-defs.h: Include stdio.h.
3669 * defs.h: Do not include stdio.h.
3670 * ada-lang.c: Likewise.
3671 * common/buffer.c: Likewise.
3672 * common/common-utils.c: Likewise.
3673 * cp-name-parser.y: Likewise.
3674 * gnu-nat.c: Likewise.
3675 * go32-nat.c: Likewise.
3676 * i386gnu-nat.c: Likewise.
3677 * proc-api.c: Likewise.
3678 * proc-events.c: Likewise.
3679 * proc-flags.c: Likewise.
3680 * proc-why.c: Likewise.
3681 * python/python-internal.h: Likewise.
3682 * target-memory.c: Likewise.
3683 * tui/tui-io.c: Likewise.
3684 * tui/tui.c: Likewise.
3686 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3688 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3689 (scan_dyntag_auxv): Same.
3691 2014-08-06 Yao Qi <yao@codesourcery.com>
3693 * amd64-linux-nat.c: Remove duplicated include
3695 * i386-linux-nat.c: Likewise.
3697 2014-08-06 Yao Qi <yao@codesourcery.com>
3699 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3700 operand" with "Special opcode" in comments.
3702 2014-08-05 Gary Benson <gbenson@redhat.com>
3704 * interps.c (initialize_interps): Remove prototype.
3705 (interpreter_initialized): Remove static global.
3706 (interp_add): Do not call initialize_interps.
3707 (initialize_interps): Remove function.
3709 2014-08-05 Gary Benson <gbenson@redhat.com>
3711 * utils.c (vwarning): Remove spurious va_end.
3713 2014-08-05 Alan Modra <amodra@gmail.com>
3715 * charset.c (convert_between_encodings): Cast result of obstack_base.
3716 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3717 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3718 (read_unwind_info): Use size_t for some locals.
3719 * jit.c (finalize_symtab): Likewise.
3720 * utils.c (hashtab_obstack_allocate): Likewise.
3721 * symmisc.c (print_objfile_statistics): Update format strings.
3723 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3725 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3726 (Changes in GDB 7.8): ... here.
3728 2014-08-04 Tom Tromey <tromey@redhat.com>
3730 * target.c (set_targetdebug): New function.
3731 (initialize_targets): Pass set_targetdebug when creating "set
3734 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3736 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3737 if detecting a variable-sized field that is not the last field.
3738 Fix struct type length computation.
3740 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3742 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3745 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3747 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3748 Remove "+ 8" offset in computation of CHAIN_VMA.
3750 2014-07-31 Doug Evans <dje@google.com>
3752 * inflow.c (child_terminal_inferior): Add comment.
3753 (child_terminal_ours_for_output): Add comment.
3754 (child_terminal_ours): Add comment.
3755 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3756 (linux_nat_terminal_ours): Add comment.
3758 2014-07-31 Gary Benson <gbenson@redhat.com>
3760 * common/btrace-common.h: Do not include defs.h or server.h.
3761 * nat/mips-linux-watch.h: Likewise.
3762 * gdb-dlfcn.h: Do not include defs.h.
3763 * tracefile.h: Likewise.
3765 2014-07-30 Roland McGrath <mcgrathr@google.com>
3767 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3769 2014-07-30 Tom Tromey <tromey@redhat.com>
3771 * bsd-kvm.c (bsd_kvm_open): Constify.
3772 * corelow.c (core_open): Constify.
3773 * ctf.c (ctf_open): Constify.
3774 * dbug-rom.c (dbug_open): Constify.
3775 * exec.c (exec_open): Constify.
3776 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3777 * microblaze-rom.c (picobug_open): Constify.
3778 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3780 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3781 * record-btrace.c (record_btrace_open): Constify.
3782 * record-full.c (record_full_core_open_1, record_full_open_1)
3783 (record_full_open): Constify.
3784 * remote-m32r-sdi.c (m32r_open): Constify.
3785 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3786 (rockhopper_open, lsi_open): Constify.
3787 * remote-sim.c (gdbsim_open): Constify.
3788 * remote.c (remote_open, extended_remote_open, remote_open_1):
3790 * target.h (struct target_ops) <to_open>: Make "arg" const.
3791 * tracefile-tfile.c (tfile_open): Constify.
3793 2014-07-30 Tom Tromey <tromey@redhat.com>
3795 * breakpoint.c (map_breakpoint_numbers): Update.
3796 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3797 (get_number_const): New function.
3798 (get_number): Rewrite using get_number_const.
3799 (init_number_or_range): Make "string" const.
3800 (number_is_in_list): Make "list" const.
3801 * cli/cli-utils.h (get_number_const): Declare.
3802 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3803 (init_number_or_range, number_is_in_list): Update.
3804 * printcmd.c (map_display_numbers): Update.
3805 * value.c (value_from_history_ref): Constify.
3806 * value.h (value_from_history_ref): Update.
3808 2014-07-30 Tom Tromey <tromey@redhat.com>
3810 * corefile.c (hook_type, call_extra_exec_file_hooks)
3811 (specify_exec_file_hook): Constify.
3812 * exec.c (exec_file_attach): Make "filename" const.
3813 * gdbcore.h (deprecated_exec_file_display_hook)
3814 (specify_exec_file_hook, exec_file_attach): Constify.
3815 * main.c (captured_main): Use catch_command_errors_const.
3817 2014-07-30 Tom Tromey <tromey@redhat.com>
3819 * target.c (open_target): New function.
3820 (add_target_with_completer, add_deprecated_target_alias): Use
3821 set_cmd_sfunc, set_cmd_context.
3822 (debug_to_open): Remove.
3823 (setup_target_debug): Update.
3825 2014-07-30 Yao Qi <yao@codesourcery.com>
3827 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3829 * parse.c (exp_iterate): Update comments.
3831 2014-07-30 Gary Benson <gbenson@redhat.com>
3833 * common/common-defs.h: New file.
3834 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3835 * defs.h: Include common-defs.h.
3836 Do not include config.h or build-gnulib/config.h.
3838 2014-07-30 Gary Benson <gbenson@redhat.com>
3840 * common/common-utils.h: Do not include config.h.
3841 * nat/linux-btrace.h: Likewise.
3843 2014-07-30 Gary Benson <gbenson@redhat.com>
3845 * btrace.c: Include defs.h.
3846 * common/ptid.c: Include defs.h or server.h as appropriate.
3847 * nat/mips-linux-watch.c: Likewise.
3849 2014-07-29 Tom Tromey <tromey@redhat.com>
3851 * target.c (target_is_pushed): Simplify.
3853 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3857 2014-07-29 Yao Qi <yao@codesourcery.com>
3860 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3862 2014-07-28 Doug Evans <xdje42@gmail.com>
3865 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3866 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3869 2014-07-28 Will Newton <will.newton@linaro.org>
3871 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3872 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3873 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3874 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3875 (THUMB2_EABI_SYSCALL): Likewise.
3876 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3878 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3879 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3881 2014-07-27 Doug Evans <xdje42@gmail.com>
3883 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3885 2014-07-27 Doug Evans <xdje42@gmail.com>
3887 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3889 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3890 Doug Evans <xdje42@gmail.com>
3893 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3894 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3895 * configure.ac: Try to use guild to compile an scm file, if it fails
3896 then disable guile support.
3897 * configure: Regenerate.
3898 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3900 (GUILE_COMPILED_FILES): New variable.
3901 (GUILE_FILES) Update.
3902 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3903 (stamp-guile): Compile scm files.
3904 * guile/guile.c (boot_guile_support): New function.
3905 (standard_throw_args_p): New function.
3906 (print_standard_throw_error, print_throw_error): New functions.
3907 (handle_boot_error): New function.
3908 (initialize_scheme_side): Rewrite to call boot_guile_support.
3909 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3910 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3912 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3913 Doug Evans <xdje42@gmail.com>
3916 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3917 * guile/lib/gdb/support.scm: New file.
3918 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3919 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3921 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3923 (%assert-type): Ditto, and renamed to assert-type.
3924 (%exception-print-style): Delete.
3926 2014-07-26 Doug Evans <xdje42@gmail.com>
3929 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3930 * configure: Regenerate.
3931 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3933 (PYTHON_FILES): New variable.
3934 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3935 (GUILE_FILES): New variable.
3936 (stamp-python, install-python, uninstall-python): Handle empty
3938 (stamp-guile, install-guile, uninstall-guile): Ditto.
3940 2014-07-26 Doug Evans <xdje42@gmail.com>
3943 * guile/lib/gdb.scm (pretty-printers): Export.
3944 (set-pretty-printers!): Export.
3945 * guile/lib/gdb/printing.scm (gdb module): Update.
3946 (prepend-pretty-printer!, append-pretty-printer!): Update.
3947 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3948 (pretty_printer_list_var): Delete.
3949 (pretty_printer_list): New static global.
3950 (gdbscm_pretty_printers): New function.
3951 (gdbscm_set_pretty_printers_x): New function.
3952 (ppscm_find_pretty_printer_from_gdb): Update.
3953 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3954 (gdbscm_initialize_pretty_printers): Update.
3956 2014-07-26 Doug Evans <xdje42@gmail.com>
3959 * configure.ac: Add check for header gc/gc.h.
3960 Add check for function setenv.
3961 * configure: Regenerate.
3962 * config.in: Regenerate.
3963 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3965 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3967 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3968 variation in gdbarch matching.
3970 2014-07-25 Tom Tromey <tromey@redhat.com>
3972 * exec.c (using_exec_ops): Remove.
3973 (exec_close_1): Update. Remove extraneous block, reindent.
3974 (add_target_sections): Use target_is_pushed.
3976 2014-07-25 Pedro Alves <palves@redhat.com>
3978 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3979 * monitor.c (monitor_create_inferior): Likewise.
3980 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3981 * remote-sim.c (gdbsim_create_inferior): Likewise.
3982 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3983 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3984 * windows-nat.c (do_initial_windows_stuff): Likewise.
3986 2014-07-25 Pedro Alves <palves@redhat.com>
3988 * NEWS: Mention signal passing and "signal" command changes.
3989 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3991 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3993 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3994 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3995 (jump_command): Adjust clear_proceed_status call.
3996 (signal_command): Warn if other thread that are resumed have
3997 signals that will be delivered. Adjust clear_proceed_status call.
3998 (until_next_command, finish_command)
3999 (proceed_after_attach_callback, attach_command_post_wait)
4000 (attach_command): Adjust clear_proceed_status call.
4001 * infrun.c (proceed_after_vfork_done): Likewise.
4002 (proceed_after_attach_callback): Adjust comment.
4003 (clear_proceed_status_thread): Clear stop_signal if not in pass
4005 (clear_proceed_status_callback): Delete.
4006 (clear_proceed_status): New 'step' parameter. Only clear the
4007 proceed status of threads the command being prepared is about to
4009 (proceed): If passed in an explicit signal, override stop_signal
4010 with it. Don't pass the last stop signal to the thread we're
4012 (init_wait_for_inferior): Adjust clear_proceed_status call.
4013 (switch_back_to_stepped_thread): Clear the signal if it should not
4015 * infrun.h (clear_proceed_status): New 'step' parameter.
4016 (user_visible_resume_ptid): Add comment.
4017 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4018 signal is in pass state.
4019 * remote.c (append_pending_thread_resumptions): Likewise.
4020 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4022 2014-07-25 Tom Tromey <tromey@redhat.com>
4024 * target.h (target_stopped_data_address)
4025 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4028 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4030 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4032 (avr_pointer_to_address): Likewise.
4034 2014-07-24 Tom Tromey <tromey@redhat.com>
4036 * monitor.c (compile_pattern): Update.
4037 * target.h (struct target_ops) <to_shortname, to_longname,
4040 2014-07-24 Tom Tromey <tromey@redhat.com>
4042 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4043 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4044 (add_info_alias, add_com): Make "doc" const.
4045 (print_doc_line): Make "str" const.
4046 (delete_cmd): Update.
4047 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4048 (print_doc_line): Update.
4049 * cli/cli-script.c (document_command): Update.
4050 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4051 (add_com, add_info, add_info_alias): Update.
4052 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4053 * python/py-cmd.c (cmdpy_destroyer): Update.
4055 2014-07-24 Tom Tromey <tromey@redhat.com>
4057 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4058 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4059 (help_cmd_list): Constify.
4060 (lookup_cmd): Update.
4061 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4063 (help_cmd_list, apropos_cmd): Update.
4064 * cli/cli-script.c (show_user): Update.
4065 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4066 * cli/cli-setshow.h (cmd_show_list): Update.
4067 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4068 (cmd_show_list): Update.
4069 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4070 * python/py-cmd.c (cmdpy_destroyer): Update.
4072 2014-07-24 Tom Tromey <tromey@redhat.com>
4074 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4075 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4077 * command.h (deprecate_cmd): Update.
4078 * maint.c (maintenance_do_deprecate): Add casts.
4080 2014-07-24 Tom Tromey <tromey@redhat.com>
4082 * cli/cli-decode.c (help_cmd): Make parameter "const".
4083 * cli/cli-decode.h (help_cmd): Update.
4085 2014-07-24 Tom Tromey <tromey@redhat.com>
4087 * stack.c (up_silently_base, down_silently_base): Make argument
4090 2014-07-24 Tom Tromey <tromey@redhat.com>
4092 * solib.c (solib_add): Make "pattern" const.
4093 * solib.h (solib_add): Update.
4095 2014-07-24 Tom Tromey <tromey@redhat.com>
4097 * remote.c (remote_serial_open, print_packet, putpkt)
4098 (putpkt_binary): Constify.
4099 * remote.h (putpkt): Update.
4101 2014-07-24 Tom Tromey <tromey@redhat.com>
4103 * monitor.c (monitor_open): Make "args" const.
4104 * monitor.h (monitor_open): Update.
4106 2014-07-24 Tom Tromey <tromey@redhat.com>
4108 * maint.c (match_bfd_flags): Make "string" const.
4109 (print_bfd_section_info): Remove casts.
4110 (print_objfile_section_info): Make "string" const.
4112 2014-07-24 Tom Tromey <tromey@redhat.com>
4114 * inf-child.c (inf_child_open_target): Make "arg" const.
4115 * inf-child.h (inf_child_open_target): Update.
4117 2014-07-24 Tom Tromey <tromey@redhat.com>
4119 * environ.c (unset_in_environ): Make "var" const.
4120 * environ.h (unset_in_environ): Update.
4122 2014-07-24 Tom Tromey <tromey@redhat.com>
4124 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4126 (scan_filename_with_cleanup): Likewise.
4127 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4128 Make arguments const.
4129 (restore_command): Update.
4131 2014-07-24 Pedro Alves <palves@redhat.com>
4133 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4135 2014-07-24 Tom Tromey <tromey@redhat.com>
4136 Gary Benson <gbenson@redhat.com>
4138 * nat/linux-ptrace.c (additional_flags): New global.
4139 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4140 additional_flags; don't check GDBSERVER.
4141 (linux_ptrace_set_additional_flags): New function.
4142 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4144 * linux-nat.c (_initialize_linux_nat): Call
4145 linux_ptrace_set_additional_flags.
4147 2014-07-24 Tom Tromey <tromey@redhat.com>
4149 * make-target-delegates (munge_type, write_debugmethod): New
4151 (debug_names): New global.
4152 ($TARGET_DEBUG_PRINTER): New global.
4153 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4155 Write debug methods. Generate init_debug_target.
4156 * target-debug.h: New file.
4157 * target-delegates.c: Rebuild.
4158 * target.c: Include target-debug.h.
4159 (debug_target): Hoist definition.
4160 (target_kill, target_get_section_table, target_memory_map)
4161 (target_flash_erase, target_flash_done, target_detach)
4162 (target_disconnect, target_wait, target_resume)
4163 (target_pass_signals, target_program_signals, target_follow_fork)
4164 (target_mourn_inferior, target_search_memory)
4165 (target_thread_address_space, target_close)
4166 (target_find_new_threads, target_core_of_thread)
4167 (target_verify_memory, target_insert_mask_watchpoint)
4168 (target_remove_mask_watchpoint): Remove targetdebug code.
4169 (debug_to_post_attach, debug_to_prepare_to_store)
4170 (debug_to_files_info, debug_to_insert_breakpoint)
4171 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4172 (debug_to_region_ok_for_hw_watchpoint)
4173 (debug_to_can_accel_watchpoint_condition)
4174 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4175 (debug_to_watchpoint_addr_within_range)
4176 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4177 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4178 (debug_to_terminal_init, debug_to_terminal_inferior)
4179 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4180 (debug_to_terminal_save_ours, debug_to_terminal_info)
4181 (debug_to_load, debug_to_post_startup_inferior)
4182 (debug_to_insert_fork_catchpoint)
4183 (debug_to_remove_fork_catchpoint)
4184 (debug_to_insert_vfork_catchpoint)
4185 (debug_to_remove_vfork_catchpoint)
4186 (debug_to_insert_exec_catchpoint)
4187 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4188 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4189 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4190 (setup_target_debug): Call init_debug_target.
4191 * target.h (TARGET_DEBUG_PRINTER): New macro.
4192 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4193 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4195 2014-07-24 Gary Benson <gbenson@redhat.com>
4197 * exceptions.h (throw_vfatal): Renamed to...
4198 (throw_vquit): New declaration.
4199 (throw_quit): Likewise.
4200 * exceptions.c (throw_vfatal): Renamed to...
4201 (throw_vquit): New function.
4202 (throw_quit): Likewise.
4203 (throw_error): Call throw_verror rather than throw_it.
4204 * utils.h (vfatal): Removed.
4206 * utils.c (vfatal): Removed.
4208 (internal_verror): Replaced call to fatal with call to throw_quit.
4209 (quit): Replaced calls to fatal with calls to throw_quit.
4211 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4213 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4216 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4218 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4219 less than zero in conditional expression.
4221 2014-07-23 Tom Tromey <tromey@redhat.com>
4223 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4224 ($INTRO_PART): Don't match whitespace.
4225 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4227 ($METHOD): Add $METHOD_TRAILER.
4229 (scan_target_h): New sub.
4230 Change main loop not to collect state.
4231 * target-delegates.c: Rebuild.
4233 2014-07-23 Gary Benson <gbenson@redhat.com>
4235 * cp-support.c (gdb_demangle): Fix build on systems without
4238 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4240 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4241 for reference entry value target data value.
4243 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4245 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4246 value_available_contents_eq.
4248 2014-07-22 Pedro Alves <palves@redhat.com>
4250 * value.c (allocate_optimized_out_value): Don't mark value as
4253 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4255 * MAINTAINERS (Write After Approval): Update my email address.
4257 2014-07-20 Doug Evans <dje@google.com>
4260 * remote.c (putpkt_binary): Add text to error message.
4262 2014-07-20 Yao Qi <yao@codesourcery.com>
4264 * eval.c: Remove "Chill" from comments.
4265 * gdbtypes.h: Likewise.
4266 * symtab.h: Likewise.
4268 2014-07-20 Yao Qi <yao@codesourcery.com>
4270 * std-operator.def: Update comments to TERNOP_SLICE.
4272 2014-07-20 Yao Qi <yao@codesourcery.com>
4274 * std-operator.def: Remove BINOP_RANGE.
4275 * breakpoint.c (watchpoint_exp_is_const): Update.
4276 * expprint.c (dump_subexp_body_standard): Likewise.
4277 * eval.c (init_array_element): Remove dead code.
4278 (evaluate_subexp_standard): Likewise.
4280 2014-07-20 Yao Qi <yao@codesourcery.com>
4282 * std-operator.def: Remove BINOP_IN.
4283 * breakpoint.c (watchpoint_exp_is_const): Update.
4284 * eval.c (evaluate_subexp_standard): Likewise.
4285 * expprint.c (dump_subexp_body_standard): Likewise.
4287 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4289 * microblaze-tdep.c (microblaze_register_names): Add
4290 the rshr and rslr register names.
4291 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4292 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4293 Use of tdesc_numbered_register. Use of
4294 microblaze_register_g_packet_guesses. Use of
4295 tdesc_use_registers. Use of set_gdbarch_register_type.
4296 (microblaze_register_g_packet_guesses): New.
4297 * microblaze-tdep.h (microblaze_reg_num): Add
4298 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4299 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4300 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4301 * features/microblaze-core.xml: New file.
4302 * features/microblaze-stack-protect.xml: New file.
4303 * features/microblaze-with-stack-protect.c: New file.
4304 * features/microblaze-with-stack-protect.xml: New file.
4305 * features/microblaze.xml: New file.
4306 * features/microblaze.c: New file.
4307 * features/Makefile (microblaze-with-stack-protect): Add
4308 microblaze-with-stack-protect microblaze and microblaze-expedite.
4309 * regformats/microblaze-with-stack-protect.dat: New file.
4310 * regformats/microblaze.dat: New file.
4311 * doc/gdb.texinfo (MicroBlaze Features): Added.
4313 2014-07-18 Tom Tromey <tromey@redhat.com>
4315 * exec.c (exec_ops): Now static.
4316 * exec.h (exec_ops): Don't declare.
4318 2014-07-18 Tom Tromey <tromey@redhat.com>
4320 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4321 to find_target_beneath.
4322 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4323 find_target_beneath.
4324 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4326 2014-07-18 Tom Tromey <tromey@redhat.com>
4329 * utils.c (quit): Use target_supports_terminal_ours.
4330 * target.h (target_supports_terminal_ours): Declare.
4331 * target.c (target_supports_delete_record): Don't check
4332 to_delete_record against NULL.
4333 (target_supports_terminal_ours): New function.
4335 2014-07-18 Tom Tromey <tromey@redhat.com>
4338 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4339 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4340 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4341 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4342 * windows-nat.c (windows_xfer_partial): Always delegate.
4343 * record-btrace.c (record_btrace_xfer_partial): Simplify
4345 (record_btrace_fetch_registers, record_btrace_store_registers)
4346 (record_btrace_prepare_to_store, record_btrace_resume)
4347 (record_btrace_wait, record_btrace_find_new_threads)
4348 (record_btrace_thread_alive): Likewise.
4349 * procfs.c (procfs_xfer_partial): Always delegate.
4350 * corelow.c (core_xfer_partial): Always delegate.
4351 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4353 2014-07-18 Tom Tromey <tromey@redhat.com>
4355 * exec.c (exec_make_note_section): Move earlier.
4357 2014-07-17 Doug Evans <dje@google.com>
4360 * maint.c (count_symtabs_and_blocks): Handle NULL
4361 current_program_space.
4362 (report_command_stats): Check global enabled flag in addition to
4363 recorded enabled flag.
4364 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4366 2014-07-16 Pedro Alves <palves@redhat.com>
4368 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4370 2014-07-16 Tom Tromey <tromey@redhat.com>
4372 * target.h (struct target_ops) <to_delete_record>: Reformat
4375 2014-07-16 Tom Tromey <tromey@redhat.com>
4377 * target-delegates.c: Rebuild.
4379 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4381 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4382 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4383 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4384 (avr_pointer_to_address): Likewise.
4385 (avr_address_class_type_flags): New function.
4386 (avr_address_class_type_flags_to_name): Likewise.
4387 (avr_address_class_name_to_type_flags): Likewise.
4388 (avr_gdbarch_init): Set address_class_type_flags,
4389 address_class_type_flags_to_name and
4390 address_class_name_to_type_flags.
4392 2014-07-15 Pedro Alves <palves@redhat.com>
4394 * linux-nat.c (kill_callback): Save errno and work with saved
4397 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4399 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4401 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4403 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4404 breakpoint support correctly.
4406 2014-07-14 Pedro Alves <palves@redhat.com>
4408 * utils.c (prompt_for_continue): Call target_terminal_ours.
4410 2014-07-14 Pedro Alves <palves@redhat.com>
4412 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4413 catch_errors. Don't re-enable stdin or notify observers where,
4415 (fetch_inferior_event_wrapper): Delete.
4417 2014-07-14 Pedro Alves <palves@redhat.com>
4420 * top.c: Include "inf-loop.h".
4421 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4423 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4425 (gdb_readline_wrapper): Store whether the target is async, and
4428 2014-07-14 Pedro Alves <palves@redhat.com>
4431 * top.c (gdb_readline_wrapper_line): Tweak comment.
4432 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4433 the input handler callback.
4435 2014-07-14 Pedro Alves <palves@redhat.com>
4438 * main.c: Include event-top.h.
4439 (handle_command_errors): New function.
4440 (catch_command_errors, catch_command_errors_const): Use it.
4442 2014-07-14 Pedro Alves <palves@redhat.com>
4444 * exceptions.c (catch_command_errors, catch_command_errors_const):
4446 * exceptions.h (catch_command_errors_ftype)
4447 (catch_command_errors_const_ftype): Moved to main.c.
4448 (catch_command_errors, catch_command_errors_const): Delete
4450 * main.c (catch_command_errors_ftype)
4451 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4452 (catch_command_errors, catch_command_errors_const)): Moved here
4453 from exceptions.c and make static.
4455 2014-07-14 Pedro Alves <palves@redhat.com>
4457 * exceptions.c (print_any_exception): Delete.
4458 (catch_exceptions_with_msg): Use exception_print instead of
4459 print_any_exception.
4460 (catch_errors): Use exception_fprintf instead of
4461 print_any_exception.
4462 (catch_command_errors, catch_command_errors_const): Use
4463 exception_print instead of print_any_exception.
4465 2014-07-14 Pedro Alves <palves@redhat.com>
4467 * infcall.c (run_inferior_call): Set 'sync_execution' while
4468 running the inferior call.
4470 2014-07-14 Pedro Alves <palves@redhat.com>
4472 * value.c (value_contents_equal): Delete function.
4473 * value.h (value_contents_equal): Delete declaration.
4475 2014-07-14 Tom Tromey <tromey@redhat.com>
4478 * gdbtypes.c (is_dynamic_type_internal): New function, from
4480 (is_dynamic_type): Rewrite.
4481 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4482 (resolve_dynamic_struct): Likewise.
4483 (resolve_dynamic_type_internal): New function, from
4484 resolve_dynamic_type.
4485 (resolve_dynamic_type): Rewrite.
4487 2014-07-14 Tom Tromey <tromey@redhat.com>
4489 * target.c (target_require_runnable): Also check record_stratum.
4492 2014-07-11 Yao Qi <yao@codesourcery.com>
4494 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4495 thumb_instruction_restores_sp return true.
4497 2014-07-11 Yao Qi <yao@codesourcery.com>
4499 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4500 (thumb_in_function_epilogue_p): Call
4501 thumb_instruction_restores_sp.
4503 2014-07-11 Yao Qi <yao@codesourcery.com>
4505 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4507 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4509 2014-07-11 Gary Benson <gbenson@redhat.com>
4511 * amd64-linux-nat.c (gdbcore.h): Remove include.
4512 (regset.h): Likewise.
4513 (nat/linux-btrace.h): Likewise.
4514 (btrace.h): Likewise.
4515 (gdb_assert.h): Likewise.
4516 (string.h): Likewise.
4517 (sys/uio.h): Likewise.
4518 (sys/debugreg.h): Likewise.
4519 (sys/syscall.h): Likewise.
4520 (sys/procfs.h): Likewise.
4521 (sys/user.h): Likewise.
4522 (asm/ptrace.h): Likewise.
4523 (i386-nat.h): Likewise.
4524 * i386-linux-nat.c (i386-nat.h): Likewise.
4525 (regset.h): Likewise.
4526 (target.h): Likewise.
4527 (linux-nat.h): Likewise.
4528 (nat/linux-btrace.h): Likewise.
4529 (btrace.h): Likewise.
4530 (gdb_assert.h): Likewise.
4531 (string.h): Likewise.
4532 (sys/uio.h): Likewise.
4533 (sys/user.h): Likewise.
4534 (sys/procfs.h): Likewise.
4535 (sys/reg.h): Likewise.
4536 (sys/debugreg.h): Likewise.
4537 (ORIG_EAX): Remove definition.
4539 2014-07-11 Gary Benson <gbenson@redhat.com>
4541 * i386-linux-nat.h: New file.
4542 * x86-linux-nat.h: Likewise.
4543 * x86-linux-nat.c: Likewise.
4544 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4545 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4546 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4547 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4548 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4549 (PTRACE_SETREGSET): Likewise.
4550 (arch_lwp_info): Now in x86-linux-nat.c.
4551 (have_ptrace_getregset): Now in x86-linux-nat.h.
4552 (x86_linux_dr_get): Now in x86-linux-nat.c.
4553 (x86_linux_dr_set): Likewise.
4554 (x86_linux_dr_get_addr): Likewise.
4555 (x86_linux_dr_get_control): Likewise.
4556 (x86_linux_dr_get_status): Likewise.
4557 (update_debug_registers_callback): Likewise.
4558 (x86_linux_dr_set_control): Likewise.
4559 (x86_linux_dr_set_addr): Likewise.
4560 (x86_linux_prepare_to_resume): Likewise.
4561 (x86_linux_new_thread): Likewise.
4562 (x86_linux_new_fork): Likewise.
4563 (x86_linux_get_thread_area): Likewise.
4564 (super_post_startup_inferior): Likewise.
4565 (x86_linux_child_post_startup_inferior): Likewise.
4566 (AMD64_LINUX_USER64_CS): Likewise.
4567 (AMD64_LINUX_X32_DS): Likewise.
4568 (x86_linux_read_description): Likewise.
4569 (x86_linux_enable_btrace): Likewise.
4570 (x86_linux_disable_btrace): Likewise.
4571 (x86_linux_teardown_btrace): Likewise.
4572 (x86_linux_read_btrace): Likewise.
4573 (x86_linux_create_target): Likewise.
4574 (x86_linux_add_target): Likewise.
4575 * i386-linux-nat.c (x86-linux-nat.h): New include.
4576 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4577 (PTRACE_SETREGSET): Likewise.
4578 (arch_lwp_info): Now in x86-linux-nat.c.
4579 (have_ptrace_getregset): Now in x86-linux-nat.h.
4580 (x86_linux_dr_get): Now in x86-linux-nat.c.
4581 (x86_linux_dr_set): Likewise.
4582 (x86_linux_dr_get_addr): Likewise.
4583 (x86_linux_dr_get_control): Likewise.
4584 (x86_linux_dr_get_status): Likewise.
4585 (update_debug_registers_callback): Likewise.
4586 (x86_linux_dr_set_control): Likewise.
4587 (x86_linux_dr_set_addr): Likewise.
4588 (x86_linux_prepare_to_resume): Likewise.
4589 (x86_linux_new_thread): Likewise.
4590 (x86_linux_new_fork): Likewise.
4591 (x86_linux_get_thread_area): Likewise.
4592 (super_post_startup_inferior): Likewise.
4593 (x86_linux_child_post_startup_inferior): Likewise.
4594 (AMD64_LINUX_USER64_CS): Likewise.
4595 (AMD64_LINUX_X32_DS): Likewise.
4596 (x86_linux_read_description): Likewise.
4597 (x86_linux_enable_btrace): Likewise.
4598 (x86_linux_disable_btrace): Likewise.
4599 (x86_linux_teardown_btrace): Likewise.
4600 (x86_linux_read_btrace): Likewise.
4601 (x86_linux_create_target): Likewise.
4602 (x86_linux_add_target): Likewise.
4604 2014-07-11 Gary Benson <gbenson@redhat.com>
4606 * amd64-linux-nat.c: Comment and whitespace changes.
4607 * i386-linux-nat.c: Comment and whitespace changes.
4609 2014-07-11 Gary Benson <gbenson@redhat.com>
4611 * amd64-linux-nat.c (x86_linux_create_target): New function.
4612 (x86_linux_add_target): Likewise.
4613 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4614 * i386-linux-nat.c (x86_linux_create_target): New function.
4615 (x86_linux_add_target): Likewise.
4616 (_initialize_i386_linux_nat): Delegate to the above new functions.
4618 2014-07-11 Gary Benson <gbenson@redhat.com>
4620 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4621 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4622 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4623 (ps_get_thread_area): Delegate to the above.
4625 2014-07-11 Gary Benson <gbenson@redhat.com>
4627 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4628 x86_linux_read_description. All uses updated. amd64-specific
4629 code conditionalized. Conditionalized i386-specific code added.
4630 Redundant cast removed.
4631 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4632 x86_linux_read_description. All uses updated. i386-specific
4633 code conditionalized. Conditionalized amd64-specific code added.
4634 One sizeof replaced with the actual type it is describing.
4636 2014-07-11 Gary Benson <gbenson@redhat.com>
4638 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4639 x86_linux_dr_get. All uses updated.
4640 (amd64_linux_dr_set): Renamed to
4641 x86_linux_dr_set. All uses updated.
4642 (amd64_linux_dr_get_addr): Renamed to
4643 x86_linux_dr_get_addr. All uses updated.
4644 (amd64_linux_dr_get_control): Renamed to
4645 x86_linux_dr_get_control. All uses updated.
4646 (amd64_linux_dr_get_status): Renamed to
4647 x86_linux_dr_get_status. All uses updated.
4648 (amd64_linux_dr_set_control): Renamed to
4649 x86_linux_dr_set_control. All uses updated.
4650 (amd64_linux_dr_set_addr): Renamed to
4651 x86_linux_dr_set_addr. All uses updated.
4652 (amd64_linux_prepare_to_resume): Renamed to
4653 x86_linux_prepare_to_resume. All uses updated.
4654 (amd64_linux_new_thread): Renamed to
4655 x86_linux_new_thread. All uses updated.
4656 (amd64_linux_new_fork): Renamed to
4657 x86_linux_new_fork. All uses updated.
4658 (amd64_linux_child_post_startup_inferior): Renamed to
4659 x86_linux_child_post_startup_inferior. All uses updated.
4660 (amd64_linux_enable_btrace): Renamed to
4661 x86_linux_enable_btrace. All uses updated.
4662 (amd64_linux_disable_btrace): Renamed to
4663 x86_linux_disable_btrace. All uses updated.
4664 (amd64_linux_teardown_btrace): Renamed to
4665 x86_linux_teardown_btrace. All uses updated.
4666 (amd64_linux_read_btrace): Renamed to
4667 x86_linux_read_btrace. All uses updated.
4668 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4669 x86_linux_dr_get. All uses updated.
4670 (i386_linux_dr_set): Renamed to
4671 x86_linux_dr_set. All uses updated.
4672 (i386_linux_dr_get_addr): Renamed to
4673 x86_linux_dr_get_addr. All uses updated.
4674 (i386_linux_dr_get_control): Renamed to
4675 x86_linux_dr_get_control. All uses updated.
4676 (i386_linux_dr_get_status): Renamed to
4677 x86_linux_dr_get_status. All uses updated.
4678 (i386_linux_dr_set_control): Renamed to
4679 x86_linux_dr_set_control. All uses updated.
4680 (i386_linux_dr_set_addr): Renamed to
4681 x86_linux_dr_set_addr. All uses updated.
4682 (i386_linux_prepare_to_resume): Renamed to
4683 x86_linux_prepare_to_resume. All uses updated.
4684 (i386_linux_new_thread): Renamed to
4685 x86_linux_new_thread. All uses updated.
4686 (i386_linux_new_fork): Renamed to
4687 x86_linux_new_fork. All uses updated.
4688 (i386_linux_child_post_startup_inferior): Renamed to
4689 x86_linux_child_post_startup_inferior. All uses updated.
4690 (i386_linux_enable_btrace): Renamed to
4691 x86_linux_enable_btrace. All uses updated.
4692 (i386_linux_disable_btrace): Renamed to
4693 x86_linux_disable_btrace. All uses updated.
4694 (i386_linux_teardown_btrace): Renamed to
4695 x86_linux_teardown_btrace. All uses updated.
4696 (i386_linux_read_btrace): Renamed to
4697 x86_linux_read_btrace. All uses updated.
4699 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4701 * remote.c (extended_remote_post_attach): New function.
4702 (init_extended_remote_ops): Install it as to_post_attach method.
4704 2014-07-09 Pedro Alves <palves@redhat.com>
4706 * infcmd.c (attach_command_post_wait): Don't call
4707 target_terminal_inferior here.
4708 (attach_command): Call it here instead.
4710 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4712 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4714 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4715 from varobj.c, with additional checks.
4716 (c_varobj_ops): Fill in is_path_expr_parent field.
4717 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4718 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4720 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4722 (varobj_default_is_path_expr_parent): New function.
4723 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4724 (varobj_default_is_path_expr_parent): Declare new function.
4726 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4728 * infcmd.c (finish_backward): Turn internal error into normal error.
4730 2014-07-07 Pedro Alves <palves@redhat.com>
4733 * remote.c (async_handle_remote_sigint)
4734 (async_handle_remote_sigint_twice): Call
4735 gdb_call_async_signal_handler instead of
4736 mark_async_signal_handler.
4738 2014-07-07 Tom Tromey <tromey@redhat.com>
4740 * target-delegates.c: Rebuild.
4741 * target.c (target_info_record): Remove.
4742 * record.c (info_record_command): Unconditionally call
4744 * target.h (struct target_ops) <to_info_record>: Use
4745 TARGET_DEFAULT_IGNORE.
4746 (target_info_record): Remove.
4748 2014-07-07 Tom Tromey <tromey@redhat.com>
4750 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4751 TARGET_DEFAULT_NORETURN.
4752 * target.c (generic_tls_error): New function.
4753 (target_translate_tls_address): Don't search target stack.
4754 * target-delegates.c: Rebuild.
4755 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4757 * linux-thread-db.c (thread_db_get_thread_local_address):
4758 Unconditionally call beneath target.
4760 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4762 * cli/cli-logging.c (pop_output_files): Assign targerr to
4765 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4767 * MAINTAINERS (Write After Approval): Update my email address.
4769 2014-07-02 Gary Benson <gbenson@redhat.com>
4771 * proc-service.c (ps_xfer_memory): Update comment.
4772 (ps_pstop): Remove unused function.
4773 (ps_pcontinue): Likewise.
4774 (ps_lstop): Likewise.
4775 (ps_lcontinue): Likewise.
4776 (ps_lgetxregsize): Likewise.
4777 (ps_lgetxregs): Likewise.
4778 (ps_lsetxregs): Likewise.
4779 (ps_plog): Likewise.
4780 (ps_ptread): Likewise.
4781 (ps_ptwrite): Likewise.
4783 2014-07-01 Mark Wielaard <mjw@redhat.com>
4785 * dwarf2read.c (add_array_cv_type): New function.
4786 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4787 (read_tag_volatile_type): Likewise.
4789 2014-07-01 Tom Tromey <tromey@redhat.com>
4791 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4792 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4793 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4794 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4795 * command.h (cmd_cfunc_ftype): Move earlier.
4796 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4797 (add_com, add_info): Use cmd_cfunc_ftype.
4799 2014-06-30 Tom Tromey <tromey@redhat.com>
4801 * symtab.c (operator_chars): Make parameters and return type
4803 (file_matches): Make "files" const.
4804 (struct search_symbols_data) <files>: Now const.
4805 (search_symbols): Make "regexp" and "files" parameters const.
4807 (symtab_symbol_info): Remove cast.
4808 (rbreak_command): Update.
4809 * symtab.h (search_symbols): Update.
4811 2014-06-27 Yao Qi <yao@codesourcery.com>
4813 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4814 Change parameter type to 'struct thread_info *'. Caller
4816 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4818 * dummy-frame.c (struct dummy_frame_id): New.
4819 (dummy_frame_id_eq): New function.
4820 (struct dummy_frame) <id>: Change its type to 'struct
4822 (dummy_frame_push): Add parameter ptid and save it in
4824 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4826 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4828 (lookup_dummy_frame): Change parameter type to 'struct
4829 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4830 instead of frame_id_eq.
4831 (dummy_frame_pop): Add parameter ptid. Callers updated.
4832 Update comments. Compose dummy_frame_id and pass it to
4834 (dummy_frame_discard): Add parameter ptid.
4835 (dummy_frame_sniffer): Compose dummy_frame_id and call
4836 dummy_frame_id_eq instead of frame_id_eq.
4837 (fprint_dummy_frames): Print ptid.
4838 * dummy-frame.h: Remove comments.
4839 (dummy_frame_push): Add ptid in declaration.
4840 (dummy_frame_pop, dummy_frame_discard): Likewise.
4842 2014-06-26 Tom Tromey <tromey@redhat.com>
4844 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4845 * command.h (error_no_arg): Update.
4847 2014-06-26 Tom Tromey <tromey@redhat.com>
4849 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4850 (do_show_command): Make "arg" const.
4851 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4853 2014-06-26 Tom Tromey <tromey@redhat.com>
4855 * record-full.c (record_full_get_bookmark): Make "args" const.
4856 (record_full_goto_bookmark): Make "raw_bookmark" const.
4857 * record.c (record_goto): New function.
4858 (cmd_record_goto): Use it. Now static.
4859 * record.h (record_goto): Declare.
4860 (cmd_record_goto): Remove declaration.
4861 * target-delegates.c: Rebuild.
4862 * target.h (struct target_ops) <to_get_bookmark,
4863 to_goto_bookmark>: Make parameter const.
4865 2014-06-26 Tom Tromey <tromey@redhat.com>
4867 * defs.h (generic_load): Update.
4868 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4869 * monitor.c (monitor_load): Make "args" const.
4870 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4871 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4873 (mips_load): Make "file" const.
4874 * remote-sim.c (gdbsim_load): Make "args" const.
4875 * remote.c (remote_load): Make "name" const.
4876 * symfile.c (generic_load): Make "args" const.
4877 * target-delegates.c: Rebuild.
4878 * target.c (target_load): Make "arg" const.
4879 (debug_to_load): Make "args" const.
4880 * target.h (struct target_ops) <to_load>: Make parameter const.
4881 (target_load): Update.
4883 2014-06-26 Tom Tromey <tromey@redhat.com>
4886 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4887 (dwarf2_physname, read_partial_die)
4888 (guess_partial_die_structure_name, fixup_partial_die)
4889 (guess_full_die_structure_name, anonymous_struct_prefix)
4890 (dwarf2_name): Use per-BFD obstack.
4892 2014-06-26 Yao Qi <yao@codesourcery.com>
4894 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4895 dummyframe and this_id into inner block below.
4897 2014-06-26 Yao Qi <yao@codesourcery.com>
4899 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4900 with "signal_pass[0]" in the initialization of signal_pass.
4902 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4904 * record-btrace.c (record_btrace_generating_corefile)
4905 (record_btrace_prepare_to_generate_core)
4906 (record_btrace_done_generating_core): New.
4907 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4908 (record_btrace_store_registers, record_btrace_prepare_to_store):
4909 Forward request when generating a core file.
4910 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4911 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4912 to_done_generating_core.
4914 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4916 * target.h (target_ops) <to_prepare_to_generate_core>
4917 <to_done_generating_core>: New.
4918 (target_prepare_to_generate_core, target_done_generating_core): New.
4919 * target.c (target_prepare_to_generate_core)
4920 (target_done_generating_core): New.
4921 * target-delegates.c: Regenerate.
4922 * gcore.c: (write_gcore_file): Rename to ...
4923 (write_gcore_file_1): ...this.
4924 (write_gcore_file): Call target_prepare_to_generate_core
4925 and target_done_generating_core.
4927 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4929 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4930 * gcore.c (write_gcore_file): Free memory returned from
4931 make_corefile_notes.
4932 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4933 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4935 2014-06-24 Yao Qi <yao@codesourcery.com>
4937 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4938 (arm_linux_init_abi): Set skip_trampoline_code with
4939 gdbarch_skip_trampoline_code instead of
4940 find_solib_trampoline_target.
4942 2014-06-24 Yao Qi <yao@codesourcery.com>
4944 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4945 arm_skip_bx_reg returns non-zero.
4947 2014-06-24 Yao Qi <yao@codesourcery.com>
4949 * arm-tdep.c (arm_skip_bx_reg): New function.
4950 (arm_skip_stub): Call arm_skip_bx_reg.
4952 2014-06-23 Don Breazeal <donb@codesourcery.com>
4954 * MAINTAINERS: Add myself as write-after-approval maintainer.
4956 2014-06-23 Pedro Alves <palves@redhat.com>
4958 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4959 DR_CONTROL before setting DR0..DR3.
4960 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4961 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4962 bits of DR_CONTROL related to the debug register slot being
4963 disabled. If all slots are vacant, clear local slowdown as well,
4964 and assert DR_CONTROL is 0.
4966 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4968 * python/lib/gdb/command/xmethods.py
4969 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4970 current progspace only if the string "progspace" matches LOCUS_RE.
4972 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4974 Fix --with-system-readline with readline-6.3 patch 5.
4975 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4976 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4979 2014-06-20 Tom Tromey <tromey@redhat.com>
4981 * dwarf2read.c (dw2_get_real_path): Use correct type in
4983 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4985 2014-06-20 Gary Benson <gbenson@redhat.com>
4987 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4988 * common/glibc_thread_db.h: Likewise.
4989 * common/i386-cpuid.h: Likewise.
4990 * common/i386-gcc-cpuid.h: Likewise.
4991 * common/linux-btrace.h: Likewise.
4992 * common/linux-osdata.h: Likewise.
4993 * common/linux-procfs.h: Likewise.
4994 * common/linux-ptrace.h: Likewise.
4995 * common/mips-linux-watch.h: Likewise.
4996 * common/linux-btrace.c: Moved to nat.
4997 * common/linux-osdata.c: Likewise.
4998 * common/linux-procfs.c: Likewise.
4999 * common/linux-ptrace.c: Likewise.
5000 * common/mips-linux-watch.c: Likewise.
5001 * nat/gdb_thread_db.h: Moved from common.
5002 * nat/glibc_thread_db.h: Likewise.
5003 * nat/i386-cpuid.h: Likewise.
5004 * nat/i386-gcc-cpuid.h: Likewise.
5005 * nat/linux-btrace.c: Likewise.
5006 * nat/linux-btrace.h: Likewise.
5007 * nat/linux-osdata.c: Likewise.
5008 * nat/linux-osdata.h: Likewise.
5009 * nat/linux-procfs.c: Likewise.
5010 * nat/linux-procfs.h: Likewise.
5011 * nat/linux-ptrace.c: Likewise.
5012 * nat/linux-ptrace.h: Likewise.
5013 * nat/mips-linux-watch.c: Likewise.
5014 * nat/mips-linux-watch.h: Likewise.
5015 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5016 (object file files): Reordered.
5017 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5018 of glibc_thread_db.h.
5020 2014-06-20 Gary Benson <gbenson@redhat.com>
5022 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5023 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5024 (i386_dr_low): Likewise.
5025 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5026 (i386_dr_low_set_addr): Likewise.
5027 (i386_dr_low_get_addr): Likewise.
5028 (i386_dr_low_can_set_control): Likewise.
5029 (i386_dr_low_set_control): Likewise.
5030 (i386_dr_low_get_control): Likewise.
5031 (i386_dr_low_get_status): Likewise.
5032 (i386_get_debug_register_length): Likewise.
5033 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5034 (i386_dr_low): Likewise.
5035 * nat/i386-dregs.c (i386-low.h): Remove include.
5036 (i386-nat.h): Likewise.
5037 (nat/i386-dregs.h): New include.
5038 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5039 (i386_dr_low_set_addr): Likewise.
5040 (i386_dr_low_get_addr): Likewise.
5041 (i386_dr_low_can_set_control): Likewise.
5042 (i386_dr_low_set_control): Likewise.
5043 (i386_dr_low_get_control): Likewise.
5044 (i386_dr_low_get_status): Likewise.
5045 (i386_get_debug_register_length): Likewise.
5046 (debug_hw_points): Likewise.
5048 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5050 * Makefile.in (SFILES): Add d-exp.y.
5051 (YYFILES): Add d-exp.c.
5052 (YYOBJ): Add d-exp.o.
5053 (local-maintainer-clean): Delete d-exp.c.
5054 * d-exp.y: New file.
5055 * d-lang.h (d_parse): New declaration.
5056 (d_error): New declaration.
5057 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5058 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5059 PREC_ORDER operators.
5060 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5062 2014-06-19 Yao Qi <yao@codesourcery.com>
5064 * gdbthread.h (any_running): Remove the declaration.
5065 * thread.c (any_running): Remove.
5067 2014-06-19 Yao Qi <yao@codesourcery.com>
5069 * gdbthread.h (struct thread_info) <state>: Change its type to
5070 'enum thread_state'. Update comments.
5072 2014-06-19 Pedro Alves <palves@redhat.com>
5074 * gdbthread.h (ALL_THREADS): Delete.
5075 (ALL_NON_EXITED_THREADS): New macro.
5076 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5077 instead of ALL_THREADS.
5078 * infrun.c (find_thread_needs_step_over)
5079 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5080 instead of ALL_THREADS.
5081 * record-btrace.c (record_btrace_open)
5082 (record_btrace_stop_recording, record_btrace_close)
5083 (record_btrace_is_replaying, record_btrace_resume)
5084 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5085 * remote.c (append_pending_thread_resumptions): Likewise.
5086 * thread.c (thread_apply_all_command): Likewise.
5088 2014-06-19 Gary Benson <gbenson@redhat.com>
5090 * i386-nat.c (i386_stopped_by_watchpoint):
5091 Use i386_dr_stopped_by_watchpoint.
5092 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5093 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5095 2014-06-19 Gary Benson <gbenson@redhat.com>
5097 * nat/i386-dregs.c: New file.
5098 * Makefile.in (i386-dregs.o): New rule.
5099 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5100 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5101 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5102 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5103 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5104 * config/i386/go32.mh (NATDEPFILES): Likewise.
5105 * config/i386/linux.mh (NATDEPFILES): Likewise.
5106 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5107 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5108 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5109 * i386-nat.h (debug_hw_points): New declaration.
5110 * i386-nat.c (breakpoint.h): Remove include.
5111 (command.h): Likewise.
5112 (target.h): Likewise.
5113 (gdb_assert.h): Likewise.
5114 (debug_hw_points): Made nonstatic.
5115 (debug_printf): Now in i386-dregs.c.
5116 (TARGET_HAS_DR_LEN_8): Likewise.
5117 (DR_CONTROL_SHIFT): Likewise.
5118 (DR_CONTROL_SIZE): Likewise.
5119 (DR_RW_EXECUTE): Likewise.
5120 (DR_RW_WRITE): Likewise.
5121 (DR_RW_READ): Likewise.
5122 (DR_RW_IORW): Likewise.
5123 (DR_LEN_1): Likewise.
5124 (DR_LEN_2): Likewise.
5125 (DR_LEN_4): Likewise.
5126 (DR_LEN_8): Likewise.
5127 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5128 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5129 (DR_ENABLE_SIZE): Likewise.
5130 (DR_LOCAL_SLOWDOWN): Likewise.
5131 (DR_GLOBAL_SLOWDOWN): Likewise.
5132 (DR_CONTROL_RESERVED): Likewise.
5133 (I386_DR_CONTROL_MASK): Likewise.
5134 (I386_DR_VACANT): Likewise.
5135 (I386_DR_LOCAL_ENABLE): Likewise.
5136 (I386_DR_GLOBAL_ENABLE): Likewise.
5137 (I386_DR_DISABLE): Likewise.
5138 (I386_DR_SET_RW_LEN): Likewise.
5139 (I386_DR_GET_RW_LEN): Likewise.
5140 (I386_DR_WATCH_HIT): Likewise.
5141 (i386_wp_op_t): Likewise.
5142 (i386_show_dr): Likewise.
5143 (i386_length_and_rw_bits): Likewise.
5144 (i386_insert_aligned_watchpoint): Likewise.
5145 (i386_remove_aligned_watchpoint): Likewise.
5146 (i386_handle_nonaligned_watchpoint): Likewise.
5147 (i386_update_inferior_debug_regs): Likewise.
5148 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5149 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5150 (i386_region_ok_for_watchpoint):
5151 Use i386_dr_region_ok_for_watchpoint.
5152 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5154 2014-06-19 Gary Benson <gbenson@redhat.com>
5156 * i386-nat.c (i386_insert_hw_breakpoint): Use
5157 i386_insert_watchpoint.
5158 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5160 2014-06-19 Gary Benson <gbenson@redhat.com>
5162 * i386-nat.c (i386_dr_show): Renamed to
5163 i386_show_dr and made static. All uses updated.
5164 (i386_dr_length_and_rw_bits): Renamed to
5165 i386_length_and_rw_bits and made static.
5167 (i386_dr_insert_aligned_watchpoint): Renamed to
5168 i386_insert_aligned_watchpoint and made static.
5170 (i386_dr_remove_aligned_watchpoint): Renamed to
5171 i386_remove_aligned_watchpoint and made static.
5173 (i386_dr_update_inferior_debug_regs): Renamed to
5174 i386_update_inferior_debug_regs and made static.
5176 * nat/i386-dregs.h (i386_dr_show): Removed.
5177 (i386_dr_length_and_rw_bits): Likewise.
5178 (i386_dr_insert_aligned_watchpoint): Likewise.
5179 (i386_dr_remove_aligned_watchpoint): Likewise.
5180 (i386_dr_update_inferior_debug_regs): Likewise.
5182 2014-06-19 Gary Benson <gbenson@redhat.com>
5184 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5185 * configure: Regenerate.
5186 * config.in: Likewise.
5187 * main.c (signal.h): New include.
5188 (setup_alternate_signal_stack): New function.
5189 (captured_main): Call the above.
5190 * cp-support.c (signal.h): New include.
5191 (catch_demangler_crashes): New flag.
5192 (SIGJMP_BUF): New define.
5193 (SIGSETJMP): Likewise.
5194 (SIGLONGJMP): Likewise.
5195 (gdb_demangle_jmp_buf): New static global.
5196 (gdb_demangle_attempt_core_dump): Likewise.
5197 (gdb_demangle_signal_handler): New function.
5198 (gdb_demangle): If catch_demangler_crashes is set, install the
5199 above signal handler before calling bfd_demangle, and restore
5200 the original signal handler afterwards. Display the offending
5201 symbol and call demangler_warning the first time a segmentation
5203 (_initialize_cp_support): New maint set/show command.
5205 2014-06-19 Gary Benson <gbenson@redhat.com>
5207 * utils.h (resource_limit_kind): New enum.
5208 (can_dump_core): New declaration.
5209 (warn_cant_dump_core): Likewise.
5210 (dump_core): Likewise.
5211 * utils.c (dump_core): Made nonstatic. Added new
5212 parameter "limit_kind".
5213 (can_dump_core): Made nonstatic. Moved printing code to...
5214 (warn_cant_dump_core): New function.
5215 (can_dump_core_warn): Likewise.
5216 (internal_vproblem): Replace calls to can_dump_core with
5217 calls to can_dump_core_warn. Supply new argument to each.
5219 2014-06-19 Gary Benson <gbenson@redhat.com>
5221 * utils.h (demangler_vwarning): New declaration.
5222 (demangler_warning): Likewise.
5223 * utils.c (struct internal_problem)
5224 <user_settable_should_quit>: New field.
5225 <user_settable_should_dump_core>: Likewise
5226 (internal_error_problem): Add values for above new fields.
5227 (internal_warning_problem): Likewise.
5228 (demangler_warning_problem): New static global.
5229 (demangler_vwarning): New function.
5230 (demangler_warning): Likewise.
5231 (add_internal_problem_command): Selectively add commands.
5232 (_initialize_utils): New internal problem command.
5233 * maint.c (maintenance_demangler_warning): New function.
5234 (_initialize_maint_cmds): New command.
5236 2014-06-18 Tom Tromey <tromey@redhat.com>
5238 * f-valprint.c (info_common_command_for_block): Update.
5239 * symtab.h (struct general_symbol_info) <common_block>: Now
5242 2014-06-18 Tom Tromey <tromey@redhat.com>
5244 * symtab.h (struct symtab) <blockvector>: Now const.
5245 * ada-lang.c (ada_add_global_exceptions): Update.
5246 * buildsym.c (augment_type_symtab): Update.
5247 * dwarf2read.c (dw2_lookup_symbol): Update.
5248 * jit.c (finalize_symtab): Update.
5249 * jv-lang.c (add_class_symtab_symbol): Update.
5250 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5252 * objfiles.c (objfile_relocate1): Update.
5253 * psymtab.c (lookup_symbol_aux_psymtabs)
5254 (maintenance_check_psymtabs): Update.
5255 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5257 * spu-tdep.c (spu_catch_start): Update.
5258 * symmisc.c (dump_symtab_1): Update.
5259 * symtab.c (lookup_global_symbol_from_objfile)
5260 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5261 (basic_lookup_transparent_type_quick)
5262 (basic_lookup_transparent_type, find_pc_sect_symtab)
5263 (find_pc_sect_line, search_symbols): Update.
5264 * block.c (find_block_in_blockvector): Make "bl" const.
5265 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5267 (blockvector_contains_pc): Make "bv" const.
5268 (block_for_pc_sect): Update.
5269 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5270 (blockvector_contains_pc): Update.
5271 * breakpoint.c (resolve_sal_pc): Update.
5272 * inline-frame.c (block_starting_point_at): Update.
5274 2014-06-18 Tom Tromey <tromey@redhat.com>
5276 * completer.c (complete_line): Make "line_buffer" const.
5277 * completer.h (complete_line): Update.
5279 2014-06-18 Tom Tromey <tromey@redhat.com>
5281 * symtab.c (add_macro_name): Remove unneeded cast.
5283 2014-06-18 Tom Tromey <tromey@redhat.com>
5285 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5286 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5288 2014-06-18 Tom Tromey <tromey@redhat.com>
5290 * probe.c (info_probes_for_ops): Make "arg" const.
5291 * probe.h (info_probes_for_ops): Update.
5293 2014-06-18 Tom Tromey <tromey@redhat.com>
5295 * varobj.c (varobj_create): Update.
5296 * valops.c (value_of_this): Update.
5297 * tracepoint.c (add_local_symbols, scope_info): Update.
5298 * symtab.h (struct general_symbol_info) <block>: Now const.
5299 * symtab.c (skip_prologue_sal)
5300 (default_make_symbol_completion_list_break_on)
5301 (skip_prologue_using_sal): Update.
5302 * stack.h (iterate_over_block_locals)
5303 (iterate_over_block_local_vars): Update.
5304 * stack.c (print_frame_args): Update.
5305 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5307 (get_selected_block): Make return type const.
5308 * python/py-frame.c (frapy_block): Update.
5309 * python/py-block.c (gdbpy_block_for_pc): Update.
5310 * p-exp.y (%union) <bval>: Now const.
5311 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5312 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5313 * m2-exp.y (%union) <bval>: Now const.
5314 * linespec.c (get_current_search_block): Make return type const.
5315 (create_sals_line_offset, find_label_symbols): Update.
5316 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5318 (block_starting_point_at): Make "block" const.
5319 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5320 (check_exception_resume): Update.
5321 * guile/scm-frame.c (gdbscm_frame_block): Update.
5322 * guile/scm-block.c (gdbscm_lookup_block): Update.
5323 * frame.h (get_frame_block): Update.
5324 (get_selected_block): Make return type const.
5325 * frame.c (frame_id_inner): Update.
5326 * f-valprint.c (info_common_command_for_block)
5327 (info_common_command): Update.
5328 * dwarf2loc.c (dwarf2_find_location_expression)
5329 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5330 (locexpr_describe_location_piece): Update.
5331 * c-exp.y (%union) <bval>: Now const.
5332 * breakpoint.c (resolve_sal_pc): Update.
5333 * blockframe.c (get_frame_block):Make return type const.
5334 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5335 (block_innermost_frame): Update.
5336 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5337 (block_for_pc, block_for_pc_sect): Update.
5338 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5340 (block_for_pc_sect, block_for_pc): Make return type const.
5341 * ax-gdb.c (gen_expr): Update.
5342 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5343 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5344 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5345 (ada_read_var_value): Update.
5346 * ada-exp.y (struct name_info) <block>: Now const.
5348 (block_lookup): Constify.
5350 2014-06-18 Gary Benson <gbenson@redhat.com>
5352 * nat/i386-dregs.h: New file.
5353 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5354 * i386-nat.h (i386-dregs.h): New include.
5355 (DR_FIRSTADDR): Now in i386-dregs.h.
5356 (DR_LASTADDR): Likewise.
5357 (DR_NADDR): Likewise.
5358 (DR_STATUS): Likewise.
5359 (DR_CONTROL): Likewise.
5360 (i386_debug_reg_state): Likewise.
5361 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5363 2014-06-18 Don Breazeal <donb@codesourcery.com>
5365 * breakpoint.c (set_longjmp_breakpoint): Call
5366 momentary_breakpoint_from_master with additional argument.
5367 (set_longjmp_breakpoint_for_call_dummy): Call
5368 momentary_breakpoint_from_master with additional argument.
5369 (set_std_terminate_breakpoint): Call
5370 momentary_breakpoint_from_master with additional argument.
5371 (momentary_breakpoint_from_master): Add argument to function
5372 definition and use it to initialize structure member flag.
5373 (clone_momentary_breakpoint): Call
5374 momentary_breakpoint_from_master with additional argument.
5375 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5376 member flags set in momentary_breakpoint_from_master.
5378 2014-06-18 Gary Benson <gbenson@redhat.com>
5380 * i386-nat.c (i386_show_dr): Renamed to
5381 i386_dr_show and made nonstatic. All uses updated.
5382 (i386_length_and_rw_bits): Renamed to
5383 i386_dr_length_and_rw_bits and made nonstatic.
5385 (i386_insert_aligned_watchpoint): Renamed to
5386 i386_dr_insert_aligned_watchpoint and made nonstatic.
5388 (i386_remove_aligned_watchpoint): Renamed to
5389 i386_dr_remove_aligned_watchpoint and made nonstatic.
5391 (i386_update_inferior_debug_regs): Renamed to
5392 i386_dr_update_inferior_debug_regs and made nonstatic.
5395 2014-06-18 Gary Benson <gbenson@redhat.com>
5397 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5398 (i386_dr_low_can_set_control): Likewise.
5399 (i386_dr_low_set_addr): Likewise.
5400 (i386_dr_low_set_control): Likewise.
5401 (i386_dr_low_get_addr): Likewise.
5402 (i386_dr_low_get_status): Likewise.
5403 (i386_dr_low_get_control): Likewise.
5404 (i386_insert_aligned_watchpoint): Use new macros.
5405 (i386_update_inferior_debug_regs): Likewise.
5406 (i386_stopped_data_address): Likewise.
5408 2014-06-18 Gary Benson <gbenson@redhat.com>
5410 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5411 New parameter. All uses updated.
5413 2014-06-18 Gary Benson <gbenson@redhat.com>
5415 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5418 2014-06-18 Gary Benson <gbenson@redhat.com>
5420 * i386-nat.c (debug_printf): New macro.
5421 (i386_get_debug_register_length): Likewise.
5422 (TARGET_HAS_DR_LEN_8): Use above macro.
5423 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5424 and printf_unfiltered. Use phex to format values.
5426 2014-06-18 Gary Benson <gbenson@redhat.com>
5428 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5431 2014-06-18 Gary Benson <gbenson@redhat.com>
5433 * i386-nat.c: Comment changes.
5435 2014-06-18 Gary Benson <gbenson@redhat.com>
5437 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5439 2014-06-18 Gary Benson <gbenson@redhat.com>
5441 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5442 (i386_insert_aligned_watchpoint): Likewise.
5443 (i386_remove_aligned_watchpoint): Likewise.
5444 (i386_handle_nonaligned_watchpoint): Likewise.
5446 2014-06-18 Gary Benson <gbenson@redhat.com>
5448 * i386-nat.c: Whitespace changes.
5450 2014-06-17 Samuel Bronson <naesten@gmail.com>
5452 * MAINTAINERS: Update Roland McGrath's email address.
5453 Thanks to Sergio Durigan Junior for pointing out that he left
5454 Red Hat a while ago, and giving me a current address.
5456 2014-06-17 Tom Tromey <tromey@redhat.com>
5458 * utils.h (savestring): Remove declaration.
5460 2014-06-17 Tom Tromey <tromey@redhat.com>
5462 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5464 2014-06-16 Keith Seitz <keiths@redhat.com>
5467 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5468 to update the varobj if inferior_ptid is null_ptid.
5470 2014-06-16 Tom Tromey <tromey@redhat.com>
5472 * target.h (struct target_ops) <to_info_proc>: Make parameter
5474 (target_info_proc): Update.
5475 * target.c (target_info_proc): Make "args" const.
5476 * procfs.c (procfs_info_proc): Update.
5477 * linux-tdep.c (linux_info_proc): Update.
5478 (linux_core_info_proc_mappings): Make "args" const.
5479 (linux_core_info_proc): Update.
5480 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5481 * gdbarch.c: Rebuild.
5482 * gdbarch.h: Rebuild.
5483 * corelow.c (core_info_proc): Update.
5485 2014-06-16 Tom Tromey <tromey@redhat.com>
5487 * target.h (struct target_ops) <to_disconnect>: Make parameter
5489 (target_disconnect): Update.
5490 * target.c (target_disconnect): Make "args" const.
5491 * target-delegates.c: Rebuild.
5492 * remote.c (remote_disconnect): Update.
5493 * record.h (record_disconnect): Update.
5494 * record.c (record_disconnect): Update.
5495 * inf-child.c (inf_child_disconnect): Update.
5497 2014-06-16 Tom Tromey <tromey@redhat.com>
5499 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5500 * target.c (debug_to_rcmd, default_rcmd): Update.
5501 * target-delegates.c: Rebuild.
5502 * remote.c (remote_rcmd): Update.
5503 * monitor.c (monitor_rcmd): Update.
5505 2014-06-16 Pedro Alves <palves@redhat.com>
5507 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5508 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5509 have OBJF_SHARED set.
5510 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5511 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5512 instead of OBJF_USERLOADED.
5513 * objfiles.h (OBJF_SHARED): Update comment.
5514 (userloaded_objfile_contains_address_p): Rename to ...
5515 (shared_objfile_contains_address_p): ... this, and update
5517 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5519 (remove_symbol_file_command): Skip objfiles that don't have
5522 2014-06-16 Tom Tromey <tromey@redhat.com>
5524 * minsyms.h (prim_record_minimal_symbol)
5525 (prim_record_minimal_symbol_and_info): Update comments.
5527 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5529 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5530 or --without-guile, according to how GDB was built.
5532 2014-06-13 Tom Tromey <tromey@redhat.com>
5534 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5536 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5538 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5540 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5541 help_list.Pass all_commands, not -1, to help_list.
5542 * cli/cli-dump.c (dump_command, append_command)
5543 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5544 (binary_dump_command, binary_append_command): Pass all_commands,
5545 not -1, to help_list.
5546 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5548 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5550 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5552 * top.c (set_history): Pass all_commands, not -1, to help_list.
5553 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5554 all_commands, not -1, to help_list.
5555 * symfile.c (overlay_command): Pass all_commands, not -1, to
5557 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5559 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5561 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5563 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5564 not -1, to help_list.
5565 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5566 not -1, to help_list.
5567 * maint.c (maintenance_command, maintenance_info_command)
5568 (maintenance_print_command, maintenance_set_cmd): Pass
5569 all_commands, not -1, to help_list.
5570 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5572 * language.c (set_check): Pass all_commands, not -1, to help_list.
5573 * infcmd.c (unset_command): Pass all_commands, not -1, to
5575 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5577 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5579 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5581 * breakpoint.c (save_command): Pass all_commands, not -1, to
5583 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5584 all_commands, not -1, to help_list.
5586 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5588 * regcache.c (struct register_to_invalidate): New structure.
5589 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5591 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5593 2014-06-12 Yao Qi <yao@codesourcery.com>
5595 * varobj.c (varobj_get_num_children): Call
5596 varobj_is_dynamic_p.
5597 (varobj_list_children): Likewise.
5598 (varobj_update): Likewise. Update comments.
5600 2014-06-12 Yao Qi <yao@codesourcery.com>
5602 * varobj.c (varobj_pretty_printed_p): Rename to ...
5603 (varobj_is_dynamic_p): ... this. New function.
5604 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5605 (varobj_is_dynamic_p): Declare.
5606 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5607 (mi_print_value_p, varobj_update_one): Likewise.
5609 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5610 Yao Qi <yao@codesourcery.com>
5612 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5613 (varobj_get_iterator): Wrap up code for pretty-printer by
5614 "#if HAVE_PYTHON" and "#endif".
5615 (update_dynamic_varobj_children): Likewise.
5617 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5618 Yao Qi <yao@codesourcery.com>
5620 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5621 gdb_python_initialized is false. Move some code from varobj.c.
5622 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5623 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5624 (struct varobj_item): Moved to varobj-iter.h".
5625 (varobj_clear_saved_item): New function.
5626 (update_dynamic_varobj_children): Move python-related code to
5628 (free_variable): Call varobj_clear_saved_item and
5631 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5632 Yao Qi <yao@codesourcery.com>
5634 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5635 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5636 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5637 (py-varobj.o): New rule.
5638 * python/py-varobj.c: New file.
5639 * python/python-internal.h (py_varobj_get_iterator): Declare.
5640 * varobj-iter.h: New file.
5641 * varobj.c: Include "varobj-iter.h"
5642 (struct varobj) <child_iter>: Change its type from "PyObject *"
5643 to "struct varobj_iter *".
5644 <saved_item>: Likewise.
5645 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5646 [HAVE_PYTHON] (varobj_get_iterator): New function.
5647 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5648 python-specific code to python/py-varobj.c.
5649 (install_visualizer): Call varobj_iter_delete instead of
5651 * varobj.h (varobj_ensure_python_env): Declare.
5653 2014-06-12 Yao Qi <yao@codesourcery.com>
5655 * varobj.c (struct varobj_item): New structure.
5656 (create_child_with_value): Update declaration.
5657 (varobj_add_child): Replace arguments 'name' and 'value' with
5658 'item'. All callers updated.
5659 (install_dynamic_child): Likewise.
5660 (update_dynamic_varobj_children): Likewise.
5661 (varobj_add_child): Likewise.
5662 (create_child_with_value): Likewise.
5664 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5666 * NEWS: Create a new section for the next release branch.
5667 Rename the section of the current branch, now that it has
5670 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5672 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5673 * version.in: Bump version to 7.8.50.DATE-cvs.
5675 2014-06-11 Pedro Alves <palves@redhat.com>
5678 * ser-mingw.c (net_windows_socket_check_pending): New function.
5679 (net_windows_select_thread): Ignore spurious wakeups. Use
5680 net_windows_socket_check_pending.
5681 (net_windows_wait_handle): Check for pending events with
5682 ioctlsocket, through net_windows_socket_check_pending, instead of
5683 checking the socket's event.
5685 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5687 * python/python-internal.h (gdb_PyObject_GetAttrString)
5688 (gdb_PyObject_HasAttrString): New inline function definitions.
5689 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5690 char * of the second argument to PyObject_GetAttrString.
5692 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5694 * serial.c (serial_write): Fix index of character to be printed
5695 in call to serial_logchar when serial debug traces are enabled.
5697 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5699 * gdbtypes (resolve_dynamic_range): Add function description.
5701 2014-06-09 Pedro Alves <palves@redhat.com>
5703 * linux-nat.c (linux_child_follow_fork): Initialize status with
5704 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5705 inner block. Only pass the signal to PTRACE_DETACH if in pass
5708 2014-06-09 Gary Benson <gbenson@redhat.com>
5710 * common/signals.c (gdb_signal_from_host): Reorder to separate
5711 the always-available ANSI-standard signals from the signals that
5713 (do_gdb_signal_to_host): Likewise.
5714 * proc-events.c (signal_table): Likewise.
5716 2014-06-08 Hui Zhu <hui@codesourcery.com>
5718 * common/linux-ptrace.c (linux_disable_event_reporting): New
5720 * common/linux-ptrace.h (linux_disable_event_reporting): New
5722 * linux-nat.c (linux_child_follow_fork): Do a single step before
5725 2014-06-07 Keith Seitz <keiths@redhat.com>
5729 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5730 from symbol_matches_domain in symtab.c. All local callers
5731 of symbol_matches_domain updated.
5732 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5733 search STRUCT_DOMAIN.
5734 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5735 independently. standard_lookup will do that automatically.
5736 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5737 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5738 (cp_lookup_symbol_in_namespace): Likewise.
5739 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5740 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5741 may return a STRUCT_DOMAIN match.
5742 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5743 * cp-support.c: Include language.h.
5744 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5746 * psymtab.c (match_partial_symbol): Compare the requested
5747 domain with the symbol's domain directly.
5748 (lookup_partial_symbol): Likewise.
5749 * symtab.c (lookup_symbol_in_language): Explain when/why
5750 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5751 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5752 appropriate languages.
5753 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5754 and moved to ada-lang.c
5755 (lookup_block_symbol): Explain that this function only returns
5756 symbol matching the requested DOMAIN.
5757 Compare the requested domain with the symbol's domain directly.
5758 (iterate_over_symbols): Compare the requested domain with the
5759 symbol's domain directly.
5760 * symtab.h (symbol_matches_domain): Remove.
5762 2014-06-06 Doug Evans <xdje42@gmail.com>
5764 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5765 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5766 (gdbscm_guile_version_is_at_least): Declare.
5767 (gdbscm_scm_string_to_int): Declare.
5768 * guile/guile.c (gdbscm_guile_major_version): New global.
5769 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5770 (guile_datadir): New static global.
5771 (gdbscm_guile_data_directory): New function.
5772 (initialize_scheme_side): Update.
5773 (misc_guile_functions): Add guile-data-directory.
5774 (initialize_gdb_module): Fetch guile version number.
5775 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5776 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5777 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5778 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5780 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5781 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5782 * guile/scm-value.c (gdbscm_value_to_string): Only call
5783 scm_port_conversion_strategy if Guile version >= 2.0.6.
5785 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5787 * main.c (print_gdb_help): Add -q and --silent.
5789 2014-06-06 Gary Benson <gbenson@redhat.com>
5791 * common/signals.c: Remove preprocessor conditionals for
5792 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5793 SIGSEGV and SIGTERM.
5794 * proc-events.c: Likewise.
5796 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5798 * symfile.c (symfile_free_objfile): Remove restriction to
5800 * symfile-mem.c (symbol_file_add_from_memory): Call
5801 add_target_sections_of_objfile.
5803 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5805 * guile/scm-value.c (gdbscm_history_append_x): Use
5806 'vlscm_get_value_smob_arg_unsafe' instead of
5807 'vlscm_scm_to_value'.
5809 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5812 * utils.c (printchar): Don't escape at all if quoter is NUL.
5813 Update function documentation to clarify effect of parameter
5815 * remote.c (escape_buffer): Pass '\\' as the quoter to
5816 fputstrn_unfiltered.
5817 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5818 generate the output.
5819 (mi_solib_unloaded): Same.
5821 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5823 * development.sh: Delete.
5824 * Makefile.in (config.status): Adjust dependency on development.sh.
5825 * configure.ac: Adjust development.sh source call.
5826 * configure: Regenerate.
5828 2014-06-04 Doug Evans <xdje42@gmail.com>
5830 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5831 is_scheme_bkpt, spec.
5832 (bpscm_make_breakpoint_smob): Initialize new members.
5833 (gdbscm_create_breakpoint_x): Split into two ...
5834 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5835 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5836 (scheme_function breakpoint_functions): Update.
5837 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5838 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5839 register-breakpoint!.
5841 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5844 * mem-break.c (z_type_supported): Return zero if
5845 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5847 2014-06-04 Tom Tromey <tromey@redhat.com>
5849 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5850 value_from_contents_and_address_unresolved.
5851 (ada_template_to_fixed_record_type_1): Likewise.
5852 (ada_which_variant_applies): Likewise.
5853 * value.h (value_from_contents_and_address_unresolved): Declare.
5854 * value.c (value_from_contents_and_address_unresolved): New
5856 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5857 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5858 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5860 2014-06-04 Tom Tromey <tromey@redhat.com>
5862 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5864 2014-06-04 Tom Tromey <tromey@redhat.com>
5866 * procfs.c (procfs_attach): Make "args" const.
5867 * windows-nat.c (windows_attach): Make "args" const.
5868 * nto-procfs.c (procfs_attach): Make "args" const.
5869 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5870 * go32-nat.c (go32_attach): Make "args" const.
5871 * gnu-nat.c (gnu_attach): Make "args" const.
5872 * darwin-nat.c (darwin_attach): Make "args" const.
5873 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5874 * linux-nat.c (linux_nat_attach): Make "args" const.
5875 * remote.c (extended_remote_attach_1, extended_remote_attach):
5877 * target.h (struct target_ops) <to_attach>: Make "args" const.
5878 (find_default_attach): Likewise.
5879 * utils.c (parse_pid_to_attach): Make "args" const.
5880 * utils.h (parse_pid_to_attach): Update.
5882 2014-06-04 Tom Tromey <tromey@redhat.com>
5884 * target-delegates.c: Rebuild.
5885 * target.c (default_thread_address_space): New function.
5886 (target_thread_address_space): Simplify.
5887 * target.h (struct target_ops) <to_thread_address_space>: Add
5888 TARGET_DEFAULT_FUNC.
5890 2014-06-04 Doug Evans <xdje42@gmail.com>
5892 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5894 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5896 * record-btrace.c: Include event-loop.h and inf-loop.h.
5897 (record_btrace_resume_exec_dir)
5898 (record_btrace_async_inferior_event_handler)
5899 (record_btrace_handle_async_inferior_event): New.
5900 (record_btrace_open): Create async event handler.
5901 (record_btrace_close): Delete async event handler.
5902 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5903 Mark async event handler.
5904 (record_btrace_execution_direction): New.
5905 (init_record_btrace_ops): Initialize to_execution_direction.
5907 2014-06-03 Doug Evans <xdje42@gmail.com>
5909 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5910 (gdbscm_make_parameter): Ditto.
5912 2014-06-03 Doug Evans <dje@google.com>
5914 * exec.c (exec_close_1): Call clear_section_table instead of
5915 resize_section_table.
5916 (clear_section_table): New function.
5917 (resize_section_table): Make static. Rename arg num_added to
5919 * exec.h (clear_section_table): Declare.
5920 (resize_section_table): Delete.
5921 * progspace.c (release_program_space): Call clear_section_table
5922 instead of resize_section_table.
5924 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5926 * NEWS (Python Scripting): Add entry about the new xmethods
5929 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5931 * python/py-xmethods.c: New file.
5932 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5933 (objfpy_dealloc): XDECREF on the new xmethods field.
5934 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5936 (objfpy_get_xmethods): New function.
5937 (objfile_getset): New entry 'xmethods'.
5938 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5939 (pspy_dealloc): XDECREF on the new xmethods field.
5940 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5942 (pspy_get_xmethods): New function.
5943 (pspace_getset): New entry 'xmethods'.
5944 * python/python-internal.h: Add declarations for new functions.
5945 * python/python.c (_initialize_python): Invoke
5946 gdbpy_initialize_xmethods.
5947 * python/lib/gdb/__init__.py (xmethods): New
5949 * python/lib/gdb/xmethod.py: New file.
5950 * python/lib/gdb/command/xmethods.py: New file.
5952 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5954 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5955 best match method returned by find_overload_match is an xmethod.
5956 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5957 the best matching operator returned by find_overload_match is an
5959 * valops.c: #include "extension.h".
5960 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5961 Return void. The list of matching source methods is returned in
5962 "fn_list" and a vector of matching debug method workers is
5963 returned in "xm_worker_vec". Update all callers.
5964 (value_find_oload_method_list): Likewise.
5965 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5966 non-NULL, then the index of the best matching method in this
5967 vector is returned. Update all callers.
5968 (find_overload_match): Include xmethods while performing overload
5971 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5973 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5974 * extension-priv.h (struct extension_language_ops): Add the
5976 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5977 get_matching_xmethod_workers, get_xmethod_argtypes,
5978 invoke_xmethod, free_xmethod_worker,
5979 free_xmethod_worker_vec): New functions.
5980 * extension.h: #include "common/vec.h".
5981 New function declarations.
5982 (struct xmethod_worker): New struct.
5983 (VEC (xmethod_worker_ptr)): New vector type.
5984 (xmethod_worker_ptr): New typedef.
5985 (xmethod_worker_vec): Likewise.
5986 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5988 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5989 (struct builtin_type): New field "xmethod".
5990 * valarith.c (value_ptradd): Assert that the value argument is not
5992 * valops.c (value_must_coerce_to_target): Return 0 for
5993 lval_xcallable values.
5994 * value.c (struct value): New field XM_WORKER in the field
5996 (value_address, value_raw_address): Return 0 for lval_xcallable
5998 (set_value_address): Assert that the value is not an
6000 (value_free): Free the associated xmethod worker when freeing
6001 lval_xcallable values.
6002 (set_value_component_location): Assert that the WHOLE value is not
6004 (value_of_xmethod, call_xmethod): New functions.
6005 * value.h: Declare "struct xmethod_worker".
6006 Declare new functions value_of_xmethod, call_xmethod.
6008 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6009 Pedro Alves <palves@redhat.com>
6011 PR breakpoints/17000
6012 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6013 New function, extracted from software_breakpoint_inserted_here_p.
6014 (software_breakpoint_inserted_here_p): Replace factored out code
6015 by call to find_non_raw_software_breakpoint_inserted_here.
6016 (bp_target_info_copy_insertion_state): New function.
6017 (bkpt_insert_location): Handle the case of a single-step
6018 breakpoint already inserted at the same address.
6019 (bkpt_remove_location): Handle the case of a single-step
6020 breakpoint still inserted at the same address.
6021 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6022 breakpoint already inserted at the same address.
6023 (deprecated_remove_raw_breakpoint): Handle the case of a
6024 non-raw breakpoint still inserted at the same address.
6025 (find_single_step_breakpoint): New function, extracted from
6026 single_step_breakpoint_inserted_here_p.
6027 (find_single_step_breakpoint): New function,
6028 factored out from single_step_breakpoint_inserted_here_p.
6029 (single_step_breakpoint_inserted_here_p): Reimplement.
6031 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6033 Pushed by Joel Brobecker <brobecker@adacore.com>
6034 * source.c (show_substitute_path_command): Fix display of matching
6037 2014-06-03 Gary Benson <gbenson@redhat.com>
6039 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6041 2014-06-02 Doug Evans <xdje42@gmail.com>
6043 Add parameter support for Guile.
6044 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6045 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6046 (scm-param.o): New rule.
6047 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6048 (gdbscm_misc_error): Declare.
6049 (gdbscm_canonicalize_command_name): Declare.
6050 (gdbscm_scm_to_host_string): Declare.
6051 (gdbscm_scm_from_host_string): Declare.
6052 (gdbscm_initialize_parameters): Declare.
6053 * guile/guile.c (initialize_gdb_module): Call
6054 gdbscm_initialize_parameters.
6055 * guile/lib/gdb.scm: Export parameter symbols.
6056 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6057 cmdscm_canonicalize_name and made public. All callers updated.
6058 * guile/scm-exception.c (gdbscm_misc_error): New function.
6059 * guile/scm-param.c: New file.
6060 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6061 (gdbscm_scm_to_host_string): New function.
6062 (gdbscm_scm_from_host_string): New function.
6063 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6065 2014-06-02 Doug Evans <xdje42@gmail.com>
6067 Add command support for Guile.
6068 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6069 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6070 (scm-cmd.o): New rule.
6071 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6072 (gdbscm_user_error_p): Declare.
6073 (gdbscm_parse_command_name): Declare.
6074 (gdbscm_valid_command_class_p): Declare.
6075 (gdbscm_initialize_commands): Declare.
6076 * guile/guile.c (initialize_gdb_module): Call
6077 gdbscm_initialize_commands.
6078 * guile/lib/gdb.scm: Export command symbols.
6079 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6080 (throw-user-error): New function.
6081 * guile/scm-cmd.c: New file.
6082 * guile/scm-exception.c (user_error_symbol): New static global.
6083 (gdbscm_user_error_p): New function.
6084 (gdbscm_initialize_exceptions): Set user_error_symbol.
6085 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6087 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6089 * top.c (command_loop): Handle comments here...
6090 (command_line_input): ... not here.
6092 2014-06-02 Doug Evans <xdje42@gmail.com>
6094 Add progspace support for Guile.
6095 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6096 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6097 (scm-progspace.o): New rule.
6098 * guile/guile-internal.h (pspace_smob): New typedef.
6099 (psscm_pspace_smob_pretty_printers): Declare.
6100 (psscm_pspace_smob_from_pspace): Declare.
6101 (psscm_scm_from_pspace): Declare.
6102 * guile/guile.c (initialize_gdb_module): Call
6103 gdbscm_initialize_pspaces.
6104 * guile/lib/gdb.scm: Export progspace symbols.
6105 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6107 (append-pretty-printer!): Ditto.
6108 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6110 * guile/scm-progspace.c: New file.
6112 2014-06-03 Alan Modra <amodra@gmail.com>
6114 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6115 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6117 2014-06-02 Doug Evans <dje@google.com>
6119 Add support for skeletonless type units.
6120 * dwarf2read.c (struct dwarf2_per_objfile): New member
6121 n_allocated_type_units.
6122 (struct dwarf2_per_objfile) <tu_stats>: New member
6123 nr_all_type_units_reallocs.
6124 (create_signatured_type_table_from_index): Initialize
6125 n_allocated_type_units
6126 (create_all_type_units): Ditto.
6127 (add_type_unit): Move up in file. New arg slot.
6128 All callers updated. Increase space for all_type_units more
6130 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6131 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6132 (lookup_dwp_signatured_type): Ditto.
6133 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6134 All callers updated.
6135 (build_type_psymtabs_1): Leave type_unit_groups as
6136 NULL if no TUs present.
6137 (print_tu_stats): New function.
6138 (process_skeletonless_type_unit): New function.
6139 (process_dwo_file_for_skeletonless_type_units): New
6141 (process_skeletonless_type_units): New function.
6142 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6143 Call print tu_stats if debugging enabled.
6145 2014-06-02 Pedro Alves <palves@redhat.com>
6147 * breakpoint.c (build_target_command_list): Don't build a command
6148 list if we have any duplicate location that isn't a dprintf.
6150 2014-06-02 Pedro Alves <palves@redhat.com>
6152 * breakpoint.c (dprintf_breakpoint_hit): New function.
6153 (initialize_breakpoint_ops): Install it as dprintf's
6154 breakpoint_hit method.
6156 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6158 * source.c (substitute_path_rule_matches): Simplify using
6159 filename_ncmp instead of FILENAME_CMP.
6161 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6163 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6165 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6167 * configure.ac: When Guile is available, check for the
6168 availability of 'scm_new_smob'.
6169 * configure, config.h.in: Regenerate.
6170 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6173 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6175 * frame.c (struct frame_info): Add stop_string field.
6176 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6177 (get_prev_frame_always): Old content moved into
6178 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6179 TRY_CATCH, handle MEMORY_ERROR exceptions.
6180 (frame_stop_reason_string): New function definition.
6181 * frame.h (unwind_stop_reason_to_string): Extend comment to
6182 mention frame_stop_reason_string.
6183 (frame_stop_reason_string): New function declaration.
6184 * stack.c (frame_info): Switch to frame_stop_reason_string.
6185 (backtrace_command_1): Switch to frame_stop_reason_string.
6186 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6187 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6188 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6190 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6192 * frame.c (frame_stop_reason_string): Rename to ...
6193 (unwind_stop_reason_to_string): this.
6194 * frame.h (frame_stop_reason_string): Rename to ...
6195 (unwind_stop_reason_to_string): this.
6196 * stack.c (frame_info): Update call to frame_stop_reason_string.
6197 (backtrace_command_1): Likewise.
6198 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6199 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6201 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6203 * frame.c (remove_prev_frame): New function.
6204 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6207 2014-05-29 Pedro Alves <palves@redhat.com>
6209 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6210 and make it const. When a single-step decays to a continue,
6211 clear 'step', not 'hw_step'. Pass whether the caller wanted
6212 to step to user_visible_resume_ptid, not what we ask the
6215 2014-05-29 Pedro Alves <palves@redhat.com>
6217 * infrun.c (process_event_stop_test, handle_step_into_function)
6218 (handle_step_into_function_backward): Adjust.
6219 Don't set the even thread's stop_step and call stop_waiting before
6220 calling end_stepping_range. Instead do that ...
6221 (end_stepping_range): ... here. Take an ecs pointer parameter.
6223 2014-05-29 Pedro Alves <palves@redhat.com>
6225 * infrun.c (stop_stepping): Rename to ...
6226 (stop_waiting): ... this.
6227 (proceed): Update comment.
6228 (process_event_stop_test, handle_inferior_event)
6229 (handle_signal_stop, handle_step_into_function)
6230 (handle_step_into_function_backward): Update.
6232 2014-05-29 Pedro Alves <palves@redhat.com>
6234 * infcall.c (run_inferior_call): Don't check whether the current
6235 thread is running after the proceed call.
6237 2014-05-29 Pedro Alves <palves@redhat.com>
6238 Tom Tromey <tromey@redhat.com>
6240 * NEWS: Mention "maint set target-async", "set mi-async", and that
6241 background execution commands are now always available.
6242 * target.h (target_async_permitted): Update comment.
6243 * target.c (target_async_permitted, target_async_permitted_1):
6245 (set_target_async_command): Rename to ...
6246 (maint_set_target_async_command): ... this.
6247 (show_target_async_command): Rename to ...
6248 (maint_show_target_async_command): ... this.
6249 (_initialize_target): Adjust.
6250 * infcmd.c (prepare_execution_command): Make extern.
6251 * inferior.h (prepare_execution_command): Declare.
6252 * infrun.c (set_observer_mode): Leave target async alone.
6253 * mi/mi-interp.c (mi_interpreter_init): Install
6254 mi_on_sync_execution_done as sync_execution_done observer.
6255 (mi_on_sync_execution_done): New function.
6256 (mi_execute_command_input_handler): Don't print the prompt if we
6257 just started a synchronous command with an async target.
6258 (mi_on_resume): Check sync_execution before printing prompt.
6259 * mi/mi-main.h (mi_async_p): Declare.
6260 * mi/mi-main.c: Include gdbcmd.h.
6261 (mi_async_p): New function.
6262 (mi_async, mi_async_1): New globals.
6263 (set_mi_async_command, show_mi_async_command, mi_async): New
6265 (exec_continue): Call prepare_execution_command.
6266 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6267 (mi_execute_async_cli_command): Use mi_async_p.
6268 (_initialize_mi_main): Install "set mi-async". Make
6269 "target-async" a deprecated alias.
6271 2014-05-29 Pedro Alves <palves@redhat.com>
6273 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6274 (_initialize_cli_interp): Adjust.
6275 * event-loop.c: Include "observer.h".
6276 (start_event_loop): Notify 'command_error' observers instead of
6277 calling display_gdb_prompt. Remove FIXME comment.
6278 * event-top.c (display_gdb_prompt): Remove call into the
6280 * inf-loop.c: Include "observer.h".
6281 (inferior_event_handler): Notify 'command_error' observers instead
6282 of calling display_gdb_prompt.
6283 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6284 observers instead of calling display_gdb_prompt.
6285 * interps.c (interp_set): Don't call display_gdb_prompt.
6286 (current_interp_display_prompt_p): Delete.
6287 * interps.h (interp_prompt_p): Delete declaration.
6288 (interp_prompt_p_ftype): Delete.
6289 (struct interp_procs) <prompt_proc_p>: Delete field.
6290 (current_interp_display_prompt_p): Delete declaration.
6291 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6292 (_initialize_mi_interp): Adjust.
6293 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6294 'command_error' observers.
6295 (tui_on_sync_execution_done, tui_on_command_error): New
6297 (tui_display_prompt_p): Delete.
6298 (_initialize_tui_interp): Adjust.
6300 2014-05-29 Pedro Alves <palves@redhat.com>
6303 * cli/cli-interp.c: Include infrun.h and observer.h.
6304 (cli_uiout, cli_interp): New globals.
6305 (cli_on_signal_received, cli_on_end_stepping_range)
6306 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6308 (cli_interpreter_init): Install them as 'end_stepping_range',
6309 'signal_received' 'signal_exited', 'exited' and 'no_history'
6311 (_initialize_cli_interp): Remove cli_interp local.
6312 * infrun.c (handle_inferior_event): Call the several stop reason
6313 observers instead of printing the stop reason directly.
6314 (end_stepping_range): New function.
6315 (print_end_stepping_range_reason, print_signal_exited_reason)
6316 (print_exited_reason, print_signal_received_reason)
6317 (print_no_history_reason): Make static, and add an uiout
6318 parameter. Print to that instead of to CURRENT_UIOUT.
6319 * infrun.h (print_end_stepping_range_reason)
6320 (print_signal_exited_reason, print_exited_reason)
6321 (print_signal_received_reason print_no_history_reason): New
6323 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6325 <cli_uiout>: New field.
6326 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6327 uiout for CLI output. Install 'signal_received',
6328 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6330 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6331 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6332 (mi_on_no_history): New functions.
6333 (ui_out_free_cleanup): Delete function.
6334 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6335 instead use the one already stored in the MI interpreter data.
6336 (mi_ui_out): Adjust.
6337 * tui/tui-interp.c: Include infrun.h and observer.h.
6338 (tui_interp): New global.
6339 (tui_on_signal_received, tui_on_end_stepping_range)
6340 (tui_on_signal_exited, tui_on_exited)
6341 (tui_on_no_history): New functions.
6342 (tui_init): Install them as 'end_stepping_range',
6343 'signal_received' 'signal_exited', 'exited' and 'no_history'
6345 (_initialize_tui_interp): Delete tui_interp local.
6347 2014-05-29 Pedro Alves <palves@redhat.com>
6350 * linux-nat.c (linux_nat_resume_callback): Rename the second
6351 parameter to 'except'. Skip LP if it points to EXCEPT.
6352 (linux_nat_resume): Don't mark the event lwp as not stopped
6353 before resuming sibling lwps. Instead ask
6354 linux_nat_resume_callback to skip the event lwp. Mark it as not
6355 stopped after actually resuming it.
6356 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6358 (wait_lwp): Mark the lwp as stopped here.
6359 (stop_wait_callback): Mark the lwp as not stopped right after
6360 resuming it. Don't mark lwps as stopped here.
6361 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6362 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6364 2014-05-29 Pedro Alves <palves@redhat.com>
6367 * infrun.c (resume): Determine how much to resume depending on
6368 whether the caller wanted a step, not whether we can hardware step
6369 the target. Mark all threads that we intend to run as running,
6370 unless we're calling an inferior function.
6371 (normal_stop): If the thread is running an infcall, don't finish
6373 * target.c (target_resume): Don't mark threads as running here.
6375 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6377 * serial.c (_initialize_serial): Remove support for
6378 the "set remotebaud" and "show remotebaud" commands.
6379 * NEWS: Add entry documenting the removal of that command.
6381 2014-05-28 Yao Qi <yao@codesourcery.com>
6383 * charset.c: Fix typo in comments.
6385 2014-05-27 Gary Benson <gbenson@redhat.com>
6387 * utils.c (internal_vproblem): Prompt for a bug report.
6389 2014-05-26 Andy Wingo <wingo@igalia.com>
6391 * guile/scm-arch.c (arscm_mark_arch_smob):
6392 * guile/scm-block.c (bkscm_mark_block_smob)
6393 (bkscm_mark_block_syms_progress_smob):
6394 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6395 * guile/scm-exception.c (exscm_mark_exception_smob):
6396 * guile/scm-frame.c (frscm_mark_frame_smob):
6397 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6398 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6399 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6400 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6401 (ppscm_mark_pretty_printer_worker_smob):
6402 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6403 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6404 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6405 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6407 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6410 2014-05-26 Andy Wingo <wingo@igalia.com>
6411 Doug Evans <xdje42@gmail.com>
6413 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6414 empty_base_class. All uses updated.
6415 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6416 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6418 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6419 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6420 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6421 (gdbscm_gsmob_has_property_p, add_property_name)
6422 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6423 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6424 (gdb-object-has-property?, gdb-object-properties): Remove.
6425 (gdb-object-kind): Renamed from gsmob-kind.
6427 2014-05-26 Andy Wingo <wingo@igalia.com>
6429 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6430 * configure: Regenerate.
6432 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6434 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6436 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6438 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6439 (replay_memory_access_read_only, replay_memory_access_read_write)
6440 (replay_memory_access_types, replay_memory_access)
6441 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6442 (cmd_set_record_btrace, cmd_show_record_btrace)
6443 (cmd_show_replay_memory_access): New.
6444 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6445 (record_btrace_remove_breakpoint): Replace
6446 record_btrace_allow_memory_access with replay_memory_access.
6447 (_initialize_record_btrace): Add commands.
6448 * NEWS: Announce it.
6450 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6452 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6454 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6456 * MAINTAINERS (Write After Approval): Move self back from
6459 2014-05-22 Pedro Alves <palves@redhat.com>
6461 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6462 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6463 (disable_randomization, enum exec_direction_kind)
6464 (execution_direction, stop_registers, start_remote)
6465 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6466 (wait_for_inferior, normal_stop, get_last_target_status)
6467 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6468 (insert_step_resume_breakpoint_at_sal)
6469 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6470 (set_step_info, print_stop_event, signal_stop_state)
6471 (signal_print_state, signal_pass_state, signal_stop_update)
6472 (signal_print_update, signal_pass_update)
6473 (update_signals_program_target, clear_exit_convenience_vars)
6474 (displaced_step_dump_bytes, update_observer_mode)
6475 (signal_catch_update, gdb_signal_from_command): Move
6477 * infrun.h: ... to this new file.
6478 * amd64-tdep.c: Include infrun.h.
6479 * annotate.c: Include infrun.h.
6480 * arch-utils.c: Include infrun.h.
6481 * arm-linux-tdep.c: Include infrun.h.
6482 * arm-tdep.c: Include infrun.h.
6483 * break-catch-sig.c: Include infrun.h.
6484 * breakpoint.c: Include infrun.h.
6485 * common/agent.c: Include infrun.h instead of inferior.h.
6486 * corelow.c: Include infrun.h.
6487 * event-top.c: Include infrun.h.
6488 * go32-nat.c: Include infrun.h.
6489 * i386-tdep.c: Include infrun.h.
6490 * inf-loop.c: Include infrun.h.
6491 * infcall.c: Include infrun.h.
6492 * infcmd.c: Include infrun.h.
6493 * infrun.c: Include infrun.h.
6494 * linux-fork.c: Include infrun.h.
6495 * linux-nat.c: Include infrun.h.
6496 * linux-thread-db.c: Include infrun.h.
6497 * monitor.c: Include infrun.h.
6498 * nto-tdep.c: Include infrun.h.
6499 * procfs.c: Include infrun.h.
6500 * record-btrace.c: Include infrun.h.
6501 * record-full.c: Include infrun.h.
6502 * remote-m32r-sdi.c: Include infrun.h.
6503 * remote-mips.c: Include infrun.h.
6504 * remote-notif.c: Include infrun.h.
6505 * remote-sim.c: Include infrun.h.
6506 * remote.c: Include infrun.h.
6507 * reverse.c: Include infrun.h.
6508 * rs6000-tdep.c: Include infrun.h.
6509 * s390-linux-tdep.c: Include infrun.h.
6510 * solib-irix.c: Include infrun.h.
6511 * solib-osf.c: Include infrun.h.
6512 * solib-svr4.c: Include infrun.h.
6513 * target.c: Include infrun.h.
6514 * top.c: Include infrun.h.
6515 * windows-nat.c: Include infrun.h.
6516 * mi/mi-interp.c: Include infrun.h.
6517 * mi/mi-main.c: Include infrun.h.
6518 * python/py-threadevent.c: Include infrun.h.
6520 2014-05-22 Pedro Alves <palves@redhat.com>
6522 * infrun.c (handle_inferior_event): Store the exit code for
6523 --return-child-result here, instead of ...
6524 (print_exited_reason): ... here.
6526 2014-05-21 Pedro Alves <palves@redhat.com>
6529 * gdbthread.h (struct thread_control_state): New field
6531 * infrun.c (follow_fork): Copy the new thread control field to the
6533 (clear_proceed_status_thread): Clear the new thread control field.
6534 (proceed): Set the new thread control field.
6535 * interps.h (command_interp): Declare.
6536 * interps.c (command_interpreter): New global.
6537 (command_interp): New function.
6538 (interp_exec): Set `command_interpreter' while here.
6539 * cli-out.c (cli_uiout_dtor): New function.
6540 (cli_ui_out_impl): Install it.
6541 * mi/mi-interp.c: Include cli-out.h.
6542 (mi_cmd_interpreter_exec): Add comment.
6543 (restore_current_uiout_cleanup): New function.
6544 (ui_out_free_cleanup): New function.
6545 (mi_on_normal_stop): If finishing an execution command started by
6546 a CLI command, or any kind of breakpoint-like event triggered,
6547 print the stop event to the output (CLI) stream.
6548 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6550 2014-05-21 Pedro Alves <palves@redhat.com>
6552 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6553 current source line having changed.
6554 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6555 * infrun.c (normal_stop): Adjust call to
6556 set_current_sal_from_frame.
6557 * source.c (clear_lines_listed_range): New function.
6558 (set_current_source_symtab_and_line, identify_source_line): Clear
6559 the lines listed range.
6560 (line_info): Handle the first "info line" after the current source
6561 line having changed.
6562 * stack.c (print_stack_frame): Remove center handling.
6563 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6566 2014-05-21 Pedro Alves <palves@redhat.com>
6568 * inf-child.c (inf_child_mourn_inferior): New function.
6569 * inf-child.h (inf_child_mourn_inferior): New declaration.
6570 * darwin-nat.c (darwin_mourn_inferior): Use
6571 inf_child_mourn_inferior.
6572 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6573 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6574 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6575 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6576 * windows-nat.c (windows_mourn_inferior): Likewise.
6578 2014-05-21 Doug Evans <xdje42@gmail.com>
6580 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6582 2014-05-21 Doug Evans <xdje42@gmail.com>
6584 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6585 (gdbscm_out_of_range_error): Ditto.
6586 (gdbscm_memory_error): Ditto.
6587 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6588 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6589 (gdbscm_out_of_range_error): Update.
6590 (gdbscm_memory_error): Update.
6591 (gdbscm_scm_to_target_string_unsafe): Delete.
6593 2014-05-21 Pedro Alves <palves@redhat.com>
6595 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6597 (inf_child_open_target): New function.
6598 (inf_child_open): Use inf_child_open_target to push the target
6599 instead of erroring out.
6600 (inf_child_disconnect, inf_child_close)
6601 (inf_child_maybe_unpush_target): New functions.
6602 (inf_child_target): Install inf_child_disconnect and
6603 inf_child_close. Store a pointer to the returned object.
6604 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6606 * target.c (auto_connect_native_target): New global.
6607 (show_default_run_target): New function.
6608 (find_default_run_target): Return NULL if automatically connecting
6609 to the native target is disabled.
6610 (_initialize_target): Install set/show auto-connect-native-target.
6611 * NEWS: Mention "set auto-connect-native-target", and "target
6613 * linux-nat.c (super_close): New global.
6614 (linux_nat_close): Call super_close.
6615 (linux_nat_add_target): Store a pointer to the base class's
6617 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6618 inf_child_maybe_unpush.
6619 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6621 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6622 the inferior. Use inf_child_maybe_unpush_target.
6623 (inf_ttrace_attach): Don't push the target if it is already
6625 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6626 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6627 after mourning the inferior. Use inf_child_maybe_unpush_target.
6628 (darwin_attach_pid): Don't push the target if it is already
6630 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6631 mourning the inferior. Use inf_child_maybe_unpush_target.
6632 (gnu_detach): Use inf_child_maybe_unpush_target.
6633 * go32-nat.c (go32_create_inferior): Don't push the target if it
6635 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6636 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6637 (procfs_open): Rename to ...
6638 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6639 comments. Can target_preopen before changing node. Call
6640 inf_child_open_target to push the target explicitly.
6641 (procfs_attach): Don't push the target if it is already pushed.
6642 (procfs_detach): Use inf_child_maybe_unpush_target.
6643 (procfs_create_inferior): Don't push the target if it is already
6645 (nto_native_ops): New global.
6646 (procfs_open): Reimplement.
6647 (procfs_native_open): New function.
6648 (init_procfs_targets): Install procfs_native_open as to_open of
6649 "target native". Store a pointer to the "native" target in
6651 * procfs.c (procfs_attach): Don't push the target if it is already
6653 (procfs_detach): Use inf_child_maybe_unpush_target.
6654 (procfs_mourn_inferior): Only unpush the target after mourning the
6655 inferior. Use inf_child_maybe_unpush_target.
6656 (procfs_init_inferior): Don't push the target if it is already
6658 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6659 if it is already pushed.
6661 2014-05-21 Pedro Alves <palves@redhat.com>
6663 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6664 and "procfs" targets are now called "native" instead.
6666 2014-05-21 Pedro Alves <palves@redhat.com>
6668 * go32-nat.c (go32_open): Delete.
6669 (go32_target): Don't override the to_open method.
6671 2014-05-21 Pedro Alves <palves@redhat.com>
6673 * nto-procfs.c (procfs_can_run): New function.
6674 (nto_procfs_ops): New global.
6675 (init_procfs_targets): New, based on procfs_target. Install
6676 "target native" in addition to "target procfs".
6677 (_initialize_procfs): Call init_procfs_targets instead of adding
6680 2014-05-21 Pedro Alves <palves@redhat.com>
6682 * windows-nat.c (windows_target): Don't override to_shortname,
6683 to_longname or to_doc.
6685 2014-05-21 Pedro Alves <palves@redhat.com>
6687 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6690 2014-05-21 Pedro Alves <palves@redhat.com>
6692 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6693 to_shortname, to_longname or to_doc.
6695 2014-05-21 Pedro Alves <palves@redhat.com>
6697 * go32-nat.c (go32_target): Don't override to_shortname,
6698 to_longname or to_doc.
6700 2014-05-21 Pedro Alves <palves@redhat.com>
6702 * inf-child.c (inf_child_open): Remove mention of "child".
6703 (inf_child_target): Rename target to "native" instead of "child".
6705 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6707 * Makefile.in (SFILES): Delete "regset.c".
6708 (COMMON_OBS): Delete "regset.o".
6710 * regset.h (regset_alloc): Delete prototype.
6712 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6714 * sparc-linux-tdep.c (sparc32_linux_gregset)
6715 (sparc32_linux_fpregset): New static regset structures.
6716 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6717 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6719 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6720 (sparc64_linux_fpregset): New static regset structures.
6721 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6722 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6723 New static regset structures.
6724 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6725 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6726 New static regset structures.
6727 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6728 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6729 New static regset structures.
6730 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6731 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6732 New static regset structures.
6733 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6735 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6737 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6738 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6739 register maps ("regmaps") from "*regset" to "*regmap". Do this
6740 for all regmap types and variables.
6741 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6742 (sparc32_linux_supply_core_gregset)
6743 (sparc32_linux_collect_core_gregset)
6744 (sparc32_linux_supply_core_fpregset)
6745 (sparc32_linux_collect_core_fpregset): Likewise.
6746 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6747 (sparc_gregmap, sparc_fpregmap): ... these.
6748 (sparc_supply_gregset, sparc_collect_gregset)
6749 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6750 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6751 (_initialize_sparc_nat): Rename regmaps.
6752 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6753 (sparc_gregmap, sparc_fpregmap): ... these.
6754 (sparc_supply_gregset, sparc_collect_gregset)
6755 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6756 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6758 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6759 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6761 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6763 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6764 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6765 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6767 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6768 (sparc32_bsd_fpregset): Rename to...
6769 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6770 (sparc32_bsd_fpregmap): ... these.
6771 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6772 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6773 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6774 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6775 (struct sparc_gregmap, struct sparc_fpregmap)
6776 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6777 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6778 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6779 (sparc32_supply_regset, sparc32_collect_gregset)
6780 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6782 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6783 (sparc64_linux_ptrace_gregmap): ... this.
6784 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6785 (_initialize_sparc64_linux_nat): Rename regmaps.
6786 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6787 (sparc64_linux_core_gregmap): ... this.
6788 (sparc64_linux_supply_core_gregset)
6789 (sparc64_linux_collect_core_gregset)
6790 (sparc64_linux_supply_core_fpregset)
6791 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6792 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6793 (sparc64_sol2_fpregset): Rename to...
6794 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6795 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6796 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6798 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6799 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6800 (sparc64_bsd_fpregset): Rename to...
6801 (struct sparc_gregmap, sparc64_sol2_gregmap)
6802 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6803 (sparc64_bsd_fpregmap): ... these.
6804 (sparc64_supply_gregset, sparc64_collect_gregset)
6805 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6807 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6808 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6809 (sparc64fbsd_gregmap): ... this.
6810 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6811 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6813 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6814 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6815 (sparc64nbsd_collect_fpregset): Likewise.
6816 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6817 (sparc64nbsd_gregmap): ... this.
6818 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6820 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6821 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6822 (sparc64obsd_gregmap): ... this.
6823 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6825 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6826 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6827 (sparc32nbsd_gregmap): ... this.
6828 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6831 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6833 * score-tdep.c (score7_linux_gregset): New static regset
6835 (score7_linux_regset_from_core_section): Remove dynamic regset
6837 (score_gdbarch_init): Drop allocation of tdep structure.
6838 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6840 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6842 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6844 (am33_regset_from_core_section): Remove dynamic regset
6847 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6849 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6850 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6852 (mips_linux_regset_from_core_section): Remove dynamic regset
6854 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6855 'gregset64', 'fpregset', and 'fpregset64'.
6856 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6857 deleted tdep fields.
6859 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6861 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6863 (amd64_regset_from_core_section): Remove dynamic regset
6865 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6867 (amd64obsd_regset_from_core_section): Remove dynamic regset
6869 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6871 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6872 x86-common regset supply function.
6873 * i386-tdep.c (i386_collect_gregset): Make static.
6874 (i386_gregset): New global regset structure.
6875 (i386_fpregset, i386_xstateregset): New static regset structures.
6876 (i386_regset_from_core_section): Remove dynamic regset
6878 (i386_gdbarch_init): Remove initialization of tdep fields
6879 'gregset', 'fpregset', and 'xstateregset'.
6880 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6881 'fpregset', and 'xstateregset'.
6882 (i386_collect_gregset): Remove prototype.
6883 (i386_gregset): New declaration.
6884 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6886 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6889 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6891 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6892 (arm_linux_vfpregset): New static regset structures.
6893 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6895 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6896 and 'vfpregset' fields.
6898 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6900 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6901 (aarch64_linux_fpregset): New static regset structures.
6902 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6903 of regset structures.
6904 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6907 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6909 * regset.h (struct regset): Remove gdbarch field.
6910 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6911 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6912 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6914 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6915 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6916 (ppc32_linux_vsxregset): Likewise.
6917 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6918 via the regcache instead of the regset.
6919 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6920 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6921 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6922 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6925 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6927 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6928 Constify structures.
6929 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6930 (alphanbsd_aout_gregset): Likewise.
6931 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6932 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6934 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6935 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6937 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6938 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6939 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6940 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6941 * m88k-tdep.c (m88k_gregset): Likewise.
6942 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6943 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6944 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6945 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6946 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6947 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6948 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6949 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6950 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6952 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6953 * sh-tdep.h (sh_corefile_gregset): Likewise.
6954 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6955 * vax-tdep.c (vax_gregset): Likewise.
6957 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6959 Fix TLS access for -static -pthread.
6960 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6961 (try_thread_db_load_1): Initialize it.
6962 (thread_db_get_thread_local_address): Call it if LM is zero.
6963 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6964 * target.h (struct target_ops) (to_get_thread_local_address): Add
6965 load_module_addr comment.
6967 2014-05-21 Pedro Alves <palves@redhat.com>
6969 * dcache.c (dcache_read_memory_partial): If reading the cache line
6970 fails, fallback to reading just the memory the caller wanted.
6972 2014-05-20 Doug Evans <dje@google.com>
6974 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6975 instead of get_current_arch.
6977 2014-05-20 Pedro Alves <palves@redhat.com>
6979 * NEWS: Mention that compare-sections now works with all targets.
6981 * remote.c (PACKET_qCRC): New enum value.
6982 (remote_verify_memory): Don't send qCRC if the target has no
6983 execution. Use packet_support/packet_ok. If the target doesn't
6984 support the qCRC packet, fallback to a deep memory copy.
6985 (compare_sections_command): Say "target image" instead of "remote
6987 (_initialize_remote): Add PACKET_qCRC to the list of config
6988 packets that have no associated command. Extend comment.
6989 * target.c (simple_verify_memory, default_verify_memory): New
6991 * target.h (struct target_ops) <to_verify_memory>: Default to
6992 default_verify_memory.
6993 (simple_verify_memory): New declaration.
6994 * target-delegates.c: Regenerate.
6996 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6998 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7000 2014-05-20 Hui Zhu <hui@codesourcery.com>
7001 Yao Qi <yao@codesourcery.com>
7004 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7005 and change address of sp and pc.
7007 2014-05-19 Tom Tromey <tromey@redhat.com>
7009 * gdbtypes.c (rank_function): Use XNEWVEC.
7010 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7012 2014-05-19 Doug Evans <dje@google.com>
7014 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7015 build_type_unit_groups and moved closer to only caller. Remove
7016 arguments. All references updated. Remove outdated .gdb_index
7018 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7019 build_type_psymtabs_1.
7021 2014-05-19 Doug Evans <dje@google.com>
7023 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7024 n_type_unit_groups, all_type_unit_groups. All uses removed.
7025 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7026 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7027 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7028 (add_type_unit_group_to_table): Delete.
7030 2014-05-19 Doug Evans <dje@google.com>
7032 * eval.c (evaluate_subexp_standard): Add some comments.
7034 2014-05-17 Doug Evans <xdje42@gmail.com>
7036 * progspace.c (remove_program_space): Delete, unused.
7037 * progspace.h (remove_program_space): Ditto.
7039 2014-05-17 Doug Evans <xdje42@gmail.com>
7041 * inferior.c (prune_inferiors): Fix comment.
7042 (remove_inferior_command): Call prune_program_spaces.
7044 2014-05-16 Doug Evans <dje@google.com>
7046 New command line option -D.
7048 * main.c (set_gdb_data_directory): New function.
7049 (captured_main): Recognize -D. Flag error for --data-directory "".
7050 Call set_gdb_data_directory.
7051 (print_gdb_help): Print --data-directory, -D.
7052 * main.h (set_gdb_data_directory): Declare.
7053 * top.c (staged_gdb_datadir): New static global.
7054 (set_gdb_datadir): Call set_gdb_data_directory
7055 (show_gdb_datadir): New function.
7056 (init_main): Update init of data-directory parameter.
7058 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7060 Import the "dirfd" gnulib module.
7061 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7062 * gnulib/aclocal.m4: Update.
7063 * gnulib/config.in: Update.
7064 * gnulib/configure: Update.
7065 * gnulib/import/Makefile.am: Update.
7066 * gnulib/import/Makefile.in: Update.
7067 * gnulib/import/dirfd.c: New.
7068 * gnulib/import/m4/dirfd.m4: New.
7069 * gnulib/import/m4/gnulib-cache.m4: Update.
7070 * gnulib/import/m4/gnulib-comp.m4: Update.
7072 2014-05-16 Pierre Muller <muller@sourceware.org>
7073 Yao Qi <yao@codesourcery.com>
7075 * valprint.c (print_wchar): Move the code on checking whether
7076 W is a printable wide char to the default branch of switch
7077 statement below. Call wchar_printable instead of gdb_iswprint.
7079 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7081 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7082 ldr.w and ldrd instructions.
7084 2014-05-15 Doug Evans <dje@google.com>
7086 * dwarf2read.c (read_structure_type): Delete outdated comments.
7088 2014-05-14 Tom Tromey <tromey@redhat.com>
7090 * macrocmd.c (print_macro_definition): Reindent.
7092 2014-05-13 Doug Evans <xdje42@gmail.com>
7094 * python/py-cmd.c (cmdpy_completer): Add comment.
7095 (completers): Make const.
7097 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7099 * infrun.c (resume): Remove should_resume (unused). Move up
7100 declaration of resume_ptid.
7102 2014-05-13 Tom Tromey <tromey@redhat.com>
7104 * language.h (unop_type_check): Remove.
7105 (binop_type_check): Don't declare.
7107 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7109 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7110 call to regcache_raw_collect.
7112 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7114 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7115 mi_console->quote as the quoting character.
7117 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7119 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7121 2014-04-29 Tom Tromey <tromey@redhat.com>
7123 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7124 "show debug varobj".
7126 2014-05-07 Kyle McMartin <kyle@redhat.com>
7128 Pushed by Joel Brobecker <brobecker@adacore.com>.
7129 * aarch64-tdep.c (aarch64_software_single_step): New function.
7130 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7131 with aarch64_software_single_step.
7133 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7137 2014-05-05 Keith Seitz <keiths@redhat.com>
7139 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7140 variable or history value is successfully parsed.
7142 2014-05-05 Yao Qi <yao@codesourcery.com>
7143 Pedro Alves <palves@redhat.com>
7145 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7146 address of blocks that intersects the requested range. Trim
7147 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7149 * ctf.c (ctf_xfer_partial): Likewise.
7151 2014-05-05 Yao Qi <yao@codesourcery.com>
7153 * printcmd.c (display_command): Remove the check to
7154 target_has_execution.
7156 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7158 * ppcobsd-nat.c: Include "obsd-nat.h".
7159 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7161 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7163 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7165 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7166 and 16-bit signed and unsigned arguments. Update comment.
7167 (stap_parse_probe_arguments): Extend code to handle such
7168 arguments. Use warning instead of complaint to notify about
7169 unrecognized bitness.
7171 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7173 PR breakpoints/16889
7174 * stap-probe.c (stap_parse_probe_arguments): Simplify
7175 check for non-prefixed probes (i.e., probes whose
7176 arguments do not start with "N@"). Always set the
7177 argument type to a sane value.
7179 2014-05-01 David Taylor <dtaylor@emc.com>
7181 * remote.c (compare_sections_command): Add -r option to compare
7182 all loadable read-only sections.
7184 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7186 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7187 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7189 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7190 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7191 Remove unused CORE_ADDR argument. Update all callers.
7193 2014-04-29 Pedro Alves <palves@redhat.com>
7195 * remote.c (struct packet_config) <detect>: Extend comment.
7196 (add_packet_config_cmd): Don't set the config's detect or support
7198 (init_all_packet_configs): Also initialize the config's 'detect'
7200 (reset_all_packet_configs_support): New function.
7201 (remote_open_1): Call reset_all_packet_configs_support instead of
7202 init_all_packet_configs.
7203 (_initialize_remote): Initialize all packet configs. Assert that
7204 all packets have an associated command, except a few known
7207 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7209 * dwarf2read.c (read_subrange_type): Handle dynamic
7210 DW_AT_lower_bound attributes.
7212 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7214 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7215 dynamic bounds before computing its upper bound.
7216 (ada_discrete_type_low_bound): Same as above with the lower bound.
7218 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7220 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7221 range types. Adjust the array handling implementation to
7222 take advantage of this change.
7223 (resolve_dynamic_range): New function, mostly extracted from
7224 resolve_dynamic_bounds.
7225 (resolve_dynamic_array): New function, mostly extracted from
7226 resolve_dynamic_bounds.
7227 (resolve_dynamic_bounds): Delete.
7228 (resolve_dynamic_type): Reimplement. Add handling of
7229 TYPE_CODE_RANGE types.
7231 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7233 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7234 handling of parallel ___XA types.
7236 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7238 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7239 unnecessary second call to static_unwrap_type.
7241 2014-04-27 Hui Zhu <hui@codesourcery.com>
7243 * stack.c (print_frame_info): Call do_gdb_disassembly with
7244 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7246 2014-04-26 Doug Evans <xdje42@gmail.com>
7248 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7250 2014-04-25 Pedro Alves <palves@redhat.com>
7253 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7254 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7255 and newline from built string.
7256 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7257 (linux_ptrace_attach_fail_reason): ... this.
7258 * linux-nat.c (linux_nat_attach): Adjust to use
7259 linux_ptrace_attach_fail_reason.
7261 2014-04-25 Pedro Alves <palves@redhat.com>
7263 * remote.c (struct remote_state): Remove multi_process_aware,
7264 non_stop_aware, cond_tracepoints, cond_breakpoints,
7265 breakpoint_commands, fast_tracepoints, static_tracepoints,
7266 install_in_trace, disconnected_tracing,
7267 enable_disable_tracepoints, string_tracing, and
7268 augmented_libraries_svr4_read fields.
7269 (remote_multi_process_p): Move further below in the file.
7270 (struct packet_config): Add comments.
7271 (update_packet_config): Delete function.
7272 (show_packet_config_cmd): Use packet_config_support.
7273 (add_packet_config_cmd): Use NULL as set callback.
7274 (packet_ok): "set remote foo-packet"-style commands no longer
7275 change config->supported -- adjust.
7276 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7277 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7278 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7279 (PACKET_QNonStop, PACKET_multiprocess_feature)
7280 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7281 (PACKET_DisconnectedTracing_feature)
7282 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7283 (set_remote_protocol_packet_cmd): Delete function.
7284 (packet_config_support, packet_support): New functions.
7285 (set_remote_protocol_Z_packet_cmd): Don't call
7286 update_packet_config.
7287 (remote_query_attached, remote_pass_signals)
7288 (remote_program_signals, remote_threads_info)
7289 (remote_threads_extra_info, remote_start_remote): Use
7291 (remote_start_remote): Use packet_config_support and
7293 (init_all_packet_configs): Set all packets to unknown support,
7294 instead of calling update_packet_config.
7295 (remote_check_symbols): Use packet_support.
7296 (remote_supported_packet): Unconditionally set the packet config's
7298 (remote_multi_process_feature, remote_non_stop_feature)
7299 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7300 (remote_breakpoint_commands_feature)
7301 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7302 (remote_install_in_trace_feature)
7303 (remote_disconnected_tracing_feature)
7304 (remote_enable_disable_tracepoint_feature)
7305 (remote_string_tracing_feature)
7306 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7307 (remote_protocol_features): Adjust to use remote_supported_packet
7308 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7309 "ConditionalTracepoints", "ConditionalBreakpoints",
7310 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7311 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7312 "EnableDisableTracepoints", and "tracenz".
7313 (remote_query_supported): Use packet_support.
7314 (remote_open_1): Adjust.
7315 (extended_remote_attach_1): Use packet_support. Switch on the
7316 result of packet_ok instead of checking whether the packet ended
7318 (remote_vcont_resume): Use packet_support.
7319 (remote_resume, remote_stop_ns, fetch_register_using_p)
7320 (remote_prepare_to_store, store_register_using_P)
7321 (check_binary_download, remote_write_bytes): Use packet_support.
7322 (remote_vkill): Use packet_support. Switch on the result of
7323 packet_ok instead of checking whether the packet ended up
7325 (extended_remote_supports_disable_randomization): Use
7327 (extended_remote_run): Switch on the result of packet_ok instead
7328 of checking whether the packet ended up disabled.
7329 (remote_insert_breakpoint, remote_remove_breakpoint)
7330 (remote_insert_watchpoint, remote_remove_watchpoint)
7331 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7333 (remote_search_memory): Use packet_config_support.
7334 (remote_get_thread_local_address, remote_get_tib_address)
7335 (remote_hostio_send_command, remote_can_execute_reverse): Use
7337 (remote_supports_cond_tracepoints)
7338 (remote_supports_cond_breakpoints)
7339 (remote_supports_fast_tracepoints)
7340 (remote_supports_static_tracepoints)
7341 (remote_supports_install_in_trace)
7342 (remote_supports_enable_disable_tracepoint)
7343 (remote_supports_string_tracing)
7344 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7345 the packet config says the feature is enabled or disabled.
7346 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7347 (remote_get_trace_status): Use packet_support.
7348 (remote_set_disconnected_tracing): Adjust to check whether the
7349 feature is enabled with packet_support.
7350 (remote_set_trace_buffer_size, remote_use_agent)
7351 (remote_can_use_agent, remote_supports_btrace): Use
7353 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7354 Use packet_config_support.
7355 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7356 the packet config says the feature is enabled or disabled.
7357 (set_range_stepping): Use packet_support.
7359 2014-04-25 Tom Tromey <tromey@redhat.com>
7361 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7364 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7366 * NEWS: Mention support for C99 variable length arrays.
7368 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7370 * ada-lang.c (standard_exc): Expand introductory comment.
7372 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7373 Walfred Tedeschi <walfred.tedeschi@intel.com>
7375 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7377 (amd64_linux_read_description): Add code to handle AVX512 xstate
7378 mask and return respective tdesc.
7379 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7380 and features/i386/x32-avx512-linux.c.
7381 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7382 (amd64_linux_core_read_description): Add code to handle AVX512
7383 xstate mask and return respective tdesc.
7384 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7385 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7387 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7388 (tdesc_amd64_avx512_linux): New prototype.
7389 (tdesc_x32_avx512_linux): Likewise.
7390 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7391 features/i386/x32-avx512.c.
7392 (amd64_ymm_avx512_names): New register names for pseudo
7394 (amd64_ymmh_avx512_names): New register names for raw registers
7396 (amd64_k_names): New register names for K registers.
7397 (amd64_zmmh_names): New register names for ZMM raw registers.
7398 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7399 (amd64_xmm_avx512_names): New register names for XMM16-31
7401 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7403 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7404 if feature is present.
7405 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7406 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7407 (AMD64_NUM_REGS): Adjust to new number of registers.
7408 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7409 registers supplied via XSTATE by AVX512 registers.
7410 (i386_linux_read_description): Add case for AVX512.
7411 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7412 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7413 (i386_linux_core_read_description): Add case for AVX512.
7414 (i386_linux_init_abi): Install supported register note section
7416 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7418 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7419 registers to be number of zmm7h + 1.
7420 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7421 * i386-tdep.c: Include features/i386/i386-avx512.c.
7422 (i386_zmm_names): Add ZMM pseudo register names array.
7423 (i386_zmmh_names): Add ZMM raw register names array.
7424 (i386_k_names): Add K raw register names array.
7425 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7426 registers. AVX512 has 16 more ZMM registers than there are YMM
7428 (i386_zmmh_regnum_p): Add function to look up register number of
7430 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7431 (i386_k_regnum_p): Likewise for K raw registers.
7432 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7433 registers added by AVX512.
7434 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7435 registers added by AVX512.
7436 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7438 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7439 (i386_pseudo_register_name): Add ZMM pseudo registers.
7440 (i386_zmm_type): Construct and return vector registers type for ZMM
7442 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7443 ZMM0-31 pseudo registers and K registers.
7444 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7445 and YMM16-31 registers from register cache.
7446 (i386_pseudo_register_write): Add code to write K, ZMM and
7448 (i386_register_reggroup_p): Add code to include/exclude AVX512
7449 registers in/from respective register groups.
7450 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7451 registers if feature is present in xcr0.
7452 (i386_gdbarch_init): Add code to initialize AVX512 feature
7453 variables in tdep structure, wire in pseudo registers and call
7454 initialize_tdesc_i386_avx512.
7455 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7457 (i386_regnum): Add AVX512 registers.
7458 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7459 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7460 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7461 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7463 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7464 (i386_ymm_avx512_regnum_p): Likewise.
7465 (i386_k_regnum_p): Likewise.
7466 (i386_zmm_regnum_p): Likewise.
7467 (i386_zmmh_regnum_p): Likewise.
7468 * i387-tdep.c : Update year in copyright notice.
7469 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7471 (XSAVE_YMM_AVX512_ADDR): New macro.
7472 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7474 (XSAVE_XMM_AVX512_ADDR): New macro.
7475 (xsave_avx512_k_offset): New table for K register offsets in
7477 (XSAVE_AVX512_K_ADDR): New macro.
7478 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7480 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7481 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7483 (i387_collect_xsave): Add code to collect AVX512 registers from
7485 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7486 of XMM16-31 registers.
7487 (I387_NUM_K_REGS): New define for number of K registers.
7488 (I387_K0_REGNUM): New define for K0 register number.
7489 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7490 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7491 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7493 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7494 (I387_XMM16_REGNUM): New define for XMM16 register number.
7495 (I387_YMM0_REGNUM): New define for YMM0 register number.
7496 (I387_KEND_REGNUM): New define for last K register number.
7497 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7498 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7500 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7502 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7504 * features/Makefile: Add AVX512 related files.
7505 * features/i386/32bit-avx512.xml: New file.
7506 * features/i386/64bit-avx512.xml: Likewise.
7507 * features/i386/amd64-avx512-linux.c: Likewise.
7508 * features/i386/amd64-avx512-linux.xml: Likewise.
7509 * features/i386/amd64-avx512.c: Likewise.
7510 * features/i386/amd64-avx512.xml: Likewise.
7511 * features/i386/i386-avx512-linux.c: Likewise.
7512 * features/i386/i386-avx512-linux.xml: Likewise.
7513 * features/i386/i386-avx512.c: Likewise.
7514 * features/i386/i386-avx512.xml: Likewise.
7515 * features/i386/x32-avx512-linux.c: Likewise.
7516 * features/i386/x32-avx512-linux.xml: Likewise.
7517 * features/i386/x32-avx512.c: Likewise.
7518 * features/i386/x32-avx512.xml: Likewise.
7519 * regformats/i386/amd64-avx512-linux.dat: New file.
7520 * regformats/i386/amd64-avx512.dat: Likewise.
7521 * regformats/i386/i386-avx512-linux.dat: Likewise.
7522 * regformats/i386/i386-avx512.dat: Likewise.
7523 * regformats/i386/x32-avx512-linux.dat: Likewise.
7524 * regformats/i386/x32-avx512.dat: Likewise.
7525 * NEWS: Add note about new support for AVX512.
7528 2014-04-23 Pedro Alves <palves@redhat.com>
7530 * breakpoint.c (insert_bp_location): Tolerate errors if the
7531 breakpoint is set in a user-loaded objfile.
7532 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7533 location is marked shlib_disabled. If the breakpoint is set in a
7534 user-loaded objfile is a GDB-side memory breakpoint, validate it
7535 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7536 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7538 * mem-break.c (memory_validate_breakpoint): New function.
7539 * objfiles.c (userloaded_objfile_contains_address_p): New
7541 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7542 * target.h (memory_validate_breakpoint): New declaration.
7544 2014-04-23 Pedro Alves <palves@redhat.com>
7546 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7547 the breakpoint is set in a shared library, only suppress
7548 errors for software breakpoints, not hardware breakpoints.
7550 2014-04-22 Pedro Alves <palves@redhat.com>
7552 * infrun.c (schedlock_applies): New function, factored out from
7553 find_thread_needs_step_over.
7554 (find_thread_needs_step_over): Use it.
7555 (switch_back_to_stepped_thread): Always clear trap_expected if the
7556 step over is finished. Return early if scheduler locking applies.
7557 Look for the stepping thread and a potential step-over thread with
7559 (currently_stepping_or_nexting_callback): Delete.
7561 2014-04-22 Nick Clifton <nickc@redhat.com>
7563 * NEWS: Mention that ARM sim now supports tracing.
7565 2014-04-22 Yao Qi <yao@codesourcery.com>
7567 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7569 * tracefile.c (tracefile_fetch_registers): ... it. New
7571 * tracefile.h (tracefile_fetch_registers): Declare.
7572 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7573 tracefile_fetch_registers.
7575 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7578 * windows-nat.c (thread_rec): Don't display a warning when
7579 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7580 fails for any reason, set th->suspended to -1, so that we don't
7581 try to resume such a thread. Also, don't return NULL in these
7582 cases, to avoid completely ruin the session due to "PC register is
7583 not available" error.
7584 (do_windows_fetch_inferior_registers): Check errors in
7585 GetThreadContext call.
7586 (windows_continue): Accept an additional argument KILLED; if not
7587 zero, ignore errors in the SetThreadContext call, since the
7588 inferior was killed and is shutting down.
7589 (windows_resume, get_windows_debug_event)
7590 (windows_create_inferior, windows_mourn_inferior)
7591 (windows_kill_inferior): All callers of windows_continue changed
7592 to adjust to its new calling sequence.
7594 2014-04-19 Yao Qi <yao@codesourcery.com>
7596 * ctf.c (ctf_open): Call post_create_inferior.
7598 2014-04-19 Yao Qi <yao@codesourcery.com>
7600 * ctf.c (handle_id): New static variable.
7601 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7602 value. Get the declaration of event "register" and get length
7603 of field "contents".
7605 2014-04-19 Yao Qi <yao@codesourcery.com>
7607 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7609 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7611 * valops.c (oload_method_static): Remove unnecessary argument
7612 METHOD. Update all callers.
7614 2014-04-18 Pedro alves <palves@redhat.com>
7615 Tom Tromey <tromey@redhat.com>
7618 * frame.c (get_prev_frame_1): Rename to ...
7619 (get_prev_frame_always): ... this, and make extern. Adjust.
7620 (skip_artificial_frames): Use get_prev_frame_always.
7621 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7622 (get_frame_unwind_stop_reason): Adjust to rename.
7623 * frame.h (get_prev_frame_always): Declare.
7624 * inline-frame.c: Include frame.h.
7625 (inline_frame_this_id): Use get_prev_frame_always.
7627 2014-04-18 Tristan Gingold <gingold@adacore.com>
7629 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7630 code by using bfd_mach_o_get_base_address.
7632 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7634 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7635 (spu_ax_pseudo_register_collect): New function.
7636 (spu_ax_pseudo_register_push_stack): Likewise.
7637 (spu_dwarf_reg_to_regnum): Likewise.
7638 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7640 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7642 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7643 Replace FRAME argument with FRAME_ID.
7644 * gdbarch.c, gdbarch.h: Regenerate.
7645 * findvar.c (default_value_from_register): Add GDBARCH argument;
7646 replace FRAME by FRAME_ID. No longer call get_frame_id.
7647 (value_from_register): Update call to gdbarch_value_from_register.
7648 * value.h (default_value_from_register): Update prototype.
7649 * s390-linux-tdep.c (s390_value_from_register): Update interface
7650 and call to default_value_from_register.
7651 * spu-tdep.c (spu_value_from_register): Likewise.
7653 * findvar.c (address_from_register): Remove TYPE argument.
7654 Do not call value_from_register; use gdbarch_value_from_register
7655 with null_frame_id instead.
7656 * value.h (address_from_register): Update prototype.
7657 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7658 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7659 address_from_register interface change.
7661 2014-04-17 Yao Qi <yao@codesourcery.com>
7663 * gdbtypes.h: Update comments to link to types and macros'
7666 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7668 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7670 2014-04-16 Keith Seitz <keiths@redhat.com>
7673 * dwarf2read.c (skip_one_die): Check that all relative-offset
7674 sibling DIEs fall within range of the current reader's buffer.
7675 (read_partial_die): Likewise.
7677 2014-04-16 Keith Seitz <keiths@redhat.com>
7680 * cp-namespace.c (lookup_symbol_file): If the type name of
7681 `this' is NULL, return immediately.
7683 2014-04-14 Keith Seitz <keiths@redhat.com>
7686 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7687 from symbol_matches_domain in symtab.c. All local callers
7688 of symbol_matches_domain updated.
7689 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7690 search STRUCT_DOMAIN.
7691 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7692 independently. standard_lookup will do that automatically.
7693 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7694 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7695 (cp_lookup_symbol_in_namespace): Likewise.
7696 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7697 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7698 may return a STRUCT_DOMAIN match.
7699 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7700 * cp-support.c: Include language.h.
7701 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7703 * psymtab.c (match_partial_symbol): Compare the requested
7704 domain with the symbol's domain directly.
7705 (lookup_partial_symbol): Likewise.
7706 * symtab.c (lookup_symbol_in_language): Explain when/why
7707 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7708 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7709 appropriate languages.
7710 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7711 and moved to ada-lang.c
7712 (lookup_block_symbol): Explain that this function only returns
7713 symbol matching the requested DOMAIN.
7714 Compare the requested domain with the symbol's domain directly.
7715 (iterate_over_symbols): Compare the requested domain with the
7716 symbol's domain directly.
7717 * symtab.h (symbol_matches_domain): Remove.
7719 2014-04-14 Tom Tromey <tromey@redhat.com>
7722 * c-exp.y (type_aggregate_p): New function.
7723 (qualified_name, classify_inner_name): Use it.
7724 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7725 and TYPE_TARGET_TYPE of an enum type.
7726 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7728 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7729 handle TYPE_DECLARED_CLASS.
7730 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7732 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7733 * valops.c (enum_constant_from_type): New function.
7734 (value_aggregate_elt): Use it.
7735 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7738 2014-04-14 Tom Tromey <tromey@redhat.com>
7740 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7741 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7743 * value.h (value_aggregate_elt): Update.
7745 2014-04-14 Tom Tromey <tromey@redhat.com>
7747 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7749 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7751 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7752 (evaluate_subexp_standard): Pass noside argument.
7753 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7754 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7755 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7756 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7757 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7759 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7761 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7762 points to a constant blob.
7764 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7766 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7767 property and store it as the high bound and flag the range accordingly.
7768 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7769 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7770 * gdbtypes.h (enum range_flags): New enum.
7771 (struct range_bounds): Add flags member.
7773 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7775 * c-typeprint.c (c_type_print_varspec_suffix): Added
7776 check for not yet resolved high bound. If unresolved, print
7777 "variable length" string to the console instead of random
7780 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7782 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7784 (ada_template_to_fixed_record_type_1): Likewise.
7785 (ada_to_fixed_type_1): Likewise.
7786 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7787 (cp_print_value): Likewise.
7788 * d-valprint.c (dynamic_array_type): Likewise.
7789 * findvar.c (address_of_variable): Likewise.
7790 * jv-valprint.c (java_value_print): Likewise.
7791 * valops.c (value_ind): Likewise.
7792 * value.c (coerce_ref): Likewise.
7794 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7796 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7797 value and retrieve the dynamic type size.
7799 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7801 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7802 passed to sizeof is dynamic evaluate the argument to compute the length.
7804 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7805 Joel Brobecker <brobecker@adacore.com>
7807 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7808 (dwarf2_evaluate_property): New function.
7809 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7810 * dwarf2read.c (attr_to_dynamic_prop): New function.
7811 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7813 * gdbtypes.c: Include dwarf2loc.h.
7814 (is_dynamic_type): New function.
7815 (resolve_dynamic_type): New function.
7816 (resolve_dynamic_bounds): New function.
7817 (get_type_length): New function.
7818 (check_typedef): Use get_type_length to compute type length.
7819 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7820 (TYPE_LOW_BOUND_KIND): New macro.
7821 (is_dynamic_type): New function prototype.
7822 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7823 to resolve dynamic properties of the type. Update comment.
7824 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7826 2014-04-14 Richard Henderson <rth@redhat.com>
7828 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7830 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7831 Doug Evans <xdje42@gmail.com>
7833 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7834 dereference TYPE_CODE_REF values.
7836 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7838 Revert the following changes due to regressions:
7840 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7841 (dwarf2_evaluate_property): New function.
7842 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7843 * dwarf2read.c (attr_to_dynamic_prop): New function.
7844 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7846 * gdbtypes.c: Include dwarf2loc.h.
7847 (is_dynamic_type): New function.
7848 (resolve_dynamic_type): New function.
7849 (resolve_dynamic_bounds): New function.
7850 (get_type_length): New function.
7851 (check_typedef): Use get_type_length to compute type length.
7852 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7853 (TYPE_LOW_BOUND_KIND): New macro.
7854 (is_dynamic_type): New function prototype.
7855 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7856 to resolve dynamic properties of the type. Update comment.
7857 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7859 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7860 passed to sizeof is dynamic evaluate the argument to compute the length.
7862 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7863 value and retrieve the dynamic type size.
7865 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7866 (ada_template_to_fixed_record_type_1): Likewise.
7867 (ada_to_fixed_type_1): Likewise.
7868 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7869 (cp_print_value): Likewise.
7870 * d-valprint.c (dynamic_array_type): Likewise.
7871 * eval.c (evaluate_subexp_with_coercion): Likewise.
7872 * findvar.c (address_of_variable): Likewise.
7873 * jv-valprint.c (java_value_print): Likewise.
7874 * valops.c (value_ind): Likewise.
7875 * value.c (coerce_ref): Likewise.
7877 * c-typeprint.c (c_type_print_varspec_suffix): Added
7878 check for not yet resolved high bound. If unresolved, print
7879 "variable length" string to the console instead of random
7882 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7883 property and store it as the high bound and flag the range accordingly.
7884 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7885 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7886 * gdbtypes.h (enum range_flags): New enum.
7887 (struct range_bounds): Add flags member.
7889 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7890 points to a constant blob.
7892 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7893 (evaluate_subexp_standard): Pass noside argument.
7894 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7895 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7896 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7897 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7898 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7900 2014-04-11 Keith Seitz <keiths@redhat.com>
7903 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7904 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7907 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7909 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7910 (evaluate_subexp_standard): Pass noside argument.
7911 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7912 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7913 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7914 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7915 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7917 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7919 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7920 points to a constant blob.
7922 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7924 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7925 property and store it as the high bound and flag the range accordingly.
7926 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7927 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7928 * gdbtypes.h (enum range_flags): New enum.
7929 (struct range_bounds): Add flags member.
7931 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7933 * c-typeprint.c (c_type_print_varspec_suffix): Added
7934 check for not yet resolved high bound. If unresolved, print
7935 "variable length" string to the console instead of random
7938 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7940 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7941 (ada_template_to_fixed_record_type_1): Likewise.
7942 (ada_to_fixed_type_1): Likewise.
7943 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7944 (cp_print_value): Likewise.
7945 * d-valprint.c (dynamic_array_type): Likewise.
7946 * eval.c (evaluate_subexp_with_coercion): Likewise.
7947 * findvar.c (address_of_variable): Likewise.
7948 * jv-valprint.c (java_value_print): Likewise.
7949 * valops.c (value_ind): Likewise.
7950 * value.c (coerce_ref): Likewise.
7952 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7954 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7955 value and retrieve the dynamic type size.
7957 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7959 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7960 passed to sizeof is dynamic evaluate the argument to compute the length.
7962 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7964 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7965 (dwarf2_evaluate_property): New function.
7966 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7967 * dwarf2read.c (attr_to_dynamic_prop): New function.
7968 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7970 * gdbtypes.c: Include dwarf2loc.h.
7971 (is_dynamic_type): New function.
7972 (resolve_dynamic_type): New function.
7973 (resolve_dynamic_bounds): New function.
7974 (get_type_length): New function.
7975 (check_typedef): Use get_type_length to compute type length.
7976 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7977 (TYPE_LOW_BOUND_KIND): New macro.
7978 (is_dynamic_type): New function prototype.
7979 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7980 to resolve dynamic properties of the type. Update comment.
7981 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7983 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7985 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7986 declaring high/low bounds and change uses accordingly. Call
7987 create_range_type instead of create_static_range_type.
7988 * gdbtypes.c (create_range_type): New function.
7989 (create_range_type): Convert bounds into struct bound_prop and pass
7990 them to create_range_type.
7991 * gdbtypes.h (struct bound_prop): New struct.
7992 (create_range_type): New function prototype.
7993 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7994 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7995 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7997 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7999 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8001 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8002 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8003 * ada-lang.c: All uses of create_range_type updated.
8004 * coffread.c: All uses of create_range_type updated.
8005 * dwarf2read.c: All uses of create_range_type updated.
8006 * f-exp.y: All uses of create_range_type updated.
8007 * m2-valprint.c: All uses of create_range_type updated.
8008 * mdebugread.c: All uses of create_range_type updated.
8009 * stabsread.c: All uses of create_range_type updated.
8010 * valops.c: All uses of create_range_type updated.
8011 * valprint.c: All uses of create_range_type updated.
8013 2014-04-10 Pedro Alves <palves@redhat.com>
8015 * breakpoint.c (single_step_breakpoints)
8016 (single_step_gdbarch): Move up in the file.
8017 (one_breakpoint_xfer_memory): New function, factored out from ...
8018 (breakpoint_xfer_memory): ... here. Also process single-step
8021 2014-04-09 Tristan Gingold <gingold@adacore.com>
8023 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8025 (darwin_decode_exception_message): Free port only after use.
8027 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8029 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8030 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8031 when setting the size of call_length.
8033 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8035 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8036 dereference TYPE_CODE_REF values.
8038 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8040 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8041 end of warning message.
8043 2014-04-03 Doug Evans <dje@google.com>
8045 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8046 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8048 2014-04-02 Alan Modra <amodra@gmail.com>
8050 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8051 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8052 (struct symbol_file_add_from_memory_args): Add size field.
8053 (find_vdso_size): New function.
8054 (add_vsyscall_page): Attempt to find vdso size.
8056 2014-04-01 Doug Evans <dje@google.com>
8058 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8060 2014-04-01 Tristan Gingold <gingold@adacore.com>
8062 * darwin-nat.c (darwin_encode_reply): Add prototype.
8063 (darwin_decode_exception_message): Reply to unknown inferiors.
8064 (darwin_decode_message): Handle message by id. Ignore message
8065 to unknown inferior.
8066 (darwin_wait): Discard unknown messages, add debug trace.
8068 2014-03-31 Doug Evans <dje@google.com>
8070 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8073 2014-03-31 Doug Evans <dje@google.com>
8075 New option "set print symbol-loading".
8077 * solib.c (solib_read_symbols): Only print symbol loading messages
8079 (solib_add): If symbol loading is in "brief" mode, notify user
8080 symbols are being loaded.
8081 (reload_shared_libraries_1): Ditto.
8082 * symfile.c (print_symbol_loading_off): New static global.
8083 (print_symbol_loading_brief): New static global.
8084 (print_symbol_loading_full): New static global.
8085 (print_symbol_loading_enums): New static global.
8086 (print_symbol_loading): New static global.
8087 (print_symbol_loading_p): New function.
8088 (symbol_file_add_with_addrs): Only print symbol loading messages
8090 (_initialize_symfile): Register "print symbol-loading" set/show
8092 * symfile.h (print_symbol_loading_p): Declare.
8094 2014-03-30 Doug Evans <xdje42@gmail.com>
8096 * infrun.c (set_last_target_status): New function.
8097 (handle_inferior_event): Call it.
8099 2014-03-30 Doug Evans <xdje42@gmail.com>
8101 * inferior.h (enum stop_kind): Improve comment.
8103 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8105 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8106 a reference, strip the reference layer before calling
8107 the lang_ops value_has_mutated callback.
8109 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8111 Remove some globals from our parser.
8112 * language.c (unk_lang_parser): Add "struct parser_state"
8114 * language.h (struct language_defn) <la_parser>: Likewise.
8115 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8116 (initialize_expout): Add "struct parser_state" argument.
8117 Rewrite function to use the parser state.
8118 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8119 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8120 write_exp_elt_longcst, write_exp_elt_dblcst,
8121 write_exp_elt_decfloatcst, write_exp_elt_type,
8122 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8123 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8124 write_dollar_variable): Likewise.
8125 (parse_exp_in_context_1): Use parser state.
8126 (insert_type_address_space): Add "struct parser_state" argument.
8128 (increase_expout_size): New function.
8129 * parser-defs.h: Forward declare "struct language_defn" and
8130 "struct parser_state".
8131 (expout, expout_size, expout_ptr): Remove extern declarations.
8132 (parse_gdbarch, parse_language): Rewrite macro declarations to
8133 accept the parser state.
8134 (struct parser_state): New struct.
8135 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8136 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8137 write_exp_elt_decfloatcst, write_exp_elt_type,
8138 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8139 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8140 write_exp_msymbol, write_dollar_variable,
8141 mark_struct_expression, insert_type_address_space): Add "struct
8142 parser_state" argument.
8143 (increase_expout_size): New function.
8144 * utils.c (do_clear_parser_state): New function.
8145 (make_cleanup_clear_parser_state): Likewise.
8146 * utils.h (make_cleanup_clear_parser_state): New function
8148 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8149 Update calls to write_exp* in order to pass the parser state.
8150 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8151 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8152 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8153 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8154 * stap-probe.c (stap_parse_register_operand): Likewise.
8155 (stap_parse_single_operand): Likewise.
8156 (stap_parse_argument_1): Likewise.
8157 (stap_parse_argument): Use parser state.
8158 * stap-probe.h: Include "parser-defs.h".
8159 (struct stap_parse_info) <pstate>: New field.
8160 * c-exp.y (parse_type): Rewrite to use parser state.
8161 (yyparse): Redefine to c_parse_internal.
8162 (pstate): New global variable.
8163 (parse_number): Add "struct parser_state" argument.
8164 (write_destructor_name): Likewise.
8165 (type_exp): Update calls to write_exp* and similars in order to
8167 (exp1, exp, variable, qualified_name, space_identifier,
8168 typename, typebase): Likewise.
8169 (write_destructor_name, parse_number, lex_one_token,
8170 classify_name, classify_inner_name, c_parse): Add "struct
8171 parser_state" argument. Update function to use parser state.
8172 * c-lang.h: Forward declare "struct parser_state".
8173 (c_parse): Add "struct parser_state" argument.
8174 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8175 (yyparse): Redefine macro to ada_parse_internal.
8176 (pstate): New variable.
8177 (write_int, write_object_renaming, write_var_or_type,
8178 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8179 type_int, type_long, type_long_long, type_float, type_double,
8180 type_long_double, type_char, type_boolean, type_system_address):
8181 Add "struct parser_state" argument.
8182 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8183 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8184 var_or_type, aggregate, aggregate_component_list,
8185 positional_list, others, component_group,
8186 component_associations): Update calls to write_exp* and similar
8187 functions in order to use parser state.
8188 (ada_parse, write_var_from_sym, write_int,
8189 write_exp_op_with_string, write_object_renaming,
8190 find_primitive_type, write_selectors, write_ambiguous_var,
8191 write_var_or_type, write_name_assoc, type_int, type_long,
8192 type_long_long, type_float, type_double, type_long_double,
8193 type_char, type_boolean, type_system_address): Add "struct
8194 parser_state" argument. Adjust function to use parser state.
8195 * ada-lang.c (parse): Likewise.
8196 * ada-lang.h: Forward declare "struct parser_state".
8197 (ada_parse): Add "struct parser_state" argument.
8198 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8199 calls to both functions.
8200 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8202 (yyparse): Redefine macro to f_parse_internal.
8203 (pstate): New variable.
8204 (parse_number): Add "struct parser_state" argument.
8205 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8206 and similars in order to use parser state.
8207 (parse_number): Adjust code to use parser state.
8209 (f_parse): New function.
8210 * f-lang.h: Forward declare "struct parser_state".
8211 (f_parse): Add "struct parser_state" argument.
8212 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8214 (yyparse): Redefine macro for java_parse_internal.
8215 (pstate): New variable.
8216 (push_expression_name, push_expression_name, insert_exp): Add
8217 "struct parser_state" argument.
8218 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8219 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8220 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8221 PostIncrementExpression, PostDecrementExpression,
8222 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8223 UnaryExpressionNotPlusMinus, CastExpression,
8224 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8225 RelationalExpression, EqualityExpression, AndExpression,
8226 ExclusiveOrExpression, InclusiveOrExpression,
8227 ConditionalAndExpression, ConditionalOrExpression,
8228 ConditionalExpression, Assignment, LeftHandSide): Update
8229 calls to write_exp* and similars in order to use parser state.
8230 (parse_number): Ajust code to use parser state.
8232 (java_parse): New function.
8233 (push_variable): Add "struct parser_state" argument. Adjust
8234 code to user parser state.
8235 (push_fieldnames, push_qualified_expression_name,
8236 push_expression_name, insert_exp): Likewise.
8237 * jv-lang.h: Forward declare "struct parser_state".
8238 (java_parse): Add "struct parser_state" argument.
8239 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8241 (yyparse): Redefine macro to m2_parse_internal.
8242 (pstate): New variable.
8243 (type_exp, exp, fblock, variable, type): Update calls to
8244 write_exp* and similars to use parser state.
8246 (m2_parse): New function.
8247 * m2-lang.h: Forward declare "struct parser_state".
8248 (m2_parse): Add "struct parser_state" argument.
8249 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8250 * objc-lang.h: Forward declare "struct parser_state".
8251 (end_msglist): Add "struct parser_state" argument.
8252 * p-exp.y (parse_type): Rewrite macro to use parser state.
8253 (yyparse): Redefine macro to pascal_parse_internal.
8254 (pstate): New variable.
8255 (parse_number): Add "struct parser_state" argument.
8256 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8257 write_exp* and similars in order to use parser state.
8258 (parse_number, yylex): Adjust code to use parser state.
8259 (pascal_parse): New function.
8260 * p-lang.h: Forward declare "struct parser_state".
8261 (pascal_parse): Add "struct parser_state" argument.
8262 * go-exp.y (parse_type): Rewrite macro to use parser state.
8263 (yyparse): Redefine macro to go_parse_internal.
8264 (pstate): New variable.
8265 (parse_number): Add "struct parser_state" argument.
8266 (type_exp, exp1, exp, variable, type): Update calls to
8267 write_exp* and similars in order to use parser state.
8268 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8269 to use parser state.
8270 (go_parse): Likewise.
8271 * go-lang.h: Forward declare "struct parser_state".
8272 (go_parse): Add "struct parser_state" argument.
8274 2014-03-27 Doug Evans <dje@google.com>
8276 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8278 2014-03-27 Doug Evans <dje@google.com>
8280 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8281 Remove argument abbrev_section. All callers updated.
8283 2014-03-27 Doug Evans <dje@google.com>
8285 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8286 addr_base, ranges_base.
8288 2014-03-26 Keith Seitz <keiths@redhat.com>
8290 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8291 types, not VAR_DOMAIN.
8293 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8295 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8297 * features/nios2-linux.c: Regenerated.
8298 * features/nios2.c: Regenerated.
8300 2014-03-25 Pedro Alves <palves@redhat.com>
8302 * cli/cli-script.c (script_from_file): Force the interpreter to
8305 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8307 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8308 small stack allocation.
8310 2014-03-24 Tristan Gingold <gingold@adacore.com>
8312 * darwin-nat.c (exc_server): Remove unused prototype.
8313 (darwin_dump_message): Correctly display data on x86_64.
8314 (darwin_encode_reply): Fix style.
8315 Add comments and fix indentation.
8317 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8319 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8321 2014-03-22 Doug Evans <xdje42@gmail.com>
8323 * infcmd.c: Whitespace fixes.
8324 (interrupt_command): Merge two function comments into one.
8326 2014-03-22 Doug Evans <xdje42@gmail.com>
8328 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8331 2014-03-22 Yao Qi <yao@codesourcery.com>
8333 * remote.c (target_read_live_memory): Remove.
8334 (memory_xfer_live_readonly_partial): Rename it to
8335 remote_xfer_live_readonly_partial. Remove argument 'object'.
8336 All callers updated. Call remote_read_bytes_1
8337 instead of target_read_live_memory.
8338 * tracepoint.c (set_traceframe_number): Remove.
8339 (make_cleanup_restore_traceframe_number): Likewise .
8340 * tracepoint.h (set_traceframe_number): Remove declaration.
8341 (make_cleanup_restore_traceframe_number): Likewise.
8343 2014-03-22 Yao Qi <yao@codesourcery.com>
8345 * remote.c (remote_read_bytes): Move code on reading from the
8347 (remote_read_bytes_1): ... here. New function.
8349 2014-03-22 Yao Qi <yao@codesourcery.com>
8351 * ctf.c (ctf_xfer_partial): Check the return value of
8352 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8353 return TARGET_XFER_UNAVAILABLE.
8354 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8355 * target.c (target_read_live_memory): Move it to remote.c.
8356 (memory_xfer_live_readonly_partial): Likewise.
8357 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8358 * remote.c (target_read_live_memory): Moved from target.c.
8359 (memory_xfer_live_readonly_partial): Likewise.
8360 (remote_read_bytes): Factored out from
8361 memory_xfer_partial_1.
8363 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8365 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8368 2014-03-21 Pedro Alves <palves@redhat.com>
8370 * infrun.c (normal_stop): Extend comment.
8372 2014-03-21 Hui Zhu <hui@codesourcery.com>
8373 Pedro Alves <palves@redhat.com>
8375 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8377 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8378 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8379 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8381 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8383 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8384 `z' formatted output modifier.
8386 2014-03-20 Tom Tromey <tromey@redhat.com>
8387 Sergio Durigan Junior <sergiodj@redhat.com>
8389 * probe.c (parse_probes): Turn assert into an ordinary error.
8390 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8391 exceptions when parsing probes. Rearrange the code for clarity.
8393 2014-03-20 Tom Tromey <tromey@redhat.com>
8396 * top.c (execute_command): Only dispatch events if the command
8399 2014-03-20 Tom Tromey <tromey@redhat.com>
8402 * infcall.c: Include event-top.h.
8403 (run_inferior_call): Call async_disable_stdin if needed.
8405 2014-03-20 Pedro Alves <palves@redhat.com>
8407 * infrun.c (prepare_to_proceed): Delete.
8408 (thread_still_needs_step_over): New function.
8409 (find_thread_needs_step_over): New function.
8410 (proceed): If the current thread needs a step-over, set its
8411 steping_over_breakpoint flag. Adjust to use
8412 find_thread_needs_step_over instead of prepare_to_proceed.
8413 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8414 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8416 (switch_back_to_stepped_thread): Step over breakpoints of all
8417 threads not the stepping thread, before switching back to the
8420 2014-03-20 Pedro Alves <palves@redhat.com>
8422 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8424 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8425 * infrun.c (saved_singlestep_ptid)
8426 (stepping_past_singlestep_breakpoint): Delete.
8427 (resume): Remove stepping_past_singlestep_breakpoint handling.
8428 (proceed): Store the prev_pc of the stepping thread too.
8429 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8431 (enum infwait_states): Delete infwait_thread_hop_state.
8432 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8434 (handle_inferior_event): Adjust.
8435 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8436 handling and the thread-hop code. Before removing single-step
8437 breakpoints, check whether the thread hit a single-step breakpoint
8438 of another thread. If it did, the trap is not a random signal.
8439 (switch_back_to_stepped_thread): If the event thread hit a
8440 single-step breakpoint, unblock it before switching to the
8441 stepping thread. Handle the case of the stepped thread having
8443 (keep_going): Handle the case of the current thread moving past a
8444 single-step breakpoint.
8446 2014-03-20 Pedro Alves <palves@redhat.com>
8449 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8450 are being stepped over.
8451 (breakpoint_address_match): Make extern.
8452 * breakpoint.h (breakpoint_address_match): New declaration.
8453 * inferior.h (stepping_past_instruction_at): New declaration.
8454 * infrun.c (struct step_over_info): New type.
8455 (step_over_info): New global.
8456 (set_step_over_info, clear_step_over_info)
8457 (stepping_past_instruction_at): New functions.
8458 (handle_inferior_event): Clear the step-over info when
8459 trap_expected is cleared.
8460 (resume): Remove now stale comment.
8461 (clear_proceed_status): Clear step-over info.
8462 (proceed): Adjust step-over handling to set or clear the step-over
8463 info instead of removing all breakpoints.
8464 (handle_signal_stop): When setting up a thread-hop, don't remove
8466 (stop_stepping): Clear step-over info.
8467 (keep_going): Adjust step-over handling to set or clear step-over
8468 info and then always inserting breakpoints, instead of removing
8469 all breakpoints when stepping over one.
8471 2014-03-20 Pedro Alves <palves@redhat.com>
8473 * infrun.c (previous_inferior_ptid): Adjust comment.
8474 (deferred_step_ptid): Delete.
8475 (infrun_thread_ptid_changed, prepare_to_proceed)
8476 (init_wait_for_inferior): Adjust.
8477 (handle_signal_stop): Delete deferred_step_ptid handling.
8479 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8482 * defs.h (sync_quit_force_run): New declaration.
8483 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8484 * event-top.c (async_sigterm_handler): New declaration.
8485 (async_sigterm_token): New variable.
8486 (async_init_signals): Create also async_sigterm_token.
8487 (async_sigterm_handler): New function.
8488 (sync_quit_force_run): New variable.
8489 (handle_sigterm): Replace quit_force call by other calls.
8490 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8492 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8494 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8495 offset into SPE pseudo registers.
8497 2014-03-18 Pedro Alves <palves@redhat.com>
8500 * inferior.h (print_stop_event): Declare.
8501 * infrun.c (print_stop_event): New, factored out from ...
8502 (normal_stop): ... this.
8503 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8504 of bpstat_print/print_stack_frame.
8506 2014-03-17 Tom Tromey <tromey@redhat.com>
8508 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8510 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8512 * ada-lang.c (decode_constrained_packed_array): Perform a
8513 minimal coercion for reference with coerce_ref instead of
8516 2014-03-17 Tristan Gingold <gingold@adacore.com>
8518 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8519 (darwin_solib_create_inferior_hook): Emit a warning if version
8522 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8524 * python/py-value.c (get_field_flag): Cast flag_name argument to
8525 PyObject_GetAttrString to support Python 2.4.
8527 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8529 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8530 (Global Maintainers): Remove Jan Kratochvil.
8532 2014-03-14 Pedro Alves <palves@redhat.com>
8534 * inferior.h (terminal_ours_for_output): Rename to ...
8535 (child_terminal_ours_for_output): ... this.
8536 (terminal_save_ours): Rename to ...
8537 (child_terminal_save_ours): ... this.
8538 (terminal_ours): Rename to ...
8539 (child_terminal_ours): ... this.
8540 (terminal_inferior): Rename to ...
8541 (child_terminal_inferior): ... this.
8542 (terminal_init_inferior): Rename to ...
8543 (child_terminal_init_inferior): ... this.
8544 (terminal_init_inferior_with_pgrp): Rename to ...
8545 (child_terminal_init_inferior_with_pgrp): ... this.
8546 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8547 (child_terminal_init_with_pgrp): ... this.
8548 (terminal_save_ours): Rename to ...
8549 (child_terminal_save_ours): ... this.
8550 (terminal_init_inferior): Rename to ...
8551 (child_terminal_init): ... this. Adjust.
8552 (terminal_inferior): Rename to ...
8553 (child_terminal_inferior): ... this.
8554 (terminal_ours_for_output): Rename to ...
8555 (child_terminal_ours_for_output): ... this. Adjust.
8556 (terminal_ours): Rename to ...
8557 (child_terminal_ours): ... this.
8558 (terminal_ours_1): Rename to ...
8559 (child_terminal_ours_1): ... this. Adjust.
8560 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8561 * windows-nat.c (do_initial_windows_stuff): Adjust.
8562 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8563 (gnu_terminal_init): ... this. Adjust.
8564 (gnu_target): Adjust.
8565 * inf-child.c (inf_child_target): Adjust.
8567 2014-03-13 Doug Evans <xdje42@gmail.com>
8570 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8573 2014-03-13 Doug Evans <xdje42@gmail.com>
8575 * value.c (record_latest_value): Call release_value_or_incref
8576 instead of release_value.
8578 2014-03-13 Pedro Alves <palves@redhat.com>
8580 * procfs.c (procfs_target): Don't override to_shortname,
8581 to_longname or to_doc.
8583 2014-03-13 Pedro Alves <palves@redhat.com>
8585 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8586 Unix in user visible strings.
8588 2014-03-12 Stan Shebs <stan@codesourcery.com>
8590 * gdbtypes.h: Annotate comments for Doxygen, add a page
8591 block comment with some general info.
8593 2014-03-12 Pedro Alves <palves@redhat.com>
8595 * infcmd.c (prepare_execution_command): New function, factored out
8596 from several execution commands.
8597 (run_command_1, continue_command, step_1, jump_command)
8598 (signal_command, until_command, advance_command, finish_command)
8599 (attach_command): Use prepare_execution_command.
8601 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8603 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8606 (struct arm_linux_thread_points): Removed.
8607 (struct arm_linux_process_info): New.
8608 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8609 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8610 (arm_linux_find_breakpoints_by_tid): Removed.
8611 (struct arch_lwp_info): New.
8612 (arm_linux_find_process_pid): New functions.
8613 (arm_linux_add_process): New functions.
8614 (arm_linux_process_info_get): New functions.
8615 (arm_linux_forget_process): New function.
8616 (arm_linux_get_debug_reg_state): New function.
8617 (struct update_registers_data): New.
8618 (update_registers_callback): New function.
8619 (arm_linux_insert_hw_breakpoint1): Updated.
8620 (arm_linux_remove_hw_breakpoint1): Updated.
8621 (arm_linux_insert_hw_breakpoint): Updated.
8622 (arm_linux_remove_hw_breakpoint): Updated.
8623 (arm_linux_insert_watchpoint): Updated.
8624 (arm_linux_remove_watchpoint): Updated.
8625 (arm_linux_new_thread): Updated.
8626 (arm_linux_prepare_to_resume): New function.
8627 (arm_linux_new_fork): New function.
8628 (_initialize_arm_linux_nat): Updated.
8630 2014-03-12 Pedro Alves <palves@redhat.com>
8632 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8634 2014-03-12 Tom Tromey <tromey@redhat.com>
8636 * inf-child.c (return_zero): New function.
8637 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8638 * aix-thread.c (aix_thread_inferior_created): New function.
8639 (aix_thread_attach): Remove.
8640 (init_aix_thread_ops): Don't set to_attach.
8641 (_initialize_aix_thread): Register inferior_created observer.
8642 * corelow.c (init_core_ops): Don't set to_attach or
8644 * exec.c (init_exec_ops): Don't set to_attach or
8646 * infcmd.c (run_command_1): Use find_run_target. Make direct
8648 (attach_command): Use find_attach_target. Make direct target
8650 * record-btrace.c (init_record_btrace_ops): Don't set
8652 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8654 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8655 set to_create_inferior.
8656 * target.c (complete_target_initialization): Add assertion.
8657 (target_create_inferior): Remove.
8658 (find_default_attach, find_default_create_inferior): Remove.
8659 (find_attach_target, find_run_target): New functions.
8660 (find_default_is_async_p, find_default_can_async_p)
8661 (target_supports_non_stop, target_attach): Remove.
8662 (init_dummy_target): Don't set to_create_inferior or
8663 to_supports_non_stop.
8664 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8665 TARGET_DEFAULT_FUNC.
8666 <to_create_inferior>: Add comment.
8667 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8668 TARGET_DEFAULT_RETURN.
8669 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8670 (find_attach_target, find_run_target): Declare.
8671 (target_create_inferior): Remove.
8672 (target_has_execution_1): Update comment.
8673 (target_supports_non_stop): Remove.
8674 * target-delegates.c: Rebuild.
8676 2014-03-12 Pedro Alves <palves@redhat.com>
8678 * inf-child.h: Update comment to not mention Unix.
8680 2014-03-12 Pedro Alves <palves@redhat.com>
8682 * inf-child.c: Update top comment to not mention Unix. Add
8683 generic comment describing how this target is meant to be used.
8684 (inf_child_post_attach, inf_child_post_startup_inferior)
8685 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8688 2014-03-12 Pedro Alves <palves@redhat.com>
8690 * nto-procfs.c: Include inf-child.h.
8691 (procfs_ops): Delete global.
8692 (procfs_can_run): Delete method.
8693 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8694 target pointer instead of referencing procfs_ops.
8695 (procfs_prepare_to_store): Delete.
8696 (init_procfs_ops): Delete function.
8697 (procfs_target): New function, based on init_procfs_ops, but
8698 inherit inf_child_target.
8699 (_initialize_procfs): Use procfs_target.
8701 2014-03-12 Pedro Alves <palves@redhat.com>
8703 * windows-nat.c: Include inf-child.h.
8704 (windows_ops): Delete global.
8705 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8707 (init_windows_ops): Delete function.
8708 (windows_target): New function, based on init_windows_ops, but
8709 inherit inf_child_target.
8710 (_initialize_windows_nat): Use windows_target. Install x86
8711 specific target methods here.
8713 2014-03-10 Doug Evans <xdje42@gmail.com>
8715 * guile/guile.c (call_initialize_gdb_module): New function.
8716 (initialize_guile): Replace call to scm_init_guile with call to
8719 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8721 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8722 in call to TYPE_CODE macro.
8724 2014-03-10 Jerome Guitton <guitton@adacore.com>
8726 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8727 Resolve tagged types to full view.
8729 2014-03-10 Hui Zhu <hui@codesourcery.com>
8731 * target.h (target_insert_breakpoint): Remove "hardware" from its
8734 2014-03-07 Doug Evans <dje@google.com>
8736 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8738 2014-03-07 Doug Evans <dje@google.com>
8740 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8741 Remove unused local comp_dir_attr. Assert exactly one of
8742 stub_comp_unit_die, stub_comp_dir is non-NULL.
8744 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8746 * target.h (complete_target_initialization, add_target):
8749 2014-03-07 Pedro Alves <palves@redhat.com>
8751 * go32-nat.c: Include inf-child.h.
8752 (go32_ops): Delete global.
8753 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8755 (go32_create_inferior): Push the passed in target pointer instead
8756 of referencing go32_ops.
8757 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8758 (go32_target): New function, based on init_go32_ops, but inherit
8760 (_initialize_go32_nat): Use go32_target. Move parts of
8763 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8765 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8766 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8767 SYMBOL_VALUE_ADDRESS.
8768 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8770 2014-03-06 Yao Qi <yao@codesourcery.com>
8772 * breakpoint.c (get_tracepoint_by_number): Remove argument
8773 optional_p. All callers updated. Adjust comments. Update
8775 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8777 2014-03-06 Yao Qi <yao@codesourcery.com>
8779 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8780 early if get_number returns zero. Use 'p' instead of 'args'.
8782 2014-03-06 Yao Qi <yao@codesourcery.com>
8784 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8787 2014-03-06 Yao Qi <yao@codesourcery.com>
8789 PR breakpoints/16508
8790 * tracepoint.c (check_trace_running): New function.
8791 (trace_find_command): Move code to check_trace_running and
8792 call check_trace_running.
8793 (trace_find_pc_command): Likewise.
8794 (trace_find_tracepoint_command): Likewise.
8795 (trace_find_line_command): Likewise.
8796 (trace_find_range_command): Likewise.
8797 * tracepoint.h (check_trace_running): Likewise.
8798 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8800 2014-03-06 Yao Qi <yao@codesourcery.com>
8802 * target.h (struct target_ops) <to_traceframe_info>: Use
8803 TARGET_DEFAULT_NORETURN (tcomplain ()).
8804 * target-delegates.c: Regenerated.
8806 2014-03-05 Pedro Alves <palves@redhat.com>
8809 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8810 void. Update comment.
8811 (dcache_xfer_memory): Delete.
8812 (dcache_read_memory_partial): New, based on the read bits of
8814 (dcache_update): Add status parameter. Use ULONGEST for len, and
8815 adjust. Discard cache lines if the reason for the update was
8817 * dcache.h (dcache_xfer_memory): Delete declaration.
8818 (dcache_read_memory_partial): New declaration.
8819 (dcache_update): Update prototype.
8820 * target.c (raw_memory_xfer_partial): Update the dcache here.
8821 (memory_xfer_partial_1): Don't handle dcache writes here.
8823 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8825 * remote-sim.c (gdbsim_load): Add const to prog.
8827 2014-03-03 Tom Tromey <tromey@redhat.com>
8829 * elfread.c (probe_key): Change to bfd_data.
8830 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8831 now per-BFD, not per-objfile.
8832 * stap-probe.c (stap_probe_destroy): Update comment.
8833 (handle_stap_probe): Allocate on the per-BFD obstack.
8835 2014-03-03 Tom Tromey <tromey@redhat.com>
8837 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8838 * breakpoint.c (create_longjmp_master_breakpoint): Use
8840 (add_location_to_breakpoint, bkpt_probe_insert_location)
8841 (bkpt_probe_remove_location): Update.
8842 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8843 * elfread.c (elf_symfile_relocate_probe): Remove.
8844 (elf_probe_fns): Update.
8845 (insert_exception_resume_breakpoint): Change type of "probe"
8846 parameter to bound_probe.
8847 (check_exception_resume): Update.
8848 * objfiles.c (objfile_relocate1): Don't relocate probes.
8849 * probe.c (bound_probe_s): New typedef.
8850 (parse_probes): Use get_probe_address. Set sal's objfile.
8851 (find_probe_by_pc): Return a bound_probe.
8852 (collect_probes): Return a VEC(bound_probe_s).
8853 (compare_probes): Update.
8854 (gen_ui_out_table_header_info): Change type of "probes"
8856 (info_probes_for_ops): Update.
8857 (get_probe_address): New function.
8858 (probe_safe_evaluate_at_pc): Update.
8859 * probe.h (struct probe_ops) <get_probe_address>: New field.
8860 <set_semaphore, clear_semaphore>: Add objfile parameter.
8861 (struct probe) <objfile>: Remove field.
8863 <address>: Update comment.
8864 (struct bound_probe): New.
8865 (find_probe_by_pc): Return a bound_probe.
8866 (get_probe_address): Declare.
8867 * solib-svr4.c (struct probe_and_action) <address>: New field.
8868 (hash_probe_and_action, equal_probe_and_action): Update.
8869 (register_solib_event_probe): Add address parameter.
8870 (solib_event_probe_at): Update.
8871 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8873 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8874 (stap_get_probe_address): New function.
8875 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8876 (compile_probe_arg): Update.
8877 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8879 (handle_stap_probe): Don't relocate the probe.
8880 (stap_relocate): Remove.
8881 (stap_gen_info_probes_table_values): Update.
8882 (stap_probe_ops): Remove stap_relocate.
8883 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8884 (debug_sym_probe_fns): Update.
8885 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8886 * symtab.c (init_sal): Use memset.
8887 * symtab.h (struct symtab_and_line) <objfile>: New field.
8888 * tracepoint.c (start_tracing, stop_tracing): Update.
8890 2014-03-03 Tom Tromey <tromey@redhat.com>
8892 * probe.h (parse_probes, find_probe_by_pc)
8893 (find_probes_in_objfile): Fix comments.
8895 2014-03-02 Doug Evans <xdje42@gmail.com>
8897 * infrun.c (handle_signal_stop): Replace test for
8898 TARGET_WAITKIND_STOPPED with an assert.
8900 2014-03-02 Doug Evans <xdje42@gmail.com>
8902 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8904 2014-03-02 Doug Evans <xdje42@gmail.com>
8906 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8908 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8910 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8912 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8914 * i386obsd-nat.c: Include "obsd-nat.h".
8915 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8917 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8919 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8921 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8923 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8925 * mips64obsd-nat.c: Include "obsd-nath".
8926 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8928 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8930 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8932 * amd64obsd-nat.c: Include "obsd-nat,h.
8933 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8935 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8937 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8939 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8940 (find_overload_match): Update call to find_oload_champ.
8941 (find_oload_champ_namespace_loop): Likewise
8943 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8945 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8947 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8948 * config/sparc/obsd64.mh: New file.
8949 * sparc64obsd-nat.c: New file.
8951 * obsd-nat.h: New file.
8952 * obsd-nat.c: New file.
8953 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8954 (ALLDEPFILES): Add obsd-nat.c.
8956 2014-02-28 Tom Tromey <tromey@redhat.com>
8958 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8959 * cli-out.h (cli_ui_out_impl): Now const.
8960 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8961 * ui-out.c (struct ui_out) <impl>: Now const.
8962 (default_ui_out_impl): Now const.
8963 (ui_out_new): Make 'impl' parameter const.
8964 * ui-out.h (ui_out_new): Update.
8966 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8968 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8970 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8972 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8974 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8976 Additional PR 8882 fix.
8977 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8979 2014-02-27 Pedro Alves <palves@redhat.com>
8981 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8984 2014-02-27 Pedro Alves <palves@redhat.com>
8987 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8988 * nat/linux-waitpid.c: Include string.h.
8989 (status_to_str): Moved here and made extern.
8990 * nat/linux-waitpid.h (status_to_str): New declaration.
8992 2014-02-27 Hui Zhu <hui@codesourcery.com>
8995 * infrun.c (ptid_match): Move ...
8996 * common/ptid.c (ptid_match): ... here.
8997 * inferior.h (ptid_match): Move ...
8998 * common/ptid.h (ptid_match): ... here.
9000 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9002 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9003 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9006 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9008 * obsd-tdep.c (obsd_auxv_parse): New function.
9009 (obsd_init_abi): Set auxv_parse.
9011 * gdbarch.sh (auxv_parse): New.
9012 * gdbarch.h: Regenerated.
9013 * gdbarch.c: Regenerated.
9014 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9016 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9018 * guile/scm-value.c (gdbscm_history_append_x): New function.
9019 (value_functions): Add it.
9021 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9023 * dwarf2read.c (attr_value_as_address): New function.
9024 (dwarf2_find_base_address, read_call_site_scope): Use
9025 attr_value_as_address in place of DW_ADDR.
9026 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9027 the low and high addresses. Slight rework of the handling
9028 of the high pc being a constant form, and limit it to
9029 DWARF verson 4 or higher.
9030 (dwarf2_record_block_ranges): Likewise.
9031 (read_partial_die): Likewise.
9032 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9034 2014-02-26 Tom Tromey <tromey@redhat.com>
9036 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9038 2014-02-26 Tom Tromey <tromey@redhat.com>
9040 * elfread.c (elf_read_minimal_symbols): Return early if
9041 minimal symbols have already been read. Add "ei" parameter.
9042 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9043 * minsyms.c (prim_record_minimal_symbol_full): Update.
9044 * objfiles.h (struct objstats) <n_minsyms>: Move...
9045 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9046 * symmisc.c (print_objfile_statistics): Update.
9048 2014-02-26 Tom Tromey <tromey@redhat.com>
9050 * elfread.c (elf_read_minimal_symbols): New function, from
9052 (elf_symfile_read): Call it.
9054 2014-02-26 Tom Tromey <tromey@redhat.com>
9056 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9057 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9058 (lookup_minimal_symbol_solib_trampoline)
9059 (lookup_minimal_symbol_by_pc_section_1)
9060 (lookup_minimal_symbol_and_objfile): Update.
9061 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9062 Don't allocate a minimal symbol if minsyms have already been read.
9063 (build_minimal_symbol_hash_tables): Update.
9064 (install_minimal_symbols): Do nothing if minsyms already read.
9065 Use the per-BFD obstack.
9066 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9067 * objfiles.c (allocate_objfile): Call
9068 terminate_minimal_symbol_table later.
9069 (have_minimal_symbols): Update.
9070 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9071 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9072 Move from struct objfile.
9073 <minsyms_read>: New field.
9074 (struct objfile) <msymbols, minimal_symbol_count,
9075 msymbol_hash, msymbol_demangled_hash>: Move.
9076 (ALL_OBJFILE_MSYMBOLS): Update.
9077 * symfile.c (read_symbols): Set minsyms_read.
9078 (reread_symbols): Update.
9079 * symmisc.c (dump_objfile, dump_msymbols): Update.
9081 2014-02-26 Tom Tromey <tromey@redhat.com>
9083 * minsyms.c (msymbols_sort): Remove.
9084 * minsyms.h (msymbols_sort): Remove.
9085 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9086 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9087 * elfread.c (elf_symtab_read): Don't add section offsets.
9088 * xcoffread.c (record_minimal_symbol): Don't add section offset
9089 to minimal symbol address.
9090 * somread.c (text_offset, data_offset): Remove.
9091 (som_symtab_read): Don't add section offsets to minimal symbol
9093 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9094 Don't add section offsets to minimal symbols.
9095 * coffread.c (coff_symtab_read): Don't add section offsets
9096 to minimal symbol addresses.
9097 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9098 to minimal symbol addresses.
9099 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9100 section offset to minimal symbol addresses.
9101 * mdebugread.c (parse_partial_symbols): Don't add section
9102 offset to minimal symbol addresses.
9103 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9104 offset to minimal symbol addresses.
9106 2014-02-26 Tom Tromey <tromey@redhat.com>
9108 * ada-lang.c (ada_main_name): Update.
9109 (ada_add_standard_exceptions): Update.
9110 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9111 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9112 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9113 * auxv.c (ld_so_xfer_auxv): Update.
9114 * avr-tdep.c (avr_scan_prologue): Update.
9115 * ax-gdb.c (gen_var_ref): Update.
9116 * blockframe.c (get_pc_function_start)
9117 (find_pc_partial_function_gnu_ifunc): Update.
9118 * breakpoint.c (create_overlay_event_breakpoint)
9119 (create_longjmp_master_breakpoint)
9120 (create_std_terminate_master_breakpoint)
9121 (create_exception_master_breakpoint): Update.
9122 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9123 * c-valprint.c (c_val_print): Update.
9124 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9125 * common/agent.c (agent_look_up_symbols): Update.
9126 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9127 * dwarf2loc.c (call_site_to_target_addr): Update.
9128 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9129 * elfread.c (elf_gnu_ifunc_record_cache)
9130 (elf_gnu_ifunc_resolve_by_got): Update.
9131 * findvar.c (default_read_var_value): Update.
9132 * frame.c (inside_main_func): Update.
9133 * frv-tdep.c (frv_frame_this_id): Update.
9134 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9135 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9137 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9138 (hppa_hpux_find_dummy_bpaddr): Update.
9139 * hppa-tdep.c (hppa_symbol_address): Update.
9140 * infcmd.c (until_next_command): Update.
9141 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9143 * linespec.c (minsym_found, add_minsym): Update.
9144 * linux-nat.c (get_signo): Update.
9145 * linux-thread-db.c (inferior_has_bug): Update.
9146 * m32c-tdep.c (m32c_return_value)
9147 (m32c_m16c_address_to_pointer): Update.
9148 * m32r-tdep.c (m32r_frame_this_id): Update.
9149 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9150 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9151 * maint.c (maintenance_translate_address): Update.
9152 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9153 (frob_address): New function.
9154 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9155 frob_address. Rename parameter to "pc_in".
9156 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9158 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9160 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9161 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9162 * objc-lang.c (find_objc_msgsend): Update.
9163 * objfiles.c (objfile_relocate1): Update.
9164 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9165 * p-valprint.c (pascal_val_print): Update.
9166 * parse.c (write_exp_msymbol): Update.
9167 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9168 (ppc_elfv2_skip_entrypoint): Update.
9169 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9170 * printcmd.c (build_address_symbolic, msym_info)
9171 (address_info): Update.
9172 * proc-service.c (ps_pglobal_lookup): Update.
9173 * psymtab.c (find_pc_sect_psymtab_closer)
9174 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9175 Change msymbol parameter to bound_minimal_symbol.
9176 * ravenscar-thread.c (get_running_thread_id): Update.
9177 * remote.c (remote_check_symbols): Update.
9178 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9180 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9181 * solib-dsbt.c (lm_base): Update.
9182 * solib-frv.c (lm_base, main_got): Update.
9183 * solib-irix.c (locate_base): Update.
9184 * solib-som.c (som_solib_create_inferior_hook)
9185 (link_map_start): Update.
9186 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9187 * solib-svr4.c (elf_locate_base, enable_break): Update.
9188 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9189 (flush_ea_cache): Update.
9190 * stabsread.c (define_symbol, scan_file_globals): Update.
9191 * stack.c (find_frame_funname): Update.
9192 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9193 (debug_qf_find_pc_sect_symtab): Update.
9194 * symfile.c (simple_read_overlay_table)
9195 (simple_overlay_update): Update.
9196 * symfile.h (struct quick_symbol_functions)
9197 <find_pc_sect_symtab>: Change type of msymbol to
9198 bound_minimal_symbol.
9199 * symmisc.c (dump_msymbols): Update.
9200 * symtab.c (find_pc_sect_symtab_via_partial)
9201 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9202 (search_symbols, print_msymbol_info): Update.
9203 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9204 (MSYMBOL_VALUE_ADDRESS): Redefine.
9205 (BMSYMBOL_VALUE_ADDRESS): New macro.
9206 * tracepoint.c (scope_info): Update.
9207 * tui/tui-disasm.c (tui_find_disassembly_address)
9208 (tui_get_begin_asm_address): Update.
9209 * valops.c (find_function_in_inferior): Update.
9210 * value.c (value_static_field, value_fn_field): Update.
9212 2014-02-26 Tom Tromey <tromey@redhat.com>
9214 * ada-lang.c (ada_update_initial_language): Update.
9215 (ada_main_name, ada_has_this_exception_support): Update.
9216 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9217 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9218 * arm-tdep.c (arm_skip_stub): Update.
9219 * auxv.c (ld_so_xfer_auxv): Update.
9220 * avr-tdep.c (avr_scan_prologue): Update.
9221 * ax-gdb.c (gen_var_ref): Update.
9222 * breakpoint.c (struct breakpoint_objfile_data)
9223 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9224 type to bound_minimal_symbol.
9225 (create_overlay_event_breakpoint)
9226 (create_longjmp_master_breakpoint)
9227 (create_std_terminate_master_breakpoint)
9228 (create_exception_master_breakpoint): Update.
9229 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9230 * c-exp.y (classify_name): Update.
9231 * coffread.c (coff_symfile_read): Update.
9232 * common/agent.c (agent_look_up_symbols): Update.
9233 * d-lang.c (d_main_name): Update.
9234 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9235 * dec-thread.c (enable_dec_thread): Update.
9236 * dwarf2loc.c (call_site_to_target_addr): Update.
9237 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9238 * eval.c (evaluate_subexp_standard): Update.
9239 * findvar.c (struct minsym_lookup_data) <result>: Change type
9240 to bound_minimal_symbol.
9242 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9243 * frame.c (inside_main_func): Update.
9244 * frv-tdep.c (frv_frame_this_id): Update.
9245 * gcore.c (call_target_sbrk): Update.
9246 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9247 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9249 * go-lang.c (go_main_name): Update.
9250 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9251 (hppa_hpux_find_import_stub_for_addr): Update.
9252 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9253 Update. Change return type.
9254 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9256 * jit.c (jit_breakpoint_re_set_internal): Update.
9257 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9259 * linux-nat.c (get_signo): Update.
9260 * linux-thread-db.c (inferior_has_bug): Update
9261 * m32c-tdep.c (m32c_return_value)
9262 (m32c_m16c_address_to_pointer): Update.
9263 * m32r-tdep.c (m32r_frame_this_id): Update.
9264 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9265 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9266 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9267 lookup_minimal_symbol. Change return type.
9268 (lookup_minimal_symbol): Remove.
9269 (lookup_bound_minimal_symbol): Update.
9270 (lookup_minimal_symbol_text): Change return type.
9271 (lookup_minimal_symbol_solib_trampoline): Change return type.
9272 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9273 (lookup_minimal_symbol_solib_trampoline): Change return type.
9274 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9275 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9276 (value_nsstring, find_imps): Update.
9277 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9278 * p-lang.c (pascal_main_name): Update.
9279 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9280 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9281 * proc-service.c (ps_pglobal_lookup): Update.
9282 * ravenscar-thread.c (get_running_thread_msymbol): Change
9284 (has_ravenscar_runtime, get_running_thread_id): Update.
9285 * remote.c (remote_check_symbols): Update.
9286 * sol-thread.c (ps_pglobal_lookup): Update.
9287 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9288 * solib-dsbt.c (lm_base): Update.
9289 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9291 * solib-irix.c (locate_base): Update.
9292 * solib-som.c (som_solib_create_inferior_hook)
9293 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9295 * solib-spu.c (spu_enable_break): Update.
9296 * solib-svr4.c (elf_locate_base, enable_break): Update.
9297 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9298 (flush_ea_cache): Update.
9299 * stabsread.c (define_symbol): Update.
9300 * symfile.c (simple_read_overlay_table): Update.
9301 * symtab.c (find_pc_sect_line): Update.
9302 * tracepoint.c (scope_info): Update.
9303 * tui-disasm.c (tui_get_begin_asm_address): Update.
9304 * value.c (value_static_field): Update.
9306 2014-02-26 Tom Tromey <tromey@redhat.com>
9308 * minsyms.c (prim_record_minimal_symbol_full): Use
9309 SET_MSYMBOL_VALUE_ADDRESS.
9310 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9311 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9312 SET_MSYMBOL_VALUE_ADDRESS.
9313 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9314 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9316 2014-02-26 Tom Tromey <tromey@redhat.com>
9318 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9319 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9320 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9321 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9322 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9323 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9324 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9325 * ada-lang.c (ada_main_name): Update.
9326 (ada_lookup_simple_minsym): Update.
9327 (ada_make_symbol_completion_list): Update.
9328 (ada_add_standard_exceptions): Update.
9329 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9330 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9331 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9332 * arm-tdep.c (skip_prologue_function): Update.
9333 (arm_skip_stack_protector, arm_skip_stub): Update.
9334 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9335 (arm_wince_skip_main_prologue): Update.
9336 * auxv.c (ld_so_xfer_auxv): Update.
9337 * avr-tdep.c (avr_scan_prologue): Update.
9338 * ax-gdb.c (gen_var_ref): Update.
9339 * block.c (call_site_for_pc): Update.
9340 * blockframe.c (get_pc_function_start): Update.
9341 (find_pc_partial_function_gnu_ifunc): Update.
9342 * breakpoint.c (create_overlay_event_breakpoint): Update.
9343 (create_longjmp_master_breakpoint): Update.
9344 (create_std_terminate_master_breakpoint): Update.
9345 (create_exception_master_breakpoint): Update.
9346 (resolve_sal_pc): Update.
9347 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9348 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9350 * c-valprint.c (c_val_print): Update.
9351 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9352 * coffread.c (coff_symfile_read): Update.
9353 * common/agent.c (agent_look_up_symbols): Update.
9354 * dbxread.c (find_stab_function_addr): Update.
9355 (end_psymtab): Update.
9356 * dwarf2loc.c (call_site_to_target_addr): Update.
9357 (func_verify_no_selftailcall): Update.
9358 (tailcall_dump): Update.
9359 (call_site_find_chain_1): Update.
9360 (dwarf_expr_reg_to_entry_parameter): Update.
9361 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9362 (elf_gnu_ifunc_resolve_by_got): Update.
9363 * f-valprint.c (info_common_command): Update.
9364 * findvar.c (read_var_value): Update.
9365 * frame.c (get_prev_frame_1): Update.
9366 (inside_main_func): Update.
9367 * frv-tdep.c (frv_skip_main_prologue): Update.
9368 (frv_frame_this_id): Update.
9369 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9370 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9371 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9372 (gnuv3_skip_trampoline): Update.
9373 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9374 (hppa64_hpux_in_solib_call_trampoline): Update.
9375 (hppa_hpux_skip_trampoline_code): Update.
9376 (hppa64_hpux_search_dummy_call_sequence): Update.
9377 (hppa_hpux_find_import_stub_for_addr): Update.
9378 (hppa_hpux_find_dummy_bpaddr): Update.
9379 * hppa-tdep.c (hppa_symbol_address)
9380 (hppa_lookup_stub_minimal_symbol): Update.
9381 * i386-tdep.c (i386_skip_main_prologue): Update.
9382 (i386_pe_skip_trampoline_code): Update.
9383 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9384 * infcall.c (get_function_name): Update.
9385 * infcmd.c (until_next_command): Update.
9386 * jit.c (jit_breakpoint_re_set_internal): Update.
9387 (jit_inferior_init): Update.
9388 * linespec.c (minsym_found): Update.
9389 (add_minsym): Update.
9390 * linux-fork.c (info_checkpoints_command): Update.
9391 * linux-nat.c (get_signo): Update.
9392 * linux-thread-db.c (inferior_has_bug): Update.
9393 * m32c-tdep.c (m32c_return_value): Update.
9394 (m32c_m16c_address_to_pointer): Update.
9395 (m32c_m16c_pointer_to_address): Update.
9396 * m32r-tdep.c (m32r_frame_this_id): Update.
9397 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9398 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9399 * maint.c (maintenance_translate_address): Update.
9400 * minsyms.c (add_minsym_to_hash_table): Update.
9401 (add_minsym_to_demangled_hash_table): Update.
9402 (msymbol_objfile): Update.
9403 (lookup_minimal_symbol): Update.
9404 (iterate_over_minimal_symbols): Update.
9405 (lookup_minimal_symbol_text): Update.
9406 (lookup_minimal_symbol_by_pc_name): Update.
9407 (lookup_minimal_symbol_solib_trampoline): Update.
9408 (lookup_minimal_symbol_by_pc_section_1): Update.
9409 (lookup_minimal_symbol_and_objfile): Update.
9410 (prim_record_minimal_symbol_full): Update.
9411 (compare_minimal_symbols): Update.
9412 (compact_minimal_symbols): Update.
9413 (build_minimal_symbol_hash_tables): Update.
9414 (install_minimal_symbols): Update.
9415 (terminate_minimal_symbol_table): Update.
9416 (find_solib_trampoline_target): Update.
9417 (minimal_symbol_upper_bound): Update.
9418 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9419 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9420 (mips_skip_pic_trampoline_code): Update.
9421 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9422 * objc-lang.c (selectors_info): Update.
9423 (classes_info): Update.
9424 (find_methods): Update.
9425 (find_imps): Update.
9426 (find_objc_msgsend): Update.
9427 * objfiles.c (objfile_relocate1): Update.
9428 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9429 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9430 * p-valprint.c (pascal_val_print): Update.
9431 * parse.c (write_exp_msymbol): Update.
9432 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9433 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9434 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9435 * printcmd.c (build_address_symbolic): Update.
9437 (address_info): Update.
9438 * proc-service.c (ps_pglobal_lookup): Update.
9439 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9440 (find_pc_sect_psymtab): Update.
9441 * python/py-framefilter.c (py_print_frame): Update.
9442 * ravenscar-thread.c (get_running_thread_id): Update.
9443 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9445 * remote.c (remote_check_symbols): Update.
9446 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9447 (rs6000_skip_trampoline_code): Update.
9448 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9449 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9450 * solib-dsbt.c (lm_base): Update.
9451 * solib-frv.c (lm_base): Update.
9453 * solib-irix.c (locate_base): Update.
9454 * solib-som.c (som_solib_create_inferior_hook): Update.
9455 (som_solib_desire_dynamic_linker_symbols): Update.
9456 (link_map_start): Update.
9457 * solib-spu.c (spu_enable_break): Update.
9458 (ocl_enable_break): Update.
9459 * solib-svr4.c (elf_locate_base): Update.
9460 (enable_break): Update.
9461 * spu-tdep.c (spu_get_overlay_table): Update.
9462 (spu_catch_start): Update.
9463 (flush_ea_cache): Update.
9464 * stabsread.c (define_symbol): Update.
9465 (scan_file_globals): Update.
9466 * stack.c (find_frame_funname): Update.
9467 (frame_info): Update.
9468 * symfile.c (simple_read_overlay_table): Update.
9469 (simple_overlay_update): Update.
9470 * symmisc.c (dump_msymbols): Update.
9471 * symtab.c (fixup_section): Update.
9472 (find_pc_sect_line): Update.
9473 (skip_prologue_sal): Update.
9474 (search_symbols): Update.
9475 (print_msymbol_info): Update.
9476 (rbreak_command): Update.
9477 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9478 (completion_list_objc_symbol): Update.
9479 (default_make_symbol_completion_list_break_on): Update.
9480 * tracepoint.c (scope_info): Update.
9481 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9482 (tui_get_begin_asm_address): Update.
9483 * valops.c (find_function_in_inferior): Update.
9484 * value.c (value_static_field): Update.
9485 (value_fn_field): Update.
9487 2014-02-26 Tom Tromey <tromey@redhat.com>
9489 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9490 bound minimal symbols. Move code that knows about minsym
9492 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9494 * minsyms.h (minimal_symbol_upper_bound): Declare.
9495 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9496 minimal_symbol_upper_bound.
9498 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9500 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9501 Use the type's name if its basic type does not have a tag.
9503 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9505 * dwarf2read.c (read_subrange_type): Add comment.
9507 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9509 * dwarf2read.c (update_enumeration_type_from_children): New
9510 function, mostly extracted from process_structure_scope.
9511 (read_enumeration_type): Call update_enumeration_type_from_children.
9512 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9513 and flag_flag_enum fields.
9515 2014-02-26 Pedro Alves <palves@redhat.com>
9517 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9518 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9519 to_xfer_partial method.
9521 2014-02-26 Pedro Alves <palves@redhat.com>
9523 * target.c (complete_target_initialization): Don't install
9524 default_xfer_partial as to_xfer_partial hook.
9526 (update_current_target): Don't INHERIT nor de_fault
9527 deprecated_xfer_memory. Delete de_fault macro.
9528 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9529 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9530 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9533 2014-02-26 Pedro Alves <palves@redhat.com>
9535 * go32-nat.c (my_write_child): New function.
9536 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9537 (go32_xfer_partial): New function.
9538 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9539 Instead install a to_xfer_partial hook.
9541 2014-02-26 Pedro Alves <palves@redhat.com>
9543 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9544 to_xfer_partial helper. Rewrite.
9545 (procfs_xfer_partial): New function.
9546 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9547 Install a to_xfer_partial hook.
9549 2014-02-26 Pedro Alves <palves@redhat.com>
9551 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9552 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9553 (m32r_xfer_partial): New function.
9554 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9555 Install a to_xfer_partial hook.
9557 2014-02-26 Pedro Alves <palves@redhat.com>
9559 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9561 (mips_xfer_partial): New function.
9562 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9563 hook. Install a to_xfer_partial hook.
9565 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9567 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9568 * gdbtypes.c (create_array_type_with_stride): New function,
9569 renaming create_array_type, but with an added parameter
9570 called "bit_stride".
9571 (create_array_type): Re-implement using
9572 create_array_type_with_stride.
9573 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9574 and DW_AT_bit_stride attributes.
9576 2014-02-26 Pedro Alves <palves@redhat.com>
9578 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9579 task-specific breakpoints.
9581 2014-02-25 Pedro Alves <palves@redhat.com>
9583 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9584 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9586 2014-02-25 Stan Shebs <stan@codesourcery.com>
9588 * defs.h: Annotate comments for Doxygen.
9590 2014-02-25 Tom Tromey <tromey@redhat.com>
9592 * target.h (target_ignore): Don't declare.
9593 * target.c (target_ignore): Remove.
9595 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9598 * auto-load.c (auto_load_objfile_script_1): Change filename to
9601 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9603 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9604 documentation. Adjust prototype to match the target_ops
9605 to_xfer_partial method. Adjust implementation accordingly.
9607 2014-02-25 Hui Zhu <hui@codesourcery.com>
9609 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9612 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9614 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9615 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9616 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9617 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9618 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9619 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9620 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9621 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9623 (rl78_register_type): Use a data pointer type for SP and
9624 new pseudo registers mentioned above. Use a 16 bit integer
9625 type for all other register pairs.
9626 (rl78_register_name, rl78_g10_register_name): Update for
9627 new pseudo registers.
9628 (rl78_pseudo_register_read): Likewise.
9629 (rl78_pseudo_register_write): Likewise.
9630 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9631 to the newly added pseudo registers.
9633 2014-02-24 Doug Evans <dje@google.com>
9635 * value.c (record_latest_value): Fix comment.
9636 * printcmd.c (print_command_1): Remove code to handle -1 return from
9637 record_latest_value.
9639 2014-02-24 Pedro Alves <palves@redhat.com>
9641 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9642 deprecated_xfer_memory hook.
9643 (procfs_xfer_partial): Call procfs_xfer_memory instead
9644 of the deprecated_xfer_memory target hook.
9645 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9648 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9650 * windows-nat.c (windows_xfer_shared_libraries): Return
9651 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9652 requested object is TARGET_OBJECT_LIBRARIES.
9654 2014-02-24 Yao Qi <yao@codesourcery.com>
9656 * target.h (enum target_xfer_status)
9657 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9658 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9660 * corefile.c (memory_error_message): User updated.
9661 * exec.c (section_table_read_available_memory): Likewise.
9662 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9663 * target.c (target_xfer_status_to_string): Likewise.
9664 (raw_memory_xfer_partial): Likewise.
9665 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9666 * valops.c (read_value_memory): Likewise.
9667 * exec.h: Update comments.
9669 2014-02-24 Yao Qi <yao@codesourcery.com>
9671 * target.c (target_xfer_status_to_string): Rename argument err
9673 * target.h (target_xfer_status_to_string): Update declaration.
9674 Replace target_xfer_error_to_string with
9675 target_xfer_status_to_string in comment.
9677 2014-02-24 Yao Qi <yao@codesourcery.com>
9679 * mips-linux-nat.c (super_close): Update its type.
9680 (mips_linux_close): Pass 'self' to super_close.
9682 2014-02-24 Yao Qi <yao@codesourcery.com>
9684 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9685 * corefile.c (read_memory): Adjusted.
9686 * target.c (target_write_with_progress): Adjusted.
9688 2014-02-23 Yao Qi <yao@codesourcery.com>
9692 2013-10-25 Yao Qi <yao@codesourcery.com>
9694 * remote.c (remote_traceframe_info): Return early if
9695 traceframe is not selected.
9697 2013-07-19 Yao Qi <yao@codesourcery.com>
9699 * target.c (update_current_target): Change the default action
9700 of 'to_traceframe_info' from tcomplain to return_zero.
9701 * target.h (struct target_ops) <to_traceframe_info>: Add more
9704 2014-02-23 Yao Qi <yao@codesourcery.com>
9706 * valops.c (read_value_memory): Rewrite it. Call
9707 target_xfer_partial in a loop.
9708 * exec.h (section_table_available_memory): Remove declaration.
9709 Move comments to ...
9710 * exec.c (section_table_available_memory): ... here. Make it
9713 2014-02-23 Yao Qi <yao@codesourcery.com>
9715 * exec.c (section_table_read_available_memory): New function.
9716 * exec.h (section_table_read_available_memory): Declare.
9717 * ctf.c (ctf_xfer_partial): Call
9718 section_table_read_available_memory.
9719 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9721 2014-02-23 Yao Qi <yao@codesourcery.com>
9723 * ctf.c (ctf_xfer_partial): Move code to ...
9724 * exec.c (exec_read_partial_read_only): ... it. New function.
9725 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9726 * tracefile.c: Include "exec.h".
9727 * exec.h (exec_read_partial_read_only): Declare.
9729 2014-02-23 Yao Qi <yao@codesourcery.com>
9731 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9732 (tfile_has_memory): Remove.
9733 (init_tfile_ops): Don't set fields to_has_all_memory and
9734 to_has_memory of tfile_ops.
9735 * tracefile.c (tracefile_has_all_memory): New function.
9736 (tracefile_has_memory): New function.
9737 (init_tracefile_ops): Initialize fields to_has_all_memory and
9738 to_has_memory of 'ops'.
9740 2014-02-23 Yao Qi <yao@codesourcery.com>
9742 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9743 (ctf_thread_alive, ctf_get_trace_status): Remove.
9744 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9746 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9747 (tfile_has_stack, tfile_has_registers): Remove.
9748 (tfile_thread_alive): Remove.
9749 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9751 * tracefile.c (tracefile_has_stack): New function.
9752 (tracefile_has_registers): New function.
9753 (tracefile_thread_alive): New function.
9754 (tracefile_get_trace_status): New function.
9755 (init_tracefile_ops): New function.
9756 * tracefile.h (init_tracefile_ops): Declare.
9758 2014-02-23 Yao Qi <yao@codesourcery.com>
9760 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9761 (O_LARGEFILE): Likewise.
9762 (tfile_ops): Likewise.
9763 (TRACE_HEADER_SIZE): Likewise.
9764 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9765 (cur_data_size): Likewise.
9766 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9767 (tfile_close, tfile_files_info): Likewise.
9768 (tfile_get_trace_status): Likewise.
9769 (tfile_get_tracepoint_status): Likewise.
9770 (tfile_get_traceframe_address): Likewise.
9771 (tfile_trace_find, match_blocktype): Likewise.
9772 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9773 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9774 (tfile_get_trace_state_variable_value): Likewise.
9775 (tfile_has_all_memory, tfile_has_memory): Likewise.
9776 (tfile_has_stack, tfile_has_registers): Likewise.
9777 (tfile_thread_alive, build_traceframe_info): Likewise.
9778 (tfile_traceframe_info, init_tfile_ops): Likewise.
9779 (_initialize_tracepoint): Don't call init_tfile_ops
9780 and add_target_with_completer.
9781 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9782 exec.h, completer.h and filenames.h.
9783 (_initialize_tracefile_tfile): New function.
9785 2014-02-23 Yao Qi <yao@codesourcery.com>
9787 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9789 (HFILES_NO_SRCDIR): Add tracefile.h.
9790 * ctf.c: Include "tracefile.h".
9791 * tracefile.h: New file.
9792 * tracefile.c: New file
9793 * tracefile-tfile.c: New file.
9794 * tracepoint.c: Include "tracefile.h".
9795 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9796 (stop_reason_names): Add const.
9797 (trace_file_writer_xfree): Move it to tracefile.c.
9798 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9799 (trace_save_ctf): Likewise.
9800 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9801 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9802 (tfile_write_header, tfile_write_regblock_type): Likewise.
9803 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9804 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9805 (tfile_write_raw_data, tfile_end): Likewise.
9806 (tfile_trace_file_writer_new): Likewise.
9807 (free_uploaded_tp): Make it extern.
9808 (free_uploaded_tsv): Make it extern.
9809 (_initialize_tracepoint): Move code to register command 'tsave'
9811 * tracepoint.h (stop_reason_names): Declare.
9812 (struct trace_frame_write_ops): Move it to tracefile.h.
9813 (struct trace_file_write_ops): Likewise.
9814 (struct trace_file_writer): Likewise.
9815 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9817 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9820 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9822 (get_cores_used_by_process): New parameter num_cores, use it.
9823 (linux_xfer_osdata_processes): Pass num_cores to it.
9824 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9827 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9829 * target.c (memory_xfer_partial): Fix length arg in call to
9830 breakpoint_xfer_memory.
9832 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9835 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9836 number comes after the + or - signs. Adjust length of register
9837 name to be extracted.
9839 2014-02-20 Tom Tromey <tromey@redhat.com>
9841 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9842 (ada_varobj_ops): Mark "extern".
9844 2014-02-20 Tom Tromey <tromey@redhat.com>
9846 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9848 2014-02-20 Doug Evans <xdje42@gmail.com>
9850 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9851 All callers updated.
9852 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9853 All callers updated.
9854 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9855 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9857 2014-02-20 lin zuojian <manjian2006@gmail.com>
9858 Joel Brobecker <brobecker@adacore.com>
9859 Doug Evans <xdje42@gmail.com>
9862 * dwarf2read.c (struct die_info): New member in_process.
9863 (reset_die_in_process): New function.
9864 (process_die): Set it at the start, reset when returning.
9865 (inherit_abstract_dies): Only call process_die if origin_child_die
9866 not already being processed.
9868 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9870 * windows-nat.c (handle_unload_dll): Add function documentation.
9871 (do_initial_windows_stuff): Add comment explaining why we wait
9872 until after inferior initialization has finished before
9873 processing all DLLs.
9875 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9877 * windows-nat.c (get_module_name): Delete.
9878 (windows_get_exec_module_filename): New function, mostly
9879 inspired from get_module_name.
9880 (windows_pid_to_exec_file): Replace call to get_module_name
9881 by call to windows_get_exec_module_filename.
9883 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9885 * windows-nat.c (handle_load_dll): Rewrite this function's
9886 introductory comment. Remove code using get_module_name
9887 to get the DLL's name.
9889 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9891 * windows-nat.c (get_windows_debug_event): Ignore
9892 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9893 if windows_initialization_done == 0.
9894 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9895 Adjust implementation to always load all DLLs.
9896 (do_initial_windows_stuff): Replace call to
9897 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9899 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9901 * windows-nat.c (_initialize_windows_nat): Deprecate the
9902 "dll-symbols" command. Turn the "add-shared-symbol-files"
9903 and "assf" aliases into commands, and deprecate them as well.
9904 * NEWS: Add entry explaining that "dll-symbols" and its two
9905 aliases are now deprecated.
9907 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9909 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9910 new-line in debug string. Remove trailing spaces.
9912 2014-02-19 Stan Shebs <stan@codesourcery.com>
9914 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9916 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9918 * NEWS: Add entry for the new feature
9919 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9922 2014-02-19 Stan Shebs <stan@codesourcery.com>
9924 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9926 2014-02-19 Pedro Alves <palves@redhat.com>
9928 * common/ptid.h (struct ptid): Mention that process_stratum
9929 targets should prefer ptid.lwp.
9931 2014-02-19 Pedro Alves <palves@redhat.com>
9933 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9934 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9935 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9936 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9937 store remote thread ids rather than ptid.tid.
9938 (_initialize_remote): Adjust.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * target.c (target_get_unwinder): Rewrite.
9943 (target_get_tailcall_unwinder): Rewrite.
9944 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9945 (record_btrace_to_get_tailcall_unwinder): New function.
9946 (init_record_btrace_ops): Update.
9947 * target.h (struct target_ops) <to_get_unwinder,
9948 to_get_tailcall_unwinder>: Now function pointers. Use
9949 TARGET_DEFAULT_RETURN.
9951 2014-02-19 Tom Tromey <tromey@redhat.com>
9953 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9955 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9957 2014-02-19 Tom Tromey <tromey@redhat.com>
9959 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9961 * target-delegates.c: Rebuild.
9962 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9963 TARGET_DEFAULT_FUNC.
9964 * target.c (default_target_decr_pc_after_break): Rename from
9965 forward_target_decr_pc_after_break. Simplify.
9966 (target_decr_pc_after_break): Rely on delegation.
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9970 * target.c (update_current_target): Do not INHERIT to_doc or
9971 to_magic. Do not de_fault to_open or to_close.
9973 2014-02-19 Tom Tromey <tromey@redhat.com>
9975 * gcore.h (objfile_find_memory_regions): Declare.
9976 * gcore.c (objfile_find_memory_regions): No longer static. Add
9978 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9979 * exec.c: Include gcore.h.
9980 (exec_set_find_memory_regions): Remove.
9981 (exec_find_memory_regions): Remove.
9982 (exec_do_find_memory_regions): Remove.
9983 (init_exec_ops): Update.
9984 * defs.h (exec_set_find_memory_regions): Remove.
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target-delegates.c: Rebuild.
9989 * target.h (struct target_ops) <to_extra_thread_info,
9990 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9991 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9992 not 0, in TARGET_DEFAULT_RETURN.
9994 2014-02-19 Tom Tromey <tromey@redhat.com>
9996 * target.c (complete_target_initialization): Remove casts. Use
9997 return_zero_has_execution.
9998 (return_zero): Add "ignore" argument.
9999 (return_zero_has_execution): New function.
10000 (init_dummy_target): Remove casts. Use
10001 return_zero_has_execution.
10003 2014-02-19 Tom Tromey <tromey@redhat.com>
10005 * target.c (update_current_target): Update comments. Do not
10006 INHERIT to_stratum.
10008 2014-02-19 Tom Tromey <tromey@redhat.com>
10010 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10012 * corelow.c (core_read_description): Delegate when needed.
10013 * remote.c (remote_read_description): Delegate when needed.
10014 * target-delegates.c: Rebuild.
10015 * target.c (target_read_description): Rewrite.
10016 * target.h (struct target_ops) <to_read_description>: Update
10017 comment. Use TARGET_DEFAULT_RETURN.
10019 2014-02-19 Tom Tromey <tromey@redhat.com>
10021 * target-delegates.c: Rebuild.
10022 * target.c (update_current_target): Don't inherit or default
10024 (find_default_run_target): Check against delegate_can_run.
10025 * target.h (struct target_ops) <to_can_run>: Use
10026 TARGET_DEFAULT_RETURN.
10028 2014-02-19 Tom Tromey <tromey@redhat.com>
10030 * target-delegates.c: Rebuild.
10031 * target.c (target_disconnect): Unconditionally delegate.
10032 * target.h (struct target_ops) <to_disconnect>: Use
10033 TARGET_DEFAULT_NORETURN.
10035 2014-02-19 Tom Tromey <tromey@redhat.com>
10037 * record.c (record_stop): Unconditionally delegate.
10038 * target-delegates.c: Rebuild.
10039 * target.c (target_stop_recording): Unconditionally delegate.
10040 * target.h (struct target_ops) <to_stop_recording>: Use
10041 TARGET_DEFAULT_IGNORE.
10043 2014-02-19 Tom Tromey <tromey@redhat.com>
10045 * target-delegates.c: Rebuild.
10046 * target.c (target_enable_btrace): Unconditionally delegate.
10047 * target.h (struct target_ops) <to_enable_btrace>: Use
10048 TARGET_DEFAULT_NORETURN.
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10052 * target-delegates.c: Rebuild.
10053 * target.c (target_read_btrace): Unconditionally delegate.
10054 * target.h (struct target_ops) <to_read_btrace>: Use
10055 TARGET_DEFAULT_NORETURN.
10057 2014-02-19 Tom Tromey <tromey@redhat.com>
10059 * target-delegates.c: Rebuild.
10060 * target.c (target_teardown_btrace): Unconditionally delegate.
10061 * target.h (struct target_ops) <to_teardown_btrace>: Use
10062 TARGET_DEFAULT_NORETURN.
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10066 * target-delegates.c: Rebuild.
10067 * target.c (target_disable_btrace): Unconditionally delegate.
10068 * target.h (struct target_ops) <to_disable_btrace>: Use
10069 TARGET_DEFAULT_NORETURN.
10071 2014-02-19 Tom Tromey <tromey@redhat.com>
10073 * target-delegates.c: Rebuild.
10074 * target.c (default_search_memory): New function.
10075 (simple_search_memory): Update comment.
10076 (target_search_memory): Unconditionally delegate.
10077 * target.h (struct target_ops) <to_search_memory>: Use
10078 TARGET_DEFAULT_FUNC.
10080 2014-02-19 Tom Tromey <tromey@redhat.com>
10082 * auxv.c (default_auxv_parse): No longer static.
10083 (target_auxv_parse): Unconditionally delegate.
10084 * auxv.h (default_auxv_parse): Declare.
10085 * target-delegates.c: Rebuild.
10086 * target.c: Include auxv.h.
10087 * target.h (struct target_ops) <to_auxv_parse>: Use
10088 TARGET_DEFAULT_FUNC.
10090 2014-02-19 Tom Tromey <tromey@redhat.com>
10092 * target-delegates.c: Rebuild.
10093 * target.c (target_memory_map): Unconditionally delegate.
10094 * target.h (struct target_ops) <to_memory_map>: Use
10095 TARGET_DEFAULT_RETURN.
10097 2014-02-19 Tom Tromey <tromey@redhat.com>
10099 * target-delegates.c: Rebuild.
10100 * target.c (target_thread_alive): Unconditionally delegate.
10101 * target.h (struct target_ops) <to_thread_alive>: Use
10102 TARGET_DEFAULT_RETURN.
10104 2014-02-19 Tom Tromey <tromey@redhat.com>
10106 * target-delegates.c: Rebuild.
10107 * target.c (target_save_record): Unconditionally delegate.
10108 * target.h (struct target_ops) <to_save_record>: Use
10109 TARGET_DEFAULT_NORETURN.
10111 2014-02-19 Tom Tromey <tromey@redhat.com>
10113 * target-delegates.c: Rebuild.
10114 * target.c (target_delete_record): Unconditionally delegate.
10115 * target.h (struct target_ops) <to_delete_record>: Use
10116 TARGET_DEFAULT_NORETURN.
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10120 * target-delegates.c: Rebuild.
10121 * target.c (target_record_is_replaying): Unconditionally
10123 * target.h (struct target_ops) <to_record_is_replaying>: Use
10124 TARGET_DEFAULT_RETURN.
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10128 * target-delegates.c: Rebuild.
10129 * target.c (target_goto_record_begin): Unconditionally delegate.
10130 * target.h (struct target_ops) <to_goto_record_begin>: Use
10131 TARGET_DEFAULT_NORETURN.
10133 2014-02-19 Tom Tromey <tromey@redhat.com>
10135 * target-delegates.c: Rebuild.
10136 * target.c (target_goto_record_end): Unconditionally delegate.
10137 * target.h (struct target_ops) <to_goto_record_end>: Use
10138 TARGET_DEFAULT_NORETURN.
10140 2014-02-19 Tom Tromey <tromey@redhat.com>
10142 * target-delegates.c: Rebuild.
10143 * target.c (target_goto_record): Unconditionally delegate.
10144 * target.h (struct target_ops) <to_goto_record>: Use
10145 TARGET_DEFAULT_NORETURN.
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10149 * target-delegates.c: Rebuild.
10150 * target.c (target_insn_history): Unconditionally delegate.
10151 * target.h (struct target_ops) <to_insn_history>: Use
10152 TARGET_DEFAULT_NORETURN.
10154 2014-02-19 Tom Tromey <tromey@redhat.com>
10156 * target-delegates.c: Rebuild.
10157 * target.c (target_insn_history_from): Unconditionally delegate.
10158 * target.h (struct target_ops) <to_insn_history_from>: Use
10159 TARGET_DEFAULT_NORETURN.
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10163 * target-delegates.c: Rebuild.
10164 * target.c (target_insn_history_range): Unconditionally delegate.
10165 * target.h (struct target_ops) <to_insn_history_range>: Use
10166 TARGET_DEFAULT_NORETURN.
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10170 * target-delegates.c: Rebuild.
10171 * target.c (target_call_history): Unconditionally delegate.
10172 * target.h (struct target_ops) <to_call_history>: Use
10173 TARGET_DEFAULT_NORETURN.
10175 2014-02-19 Tom Tromey <tromey@redhat.com>
10177 * target-delegates.c: Rebuild.
10178 * target.c (target_call_history_from): Unconditionally delegate.
10179 * target.h (struct target_ops) <to_call_history_from>: Use
10180 TARGET_DEFAULT_NORETURN.
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10184 * target-delegates.c: Rebuild.
10185 * target.c (target_call_history_range): Unconditionally delegate.
10186 * target.h (struct target_ops) <to_call_history_range>: Use
10187 TARGET_DEFAULT_NORETURN.
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10191 * target-delegates.c: Rebuild.
10192 * target.c (target_verify_memory): Unconditionally delegate.
10193 * target.h (struct target_ops) <to_verify_memory>: Use
10194 TARGET_DEFAULT_NORETURN.
10196 2014-02-19 Tom Tromey <tromey@redhat.com>
10198 * target-delegates.c: Rebuild.
10199 * target.c (target_core_of_thread): Unconditionally delegate.
10200 * target.h (struct target_ops) <to_core_of_thread>: Use
10201 TARGET_DEFAULT_RETURN.
10203 2014-02-19 Tom Tromey <tromey@redhat.com>
10205 * target-delegates.c: Rebuild.
10206 * target.c (target_flash_done): Unconditionally delegate.
10207 * target.h (struct target_ops) <to_flash_done>: Use
10208 TARGET_DEFAULT_NORETURN.
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10212 * target-delegates.c: Rebuild.
10213 * target.c (target_flash_erase): Unconditionally delegate.
10214 * target.h (struct target_ops) <to_flash_erase>: Use
10215 TARGET_DEFAULT_NORETURN.
10217 2014-02-19 Tom Tromey <tromey@redhat.com>
10219 * target-delegates.c: Rebuild.
10220 * target.c (target_get_section_table): Unconditionally delegate.
10221 * target.h (struct target_ops) <to_get_section_table>: Use
10222 TARGET_DEFAULT_RETURN.
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10226 * target-delegates.c: Rebuild.
10227 * target.c (target_pid_to_str): Unconditionally delegate.
10228 (init_dummy_target): Don't initialize to_pid_to_str.
10229 (default_pid_to_str): Rename from dummy_pid_to_str.
10230 * target.h (struct target_ops) <to_pid_to_str>: Use
10231 TARGET_DEFAULT_FUNC.
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10235 * target-delegates.c: Rebuild.
10236 * target.c (target_find_new_threads): Unconditionally delegate.
10237 * target.h (struct target_ops) <to_find_new_threads>: Use
10238 TARGET_DEFAULT_RETURN.
10240 2014-02-19 Tom Tromey <tromey@redhat.com>
10242 * target-delegates.c: Rebuild.
10243 * target.c (target_program_signals): Unconditionally delegate.
10244 * target.h (struct target_ops) <to_program_signals>: Use
10245 TARGET_DEFAULT_IGNORE.
10247 2014-02-19 Tom Tromey <tromey@redhat.com>
10249 * target-delegates.c: Rebuild.
10250 * target.c (target_pass_signals): Unconditionally delegate.
10251 * target.h (struct target_ops) <to_pass_signals>: Use
10252 TARGET_DEFAULT_IGNORE.
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10256 * target-delegates.c: Rebuild.
10257 * target.c (default_mourn_inferior): New function.
10258 (target_mourn_inferior): Unconditionally delegate.
10259 * target.h (struct target_ops) <to_mourn_inferior>: Use
10260 TARGET_DEFAULT_FUNC.
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10264 * target-delegates.c: Rebuild.
10265 * target.c (default_follow_fork): New function.
10266 (target_follow_fork): Unconditionally delegate.
10267 * target.h (struct target_ops) <to_follow_fork>: Use
10268 TARGET_DEFAULT_FUNC.
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10272 * target-delegates.c: Rebuild.
10273 * target.c (target_kill): Unconditionally delegate.
10274 * target.h (struct target_ops) <to_kill>: Use
10275 TARGET_DEFAULT_NORETURN.
10277 2014-02-19 Tom Tromey <tromey@redhat.com>
10279 * target-delegates.c: Rebuild.
10280 * target.c (target_masked_watch_num_registers): Unconditionally
10282 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10283 Use TARGET_DEFAULT_RETURN.
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10287 * target-delegates.c: Rebuild.
10288 * target.c (target_remove_mask_watchpoint): Unconditionally
10290 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10291 TARGET_DEFAULT_RETURN.
10293 2014-02-19 Tom Tromey <tromey@redhat.com>
10295 * target-delegates.c: Rebuild.
10296 * target.c (target_insert_mask_watchpoint): Unconditionally
10298 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10299 TARGET_DEFAULT_RETURN.
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10303 * target-delegates.c: Rebuild.
10304 * target.c (target_ranged_break_num_registers): Unconditionally
10306 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10307 Use TARGET_DEFAULT_RETURN.
10309 2014-02-19 Tom Tromey <tromey@redhat.com>
10311 * target-delegates.c: Rebuild.
10312 * target.c (target_fetch_registers): Unconditionally delegate.
10313 * target.h (struct target_ops) <to_fetch_registers>: Use
10314 TARGET_DEFAULT_NORETURN.
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10318 * target-delegates.c: Rebuild.
10319 * target.c (update_current_target): Don't inherit or default
10321 * target.h (struct target_ops) <to_stop>: Use
10322 TARGET_DEFAULT_IGNORE.
10324 2014-02-19 Tom Tromey <tromey@redhat.com>
10326 * target-delegates.c: Rebuild.
10327 * target.c (update_current_target): Don't inherit or default
10328 to_can_run_breakpoint_commands.
10329 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10330 Use TARGET_DEFAULT_RETURN.
10332 2014-02-19 Tom Tromey <tromey@redhat.com>
10334 * target-delegates.c: Rebuild.
10335 * target.c (update_current_target): Don't inherit or default
10336 to_supports_evaluation_of_breakpoint_conditions.
10337 * target.h (struct target_ops)
10338 <to_supports_evaluation_of_breakpoint_conditions>: Use
10339 TARGET_DEFAULT_RETURN.
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target-delegates.c: Rebuild.
10344 * target.c (update_current_target): Don't inherit or default
10345 to_augmented_libraries_svr4_read.
10346 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10347 Use TARGET_DEFAULT_RETURN.
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10354 * target.h (struct target_ops) <to_can_use_agent>: Use
10355 TARGET_DEFAULT_RETURN.
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10359 * target-delegates.c: Rebuild.
10360 * target.c (update_current_target): Don't inherit or default
10362 * target.h (struct target_ops) <to_use_agent>: Use
10363 TARGET_DEFAULT_NORETURN.
10365 2014-02-19 Tom Tromey <tromey@redhat.com>
10367 * target-delegates.c: Rebuild.
10368 * target.c (update_current_target): Don't inherit or default
10369 to_traceframe_info.
10370 (return_null): Remove.
10371 * target.h (struct target_ops) <to_traceframe_info>: Use
10372 TARGET_DEFAULT_RETURN.
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10376 * target-delegates.c: Rebuild.
10377 * target.c (update_current_target): Don't inherit or default
10378 to_static_tracepoint_markers_by_strid.
10379 * target.h (struct target_ops)
10380 <to_static_tracepoint_markers_by_strid>: Use
10381 TARGET_DEFAULT_NORETURN.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target-delegates.c: Rebuild.
10386 * target.c (update_current_target): Don't inherit or default
10387 to_static_tracepoint_marker_at.
10388 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10389 Use TARGET_DEFAULT_RETURN.
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10393 * target-delegates.c: Rebuild.
10394 * target.c (update_current_target): Don't inherit or default
10395 to_set_permissions.
10396 * target.h (struct target_ops) <to_set_permissions>: Use
10397 TARGET_DEFAULT_IGNORE.
10399 2014-02-19 Tom Tromey <tromey@redhat.com>
10401 * target-delegates.c: Rebuild.
10402 * target.c (update_current_target): Don't inherit or default
10403 to_get_tib_address.
10404 * target.h (struct target_ops) <to_get_tib_address>: Use
10405 TARGET_DEFAULT_NORETURN.
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10409 * target-delegates.c: Rebuild.
10410 * target.c (update_current_target): Don't inherit or default
10411 to_set_trace_notes.
10412 * target.h (struct target_ops) <to_set_trace_notes>: Use
10413 TARGET_DEFAULT_RETURN.
10415 2014-02-19 Tom Tromey <tromey@redhat.com>
10417 * target-delegates.c: Rebuild.
10418 * target.c (update_current_target): Don't initialize
10419 to_set_trace_buffer_size.
10420 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10421 TARGET_DEFAULT_IGNORE.
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10425 * target-delegates.c: Rebuild.
10426 * target.c (update_current_target): Don't inherit or default
10427 to_set_circular_trace_buffer.
10428 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10429 TARGET_DEFAULT_IGNORE.
10431 2014-02-19 Tom Tromey <tromey@redhat.com>
10433 * target-delegates.c: Rebuild.
10434 * target.c (update_current_target): Don't inherit or default
10435 to_set_disconnected_tracing.
10436 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10437 TARGET_DEFAULT_IGNORE.
10439 2014-02-19 Tom Tromey <tromey@redhat.com>
10441 * target-delegates.c: Rebuild.
10442 * target.c (update_current_target): Don't inherit or default
10443 to_get_min_fast_tracepoint_insn_len.
10444 (return_minus_one): Remove.
10445 * target.h (struct target_ops)
10446 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10448 2014-02-19 Tom Tromey <tromey@redhat.com>
10450 * target-delegates.c: Rebuild.
10451 * target.c (update_current_target): Don't inherit or default
10452 to_get_raw_trace_data.
10453 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10454 TARGET_DEFAULT_NORETURN.
10456 2014-02-19 Tom Tromey <tromey@redhat.com>
10458 * target-delegates.c: Rebuild.
10459 * target.c (update_current_target): Don't inherit or default
10460 to_upload_trace_state_variables.
10461 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10462 Use TARGET_DEFAULT_RETURN.
10464 2014-02-19 Tom Tromey <tromey@redhat.com>
10466 * target-delegates.c: Rebuild.
10467 * target.c (update_current_target): Don't inherit or default
10468 to_upload_tracepoints.
10469 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10470 TARGET_DEFAULT_RETURN.
10472 2014-02-19 Tom Tromey <tromey@redhat.com>
10474 * target-delegates.c: Rebuild.
10475 * target.c (update_current_target): Don't inherit or default
10476 to_save_trace_data.
10477 * target.h (struct target_ops) <to_save_trace_data>: Use
10478 TARGET_DEFAULT_NORETURN.
10480 2014-02-19 Tom Tromey <tromey@redhat.com>
10482 * target-delegates.c: Rebuild.
10483 * target.c (update_current_target): Don't inherit or default
10484 to_get_trace_state_variable_value.
10485 * target.h (struct target_ops)
10486 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10488 2014-02-19 Tom Tromey <tromey@redhat.com>
10490 * target-delegates.c: Rebuild.
10491 * target.c (update_current_target): Don't inherit or default
10493 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10497 * target-delegates.c: Rebuild.
10498 * target.c (update_current_target): Don't inherit or default
10500 * target.h (struct target_ops) <to_trace_stop>: Use
10501 TARGET_DEFAULT_NORETURN.
10503 2014-02-19 Tom Tromey <tromey@redhat.com>
10505 * target-delegates.c: Rebuild.
10506 * target.c (update_current_target): Don't inherit or default
10507 to_get_tracepoint_status.
10508 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10509 TARGET_DEFAULT_NORETURN.
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10513 * target-delegates.c: Rebuild.
10514 * target.c (update_current_target): Don't inherit or default
10515 to_get_trace_status.
10516 * target.h (struct target_ops) <to_get_trace_status>: Use
10517 TARGET_DEFAULT_RETURN.
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10521 * target-delegates.c: Rebuild.
10522 * target.c (update_current_target): Don't inherit or default
10524 * target.h (struct target_ops) <to_trace_start>: Use
10525 TARGET_DEFAULT_NORETURN.
10527 2014-02-19 Tom Tromey <tromey@redhat.com>
10529 * target-delegates.c: Rebuild.
10530 * target.c (update_current_target): Don't inherit or default
10531 to_trace_set_readonly_regions.
10532 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10533 Use TARGET_DEFAULT_NORETURN.
10535 2014-02-19 Tom Tromey <tromey@redhat.com>
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't inherit or default
10539 to_disable_tracepoint.
10540 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10541 TARGET_DEFAULT_NORETURN.
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10545 * target-delegates.c: Rebuild.
10546 * target.c (update_current_target): Don't inherit or default
10547 to_enable_tracepoint.
10548 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10549 TARGET_DEFAULT_NORETURN.
10551 2014-02-19 Tom Tromey <tromey@redhat.com>
10553 * target-delegates.c: Rebuild.
10554 * target.c (update_current_target): Don't inherit or default
10555 to_download_trace_state_variable.
10556 * target.h (struct target_ops) <to_download_trace_state_variable>:
10557 Use TARGET_DEFAULT_NORETURN.
10559 2014-02-19 Tom Tromey <tromey@redhat.com>
10561 * target-delegates.c: Rebuild.
10562 * target.c (update_current_target): Don't inherit or default
10563 to_can_download_tracepoint.
10564 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10565 TARGET_DEFAULT_RETURN.
10567 2014-02-19 Tom Tromey <tromey@redhat.com>
10569 * target-delegates.c: Rebuild.
10570 * target.c (update_current_target): Don't inherit or default
10571 to_download_tracepoint.
10572 * target.h (struct target_ops) <to_download_tracepoint>: Use
10573 TARGET_DEFAULT_NORETURN.
10575 2014-02-19 Tom Tromey <tromey@redhat.com>
10577 * target-delegates.c: Rebuild.
10578 * target.c (update_current_target): Don't inherit or default
10580 * target.h (struct target_ops) <to_trace_init>: Use
10581 TARGET_DEFAULT_RETURN.
10583 2014-02-19 Tom Tromey <tromey@redhat.com>
10585 * target-delegates.c: Rebuild.
10586 * target.c (update_current_target): Don't inherit or default
10587 to_supports_string_tracing.
10588 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10589 TARGET_DEFAULT_RETURN.
10591 2014-02-19 Tom Tromey <tromey@redhat.com>
10593 * target-delegates.c: Rebuild.
10594 * target.c (update_current_target): Don't inherit or default
10595 to_supports_enable_disable_tracepoint.
10596 * target.h (struct target_ops)
10597 <to_supports_enable_disable_tracepoint>: Use
10598 TARGET_DEFAULT_RETURN.
10600 2014-02-19 Tom Tromey <tromey@redhat.com>
10602 * target-delegates.c: Rebuild.
10603 * target.c (update_current_target): Don't inherit or default
10604 to_supports_multi_process.
10605 * target.h (struct target_ops) <to_supports_multi_process>: Use
10606 TARGET_DEFAULT_RETURN.
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10610 * target-delegates.c: Rebuild.
10611 * target.c (update_current_target): Don't inherit or default
10612 to_get_ada_task_ptid.
10613 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10614 TARGET_DEFAULT_FUNC.
10616 2014-02-19 Tom Tromey <tromey@redhat.com>
10618 * target-delegates.c: Rebuild.
10619 * target.c (update_current_target): Don't inherit or default
10620 to_thread_architecture.
10621 * target.h (struct target_ops) <to_thread_architecture>: Use
10622 TARGET_DEFAULT_FUNC.
10624 2014-02-19 Tom Tromey <tromey@redhat.com>
10626 * target-delegates.c: Rebuild.
10627 * target.c (update_current_target): Don't inherit or default
10628 to_execution_direction.
10629 * target.h (struct target_ops) <to_execution_direction>: Use
10630 TARGET_DEFAULT_FUNC.
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10634 * target-delegates.c: Rebuild.
10635 * target.c (update_current_target): Don't inherit or default
10636 to_can_execute_reverse.
10637 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10638 TARGET_DEFAULT_RETURN.
10639 (target_can_execute_reverse): Unconditionally delegate.
10641 2014-02-19 Tom Tromey <tromey@redhat.com>
10643 * target-delegates.c: Rebuild.
10644 * target.c (update_current_target): Don't inherit or default
10646 (dummy_goto_bookmark): Remove.
10647 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10648 * target.h (struct target_ops) <to_goto_bookmark>: Use
10649 TARGET_DEFAULT_NORETURN.
10651 2014-02-19 Tom Tromey <tromey@redhat.com>
10653 * target-delegates.c: Rebuild.
10654 * target.c (update_current_target): Don't inherit or default
10656 (dummy_get_bookmark): Remove.
10657 (init_dummy_target): Don't inherit or default to_get_bookmark.
10658 * target.h (struct target_ops) <to_get_bookmark>: Use
10659 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
10666 (init_dummy_target): Don't initialize to_make_corefile_notes.
10667 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10668 TARGET_DEFAULT_FUNC.
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10672 * target-delegates.c: Rebuild.
10673 * target.c (update_current_target): Don't inherit or default
10674 to_find_memory_regions.
10675 (init_dummy_target): Don't initialize to_find_memory_regions.
10676 * target.h (struct target_ops) <to_find_memory_regions>: Use
10677 TARGET_DEFAULT_FUNC.
10679 2014-02-19 Tom Tromey <tromey@redhat.com>
10681 * target-delegates.c: Rebuild.
10682 * target.c (update_current_target): Don't inherit or default
10684 * target.h (struct target_ops) <to_log_command>: Use
10685 TARGET_DEFAULT_IGNORE.
10686 (target_log_command): Unconditionally delegate.
10688 2014-02-19 Tom Tromey <tromey@redhat.com>
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't inherit or default
10692 to_pid_to_exec_file.
10693 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10694 TARGET_DEFAULT_RETURN.
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10698 * target-delegates.c: Rebuild.
10699 * target.c (update_current_target): Don't inherit or default
10701 (target_thread_name): Unconditionally delegate.
10702 * target.h (struct target_ops) <to_thread_name>: Use
10703 TARGET_DEFAULT_RETURN.
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10707 * target-delegates.c: Rebuild.
10708 * target.c (update_current_target): Don't inherit or default
10709 to_extra_thread_info.
10710 * target.h (struct target_ops) <to_extra_thread_info>: Use
10711 TARGET_DEFAULT_RETURN.
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10715 * target-delegates.c: Rebuild.
10716 * target.c (update_current_target): Don't inherit or default
10718 * target.h (struct target_ops) <to_has_exited>: Use
10719 TARGET_DEFAULT_RETURN..
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10723 * target-delegates.c: Rebuild.
10724 * target.c (update_current_target): Don't inherit or default
10725 to_set_syscall_catchpoint.
10726 (return_one): Remove.
10727 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10728 TARGET_DEFAULT_RETURN.
10730 2014-02-19 Tom Tromey <tromey@redhat.com>
10732 * target-delegates.c: Rebuild.
10733 * target.c (update_current_target): Don't inherit or default
10734 to_insert_exec_catchpoint.
10735 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10736 TARGET_DEFAULT_RETURN.
10738 2014-01-08 Tom Tromey <tromey@redhat.com>
10740 * target-delegates.c: Rebuild.
10741 * target.c (update_current_target): Don't inherit or default
10742 to_insert_exec_catchpoint.
10743 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10744 TARGET_DEFAULT_RETURN.
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10748 * target-delegates.c: Rebuild.
10749 * target.c (update_current_target): Don't inherit or default
10750 to_remove_vfork_catchpoint.
10751 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10752 TARGET_DEFAULT_RETURN.
10754 2014-02-19 Tom Tromey <tromey@redhat.com>
10756 * target-delegates.c: Rebuild.
10757 * target.c (update_current_target): Don't inherit or default
10758 to_insert_vfork_catchpoint.
10759 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10760 TARGET_DEFAULT_RETURN.
10762 2014-02-19 Tom Tromey <tromey@redhat.com>
10764 * target-delegates.c: Rebuild.
10765 * target.c (update_current_target): Don't inherit or default
10766 to_remove_fork_catchpoint.
10767 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10768 TARGET_DEFAULT_RETURN.
10770 2014-02-19 Tom Tromey <tromey@redhat.com>
10772 * target-delegates.c: Rebuild.
10773 * target.c (update_current_target): Don't inherit or default
10774 to_insert_fork_catchpoint.
10775 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10776 TARGET_DEFAULT_RETURN.
10778 2014-02-19 Tom Tromey <tromey@redhat.com>
10780 * target-delegates.c: Rebuild.
10781 * target.c (update_current_target): Don't inherit or default
10782 to_post_startup_inferior.
10783 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10784 TARGET_DEFAULT_IGNORE.
10786 2014-02-19 Tom Tromey <tromey@redhat.com>
10788 * target-delegates.c: Rebuild.
10789 * target.c (update_current_target): Don't inherit or default
10791 * target.h (struct target_ops) <to_load>: Use
10792 TARGET_DEFAULT_NORETURN.
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10796 * target-delegates.c: Rebuild.
10797 * target.c (update_current_target): Don't inherit or default
10799 * target.h (struct target_ops) <to_terminal_info>: Use
10800 TARGET_DEFAULT_FUNC.
10802 2014-02-19 Tom Tromey <tromey@redhat.com>
10804 * target-delegates.c: Rebuild.
10805 * target.c (update_current_target): Don't inherit or default
10806 to_terminal_save_ours.
10807 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10808 TARGET_DEFAULT_IGNORE.
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10812 * target-delegates.c: Rebuild.
10813 * target.c (update_current_target): Don't inherit or default
10815 * target.h (struct target_ops) <to_terminal_ours>: Use
10816 TARGET_DEFAULT_IGNORE.
10818 2014-02-19 Tom Tromey <tromey@redhat.com>
10820 * target-delegates.c: Rebuild.
10821 * target.c (update_current_target): Don't inherit or default
10822 to_terminal_ours_for_output.
10823 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10824 TARGET_DEFAULT_IGNORE.
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target-delegates.c: Rebuild.
10829 * target.c (update_current_target): Don't inherit or default
10830 to_terminal_inferior.
10831 * target.h (struct target_ops) <to_terminal_inferior>: Use
10832 TARGET_DEFAULT_IGNORE.
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * target-delegates.c: Rebuild.
10837 * target.c (update_current_target): Don't inherit or default
10839 * target.h (struct target_ops) <to_terminal_init>: Use
10840 TARGET_DEFAULT_IGNORE.
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10844 * target-delegates.c: Rebuild.
10845 * target.c (update_current_target): Don't inherit or default
10846 to_can_accel_watchpoint_condition.
10847 * target.h (struct target_ops)
10848 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10852 * target-delegates.c: Rebuild.
10853 * target.c (update_current_target): Don't inherit or default
10854 to_region_ok_for_hw_watchpoint.
10855 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10856 Use TARGET_DEFAULT_FUNC.
10858 2014-02-19 Tom Tromey <tromey@redhat.com>
10860 * target-delegates.c: Rebuild.
10861 * target.c (update_current_target): Don't inherit or default
10862 to_watchpoint_addr_within_range.
10863 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10864 Use TARGET_DEFAULT_FUNC.
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10868 * target-delegates.c: Rebuild.
10869 * target.c (update_current_target): Don't inherit or default
10870 to_remove_watchpoint.
10871 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10872 TARGET_DEFAULT_NORETURN.
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10876 * target-delegates.c: Rebuild.
10877 * target.c (update_current_target): Don't inherit or default
10878 to_insert_watchpoint.
10879 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10880 TARGET_DEFAULT_RETURN.
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10884 * target-delegates.c: Rebuild.
10885 * target.c (update_current_target): Don't inherit or default
10886 to_remove_hw_breakpoint.
10887 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10888 TARGET_DEFAULT_RETURN.
10890 2014-02-19 Tom Tromey <tromey@redhat.com>
10892 * target-delegates.c: Rebuild.
10893 * target.c (update_current_target): Don't inherit or default
10894 to_insert_hw_breakpoint.
10895 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10896 TARGET_DEFAULT_RETURN.
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10900 * target-delegates.c: Rebuild.
10901 * target.c (update_current_target): Don't inherit or default
10902 to_can_use_hw_breakpoint.
10903 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10904 TARGET_DEFAULT_RETURN.
10906 2014-02-19 Tom Tromey <tromey@redhat.com>
10908 * target-delegates.c: Rebuild.
10909 * target.c (update_current_target): Don't inherit or default
10911 * target.h (struct target_ops) <to_files_info>: Use
10912 TARGET_DEFAULT_IGNORE.
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10916 * target-delegates.c: Rebuild.
10917 * target.c (update_current_target): Don't inherit or default
10919 * target.h (struct target_ops) <to_store>: Use
10920 TARGET_DEFAULT_NORETURN.
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10924 * target-delegates.c: Rebuild.
10925 * target.c (update_current_target): Don't inherit or default
10927 * target.h (struct target_ops) <to_post_attach>: Use
10928 TARGET_DEFAULT_IGNORE.
10930 2014-02-19 Tom Tromey <tromey@redhat.com>
10932 * target-delegates.c: Rebuild.
10933 * target.c (update_current_target): Don't inherit or default
10935 (default_rcmd): New function.
10936 (do_monitor_command): Unconditionally delegate.
10937 * target.h (struct target_ops) <to_rmcd>: Use
10938 TARGET_DEFAULT_FUNC.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target-delegates.c: Rebuild.
10943 * target.c (init_dummy_target): Don't initialize to_attach.
10944 (target_attach): Unconditionally delegate.
10945 * target.h (struct target_ops) <to_attach>: Use
10946 TARGET_DEFAULT_FUNC.
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10950 * target-delegates.c: Rebuild.
10951 * target.c (target_detach): Unconditionally delegate.
10952 (init_dummy_target): Don't initialize to_detach.
10953 * target.h (struct target_ops) <to_detach>: Use
10954 TARGET_DEFAULT_IGNORE.
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10958 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10960 (target_augmented_libraries_svr4_read): Add argument.
10961 * target.c (update_current_target): Update.
10962 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10965 2014-02-19 Tom Tromey <tromey@redhat.com>
10967 * target.h (struct target_ops) <to_call_history_range>: Add
10969 * target.c (target_call_history_range): Add argument.
10970 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10972 (record_btrace_call_history_from): Update.
10974 2014-02-19 Tom Tromey <tromey@redhat.com>
10976 * target.h (struct target_ops) <to_call_history_from>: Add
10978 * target.c (target_call_history_from): Add argument.
10979 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10982 2014-02-19 Tom Tromey <tromey@redhat.com>
10984 * target.h (struct target_ops) <to_call_history>: Add argument.
10985 * target.c (target_call_history): Add argument.
10986 * record-btrace.c (record_btrace_call_history): Add 'self'
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10991 * target.h (struct target_ops) <to_insn_history_range>: Add
10993 * target.c (target_insn_history_range): Add argument.
10994 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10996 (record_btrace_insn_history_from): Update.
10998 2014-02-19 Tom Tromey <tromey@redhat.com>
11000 * target.h (struct target_ops) <to_insn_history_from>: Add
11002 * target.c (target_insn_history_from): Add argument.
11003 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11006 2014-02-19 Tom Tromey <tromey@redhat.com>
11008 * target.h (struct target_ops) <to_insn_history>: Add argument.
11009 * target.c (target_insn_history): Add argument.
11010 * record-btrace.c (record_btrace_insn_history): Add 'self'
11013 2014-02-19 Tom Tromey <tromey@redhat.com>
11015 * target.h (struct target_ops) <to_goto_record>: Add argument.
11016 * target.c (target_goto_record): Add argument.
11017 * record-full.c (record_full_goto): Add 'self' argument.
11018 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11020 2014-02-19 Tom Tromey <tromey@redhat.com>
11022 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11023 * target.c (target_goto_record_end): Add argument.
11024 * record-full.c (record_full_goto_end): Add 'self' argument.
11025 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11029 * target.h (struct target_ops) <to_goto_record_begin>: Add
11031 * target.c (target_goto_record_begin): Add argument.
11032 * record-full.c (record_full_goto_begin): Add 'self' argument.
11033 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11036 2014-02-19 Tom Tromey <tromey@redhat.com>
11038 * target.h (struct target_ops) <to_record_is_replaying>: Add
11040 * target.c (target_record_is_replaying): Add argument.
11041 * record-full.c (record_full_is_replaying): Add 'self' argument.
11042 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11044 (record_btrace_xfer_partial, record_btrace_store_registers)
11045 (record_btrace_prepare_to_store, record_btrace_resume)
11046 (record_btrace_wait, record_btrace_decr_pc_after_break)
11047 (record_btrace_find_new_threads, record_btrace_thread_alive):
11050 2014-02-19 Tom Tromey <tromey@redhat.com>
11052 * target.h (struct target_ops) <to_delete_record>: Add argument.
11053 * target.c (target_delete_record): Add argument.
11054 * record-full.c (record_full_delete): Add 'self' argument.
11056 2014-02-19 Tom Tromey <tromey@redhat.com>
11058 * target.h (struct target_ops) <to_save_record>: Add argument.
11059 * target.c (target_save_record): Add argument.
11060 * record-full.c (record_full_save): Add 'self' argument.
11061 (record_full_save): Add 'self' argument.
11063 2014-02-19 Tom Tromey <tromey@redhat.com>
11065 * target.h (struct target_ops) <to_info_record>: Add argument.
11066 * target.c (target_info_record): Add argument.
11067 * record.c (info_record_command): Add argument.
11068 * record-full.c (record_full_info): Add 'self' argument.
11069 * record-btrace.c (record_btrace_info): Add 'self' argument.
11071 2014-02-19 Tom Tromey <tromey@redhat.com>
11073 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11074 * target.c (target_stop_recording): Add argument.
11075 * record.c (record_stop): Add argument.
11076 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11079 2014-02-19 Tom Tromey <tromey@redhat.com>
11081 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11082 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11083 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11085 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11086 (_initialize_amd64_linux_nat): Use it.
11087 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11088 (_initialize_i386_linux_nat): Use it.
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11092 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11093 * target.c (target_teardown_btrace): Add argument.
11094 * remote.c (remote_teardown_btrace): Add 'self' argument.
11095 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11097 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11100 2014-02-19 Tom Tromey <tromey@redhat.com>
11102 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11103 * target.c (target_disable_btrace): Add argument.
11104 * remote.c (remote_disable_btrace): Add 'self' argument.
11105 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11107 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11112 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11113 * target.c (target_enable_btrace): Add argument.
11114 * remote.c (remote_enable_btrace): Add 'self' argument.
11115 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11117 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11120 2014-02-19 Tom Tromey <tromey@redhat.com>
11122 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11123 (target_can_use_agent): Add argument.
11124 * target.c (update_current_target): Update.
11125 * remote.c (remote_can_use_agent): Add 'self' argument.
11126 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11128 2014-02-19 Tom Tromey <tromey@redhat.com>
11130 * target.h (struct target_ops) <to_use_agent>: Add argument.
11131 (target_use_agent): Add argument.
11132 * target.c (update_current_target): Update.
11133 * remote.c (remote_use_agent): Add 'self' argument.
11134 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11138 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11139 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11140 (target_traceframe_info): Add argument.
11141 * target.c (update_current_target): Update.
11142 * remote.c (remote_traceframe_info): Add 'self' argument.
11143 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11145 2014-02-19 Tom Tromey <tromey@redhat.com>
11147 * target.h (target_static_tracepoint_markers_by_strid): Add
11149 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11151 * target.c (update_current_target): Update.
11152 * remote.c (struct target_ops)
11153 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11154 * linux-nat.c (struct target_ops)
11155 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11161 (target_static_tracepoint_marker_at): Add argument.
11162 * target.c (update_current_target): Update.
11163 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11166 2014-02-19 Tom Tromey <tromey@redhat.com>
11168 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11169 (target_set_permissions): Add argument.
11170 * target.c (update_current_target): Update.
11171 * remote.c (remote_set_permissions): Add 'self' argument.
11172 (remote_start_remote): Update.
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11176 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11177 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11178 (target_get_tib_address): Add argument.
11179 * target.c (update_current_target): Update.
11180 * remote.c (remote_get_tib_address): Add 'self' argument.
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11184 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11185 (target_set_trace_notes): Add argument.
11186 * target.c (update_current_target): Update.
11187 * remote.c (remote_set_trace_notes): Add 'self' argument.
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11191 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11193 (target_set_trace_buffer_size): Add argument.
11194 * target.c (update_current_target): Update.
11195 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11199 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11201 (target_set_circular_trace_buffer): Add argument.
11202 * target.c (update_current_target): Update.
11203 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11208 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11210 (target_set_disconnected_tracing): Add argument.
11211 * target.c (update_current_target): Update.
11212 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11216 * target.h (struct target_ops)
11217 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11218 (target_get_min_fast_tracepoint_insn_len): Add argument.
11219 * target.c (update_current_target): Update.
11220 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11223 2014-02-19 Tom Tromey <tromey@redhat.com>
11225 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11227 (target_get_raw_trace_data): Add argument.
11228 * target.c (update_current_target): Update.
11229 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11233 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11235 (target_upload_trace_state_variables): Add argument.
11236 * target.c (update_current_target): Update.
11237 * remote.c (remote_upload_trace_state_variables): Add 'self'
11239 (remote_start_remote): Update.
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11245 (target_upload_tracepoints): Add argument.
11246 * target.c (update_current_target): Update.
11247 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11248 (remote_start_remote): Update.
11250 2014-02-19 Tom Tromey <tromey@redhat.com>
11252 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11253 (target_save_trace_data): Add argument.
11254 * target.c (update_current_target): Update.
11255 * remote.c (remote_save_trace_data): Add 'self' argument.
11257 2014-02-19 Tom Tromey <tromey@redhat.com>
11259 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11261 * target.h (struct target_ops)
11262 <to_get_trace_state_variable_value>: Add argument.
11263 (target_get_trace_state_variable_value): Add argument.
11264 * target.c (update_current_target): Update.
11265 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11267 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11271 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11272 * target.h (struct target_ops) <to_trace_find>: Add argument.
11273 (target_trace_find): Add argument.
11274 * target.c (update_current_target): Update.
11275 * remote.c (remote_trace_find): Add 'self' argument.
11276 * ctf.c (ctf_trace_find): Add 'self' argument.
11278 2014-02-19 Tom Tromey <tromey@redhat.com>
11280 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11281 (target_trace_stop): Add argument.
11282 * target.c (update_current_target): Update.
11283 * remote.c (remote_trace_stop): Add 'self' argument.
11285 2014-02-19 Tom Tromey <tromey@redhat.com>
11287 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11288 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11290 (target_get_tracepoint_status): Add argument.
11291 * target.c (update_current_target): Update.
11292 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11294 2014-02-19 Tom Tromey <tromey@redhat.com>
11296 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11297 * target.h (struct target_ops) <to_get_trace_status>: Add
11299 (target_get_trace_status): Add argument.
11300 * target.c (update_current_target): Update.
11301 * remote.c (remote_get_trace_status): Add 'self' argument.
11302 (remote_start_remote, remote_can_download_tracepoint): Update.
11303 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11305 2014-02-19 Tom Tromey <tromey@redhat.com>
11307 * target.h (struct target_ops) <to_trace_start>: Add argument.
11308 (target_trace_start): Add argument.
11309 * target.c (update_current_target): Update.
11310 * remote.c (remote_trace_start): Add 'self' argument.
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11314 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11316 (target_trace_set_readonly_regions): Add argument.
11317 * target.c (update_current_target): Update.
11318 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11323 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11325 (target_disable_tracepoint): Add argument.
11326 * target.c (update_current_target): Update.
11327 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11331 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11333 (target_enable_tracepoint): Add argument.
11334 * target.c (update_current_target): Update.
11335 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11337 2014-02-19 Tom Tromey <tromey@redhat.com>
11339 * target.h (struct target_ops) <to_download_trace_state_variable>:
11341 (target_download_trace_state_variable): Add argument.
11342 * target.c (update_current_target): Update.
11343 * remote.c (remote_download_trace_state_variable): Add 'self'
11346 2014-02-19 Tom Tromey <tromey@redhat.com>
11348 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11350 (target_can_download_tracepoint): Add argument.
11351 * target.c (update_current_target): Update.
11352 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11354 2014-02-19 Tom Tromey <tromey@redhat.com>
11356 * target.h (struct target_ops) <to_download_tracepoint>: Add
11358 (target_download_tracepoint): Add argument.
11359 * target.c (update_current_target): Update.
11360 * remote.c (remote_download_tracepoint): Add 'self' argument.
11362 2014-02-19 Tom Tromey <tromey@redhat.com>
11364 * target.h (struct target_ops) <to_trace_init>: Add argument.
11365 (target_trace_init): Add argument.
11366 * target.c (update_current_target): Update.
11367 * remote.c (remote_trace_init): Add 'self' argument.
11369 2014-02-19 Tom Tromey <tromey@redhat.com>
11371 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11372 * target.c (target_fileio_readlink): Add argument.
11373 * remote.c (remote_hostio_readlink): Add 'self' argument.
11374 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11376 2014-02-19 Tom Tromey <tromey@redhat.com>
11378 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11379 * target.c (target_fileio_unlink): Add argument.
11380 * remote.c (remote_hostio_unlink): Add 'self' argument.
11381 (remote_file_delete): Update.
11382 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11384 2014-02-19 Tom Tromey <tromey@redhat.com>
11386 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11387 * target.c (target_fileio_close): Add argument.
11388 * remote.c (remote_hostio_close): Add 'self' argument.
11389 (remote_hostio_close_cleanup): Update.
11390 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11392 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11396 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11397 * target.c (target_fileio_pread): Add argument.
11398 * remote.c (remote_hostio_pread): Add 'self' argument.
11399 (remote_bfd_iovec_pread, remote_file_get): Update.
11400 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11404 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11405 * target.c (target_fileio_pwrite): Add argument.
11406 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11407 (remote_file_put): Update.
11408 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11412 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11413 * target.c (target_fileio_open): Add argument.
11414 * remote.c (remote_hostio_open): Add 'self' argument.
11415 (remote_bfd_iovec_open): Add 'self' argument.
11416 (remote_file_put): Add 'self' argument.
11417 (remote_file_get): Add 'self' argument.
11418 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11420 2014-02-19 Tom Tromey <tromey@redhat.com>
11422 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11424 (target_can_run_breakpoint_commands): Add argument.
11425 * target.c (update_current_target): Update.
11426 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11428 (remote_insert_breakpoint): Add 'self' argument.
11429 (remote_insert_hw_breakpoint): Add 'self' argument.
11430 (remote_can_run_breakpoint_commands): Add 'self' argument.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target.h (struct target_ops)
11435 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11436 (target_supports_evaluation_of_breakpoint_conditions): Add
11438 * target.c (update_current_target): Update.
11439 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11441 (remote_insert_breakpoint): Add 'self' argument.
11442 (remote_insert_hw_breakpoint): Add 'self' argument.
11443 (remote_supports_cond_breakpoints): Add 'self' argument.
11445 2014-02-19 Tom Tromey <tromey@redhat.com>
11447 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11449 (target_supports_string_tracing): Add argument.
11450 * target.c (update_current_target): Update.
11451 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11455 * target.h (struct target_ops)
11456 <to_supports_disable_randomization>: Add argument.
11457 * target.c (find_default_supports_disable_randomization): Add
11459 (target_supports_disable_randomization): Add argument.
11460 (find_default_supports_disable_randomization): Add 'self'
11462 * remote.c (extended_remote_supports_disable_randomization): Add
11464 (remote_supports_disable_randomization): Add 'self' argument.
11465 (extended_remote_create_inferior): Update.
11466 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11469 2014-02-19 Tom Tromey <tromey@redhat.com>
11471 * target.h (struct target_ops)
11472 <to_supports_enable_disable_tracepoint>: Add argument.
11473 (target_supports_enable_disable_tracepoint): Add argument.
11474 * target.c (update_current_target): Update.
11475 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11478 2014-02-19 Tom Tromey <tromey@redhat.com>
11480 * target.h (struct target_ops) <to_supports_multi_process>: Add
11482 (target_supports_multi_process): Add argument.
11483 * target.c (update_current_target): Update.
11484 * remote.c (remote_supports_multi_process): Add 'self' argument.
11485 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11487 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11490 2014-02-19 Tom Tromey <tromey@redhat.com>
11492 * target.h (struct target_ops) <to_execution_direction>: Add
11494 (target_execution_direction): Add argument.
11495 * target.c (default_execution_direction): Add 'self' argument.
11496 * record-full.c (record_full_execution_direction): Add 'self'
11499 2014-02-19 Tom Tromey <tromey@redhat.com>
11501 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11503 (target_can_execute_reverse): Add argument.
11504 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11505 * record-full.c (record_full_can_execute_reverse): Add 'self'
11507 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11512 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11513 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11515 (target_get_ada_task_ptid): Add argument.
11516 * target.c (update_current_target): Update.
11517 (default_get_ada_task_ptid): Add 'self' argument.
11518 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11519 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11520 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11522 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11524 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11526 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11528 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11529 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11532 2014-02-19 Tom Tromey <tromey@redhat.com>
11534 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11535 (target_goto_bookmark): Add argument.
11536 * target.c (dummy_goto_bookmark): Add 'self' argument.
11537 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11541 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11542 (target_get_bookmark): Add argument.
11543 * target.c (dummy_get_bookmark): Add 'self' argument.
11544 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11546 2014-02-19 Tom Tromey <tromey@redhat.com>
11548 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11550 (target_make_corefile_notes): Add argument.
11551 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11552 * procfs.c (procfs_make_note_section): Add 'self' argument.
11553 (procfs_make_note_section): Add 'self' argument.
11554 (procfs_make_note_section): Add 'self' argument.
11555 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11557 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11558 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11559 * exec.c (exec_make_note_section): Add 'self' argument.
11560 (exec_make_note_section): Add 'self' argument.
11562 2014-02-19 Tom Tromey <tromey@redhat.com>
11564 * target.h (struct target_ops) <to_find_memory_regions>: Add
11566 (target_find_memory_regions): Add argument.
11567 * target.c (dummy_find_memory_regions): Add 'self' argument.
11568 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11569 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11570 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11571 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11572 * exec. (exec_do_find_memory_regions): New global.
11573 (exec_set_find_memory_regions): Rewrite.
11574 (exec_find_memory_regions): New function.
11575 (init_exec_ops): Use exec_find_memory_regions.
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target.h (struct target_ops) <to_supports_non_stop>: Add
11581 * target.c (find_default_supports_non_stop): Add argument.
11582 (target_supports_non_stop): Add argument.
11583 (find_default_supports_non_stop): Add 'self' argument.
11584 * remote.c (remote_supports_non_stop): Add 'self' argument.
11585 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11587 2014-02-19 Tom Tromey <tromey@redhat.com>
11589 * target.h (struct target_ops) <to_log_command>: Add argument.
11590 (target_log_command): Add argument.
11591 * serial.h (serial_log_command): Add 'self' argument.
11592 * serial.c (serial_log_command): Add 'self' argument.
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11596 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11597 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11599 (target_pid_to_exec_file): Add argument.
11600 * target.c (debug_to_pid_to_exec_file): Add argument.
11601 (update_current_target): Update.
11602 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11603 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11604 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11605 (linux_handle_extended_wait): Update.
11606 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11607 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11608 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11609 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11613 * target.h (struct target_ops) <to_rcmd>: Add argument.
11614 (target_rcmd): Add argument.
11615 * target.c (debug_to_rcmd): Add argument.
11616 (update_current_target, do_monitor_command): Update.
11617 * remote.c (remote_rcmd): Add 'self' argument.
11618 * monitor.c (monitor_rcmd): Add 'self' argument.
11620 2014-02-19 Tom Tromey <tromey@redhat.com>
11622 * windows-nat.c (windows_stop): Add 'self' argument.
11623 * target.h (struct target_ops) <to_stop>: Add argument.
11624 * target.c (target_stop): Add argument.
11625 (debug_to_stop): Add argument.
11626 (update_current_target): Update.
11627 * remote.c (remote_stop): Add 'self' argument.
11628 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11629 (gdbsim_cntrl_c): Update.
11630 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11631 * procfs.c (procfs_stop): Add 'self' argument.
11632 * nto-procfs.c (procfs_stop): Add 'self' argument.
11633 * monitor.c (monitor_stop): Add 'self' argument.
11634 (monitor_open): Update.
11635 * linux-nat.c (linux_nat_stop): Add argument.
11636 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11637 * gnu-nat.c (gnu_stop): Add 'self' argument.
11638 * darwin-nat.c (darwin_stop): Add 'self' argument.
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11642 * target.h (struct target_ops) <to_thread_name>: Add argument.
11643 * target.c (target_thread_name): Add argument.
11644 (update_current_target): Update.
11645 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11647 2014-02-19 Tom Tromey <tromey@redhat.com>
11649 * target.h (struct target_ops) <to_extra_thread_info>: Add
11651 (target_extra_thread_info): Add argument.
11652 * target.c (update_current_target): Update.
11653 * remote.c (remote_threads_extra_info): Add 'self' argument.
11654 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11656 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11657 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11658 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11660 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11662 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11664 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11667 2014-02-19 Tom Tromey <tromey@redhat.com>
11669 * target.h (struct target_ops) <to_program_signals>: Add argument.
11670 * target.c (target_program_signals): Add argument.
11671 * remote.c (remote_program_signals): Add 'self' argument.
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11675 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11676 * target.c (target_pass_signals): Add argument.
11677 * remote.c (remote_pass_signals): Add 'self' argument.
11678 (remote_start_remote): Update.
11679 * procfs.c (procfs_pass_signals): Add 'self' argument.
11680 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11681 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11682 (linux_nat_create_inferior, linux_nat_attach): Update.
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11686 * windows-nat.c (windows_can_run): Add 'self' argument.
11687 * target.h (struct target_ops) <to_can_run>: Add argument.
11688 (target_can_run): Add argument.
11689 * target.c (debug_to_can_run): Add argument.
11690 (update_current_target): Update.
11691 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11692 * inf-child.c (inf_child_can_run): Add 'self' argument.
11693 * go32-nat.c (go32_can_run): Add 'self' argument.
11695 2014-02-19 Tom Tromey <tromey@redhat.com>
11697 * target.h (struct target_ops) <to_has_exited>: Add argument.
11698 (target_has_exited): Add argument.
11699 * target.c (debug_to_has_exited): Add argument.
11700 (update_current_target): Update.
11702 2014-02-19 Tom Tromey <tromey@redhat.com>
11704 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11706 (target_set_syscall_catchpoint): Add argument.
11707 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11709 * target.c (update_current_target): Update.
11711 2014-02-19 Tom Tromey <tromey@redhat.com>
11713 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11715 (target_remove_exec_catchpoint): Add argument.
11716 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11717 (update_current_target): Update.
11718 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11725 (target_insert_exec_catchpoint): Add argument.
11726 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11727 (update_current_target): Update.
11728 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11733 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11735 (target_remove_vfork_catchpoint): Add argument.
11736 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11737 (update_current_target): Update.
11738 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11741 2014-02-19 Tom Tromey <tromey@redhat.com>
11743 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11745 (target_insert_vfork_catchpoint): Add argument.
11746 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11747 (update_current_target): Update.
11748 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11751 2014-02-19 Tom Tromey <tromey@redhat.com>
11753 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11755 (target_remove_fork_catchpoint): Add argument.
11756 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11757 (update_current_target): Update.
11758 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11763 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11765 (target_insert_fork_catchpoint): Add argument.
11766 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11767 (update_current_target): Update.
11768 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11771 2014-02-19 Tom Tromey <tromey@redhat.com>
11773 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11775 (target_post_startup_inferior): Add argument.
11776 * target.c (debug_to_post_startup_inferior): Add argument.
11777 (update_current_target): Update.
11778 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11780 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11782 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11784 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11786 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11788 (super_post_startup_inferior): Likewise.
11789 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11791 (super_post_startup_inferior): Likewise.
11792 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11793 Add 'self' argument.
11794 (super_post_startup_inferior): Likewise.
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11798 * target.h (struct target_ops) <to_load>: Add argument.
11799 * target.c (target_load): Add argument.
11800 (debug_to_load): Add argument.
11801 (update_current_target): Update.
11802 * remote.c (remote_load): Add 'self' argument.
11803 * remote-sim.c (gdbsim_load): Add 'self' argument.
11804 * remote-mips.c (mips_load): Add 'self' argument.
11805 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11806 * monitor.c (monitor_load): Add 'self' argument.
11807 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11811 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11812 (target_terminal_info): Add argument.
11813 * target.c (debug_to_terminal_info): Add argument.
11814 (default_terminal_info): Likewise.
11815 * inflow.c (child_terminal_info): Add 'self' argument.
11816 * inferior.h (child_terminal_info): Add 'self' argument.
11817 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11819 2014-02-19 Tom Tromey <tromey@redhat.com>
11821 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11823 (target_terminal_save_ours): Add argument.
11824 * target.c (debug_to_terminal_save_ours): Add argument.
11825 (update_current_target): Update.
11826 * inflow.c (terminal_save_ours): Add 'self' argument.
11827 * inferior.h (terminal_save_ours): Add 'self' argument.
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11831 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11832 (target_terminal_ours): Add argument.
11833 * target.c (debug_to_terminal_ours): Add argument.
11834 (update_current_target): Update.
11835 * remote.c (remote_terminal_ours): Add 'self' argument.
11836 (remote_close): Update.
11837 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11838 * inflow.c (terminal_ours): Add 'self' argument.
11839 * inferior.h (terminal_ours): Add 'self' argument.
11840 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11842 2014-02-19 Pedro Alves <palves@redhat.com>
11843 Tom Tromey <tromey@redhat.com>
11845 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11847 (target_terminal_ours_for_output): Add argument.
11848 * target.c (debug_to_terminal_ours_for_output): Add argument.
11849 (update_current_target): Update.
11850 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11851 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11852 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11854 2014-02-19 Tom Tromey <tromey@redhat.com>
11856 * target.h (struct target_ops) <to_terminal_inferior>: Add
11858 * target.c (target_terminal_inferior): Add argument.
11859 (update_current_target): Update.
11860 * remote.c (remote_terminal_inferior): Add 'self' argument.
11861 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11862 * inflow.c (terminal_inferior): Add 'self' argument.
11863 * inferior.h (terminal_inferior): Add 'self' argument.
11864 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11865 (go32_terminal_inferior): Add 'self' argument.
11867 2014-02-19 Tom Tromey <tromey@redhat.com>
11869 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11870 (target_terminal_init): Add argument.
11871 * target.c (debug_to_terminal_init): Add argument.
11872 (update_current_target): Update.
11873 * inflow.c (terminal_init_inferior): Add 'self' argument.
11874 * inferior.h (terminal_init_inferior): Add 'self' argument.
11875 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11876 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11878 2014-02-19 Tom Tromey <tromey@redhat.com>
11880 * target.h (struct target_ops)
11881 <to_can_accel_watchpoint_condition>: Add argument.
11882 (target_can_accel_watchpoint_condition): Add argument.
11883 * target.c (debug_to_can_accel_watchpoint_condition): Add
11885 (update_current_target): Update.
11886 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11889 2014-02-19 Tom Tromey <tromey@redhat.com>
11891 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11893 (target_region_ok_for_hw_watchpoint): Add argument.
11894 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11895 (default_region_ok_for_hw_watchpoint): Add argument.
11896 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11897 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11899 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11901 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11903 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11905 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11907 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11909 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11910 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11912 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11913 Add 'self' argument.
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11917 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11919 (target_insert_watchpoint): Add argument.
11920 * target.c (debug_to_insert_watchpoint): Add argument.
11921 (update_current_target): Update.
11922 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11923 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11924 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11925 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11926 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11927 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11929 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11930 (procfs_insert_hw_watchpoint): Add 'self' argument.
11931 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11933 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11935 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11937 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11938 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11940 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11947 (target_remove_watchpoint): Add argument.
11948 * target.c (debug_to_remove_watchpoint): Add argument.
11949 (update_current_target): Update.
11950 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11951 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11952 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11953 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11954 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11955 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11957 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11958 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11960 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11962 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11964 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11965 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11967 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11970 2014-02-19 Tom Tromey <tromey@redhat.com>
11972 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11974 (target_remove_hw_breakpoint): Add argument.
11975 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11976 (update_current_target): Update.
11977 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11978 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11980 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11981 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11983 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11986 2014-02-19 Tom Tromey <tromey@redhat.com>
11988 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11990 (target_insert_hw_breakpoint): Add argument.
11991 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11992 (update_current_target): Update.
11993 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11994 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11996 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11997 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11998 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12000 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12003 2014-02-19 Tom Tromey <tromey@redhat.com>
12005 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12007 (target_can_use_hardware_watchpoint): Add argument.
12008 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12009 (update_current_target): Update.
12010 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12012 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12014 * remote.c (remote_check_watch_resources): Add 'self' argument.
12015 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12016 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12018 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12019 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12021 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12023 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12025 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12027 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12029 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12031 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12032 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12034 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12037 2014-02-19 Tom Tromey <tromey@redhat.com>
12039 * target.h (struct target_ops) <to_post_attach>: Add argument.
12040 (target_post_attach): Add argument.
12041 * target.c (debug_to_post_attach): Add argument.
12042 (update_current_target): Update.
12043 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12044 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12045 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12046 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12047 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12051 * windows-nat.c (windows_close): Add 'self' argument.
12052 * tracepoint.c (tfile_close): Add 'self' argument.
12053 * target.h (struct target_ops) <to_close>: Add argument.
12054 * target.c (target_close): Add argument.
12055 (update_current_target): Update.
12056 * remote.c (remote_close): Add 'self' argument.
12057 * remote-sim.c (gdbsim_close): Add 'self' argument.
12058 * remote-mips.c (mips_close): Add 'self' argument.
12059 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12060 * record-full.c (record_full_close): Add 'self' argument.
12061 * record-btrace.c (record_btrace_close): Add 'self' argument.
12062 * monitor.h (monitor_close): Add 'self' argument.
12063 * monitor.c (monitor_close): Add 'self' argument.
12064 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12065 * linux-nat.c (linux_nat_close): Add argument.
12066 * go32-nat.c (go32_close): Add 'self' argument.
12067 * exec.c (exec_close_1): Add 'self' argument.
12068 * ctf.c (ctf_close): Add 'self' argument.
12069 * corelow.c (core_close): Add 'self' argument.
12070 (core_close_cleanup): Update.
12071 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12072 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12076 * remote.c (remote_load): New function.
12077 (init_remote_ops): Use it.
12079 2014-02-19 Tom Tromey <tromey@redhat.com>
12081 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12083 * common/linux-btrace.h (linux_supports_btrace): Update.
12084 * remote.c (remote_supports_btrace): Add "self" argument.
12085 * target-delegates.c: Rebuild.
12086 * target.c (target_supports_btrace): Remove.
12087 * target.h (struct target_ops) <to_supports_btrace>: Add
12088 target_ops argument.
12089 (target_supports_btrace): New define.
12091 2014-02-19 Tom Tromey <tromey@redhat.com>
12093 * record-full.c (record_full_beneath_to_resume_ops)
12094 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12095 (record_full_beneath_to_wait)
12096 (record_full_beneath_to_store_registers_ops)
12097 (record_full_beneath_to_store_registers)
12098 (record_full_beneath_to_xfer_partial_ops)
12099 (record_full_beneath_to_xfer_partial)
12100 (record_full_beneath_to_insert_breakpoint_ops)
12101 (record_full_beneath_to_insert_breakpoint)
12102 (record_full_beneath_to_remove_breakpoint_ops)
12103 (record_full_beneath_to_remove_breakpoint)
12104 (record_full_beneath_to_stopped_by_watchpoint)
12105 (record_full_beneath_to_stopped_data_address)
12106 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12107 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12108 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12109 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12110 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12111 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12112 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12113 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12114 (record_full_resume, record_full_wait_1)
12115 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12116 (record_full_store_registers, record_full_xfer_partial)
12117 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12118 (record_full_async, record_full_core_xfer_partial): Use target
12120 * target-delegates.c: Rebuild.
12121 * target.c (current_xfer_partial): Remove.
12122 (update_current_target): Do not INHERIT or de_fault
12123 to_insert_breakpoint, to_remove_breakpoint,
12124 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12125 to_is_async_p, to_async. Do not set to_xfer_partial field.
12126 (default_xfer_partial): Simplify.
12127 (current_xfer_partial): Remove.
12128 (target_wait, target_resume): Simplify.
12129 (find_default_can_async_p, find_default_is_async_p): Update.
12130 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12131 to_xfer_partial, to_stopped_by_watchpoint,
12132 to_stopped_data_address.
12133 (target_store_registers): Simplify.
12134 (forward_target_remove_breakpoint)
12135 (forward_target_insert_breakpoint): Remove.
12136 (target_remove_breakpoint, target_insert_breakpoint)
12137 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12138 * target.h (struct target_ops) <to_resume, to_wait,
12139 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12140 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12141 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12143 (forward_target_remove_breakpoint)
12144 (forward_target_insert_breakpoint): Remove.
12145 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12147 (record_btrace_insert_breakpoint): Delegate directly.
12149 2014-02-19 Tom Tromey <tromey@redhat.com>
12152 * target-delegates.c: New file.
12153 * target.c: Include target-delegates.c.
12154 (init_dummy_target): Call install_dummy_methods.
12155 (complete_target_initialization): Call install_delegators.
12156 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12157 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12158 * make-target-delegates: New file.
12160 2014-02-19 Tom Tromey <tromey@redhat.com>
12162 * record.c (find_record_target): Use find_target_at.
12163 * target.c (find_target_at): New function.
12164 * target.h (find_target_at): Declare.
12166 2014-02-19 Tom Tromey <tromey@redhat.com>
12168 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12169 Add 'ops' argument.
12170 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12172 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12173 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12175 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12177 * linux-nat.c (save_sigtrap): Update.
12178 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12179 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12180 (linux_nat_close): Update.
12181 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12183 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12185 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12186 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12187 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12188 (tmp_to_async): Add 'ops' argument.
12189 (record_full_stopped_by_watchpoint, record_full_async)
12190 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12192 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12193 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12194 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12195 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12196 (remote_is_async_p, remote_async): Add 'ops' argument.
12197 (remote_stopped_data_address): Update.
12198 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12199 * target.c (update_current_target)
12200 (find_default_can_async_p, find_default_is_async_p): Update.
12201 (init_dummy_target): Update.
12202 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12203 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12204 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12205 (target_can_async_p, target_is_async_p, target_async)
12206 (target_stopped_by_watchpoint): Update.
12208 2014-02-19 Yao Qi <yao@codesourcery.com>
12211 * gdbarch.sh: Remove startup_gdbarch.
12212 * gdbarch.c: Regenerated.
12213 * gdbarch.h: Likewise.
12215 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12217 * rl78-tdep.c (rl78_g10_register_name): New function.
12218 (rl78_return_value): Add g10 support.
12219 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12222 2014-02-17 Doug Evans <xdje42@gmail.com>
12224 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12225 (SUBDIR_GUILE_SRCS): Ditto.
12226 (scm-gsmob.o): Ditto.
12228 2014-02-17 Yao Qi <yao@codesourcery.com>
12230 * gnu-nat.c (ILL_RPC): Declare defined function.
12232 2014-02-17 Yao Qi <yao@codesourcery.com>
12234 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12235 mach_msg_type_number_t.
12236 (gnu_write_inferior): Likewise.
12238 2014-02-17 Yao Qi <yao@codesourcery.com>
12240 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12242 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12243 (inf_validate_procs, inf_signal): Likewise.
12244 (S_exception_raise_request): Likewise.
12245 (do_mach_notify_dead_name): Likewise.
12246 (steal_exc_port): Likewise.
12247 (gnu_read_inferior): Change 'copy_count''s type to
12248 mach_msg_type_number_t.
12249 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12252 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12254 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12255 flag. Adjust all users; in particular...
12256 (gnu_wait): ..., don't decrement its value in here...
12257 (gnu_create_inferior): ..., and instead set the flag in here,
12258 around the startup_inferior call, and call that one with
12259 START_INFERIOR_TRAPS_EXPECTED.
12261 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12262 (ILL_RPC): ... new macro.
12263 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12264 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12265 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12266 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12267 functions with ILL_RPC macro.
12268 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12269 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12270 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12271 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12272 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12273 (S_proc_getlogin_reply, S_proc_getsid_reply)
12274 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12275 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12276 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12277 (S_proc_getnports_reply, S_proc_is_important_reply)
12278 (S_proc_get_code_reply): New stub functions, generated with
12281 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12282 collected the type check structures.
12284 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12286 2014-02-14 Doug Evans <dje@google.com>
12288 * target.c (target_write_partial): Fix result type.
12290 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12292 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12293 the proper offsets to access fpregset_t.
12295 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12297 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12298 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12299 * h8300-tdep.c (setmachinelist): Remove global.
12300 * hppa-tdep.c (hppa_sigtramp): Remove global.
12301 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12302 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12303 * ravenscar-thread.c (update_target_observer): Remove global.
12304 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12306 2014-02-12 Tom Tromey <tromey@redhat.com>
12308 * common/rsp-low.c: Update comments.
12309 * common/rsp-low.h: Update comments.
12311 2014-02-12 Tom Tromey <tromey@redhat.com>
12313 * common/rsp-low.c (convert_ascii_to_int): Remove.
12314 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12316 2014-02-12 Tom Tromey <tromey@redhat.com>
12318 * common/rsp-low.h (unhexify): Don't declare.
12319 * common/rsp-low.c (unhexify): Remove.
12321 2014-02-12 Tom Tromey <tromey@redhat.com>
12323 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12324 * common/rsp-low.c (convert_int_to_ascii): Remove.
12326 2014-02-12 Tom Tromey <tromey@redhat.com>
12328 * common/rsp-low.h (hexify): Don't declare.
12329 * common/rsp-low.c (hexify): Remove.
12331 2014-02-12 Tom Tromey <tromey@redhat.com>
12333 * common/rsp-low.c (hexify): Never take strlen of argument.
12335 2014-02-12 Tom Tromey <tromey@redhat.com>
12337 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12338 * remote.c (extended_remote_run, remote_rcmd)
12339 (remote_download_trace_state_variable, remote_save_trace_data)
12340 (remote_set_trace_notes): Update.
12341 * tracepoint.c (encode_source_string, tfile_write_status)
12342 (tfile_write_uploaded_tsv): Update.
12344 2014-02-12 Tom Tromey <tromey@redhat.com>
12346 * tracepoint.c: Include rsp-low.h.
12347 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12348 * remote.c: Include rsp-low.h.
12349 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12350 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12351 (remote_unescape_input): Move to common/rsp-low.c.
12352 * common/rsp-low.h: New file.
12353 * common/rsp-low.c: New file.
12354 * Makefile.in (SFILES): Add common/rsp-low.c.
12355 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12356 (COMMON_OBS): Add rsp-low.o.
12357 (rsp-low.o): New target.
12359 2014-02-12 Tom Tromey <tromey@redhat.com>
12361 * utils.h: Include print-utils.h.
12362 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12363 (int_string, core_addr_to_string, core_addr_to_string_nz)
12364 (hex_string, hex_string_custom): Don't declare.
12365 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12366 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12367 (hex_string_custom, int_string, core_addr_to_string)
12368 (core_addr_to_string_nz, host_address_to_string): Move to
12369 common/print-utils.c.
12370 * common/print-utils.h: New file.
12371 * common/print-utils.c: New file
12372 * Makefile.in (SFILES): Add common/print-utils.c.
12373 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12374 (COMMON_OBS): Add print-utils.o.
12375 (print-utils.o): New target.
12377 2014-02-12 Tom Tromey <tromey@redhat.com>
12379 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12381 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12383 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12385 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12387 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12388 if a PT_IO ptrace request returns sucessfully but indicates that 0
12389 bytes were transferred.
12391 2014-02-12 Pedro Alves <palves@redhat.com>
12392 Kevin Buettner <kevinb@redhat.com>
12394 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12395 TYPE_INSTANCE_FLAG_CODE_SPACE.
12397 2014-02-12 Pedro Alves <palves@redhat.com>
12399 * h8300-tdep.c (pseudo_from_raw_register)
12400 (raw_from_pseudo_register): New functions.
12401 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12404 2014-02-12 Pedro Alves <palves@redhat.com>
12406 * h8300-tdep.c (h8300_register_sim_regno): New function.
12407 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12408 gdbarch_register_sim_regno hook.
12410 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12412 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12414 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12416 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12418 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12420 * obsd-tdep.h (obsd_init_abi): New prototype.
12421 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12422 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12423 (obsd_init_abi): New functions.
12424 * i386obsd-tdep.c: Include "obsd-tdep.h".
12425 (i386obsd_init_abi): Call obsd_init_abi.
12426 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12427 (amd64obsd_init_abi): Call obsd_init_abi.
12428 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12429 obsd-tdep.c to gdb_target_obs.
12431 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12433 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12434 double float arguments to 16-byte in the argument slots.
12436 2014-02-11 Doug Evans <xdje42@gmail.com>
12438 * configure.ac: Don't crash if pkg-config is not found and guile
12439 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12441 * configure: Regenerate.
12443 2014-02-11 Yao Qi <yao@codesourcery.com>
12445 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12446 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12447 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12448 * gnu-nat.c (gnu_xfer_memory): Likewise.
12449 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12450 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12451 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12452 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12454 2014-02-11 Yao Qi <yao@codesourcery.com>
12456 * target.h (enum target_xfer_error): Rename to ...
12457 (enum target_xfer_status): ... it. New. All users updated.
12458 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12460 (TARGET_XFER_STATUS_ERROR_P): New macro.
12461 (target_xfer_error_to_string): Remove declaration.
12462 (target_xfer_status_to_string): Declare.
12463 (target_xfer_partial_ftype): Adjust it.
12464 (struct target_ops) <to_xfer_partial>: Return
12465 target_xfer_status. Add argument xfered_len. Update
12467 * target.c (target_xfer_error_to_string): Rename to ...
12468 (target_xfer_status_to_string): ... it. New. All callers
12470 (target_read_live_memory): Likewise. Call target_xfer_partial
12471 instead of target_read.
12472 (memory_xfer_live_readonly_partial): Return
12473 target_xfer_status. Add argument xfered_len.
12474 (raw_memory_xfer_partial): Likewise.
12475 (memory_xfer_partial_1): Likewise.
12476 (memory_xfer_partial): Likewise.
12477 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12478 properly. Update debug message.
12479 (default_xfer_partial, current_xfer_partial): Likewise.
12480 (target_write_partial): Likewise.
12481 (target_read_partial): Likewise. All callers updated.
12482 (read_whatever_is_readable): Likewise.
12483 (target_write_with_progress): Likewise.
12484 (target_read_alloc_1): Likewise.
12486 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12487 * auxv.c (procfs_xfer_auxv): Likewise.
12488 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12489 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12490 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12491 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12492 * corefile.c (read_memory): Adjust.
12493 * corelow.c (core_xfer_partial): Likewise.
12494 * ctf.c (ctf_xfer_partial): Likewise.
12495 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12497 (darwin_xfer_partial): Likewise.
12498 * exec.c (section_table_xfer_memory_partial): Likewise. All
12500 (exec_xfer_partial): Likewise.
12501 * exec.h (section_table_xfer_memory_partial): Update
12503 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12505 (gnu_xfer_partial): Likewise.
12506 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12507 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12508 (ia64_hpux_xfer_solib_got): Likewise.
12509 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12510 type of 'partial_len' to ULONGEST.
12511 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12512 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12513 (linux_nat_xfer_partial): Likewise.
12514 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12515 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12516 * monitor.c (monitor_xfer_memory): Likewise.
12517 (monitor_xfer_partial): Likewise.
12518 * procfs.c (procfs_xfer_partial): Likewise.
12519 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12520 * record-full.c (record_full_xfer_partial): Likewise.
12521 (record_full_core_xfer_partial): Likewise.
12522 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12523 (gdbsim_xfer_partial): Likewise.
12524 * remote.c (remote_write_bytes_aux): Likewise. All callers
12526 (remote_write_bytes, remote_read_bytes): Likewise. All
12528 (remote_flash_erase): Likewise. All callers updated.
12529 (remote_write_qxfer): Likewise. All callers updated.
12530 (remote_read_qxfer): Likewise. All callers updated.
12531 (remote_xfer_partial): Likewise.
12532 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12533 (rs6000_xfer_shared_libraries): Likewise.
12534 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12535 (sol_thread_xfer_partial): Likewise.
12536 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12537 (sparc_xfer_partial): Likewise.
12538 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12540 (spu_xfer_partial): Likewise.
12541 * spu-multiarch.c (spu_xfer_partial): Likewise.
12542 * tracepoint.c (tfile_xfer_partial): Likewise.
12543 * windows-nat.c (windows_xfer_memory): Likewise.
12544 (windows_xfer_shared_libraries): Likewise.
12545 (windows_xfer_partial): Likewise.
12546 * valprint.c: Replace 'target_xfer_error' with
12547 'target_xfer_status' in comments.
12549 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12551 Checked in by Joel Brobecker <brobecker@adacore.com>.
12552 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12554 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12556 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12557 function parameters.
12559 2014-02-10 Will Newton <will.newton@linaro.org>
12561 * elfread.c (elf_rel_plt_read): Look for a .got section if
12562 looking up .got.plt fails.
12563 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12564 on address passed to elf_gnu_ifunc_record_cache.
12565 (elf_gnu_ifunc_resolve_addr): Likewise.
12566 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12568 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12570 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12571 (X_RETTURN): New macro.
12572 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12574 * sparc64-tdep.c (sparc64_init_abi): Hook
12575 sparc_in_function_epilogue_p.
12577 2014-02-10 Gary Benson <gbenson@redhat.com>
12579 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12580 Rename name_matcher to symbol_matcher.
12582 2014-02-10 Gary Benson <gbenson@redhat.com>
12584 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12585 Use expand_symtabs_file_matcher_ftype and
12586 expand_symtabs_symbol_matcher_ftype.
12588 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12590 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12591 (struct ada_symbol_cache): New.
12592 (ada_free_symbol_cache): Forward declare.
12593 (struct ada_pspace_data): New.
12594 (ada_pspace_data_handle): New static global.
12595 (get_ada_pspace_data, ada_pspace_data_cleanup)
12596 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12597 (cache_space, cache): Delete, now folded inside struct
12599 (ada_get_symbol_cache): New function.
12600 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12602 (_initialize_ada_language): Remove initialization of cache_space.
12603 Move call to observer_attach_inferior_exit up, grouping it
12604 with the other observer registrations inside this function.
12605 Rename command to be more general. Add call to
12606 register_program_space_data_with_cleanup.
12608 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12610 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12611 ada_new_objfile_observer.
12612 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12613 (_initialize_tasks): Update uses of ada_new_objfile_observer
12614 and ada_tasks_normal_stop_observer.
12616 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12618 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12619 returned by the 'Length attribute to integer.
12621 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12623 * ada-lang.c (_initialize_ada_language): Initialize
12624 cache_space obstack.
12626 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12628 * ada-lang.c (HASH_SIZE): New macro.
12629 (struct cache_entry): New type.
12630 (cache_space, cache): New static globals.
12631 (ada_clear_symbol_cache, find_entry): New functions.
12632 (lookup_cached_symbol, cache_symbol): Implement.
12633 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12634 (_initialize_ada_language): Attach ada_new_objfile_observer
12635 and ada_free_objfile_observer.
12637 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12639 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12640 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12641 struct block * parameter.
12642 (ada_lookup_symbol_list_worker): Constify local variable "block".
12643 Remove cast which is no longer necessary.
12645 2014-02-10 Doug Evans <xdje42@gmail.com>
12647 Add Guile as an extension language.
12648 * NEWS: Mention Guile scripting.
12649 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12650 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12651 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12652 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12653 (CLIBS): Add GUILE_LIBS.
12654 (install-guile): New rule.
12655 (guile.o): New rule.
12656 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12657 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12658 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12659 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12660 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12661 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12662 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12663 * configure.ac: New option --with-guile.
12664 * configure: Regenerate.
12665 * config.in: Regenerate.
12666 * auto-load.c: Remove #include "python/python.h". Add #include
12667 "gdb/section-scripts.h".
12668 (source_section_scripts): Handle Guile scripts.
12669 (_initialize_auto_load): Add name of Guile objfile script to
12670 scripts-directory help text.
12671 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12672 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12673 (struct breakpoint): New member scm_bp_object.
12674 * defs.h (enum command_control_type): New value guile_control.
12675 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12677 (show_user): Update comment.
12678 (_initialize_cli_cmds): Update help text for "show user". Update help
12679 text for max-user-call-depth.
12680 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12682 (multi_line_command_p): Add guile_control.
12683 (print_command_lines): Handle guile_control.
12684 (execute_control_command, recurse_read_control_structure): Ditto.
12685 (process_next_line): Recognize "guile" commands.
12686 * disasm.c (gdb_disassemble_info): Make non-static.
12687 * disasm.h: #include "dis-asm.h".
12688 (struct gdbarch): Add forward decl.
12689 (gdb_disassemble_info): Declare.
12690 * extension.c: #include "guile/guile.h".
12691 (extension_languages): Add guile.
12692 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12693 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12694 * gdbtypes.c (get_unsigned_type_max): New function.
12695 (get_signed_type_minmax): New function.
12696 * gdbtypes.h (get_unsigned_type_max): Declare.
12697 (get_signed_type_minmax): Declare.
12698 * guile/README: New file.
12699 * guile/guile-internal.h: New file.
12700 * guile/guile.c: New file.
12701 * guile/guile.h: New file.
12702 * guile/scm-arch.c: New file.
12703 * guile/scm-auto-load.c: New file.
12704 * guile/scm-block.c: New file.
12705 * guile/scm-breakpoint.c: New file.
12706 * guile/scm-disasm.c: New file.
12707 * guile/scm-exception.c: New file.
12708 * guile/scm-frame.c: New file.
12709 * guile/scm-gsmob.c: New file.
12710 * guile/scm-iterator.c: New file.
12711 * guile/scm-lazy-string.c: New file.
12712 * guile/scm-math.c: New file.
12713 * guile/scm-objfile.c: New file.
12714 * guile/scm-ports.c: New file.
12715 * guile/scm-pretty-print.c: New file.
12716 * guile/scm-safe-call.c: New file.
12717 * guile/scm-string.c: New file.
12718 * guile/scm-symbol.c: New file.
12719 * guile/scm-symtab.c: New file.
12720 * guile/scm-type.c: New file.
12721 * guile/scm-utils.c: New file.
12722 * guile/scm-value.c: New file.
12723 * guile/lib/gdb.scm: New file.
12724 * guile/lib/gdb/boot.scm: New file.
12725 * guile/lib/gdb/experimental.scm: New file.
12726 * guile/lib/gdb/init.scm: New file.
12727 * guile/lib/gdb/iterator.scm: New file.
12728 * guile/lib/gdb/printing.scm: New file.
12729 * guile/lib/gdb/types.scm: New file.
12730 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12731 (VPATH): Add $(GUILE_SRCDIR).
12732 (GUILE_DIR): New variable.
12733 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12734 (all): Add stamp-guile dependency.
12735 (stamp-guile): New rule.
12736 (clean-guile, install-guile, uninstall-guile): New rules.
12737 (install-only): Add install-guile dependency.
12738 (uninstall): Add uninstall-guile dependency.
12739 (clean): Add clean-guile dependency.
12741 2014-02-09 Doug Evans <xdje42@gmail.com>
12743 Revert this patch (which I approved, mea culpa).
12745 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12747 * Makefile.in (all-lib): Remove.
12748 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12750 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12752 Fix Python stack corruption.
12753 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12756 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12758 * Makefile.in (all-lib): Remove.
12759 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12761 2014-02-07 Doug Evans <dje@google.com>
12763 * extension-priv.h (extension_language_script_ops): Add comment.
12764 (extension_language_ops): Add comment.
12765 (active_ext_lang_state): Fix typo in comment.
12767 2014-02-07 Pedro Alves <palves@redhat.com>
12769 PR breakpoints/16292
12770 * infrun.c (handle_signal_stop) <signal arrives while stepping
12771 over a breakpoint>: Switch back to the stepping thread.
12773 2014-02-07 Yao Qi <yao@codesourcery.com>
12775 * target.c (target_xfer_partial): Return zero if LEN is zero.
12777 2014-02-07 Yao Qi <yao@codesourcery.com>
12779 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12780 (ld_so_xfer_auxv): Likewise.
12781 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12782 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12783 * corelow.c (core_xfer_partial): Likewise.
12784 * ctf.c (ctf_xfer_partial): Likewise.
12785 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12786 (darwin_xfer_partial): Likewise.
12787 * exec.c (exec_xfer_partial): Likewise.
12788 * gnu-nat.c (gnu_xfer_partial): Likewise.
12789 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12790 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12791 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12792 * linux-nat.c (linux_xfer_siginfo): Likewise.
12793 (linux_proc_xfer_spu): Likewise.
12794 * procfs.c (procfs_xfer_partial): Likewise.
12795 * record-full.c (record_full_xfer_partial): Likewise.
12796 (record_full_core_xfer_partial): Likewise.
12797 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12798 * remote.c (remote_write_qxfer): Likewise.
12799 (remote_write_qxfer, remote_read_qxfer): Likewise.
12800 (remote_xfer_partial): Likewise.
12801 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12802 (rs6000_xfer_shared_libraries): Likewise.
12803 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12804 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12805 (spu_xfer_partial): Likewise.
12806 * target.c (memory_xfer_partial_1): Likewise.
12807 * tracepoint.c (tfile_xfer_partial): Likewise.
12808 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12809 (windows_xfer_partial): Likewise.
12811 2014-02-07 Yao Qi <yao@codesourcery.com>
12813 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12815 (core_xfer_shared_libraries_aix): Likewise.
12816 * gdbarch.c, gdbarch.h: Regenerated.
12817 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12818 ULONGEST. Change 'len_avail' type to ULONGEST.
12819 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12820 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12822 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12824 2014-02-07 Yao Qi <yao@codesourcery.com>
12826 * corefile.c (memory_error): Get 'exception' from ERR and pass
12827 'exception' to throw_error.
12829 2014-02-06 Doug Evans <xdje42@gmail.com>
12831 * configure.ac (libpython checking): Remove all but python.o from
12832 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12833 * configure: Regenerate.
12835 * Makefile.in (SFILES): Add extension.c.
12836 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12837 (COMMON_OBS): Add extension.o.
12838 * extension.h: New file.
12839 * extension-priv.h: New file.
12840 * extension.c: New file.
12842 * python/python-internal.h: #include "extension.h".
12843 (gdbpy_auto_load_enabled): Declare.
12844 (gdbpy_apply_val_pretty_printer): Declare.
12845 (gdbpy_apply_frame_filter): Declare.
12846 (gdbpy_preserve_values): Declare.
12847 (gdbpy_breakpoint_cond_says_stop): Declare.
12848 (gdbpy_breakpoint_has_cond): Declare.
12849 (void source_python_script_for_objfile): Delete.
12850 * python/python.c: #include "extension-priv.h".
12851 Delete inclusion of "observer.h".
12852 (extension_language_python): Moved here and renamed from
12853 script_language_python in py-auto-load.c.
12854 Redefined to be of type extension_language_defn.
12855 (python_extension_script_ops): New global.
12856 (python_extension_ops): New global.
12857 (struct python_env): New member previous_active.
12858 (restore_python_env): Call restore_active_ext_lang.
12859 (ensure_python_env): Call set_active_ext_lang.
12860 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12862 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12864 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12866 (gdbpy_eval_from_control_command): Renamed from
12867 eval_python_from_control_command, made static. New arg extlang.
12868 (gdbpy_source_script) Renamed from source_python_script, made static.
12870 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12871 result to int. New arg extlang.
12872 (gdbpy_source_objfile_script): Renamed from
12873 source_python_script_for_objfile, made static. New arg extlang.
12874 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12875 static. New args extlang, extlang_printers. Change result type to
12877 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12878 static. New arg extlang. Rename arg printers to extlang_printers
12879 and change type to ext_lang_type_printers *.
12880 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12881 static. Replace argument arg with extlang, extlang_printers.
12882 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12883 (!HAVE_PYTHON, source_python_script): Delete.
12884 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12885 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12886 (!HAVE_PYTHON, start_type_printers): Delete.
12887 (!HAVE_PYTHON, apply_type_printers): Delete.
12888 (!HAVE_PYTHON, free_type_printers): Delete.
12889 (_initialize_python): Delete call to observer_attach_before_prompt.
12890 (finalize_python): Set/restore active extension language.
12891 (gdbpy_finish_initialization) Renamed from
12892 finish_python_initialization, made static. New arg extlang.
12893 (gdbpy_initialized): New function.
12894 * python/python.h: #include "extension.h". Delete #include
12895 "value.h", "mi/mi-cmds.h".
12896 (extension_language_python): Declare.
12897 (GDBPY_AUTO_FILE_NAME): Delete.
12898 (enum py_bt_status): Moved to extension.h and renamed to
12899 ext_lang_bt_status.
12900 (enum frame_filter_flags): Moved to extension.h.
12901 (enum py_frame_args): Moved to extension.h and renamed to
12902 ext_lang_frame_args.
12903 (finish_python_initialization): Delete.
12904 (eval_python_from_control_command): Delete.
12905 (source_python_script): Delete.
12906 (apply_val_pretty_printer): Delete.
12907 (apply_frame_filter): Delete.
12908 (preserve_python_values): Delete.
12909 (gdbpy_script_language_defn): Delete.
12910 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12911 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12913 * auto-load.c: #include "extension.h".
12914 (GDB_AUTO_FILE_NAME): Delete.
12915 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12916 (script_language_gdb): Delete, moved to extension.c and renamed to
12917 extension_language_gdb.
12918 (source_gdb_script_for_objfile): Delete.
12919 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12920 (loaded_script): Change type of language member to
12921 struct extension_language_defn *.
12922 (init_loaded_scripts_info): Initialize
12923 unsupported_script_warning_printed.
12924 (maybe_add_script): Make static. Change type of language arg to
12925 struct extension_language_defn *.
12926 (clear_section_scripts): Reset unsupported_script_warning_printed.
12927 (auto_load_objfile_script_1): Rewrite to use extension language API.
12928 (auto_load_objfile_script): Make public. Remove support-compiled-in
12929 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12930 (source_section_scripts): Rewrite to use extension language API.
12931 (load_auto_scripts_for_objfile): Rewrite to use
12932 auto_load_scripts_for_objfile.
12933 (collect_matching_scripts_data): Change type of language member to
12934 struct extension_language_defn *.
12935 (auto_load_info_scripts): Change type of language arg to
12936 struct extension_language_defn *.
12937 (unsupported_script_warning_print): New function.
12938 (script_not_found_warning_print): Make static.
12939 (_initialize_auto_load): Rewrite construction of scripts-directory
12941 * auto-load.h (struct objfile): Add forward decl.
12942 (struct script_language): Delete.
12943 (struct auto_load_pspace_info): Add forward decl.
12944 (struct extension_language_defn): Add forward decl.
12945 (maybe_add_script): Delete.
12946 (auto_load_objfile_script): Declare.
12947 (script_not_found_warning_print): Delete.
12948 (auto_load_info_scripts): Update prototype.
12949 (auto_load_gdb_scripts_enabled): Declare.
12950 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12951 auto_load_python_scripts_enabled and made public.
12952 (script_language_python): Delete, moved to python.c.
12953 (gdbpy_script_language_defn): Delete.
12954 (info_auto_load_python_scripts): Update to use
12955 extension_language_python.
12957 * breakpoint.c (condition_command): Replace call to
12958 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12959 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12960 with call to breakpoint_ext_lang_cond_says_stop.
12961 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12962 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12963 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12964 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12966 (local_setattro): Print name of extension language with existing
12969 * valprint.c (val_print, value_print): Update to call
12970 apply_ext_lang_val_pretty_printer.
12971 * cp-valprint.c (cp_print_value): Update call to
12972 apply_ext_lang_val_pretty_printer.
12973 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12974 (gdbpy_apply_val_pretty_printer): Renamed from
12975 apply_val_pretty_printer. New arg extlang.
12976 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12978 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12979 extension language API.
12980 * cli/cli-script.c (execute_control_command): Update to call
12981 eval_ext_lang_from_control_command.
12983 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12984 enum ext_lang_bt_status values. Update call to
12985 apply_ext_lang_frame_filter.
12986 (mi_cmd_stack_list_locals): Ditto.
12987 (mi_cmd_stack_list_args): Ditto.
12988 (mi_cmd_stack_list_variables): Ditto.
12989 * mi/mi-main.c: Delete #include "python/python-internal.h".
12990 Add #include "extension.h".
12991 (mi_cmd_list_features): Replace reference to python internal variable
12992 gdb_python_initialized with call to ext_lang_initialized_p.
12994 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12995 Update to use enum ext_lang_frame_args. Update to call
12996 apply_ext_lang_frame_filter.
12997 * python/py-framefilter.c (extract_sym): Update to use enum
12998 ext_lang_bt_status.
12999 (extract_value, py_print_type, py_print_value): Ditto.
13000 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13001 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13002 (py_print_frame): Ditto.
13003 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13004 New arg extlang. Update to use enum ext_lang_bt_status.
13006 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13007 finish_python_initialization. Replace with call to
13008 finish_ext_lang_initialization.
13010 * typeprint.c (do_free_global_table): Update to call
13011 free_ext_lang_type_printers.
13012 (create_global_typedef_table): Update to call
13013 start_ext_lang_type_printers.
13014 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13015 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13016 (type_print_options): Change type of global_printers from "void *"
13017 to "struct ext_lang_type_printers *".
13019 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13020 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13021 (gdbpy_preserve_values): Renamed from preserve_python_values.
13023 (!HAVE_PYTHON, preserve_python_values): Delete.
13025 * utils.c (quit_flag): Delete, moved to extension.c.
13026 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13029 * eval.c: Delete #include "python/python.h".
13030 * main.c: Delete #include "python/python.h".
13032 * defs.h: Update comment.
13034 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13038 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13040 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13043 2014-02-05 Yao Qi <yao@codesourcery.com>
13045 * remote.c (remote_pass_signals): Remove local 'buf' and use
13047 (remote_program_signals): Likewise.
13049 2014-02-05 Yao Qi <yao@codesourcery.com>
13051 * ctf.c: Include "inferior.h" and "gdbthread.h".
13052 (CTF_PID): A new macro.
13053 (ctf_open): Call inferior_appeared and add_thread_silent.
13054 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13055 (ctf_thread_alive): New function.
13056 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13058 2014-02-05 Yao Qi <yao@codesourcery.com>
13062 2013-05-24 Yao Qi <yao@codesourcery.com>
13064 * tracepoint.c (TFILE_PID): Remove.
13065 (tfile_open): Don't add thread and inferior.
13066 (tfile_close): Don't set 'inferior_ptid'. Don't call
13067 exit_inferior_silent.
13068 (tfile_thread_alive): Remove.
13069 (init_tfile_ops): Don't set field 'to_thread_alive' of
13072 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13074 * remote.c (remote_start_remote): Call remote_check_symbols even
13075 if only symbol-file (not file) has been given.
13077 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13079 * gdbarch.sh (skip_entrypoint): New callback.
13080 * gdbarch.c, gdbarch.h: Regenerate.
13081 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13082 * infrun.c (fill_in_stop_func): Likewise.
13083 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13084 (ppc_elfv2_elf_make_msymbol_special): New function.
13085 (ppc_elfv2_skip_entrypoint): Likewise.
13086 (ppc_linux_init_abi): Install them for ELFv2.
13088 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13090 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13091 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13092 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13093 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13094 structures returned in GPRs.
13096 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13098 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13099 offset to the stack parameter list for the ELFv2 ABI.
13101 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13103 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13104 set_gdbarch_convert_from_func_ptr_addr and
13105 set_gdbarch_elf_make_msymbol_special for ELFv1.
13106 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13107 function descriptors on ELFv1.
13108 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13109 set up r12 at function entry.
13111 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13113 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13114 (struct gdbarch_tdep): New member elf_abi.
13116 * rs6000-tdep.c: Include "elf/ppc64.h".
13117 (rs6000_gdbarch_init): Detect ELF ABI version.
13119 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13121 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13122 within a register pair holding a DFP 128-bit value on little-endian.
13123 (ppc64_sysv_abi_return_value_base): Likewise.
13124 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13125 (dfp_pseudo_register_write): Likewise.
13127 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13129 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13130 offset on little-endian when passing _Decimal32.
13131 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13133 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13135 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13136 of the overlapped FP register within the VSX register on little-
13138 (efpr_pseudo_register_write): Likewise.
13140 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13142 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13143 offset on little-endian when passing small structures.
13145 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13147 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13148 (struct ppc64_sysv_argpos): New data structure.
13149 (ppc64_sysv_abi_push_float): Remove.
13150 (ppc64_sysv_abi_push_val): New function.
13151 (ppc64_sysv_abi_push_integer): Likewise.
13152 (ppc64_sysv_abi_push_freg): Likewise.
13153 (ppc64_sysv_abi_push_vreg): Likewise.
13154 (ppc64_sysv_abi_push_param): Likewise.
13155 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13156 (ppc64_sysv_abi_return_value_base): New function.
13157 (ppc64_sysv_abi_return_value): Refactor to use it.
13159 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13161 * NEWS: Document new target powerpc64le-*-linux*.
13163 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13165 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13166 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13168 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13169 register set used in ELF core dumps. Add floating-point register set.
13171 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13173 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13174 dwarf2_to_gdb[] table using symbolic constants. Adjust
13175 penultimate entry from number representing the PC register
13176 to symbolic constant representing the MDR register. Add
13177 constant for the PC register to the end of the table.
13179 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13181 * bsd-kvm.c: Include <sys/param.h>
13183 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13185 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13187 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13189 * ada-lang.h (clear_ada_sym_cache): Delete.
13191 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13193 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13195 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13197 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13198 the sigreturn register save area only if the syscall is
13201 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13203 * valops.c (value_slice): Minor reformatting.
13205 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13207 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13209 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13211 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13212 New static globals.
13213 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13214 (ada_ignore_descriptive_types_p): New static global.
13215 (find_parallel_type_by_descriptive_type): Return immediately
13216 if ada_ignore_descriptive_types_p is set.
13217 (_initialize_ada_language): Register new commands "maintenance
13218 set ada", "maintenance show ada", "maintenance set ada
13219 ignore-descriptive-types" and "maintenance show ada
13220 ignore-descriptive-types".
13221 * NEWS: Add entry for new "maint ada set/show
13222 ignore-descriptive-types" commands.
13224 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13226 * record-btrace.c (record_btrace_close): Call btrace_teardown
13229 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13231 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13234 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13236 * ada-typeprint (type_is_full_subrange_of_target_type):
13238 (print_range): Add parameter bounds_prefered_p. If not set,
13239 try printing range types using the name of their base type.
13240 (print_range_type): Add parameter bounds_prefered_p.
13241 Use it in call to print_range.
13242 (print_array_type, ada_print_type): Update calls to print_range
13243 and print_range_type.
13245 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13247 * ada-typeprint.c (print_array_type, print_choices, print_range)
13248 (print_range_bound, print_dynamic_range_bound, print_range_type):
13249 Remove declaration.
13251 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13253 * ada-typeprint.c (print_range): Add missing empty line
13254 after local declaration.
13256 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13258 * ada-valprint.c (print_optional_low_bound): Get index_type's
13259 target type for as long as it is a TYPE_CODE_RANGE.
13261 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13263 * procfs.c (procfs_make_note_section): Remove assertion and
13264 associated comment.
13266 2014-01-24 Yao Qi <yao@codesourcery.com>
13268 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13269 * corelow.c (get_core_siginfo): Likewise.
13271 2014-01-24 Yao Qi <yao@codesourcery.com>
13273 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13274 ULONGEST. Don't check 'len' is negative.
13275 (remote_write_bytes): Change type of 'len' to ULONGEST.
13277 2014-01-23 Tom Tromey <tromey@redhat.com>
13280 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13281 Handle exception from frame.block.
13282 (FrameVars.fetch_frame_locals): Likewise.
13284 2014-01-23 Tom Tromey <tromey@redhat.com>
13287 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13288 on a NULL pointer. Move "goto error" to correct place.
13290 2014-01-23 Tom Tromey <tromey@redhat.com>
13293 * python/py-framefilter.c (apply_frame_filter): Call
13294 ensure_python_env after computing gdbarch.
13296 2014-01-23 Yao Qi <yao@codesourcery.com>
13298 * target.c (raw_memory_xfer_partial): Change argument type
13299 from void * to gdb_byte *.
13300 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13302 2014-01-22 Doug Evans <dje@google.com>
13304 New gdbserver option --debug-format=timestamp.
13305 * NEWS: Mention it.
13307 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13309 * syscalls/s390x-linux.xml: New file.
13310 * syscalls/s390-linux.xml: New file.
13311 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13312 (XML_SYSCALL_FILENAME_S390X): Likewise.
13313 (op_svc): New enum value for SVC opcode.
13314 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13315 (s390_linux_get_syscall_number): New function.
13316 (s390_gdbarch_init): Register '*get_syscall_number' and the
13317 syscall xml file name.
13318 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13319 "s390-linux.xml" and "s390x-linux.xml".
13320 * NEWS: Announce new feature.
13322 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13324 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13326 2014-01-22 Pedro Alves <palves@redhat.com>
13328 * xtensa-config.c: Include defs.h.
13330 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13332 * common/common-utils.h: Add "ARI:" comment beside __func__
13335 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13337 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13338 documentation a bit.
13340 2014-01-21 Roland McGrath <mcgrathr@google.com>
13342 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13343 * configure: Regenerate.
13344 * aclocal.m4: Regenerate.
13345 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13346 New substituted variables.
13347 (install-strip): New target.
13348 (INSTALL_SCRIPT): New substituted variable.
13349 (FLAGS_TO_PASS): Add it.
13350 (install-only): Use $(INSTALL_SCRIPT) rather than
13351 $(INSTALL_PROGRAM) for gcore.
13353 2014-01-20 Tom Tromey <tromey@redhat.com>
13355 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13358 2014-01-20 Tom Tromey <tromey@redhat.com>
13360 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13361 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13362 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13363 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13364 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13365 (struct cmd_list_element) <flags>: Remove.
13366 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13367 doc_allocated>: New fields.
13368 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13370 * maint.c (maintenance_do_deprecate): Update.
13371 * top.c (execute_command): Update.
13373 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13375 * xtensa-linux-nat.c: Include asm/ptrace.h.
13377 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13379 * Makefile.in (SFILES): Add d-support.c.
13380 (COMMON_OBS): Add d-support.o.
13381 * d-lang.h (d_parse_symbol): Add comment, now defined in
13383 * d-lang.c (parse_call_convention)
13384 (parse_attributes, parse_function_types)
13385 (parse_function_args, parse_type, parse_identifier)
13386 (call_convention_p, d_parse_symbol): Move functions to ...
13387 * d-support.c: ... New file.
13389 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13391 * d-lang.h (d_parse_symbol): Add declaration.
13392 * d-lang.c (extract_identifiers)
13393 (extract_type_info): Remove functions.
13394 (parse_call_convention, parse_attributes)
13395 (parse_function_types, parse_function_args)
13396 (parse_type, parse_identifier, call_convention_p)
13397 (d_parse_symbol): New functions.
13398 (d_demangle): Use d_parse_symbol to demangle D symbols.
13400 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13402 * d-lang.h (struct builtin_d_type): New data type.
13403 (builtin_d_type): Add declaration.
13404 * d-lang.c (d_language_arch_info, build_d_types)
13405 (builtin_d_type): New functions.
13406 (enum d_primitive_types): New data type.
13407 (d_language_defn): Change c_language_arch_info to
13408 d_language_arch_info.
13409 (d_type_data): New static variable.
13410 (_initialize_d_language): Initialize d_type_data.
13412 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13414 * d-lang.h (d_main_name): Add declaration.
13415 * d-lang.c (d_main_name): New function.
13416 * symtab.c (find_main_name): Add call to d_main_name.
13418 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13420 * d-lang.c (d_language_defn): Change macro_expansion_c to
13421 macro_expansion_no.
13423 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13425 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13427 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13429 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13430 gdb_exception" declaration.
13431 * remote.c (getpkt_or_notif_sane): Likewise.
13433 2014-01-17 Doug Evans <dje@google.com>
13435 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13436 function, contents of dirnames_to_char_ptr_vec_append moved here.
13437 (delim_string_to_char_ptr_vec): New function.
13438 (dirnames_to_char_ptr_vec_append): Rewrite.
13439 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13441 2014-01-17 Doug Evans <dje@google.com>
13443 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13445 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13446 #include "common-utils.h".
13447 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13448 * common/vec.h (VEC_ASSERT_PASS): Update.
13449 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13450 (MACH_CHECK_ERROR): Update.
13452 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13454 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13456 * gdbarch.h: Regenerate.
13458 2014-01-16 Tom Tromey <tromey@redhat.com>
13460 * value.c (struct value) <regnum>: Move earlier.
13462 2014-01-16 Tom Tromey <tromey@redhat.com>
13464 * remote.c (extended_remote_create_inferior): Rename from
13465 extended_remote_create_inferior_1. Add "ops" argument. Remove
13466 old implementation.
13468 2014-01-16 Pedro Alves <palves@redhat.com>
13470 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13471 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13474 2014-01-16 Doug Evans <dje@google.com>
13476 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13478 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13480 * btrace.h (btrace_thread_flag): New.
13481 (struct btrace_thread_info) <flags>: New.
13482 * record-btrace.c (record_btrace_resume_thread)
13483 (record_btrace_find_thread_to_move, btrace_step_no_history)
13484 (btrace_step_stopped, record_btrace_start_replaying)
13485 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13486 (record_btrace_find_resume_thread): New.
13487 (record_btrace_resume, record_btrace_wait): Extend.
13488 (record_btrace_can_execute_reverse): New.
13489 (record_btrace_open): Fail in non-stop mode.
13490 (record_btrace_set_replay): Split into this, ...
13491 (record_btrace_stop_replaying): ... this, ...
13492 (record_btrace_clear_histories): ... and this.
13493 (init_record_btrace_ops): Init to_can_execute_reverse.
13494 * NEWS: Announce it.
13496 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13498 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13499 (forward_target_decr_pc_after_break)
13500 (target_decr_pc_after_break): New.
13501 * target.c (forward_target_decr_pc_after_break)
13502 (target_decr_pc_after_break): New.
13503 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13504 instead of gdbarch_decr_pc_after_break.
13505 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13506 instead of gdbarch_decr_pc_after_break.
13507 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13508 instead of gdbarch_decr_pc_after_break.
13509 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13510 instead of gdbarch_decr_pc_after_break.
13511 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13512 instead of gdbarch_decr_pc_after_break.
13513 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13514 instead of gdbarch_decr_pc_after_break.
13516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13518 * btrace.c: Include regcache.h.
13519 (btrace_add_pc): New.
13520 (btrace_enable): Call btrace_add_pc.
13521 (btrace_is_empty): New.
13522 * btrace.h (btrace_is_empty): New.
13523 * record-btrace.c (require_btrace, record_btrace_info): Call
13526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13528 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13529 Support delta reads.
13530 (linux_disable_btrace): Change return type.
13531 * common/linux-btrace.h (linux_read_btrace): Change parameters
13532 and return type to allow error reporting. Update users.
13533 (linux_disable_btrace): Change return type. Update users.
13534 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13536 (btrace_error): New.
13537 (btrace_block) <begin>: Comment on BEGIN == 0.
13538 * btrace.c (btrace_compute_ftrace): Start from the end of
13540 (btrace_stitch_trace, btrace_clear_history): New.
13541 (btrace_fetch): Read delta trace, return if replaying.
13542 (btrace_clear): Move clear history code to btrace_clear_history.
13543 (parse_xml_btrace): Throw an error if parsing failed.
13544 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13545 and return type to allow error reporting.
13546 (target_read_btrace): Change parameters and return type to allow
13548 * target.c (target_read_btrace): Update.
13549 * remote.c (remote_read_btrace): Support delta reads. Pass
13551 * NEWS: Announce it.
13553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13555 * record.h (record_btrace_frame_unwind)
13556 (record_btrace_tailcall_frame_unwind): New declarations.
13557 * dwarf2-frame: Include record.h
13558 (dwarf2_frame_cfa): Throw an error for btrace frames.
13559 * record-btrace.c: Include hashtab.h.
13560 (btrace_get_bfun_name): New.
13561 (btrace_call_history): Call btrace_get_bfun_name.
13562 (struct btrace_frame_cache): New.
13564 (bfcache_hash, bfcache_eq, bfcache_new): New.
13565 (btrace_get_frame_function): New.
13566 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13567 (record_btrace_frame_this_id): Compute own id.
13568 (record_btrace_frame_prev_register): Provide PC, throw_error
13569 for all other registers.
13570 (record_btrace_frame_sniffer): Detect btrace frames.
13571 (record_btrace_tailcall_frame_sniffer): New.
13572 (record_btrace_frame_dealloc_cache): New.
13573 (record_btrace_frame_unwind): Add new functions.
13574 (record_btrace_tailcall_frame_unwind): New.
13575 (_initialize_record_btrace): Allocate cache.
13576 * btrace.c (btrace_clear): Call reinit_frame_cache.
13577 * NEWS: Announce it.
13579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13581 * record-btrace.c (record_btrace_set_replay)
13582 (record_btrace_goto_begin, record_btrace_goto_end)
13583 (record_btrace_goto): New.
13584 (init_record_btrace_ops): Initialize them.
13585 * NEWS: Announce it.
13587 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13589 * record-btrace.c (record_btrace_find_new_threads)
13590 (record_btrace_thread_alive): New.
13591 (init_record_btrace_ops): Initialize to_find_new_threads and
13594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13596 * record-btrace.c (record_btrace_resume): New.
13597 (record_btrace_wait): New.
13598 (init_record_btrace_ops): Initialize to_wait and to_resume.
13600 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13602 * record-btrace.c (record_btrace_xfer_partial)
13603 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13604 (record_btrace_allow_memory_access): New.
13605 (init_record_btrace_ops): Initialize new methods.
13606 * target.c (raw_memory_xfer_partial): Bail out if target reports
13607 that this memory is not available.
13609 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13611 * target.h (target_ops) <to_insert_breakpoint>
13612 <to_remove_breakpoint>: Add target_ops parameter.
13613 (forward_target_insert_breakpoint): New.
13614 (forward_target_remove_breakpoint): New.
13615 (memory_remove_breakpoint, memory_insert_breakpoint):
13616 Add target_ops parameter.
13617 * target.c (target_insert_breakpoint): Split into this and ...
13618 (forward_target_insert_breakpoint): ... this.
13619 (target_remove_breakpoint): Split into this and ...
13620 (forward_target_remove_breakpoint): ... this.
13621 (debug_to_insert_breakpoint): Add target_ops parameter.
13622 Call forward_target_insert_breakpoint.
13623 (debug_to_remove_breakpoint): Add target_ops parameter.
13624 Call forward_target_remove_breakpoint.
13625 (update_current_target): Do not inherit or default to_insert_breakpoint
13626 and to_remove_breakpoint.
13627 * corelow.c (ignore): Add target_ops parameter.
13628 * exec.c (ignore): Add target_ops parameter.
13629 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13630 Add target_ops parameter.
13631 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13632 Add target_ops parameter.
13633 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13634 Add target_ops parameter.
13635 * record-full.c (record_full_beneath_to_insert_breakpoint)
13636 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13637 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13638 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13639 (record_full_core_remove_breakpoint): Add target_ops parameter.
13641 (record_full_beneath_to_insert_breakpoint_ops)
13642 (record_full_beneath_to_remove_breakpoint_ops)
13643 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13644 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13645 tmp_to_remove_breakpoint_ops,
13646 record_full_beneath_to_insert_breakpoint_ops, and
13647 record_full_beneath_to_remove_breakpoint_ops.
13648 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13649 (m32r_remove_breakpoint): Add target_ops parameter.
13650 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13651 Add target_ops parameter.
13652 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13653 Add target_ops parameter.
13655 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13656 Markus Metzger <markus.t.metzger@intel.com>
13658 * record-btrace.c: Include frame-unwind.h.
13659 (record_btrace_frame_unwind_stop_reason)
13660 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13661 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13663 (init_record_btrace_ops): Install it.
13665 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13667 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13670 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13672 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13675 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13677 * frame-unwind.c: Include target.h.
13678 (frame_unwind_try_unwinder): New function with code from ...
13679 (frame_unwind_find_by_frame): ... here. New variable
13680 unwinder_from_target, call also target_get_unwinder)
13681 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13682 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13683 * target.h (struct target_ops): New fields to_get_unwinder and
13684 to_get_tailcall_unwinder.
13685 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13689 * record-btrace.c (record_btrace_fetch_registers)
13690 (record_btrace_store_registers)
13691 (record_btrace_to_prepare_to_store): New.
13692 (init_record_btrace_ops): Add the above.
13694 2014-01-16 Tom Tromey <tromey@redhat.com>
13696 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13697 * target.h (struct target_ops) <to_prepare_to_store>: Add
13699 (target_prepare_to_store): Add argument.
13700 * target.c (debug_to_prepare_to_store): Add argument.
13701 (update_current_target): Update.
13702 * remote.c (remote_prepare_to_store): Add 'self' argument.
13703 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13704 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13705 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13706 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13708 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13709 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13710 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13711 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13712 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13716 * btrace.h (replay) <replay>: New.
13717 (btrace_is_replaying): New.
13718 * btrace.c (btrace_clear): Free replay iterator.
13719 (btrace_is_replaying): New.
13720 * record-btrace.c (record_btrace_is_replaying): New.
13721 (record_btrace_info): Print insn number if replaying.
13722 (record_btrace_insn_history): Start at replay position.
13723 (record_btrace_call_history): Start at replay position.
13724 (init_record_btrace_ops): Init to_record_is_replaying.
13726 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13728 * record-btrace.c (record_btrace_insn_history_range): Include
13730 (record_btrace_insn_history_from): Adjust range.
13731 (record_btrace_call_history_range): Include
13733 (record_btrace_call_history_from): Adjust range.
13734 * NEWS: Announce changes.
13736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13738 * record.h (enum record_print_flag)
13739 <record_print_indent_calls>: New.
13740 * record.c (get_call_history_modifiers): Recognize /c modifier.
13741 (_initialize_record): Document /c modifier.
13742 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13743 Reorder fields. Optionally indent the function name. Update
13745 * NEWS: Announce changes.
13747 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13749 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13753 * btrace.c (ftrace_new_function): Start counting at one.
13754 * record-btrace.c (record_btrace_info): Adjust number of calls
13756 * NEWS: Announce it.
13758 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13760 * record-btrace.c (btrace_call_history_insn_range): Print
13761 insn range as [begin, end].
13763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13765 * btrace.h (struct btrace_func_link): New.
13766 (enum btrace_function_flag): New.
13767 (struct btrace_inst): Rename to ...
13768 (struct btrace_insn): ...this. Update all users.
13769 (struct btrace_func) <ibegin, iend>: Remove.
13770 (struct btrace_func_link): New.
13771 (struct btrace_func): Rename to ...
13772 (struct btrace_function): ...this. Update all users.
13773 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13774 (number, level, flags>: New.
13775 (struct btrace_insn_iterator): Rename to ...
13776 (struct btrace_insn_history): ...this.
13778 (struct btrace_insn_iterator, btrace_call_iterator): New.
13779 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13780 (struct btrace_target_info) <begin, end, level>
13781 <insn_history, call_history>: New.
13782 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13783 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13784 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13785 (btrace_call_number, btrace_call_begin, btrace_call_end)
13786 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13787 (btrace_find_function_by_number, btrace_set_insn_history)
13788 (btrace_set_call_history): New.
13789 * btrace.c (btrace_init_insn_iterator)
13790 (btrace_init_func_iterator, compute_itrace): Remove.
13791 (ftrace_print_function_name, ftrace_print_filename)
13792 (ftrace_skip_file): Change
13793 parameter to const.
13794 (ftrace_init_func): Remove.
13795 (ftrace_debug): Use new btrace_function fields.
13796 (ftrace_function_switched): Also consider gaining and
13797 losing symbol information).
13798 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13799 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13800 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13802 (ftrace_new_function): Move. Remove debug print.
13803 (ftrace_update_lines, ftrace_update_insns): New.
13804 (ftrace_update_function): Check for call, ret, and jump.
13805 (compute_ftrace): Renamed to ...
13806 (btrace_compute_ftrace): ...this. Rewritten to compute call
13808 (btrace_fetch, btrace_clear): Updated.
13809 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13810 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13811 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13812 (btrace_call_number, btrace_call_begin, btrace_call_end)
13813 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13814 (btrace_find_function_by_number, btrace_set_insn_history)
13815 (btrace_set_call_history): New.
13816 * record-btrace.c (require_btrace): Use new btrace thread
13818 (record_btrace_info, btrace_insn_history)
13819 (record_btrace_insn_history, record_btrace_insn_history_range):
13820 Use new btrace thread info fields and new iterator.
13821 (btrace_func_history_src_line): Rename to ...
13822 (btrace_call_history_src_line): ...this. Use new btrace
13823 thread info fields.
13824 (btrace_func_history): Rename to ...
13825 (btrace_call_history): ...this. Use new btrace thread info
13826 fields and new iterator.
13827 (record_btrace_call_history, record_btrace_call_history_range):
13828 Use new btrace thread info fields and new iterator.
13830 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13832 * frame.h (frame_id_build_unavailable_stack_special): New.
13833 * frame.c (frame_id_build_unavailable_stack_special): New.
13835 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13837 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13838 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13839 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13841 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13842 (i386_insn_is_jump, i386_jmp_p): New.
13843 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13844 insn_is_jump to gdbarch.
13845 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13846 * gdbarch.h: Regenerated.
13847 * gdbarch.c: Regenerated.
13848 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13849 (default_insn_is_jump): New.
13850 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13851 (default_insn_is_jump): New.
13853 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13855 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13857 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13858 (btrace_read_type) <btrace_read_new>: Change to ...
13859 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13861 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13863 * common/linux-btrace.c (linux_read_btrace): Free trace from
13864 previous iteration.
13866 2014-01-15 Doug Evans <dje@google.com>
13868 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13871 2014-01-15 Tom Tromey <tromey@redhat.com>
13873 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13874 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13875 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13876 (set_objfile_main_name): New function.
13877 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13878 language_of_main>: New fields.
13879 (set_objfile_main_name): Declare.
13880 * symtab.c (find_main_name): Loop over objfiles to find the main
13882 (set_main_name): Now static.
13883 (get_main_info): Add comment.
13884 * symtab.h (set_main_name): Don't declare.
13886 2014-01-15 Tom Tromey <tromey@redhat.com>
13888 * symtab.c (main_progspace_key): New global.
13889 (struct main_info): New.
13890 (name_of_main, language_of_main): Remove.
13891 (get_main_info, main_info_cleanup): New function.
13892 (set_main_name, main_name, main_language): Use get_main_info.
13893 (_initialize_symtab): Initialize main_progspace_key.
13895 2014-01-15 Tom Tromey <tromey@redhat.com>
13897 * dbxread.c (process_one_symbol): Update.
13898 * dwarf2read.c (read_partial_die): Update.
13899 * symfile.c (set_initial_language): Call main_language.
13900 * symtab.c (language_of_main): Now static.
13901 (set_main_name): Add 'lang' parameter.
13902 (find_main_name): Update.
13903 (main_language): New function.
13904 (symtab_observer_executable_changed): Update.
13905 * symtab.h (set_main_name): Update.
13906 (language_of_main): Remove.
13907 (main_language): Declare.
13909 2014-01-15 Tom Tromey <tromey@redhat.com>
13911 * symfile.c (init_entry_point_info): Use new "initialized" field.
13913 * objfiles.h (struct entry_point) <initialized>: New field.
13914 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13915 (struct objfile) <ei>: ...here. Remove.
13916 * objfiles.c (entry_point_address_query): Update.
13918 2014-01-15 Tom Tromey <tromey@redhat.com>
13920 * objfiles.c (entry_point_address_query): Relocate entry point
13922 (objfile_relocate1): Do not relocate entry point address.
13923 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13924 <the_bfd_section_index>: New field.
13925 * symfile.c (init_entry_point_info): Find the entry point's
13928 2014-01-15 Tom Tromey <tromey@redhat.com>
13930 * solib-frv.c (enable_break): Use entry_point_address_query.
13932 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13934 * NEWS: Add note on improved process record-replay on
13935 arm*-linux* targets.
13937 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13939 * arm-tdep.c (enum arm_record_result): New enum.
13940 (arm_record_unsupported_insn): New function.
13941 (arm_record_coproc_data_proc): Removed.
13942 (thumb2_record_ld_st_multiple): New function.
13943 (thumb2_record_ld_st_dual_ex_tbb): New function.
13944 (thumb2_record_data_proc_sreg_mimm): New function.
13945 (thumb2_record_ps_dest_generic): New function.
13946 (thumb2_record_branch_misc_cntrl): New function.
13947 (thumb2_record_str_single_data): New function.
13948 (thumb2_record_ld_mem_hints): New function.
13949 (thumb2_record_ld_word): New function.
13950 (thumb2_record_lmul_lmla_div): New function.
13951 (thumb2_record_decode_insn_handler): New function.
13952 (decode_insn): Add thumb32 instruction handlers.
13954 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13956 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13957 (struct arm_linux_record_tdep): Declare.
13958 (arm_canonicalize_syscall): New function.
13959 (arm_all_but_pc_registers_record): New function.
13960 (arm_linux_syscall_record): New function.
13961 (arm_linux_init_abi): Add syscall recording constructs.
13962 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13963 decoding. (arm_record_coproc_data_proc): Update arm syscall
13965 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13966 <arm_syscall_record>: New field.
13967 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13970 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13972 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13973 register for push instruction recording.
13975 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13977 * arm-tdep.c (thumb_record_misc): Update to correct logical
13978 error while recording ldm, ldmia and pop instructions.
13980 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13982 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13984 2014-01-15 Pedro Alves <palves@redhat.com>
13986 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13987 (go32_resume, go32_fetch_registers, store_register)
13988 (go32_store_registers, go32_prepare_to_store)
13989 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13990 (go32_create_inferior, go32_can_run, go32_terminal_init)
13991 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13994 2014-01-15 Tom Tromey <tromey@redhat.com>
13996 * target.h (async_callback_ftype): New typedef.
13997 (struct target_ops) <to_async>: Use it.
13999 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14001 * python/py-value.c (get_field_type): Remove unnecessary curly
14002 braces for single-statement if block.
14004 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14006 * python/py-type.c (convert_field): Add missing empty line
14007 after declarations.
14009 2014-01-14 Doug Evans <dje@google.com>
14011 * symfile.h (expand_symtabs_matching): Renamed from
14012 expand_partial_symbol_names. Update prototype.
14013 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14014 * symfile.c (expand_symtabs_matching): Renamed from
14015 expand_partial_symbol_names. New args file_matcher, kind.
14016 Rename arg fun to symbol_matcher.
14017 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14018 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14019 ada_expand_partial_symbol_name.
14020 (ada_make_symbol_completion_list): Update to call
14021 expand_symtabs_matching.
14022 (ada_add_global_exceptions): Call expand_symtabs_matching.
14023 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14024 call map_symbol_filenames.
14025 * symtab.c (sources_info): Update to call map_symbol_filenames.
14026 (search_symbols): Call expand_symtabs_matching.
14027 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14028 (default_make_symbol_completion_list_break_on): Update to call
14029 expand_symtabs_matching.
14030 (make_source_files_completion_list): Update to call
14031 map_symbol_filenames.
14033 2014-01-14 Doug Evans <dje@google.com>
14035 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14036 (expand_symtabs_symbol_matcher_ftype): New typedef.
14037 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14038 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14039 * symfile.c (expand_partial_symbol_names): Update to use
14040 expand_symtabs_symbol_matcher_ftype.
14041 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14042 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14043 Arg name_matcher renamed to symbol_matcher.
14044 * psymtab.c (recursively_search_psymtabs): Update to use
14045 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14047 (expand_symtabs_matching_via_partial): Update to use
14048 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14049 Arg name_matcher renamed to symbol_matcher.
14051 2014-01-14 Doug Evans <dje@google.com>
14053 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14054 (map_partial_symbol_filenames): Ditto.
14055 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14056 (map_partial_symbol_filenames): Ditto.
14057 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14058 (map_partial_symbol_filenames): Ditto.
14059 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14060 (map_partial_symbol_filenames): Ditto.
14061 * symtab.c: Delete #include "psymtab.h".
14063 2014-01-14 Pedro Alves <palves@redhat.com>
14064 Tom Tromey <tromey@redhat.com>
14066 * infrun.c (use_displaced_stepping): Use find_record_target
14067 instead of RECORD_IS_USED.
14068 (adjust_pc_after_break): Use record_full_is_used instead of
14070 * record-btrace.c (record_btrace_open): Call record_preopen
14071 instead of checking RECORD_IS_USED.
14072 * record-full.c (record_full_shortname)
14073 (record_full_core_shortname): New globals.
14074 (record_full_is_used): New function.
14075 (find_full_open): Call record_preopen instead of checking
14077 (init_record_full_ops): Set the target's shortname to
14078 record_full_shortname.
14079 (init_record_full_core_ops): Set the target's shortname to
14080 record_full_core_shortname.
14081 * record-full.h (record_full_is_used): Declare.
14082 * record.c (find_record_target): Make extern.
14083 (record_preopen): New function.
14084 * record.h (RECORD_IS_USED): Delete macro.
14085 (find_record_target, record_preopen): Declare functions.
14087 2014-01-14 Yao Qi <yao@codesourcery.com>
14089 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14090 'len''s type to ULONGEST.
14091 (core_xfer_shared_libraries_aix): Likewise.
14092 * gdbarch.c, gdbarch.h: Regenerated.
14093 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14094 Change type of 'len' to ULONGEST.
14095 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14096 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14098 2014-01-14 Yao Qi <yao@codesourcery.com>
14100 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14101 type of 'len' to ULONGEST.
14102 (linux_xfer_osdata_processgroups): Likewise.
14103 (linux_xfer_osdata_threads): Likewise.
14104 (linux_xfer_osdata_fds): Likewise.
14105 (linux_xfer_osdata_isockets): Likewise.
14106 (linux_xfer_osdata_shm): Likewise.
14107 (linux_xfer_osdata_sem): Likewise.
14108 (linux_xfer_osdata_msg): Likewise.
14109 (linux_common_xfer_osdata): Likewise.
14110 (struct osdata_type) <getter>: Likewise.
14111 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14114 2014-01-14 Yao Qi <yao@codesourcery.com>
14116 * target.h (target_xfer_partial_ftype): Update.
14117 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14119 * aix-thread.c (aix_thread_xfer_partial): Change type of
14120 argument 'len' to ULONGEST.
14121 * auxv.c (procfs_xfer_auxv): Likewise.
14122 (ld_so_xfer_auxv): Likewise.
14123 (memory_xfer_auxv): Likewise.
14124 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14125 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14126 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14127 * corelow.c (core_xfer_partial): Likewise.
14128 * ctf.c (ctf_xfer_partial): Likewise.
14129 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14131 (darwin_read_dyld_info): Likewise.
14132 (darwin_xfer_partial): Likewise.
14133 * exec.c (section_table_xfer_memory_partial): Likewise.
14134 (exec_xfer_partial): Likewise.
14135 * exec.h (section_table_xfer_memory_partial): Update
14137 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14138 instead of plongest.
14139 (gnu_xfer_partial): Likewise.
14140 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14141 (ia64_hpux_xfer_solib_got): Likewise.
14142 (ia64_hpux_xfer_partial): Likewise.
14143 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14144 * inf-ptrace.c (inf_ptrace_xfer_partial):
14145 * inf-ttrace.c (inf_ttrace_xfer_partial):
14146 * linux-nat.c (linux_xfer_siginfo): Likewise.
14147 (linux_nat_xfer_partial): Likewise.
14148 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14149 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14150 * monitor.c (monitor_xfer_memory): Likewise.
14151 (monitor_xfer_partial): Likewise.
14152 * procfs.c (procfs_xfer_partial): Likewise.
14153 * record-full.c (record_full_xfer_partial): Likewise.
14154 (record_full_core_xfer_partial): Likewise.
14155 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14156 instead of plongest.
14157 (gdbsim_xfer_partial): Likewise.
14158 * remote.c (remote_xfer_partial): Likewise.
14159 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14160 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14162 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14163 (rs6000_xfer_shared_libraries): Likewise.
14164 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14165 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14166 (sparc_xfer_partial): Likewise.
14167 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14168 (spu_xfer_partial): Likewise.
14169 * spu-multiarch.c (spu_xfer_partial): Likewise.
14170 * target.c (target_read_live_memory): Likewise.
14171 (memory_xfer_live_readonly_partial): Likewise.
14172 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14173 (target_xfer_partial, default_xfer_partial): Likewise.
14174 (current_xfer_partial): Likewise.
14175 * tracepoint.c (tfile_xfer_partial): Likewise.
14176 * windows-nat.c (windows_xfer_memory): Likewise. Call
14177 pulongest instead of plongest.
14178 (windows_xfer_partial): Likewise.
14179 (windows_xfer_shared_libraries): Likewise.
14181 2014-01-14 Yao Qi <yao@codesourcery.com>
14183 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14184 target_xfer_partial_ftype.
14186 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14190 * valops.c (value_struct_elt_bitpos): New function
14191 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14192 object to 'None' if the field name is an empty string ("").
14193 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14194 attribute to look for a field when 'name' is 'None'.
14195 (get_field_type): New function
14197 2014-01-13 Doug Evans <dje@google.com>
14200 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14201 (try_open_dwop_file): Ditto.
14202 * gdb_bfd.c: #include "vec.h".
14203 (bfdp): New typedef.
14204 (struct gdb_bfd_data): New member included_bfds.
14205 (gdb_bfd_unref): Unref all included bfds.
14206 (gdb_bfd_record_inclusion): New function.
14207 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14209 2014-01-13 Tom Tromey <tromey@redhat.com>
14211 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14213 2014-01-13 Tom Tromey <tromey@redhat.com>
14215 * defs.h (use_windows): Remove.
14216 * gdb.c (main): Update.
14217 * main.c (captured_main, gdb_main): Update.
14218 * main.h (struct captured_main_args) <use_windows>: Remove.
14219 * top.c (use_windows): Remove.
14221 2014-01-13 Tom Tromey <tromey@redhat.com>
14223 * defs.h (deprecated_flush_hook): Remove.
14225 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14228 * linux-thread-db.c (try_thread_db_load): Add parameter
14229 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14230 (try_thread_db_load_from_pdir_1): Move it there from here.
14231 (try_thread_db_load_from_sdir): Update caller.
14232 (try_thread_db_load_from_dir): Move it there from here.
14234 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14236 * regformats/regdat.sh: Always rewrite the register file.
14238 2014-01-13 Pedro Alves <palves@redhat.com>
14240 * Makefile.in (CHECK_HEADERS): New variable.
14241 (check-headers:): New rule.
14243 2014-01-13 Tom Tromey <tromey@redhat.com>
14245 * cli/cli-setshow.c (do_set_command): Update.
14246 * defs.h (deprecated_set_hook): Remove.
14247 * top.c (deprecated_set_hook): Remove.
14249 2014-01-13 Pedro Alves <palves@redhat.com>
14251 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14252 the tracepoint if the PC is a pseudo-register.
14254 2014-01-13 Tom Tromey <tromey@redhat.com>
14256 * defs.h (XCALLOC): Remove.
14257 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14258 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14259 * dwarf2loc.c (allocate_piece_closure): Likewise.
14260 * elfread.c (elf_symfile_segments): Likewise.
14261 (elf_symfile_segments): Likewise.
14262 * gdbtypes.c (copy_type_recursive): Likewise.
14263 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14264 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14265 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14267 * mt-tdep.c (mt_gdbarch_init): Likewise.
14268 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14270 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14271 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14272 * registry.c (registry_alloc_data): Likewise.
14273 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14274 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14275 * serial.c (serial_fdopen_ops): Likewise.
14276 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14278 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14279 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14282 2014-01-13 Tom Tromey <tromey@redhat.com>
14284 * defs.h (XMALLOC): Remove.
14285 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14286 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14287 * cli-out.c (struct ui_out *): Likewise.
14288 * cli/cli-dump.c (add_dump_command): Likewise.
14289 (add_dump_command): Likewise.
14290 * complaints.c (get_complaints): Likewise.
14291 (find_complaint): Likewise.
14292 * dwarf2-frame.c (execute_cfa_program): Likewise.
14293 * dwarf2read.c (abbrev_table_read_table): Likewise.
14294 * gdbarch.sh: Likewise.
14295 * gdbarch.c: Rebuild.
14296 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14297 * interps.c (interp_new): Likewise.
14298 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14299 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14300 * mi/mi-console.c (mi_console_file_new): Likewise.
14301 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14302 * mi/mi-out.c (mi_out_new): Likewise.
14303 * mi/mi-parse.c (mi_parse): Likewise.
14304 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14305 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14306 * observer.c (xalloc_observer_list_node): Likewise.
14307 * regcache.c (regcache_xmalloc_1): Likewise.
14308 * reggroups.c (reggroup_new): Likewise.
14309 (_initialize_reggroup): Likewise.
14310 * registry.c (register_data_with_cleanup): Likewise.
14311 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14312 * ser-base.c (serial_ttystate): Likewise.
14313 * ser-mingw.c (make_pipe_state): Likewise.
14314 * ser-pipe.c (pipe_open): Likewise.
14315 * serial.c (serial_open): Likewise.
14316 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14317 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14318 (tui_alloc_win_info): Likewise.
14319 (tui_add_content_elements): Likewise.
14320 * tui/tui-file.c (tui_file_new): Likewise.
14321 * tui/tui-out.c (tui_out_new): Likewise.
14322 * ui-file.c (mem_file_new): Likewise.
14323 * ui-out.c (push_level): Likewise.
14324 (make_cleanup_ui_out_end): Likewise.
14325 (append_header_to_list): Likewise.
14326 (ui_out_new): Likewise.
14327 * user-regs.c (user_reg_add_builtin): Likewise.
14329 2014-01-13 Tom Tromey <tromey@redhat.com>
14331 * defs.h (XZALLOC): Remove.
14332 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14333 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14334 (get_ada_tasks_inferior_data): Likewise.
14335 * auto-load.c (get_auto_load_pspace_data): Likewise.
14336 * auxv.c (get_auxv_inferior_data): Likewise.
14337 * bfd-target.c (target_bfd_reopen): Likewise.
14338 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14339 (deprecated_insert_raw_breakpoint): Likewise.
14340 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14341 * corelow.c (core_open): Likewise.
14342 * darwin-nat.c (darwin_check_new_threads): Likewise.
14343 (darwin_attach_pid): Likewise.
14344 * dummy-frame.c (dummy_frame_push): Likewise.
14345 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14346 * dwarf2loc.c (allocate_piece_closure): Likewise.
14347 * elfread.c (elf_symfile_segments): Likewise.
14348 * eval.c (ptrmath_type_p): Likewise.
14349 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14350 * gdbtypes.c (alloc_type_arch): Likewise.
14351 (alloc_type_instance): Likewise.
14352 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14353 * inf-child.c (inf_child_can_use_agent): Likewise.
14354 * inflow.c (get_inflow_inferior_data): Likewise.
14355 * infrun.c (save_infcall_suspend_state): Likewise.
14356 * jit.c (jit_reader_load): Likewise.
14357 (get_jit_objfile_data): Likewise.
14358 (get_jit_program_space_data): Likewise.
14359 (jit_object_open_impl): Likewise.
14360 (jit_symtab_open_impl): Likewise.
14361 (jit_block_open_impl): Likewise.
14362 (jit_frame_sniffer): Likewise.
14363 * linux-fork.c (add_fork): Likewise.
14364 * maint.c (make_command_stats_cleanup): Likewise.
14365 * objfiles.c (get_objfile_pspace_data): Likewise.
14366 * opencl-lang.c (struct lval_closure): Likewise.
14367 * osdata.c (osdata_start_osdata): Likewise.
14368 * progspace.c (new_address_space): Likewise.
14369 (add_program_space): Likewise.
14370 * remote-sim.c (get_sim_inferior_data): Likewise.
14371 * sh-tdep.c (sh_gdbarch_init): Likewise.
14372 * skip.c (Ignore): Likewise.
14373 (skip_delete_command): Likewise.
14374 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14375 (library_list_start_library): Likewise.
14376 (solib_aix_current_sos): Likewise.
14377 * solib-darwin.c (get_darwin_info): Likewise.
14378 (darwin_current_sos): Likewise.
14379 * solib-dsbt.c (get_dsbt_info): Likewise.
14380 * solib-ia64-hpux.c (new_so_list): Likewise.
14381 (ia64_hpux_get_solib_linkage_addr): Likewise.
14382 * solib-spu.c (append_ocl_sos): Likewise.
14383 (spu_current_sos): Likewise.
14384 * solib-svr4.c (get_svr4_info): Likewise.
14385 (svr4_keep_data_in_core): Likewise.
14386 (library_list_start_library): Likewise.
14387 (svr4_default_sos): Likewise.
14388 (svr4_read_so_list): Likewise.
14389 * solib-target.c (library_list_start_library): Likewise.
14390 (solib_target_current_sos): Likewise.
14391 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14392 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14393 * symfile.c (default_symfile_segments): Likewise.
14394 * target-descriptions.c (tdesc_data_init): Likewise.
14395 (tdesc_create_reg): Likewise.
14396 (struct tdesc_type *): Likewise.
14397 (tdesc_create_vector): Likewise.
14398 (tdesc_set_struct_size): Likewise.
14399 (struct tdesc_type *): Likewise.
14400 (tdesc_free_feature): Likewise.
14401 (tdesc_create_feature): Likewise.
14402 * windows-nat.c (windows_add_thread): Likewise.
14403 (windows_make_so): Likewise.
14404 * xml-support.c (gdb_xml_body_text): Likewise.
14405 (gdb_xml_create_parser_and_cleanup): Likewise.
14406 (xml_process_xincludes): Likewise.
14407 * xml-syscall.c (allocate_syscalls_info): Likewise.
14408 (syscall_create_syscall_desc): Likewise.
14410 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14412 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14413 function, with code from i386_stap_parse_special_token.
14414 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14415 (i386_stap_parse_special_token): Move code to the two functions
14416 above; simplify it.
14418 2014-01-09 Pedro Alves <palves@redhat.com>
14419 Hui Zhu <hui@codesourcery.com>
14422 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14423 bp_err_string. Don't mark the location shlib_disabled if the
14424 error thrown wasn't a generic or memory error. Catch errors
14425 thrown while inserting breakpoints in overlayed code. Output
14426 error message of software breakpoints.
14427 * remote.c (remote_insert_breakpoint): If this breakpoint has
14428 target-side commands but this stub doesn't support Z0 packets,
14429 throw NOT_SUPPORTED_ERROR error.
14430 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14431 * target.h (target_insert_breakpoint): Extend comment.
14432 (target_insert_hw_breakpoint): Add comment.
14434 2014-01-08 Pedro Alves <palves@redhat.com>
14436 * remote.c (remote_add_thread): Add threads silently if starting
14438 (remote_notice_new_inferior): If in all-stop, and starting up,
14439 don't call notice_new_inferior.
14440 (get_current_thread): New function, factored out from ...
14441 (add_current_inferior_and_thread): ... this. Adjust.
14442 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14443 found any thread, then select the remote's current thread as GDB's
14444 current thread too.
14446 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14448 * NEWS: Create a new section for the next release branch.
14449 Rename the section of the current branch, now that it has
14452 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14454 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14455 * version.in: Bump version to 7.7.50.DATE-cvs.
14457 2014-01-08 Yao Qi <yao@codesourcery.com>
14459 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14460 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14461 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14463 2014-01-08 Yao Qi <yao@codesourcery.com>
14465 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14466 return value of bfd_get_filename to symbol_file_add_from_bfd.
14468 2014-01-08 Pierre Muller <muller@sourceware.org>
14471 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14472 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14473 to prim_record_mininal_symbol_and_info.
14474 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14475 in call to prim_record_minimal_symbol_and_info.
14476 (read_pe_exported_syms): Set index field of section_data.
14478 2014-01-07 Andrew Pinski <apinski@cavium.com>
14480 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14481 * features/aarch64.c: Regenerate.
14483 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14485 * target.c (return_null): Define.
14486 (update_current_target): Use it instead of return_zero for
14487 functions that return a pointer.
14489 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14491 * source.c (add_path): Fix check for duplicated paths in the previously
14494 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14496 * ada-lang.c: Remove duplicated include statements.
14497 * alphabsd-nat.c: Ditto.
14498 * amd64-darwin-tdep.c: Ditto.
14499 * amd64fbsd-nat.c: Ditto.
14500 * auto-load.c: Ditto.
14502 * breakpoint.c: Ditto.
14503 * dbxread.c: Ditto.
14504 * fork-child.c: Ditto.
14505 * gdb_usleep.c: Ditto.
14506 * i386-darwin-tdep.c: Ditto.
14507 * i386fbsd-nat.c: Ditto.
14509 * inferior.c: Ditto.
14510 * jv-lang.c: Ditto.
14511 * linux-nat.c: Ditto.
14512 * linux-tdep.c: Ditto.
14513 * m68kbsd-nat.c: Ditto.
14514 * m68klinux-nat.c: Ditto.
14515 * microblaze-tdep.c: Ditto.
14516 * mips-linux-tdep.c: Ditto.
14517 * mn10300-tdep.c: Ditto.
14518 * nto-tdep.c: Ditto.
14519 * opencl-lang.c: Ditto.
14521 * printcmd.c: Ditto.
14522 * regcache.c: Ditto.
14523 * remote-m32r-sdi.c: Ditto.
14525 * symfile.c: Ditto.
14527 * tilegx-linux-nat.c: Ditto.
14528 * tilegx-tdep.c: Ditto.
14529 * tracepoint.c: Ditto.
14531 * vaxbsd-nat.c: Ditto.
14532 * windows-nat.c: Ditto.
14533 * xtensa-tdep.c: Ditto.
14535 2014-01-07 Yao Qi <yao@codesourcery.com>
14537 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14539 2014-01-07 Yao Qi <yao@codesourcery.com>
14540 Joel Brobecker <brobecker@adacore.com>
14542 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14543 (pdc_write_regs): Likewise.
14544 (fetch_regs_kernel_thread): Likewise.
14545 (store_regs_kernel_thread): Likewise.
14547 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14549 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14550 tagged type objects to their actual type.
14552 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14554 * ada-valprint.c (print_field_values): Add "language" parameter.
14555 Update calls to print_field_values and print_variant_part.
14556 Pass new parameter "language" in call to val_print instead
14557 of "current_language". Replace call to ada_val_print by call
14559 (print_variant_part): Add "language" parameter.
14560 (ada_val_print_struct_union): Update call to print_field_values.
14562 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14564 * ada-valprint.c (ui_memcpy): Delete.
14565 (ada_print_floating): Update documentation. Add empty line
14566 between between function documentation and implementation.
14567 Delete variable "buffer". Use ui_file_xstrdup in place of
14568 ui_file_put. Minor adjustments following this change.
14570 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14572 * ada-valprint.c (ada_val_print_string): New function,
14573 extracted from ada_val_print_array.
14574 (ada_val_print_array): Replace extracted code by call
14575 to ada_val_print_string followed by a return. Move
14576 "else" branch to the function's top block.
14578 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14580 * ada-valprint.c (ada_val_print_array): Move implementation
14581 down. Rename parameter "offset" and "val" into "offset_aligned"
14582 and "original_value" respectively. Add parameter "offset".
14584 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14586 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14587 re-organizing the code. Change the "???" message printed
14588 when target type is a TYPE_CODE_UNDEF into
14589 "<ref to undefined type>".
14591 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14593 * ada-valprint.c (print_record): Delete, implementation inlined...
14594 (ada_val_print_struct_union): ... here. Remove call to
14595 ada_check_typedef in inlined implementation.
14597 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14599 * ada-valprint.c (ada_val_print_gnat_array): New function,
14600 extracted from ada_val_print_1;
14601 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14602 (ada_val_print_flt, ada_val_print_struct_union)
14603 (ada_val_print_ref): Likewise.
14604 (ada_val_print_1): Delete variables i and elttype.
14605 Replace extracted-out code by call to corresponding
14608 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14610 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14612 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14614 * ada-valprint.c (ada_val_print_1): Replace calls to
14615 ada_val_print_1 by calls to val_print.
14617 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14619 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14620 Update calls to self accordingly. Replace calls to c_val_print
14621 by calls to val_print.
14623 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14625 * ada-valprint.c (print_record): Delete declaration.
14626 (adjust_type_signedness, ada_val_print_1): Likewise.
14627 (ada_val_print): Move function implementation down.
14628 (print_variant_part, print_field_values, print_record):
14629 Move function implementation up.
14631 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14633 * python/py-type.c (typy_get_name): New function.
14634 (type_object_getset): Add entry for attribute "name".
14635 * NEWS: Add entry mentioning this new attribute.
14637 2014-01-07 Yao Qi <yao@codesourcery.com>
14639 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14642 2014-01-07 Yao Qi <yao@codesourcery.com>
14644 * gnu-nat.c (info_port_rights): Add qualifier const to
14647 2014-01-07 Yao Qi <yao@codesourcery.com>
14649 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14651 2014-01-07 Yao Qi <yao@codesourcery.com>
14653 * gnu-nat.c (make_inf) Update declaration.
14654 (make_inf): Make it static.
14655 (inf_set_traced): Likewise.
14656 (inf_port_to_thread, inf_task_died_status): Likewise.
14658 2014-01-07 Yao Qi <yao@codesourcery.com>
14660 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14662 2014-01-07 Yao Qi <yao@codesourcery.com>
14664 * gnu-nat.c (_initialize_gnu_nat): Declare.
14666 2014-01-07 Yao Qi <yao@codesourcery.com>
14668 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14670 (struct gdbarch_info) <byte_order>: Change type to
14672 <byte_order_for_code>: Likewise.
14673 * gdbarch.c, gdbarch.h: Regenerated.
14675 2014-01-06 Sasha Smundak <asmundak@google.com>
14677 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14679 2014-01-06 Tom Tromey <tromey@redhat.com>
14681 * doublest.c (convert_doublest_to_floatformat): Use const, not
14683 * somread.c (som_symtab_read): Likewise.
14685 2014-01-07 Hui Zhu <hui@codesourcery.com>
14687 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14688 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14689 (gdb_bfd_fopen): Ditto.
14690 (gdb_bfd_openr): Ditto.
14691 (gdb_bfd_openw): Ditto.
14692 (gdb_bfd_openr_iovec): Ditto.
14693 (gdb_bfd_fdopenr): Ditto.
14694 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14695 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14697 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14699 * symfile-mem.c (symbol_file_add_from_memory): Removed
14700 gdb_bfd_stash_filename.
14702 2014-01-03 Doug Evans <dje@google.com>
14704 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14707 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14709 Update year range in copyright notice of all files.
14711 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14713 * top.c (print_gdb_version): Set copyright year to 2014.
14715 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14717 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14719 For older changes see ChangeLog-2013.
14725 version-control: never