1 2014-11-06 Doug Evans <xdje42@gmail.com>
3 * ada-lang.c (ada_make_symbol_completion_list): Use
4 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
5 * symtab.c (lookup_objfile_from_block): Ditto.
7 2014-11-06 Doug Evans <xdje42@gmail.com>
9 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
12 2014-11-06 Doug Evans <xdje42@gmail.com>
14 * objfiles.c (get_objfile_arch): Constify.
15 * objfiles.h (get_objfile_arch): Update prototype.
16 * solib.c (solib_global_lookup): Fetch arch from objfile,
19 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
21 * nios2-tdep.c (wild_insn): Delete.
22 (profiler_insn, irqentry_insn): Delete.
23 (nios2_match_sequence): Delete.
24 (nios2_analyze_prologue): Update comments. Remove matching
25 of obsolete profiler_insn and irqentry_insn sequences.
27 2014-11-05 Alan Modra <amodra@gmail.com>
29 * charset.c (convert_between_encodings): Shrink obstack using
31 * minsyms.c (install_minimal_symbols): Likewise.
32 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
33 to char* before doing pointer arithmetic.
35 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
37 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
39 2014-11-04 Pedro Alves <palves@redhat.com>
41 * breakpoint.c (breakpoint_thread_match): Delete function.
42 * breakpoint.h (breakpoint_thread_match): Delete declaration.
44 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
47 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
48 the method args also under EVAL_SKIP when evaluating method
49 calls under EVAL_SKIP.
51 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
53 * dwarf2loc.c (read_pieced_value): Do big endian
54 processing only if gdb_regnum is not -1.
55 (write_pieced_value): Ditto.
57 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
59 * arm-linux-tdep.c (arm_linux_init_abi): Use
60 info.byte_order_for_code to choose endianity of breakpoint
61 instructions snippets.
63 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
65 * arm-tdep.c (extract_arm_insn): Use
66 gdbarch_byte_order_for_code to read arm instruction.
68 2014-11-02 Doug Evans <xdje42@gmail.com>
70 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
72 2014-11-02 Doug Evans <xdje42@gmail.com>
74 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
75 main_subfile before returning.
77 2014-10-31 Doug Evans <xdje42@gmail.com>
79 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
80 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
82 2014-10-31 Doug Evans <xdje42@gmail.com>
84 * valops.c (value_cast_pointers): Fix whitespace.
85 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
88 2014-10-30 Doug Evans <dje@google.com>
90 * NEWS: Mention ability add attributes to gdb.Objfile and
91 gdb.Progspace objects.
92 * python/py-objfile.c (objfile_object): New member dict.
93 (objfpy_dealloc): Py_XDECREF dict.
94 (objfpy_initialize): Initialize dict.
95 (objfile_getset): Add __dict__.
96 (objfile_object_type): Set tp_dictoffset member.
97 * python/py-progspace.c (progspace_object): New member dict.
98 (pspy_dealloc): Py_XDECREF dict.
99 (pspy_initialize): Initialize dict.
100 (pspace_getset): Add __dict__.
101 (pspace_object_type): Set tp_dictoffset member.
103 2014-10-30 Yao Qi <yao@codesourcery.com>
105 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
106 replace '\\' with '\\\\'.
108 2014-10-29 Joel Brobecker <brobecker@adacore.com>
112 2014-10-29 Pedro Alves <palves@redhat.com>
115 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
116 instead of assuming a thread with a stepping range is always
119 2014-10-29 Pedro Alves <palves@redhat.com>
122 * event-top.c (change_line_handler): Call
123 gdb_rl_callback_handler_remove instead of
124 rl_callback_handler_remove.
125 (callback_handler_installed): New global.
126 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
127 (gdb_rl_callback_handler_reinstall): New functions.
128 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
129 gdb_rl_callback_handler_install instead of
130 rl_callback_handler_remove and rl_callback_handler_install.
131 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
132 instead of rl_callback_handler_remove.
133 * event-top.h (gdb_rl_callback_handler_remove)
134 (gdb_rl_callback_handler_install)
135 (gdb_rl_callback_handler_reinstall): New declarations.
136 * infrun.c (reinstall_readline_callback_handler_cleanup): New
138 (fetch_inferior_event): Install it.
139 * top.c (gdb_readline_wrapper_line) Call
140 gdb_rl_callback_handler_remove instead of
141 rl_callback_handler_remove.
142 (gdb_readline_wrapper_cleanup): Don't call
143 rl_callback_handler_install.
145 2014-10-29 Pedro Alves <palves@redhat.com>
147 * event-top.c (command_line_handler): Clear the first byte of
148 linebuffer, when it is first allocated.
150 2014-10-29 Pedro Alves <palves@redhat.com>
152 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
155 2014-10-29 Pedro Alves <palves@redhat.com>
159 * tui/tui-interp.c (tui_is_toplevel): Delete global.
160 (tui_allowed_p): Delete function.
161 * tui/tui.c: Include "interps.h".
162 (tui_enable): Don't use tui_allowed_p. Error out here with
163 detailed error messages if the TUI is the top level interpreter,
164 or if output is not a terminal. Use newterm instead of initscr,
165 and error out if initializing the terminal fails. Also error out if
166 the terminal doesn't support cursor addressing.
167 * tui/tui.h (tui_allowed_p): Delete declaration.
169 2014-10-29 Joel Brobecker <brobecker@adacore.com>
171 * arm-tdep.c (arm_skip_stack_protector): Return early if
172 address loaded by first "ldr" instruction does not have
173 a corresponding minimal symbol. Update comment.
175 2014-10-29 Yao Qi <yao@codesourcery.com>
177 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
178 loaded address correctly of ldr instruction.
180 2014-10-28 Pedro Alves <palves@redhat.com>
183 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
185 * infrun.c (resume) <stepping breakpoint instruction>: Set the
186 thread's stepped_breakpoint field. Skip if reverse debugging.
188 (init_thread_stepping_state, handle_signal_stop): Clear the
189 thread's stepped_breakpoint field.
191 2014-10-27 Pedro Alves <palves@redhat.com>
193 * remote.c (remote_thread_alive): New, factored out from ...
194 (remote_thread_alive): ... this.
195 (remote_update_thread_list): Bail out before deleting threads if
196 the target returned an empty list, and, the current thread has a
199 2014-10-27 Pedro Alves <palves@redhat.com>
201 * infrun.c (handle_signal_stop): Also skip handlers when a random
202 signal arrives while handling a "stepi" or a "nexti". Set the
203 thread's 'step_after_step_resume_breakpoint' flag.
205 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
207 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
208 (arm_record_ld_st_imm_offset): Reimplement to cover all
209 load/store cases for ARM opcode 010.
210 (arm_record_ld_st_multiple): Reimplement to cover all
211 load/store cases for ARM opcode 100.
213 2014-10-26 Doug Evans <xdje42@gmail.com>
215 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
217 2014-10-26 Doug Evans <xdje42@gmail.com>
219 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
220 parameter "kind" to "block_index".
221 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
223 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
225 2014-10-26 Doug Evans <xdje42@gmail.com>
227 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
229 2014-10-26 Doug Evans <xdje42@gmail.com>
231 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
234 2014-10-26 Doug Evans <xdje42@gmail.com>
236 * parser-defs.h (block_found): Move decl from here ...
237 * symtab.h (block_found): ... to here.
239 2014-10-26 Doug Evans <xdje42@gmail.com>
241 * symtab.h (struct field_of_this_result): Fix typo in comment.
242 (lookup_symbol_in_language): Move function comment here.
243 (lookup_symbol): Improve function comment.
244 (basic_lookup_symbol_nonlocal): Ditto.
245 (lookup_symbol_static, lookup_symbol_global): Ditto.
246 (lookup_symbol_aux_block): Ditto.
247 (lookup_language_this): Add function comment.
248 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
250 (lookup_block_symbol): Improve function comment.
251 (lookup_struct): Fix capitalization in function comment.
252 (lookup_transparent_type): Add function comment.
253 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
254 Improve function comment.
255 (lookup_objfile_from_block): Add function comment.
256 * symtab.c (lookup_symbol_in_language): Update function comment.
257 (lookup_symbol, lookup_language_this): Ditto.
258 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
259 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
260 (basic_lookup_symbol_nonlocal): Ditto.
261 (lookup_symbol_static, lookup_symbol_global): Ditto.
262 (lookup_transparent_type, lookup_block_symbol): Ditto.
264 2014-10-25 Doug Evans <xdje42@gmail.com>
266 * symtab.c (types_info): Delete forward decl.
267 (functions_info, variables_info, sources_info): Ditto.
268 (_initialize_symtab): Rewrite forward decl to use
269 initialize_file_ftype.
271 2014-10-25 Doug Evans <xdje42@gmail.com>
273 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
275 2014-10-25 Doug Evans <xdje42@gmail.com>
277 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
278 of local var child_die.
280 2014-10-24 Don Breazeal <donb@codesourcery.com>
282 * infrun.c (follow_fork_inferior): Update fork message printing
283 to use target_terminal_ours_for_output instead of
284 target_terminal_ours, to use _() for all format strings, to print
285 "vfork" instead of "fork" for vforks, and to add a detach message.
286 (handle_vfork_child_exec_or_exit): Update message printing to use
287 target_terminal_ours_for_output instead of target_terminal_ours, to
288 use _() for all format strings, and to fix some formatting.
290 2014-10-24 Pedro Alves <palves@redhat.com>
292 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
293 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
294 * config/vax/vax.mh: Delete.
295 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
296 obsolete configurations section.
297 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
298 * vax-nat.c: Delete file.
300 2014-10-24 Pedro Alves <palves@redhat.com>
302 * NEWS (Removed targets): Add OS/arch column.
304 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
306 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
307 on the arg type of a constructor only if it is of reference type.
309 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
311 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
312 accessors and constants from nios2 opcodes update.
313 (nios2_get_next_pc): Likewise.
315 2014-10-19 Doug Evans <xdje42@gmail.com>
317 * gdbthread.h (set_running): Fix comment.
318 (set_executing, finish_thread_state): Fix comment.
320 2014-10-18 Doug Evans <xdje42@gmail.com>
322 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
324 2014-10-17 Doug Evans <dje@google.com>
326 * NEWS: Mention new event gdb.clear_objfiles.
327 * python/py-event.h (emit_clear_objfiles_event): Clear
328 * python/py-events.h (events_object): New member clear_objfiles.
329 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
331 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
332 emit clear_objfiles event.
333 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
335 (emit_clear_objfiles_event): New function.
336 (clear_objfiles): New event.
337 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
339 * python/python.c (_initialize_python): Call
340 gdbpy_initialize_clear_objfiles_event.
342 2014-10-17 Doug Evans <dje@google.com>
344 * NEWS: Mention new gdb.Objfile.progspace attribute.
345 * python/py-objfile.c (objfpy_get_progspace): New function.
346 (objfile_getset): New entry for "progspace".
348 2014-10-17 Pedro Alves <palves@redhat.com>
351 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
352 returns a copy of the input.
353 (run_command_1, continue_command, step_1, jump_command)
354 (signal_command, until_command, advance_command, finish_command)
355 (attach_command): Adjust and install a cleanup to free the
358 2014-10-17 Pedro Alves <palves@redhat.com>
361 * infcmd.c (continue_1): If continuing all threads in the
362 foreground, make sure the inferior's terminal settings are put in
365 2014-10-17 Pedro Alves <palves@redhat.com>
368 * annotate.c (annotate_breakpoints_invalid): Use
369 target_terminal_our_for_output instead of target_terminal_ours.
370 Give back the terminal to the target.
371 (annotate_frames_invalid): Likewise.
373 2014-10-17 Pedro Alves <palves@redhat.com>
375 * target.c (enum terminal_state): New enum.
376 (terminal_state): New global.
377 (target_terminal_init): New function.
378 (target_terminal_inferior): Skip if inferior already owns the
380 (target_terminal_ours, target_terminal_ours_for_output): New
382 * target.h (target_terminal_init): Convert to function prototype.
383 (target_terminal_ours_for_output): Convert to function prototype
385 (target_terminal_ours): Convert to function prototype and tweak
387 * windows-nat.c (do_initial_windows_stuff): Call
388 target_terminal_init instead of child_terminal_init_with_pgrp.
390 2014-10-17 Pedro Alves <palves@redhat.com>
392 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
393 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
394 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
396 * NEWS: Mention that support for alpha*-*-osf* has been removed.
397 * ada-lang.h [__alpha__ && __osf__]
398 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
399 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
400 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
402 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
404 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
405 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
406 * configure: Regenerate.
407 * configure.ac: Remove references to osf.
408 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
409 section. Remove all other references to osf.
410 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
411 Remove all other references to osf.
412 * dec-thread.c: Delete file.
413 * defs.h (GDB_OSABI_OSF1): Delete.
414 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
416 * osabi.c (gdb_osabi_names): Delete "OSF/1".
417 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
419 (unconditionally_kill_inferior)
420 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
421 * solib-osf.c: Delete file.
423 2014-10-17 Pedro Alves <palves@redhat.com>
425 * remote.c (clear_threads_listing_context): Move higher up, out of
426 the HAVE_LIBEXPAT guard.
428 2014-10-16 Tristan Gingold <gingold@adacore.com>
430 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
431 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
434 2014-10-15 Pedro Alves <palves@redhat.com>
436 * dec-thread.c (dec_thread_count_gdb_threads)
437 (dec_thread_add_gdb_thread): Delete.
438 (dec_thread_update_thread_list): Delete.
439 (dec_thread_find_new_threads): Rename to ...
440 (dec_thread_update_thread_list): ... this. Delete GDB-size
441 threads that are no longer found in dec_thread_list.
442 (resync_thread_list): Delete.
443 (dec_thread_wait): Call dec_thread_update_thread_list instead of
446 2014-10-15 Pedro Alves <palves@redhat.com>
448 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
449 * remote.c (remote_update_thread_list): Skip calling prune_threads
450 if any thread listing method is supported, and instead walk over
451 the set of remote threads listed, deleting those that are not
452 found in GDB's thread list.
454 2014-10-15 Pedro Alves <palves@redhat.com>
456 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
457 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
458 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
459 (bsd_uthread_target): Adjust.
460 * corelow.c (core_open): Adjust.
461 * dec-thread.c (dec_thread_find_new_threads): Update comment.
462 (dec_thread_update_thread_list): New function.
463 (init_dec_thread_ops): Adjust.
464 * gdbthread.h (prune_threads): New declaration.
465 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
466 (thread_db_update_thread_list): ... this. Call prune_threads.
467 (init_thread_db_ops): Adjust.
468 * nto-procfs.c (procfs_find_new_threads): Rename to ...
469 (procfs_update_thread_list): ... this. Call prune_threads.
470 (procfs_attach, procfs_create_inferior, init_procfs_targets):
472 * obsd-nat.c (obsd_find_new_threads): Rename to ...
473 (obsd_update_thread_list): ... this. Call prune_threads.
474 (obsd_add_target): Adjust.
475 * procfs.c (procfs_target): Adjust.
476 (procfs_notice_thread): Update comment.
477 (procfs_find_new_threads): Rename to ...
478 (procfs_update_thread_list): ... this. Call prune_threads.
479 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
481 (ravenscar_wait): Adjust.
482 (ravenscar_find_new_threads): Rename to ...
483 (ravenscar_update_thread_list): ... this. Call prune_threads.
484 (init_ravenscar_thread_ops): Adjust.
485 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
486 (record_btrace_update_thread_list): ... this. Adjust comment.
487 (init_record_btrace_ops): Adjust.
488 * remote.c (remote_threads_info): Rename to ...
489 (remote_update_thread_list): ... this. Call prune_threads.
490 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
492 * sol-thread.c (check_for_thread_db): Adjust.
493 (sol_find_new_threads_callback): Rename to ...
494 (sol_update_thread_list_callback): ... this.
495 (sol_find_new_threads): Rename to ...
496 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
497 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
498 * target-delegates.c: Regenerate.
499 * target.c (target_find_new_threads): Rename to ...
500 (target_update_thread_list): ... this.
501 * target.h (struct target_ops): Rename to_find_new_threads field
502 to to_update_thread_list.
503 (target_find_new_threads): Rename to ...
504 (target_update_thread_list): ... this.
505 * thread.c (prune_threads): Make extern.
506 (update_thread_list): Adjust.
508 2014-10-15 Pedro Alves <palves@redhat.com>
510 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
511 Add describing comment. Return -1 if the qL packet is not
513 (struct thread_item, thread_item_t): Move higher up in
514 the file. Add comments.
515 (struct threads_parsing_context): Move higher up in
516 the file, add comments, and remote to ...
517 (struct threads_listing_context): ... this.
518 (remote_newthread_step): Don't add the thread to GDB's thread
519 database here. Instead push it to the thread_listing_context
521 (remote_find_new_threads): Rename to ...
522 (remote_get_threads_with_ql): ... this. Add target_ops and
523 targets_listing_context parameters. Pass down context.
524 (start_thread): Adjust.
525 (clear_threads_parsing_context): Rename to ...
526 (clear_threads_listing_context): ... this.
527 (remote_get_threads_with_qxfer): New, with parts salvaged from old
529 (remote_get_threads_with_qthreadinfo): Ditto.
530 (remote_threads_info): Reimplement.
532 2014-10-15 Pedro Alves <palves@redhat.com>
534 * infrun.c (resume): Don't force displaced-stepping for all
535 single-steps on software single-stepping archs.
537 2014-10-15 Pedro Alves <palves@redhat.com>
539 * breakpoint.c (single_step_breakpoints): Delete global.
540 (insert_single_step_breakpoint): Adjust to store the breakpoint
541 pointer in the current thread.
542 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
543 (cancel_single_step_breakpoints): Delete functions.
544 (breakpoint_has_location_inserted_here): Make extern.
545 (single_step_breakpoint_inserted_here_p): Adjust to walk the
547 * breakpoint.h (breakpoint_has_location_inserted_here): New
549 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
550 (cancel_single_step_breakpoints): Remove declarations.
551 * gdbthread.h (struct thread_control_state)
552 <single_step_breakpoints>: New field.
553 (delete_single_step_breakpoints)
554 (thread_has_single_step_breakpoints_set)
555 (thread_has_single_step_breakpoint_here): New declarations.
556 * infrun.c (follow_exec): Also clear the single-step breakpoints.
557 (singlestep_breakpoints_inserted_p, singlestep_ptid)
558 (singlestep_pc): Delete globals.
559 (infrun_thread_ptid_changed): Remove references to removed
561 (resume_cleanups): Delete the current thread's single-step
563 (maybe_software_singlestep): Remove references to removed globals.
564 (resume): Adjust to use thread_has_single_step_breakpoints_set and
565 delete_single_step_breakpoints.
566 (init_wait_for_inferior): Remove references to removed globals.
567 (delete_thread_infrun_breakpoints): Delete the thread's
568 single-step breakpoints too.
569 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
570 single-step breakpoints here.
571 (delete_stopped_threads_single_step_breakpoints): New function.
572 (adjust_pc_after_break): Adjust to use
573 thread_has_single_step_breakpoints_set.
574 (handle_inferior_event): Remove references to removed globals.
575 Use delete_stopped_threads_single_step_breakpoints.
576 (handle_signal_stop): Adjust to per-thread single-step
577 breakpoints. Swap test order to do cheaper tests first.
578 (switch_back_to_stepped_thread): Extend debug output. Remove
579 references to removed globals.
580 * record-full.c (record_full_wait_1): Adjust to per-thread
581 single-step breakpoints.
582 * thread.c (delete_single_step_breakpoints)
583 (thread_has_single_step_breakpoints_set)
584 (thread_has_single_step_breakpoint_here): New functions.
585 (clear_thread_inferior_resources): Also delete the thread's
586 single-step breakpoints.
588 2014-10-15 Pedro Alves <palves@redhat.com>
590 * thread.c (delete_thread_breakpoint): New function.
591 (delete_step_resume_breakpoint)
592 (delete_exception_resume_breakpoint): Use it.
593 (delete_at_next_stop): New function.
594 (clear_thread_inferior_resources): Use delete_at_next_stop.
596 2014-10-15 Pedro Alves <palves@redhat.com>
598 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
599 (breakpoint_inserted_here_p): ... here. Remove special case for
600 software single-step breakpoints.
601 (find_non_raw_software_breakpoint_inserted_here): Inline ...
602 (software_breakpoint_inserted_here_p): ... here. Remove special
603 case for software single-step breakpoints.
604 (bp_target_info_copy_insertion_state)
605 (deprecated_insert_raw_breakpoint)
606 (deprecated_remove_raw_breakpoint): Delete functions.
607 * breakpoint.h (deprecated_insert_raw_breakpoint)
608 (deprecated_remove_raw_breakpoint): Remove declarations.
610 2014-10-15 Pedro Alves <palves@redhat.com>
613 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
614 Delete array globals.
615 (single_step_breakpoints): New global.
616 (breakpoint_xfer_memory): Remove special handling for single-step
618 (update_breakpoints_after_exec): Delete bp_single_step
620 (detach_breakpoints): Remove special handling for single-step
622 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
623 (bpstat_stop_status): Add comment.
624 (bpstat_what, bptype_string, print_one_breakpoint_location)
625 (adjust_breakpoint_address, init_bp_location): Handle
627 (new_single_step_breakpoint): New function.
628 (set_momentary_breakpoint, bkpt_remove_location): Remove special
629 handling for single-step breakpoints.
630 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
631 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
633 (detach_single_step_breakpoints, find_single_step_breakpoint):
635 (breakpoint_has_location_inserted_here): New function.
636 (single_step_breakpoint_inserted_here_p): Rewrite.
637 * breakpoint.h: Remove FIXME.
638 (enum bptype) <bp_single_step>: New enum value.
639 (insert_single_step_breakpoint): Update comment.
640 * infrun.c (resume_cleanups)
641 (delete_step_thread_step_resume_breakpoint): Remove single-step
643 (fetch_inferior_event): Install a cleanup that removes infrun
645 (switch_back_to_stepped_thread) <expect thread advanced also>:
646 Clear step-over info.
648 2014-10-15 Pedro Alves <palves@redhat.com>
650 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
651 (delete_thread_infrun_breakpoints): New function, with parts
652 salvaged from delete_step_resume_breakpoint_callback.
653 (delete_step_thread_step_resume_breakpoint): Delete.
654 (for_each_just_stopped_thread_callback_func): New typedef.
655 (for_each_just_stopped_thread): New function.
656 (delete_just_stopped_threads_infrun_breakpoints): New function.
657 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
658 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
660 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
662 2014-10-15 Pedro Alves <palves@redhat.com>
664 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
665 trying to step past a non-steppable watchpoint.
666 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
668 * infrun.c (struct step_over_info): Add new field
669 'nonsteppable_watchpoint_p' and adjust comments.
670 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
672 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
673 (stepping_past_nonsteppable_watchpoint): New function.
674 (step_over_info_valid_p): Also return true if stepping past a
675 nonsteppable watchpoint.
676 (proceed): Adjust call to set_step_over_info. Remove reference to
678 (init_wait_for_inferior): Remove reference to init_infwait_state.
679 (waiton_ptid): Delete global.
680 (struct execution_control_state)
681 <stepped_after_stopped_by_watchpoint>: Delete field.
682 (wait_for_inferior, fetch_inferior_event): Always pass
683 minus_one_ptid to target_wait.
684 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
686 (init_infwait_state): Delete function.
687 (handle_inferior_event): Remove infwait_state handling.
688 (handle_signal_stop) <watchpoints handling>: Adjust after
689 stepped_after_stopped_by_watchpoint removal. Don't remove
690 breakpoints here nor set infwait_state. Set the thread's
691 stepping_over_watchpoint flag, and call keep_going instead.
692 (keep_going): Handle stepping_over_watchpoint. Adjust
693 set_step_over_info calls.
694 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
697 2014-10-15 Pedro Alves <palves@redhat.com>
699 * infrun.c (step_over_info_valid_p): New function.
700 (resume): Use step_over_info_valid_p instead of checking the
701 threads's trap_expected flag.
703 2014-10-15 Doug Evans <dje@google.com>
704 Walfred Tedeschi <walfred.tedeschi@intel.com>
707 * python/lib/gdb/__init__.py (packages): Add "printer".
708 * python/lib/gdb/command/bound_registers.py: Moved to ...
709 * python/lib/gdb/printer/bound_registers.py: ... here.
710 Add printer to global set of builtin printers. Rename printer from
711 "bound" to "mpx_bound128".
712 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
713 registered as global "builtin" printer.
714 (add_builtin_pretty_printer): New function.
715 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
716 gdb/printer/__init__.py.
718 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
720 * Makefile.in (SFILES): Remove d-support.c.
721 (COMMON_OBS): Remove d-support.o.
722 * d-lang.h (d_parse_symbol): Remove declaration.
723 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
724 * d-support.c: Remove file.
726 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
728 * gdb/infrun.c (process_event_stop_test): Apply
729 gdbarch_addr_bits_remove to longjmp resume address.
731 2014-10-15 Pedro Alves <palves@redhat.com>
733 * regformats/microblaze.dat: Delete file.
735 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
737 * features/Makefile (microblaze-expedite): Replace pc with rpc.
738 * regformats/microblaze-with-stack-protect.dat: Regenerate.
740 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
742 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
745 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
749 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
752 2014-10-14 Joel Brobecker <brobecker@adacore.com>
754 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
755 of the case where the second operand is a pointer.
756 <BINOP_SUB>: Likewise.
758 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
760 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
761 only if it is not NULL.
762 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
763 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
764 (struct probe_ops) <clear_semaphore>: Likewise.
765 * tracepoint.c (start_tracing): Call set_semaphore only if it is
767 (stop_tracing): Likewise, for clear_semaphore.
769 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
771 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
772 using language_c, instead of current_language.
774 2014-10-13 Doug Evans <dje@google.com>
776 * python/py-objfile.c (objfpy_initialize): New function.
777 (objfpy_new, objfile_to_objfile_object): Call it.
778 * python/py-progspace.c (pspy_initialize): New function.
779 (pspy_new, pspace_to_pspace_object): Call it.
781 2014-10-13 Miroslav Franc <mfranc@redhat.com>
782 Jan Kratochvil <jan.kratochvil@redhat.com>
784 Fix "save breakpoints" for "catch" command.
785 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
788 2014-10-12 Miroslav Franc <mfranc@redhat.com>
790 Fix "save breakpoints" for "disable $bpnum" command.
791 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
793 2014-10-10 Pedro Alves <palves@redhat.com>
795 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
796 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
797 (HFILES_NO_SRCDIR): Remove solib-irix.h.
798 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
800 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
801 * configure.ac: Remove references to IRIX.
802 * configure.host: Add *-*-irix* to the obsolete hosts section.
803 Remove all other references to irix.
804 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
807 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
809 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
810 isn't valid, release the tdesc arch data and return NULL.
812 2014-10-10 Pedro Alves <palves@redhat.com>
814 * linux-tdep.c: Include observer.h.
815 (linux_inferior_data): New global.
816 (struct linux_info): New structure.
817 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
818 (get_linux_inferior_data): New functions.
819 (linux_vsyscall_range): Rename to ...
820 (linux_vsyscall_range_raw): ... this.
821 (linux_vsyscall_range): New function; handles caching.
822 (_initialize_linux_tdep): Register linux_inferior_data. Install
823 inferior_exit and inferior_appeared observers.
825 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
826 Pedro Alves <palves@redhat.com>
829 * solib-svr4.c (svr4_read_so_list): Rename to ...
830 (svr4_current_sos_1): ... this and change the function comment.
831 (svr4_current_sos): New function.
833 2014-10-10 Pedro Alves <palves@redhat.com>
835 * arch-utils.c (default_vsyscall_range): New function.
836 * arch-utils.h (default_vsyscall_range): New declaration.
837 * gdbarch.sh (vsyscall_range): New hook.
838 * gdbarch.h, gdbarch.c: Regenerate.
839 * linux-tdep.c (linux_vsyscall_range): New function.
840 (linux_init_abi): Install linux_vsyscall_range as
841 vsyscall_range gdbarch hook.
842 * memrange.c (address_in_mem_range): New function.
843 * memrange.h (address_in_mem_range): New declaration.
844 * symfile-mem.c (find_vdso_size): Delete function.
845 (add_vsyscall_page): Use gdbarch_vsyscall_range.
847 2014-10-10 Pedro Alves <palves@redhat.com>
849 * infrun.c (normal_stop): Fix typo in comment.
851 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
854 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
855 typo when using logical AND to determine instruction type.
857 2014-10-09 Yao Qi <yao@codesourcery.com>
859 * infrun.c (handle_signal_stop): Remove local variable
862 2014-10-08 Stan Shebs <stan@codesourcery.com>
864 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
866 2014-10-08 Gary Benson <gbenson@redhat.com>
868 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
870 2014-10-08 Gary Benson <gbenson@redhat.com>
872 * common/common-defs.h: Include common-exceptions.h.
873 * exceptions.h: Do not include common-exceptions.h.
875 2014-10-08 Gary Benson <gbenson@redhat.com>
877 * common/common-defs.h: Include cleanups.h.
878 * common/common-exceptions.c: Do not include cleanups.h.
881 2014-10-08 Gary Benson <gbenson@redhat.com>
883 * ada-lang.c: Do not include exceptions.h.
884 * ada-valprint.c: Likewise.
885 * amd64-tdep.c: Likewise.
886 * auto-load.c: Likewise.
888 * break-catch-throw.c: Likewise.
889 * breakpoint.c: Likewise.
890 * btrace.c: Likewise.
891 * c-lang.c: Likewise.
892 * cli/cli-cmds.c: Likewise.
893 * cli/cli-interp.c: Likewise.
894 * cli/cli-script.c: Likewise.
895 * completer.c: Likewise.
896 * corefile.c: Likewise.
897 * corelow.c: Likewise.
898 * cp-abi.c: Likewise.
899 * cp-support.c: Likewise.
900 * cp-valprint.c: Likewise.
901 * darwin-nat.c: Likewise.
902 * dwarf2-frame-tailcall.c: Likewise.
903 * dwarf2-frame.c: Likewise.
904 * dwarf2loc.c: Likewise.
905 * dwarf2read.c: Likewise.
907 * event-loop.c: Likewise.
908 * event-top.c: Likewise.
909 * f-valprint.c: Likewise.
910 * frame-unwind.c: Likewise.
912 * gdbtypes.c: Likewise.
913 * gnu-v2-abi.c: Likewise.
914 * gnu-v3-abi.c: Likewise.
915 * guile/scm-auto-load.c: Likewise.
916 * guile/scm-breakpoint.c: Likewise.
917 * guile/scm-cmd.c: Likewise.
918 * guile/scm-frame.c: Likewise.
919 * guile/scm-lazy-string.c: Likewise.
920 * guile/scm-param.c: Likewise.
921 * guile/scm-symbol.c: Likewise.
922 * guile/scm-type.c: Likewise.
923 * hppa-hpux-tdep.c: Likewise.
924 * i386-tdep.c: Likewise.
925 * inf-loop.c: Likewise.
926 * infcall.c: Likewise.
927 * infcmd.c: Likewise.
928 * infrun.c: Likewise.
929 * interps.c: Likewise.
930 * interps.h: Likewise.
932 * linespec.c: Likewise.
933 * linux-nat.c: Likewise.
934 * linux-thread-db.c: Likewise.
935 * m32r-rom.c: Likewise.
937 * memory-map.c: Likewise.
938 * mi/mi-cmd-break.c: Likewise.
939 * mi/mi-cmd-stack.c: Likewise.
940 * mi/mi-interp.c: Likewise.
941 * mi/mi-main.c: Likewise.
942 * monitor.c: Likewise.
943 * nto-procfs.c: Likewise.
944 * objc-lang.c: Likewise.
945 * p-valprint.c: Likewise.
947 * ppc-linux-tdep.c: Likewise.
948 * printcmd.c: Likewise.
950 * python/py-auto-load.c: Likewise.
951 * python/py-breakpoint.c: Likewise.
952 * python/py-cmd.c: Likewise.
953 * python/py-finishbreakpoint.c: Likewise.
954 * python/py-frame.c: Likewise.
955 * python/py-framefilter.c: Likewise.
956 * python/py-function.c: Likewise.
957 * python/py-gdb-readline.c: Likewise.
958 * python/py-inferior.c: Likewise.
959 * python/py-infthread.c: Likewise.
960 * python/py-lazy-string.c: Likewise.
961 * python/py-linetable.c: Likewise.
962 * python/py-param.c: Likewise.
963 * python/py-prettyprint.c: Likewise.
964 * python/py-symbol.c: Likewise.
965 * python/py-type.c: Likewise.
966 * python/py-value.c: Likewise.
967 * python/python-internal.h: Likewise.
968 * python/python.c: Likewise.
969 * record-btrace.c: Likewise.
970 * record-full.c: Likewise.
971 * regcache.c: Likewise.
972 * remote-fileio.c: Likewise.
973 * remote-mips.c: Likewise.
974 * remote.c: Likewise.
975 * rs6000-aix-tdep.c: Likewise.
976 * rs6000-nat.c: Likewise.
978 * solib-darwin.c: Likewise.
979 * solib-dsbt.c: Likewise.
980 * solib-frv.c: Likewise.
981 * solib-ia64-hpux.c: Likewise.
982 * solib-spu.c: Likewise.
983 * solib-svr4.c: Likewise.
985 * spu-tdep.c: Likewise.
987 * stap-probe.c: Likewise.
988 * symfile-mem.c: Likewise.
989 * symmisc.c: Likewise.
990 * target.c: Likewise.
991 * thread.c: Likewise.
993 * tracepoint.c: Likewise.
994 * tui/tui-interp.c: Likewise.
995 * typeprint.c: Likewise.
997 * valarith.c: Likewise.
998 * valops.c: Likewise.
999 * valprint.c: Likewise.
1000 * value.c: Likewise.
1001 * varobj.c: Likewise.
1002 * windows-nat.c: Likewise.
1003 * xml-support.c: Likewise.
1005 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1007 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1009 (extended_mips16_next_pc): Update accordingly.
1011 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1013 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1015 (micromips_instruction_is_compact_branch): Likewise.
1016 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1017 or a compact jump, reaching a jump delay slot, or seeing a
1018 second non-prologue instruction.
1019 (micromips_scan_prologue): Also terminate scanning upon seeing a
1020 compact branch or jump, or reaching a branch or jump delay slot.
1021 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1022 or jump delay slot, or seeing a second non-prologue instruction.
1023 (mips32_instruction_has_delay_slot): Retain instruction
1024 examination code only, update arguments accordingly and move
1025 instruction fetch pieces to...
1026 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1027 (micromips_instruction_has_delay_slot): Likewise and to...
1028 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1029 (mips16_instruction_has_delay_slot): Likewise and to...
1030 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1031 (mips_single_step_through_delay): Update accordingly.
1032 (mips_adjust_breakpoint_address): Likewise.
1034 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1036 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1037 !mustbe32 also return 1 for 32-bit instructions.
1038 (mips16_instruction_has_delay_slot): Likewise. Add an
1039 explanatory comment.
1041 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1043 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1046 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1048 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1050 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1051 for the breakpoint's address. Don't preinitialize `placed_size'.
1052 (insert_bp_location): Set `reqstd_address' rather than
1054 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1055 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1057 (bkpt_remove_location): Likewise.
1058 (deprecated_insert_raw_breakpoint): Likewise.
1059 (deprecated_remove_raw_breakpoint): Likewise.
1060 (find_single_step_breakpoint): Likewise.
1061 * mem-break.c (default_memory_insert_breakpoint): Use
1062 `reqstd_address' for the breakpoint's address. Don't set
1063 `placed_address' or `placed_size' if breakpoint contents couldn't
1064 have been determined.
1065 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1066 the breakpoint's address.
1067 (remote_insert_hw_breakpoint): Likewise. Don't set
1068 `placed_address' or `placed_size' if breakpoint couldn't have been
1070 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1071 `reqstd_address' for the breakpoint's address.
1072 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1073 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1074 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1075 * microblaze-linux-tdep.c
1076 (microblaze_linux_memory_remove_breakpoint): Likewise.
1077 * monitor.c (monitor_insert_breakpoint): Likewise.
1078 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1079 (procfs_insert_hw_breakpoint): Likewise.
1080 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1081 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1082 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1083 * remote-mips.c (mips_insert_breakpoint): Likewise.
1084 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1086 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1088 * valops.c (value_assign): Check for bit field assignments
1089 before calling architecture-specific register value
1090 conversion functions.
1092 2014-10-03 Pierre Muller <muller@sourceware.org>
1094 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1096 2014-10-02 Pedro Alves <palves@redhat.com>
1098 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1099 threads_are_executing.
1100 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1102 * gdbthread.h (threads_are_executing): Declare.
1103 (handle_signal_stop) <random signals>: Don't print about the
1104 signal here if stopping.
1105 (end_stepping_range): Don't notify observers here.
1106 (normal_stop): Update the thread list. If stopped by a random
1107 signal or a stepping range ended, notify observers.
1108 * thread.c (threads_executing): New global.
1109 (init_thread_list): Clear 'threads_executing'.
1110 (set_executing): Set or clear 'threads_executing'.
1111 (threads_are_executing): New function.
1112 (update_threads_executing): New function.
1113 (update_thread_list): Use it.
1115 2014-10-02 Pedro Alves <palves@redhat.com>
1117 PR breakpoints/17431
1118 * breakpoint.c (update_breakpoints_after_exec): Don't create
1119 overlay, longjmp, std terminate nor exception breakpoints here.
1121 2014-10-02 Pedro Alves <palves@redhat.com>
1123 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1125 * inferior.c (find_inferior_for_program_space): Give preference to
1126 the current inferior.
1127 * inferior.h (find_inferior_for_program_space): Update comment.
1128 * progspace.c (switch_to_program_space_and_thread): Prefer the
1129 current inferior if it's bound to the program space requested. If
1130 the inferior found doesn't have a PID yet, don't bother looking up
1132 * progspace.h (switch_to_program_space_and_thread): Adjust
1134 * thread.c (any_thread_of_process, any_live_thread_of_process):
1135 Give preference to the current thread.
1137 2014-10-01 Pedro Alves <palves@redhat.com>
1139 * breakpoint.c (insert_bp_location): Error out if inserting a
1140 software breakpoint at a read-only address.
1141 * target.c (memory_xfer_check_region): New function, factored out
1143 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1145 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1146 against the memory region attributes.
1148 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1150 * NEWS: Announce new exit-code field in -list-thread-groups
1152 * inferior.c (exit_inferior_1): Don't clear exit code.
1153 (inferior_appeared): Clear exit code.
1154 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1157 2014-10-01 Pedro Alves <palves@redhat.com>
1159 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1160 GENERATED" along with emacs/vi read-only markers.
1161 * regformats/aarch64.dat: Regenerate.
1162 * regformats/arm-with-iwmmxt.dat: Regenerate.
1163 * regformats/arm-with-neon.dat: Regenerate.
1164 * regformats/arm-with-vfpv2.dat: Regenerate.
1165 * regformats/arm-with-vfpv3.dat: Regenerate.
1166 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1167 * regformats/i386/amd64-avx.dat: Regenerate.
1168 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1169 * regformats/i386/amd64-avx512.dat: Regenerate.
1170 * regformats/i386/amd64-linux.dat: Regenerate.
1171 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1172 * regformats/i386/amd64-mpx.dat: Regenerate.
1173 * regformats/i386/amd64.dat: Regenerate.
1174 * regformats/i386/i386-avx-linux.dat: Regenerate.
1175 * regformats/i386/i386-avx.dat: Regenerate.
1176 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1177 * regformats/i386/i386-avx512.dat: Regenerate.
1178 * regformats/i386/i386-linux.dat: Regenerate.
1179 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1180 * regformats/i386/i386-mmx.dat: Regenerate.
1181 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1182 * regformats/i386/i386-mpx.dat: Regenerate.
1183 * regformats/i386/i386.dat: Regenerate.
1184 * regformats/i386/x32-avx-linux.dat: Regenerate.
1185 * regformats/i386/x32-avx.dat: Regenerate.
1186 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1187 * regformats/i386/x32-avx512.dat: Regenerate.
1188 * regformats/i386/x32-linux.dat: Regenerate.
1189 * regformats/i386/x32.dat: Regenerate.
1190 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1191 * regformats/mips-dsp-linux.dat: Regenerate.
1192 * regformats/mips-linux.dat: Regenerate.
1193 * regformats/mips64-dsp-linux.dat: Regenerate.
1194 * regformats/mips64-linux.dat: Regenerate.
1195 * regformats/nios2-linux.dat: Regenerate.
1196 * regformats/rs6000/powerpc-32.dat: Regenerate.
1197 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1198 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1199 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1200 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1201 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1202 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1203 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1204 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1205 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1206 * regformats/s390-linux32.dat: Regenerate.
1207 * regformats/s390-linux32v1.dat: Regenerate.
1208 * regformats/s390-linux32v2.dat: Regenerate.
1209 * regformats/s390-linux64.dat: Regenerate.
1210 * regformats/s390-linux64v1.dat: Regenerate.
1211 * regformats/s390-linux64v2.dat: Regenerate.
1212 * regformats/s390-te-linux64.dat: Regenerate.
1213 * regformats/s390x-linux64.dat: Regenerate.
1214 * regformats/s390x-linux64v1.dat: Regenerate.
1215 * regformats/s390x-linux64v2.dat: Regenerate.
1216 * regformats/s390x-te-linux64.dat: Regenerate.
1217 * regformats/tic6x-c62x-linux.dat: Regenerate.
1218 * regformats/tic6x-c62x.dat: Regenerate.
1219 * regformats/tic6x-c64x-linux.dat: Regenerate.
1220 * regformats/tic6x-c64x.dat: Regenerate.
1221 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1222 * regformats/tic6x-c64xp.dat: Regenerate.
1224 2014-10-01 Pedro Alves <palves@redhat.com>
1226 * features/Makefile: Update comments.
1227 (XMLTOC): List all xml files we build C files from.
1228 (clean-cfiles): New rule.
1230 2014-10-01 Pedro Alves <palves@redhat.com>
1232 * features/i386/amd64-avx512-linux.c: Regenerate.
1233 * features/i386/amd64-avx512.c: Regenerate.
1234 * features/i386/x32-avx512-linux.c: Regenerate.
1235 * features/i386/x32-avx512.c: Regenerate.
1237 2014-10-01 Pedro Alves <palves@redhat.com>
1239 * features/Makefile (WHICH): Remove arm-with-m,
1240 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1242 2014-10-01 Pedro Alves <palves@redhat.com>
1244 * features/Makefile (clean): New rule.
1246 2014-10-01 Pedro Alves <palves@redhat.com>
1248 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1249 (zmm14h): Add missing end quotes.
1251 2014-10-01 Pedro Alves <palves@redhat.com>
1253 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1254 * features/aarch64.c: Regenerate.
1256 2014-09-30 Don Breazeal <donb@codesourcery.com>
1258 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1259 code so as to work with follow_fork_inferior.
1260 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1261 (inf_ttrace_create_inferior): Remove reference to
1262 inf_ttrace_vfork_ppid.
1263 (inf_ttrace_attach): Ditto.
1264 (inf_ttrace_detach): Ditto.
1265 (inf_ttrace_kill): Use current_inferior instead of
1266 inf_ttrace_vfork_ppid.
1267 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1268 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1269 inferior away from the parent.
1270 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1272 (follow_fork_inferior): New function.
1273 (follow_inferior_reset_breakpoints): Make function static.
1274 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1275 * linux-nat.c (linux_child_follow_fork): Move target-independent
1276 code to infrun.c:follow_fork_inferior.
1278 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1280 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1281 * gdbarch.c: Regenerate.
1282 * gdbarch.h: Likewise.
1283 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1284 gdbarch method 'regset_from_core_section'.
1285 (get_core_register_section): Remove handling for the case that
1286 regset == NULL and regset_from_core_section is defined.
1287 (get_core_registers): Drop check for deleted method.
1288 * procfs.c (procfs_do_thread_registers): Adjust comment.
1290 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1292 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1293 (linux_nat_make_corefile_notes): Remove.
1294 (linux_target_install_ops): Do not set target method
1295 'make_corefile_notes'.
1296 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1298 (linux_corefile_thread_callback): Instead of args->collect, call
1299 linux_collect_thread_registers.
1300 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1301 NULL unless there is a regset iterator.
1302 (linux_make_corefile_notes_1): Remove.
1303 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1304 by linux_make_corefile_notes.
1305 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1307 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1309 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1310 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1312 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1314 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1316 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1317 (xtensa_iterate_over_regset_sections): New.
1318 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1320 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1322 * vax-tdep.c (vax_regset_from_core_section): Remove.
1323 (vax_iterate_over_regset_sections): New.
1324 (vax_gdbarch_init): Adjust gdbarch initialization.
1326 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1328 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1329 (tilegx_regset_from_core_section): Remove.
1330 (tilegx_iterate_over_regset_sections): New.
1331 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1333 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1335 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1336 (sparc_iterate_over_regset_sections): New.
1337 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1338 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1340 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1341 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1342 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1343 target method 'make_corefile_notes'.
1345 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1347 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1348 'sizeof_gregset' and 'sizeof_fpregset'.
1349 * sh-tdep.c (sh_regset_from_core_section): Remove.
1350 (sh_iterate_over_regset_sections): New.
1351 (sh_gdbarch_init): Adjust gdbarch initialization.
1352 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1354 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1357 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1359 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1360 (score7_linux_iterate_over_regset_sections): New.
1361 (score_gdbarch_init): Adjust gdbarch initialization.
1363 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1365 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1367 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1368 method 'make_corefile_notes'.
1369 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1370 (ppcfbsd_regset_from_core_section): Remove.
1371 (ppcfbsd_iterate_over_regset_sections): New.
1372 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1374 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1375 (ppcnbsd_iterate_over_regset_sections): New.
1376 (ppcnbsd_init_abi): Adjust.
1377 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1378 (ppcobsd_iterate_over_regset_sections): New.
1379 (ppcobsd_init_abi): Adjust.
1380 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1381 (rs6000_aix_iterate_over_regset_sections): New.
1382 (rs6000_aix_init_osabi): Adjust.
1384 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1386 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1387 (nios2_regset_from_core_section): Remove.
1388 (nios2_iterate_over_regset_sections): New.
1389 (nios2_linux_init_abi): Adjust gdbarch initialization.
1391 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1393 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1394 (am33_iterate_over_regset_sections): New.
1395 (am33_linux_init_osabi): Adjust gdbarch initialization.
1397 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1399 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1400 (mips_linux_iterate_over_regset_sections): New.
1401 (mips_linux_init_abi): Adjust gdbarch initialization.
1402 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1403 (mips64obsd_iterate_over_regset_sections): New.
1404 (mips64obsd_init_abi): Adjust.
1405 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1406 (mipsnbsd_iterate_over_regset_sections): New.
1407 (mipsnbsd_init_abi): Adjust.
1409 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1411 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1412 (m88k_iterate_over_regset_sections): New.
1413 (m88k_gdbarch_init): Adjust gdbarch initialization.
1415 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1417 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1418 (ia64_linux_iterate_over_regset_sections): New.
1419 (ia64_linux_init_abi): Adjust gdbarch initialization.
1421 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1423 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1424 (m68kbsd_iterate_over_regset_sections): New.
1425 (m68kbsd_init_abi): Adjust gdbarch initialization.
1426 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1427 (m68k_linux_iterate_over_regset_sections): New.
1428 (m68k_linux_init_abi): Adjust gdbarch initialization.
1430 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1432 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1433 (m32r_linux_regset_from_core_section): Remove.
1434 (m32r_linux_iterate_over_regset_sections): New.
1435 (m32r_linux_init_abi): Adjust gdbarch initialization.
1437 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1439 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1440 (amd64obsd_iterate_over_regset_sections): New.
1441 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1442 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1444 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1445 regset_from_core_section initialization.
1446 * i386-tdep.c (i386_regset_from_core_section): Remove.
1447 (i386_iterate_over_regset_sections): New.
1448 (i386_gdbarch_init): Adjust gdbarch initialization.
1449 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1450 (i386_iterate_over_regset_sections): New prototype.
1451 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1453 (i386obsd_aout_iterate_over_regset_sections): New.
1454 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1455 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1457 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1458 (amd64fbsd_init_abi): Call fbsd_init_abi.
1459 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1460 (i386fbsd4_init_abi): Call fbsd_init_abi.
1461 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1462 target method 'make_corefile_notes'.
1463 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1465 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1467 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1468 (hppa_hpux_iterate_over_regset_sections): New.
1469 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1470 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1471 (hppa_linux_iterate_over_regset_sections): New.
1472 (hppa_linux_init_abi): Adjust.
1473 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1474 (hppanbsd_iterate_over_regset_sections): New.
1475 (hppanbsd_init_abi): Adjust.
1476 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1477 (hppaobsd_iterate_over_regset_sections): New.
1478 (hppaobsd_init_abi): Adjust.
1480 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1482 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1483 (frv_linux_iterate_over_regset_sections): New.
1484 (frv_linux_init_abi): Adjust gdbarch initialization.
1486 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1488 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1489 (armbsd_iterate_over_regset_sections): New prototype.
1490 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1491 (armbsd_iterate_over_regset_sections): New.
1492 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1495 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1497 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1498 (alpha_linux_iterate_over_regset_sections): New.
1499 (alpha_linux_init_abi): Adjust gdbarch initialization.
1500 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1502 (alphanbsd_iterate_over_regset_sections): New prototype.
1504 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1506 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1508 (aarch64_linux_iterate_over_regset_sections): New.
1509 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1511 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1513 * fbsd-tdep.c: New file.
1514 * fbsd-tdep.h: New file.
1515 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1516 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1517 (ALLDEPFILES): Add fbsd-tdep.c.
1519 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1521 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1523 * gdbarch.h: Regenerate.
1524 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1526 (get_core_register_section): Add parameter 'regset' and use it, if
1527 set. Add parameter 'min_size' and verify the bfd section size
1529 (get_core_registers_cb): Add parameter 'regset' and pass it to
1530 get_core_register section. For the "standard" register sections
1531 ".reg" and ".reg2", set an appropriate default for human_name.
1532 (get_core_registers): Don't abort when the gdbarch has an iterator
1533 but no regset_from_core_section. Add NULL/0 for parameters
1534 'regset'/'min_size' in calls to get_core_register_section.
1535 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1536 'regset' and use it instead of calling the
1537 regset_from_core_section gdbarch method.
1538 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1539 * i386-tdep.c (i386_supply_xstateregset)
1540 (i386_collect_xstateregset, i386_xstateregset): Moved to
1542 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1544 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1545 core file support only if the regset iterator hasn't been set.
1546 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1547 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1548 Moved from i386-tdep.c and renamed to *_linux*.
1549 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1550 each callback invocation. Allow any .reg-xstate size when reading
1552 * amd64-tdep.c (amd64_supply_xstateregset)
1553 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1555 (amd64_regset_from_core_section): Remove.
1556 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1557 install an amd64-specific regset_from_core_section gdbarch method.
1558 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1559 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1560 Moved from amd64-tdep.c and renamed to *_linux*.
1561 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1562 to each callback invocation. Allow any .reg-xstate size when
1563 reading from a core file.
1564 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1565 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1566 each callback invocation.
1567 (arm_linux_init_abi): No longer set the regset_from_core_section
1569 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1570 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1571 each callback invocation.
1572 (ppc_linux_init_abi): No longer set the regset_from_core_section
1574 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1575 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1576 (s390_regset_from_core_section): Remove.
1577 (s390_iterate_over_regset_sections): Add regset parameter to each
1578 callback invocation.
1579 (s390_gdbarch_init): No longer set the regset_from_core_section
1580 gdbarch method. Drop initialization of deleted tdep fields.
1582 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1584 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1585 (amd64_linux_iterate_over_regset_sections): New.
1586 (amd64_linux_init_abi_common): Don't install the regset section
1587 list, but the new iterator in gdbarch.
1588 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1589 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1590 (arm_linux_iterate_over_regset_sections): ...here. New function.
1591 (arm_linux_init_abi): Set iterator instead of section list.
1592 * corelow.c (get_core_registers_cb): New function, logic moved
1594 (get_core_registers): ...loop body here. Use new iterator method
1595 instead of walking through the regset section list.
1596 * gdbarch.sh: Remove 'core_regset_sections'. New method
1597 'iterate_over_regset_sections'. New typedef
1598 'iterate_over_regset_sections_cb'.
1599 * gdbarch.c: Regenerate.
1600 * gdbarch.h: Likewise.
1601 * i386-linux-tdep.c (i386_linux_regset_sections)
1602 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1604 (i386_linux_iterate_over_regset_sections): New.
1605 (i386_linux_init_abi): Don't choose a regset section list, but
1606 install new iterator in gdbarch.
1607 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1608 (linux_collect_regset_section_cb): New function, logic moved
1610 (linux_collect_thread_registers): ...loop body here. Use iterator
1611 method instead of walking through list.
1612 (linux_make_corefile_notes_1): Check for presence of iterator
1613 method instead of regset section list.
1614 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1615 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1616 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1617 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1618 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1619 (ppc_linux_init_abi): Don't choose from above regset section
1620 lists, but install new iterator in gdbarch.
1621 * regset.h (struct core_regset_section): Remove.
1622 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1623 have_linux_v1, have_linux_v2, and have_tdb.
1624 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1625 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1626 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1627 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1628 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1629 (s390_iterate_over_regset_sections): ...here. New function. Use
1631 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1632 regset section lists, but install new iterator.
1634 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1636 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1638 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1640 * progspace.c (print_program_space): Don't prune program spaces
1641 before printing them.
1643 2014-09-25 Pedro Alves <palves@redhat.com>
1645 * infrun.c (user_visible_resume_ptid): Don't check
1646 singlestep_breakpoints_inserted_p.
1648 2014-09-25 Pedro Alves <palves@redhat.com>
1650 * breakpoint.c (should_be_inserted): Add debug output.
1652 2014-09-25 Pedro Alves <palves@redhat.com>
1654 * infrun.c (stepping_past_instruction_at)
1655 (clear_exit_convenience_vars): Point at infrun.h instead of
1657 (handle_signal_stop): Fix typo.
1659 2014-09-24 Yao Qi <yao@codesourcery.com>
1661 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1664 2014-09-22 Gary Benson <gbenson@redhat.com>
1666 * target.c (target_stop): Updated comment.
1668 2014-09-22 Gary Benson <gbenson@redhat.com>
1670 * target/target.h (target_stop_ptid): Renamed as...
1671 (target_stop_and_wait): New function. Updated comment.
1673 (target_continue_ptid): Renamed as...
1674 (target_continue_no_signal): New function. Updated comment.
1677 2014-09-22 Pedro Alves <palves@redhat.com>
1679 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1681 * breakpoint.c (enum ugll_insert_mode): New enum.
1682 (always_inserted_mode): Now a plain boolean.
1683 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1684 (breakpoints_always_inserted_mode): Delete.
1685 (breakpoints_should_be_inserted_now): New function.
1686 (insert_breakpoints): Pass UGLL_INSERT to
1687 update_global_location_list instead of calling
1688 insert_breakpoint_locations manually.
1689 (create_solib_event_breakpoint_1): New, factored out from ...
1690 (create_solib_event_breakpoint): ... this.
1691 (create_and_insert_solib_event_breakpoint): Use
1692 create_solib_event_breakpoint_1 instead of calling
1693 insert_breakpoint_locations manually.
1694 (update_global_location_list): Change parameter type from boolean
1695 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1696 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1697 (update_global_location_list_nothrow): Change parameter type from
1698 boolean to enum ugll_insert_mode.
1699 (_initialize_breakpoint): "breakpoint always-inserted" option is
1700 now a boolean command. Update help text.
1701 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1702 (breakpoints_should_be_inserted_now): New declaration.
1703 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1704 Remove breakpoints_always_inserted_mode check.
1705 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1706 * remote.c (remote_start_remote): Likewise.
1708 2014-09-22 Pedro Alves <palves@redhat.com>
1710 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1711 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1712 Instead, pass UGLL_INSERT to update_global_location_list.
1713 (update_global_location_list): Change parameter type from boolean
1714 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1715 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1716 (create_solib_event_breakpoint_1): New, factored out from ...
1717 (create_solib_event_breakpoint): ... this.
1718 (create_and_insert_solib_event_breakpoint): Use
1719 create_solib_event_breakpoint_1 instead of calling
1720 insert_breakpoint_locations manually.
1721 (update_global_location_list): Handle UGLL_INSERT.
1723 2014-09-22 Pedro Alves <palves@redhat.com>
1725 * breakpoint.c (enum ugll_insert_mode): New enum.
1726 (update_global_location_list)
1727 (update_global_location_list_nothrow): Change parameter type from
1728 boolean to enum ugll_insert_mode. All callers adjusted.
1730 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1732 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1733 SystemTap support in GDB.
1735 2014-09-19 Don Breazeal <donb@codesourcery.com>
1737 * linux-nat.c (linux_handle_extended_wait): Call
1738 linux_ptrace_get_extended_event.
1739 (wait_lwp): Call linux_is_extended_waitstatus.
1740 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1741 and linux_is_extended_waitstatus.
1742 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1743 linux_ptrace_get_extended_event.
1744 (linux_ptrace_get_extended_event): New function.
1745 (linux_is_extended_waitstatus): New function.
1746 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1747 (linux_is_extended_waitstatus): New declarations.
1749 2014-09-19 Yao Qi <yao@codesourcery.com>
1751 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1752 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1753 comments. Callers update.
1754 (dwarf_decode_lines): Likewise.
1755 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1756 comments. Skip the line table if 'lowpc' is greater than
1757 'address'. Don't check
1758 dwarf2_per_objfile->has_section_at_zero.
1760 2014-09-18 Doug Evans <dje@google.com>
1762 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1763 * python/py-symtab.c (stpy_get_producer): New function.
1764 (symtab_object_getset): Add "producer" attribute.
1766 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1769 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1770 (do_captured_read_memory_integer): Remove.
1771 (safe_read_memory_integer): Use target_read_memory directly instead
1772 of catching errors in do_captured_read_memory_integer.
1774 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1776 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1779 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1781 * objc-lang.c (find_implementation_from_class): Remove dead code.
1783 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1786 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1787 "fprintf_unfiltered (gdb_stdlog...)".
1789 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1791 PR breakpoints/12526
1792 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1794 * breakpoint.c (watch_command_1): Use these fields to retain
1795 bitfield information.
1796 (extract_bitfield_from_watchpoint_value): New function.
1797 (watchpoint_check): Use it.
1798 (update_watchpoint): Use it. Optimize the address and length of a
1799 HW watchpoint pointing to a bitfield.
1800 * value.h (unpack_value_bitfield): New prototype.
1801 * value.c (unpack_value_bitfield): Make extern.
1803 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1805 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1807 * gnu-nat.c (inf_threads): New function.
1808 * gnu-nat.h (inf_threads_ftype): New typedef.
1809 (inf_threads): New declaration.
1810 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1811 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1812 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1813 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1814 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1815 (i386_gnu_dr_get_control): New functions.
1816 (reg_addr): New structure.
1817 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1818 i386 debugging register hooks.
1819 * NEWS: Mention this.
1821 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1823 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1824 vector data transfer instructions.
1825 (arm_record_coproc_data_proc): Updated.
1827 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1829 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1830 arm_record_exreg_ld_st_insn.
1831 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1834 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1836 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1837 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1838 processing instructions.
1840 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1842 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1843 for advance SIMD struct ld/st insn.
1844 (thumb2_record_decode_insn_handler): Replace stub handler with
1845 thumb2_record_asimd_struct_ld_st.
1847 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1849 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1850 for asimd, vfp and coprocessor insns.
1851 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1852 and coprocessor insns.
1853 (thumb2_record_coproc_insn): New function.
1854 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1856 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1859 2014-09-13 Doug Evans <xdje42@gmail.com>
1861 * NEWS: Mention new "queue-signal" command.
1862 * infcmd.c (queue_signal_command): New function.
1863 (_initialize_infcmd): Add new queue-signal command.
1865 2014-09-13 Doug Evans <xdje42@gmail.com>
1867 * linux-nat.c (wait_lwp): Add debugging printf.
1868 (linux_nat_wait_1): Ditto.
1870 2014-09-12 Pedro Alves <palves@redhat.com>
1872 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1873 (create_and_insert_solib_event_breakpoint): New functions.
1874 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1875 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1876 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1877 (remove_dbx_link_breakpoint): Delete function.
1878 (insert_dbx_link_bpt_in_file): Use
1879 create_and_insert_solib_event_breakpoint instead of
1880 deprecated_insert_raw_breakpoint.
1881 (procfs_wait): Don't check whether we hit __dbx_link here.
1882 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1884 * solib-irix.c (base_breakpoint): Delete global.
1885 (disable_break): Delete function.
1886 (enable_break): Use create_solib_event_breakpoint
1887 instead of deprecated_insert_raw_breakpoint.
1888 (irix_solib_handle_event): New function.
1889 (irix_solib_create_inferior_hook): Don't run the target or disable
1890 the mapping-complete breakpoint here.
1891 (_initialize_irix_solib): Install irix_solib_handle_event as
1892 so_ops->handle_event hook.
1894 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1895 Ulrich Weigand <uweigand@de.ibm.com>
1898 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1899 instead of read_memory_unsigned_integer.
1901 2014-09-12 Gary Benson <gbenson@redhat.com>
1903 * nat/linux-waitpid.c: Include common-defs.h.
1904 [GDBSERVER]: Add FIXME comment.
1905 [!GDBSERVER]: Don't include defs.h or signal.h.
1906 (linux_debug) [!GDBSERVER]: Remove empty block.
1908 2014-09-12 Gary Benson <gbenson@redhat.com>
1910 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1911 Don't include defs.h or server.h.
1913 2014-09-12 Gary Benson <gbenson@redhat.com>
1915 * nat/linux-btrace.c: Include common-defs.h.
1916 Don't include defs.h, server.h or gdbthread.h.
1917 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1919 2014-09-12 Gary Benson <gbenson@redhat.com>
1921 * common/agent.c: Include common-defs.h.
1922 Don't include defs.h or server.h.
1923 * common/buffer.c: Likewise.
1924 * common/common-debug.c: Likewise.
1925 * common/common-utils.c: Likewise.
1926 * common/errors.c: Likewise.
1927 * common/filestuff.c: Likewise.
1928 * common/format.c: Likewise.
1929 * common/gdb_vecs.c: Likewise.
1930 * common/print-utils.c: Likewise.
1931 * common/ptid.c: Likewise.
1932 * common/rsp-low.c: Likewise.
1933 * common/signals.c: Likewise.
1934 * common/vec.c: Likewise.
1935 * common/xml-utils.c: Likewise.
1936 * nat/linux-osdata.c: Likewise.
1937 * nat/linux-procfs.c: Likewise.
1938 * nat/linux-ptrace.c: Likewise.
1939 * nat/mips-linux-watch.c: Likewise.
1940 * target/waitstatus.c: Likewise.
1942 2014-09-12 Tom Tromey <tromey@redhat.com>
1943 Gary Benson <gbenson@redhat.com>
1945 * common/common-regcache.h: New file.
1946 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1947 * regcache.h: Include common-regcache.h.
1948 (regcache_read_pc): Don't declare.
1949 * regcache.c (get_thread_regcache_for_ptid): New function.
1950 * nat/linux-btrace.c: Don't include regcache.h.
1951 Include common-regcache.h.
1952 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1954 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1956 * regcache.h (struct regset): Declare.
1958 2014-09-11 Pedro Alves <palves@redhat.com>
1961 * main.c: Include "infrun.h".
1962 (catch_command_errors, catch_command_errors_const): Wait for the
1963 foreground command to complete.
1964 * top.c (maybe_wait_sync_command_done): New function, factored out
1966 (maybe_wait_sync_command_done): ... here.
1967 * top.h (maybe_wait_sync_command_done): New declaration.
1969 2014-09-11 Tom Tromey <tromey@redhat.com>
1970 Gary Benson <gbenson@redhat.com>
1972 * common/symbol.h: New file.
1973 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1974 * minsyms.c (find_minimal_symbol_address): New function.
1975 * common/agent.c: Include common/symbol.h.
1976 [!GDBSERVER]: Don't include objfiles.h.
1977 (agent_look_up_symbols): Use find_minimal_symbol_address.
1979 2014-09-11 Gary Benson <gbenson@redhat.com>
1981 * target/target.h (target_stop_ptid, target_continue_ptid):
1983 * target.c (target_stop_ptid, target_continue_ptid): New
1985 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1986 (agent_run_command): Always use target_stop_ptid and
1987 target_continue_ptid.
1989 2014-09-11 Tom Tromey <tromey@redhat.com>
1990 Gary Benson <gbenson@redhat.com>
1992 * target/target.h: New file.
1993 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1994 * target.h: Include target/target.h.
1995 (target_read_memory, target_write_memory): Don't declare.
1996 * target.c (target_read_uint32): New function.
1997 * common/agent.c: Include target/target.h.
1998 [!GDBSERVER]: Don't include target.h.
1999 (helper_thread_id): Type changed to uint32_t.
2000 (agent_get_helper_thread_id): Use target_read_uint32.
2001 (agent_run_command): Always use target_read_memory and
2002 target_write_memory.
2003 (agent_capability): Type changed to uint32_t.
2004 (agent_capability_check): Use target_read_uint32.
2006 2014-09-11 Gary Benson <gbenson@redhat.com>
2008 * common/common-debug.h (show_debug_regs): Declare.
2009 * common/common-debug.c (show_debug_regs): Define.
2010 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2011 all uses with show_debug_regs. Replace all uses that considered
2012 debug_hw_points as a multi-value integer with straight boolean
2014 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2015 with show_debug_regs.
2016 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2017 all uses with show_debug_regs.
2018 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2019 uses with show_debug_regs.
2021 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2023 * findvar.c (address_from_register): Handle targets requiring
2024 a special conversion routine even for plain pointer types.
2026 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2028 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2029 (store_register): Do not call exec_one_dummy_insn.
2031 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2033 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2034 dereference it first. Use value_enclosing_type instead of
2036 (ada_array_length): Likewise.
2038 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2040 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2041 Adjust function implementation and documentation accordingly.
2042 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2043 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2044 Update call to ada_value_ptr_subscript.
2046 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2048 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2049 instead of VAL's type.
2051 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2053 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2055 2014-09-09 Doug Evans <xdje42@gmail.com>
2058 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2059 last parameter to pkg-config, not first.
2060 * configure.ac: Pass --with-guile provided pkg-config path to
2061 GDB_GUILE_PROGRAM_NAMES.
2062 * configure: Regenerate.
2064 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2066 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2069 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2071 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2072 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2073 the list of sections determining GDB_OSABI_IRIX.
2075 2014-09-09 James Hogan <james.hogan@imgtec.com>
2077 * MAINTAINERS (Write After Approval): Add "James Hogan".
2079 2014-09-09 James Hogan <james.hogan@imgtec.com>
2081 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2083 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2085 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2087 2014-09-08 Doug Evans <xdje42@gmail.com>
2090 * guile.c: #include <signal.h>.
2091 (_initialize_guile): Block SIGCHLD while initializing Guile.
2093 Replaces the following, which is reverted.
2095 2014-07-26 Doug Evans <xdje42@gmail.com>
2098 * configure.ac: Add check for header gc/gc.h.
2099 Add check for function setenv.
2100 * configure: Regenerate.
2101 * config.in: Regenerate.
2102 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2104 2014-09-08 Doug Evans <xdje42@gmail.com>
2106 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2107 with named constant. Fix style of pointer comparison.
2108 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2110 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2113 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2114 decide whether we display the command on "show user".
2115 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2116 printing command name.
2117 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2118 * cli/cli-decode.c (cli_user_command_p): Create helper function
2119 to verify whether cmd_list_element is a user-defined command.
2121 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2124 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2125 Fix goto out of TRY_CATCH.
2127 2014-09-06 Doug Evans <xdje42@gmail.com>
2128 Tom Tromey <tromey@redhat.com>
2131 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2132 $_any_caller_matches.
2133 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2134 * python/lib/gdb/function/caller_is.py: New file.
2136 2014-09-06 Doug Evans <xdje42@gmail.com>
2138 * infcmd.c (program_info): Fix typo.
2140 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2143 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2144 'number'. New variable 'has_digit'. Rewrite code to deal with
2145 subexpressions on SDT probes.
2147 2014-09-04 Pedro Alves <palves@redhat.com>
2149 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2150 the input is only one character long.
2152 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2155 * f-valprint.c (f_val_print): Specify the correct print option to
2156 use when printing integer values.
2158 2014-09-04 Gary Benson <gbenson@redhat.com>
2160 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2161 Remove code to cope with LWPs wrapped as PIDs.
2162 Add assertions to ensure no wrapped LWPs are passed.
2164 2014-09-04 Pedro Alves <palves@redhat.com>
2166 * value.c (value_ranges_copy_adjusted): New function, factored out
2168 (value_contents_copy_raw): ... here.
2169 (unpack_value_bits_as_long_1): Rename back to ...
2170 (unpack_bits_as_long): ... this. Remove 'original_value' and
2171 'result' parameters. Change return type to LONGEST.
2172 (unpack_value_bits_as_long): Delete.
2173 (unpack_value_field_as_long_1): Delete.
2174 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2175 (unpack_value_bitfield): New function.
2176 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2177 (value_fetch_lazy): Use unpack_value_bitfield.
2178 * value.h (unpack_value_bits_as_long): Delete declaration.
2180 2014-09-03 Sasha Smundak <asmundak@google.com>
2182 * python/py-frame.c (frapy_read_register): New function.
2184 2014-09-03 James Hogan <james.hogan@imgtec.com>
2186 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2187 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2189 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2192 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2194 (add_cmd): Set "completer_handle_brkchars" to NULL.
2195 * cli/cli-decode.h (struct cmd_list_element)
2196 <completer_handle_brkchars>: New field.
2197 * command.h (completer_ftype_void): New typedef.
2198 (set_cmd_completer_handle_brkchars): New prototype.
2199 * completer.c (set_gdb_completion_word_break_characters): New
2201 (complete_line_internal): Call "completer_handle_brkchars"
2202 callback from command.
2203 * completer.h: Include "command.h".
2204 (set_gdb_completion_word_break_characters): New prototype.
2205 * python/py-cmd.c (cmdpy_completer_helper): New function.
2206 (cmdpy_completer_handle_brkchars): New function.
2207 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2208 (cmdpy_init): Set completer_handle_brkchars to
2209 cmdpy_completer_handle_brkchars.
2211 2014-09-03 Gary Benson <gbenson@redhat.com>
2213 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2214 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2215 Loop conditions changed to equivalent form.
2216 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2217 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2218 ALL_DEBUG_ADDRESS_REGISTERS.
2220 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2222 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2225 2014-09-02 Doug Evans <dje@google.com>
2227 * typeprint.c (find_global_typedef): Fix comment.
2229 2014-09-02 Gary Benson <gbenson@redhat.com>
2231 * i386-nat.h: Renamed as...
2232 * x86-nat.h: New file. All type, function and variable name
2233 prefixes changed from "i386_" to "x86_". All references updated.
2234 * i386-nat.c: Renamed as...
2235 * x86-nat.c: New file. All type, function and variable name
2236 prefixes changed from "i386_" to "x86_". All references updated.
2237 * common/i386-xstate.h: Renamed as...
2238 * common/x86-xstate.h: New file. All type, function and variable
2239 name prefixes changed from "i386_" to "x86_". All references
2241 * nat/i386-cpuid.h: Renamed as...
2242 * nat/x86-cpuid.h: New file. All type, function and variable name
2243 prefixes changed from "i386_" to "x86_". All references updated.
2244 * nat/i386-gcc-cpuid.h: Renamed as...
2245 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2246 name prefixes changed from "i386_" to "x86_". All references
2248 * nat/i386-dregs.h: Renamed as...
2249 * nat/x86-dregs.h: New file. All type, function and variable name
2250 prefixes changed from "i386_" to "x86_". All references updated.
2251 * nat/i386-dregs.c: Renamed as...
2252 * nat/x86-dregs.c: New file. All type, function and variable name
2253 prefixes changed from "i386_" to "x86_". All references updated.
2255 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2257 * varobj.c (_initialize_varobj): Move to the end of file.
2259 2014-08-29 Gary Benson <gbenson@redhat.com>
2261 * common/common-exceptions.h: New file.
2262 * common/common-exceptions.c: Likewise.
2263 * Makefile.in (SFILES): Add common/common-exceptions.c.
2264 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2265 (COMMON_OBS): Add common-exceptions.o.
2266 (common-exceptions.o): New rule.
2267 * exceptions.h (common-exceptions.h): Include.
2268 (gdb_setjmp.h): Do not include.
2269 (return_reason): Moved to common-exceptions.h.
2270 (enum return_reason): Likewise.
2271 (RETURN_MASK): Likewise.
2272 (typedef return_mask): Likewise.
2273 (enum errors): Likewise.
2274 (struct gdb_exception): Likewise.
2275 (exceptions_state_mc_init): Likewise.
2276 (exceptions_state_mc_action_iter): Likewise.
2277 (exceptions_state_mc_action_iter_1): Likewise.
2278 (TRY_CATCH): Likewise.
2279 (throw_exception): Likewise.
2280 (throw_verror): Likewise.
2281 (throw_vquit): Likewise.
2282 (throw_error): Likewise.
2283 (throw_quit): Likewise.
2284 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2285 (enum catcher_action): Likewise.
2286 (struct catcher): Likewise.
2287 (current_catcher): Likewise.
2288 (catcher_list_size): Likewise.
2289 (exceptions_state_mc_init): Likewise.
2290 (catcher_pop): Likewise.
2291 (exceptions_state_mc): Likewise.
2292 (exceptions_state_mc_action_iter): Likewise.
2293 (exceptions_state_mc_action_iter_1): Likewise.
2294 (throw_exception): Likewise.
2295 (exception_messages): Likewise.
2296 (exception_messages_size): Likewise.
2297 (throw_it): Likewise.
2298 (throw_verror): Likewise.
2299 (throw_vquit): Likewise.
2300 (throw_error): Likewise.
2301 (throw_quit): Likewise.
2302 (prepare_to_throw_exception): New function.
2304 2014-08-29 Gary Benson <gbenson@redhat.com>
2306 * common/gdb_setjmp.h: New file.
2307 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2308 * configure.ac: Move sigsetjmp check...
2309 * common/common.m4: ...here.
2310 * configure: Regenerate.
2311 * cp-support.c (SIGJMP_BUF): Delete.
2312 (SIGSETJMP): Likewise.
2313 (SIGLONGJMP): Likewise.
2314 * exceptions.h (gdb_setjmp.h): Include.
2315 (setjmp.h): Do not include.
2316 (EXCEPTIONS_SIGJMP_BUF): Delete.
2317 (EXCEPTIONS_SIGSETJMP): Likewise.
2318 (EXCEPTIONS_SIGLONGJMP): Likewise.
2319 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2321 * exceptions.c: Likewise.
2323 2014-08-29 Gary Benson <gbenson@redhat.com>
2325 * cleanups.h: Moved to...
2326 * common/cleanups.h: New file.
2327 * cleanups.c: Moved to...
2328 * common/cleanups.c: New file. Include common-defs.h and
2329 cleanups.h. Do not include defs.h.
2330 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2331 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2332 (cleanups.o): New rule.
2334 2014-08-29 Gary Benson <gbenson@redhat.com>
2336 * common/errors.h (internal_warning): New declaration.
2337 (internal_vwarning): Likewise.
2338 * common/errors.c (internal_warning): New function.
2339 * utils.h (internal_warning): Don't declare.
2340 (internal_vwarning): Likewise.
2341 * utils.c (internal_warning): Removed.
2343 2014-08-29 Gary Benson <gbenson@redhat.com>
2345 * main.c (captured_main): Use warning during startup.
2346 Prefix startup warning messages with command name.
2348 2014-08-29 Gary Benson <gbenson@redhat.com>
2350 * main.c (captured_main): Handle usage errors with error.
2352 2014-08-29 Gary Benson <gbenson@redhat.com>
2354 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2355 exit pair with a call to error. Wrap the message with _().
2357 2014-08-29 Gary Benson <gbenson@redhat.com>
2359 * main.c (captured_main): Replace a fprintf/exit
2360 pair with a call to error. Wrap the message with _().
2362 2014-08-29 Gary Benson <gbenson@redhat.com>
2364 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2365 pairs with calls to error. Wrap the message with _().
2367 2014-08-29 Gary Benson <gbenson@redhat.com>
2369 * utils.c (vwarning): Protect calls to target_terminal_ours
2372 2014-08-29 Gary Benson <gbenson@redhat.com>
2374 * exceptions.c (print_flush): Protect calls to
2375 target_terminal_ours and wrap_here.
2377 2014-08-29 Gary Benson <gbenson@redhat.com>
2379 * utils.h (filtered_printing_initialized): New declaration.
2380 * utils.c (abort_with_message): New function.
2381 (internal_vproblem): Use abort_with_message for first level
2382 recursive internal problems, and if gdb_stderr is not set up.
2383 Protect calls to target_terminal_ours, begin_line and query.
2385 2014-08-28 Doug Evans <dje@google.com>
2387 * symtab.c (in_prologue): Move definition to better spot.
2388 (skip_prologue_using_sal): Ditto.
2390 2014-08-28 Doug Evans <dje@google.com>
2392 * symtab.c (find_function_start_sal): Move definition to better spot.
2394 2014-08-28 Yao Qi <yao@codesourcery.com>
2396 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2397 found_stack_adjust in forward scan. Remove condition check
2398 on found_stack_adjust which is always true. Indent the code.
2400 2014-08-28 Yao Qi <yao@codesourcery.com>
2402 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2403 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2404 (dwarf_decode_lines): Remove argument
2405 want_line_info. Remove condition check on want_line_info.
2408 2014-08-27 Doug Evans <dje@google.com>
2410 * dwarf2read.c (dwarf_record_line): Fix typo.
2412 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2414 * target.h (struct target_ops::to_terminal_save_ours): Remove
2416 (target_terminal_save_ours): Remove macro.
2417 * target-delegates.c: Regenerate.
2418 * inf-child.c (inf_child_target): Don't set the nonexistent
2419 field to_terminal_save_ours.
2420 * inferior.h (child_terminal_save_ours): Remove declaration.
2421 * terminal.h (gdb_save_tty_state): New declaration.
2422 * inflow.c (child_terminal_save_ours): Rename to ...
2423 (gdb_save_tty_state): ... this.
2424 * tui/tui.c: Include terminal.h.
2425 (tui_enable): Use gdb_save_tty_state instead of
2426 target_terminal_save_ours.
2427 (tui_disable): Likewise.
2429 2014-08-25 Doug Evans <dje@google.com>
2431 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2432 Pass NULL instead of 0 for context pointer.
2434 2014-08-25 Yao Qi <yao@codesourcery.com>
2436 * dwarf2read.c: Fix grammatical error.
2438 2014-08-24 Yao Qi <yao@codesourcery.com>
2440 * dwarf2read.c (scan_partial_symbols): Update comments.
2441 Rename argument 'need_pc' with 'set_addrmap'.
2442 (add_partial_namespace): Rename argument 'need_pc' with
2444 (add_partial_module): Likewise.
2445 (add_partial_subprogram): Likewise. Update comments.
2446 (dwarf2_name): Fix typo.
2448 2014-08-22 Doug Evans <dje@google.com>
2451 * dwarf2read.c (dwarf_record_line_p): New function.
2452 (dwarf_decode_lines_1): Ignore subsequent line number entries
2453 for the same line if any entry had a non-zero discriminator.
2455 2014-08-22 Doug Evans <dje@google.com>
2457 * buildsym.h (record_line_ftype): New typedef.
2458 (record_line): Use it.
2459 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2460 (dwarf_decode_lines_1): Call them.
2462 2014-08-22 Yao Qi <yao@codesourcery.com>
2464 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2465 (ctf_end): Remove code.
2467 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2469 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2470 (linux_make_corefile_notes): call update_thread_list, protected against
2473 2014-08-21 Pedro Alves <palves@redhat.com>
2475 * infcmd.c (attach_command): Remove comment.
2477 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2479 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2480 unsigned LONGEST to ULONGEST.
2482 2014-08-20 Pedro Alves <palves@redhat.com>
2484 * Makefile.in (check-read1): New rule.
2486 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2488 * value.c (value_from_contents_and_address): Strip resolved_type's
2489 typedef layers before checking its TYPE_DATA_LOCATION.
2491 2014-08-20 Pedro Alves <palves@redhat.com>
2493 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2495 2014-08-20 Yao Qi <yao@codesourcery.com>
2497 * amd64-tdep.c (amd64_classify): Add a blank line after the
2498 example. Move "*/" to a new line.
2499 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2500 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2501 * dwarf2read.c (psymtab_include_file_name): Likewise.
2503 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2504 Pedro Alves <palves@redhat.com>
2508 * ada-lang.c (coerce_unspec_val_to_type): Use
2509 value_contents_copy_raw.
2510 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2511 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2512 * cp-valprint.c (cp_print_value_fields): Let the common printing
2513 code handle optimized out values.
2514 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2515 * d-valprint.c (dynamic_array_type): Use
2516 value_bits_any_optimized_out.
2517 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2518 check_any_valid fields.
2519 (check_pieced_value_bits): Delete and inline ...
2520 (check_pieced_synthetic_pointer): ... here.
2521 (check_pieced_value_validity): Delete.
2522 (check_pieced_value_invalid): Delete.
2523 (pieced_value_funcs): Remove check_validity and check_any_valid
2525 (read_pieced_value): Use mark_value_bits_optimized_out.
2526 (write_pieced_value): Switch to use
2527 mark_value_bytes_optimized_out.
2528 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2529 of assuming the whole value is optimized out.
2530 * findvar.c (read_frame_register_value): Remove special handling
2531 of optimized out registers.
2532 (value_from_register): Use mark_value_bytes_optimized_out.
2533 * frame-unwind.c (frame_unwind_got_optimized): Use
2534 mark_value_bytes_optimized_out.
2535 * jv-valprint.c (java_value_print): Adjust.
2536 (java_print_value_fields): Let the common printing code handle
2537 optimized out values.
2538 * mips-tdep.c (mips_print_register): Remove special handling of
2539 optimized out registers.
2540 * opencl-lang.c (lval_func_check_validity): Delete.
2541 (lval_func_check_any_valid): Delete.
2542 (opencl_value_funcs): Remove check_validity and check_any_valid
2544 * p-valprint.c (pascal_object_print_value_fields): Let the common
2545 printing code handle optimized out values.
2546 * stack.c (read_frame_arg): Remove special handling of optimized
2547 out values. Fetch both VAL and ENTRYVAL before comparing
2548 contents. Adjust to value_available_contents_eq rename.
2549 * valprint.c (valprint_check_validity)
2550 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2551 (val_print_array_elements): Adjust.
2552 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2553 (value_bits_any_optimized_out): New function.
2554 (value_entirely_covered_by_range_vector): New function, factored
2555 out from value_entirely_unavailable.
2556 (value_entirely_unavailable): Reimplement.
2557 (value_entirely_optimized_out): New function.
2558 (insert_into_bit_range_vector): New function, factored out from
2559 mark_value_bits_unavailable.
2560 (mark_value_bits_unavailable): Reimplement.
2561 (struct ranges_and_idx): New struct.
2562 (find_first_range_overlap_and_match): New function, factored out
2563 from value_available_contents_bits_eq.
2564 (value_available_contents_bits_eq): Rename to ...
2565 (value_contents_bits_eq): ... this. Check both unavailable
2566 contents and optimized out contents.
2567 (value_available_contents_eq): Rename to ...
2568 (value_contents_eq): ... this.
2569 (allocate_value_lazy): Remove reference to the old optimized_out
2571 (allocate_optimized_out_value): Use
2572 mark_value_bytes_optimized_out.
2573 (require_not_optimized_out): Adjust to check whether the
2574 optimized_out vec is empty.
2575 (ranges_copy_adjusted): New function, factored out from
2576 value_contents_copy_raw.
2577 (value_contents_copy_raw): Also copy the optimized out ranges.
2578 Assert the destination ranges aren't optimized out.
2579 (value_contents_copy): Update comment, remove call to
2580 require_not_optimized_out.
2581 (value_contents_equal): Adjust to check whether the optimized_out
2583 (set_value_optimized_out, value_optimized_out_const): Delete.
2584 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2586 (value_entirely_optimized_out, value_bits_valid): Delete.
2587 (value_copy): Take a VEC copy of the 'optimized_out' field.
2588 (value_primitive_field): Remove special handling of optimized out.
2589 (value_fetch_lazy): Assert that lazy values have no unavailable
2590 regions. Use value_bits_any_optimized_out. Remove some special
2591 handling for optimized out values.
2592 * value.h: Add intro comment about <optimized out> and
2594 (struct lval_funcs): Remove check_validity and check_any_valid
2596 (set_value_optimized_out, value_optimized_out_const): Remove.
2597 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2599 (value_bits_any_optimized_out): New declaration.
2600 (value_bits_valid): Delete declaration.
2601 (value_available_contents_eq): Rename to ...
2602 (value_contents_eq): ... this, and extend comments.
2604 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2606 Fix -fsanitize=address on unreadable inferior strings.
2607 * valprint.c (val_print_string): Fix access before BUFFER.
2609 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2611 * target.c (target_struct_size): Remove.
2612 (target_struct_allocsize): Remove.
2613 (DEFAULT_ALLOCSIZE): Remove.
2614 (target_ops_p): New typedef.
2615 (DEF_VEC_P (target_ops_p)): New vector type.
2616 (target_structs): Change type to VEC (target_ops_p).
2617 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2618 (find_default_run_target): Rewrite for loop following changes to
2621 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2623 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2624 Adjust code accordingly. Adjust function description comment.
2626 2014-08-19 Yao Qi <yao@codesourcery.com>
2628 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2631 2014-08-19 Alan Modra <amodra@gmail.com>
2633 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2634 * config.in: Regenerate.
2635 * configure: Regenerate.
2637 2014-08-19 Tom Tromey <tromey@redhat.com>
2638 Gary Benson <gbenson@redhat.com>
2640 * common/common-debug.h: New file.
2641 * common/common-debug.c: Likewise.
2642 * debug.c: Likewise.
2643 * Makefile.in (SFILES): Add common/common-debug.c.
2644 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2645 (COMMON_OBS): Add common-debug.o and debug.o.
2646 (common-debug.o): New rule.
2647 * common/common-defs.h: Include common-debug.h.
2648 * common/agent.c (debug_agent_printf): New function.
2649 (DEBUG_AGENT): Redefine.
2650 * nat/i386-dregs.c (debug_printf): Undefine.
2652 2014-08-19 Gary Benson <gbenson@redhat.com>
2654 * common/common-defs.h: Include print-utils.h.
2655 * utils.h: Do not include print-utils.h.
2657 2014-08-19 Tom Tromey <tromey@redhat.com>
2658 Gary Benson <gbenson@redhat.com>
2660 * common/common-types.h: New file.
2661 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2662 * common/common-defs.h: Include common-types.h.
2663 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2666 2014-08-19 Tom Tromey <tromey@redhat.com>
2667 Gary Benson <gbenson@redhat.com>
2669 * common/errors.h: New file.
2670 * common/errors.c: Likewise.
2671 * Makefile.in (SFILES): Add common/errors.c.
2672 (HFILES_NO_SRCDIR): Add common/errors.h.
2673 (COMMON_OBS): Add errors.o.
2674 (errors.o): New rule.
2675 * common/common-defs.h: Include errors.h.
2676 * utils.h (perror_with_name, error, verror, warning, vwarning):
2678 * common/common-utils.h: (malloc_failure, internal_error):
2681 2014-08-19 Gary Benson <gbenson@redhat.com>
2683 * utils.c (internal_vproblem): Always print the message.
2685 2014-08-18 Doug Evans <dje@google.com>
2687 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2689 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2691 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2692 Return 0 if TYPE is dynamic.
2693 (print_range): Add handling of dynamic ranges.
2695 2014-08-18 Keven Boell <keven.boell@intel.com>
2696 Joel Brobecker <brobecker@adacore.com>
2698 * gdbtypes.h (struct main_type): Add field "data_location".
2699 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2700 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2701 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2702 a dynamic data location.
2703 (resolve_dynamic_type): Add DW_AT_data_location handling.
2704 (copy_recursive, copy_type): Copy the data_location information
2706 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2707 * value.c (value_from_contents_and_address): Add
2708 DW_AT_data_location handling.
2710 2014-08-18 Keven Boell <keven.boell@intel.com>
2711 Joel Brobecker <brobecker@adacore.com>
2713 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2714 field "get_object_address".
2715 * dwarf2expr.c (execute_stack_op): Add handling for
2716 DW_OP_push_object_address.
2717 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2718 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2719 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2720 (dwarf_expr_get_obj_addr): New function.
2721 (dwarf_expr_ctx_funcs): Add get_object_address field.
2722 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2723 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2724 (dwarf2_evaluate_property): Add parameter "address". Use it.
2725 (needs_get_obj_addr): New function.
2726 (needs_frame_ctx_funcs): Add get_object_address field.
2727 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2728 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2729 (resolve_dynamic_array): Likewise.
2731 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2733 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2734 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2735 fixed value for records and unions for which some GNAT encodings
2738 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2740 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2741 rewrite to avoid "else if" and "else" constructs. Should be
2742 a no-op in practice.
2744 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2746 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2749 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2752 * eval.c: Update all calls to find_overload_match.
2753 * valarith.c: Likewise.
2754 (value_user_defined_cpp_op, value_user_defined_op): New
2755 argument NOSIDE. Update all callers.
2756 * valops.c (find_overload_match): New argument NOSIDE.
2757 * value.h (find_overload_match): Update signature.
2759 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2761 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2762 'items' methods instead of 'iteritems' method on dictionaries.
2764 2014-08-15 Doug Evans <dje@google.com>
2766 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2769 2014-08-15 Doug Evans <dje@google.com>
2771 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2773 2014-08-15 Doug Evans <dje@google.com>
2775 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2777 2014-08-15 Doug Evans <dje@google.com>
2779 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2782 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2784 * dcache.h: Include target.h, to avoid compile time warnings.
2786 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2788 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2789 frame_info" partial declaration.
2790 * gdbarch.h: Regenerate.
2792 2014-08-15 Yao Qi <yao@codesourcery.com>
2794 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2795 Add parameter 'decode_for_pst_p'. Callers update.
2797 2014-08-13 Yao Qi <yao@codesourcery.com>
2800 * configure.ac: Use local variable 'pos'.
2801 * configure: Regenerated.
2803 2014-08-11 Doug Evans <dje@google.com>
2805 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2806 message, it is redundant with "Reading symbols from ..." message.
2808 2014-08-10 Doug Evans <xdje42@gmail.com>
2810 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2812 2014-08-09 Yao Qi <yao@codesourcery.com>
2815 * remote.c (remote_xfer_partial): Remove dead code.
2817 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2819 * ia64-linux-tdep.c: Include "regset.h".
2820 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2821 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2822 (ia64_linux_supply_fpregset): New function.
2823 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2824 (ia64_linux_regset_from_core_section): New function.
2825 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2828 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2830 * m68klinux-tdep.c: Include "regset.h".
2831 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2832 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2833 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2834 (m68k_linux_regset_from_core_section): New function.
2835 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2838 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2840 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2841 function. Move logic to...
2842 (tilegx_linux_regmap): ... this new register map.
2843 (tilegx_linux_regset): Refer to register map, replace supply
2844 method by regcache_supply_regset, and add collect method.
2845 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2846 TILEGX_FIRST_EASY_REGNUM.
2848 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2850 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2851 that calls regcache_supply_regset and handles the EPC register
2852 separately. Move main logic to...
2853 (score7_linux_gregmap): ... this new register map.
2854 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2855 (score7_linux_gregset): Refer to register map. Add collect method.
2856 (score7_linux_regset_from_core_section): Replace
2857 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2858 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2859 (struct regset): Delete unused forward declaraction.
2860 (struct pt_regs): Delete structure definition.
2861 (elf_gregset_t): Delete typedef.
2863 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2865 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2866 (nios2_core_regset): Add collect method.
2868 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2870 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2871 platform-independent and don't write to read-only input buffer.
2872 (m32r_linux_collect_gregset): New function.
2873 (m32r_linux_gregset): Add collect method.
2875 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2877 * hppa-linux-tdep.c (greg_map): Rename to...
2878 (hppa_linux_gregmap): ... this. Also convert to
2879 regcache_map_entry format.
2880 (hppa_linux_supply_regset): Delete function.
2881 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2882 (hppa_linux_fpregmap): ... this new register map.
2883 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2884 register map, replace supply method by regcache_supply_regset, and
2885 add collect method regcache_collect_regset.
2887 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2889 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2890 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2891 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2892 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2893 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2894 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2895 (frv_linux_supply_gregset): Replace main logic by call to
2896 regcache_supply_regset, but keep clearing gr32-gr63.
2897 (frv_linux_supply_fpregset): Delete function.
2898 (frv_linux_gregset): Refer to appropriate register map and add
2899 regcache_collect_regset as the collect method.
2900 (frv_linux_fpregset): Likewise. Also exchange the supply method
2901 by regcache_supply_regset.
2903 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2905 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2906 by call to alpha_supply_int_regs.
2907 (alpha_linux_collect_gregset): New function.
2908 (alpha_linux_supply_fpregset): Replace logic by call to
2909 alpha_supply_fp_regs.
2910 (alpha_linux_collect_fpregset): New function.
2911 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2913 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2915 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2916 by call to regcache_collect_regset.
2917 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2918 instead of aarch64_linux_supply_gregset/_fpregset.
2919 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2920 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2921 header file instead.
2922 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2923 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2924 functions. Move logic to ...
2925 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2927 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2928 refer to new register maps, replace *_regset_from_core by
2929 regcache_supply_regset, and also use regcache_collect_regset.
2930 * aarch64-linux-tdep.h: Include "regset.h".
2931 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2933 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2934 macros, moved from C source file.
2935 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2936 variable declarations.
2938 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2940 * s390-linux-nat.c: Include "regset.h".
2941 (regmap_gregset): Delete macro.
2942 (s390_64_regmap_gregset): New register map for
2943 regcache_supply/_collect_regset.
2944 (s390_64_gregset): New regset.
2945 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2946 (regmap_fpregset): Delete macro.
2947 (s390_native_supply, s390_native_collect): Delete functions.
2948 (supply_gregset, fill_gregset): Replace s390-specific regmap
2949 handling by a call to regcache_supply/_collect_regset.
2950 (supply_fpregset, fill_fpregset): Call regcache_supply/
2951 _collect_regset instead of s390_native_supply/_collect.
2952 (fetch_regset, store_regset): Likewise. Also change the last
2953 parameter to a regset instead of a regmap.
2954 (s390_linux_fetch_inferior_registers)
2955 (390_linux_store_inferior_registers): Adjust last parameter in
2956 calls to fetch_regset and store_regset.
2957 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2958 (s390_gregmap): ... this. Also make static const and convert to
2959 regcache_map_entry format.
2960 (s390x_regmap_gregset): Delete.
2961 (s390_regmap_fpregset): Rename to...
2962 (s390_fpregmap): ... this. Make static const and convert to
2963 regcache_map_entry format.
2964 (s390_regmap_upper, s390_regmap_last_break)
2965 (s390x_regmap_last_break, s390_regmap_system_call)
2966 (s390_regmap_tdb): Likewise.
2967 (s390_supply_regset, s390_collect_regset): Remove functions.
2968 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2970 (s390_gregset, s390_fpregset, s390_upper_regset)
2971 (s390_last_break_regset, s390x_last_break_regset)
2972 (s390_system_call_regset, s390_tdb_regset): Make global and
2973 replace s390_supply/_collect_regset by regcache_supply/
2975 (s390x_gregset): Delete.
2976 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2977 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2978 (s390_regmap_fpregset, s390_regmap_last_break)
2979 (s390x_regmap_last_break, s390_regmap_system_call)
2980 (s390_regmap_tdb): Delete global variable declarations.
2981 (s390_gregset, s390_fpregset, s390_last_break_regset)
2982 (s390x_last_break_regset, s390_system_call_regset)
2983 (s390_tdb_regset): New global variable declarations.
2985 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2987 * regcache.c: Include "regset.h".
2988 (regcache_transfer_regset): New local function.
2989 (regcache_supply_regset, regcache_collect_regset): New functions.
2990 * regcache.h (struct regcache_map_entry): New structure.
2991 (REGCACHE_MAP_SKIP): New enum value.
2992 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2994 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2996 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2997 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2998 (ppc_linux_collect_gregset ): Likewise.
2999 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3000 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3001 (ppc_collect_vrregset): Likewise.
3002 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3005 2014-08-07 Yao Qi <yao@codesourcery.com>
3007 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3008 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3009 * remote.c (remote_read_bytes): Likewise.
3011 2014-08-07 Yao Qi <yao@codesourcery.com>
3013 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3015 2014-08-07 Yao Qi <yao@codesourcery.com>
3018 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3019 TARGET_XFER_OK instead of 0.
3021 2014-08-07 Gary Benson <gbenson@redhat.com>
3023 * common/common-defs.h: Include errno.h.
3024 * defs.h: Do not include errno.h.
3025 * ada-typeprint.c: Likewise.
3026 * c-typeprint.c: Likewise.
3027 * core-regset.c: Likewise.
3028 * corefile.c: Likewise.
3029 * corelow.c: Likewise.
3030 * event-loop.c: Likewise.
3031 * f-typeprint.c: Likewise.
3032 * gnu-nat.c: Likewise.
3033 * go32-nat.c: Likewise.
3034 * i386gnu-nat.c: Likewise.
3035 * m2-typeprint.c: Likewise.
3036 * nat/linux-btrace.c: Likewise.
3037 * p-typeprint.c: Likewise.
3038 * procfs.c: Likewise.
3039 * remote-sim.c: Likewise.
3040 * rs6000-nat.c: Likewise.
3041 * target.c: Likewise.
3042 * typeprint.c: Likewise.
3043 * ui-file.c: Likewise.
3044 * valops.c: Likewise.
3045 * valprint.c: Likewise.
3047 2014-08-07 Gary Benson <gbenson@redhat.com>
3049 * common/common-defs.h: Include string.h.
3050 * aarch64-tdep.c: Do not include string.h.
3051 * ada-exp.y: Likewise.
3052 * ada-lang.c: Likewise.
3053 * ada-lex.l: Likewise.
3054 * ada-typeprint.c: Likewise.
3055 * ada-valprint.c: Likewise.
3056 * aix-thread.c: Likewise.
3057 * alpha-linux-tdep.c: Likewise.
3058 * alpha-mdebug-tdep.c: Likewise.
3059 * alpha-nat.c: Likewise.
3060 * alpha-osf1-tdep.c: Likewise.
3061 * alpha-tdep.c: Likewise.
3062 * alphanbsd-tdep.c: Likewise.
3063 * amd64-dicos-tdep.c: Likewise.
3064 * amd64-linux-tdep.c: Likewise.
3065 * amd64-nat.c: Likewise.
3066 * amd64-sol2-tdep.c: Likewise.
3067 * amd64fbsd-tdep.c: Likewise.
3068 * amd64obsd-tdep.c: Likewise.
3069 * arch-utils.c: Likewise.
3070 * arm-linux-nat.c: Likewise.
3071 * arm-linux-tdep.c: Likewise.
3072 * arm-tdep.c: Likewise.
3073 * arm-wince-tdep.c: Likewise.
3074 * armbsd-tdep.c: Likewise.
3075 * armnbsd-nat.c: Likewise.
3076 * armnbsd-tdep.c: Likewise.
3077 * armobsd-tdep.c: Likewise.
3078 * avr-tdep.c: Likewise.
3079 * ax-gdb.c: Likewise.
3080 * ax-general.c: Likewise.
3081 * bcache.c: Likewise.
3082 * bfin-tdep.c: Likewise.
3083 * breakpoint.c: Likewise.
3084 * build-id.c: Likewise.
3085 * buildsym.c: Likewise.
3086 * c-exp.y: Likewise.
3087 * c-lang.c: Likewise.
3088 * c-typeprint.c: Likewise.
3089 * c-valprint.c: Likewise.
3090 * charset.c: Likewise.
3091 * cli-out.c: Likewise.
3092 * cli/cli-cmds.c: Likewise.
3093 * cli/cli-decode.c: Likewise.
3094 * cli/cli-dump.c: Likewise.
3095 * cli/cli-interp.c: Likewise.
3096 * cli/cli-logging.c: Likewise.
3097 * cli/cli-script.c: Likewise.
3098 * cli/cli-setshow.c: Likewise.
3099 * cli/cli-utils.c: Likewise.
3100 * coffread.c: Likewise.
3101 * common/agent.c: Likewise.
3102 * common/buffer.c: Likewise.
3103 * common/buffer.h: Likewise.
3104 * common/common-utils.c: Likewise.
3105 * common/filestuff.c: Likewise.
3106 * common/filestuff.c: Likewise.
3107 * common/format.c: Likewise.
3108 * common/print-utils.c: Likewise.
3109 * common/rsp-low.c: Likewise.
3110 * common/signals.c: Likewise.
3111 * common/vec.h: Likewise.
3112 * common/xml-utils.c: Likewise.
3113 * core-regset.c: Likewise.
3114 * corefile.c: Likewise.
3115 * corelow.c: Likewise.
3116 * cp-abi.c: Likewise.
3117 * cp-name-parser.y: Likewise.
3118 * cp-support.c: Likewise.
3119 * cp-valprint.c: Likewise.
3120 * cris-tdep.c: Likewise.
3121 * d-exp.y: Likewise.
3122 * darwin-nat.c: Likewise.
3123 * dbxread.c: Likewise.
3124 * dcache.c: Likewise.
3125 * demangle.c: Likewise.
3126 * dicos-tdep.c: Likewise.
3127 * disasm.c: Likewise.
3128 * doublest.c: Likewise.
3129 * dsrec.c: Likewise.
3130 * dummy-frame.c: Likewise.
3131 * dwarf2-frame.c: Likewise.
3132 * dwarf2loc.c: Likewise.
3133 * dwarf2read.c: Likewise.
3134 * elfread.c: Likewise.
3135 * environ.c: Likewise.
3137 * event-loop.c: Likewise.
3138 * exceptions.c: Likewise.
3140 * expprint.c: Likewise.
3141 * f-exp.y: Likewise.
3142 * f-lang.c: Likewise.
3143 * f-typeprint.c: Likewise.
3144 * f-valprint.c: Likewise.
3145 * fbsd-nat.c: Likewise.
3146 * findcmd.c: Likewise.
3147 * findvar.c: Likewise.
3148 * fork-child.c: Likewise.
3149 * frame.c: Likewise.
3150 * frv-linux-tdep.c: Likewise.
3151 * frv-tdep.c: Likewise.
3153 * gdb_bfd.c: Likewise.
3154 * gdbarch.c: Likewise.
3155 * gdbarch.sh: Likewise.
3156 * gdbtypes.c: Likewise.
3157 * gnu-nat.c: Likewise.
3158 * gnu-v2-abi.c: Likewise.
3159 * gnu-v3-abi.c: Likewise.
3160 * go-exp.y: Likewise.
3161 * go-lang.c: Likewise.
3162 * go32-nat.c: Likewise.
3163 * guile/guile.c: Likewise.
3164 * guile/scm-auto-load.c: Likewise.
3165 * hppa-hpux-tdep.c: Likewise.
3166 * hppa-linux-nat.c: Likewise.
3167 * hppanbsd-tdep.c: Likewise.
3168 * hppaobsd-tdep.c: Likewise.
3169 * i386-cygwin-tdep.c: Likewise.
3170 * i386-dicos-tdep.c: Likewise.
3171 * i386-linux-tdep.c: Likewise.
3172 * i386-nto-tdep.c: Likewise.
3173 * i386-sol2-tdep.c: Likewise.
3174 * i386-tdep.c: Likewise.
3175 * i386bsd-tdep.c: Likewise.
3176 * i386gnu-nat.c: Likewise.
3177 * i386nbsd-tdep.c: Likewise.
3178 * i386obsd-tdep.c: Likewise.
3179 * i387-tdep.c: Likewise.
3180 * ia64-libunwind-tdep.c: Likewise.
3181 * ia64-linux-nat.c: Likewise.
3182 * inf-child.c: Likewise.
3183 * inf-ptrace.c: Likewise.
3184 * inf-ttrace.c: Likewise.
3185 * infcall.c: Likewise.
3186 * infcmd.c: Likewise.
3187 * inflow.c: Likewise.
3188 * infrun.c: Likewise.
3189 * interps.c: Likewise.
3190 * iq2000-tdep.c: Likewise.
3191 * irix5-nat.c: Likewise.
3192 * jv-exp.y: Likewise.
3193 * jv-lang.c: Likewise.
3194 * jv-typeprint.c: Likewise.
3195 * jv-valprint.c: Likewise.
3196 * language.c: Likewise.
3197 * linux-fork.c: Likewise.
3198 * linux-nat.c: Likewise.
3199 * lm32-tdep.c: Likewise.
3200 * m2-exp.y: Likewise.
3201 * m2-typeprint.c: Likewise.
3202 * m32c-tdep.c: Likewise.
3203 * m32r-linux-nat.c: Likewise.
3204 * m32r-linux-tdep.c: Likewise.
3205 * m32r-rom.c: Likewise.
3206 * m32r-tdep.c: Likewise.
3207 * m68hc11-tdep.c: Likewise.
3208 * m68k-tdep.c: Likewise.
3209 * m68kbsd-tdep.c: Likewise.
3210 * m68klinux-nat.c: Likewise.
3211 * m68klinux-tdep.c: Likewise.
3212 * m88k-tdep.c: Likewise.
3213 * machoread.c: Likewise.
3214 * macrocmd.c: Likewise.
3216 * mdebugread.c: Likewise.
3217 * mem-break.c: Likewise.
3218 * memattr.c: Likewise.
3219 * memory-map.c: Likewise.
3220 * mep-tdep.c: Likewise.
3221 * mi/mi-cmd-break.c: Likewise.
3222 * mi/mi-cmd-disas.c: Likewise.
3223 * mi/mi-cmd-env.c: Likewise.
3224 * mi/mi-cmd-stack.c: Likewise.
3225 * mi/mi-cmd-var.c: Likewise.
3226 * mi/mi-cmds.c: Likewise.
3227 * mi/mi-console.c: Likewise.
3228 * mi/mi-getopt.c: Likewise.
3229 * mi/mi-interp.c: Likewise.
3230 * mi/mi-main.c: Likewise.
3231 * mi/mi-parse.c: Likewise.
3232 * microblaze-rom.c: Likewise.
3233 * microblaze-tdep.c: Likewise.
3234 * mingw-hdep.c: Likewise.
3235 * minidebug.c: Likewise.
3236 * minsyms.c: Likewise.
3237 * mips-irix-tdep.c: Likewise.
3238 * mips-linux-tdep.c: Likewise.
3239 * mips-tdep.c: Likewise.
3240 * mips64obsd-tdep.c: Likewise.
3241 * mipsnbsd-tdep.c: Likewise.
3242 * mipsread.c: Likewise.
3243 * mn10300-linux-tdep.c: Likewise.
3244 * mn10300-tdep.c: Likewise.
3245 * monitor.c: Likewise.
3246 * moxie-tdep.c: Likewise.
3247 * mt-tdep.c: Likewise.
3248 * nat/linux-btrace.c: Likewise.
3249 * nat/linux-osdata.c: Likewise.
3250 * nat/linux-procfs.c: Likewise.
3251 * nat/linux-ptrace.c: Likewise.
3252 * nat/linux-waitpid.c: Likewise.
3253 * nbsd-tdep.c: Likewise.
3254 * nios2-linux-tdep.c: Likewise.
3255 * nto-procfs.c: Likewise.
3256 * nto-tdep.c: Likewise.
3257 * objc-lang.c: Likewise.
3258 * objfiles.c: Likewise.
3259 * opencl-lang.c: Likewise.
3260 * osabi.c: Likewise.
3261 * osdata.c: Likewise.
3262 * p-exp.y: Likewise.
3263 * p-lang.c: Likewise.
3264 * p-typeprint.c: Likewise.
3265 * parse.c: Likewise.
3266 * posix-hdep.c: Likewise.
3267 * ppc-linux-nat.c: Likewise.
3268 * ppc-sysv-tdep.c: Likewise.
3269 * ppcfbsd-tdep.c: Likewise.
3270 * ppcnbsd-tdep.c: Likewise.
3271 * ppcobsd-tdep.c: Likewise.
3272 * printcmd.c: Likewise.
3273 * procfs.c: Likewise.
3274 * prologue-value.c: Likewise.
3275 * python/py-auto-load.c: Likewise.
3276 * python/py-gdb-readline.c: Likewise.
3277 * ravenscar-thread.c: Likewise.
3278 * regcache.c: Likewise.
3279 * registry.c: Likewise.
3280 * remote-fileio.c: Likewise.
3281 * remote-m32r-sdi.c: Likewise.
3282 * remote-mips.c: Likewise.
3283 * remote-notif.c: Likewise.
3284 * remote-sim.c: Likewise.
3285 * remote.c: Likewise.
3286 * reverse.c: Likewise.
3287 * rs6000-aix-tdep.c: Likewise.
3288 * ser-base.c: Likewise.
3289 * ser-go32.c: Likewise.
3290 * ser-mingw.c: Likewise.
3291 * ser-pipe.c: Likewise.
3292 * ser-tcp.c: Likewise.
3293 * ser-unix.c: Likewise.
3294 * serial.c: Likewise.
3295 * sh-tdep.c: Likewise.
3296 * sh64-tdep.c: Likewise.
3297 * shnbsd-tdep.c: Likewise.
3299 * sol-thread.c: Likewise.
3300 * solib-dsbt.c: Likewise.
3301 * solib-frv.c: Likewise.
3302 * solib-osf.c: Likewise.
3303 * solib-som.c: Likewise.
3304 * solib-spu.c: Likewise.
3305 * solib-target.c: Likewise.
3306 * solib.c: Likewise.
3307 * somread.c: Likewise.
3308 * source.c: Likewise.
3309 * sparc-nat.c: Likewise.
3310 * sparc-sol2-tdep.c: Likewise.
3311 * sparc-tdep.c: Likewise.
3312 * sparc64-tdep.c: Likewise.
3313 * sparc64fbsd-tdep.c: Likewise.
3314 * sparc64nbsd-tdep.c: Likewise.
3315 * sparcnbsd-tdep.c: Likewise.
3316 * spu-linux-nat.c: Likewise.
3317 * spu-multiarch.c: Likewise.
3318 * spu-tdep.c: Likewise.
3319 * stabsread.c: Likewise.
3320 * stack.c: Likewise.
3321 * std-regs.c: Likewise.
3322 * symfile.c: Likewise.
3323 * symmisc.c: Likewise.
3324 * symtab.c: Likewise.
3325 * target.c: Likewise.
3326 * thread.c: Likewise.
3327 * tilegx-linux-nat.c: Likewise.
3328 * tilegx-tdep.c: Likewise.
3330 * tracepoint.c: Likewise.
3331 * tui/tui-command.c: Likewise.
3332 * tui/tui-data.c: Likewise.
3333 * tui/tui-disasm.c: Likewise.
3334 * tui/tui-file.c: Likewise.
3335 * tui/tui-layout.c: Likewise.
3336 * tui/tui-out.c: Likewise.
3337 * tui/tui-regs.c: Likewise.
3338 * tui/tui-source.c: Likewise.
3339 * tui/tui-stack.c: Likewise.
3340 * tui/tui-win.c: Likewise.
3341 * tui/tui-windata.c: Likewise.
3342 * tui/tui-winsource.c: Likewise.
3343 * typeprint.c: Likewise.
3344 * ui-file.c: Likewise.
3345 * ui-out.c: Likewise.
3346 * user-regs.c: Likewise.
3347 * utils.c: Likewise.
3348 * v850-tdep.c: Likewise.
3349 * valarith.c: Likewise.
3350 * valops.c: Likewise.
3351 * valprint.c: Likewise.
3352 * value.c: Likewise.
3353 * varobj.c: Likewise.
3354 * vax-tdep.c: Likewise.
3355 * vaxnbsd-tdep.c: Likewise.
3356 * vaxobsd-tdep.c: Likewise.
3357 * windows-nat.c: Likewise.
3358 * xcoffread.c: Likewise.
3359 * xml-support.c: Likewise.
3360 * xstormy16-tdep.c: Likewise.
3361 * xtensa-linux-nat.c: Likewise.
3363 2014-08-07 Gary Benson <gbenson@redhat.com>
3365 * common/common-defs.h: Include gdb_assert.h.
3366 * aarch64-tdep.c: Do not include gdb_assert.h.
3367 * addrmap.c: Likewise.
3368 * aix-thread.c: Likewise.
3369 * alpha-linux-tdep.c: Likewise.
3370 * alpha-mdebug-tdep.c: Likewise.
3371 * alphanbsd-tdep.c: Likewise.
3372 * amd64-nat.c: Likewise.
3373 * amd64-tdep.c: Likewise.
3374 * amd64bsd-nat.c: Likewise.
3375 * amd64fbsd-nat.c: Likewise.
3376 * amd64fbsd-tdep.c: Likewise.
3377 * amd64nbsd-nat.c: Likewise.
3378 * amd64nbsd-tdep.c: Likewise.
3379 * amd64obsd-nat.c: Likewise.
3380 * amd64obsd-tdep.c: Likewise.
3381 * arch-utils.c: Likewise.
3382 * arm-tdep.c: Likewise.
3383 * armbsd-tdep.c: Likewise.
3385 * bcache.c: Likewise.
3386 * bfin-tdep.c: Likewise.
3387 * blockframe.c: Likewise.
3388 * breakpoint.c: Likewise.
3389 * bsd-kvm.c: Likewise.
3390 * bsd-uthread.c: Likewise.
3391 * buildsym.c: Likewise.
3392 * c-exp.y: Likewise.
3393 * c-lang.c: Likewise.
3394 * charset.c: Likewise.
3395 * cleanups.c: Likewise.
3396 * cli-out.c: Likewise.
3397 * cli/cli-decode.c: Likewise.
3398 * cli/cli-dump.c: Likewise.
3399 * cli/cli-logging.c: Likewise.
3400 * cli/cli-script.c: Likewise.
3401 * cli/cli-utils.c: Likewise.
3402 * coffread.c: Likewise.
3403 * common/common-utils.c: Likewise.
3404 * common/queue.h: Likewise.
3405 * common/signals.c: Likewise.
3406 * common/vec.h: Likewise.
3407 * complaints.c: Likewise.
3408 * completer.c: Likewise.
3409 * corelow.c: Likewise.
3410 * cp-abi.c: Likewise.
3411 * cp-name-parser.y: Likewise.
3412 * cp-namespace.c: Likewise.
3413 * cp-support.c: Likewise.
3414 * cris-tdep.c: Likewise.
3415 * dbxread.c: Likewise.
3416 * dictionary.c: Likewise.
3417 * doublest.c: Likewise.
3418 * dsrec.c: Likewise.
3419 * dummy-frame.c: Likewise.
3420 * dwarf2-frame-tailcall.c: Likewise.
3421 * dwarf2-frame.c: Likewise.
3422 * dwarf2expr.c: Likewise.
3423 * dwarf2loc.c: Likewise.
3424 * dwarf2read.c: Likewise.
3426 * event-loop.c: Likewise.
3427 * exceptions.c: Likewise.
3428 * expprint.c: Likewise.
3429 * f-valprint.c: Likewise.
3430 * fbsd-nat.c: Likewise.
3431 * findvar.c: Likewise.
3432 * frame-unwind.c: Likewise.
3433 * frame.c: Likewise.
3434 * frv-tdep.c: Likewise.
3435 * gcore.c: Likewise.
3436 * gdb-dlfcn.c: Likewise.
3437 * gdb_bfd.c: Likewise.
3438 * gdbarch.c: Likewise.
3439 * gdbarch.sh: Likewise.
3440 * gdbtypes.c: Likewise.
3441 * gnu-nat.c: Likewise.
3442 * gnu-v3-abi.c: Likewise.
3443 * go-lang.c: Likewise.
3444 * guile/scm-exception.c: Likewise.
3445 * guile/scm-gsmob.c: Likewise.
3446 * guile/scm-lazy-string.c: Likewise.
3447 * guile/scm-math.c: Likewise.
3448 * guile/scm-pretty-print.c: Likewise.
3449 * guile/scm-safe-call.c: Likewise.
3450 * guile/scm-utils.c: Likewise.
3451 * guile/scm-value.c: Likewise.
3452 * h8300-tdep.c: Likewise.
3453 * hppa-hpux-nat.c: Likewise.
3454 * hppa-tdep.c: Likewise.
3455 * hppanbsd-tdep.c: Likewise.
3456 * hppaobsd-tdep.c: Likewise.
3457 * i386-darwin-nat.c: Likewise.
3458 * i386-darwin-tdep.c: Likewise.
3459 * i386-nto-tdep.c: Likewise.
3460 * i386-tdep.c: Likewise.
3461 * i386bsd-nat.c: Likewise.
3462 * i386fbsd-tdep.c: Likewise.
3463 * i386gnu-nat.c: Likewise.
3464 * i386nbsd-tdep.c: Likewise.
3465 * i386obsd-tdep.c: Likewise.
3466 * i387-tdep.c: Likewise.
3467 * ia64-libunwind-tdep.c: Likewise.
3468 * ia64-tdep.c: Likewise.
3469 * inf-ptrace.c: Likewise.
3470 * inf-ttrace.c: Likewise.
3471 * infcall.c: Likewise.
3472 * infcmd.c: Likewise.
3473 * infrun.c: Likewise.
3474 * inline-frame.c: Likewise.
3475 * interps.c: Likewise.
3476 * jv-lang.c: Likewise.
3477 * jv-typeprint.c: Likewise.
3478 * linux-fork.c: Likewise.
3479 * linux-nat.c: Likewise.
3480 * linux-thread-db.c: Likewise.
3481 * m32c-tdep.c: Likewise.
3482 * m32r-linux-nat.c: Likewise.
3483 * m32r-tdep.c: Likewise.
3484 * m68k-tdep.c: Likewise.
3485 * m68kbsd-nat.c: Likewise.
3486 * m68kbsd-tdep.c: Likewise.
3487 * m88k-tdep.c: Likewise.
3488 * machoread.c: Likewise.
3489 * macroexp.c: Likewise.
3490 * macrotab.c: Likewise.
3491 * maint.c: Likewise.
3492 * mdebugread.c: Likewise.
3493 * memory-map.c: Likewise.
3494 * mep-tdep.c: Likewise.
3495 * mi/mi-common.c: Likewise.
3496 * microblaze-tdep.c: Likewise.
3497 * mingw-hdep.c: Likewise.
3498 * mips-linux-nat.c: Likewise.
3499 * mips-linux-tdep.c: Likewise.
3500 * mips-tdep.c: Likewise.
3501 * mips64obsd-tdep.c: Likewise.
3502 * mipsnbsd-tdep.c: Likewise.
3503 * mn10300-linux-tdep.c: Likewise.
3504 * mn10300-tdep.c: Likewise.
3505 * moxie-tdep.c: Likewise.
3506 * mt-tdep.c: Likewise.
3507 * nat/linux-btrace.c: Likewise.
3508 * nat/linux-osdata.c: Likewise.
3509 * nat/linux-ptrace.c: Likewise.
3510 * nat/mips-linux-watch.c: Likewise.
3511 * nios2-linux-tdep.c: Likewise.
3512 * nios2-tdep.c: Likewise.
3513 * objc-lang.c: Likewise.
3514 * objfiles.c: Likewise.
3515 * obsd-nat.c: Likewise.
3516 * opencl-lang.c: Likewise.
3517 * osabi.c: Likewise.
3518 * parse.c: Likewise.
3519 * ppc-linux-nat.c: Likewise.
3520 * ppc-sysv-tdep.c: Likewise.
3521 * ppcfbsd-nat.c: Likewise.
3522 * ppcfbsd-tdep.c: Likewise.
3523 * ppcnbsd-nat.c: Likewise.
3524 * ppcnbsd-tdep.c: Likewise.
3525 * ppcobsd-nat.c: Likewise.
3526 * ppcobsd-tdep.c: Likewise.
3527 * printcmd.c: Likewise.
3528 * procfs.c: Likewise.
3529 * prologue-value.c: Likewise.
3530 * psymtab.c: Likewise.
3531 * python/py-lazy-string.c: Likewise.
3532 * python/py-value.c: Likewise.
3533 * regcache.c: Likewise.
3534 * reggroups.c: Likewise.
3535 * registry.c: Likewise.
3536 * remote-sim.c: Likewise.
3537 * remote.c: Likewise.
3538 * rs6000-aix-tdep.c: Likewise.
3539 * rs6000-tdep.c: Likewise.
3540 * s390-linux-tdep.c: Likewise.
3541 * score-tdep.c: Likewise.
3542 * ser-base.c: Likewise.
3543 * ser-mingw.c: Likewise.
3544 * sh-tdep.c: Likewise.
3545 * sh64-tdep.c: Likewise.
3546 * solib-darwin.c: Likewise.
3547 * solib-spu.c: Likewise.
3548 * solib-svr4.c: Likewise.
3549 * source.c: Likewise.
3550 * sparc-nat.c: Likewise.
3551 * sparc-sol2-tdep.c: Likewise.
3552 * sparc-tdep.c: Likewise.
3553 * sparc64-sol2-tdep.c: Likewise.
3554 * sparc64-tdep.c: Likewise.
3555 * sparc64fbsd-tdep.c: Likewise.
3556 * sparc64nbsd-tdep.c: Likewise.
3557 * sparc64obsd-tdep.c: Likewise.
3558 * sparcnbsd-tdep.c: Likewise.
3559 * sparcobsd-tdep.c: Likewise.
3560 * spu-multiarch.c: Likewise.
3561 * spu-tdep.c: Likewise.
3562 * stabsread.c: Likewise.
3563 * stack.c: Likewise.
3564 * symfile.c: Likewise.
3565 * symtab.c: Likewise.
3566 * target-descriptions.c: Likewise.
3567 * target-memory.c: Likewise.
3568 * target.c: Likewise.
3569 * tic6x-linux-tdep.c: Likewise.
3570 * tic6x-tdep.c: Likewise.
3571 * tilegx-linux-nat.c: Likewise.
3572 * tilegx-tdep.c: Likewise.
3574 * tramp-frame.c: Likewise.
3575 * tui/tui-out.c: Likewise.
3576 * tui/tui-winsource.c: Likewise.
3577 * ui-out.c: Likewise.
3578 * user-regs.c: Likewise.
3579 * utils.c: Likewise.
3580 * v850-tdep.c: Likewise.
3581 * valops.c: Likewise.
3582 * value.c: Likewise.
3583 * varobj.c: Likewise.
3584 * vax-nat.c: Likewise.
3585 * xml-syscall.c: Likewise.
3586 * xml-tdesc.c: Likewise.
3587 * xstormy16-tdep.c: Likewise.
3588 * xtensa-linux-nat.c: Likewise.
3589 * xtensa-tdep.c: Likewise.
3591 2014-08-07 Gary Benson <gbenson@redhat.com>
3593 * common/common-defs.h: Include common-utils.h.
3594 * defs.h: Do not include common-utils.h.
3595 * common/gdb_assert.h: Likewise.
3596 * darwin-nat.h: Likewise.
3597 * nat/linux-btrace.c: Likewise.
3598 * target/waitstatus.h: Likewise.
3600 2014-08-07 Gary Benson <gbenson@redhat.com>
3602 * common/common-defs.h: Include ptid.h.
3603 * defs.h: Do not include ptid.h.
3604 * inferior.h: Likewise.
3605 * infrun.h: Likewise.
3606 * nat/linux-btrace.h: Likewise.
3607 * nat/linux-osdata.h: Likewise.
3608 * target/waitstatus.h: Likewise.
3610 2014-08-07 Gary Benson <gbenson@redhat.com>
3612 * common/common-defs.h: Include gdb_locale.h.
3613 * defs.h: Do not include gdb_locale.h.
3615 2014-08-07 Gary Benson <gbenson@redhat.com>
3617 * common/common-defs.h: Include gdb/signals.h.
3618 * defs.h: Do not include gdb/signals.h.
3620 2014-08-07 Gary Benson <gbenson@redhat.com>
3622 * common/common-defs.h: Include pathmax.h.
3623 * defs.h: Do not include pathmax.h.
3625 2014-08-07 Gary Benson <gbenson@redhat.com>
3627 * common/common-defs.h: Include libiberty.h.
3628 * defs.h: Do not include libiberty.h.
3629 * common/queue.h: Likewise.
3630 * cp-name-parser.y: Likewise.
3631 * mi/mi-cmd-catch.c: Likewise.
3632 * python/python.c: Likewise.
3634 2014-08-07 Gary Benson <gbenson@redhat.com>
3636 * common/common-defs.h: Include ansidecl.h.
3637 * defs.h: Do not include ansidecl.h.
3638 * common/buffer.h: Likewise.
3639 * common/common-utils.h: Likewise.
3641 2014-08-07 Gary Benson <gbenson@redhat.com>
3643 * common/common-defs.h: Include stddef.h.
3644 * defs.h: Do not include stddef.h.
3645 * common/common-utils.h: Likewise.
3646 * amd64fbsd-nat.c: Likewise.
3647 * bcache.c: Likewise.
3648 * charset.c: Likewise.
3649 * common/buffer.h: Likewise.
3650 * common/vec.h: Likewise.
3651 * i386bsd-nat.c: Likewise.
3652 * nat/linux-btrace.h: Likewise.
3653 * ppcfbsd-nat.c: Likewise.
3654 * ppcnbsd-tdep.h: Likewise.
3655 * ppcobsd-nat.c: Likewise.
3656 * ppcobsd-tdep.h: Likewise.
3657 * python/py-gdb-readline.c: Likewise.
3659 2014-08-07 Gary Benson <gbenson@redhat.com>
3661 * common/common-defs.h: Include stdarg.h.
3662 * defs.h: Do not include stdarg.h.
3663 * ada-lang.c: Likewise.
3664 * common/common-utils.h: Likewise.
3665 * guile/scm-string.c: Likewise.
3666 * guile/scm-utils.c: Likewise.
3667 * m32c-tdep.c: Likewise.
3669 2014-08-07 Gary Benson <gbenson@redhat.com>
3671 * common/common-defs.h: Include stdlib.h.
3672 * defs.h: Do not include stdlib.h.
3673 * addrmap.c: Likewise.
3674 * bcache.c: Likewise.
3675 * common/buffer.c: Likewise.
3676 * common/common-utils.c: Likewise.
3677 * cp-name-parser.y: Likewise.
3678 * go32-nat.c: Likewise.
3679 * mn10300-linux-tdep.c: Likewise.
3680 * nat/linux-osdata.c: Likewise.
3681 * tui/tui.c: Likewise.
3682 * windows-nat.c: Likewise.
3684 2014-08-07 Gary Benson <gbenson@redhat.com>
3686 * common/common-defs.h: Include stdio.h.
3687 * defs.h: Do not include stdio.h.
3688 * ada-lang.c: Likewise.
3689 * common/buffer.c: Likewise.
3690 * common/common-utils.c: Likewise.
3691 * cp-name-parser.y: Likewise.
3692 * gnu-nat.c: Likewise.
3693 * go32-nat.c: Likewise.
3694 * i386gnu-nat.c: Likewise.
3695 * proc-api.c: Likewise.
3696 * proc-events.c: Likewise.
3697 * proc-flags.c: Likewise.
3698 * proc-why.c: Likewise.
3699 * python/python-internal.h: Likewise.
3700 * target-memory.c: Likewise.
3701 * tui/tui-io.c: Likewise.
3702 * tui/tui.c: Likewise.
3704 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3706 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3707 (scan_dyntag_auxv): Same.
3709 2014-08-06 Yao Qi <yao@codesourcery.com>
3711 * amd64-linux-nat.c: Remove duplicated include
3713 * i386-linux-nat.c: Likewise.
3715 2014-08-06 Yao Qi <yao@codesourcery.com>
3717 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3718 operand" with "Special opcode" in comments.
3720 2014-08-05 Gary Benson <gbenson@redhat.com>
3722 * interps.c (initialize_interps): Remove prototype.
3723 (interpreter_initialized): Remove static global.
3724 (interp_add): Do not call initialize_interps.
3725 (initialize_interps): Remove function.
3727 2014-08-05 Gary Benson <gbenson@redhat.com>
3729 * utils.c (vwarning): Remove spurious va_end.
3731 2014-08-05 Alan Modra <amodra@gmail.com>
3733 * charset.c (convert_between_encodings): Cast result of obstack_base.
3734 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3735 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3736 (read_unwind_info): Use size_t for some locals.
3737 * jit.c (finalize_symtab): Likewise.
3738 * utils.c (hashtab_obstack_allocate): Likewise.
3739 * symmisc.c (print_objfile_statistics): Update format strings.
3741 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3743 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3744 (Changes in GDB 7.8): ... here.
3746 2014-08-04 Tom Tromey <tromey@redhat.com>
3748 * target.c (set_targetdebug): New function.
3749 (initialize_targets): Pass set_targetdebug when creating "set
3752 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3754 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3755 if detecting a variable-sized field that is not the last field.
3756 Fix struct type length computation.
3758 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3760 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3763 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3765 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3766 Remove "+ 8" offset in computation of CHAIN_VMA.
3768 2014-07-31 Doug Evans <dje@google.com>
3770 * inflow.c (child_terminal_inferior): Add comment.
3771 (child_terminal_ours_for_output): Add comment.
3772 (child_terminal_ours): Add comment.
3773 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3774 (linux_nat_terminal_ours): Add comment.
3776 2014-07-31 Gary Benson <gbenson@redhat.com>
3778 * common/btrace-common.h: Do not include defs.h or server.h.
3779 * nat/mips-linux-watch.h: Likewise.
3780 * gdb-dlfcn.h: Do not include defs.h.
3781 * tracefile.h: Likewise.
3783 2014-07-30 Roland McGrath <mcgrathr@google.com>
3785 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3787 2014-07-30 Tom Tromey <tromey@redhat.com>
3789 * bsd-kvm.c (bsd_kvm_open): Constify.
3790 * corelow.c (core_open): Constify.
3791 * ctf.c (ctf_open): Constify.
3792 * dbug-rom.c (dbug_open): Constify.
3793 * exec.c (exec_open): Constify.
3794 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3795 * microblaze-rom.c (picobug_open): Constify.
3796 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3798 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3799 * record-btrace.c (record_btrace_open): Constify.
3800 * record-full.c (record_full_core_open_1, record_full_open_1)
3801 (record_full_open): Constify.
3802 * remote-m32r-sdi.c (m32r_open): Constify.
3803 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3804 (rockhopper_open, lsi_open): Constify.
3805 * remote-sim.c (gdbsim_open): Constify.
3806 * remote.c (remote_open, extended_remote_open, remote_open_1):
3808 * target.h (struct target_ops) <to_open>: Make "arg" const.
3809 * tracefile-tfile.c (tfile_open): Constify.
3811 2014-07-30 Tom Tromey <tromey@redhat.com>
3813 * breakpoint.c (map_breakpoint_numbers): Update.
3814 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3815 (get_number_const): New function.
3816 (get_number): Rewrite using get_number_const.
3817 (init_number_or_range): Make "string" const.
3818 (number_is_in_list): Make "list" const.
3819 * cli/cli-utils.h (get_number_const): Declare.
3820 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3821 (init_number_or_range, number_is_in_list): Update.
3822 * printcmd.c (map_display_numbers): Update.
3823 * value.c (value_from_history_ref): Constify.
3824 * value.h (value_from_history_ref): Update.
3826 2014-07-30 Tom Tromey <tromey@redhat.com>
3828 * corefile.c (hook_type, call_extra_exec_file_hooks)
3829 (specify_exec_file_hook): Constify.
3830 * exec.c (exec_file_attach): Make "filename" const.
3831 * gdbcore.h (deprecated_exec_file_display_hook)
3832 (specify_exec_file_hook, exec_file_attach): Constify.
3833 * main.c (captured_main): Use catch_command_errors_const.
3835 2014-07-30 Tom Tromey <tromey@redhat.com>
3837 * target.c (open_target): New function.
3838 (add_target_with_completer, add_deprecated_target_alias): Use
3839 set_cmd_sfunc, set_cmd_context.
3840 (debug_to_open): Remove.
3841 (setup_target_debug): Update.
3843 2014-07-30 Yao Qi <yao@codesourcery.com>
3845 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3847 * parse.c (exp_iterate): Update comments.
3849 2014-07-30 Gary Benson <gbenson@redhat.com>
3851 * common/common-defs.h: New file.
3852 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3853 * defs.h: Include common-defs.h.
3854 Do not include config.h or build-gnulib/config.h.
3856 2014-07-30 Gary Benson <gbenson@redhat.com>
3858 * common/common-utils.h: Do not include config.h.
3859 * nat/linux-btrace.h: Likewise.
3861 2014-07-30 Gary Benson <gbenson@redhat.com>
3863 * btrace.c: Include defs.h.
3864 * common/ptid.c: Include defs.h or server.h as appropriate.
3865 * nat/mips-linux-watch.c: Likewise.
3867 2014-07-29 Tom Tromey <tromey@redhat.com>
3869 * target.c (target_is_pushed): Simplify.
3871 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3875 2014-07-29 Yao Qi <yao@codesourcery.com>
3878 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3880 2014-07-28 Doug Evans <xdje42@gmail.com>
3883 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3884 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3887 2014-07-28 Will Newton <will.newton@linaro.org>
3889 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3890 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3891 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3892 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3893 (THUMB2_EABI_SYSCALL): Likewise.
3894 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3896 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3897 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3899 2014-07-27 Doug Evans <xdje42@gmail.com>
3901 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3903 2014-07-27 Doug Evans <xdje42@gmail.com>
3905 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3907 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3908 Doug Evans <xdje42@gmail.com>
3911 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3912 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3913 * configure.ac: Try to use guild to compile an scm file, if it fails
3914 then disable guile support.
3915 * configure: Regenerate.
3916 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3918 (GUILE_COMPILED_FILES): New variable.
3919 (GUILE_FILES) Update.
3920 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3921 (stamp-guile): Compile scm files.
3922 * guile/guile.c (boot_guile_support): New function.
3923 (standard_throw_args_p): New function.
3924 (print_standard_throw_error, print_throw_error): New functions.
3925 (handle_boot_error): New function.
3926 (initialize_scheme_side): Rewrite to call boot_guile_support.
3927 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3928 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3930 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3931 Doug Evans <xdje42@gmail.com>
3934 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3935 * guile/lib/gdb/support.scm: New file.
3936 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3937 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3939 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3941 (%assert-type): Ditto, and renamed to assert-type.
3942 (%exception-print-style): Delete.
3944 2014-07-26 Doug Evans <xdje42@gmail.com>
3947 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3948 * configure: Regenerate.
3949 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3951 (PYTHON_FILES): New variable.
3952 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3953 (GUILE_FILES): New variable.
3954 (stamp-python, install-python, uninstall-python): Handle empty
3956 (stamp-guile, install-guile, uninstall-guile): Ditto.
3958 2014-07-26 Doug Evans <xdje42@gmail.com>
3961 * guile/lib/gdb.scm (pretty-printers): Export.
3962 (set-pretty-printers!): Export.
3963 * guile/lib/gdb/printing.scm (gdb module): Update.
3964 (prepend-pretty-printer!, append-pretty-printer!): Update.
3965 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3966 (pretty_printer_list_var): Delete.
3967 (pretty_printer_list): New static global.
3968 (gdbscm_pretty_printers): New function.
3969 (gdbscm_set_pretty_printers_x): New function.
3970 (ppscm_find_pretty_printer_from_gdb): Update.
3971 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3972 (gdbscm_initialize_pretty_printers): Update.
3974 2014-07-26 Doug Evans <xdje42@gmail.com>
3977 * configure.ac: Add check for header gc/gc.h.
3978 Add check for function setenv.
3979 * configure: Regenerate.
3980 * config.in: Regenerate.
3981 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3983 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3985 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3986 variation in gdbarch matching.
3988 2014-07-25 Tom Tromey <tromey@redhat.com>
3990 * exec.c (using_exec_ops): Remove.
3991 (exec_close_1): Update. Remove extraneous block, reindent.
3992 (add_target_sections): Use target_is_pushed.
3994 2014-07-25 Pedro Alves <palves@redhat.com>
3996 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3997 * monitor.c (monitor_create_inferior): Likewise.
3998 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3999 * remote-sim.c (gdbsim_create_inferior): Likewise.
4000 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4001 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4002 * windows-nat.c (do_initial_windows_stuff): Likewise.
4004 2014-07-25 Pedro Alves <palves@redhat.com>
4006 * NEWS: Mention signal passing and "signal" command changes.
4007 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4009 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4011 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4012 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4013 (jump_command): Adjust clear_proceed_status call.
4014 (signal_command): Warn if other thread that are resumed have
4015 signals that will be delivered. Adjust clear_proceed_status call.
4016 (until_next_command, finish_command)
4017 (proceed_after_attach_callback, attach_command_post_wait)
4018 (attach_command): Adjust clear_proceed_status call.
4019 * infrun.c (proceed_after_vfork_done): Likewise.
4020 (proceed_after_attach_callback): Adjust comment.
4021 (clear_proceed_status_thread): Clear stop_signal if not in pass
4023 (clear_proceed_status_callback): Delete.
4024 (clear_proceed_status): New 'step' parameter. Only clear the
4025 proceed status of threads the command being prepared is about to
4027 (proceed): If passed in an explicit signal, override stop_signal
4028 with it. Don't pass the last stop signal to the thread we're
4030 (init_wait_for_inferior): Adjust clear_proceed_status call.
4031 (switch_back_to_stepped_thread): Clear the signal if it should not
4033 * infrun.h (clear_proceed_status): New 'step' parameter.
4034 (user_visible_resume_ptid): Add comment.
4035 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4036 signal is in pass state.
4037 * remote.c (append_pending_thread_resumptions): Likewise.
4038 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4040 2014-07-25 Tom Tromey <tromey@redhat.com>
4042 * target.h (target_stopped_data_address)
4043 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4046 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4048 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4050 (avr_pointer_to_address): Likewise.
4052 2014-07-24 Tom Tromey <tromey@redhat.com>
4054 * monitor.c (compile_pattern): Update.
4055 * target.h (struct target_ops) <to_shortname, to_longname,
4058 2014-07-24 Tom Tromey <tromey@redhat.com>
4060 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4061 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4062 (add_info_alias, add_com): Make "doc" const.
4063 (print_doc_line): Make "str" const.
4064 (delete_cmd): Update.
4065 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4066 (print_doc_line): Update.
4067 * cli/cli-script.c (document_command): Update.
4068 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4069 (add_com, add_info, add_info_alias): Update.
4070 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4071 * python/py-cmd.c (cmdpy_destroyer): Update.
4073 2014-07-24 Tom Tromey <tromey@redhat.com>
4075 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4076 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4077 (help_cmd_list): Constify.
4078 (lookup_cmd): Update.
4079 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4081 (help_cmd_list, apropos_cmd): Update.
4082 * cli/cli-script.c (show_user): Update.
4083 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4084 * cli/cli-setshow.h (cmd_show_list): Update.
4085 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4086 (cmd_show_list): Update.
4087 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4088 * python/py-cmd.c (cmdpy_destroyer): Update.
4090 2014-07-24 Tom Tromey <tromey@redhat.com>
4092 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4093 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4095 * command.h (deprecate_cmd): Update.
4096 * maint.c (maintenance_do_deprecate): Add casts.
4098 2014-07-24 Tom Tromey <tromey@redhat.com>
4100 * cli/cli-decode.c (help_cmd): Make parameter "const".
4101 * cli/cli-decode.h (help_cmd): Update.
4103 2014-07-24 Tom Tromey <tromey@redhat.com>
4105 * stack.c (up_silently_base, down_silently_base): Make argument
4108 2014-07-24 Tom Tromey <tromey@redhat.com>
4110 * solib.c (solib_add): Make "pattern" const.
4111 * solib.h (solib_add): Update.
4113 2014-07-24 Tom Tromey <tromey@redhat.com>
4115 * remote.c (remote_serial_open, print_packet, putpkt)
4116 (putpkt_binary): Constify.
4117 * remote.h (putpkt): Update.
4119 2014-07-24 Tom Tromey <tromey@redhat.com>
4121 * monitor.c (monitor_open): Make "args" const.
4122 * monitor.h (monitor_open): Update.
4124 2014-07-24 Tom Tromey <tromey@redhat.com>
4126 * maint.c (match_bfd_flags): Make "string" const.
4127 (print_bfd_section_info): Remove casts.
4128 (print_objfile_section_info): Make "string" const.
4130 2014-07-24 Tom Tromey <tromey@redhat.com>
4132 * inf-child.c (inf_child_open_target): Make "arg" const.
4133 * inf-child.h (inf_child_open_target): Update.
4135 2014-07-24 Tom Tromey <tromey@redhat.com>
4137 * environ.c (unset_in_environ): Make "var" const.
4138 * environ.h (unset_in_environ): Update.
4140 2014-07-24 Tom Tromey <tromey@redhat.com>
4142 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4144 (scan_filename_with_cleanup): Likewise.
4145 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4146 Make arguments const.
4147 (restore_command): Update.
4149 2014-07-24 Pedro Alves <palves@redhat.com>
4151 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4153 2014-07-24 Tom Tromey <tromey@redhat.com>
4154 Gary Benson <gbenson@redhat.com>
4156 * nat/linux-ptrace.c (additional_flags): New global.
4157 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4158 additional_flags; don't check GDBSERVER.
4159 (linux_ptrace_set_additional_flags): New function.
4160 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4162 * linux-nat.c (_initialize_linux_nat): Call
4163 linux_ptrace_set_additional_flags.
4165 2014-07-24 Tom Tromey <tromey@redhat.com>
4167 * make-target-delegates (munge_type, write_debugmethod): New
4169 (debug_names): New global.
4170 ($TARGET_DEBUG_PRINTER): New global.
4171 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4173 Write debug methods. Generate init_debug_target.
4174 * target-debug.h: New file.
4175 * target-delegates.c: Rebuild.
4176 * target.c: Include target-debug.h.
4177 (debug_target): Hoist definition.
4178 (target_kill, target_get_section_table, target_memory_map)
4179 (target_flash_erase, target_flash_done, target_detach)
4180 (target_disconnect, target_wait, target_resume)
4181 (target_pass_signals, target_program_signals, target_follow_fork)
4182 (target_mourn_inferior, target_search_memory)
4183 (target_thread_address_space, target_close)
4184 (target_find_new_threads, target_core_of_thread)
4185 (target_verify_memory, target_insert_mask_watchpoint)
4186 (target_remove_mask_watchpoint): Remove targetdebug code.
4187 (debug_to_post_attach, debug_to_prepare_to_store)
4188 (debug_to_files_info, debug_to_insert_breakpoint)
4189 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4190 (debug_to_region_ok_for_hw_watchpoint)
4191 (debug_to_can_accel_watchpoint_condition)
4192 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4193 (debug_to_watchpoint_addr_within_range)
4194 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4195 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4196 (debug_to_terminal_init, debug_to_terminal_inferior)
4197 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4198 (debug_to_terminal_save_ours, debug_to_terminal_info)
4199 (debug_to_load, debug_to_post_startup_inferior)
4200 (debug_to_insert_fork_catchpoint)
4201 (debug_to_remove_fork_catchpoint)
4202 (debug_to_insert_vfork_catchpoint)
4203 (debug_to_remove_vfork_catchpoint)
4204 (debug_to_insert_exec_catchpoint)
4205 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4206 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4207 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4208 (setup_target_debug): Call init_debug_target.
4209 * target.h (TARGET_DEBUG_PRINTER): New macro.
4210 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4211 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4213 2014-07-24 Gary Benson <gbenson@redhat.com>
4215 * exceptions.h (throw_vfatal): Renamed to...
4216 (throw_vquit): New declaration.
4217 (throw_quit): Likewise.
4218 * exceptions.c (throw_vfatal): Renamed to...
4219 (throw_vquit): New function.
4220 (throw_quit): Likewise.
4221 (throw_error): Call throw_verror rather than throw_it.
4222 * utils.h (vfatal): Removed.
4224 * utils.c (vfatal): Removed.
4226 (internal_verror): Replaced call to fatal with call to throw_quit.
4227 (quit): Replaced calls to fatal with calls to throw_quit.
4229 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4231 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4234 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4236 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4237 less than zero in conditional expression.
4239 2014-07-23 Tom Tromey <tromey@redhat.com>
4241 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4242 ($INTRO_PART): Don't match whitespace.
4243 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4245 ($METHOD): Add $METHOD_TRAILER.
4247 (scan_target_h): New sub.
4248 Change main loop not to collect state.
4249 * target-delegates.c: Rebuild.
4251 2014-07-23 Gary Benson <gbenson@redhat.com>
4253 * cp-support.c (gdb_demangle): Fix build on systems without
4256 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4258 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4259 for reference entry value target data value.
4261 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4263 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4264 value_available_contents_eq.
4266 2014-07-22 Pedro Alves <palves@redhat.com>
4268 * value.c (allocate_optimized_out_value): Don't mark value as
4271 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4273 * MAINTAINERS (Write After Approval): Update my email address.
4275 2014-07-20 Doug Evans <dje@google.com>
4278 * remote.c (putpkt_binary): Add text to error message.
4280 2014-07-20 Yao Qi <yao@codesourcery.com>
4282 * eval.c: Remove "Chill" from comments.
4283 * gdbtypes.h: Likewise.
4284 * symtab.h: Likewise.
4286 2014-07-20 Yao Qi <yao@codesourcery.com>
4288 * std-operator.def: Update comments to TERNOP_SLICE.
4290 2014-07-20 Yao Qi <yao@codesourcery.com>
4292 * std-operator.def: Remove BINOP_RANGE.
4293 * breakpoint.c (watchpoint_exp_is_const): Update.
4294 * expprint.c (dump_subexp_body_standard): Likewise.
4295 * eval.c (init_array_element): Remove dead code.
4296 (evaluate_subexp_standard): Likewise.
4298 2014-07-20 Yao Qi <yao@codesourcery.com>
4300 * std-operator.def: Remove BINOP_IN.
4301 * breakpoint.c (watchpoint_exp_is_const): Update.
4302 * eval.c (evaluate_subexp_standard): Likewise.
4303 * expprint.c (dump_subexp_body_standard): Likewise.
4305 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4307 * microblaze-tdep.c (microblaze_register_names): Add
4308 the rshr and rslr register names.
4309 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4310 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4311 Use of tdesc_numbered_register. Use of
4312 microblaze_register_g_packet_guesses. Use of
4313 tdesc_use_registers. Use of set_gdbarch_register_type.
4314 (microblaze_register_g_packet_guesses): New.
4315 * microblaze-tdep.h (microblaze_reg_num): Add
4316 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4317 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4318 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4319 * features/microblaze-core.xml: New file.
4320 * features/microblaze-stack-protect.xml: New file.
4321 * features/microblaze-with-stack-protect.c: New file.
4322 * features/microblaze-with-stack-protect.xml: New file.
4323 * features/microblaze.xml: New file.
4324 * features/microblaze.c: New file.
4325 * features/Makefile (microblaze-with-stack-protect): Add
4326 microblaze-with-stack-protect microblaze and microblaze-expedite.
4327 * regformats/microblaze-with-stack-protect.dat: New file.
4328 * regformats/microblaze.dat: New file.
4329 * doc/gdb.texinfo (MicroBlaze Features): Added.
4331 2014-07-18 Tom Tromey <tromey@redhat.com>
4333 * exec.c (exec_ops): Now static.
4334 * exec.h (exec_ops): Don't declare.
4336 2014-07-18 Tom Tromey <tromey@redhat.com>
4338 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4339 to find_target_beneath.
4340 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4341 find_target_beneath.
4342 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4344 2014-07-18 Tom Tromey <tromey@redhat.com>
4347 * utils.c (quit): Use target_supports_terminal_ours.
4348 * target.h (target_supports_terminal_ours): Declare.
4349 * target.c (target_supports_delete_record): Don't check
4350 to_delete_record against NULL.
4351 (target_supports_terminal_ours): New function.
4353 2014-07-18 Tom Tromey <tromey@redhat.com>
4356 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4357 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4358 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4359 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4360 * windows-nat.c (windows_xfer_partial): Always delegate.
4361 * record-btrace.c (record_btrace_xfer_partial): Simplify
4363 (record_btrace_fetch_registers, record_btrace_store_registers)
4364 (record_btrace_prepare_to_store, record_btrace_resume)
4365 (record_btrace_wait, record_btrace_find_new_threads)
4366 (record_btrace_thread_alive): Likewise.
4367 * procfs.c (procfs_xfer_partial): Always delegate.
4368 * corelow.c (core_xfer_partial): Always delegate.
4369 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4371 2014-07-18 Tom Tromey <tromey@redhat.com>
4373 * exec.c (exec_make_note_section): Move earlier.
4375 2014-07-17 Doug Evans <dje@google.com>
4378 * maint.c (count_symtabs_and_blocks): Handle NULL
4379 current_program_space.
4380 (report_command_stats): Check global enabled flag in addition to
4381 recorded enabled flag.
4382 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4384 2014-07-16 Pedro Alves <palves@redhat.com>
4386 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4388 2014-07-16 Tom Tromey <tromey@redhat.com>
4390 * target.h (struct target_ops) <to_delete_record>: Reformat
4393 2014-07-16 Tom Tromey <tromey@redhat.com>
4395 * target-delegates.c: Rebuild.
4397 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4399 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4400 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4401 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4402 (avr_pointer_to_address): Likewise.
4403 (avr_address_class_type_flags): New function.
4404 (avr_address_class_type_flags_to_name): Likewise.
4405 (avr_address_class_name_to_type_flags): Likewise.
4406 (avr_gdbarch_init): Set address_class_type_flags,
4407 address_class_type_flags_to_name and
4408 address_class_name_to_type_flags.
4410 2014-07-15 Pedro Alves <palves@redhat.com>
4412 * linux-nat.c (kill_callback): Save errno and work with saved
4415 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4417 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4419 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4421 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4422 breakpoint support correctly.
4424 2014-07-14 Pedro Alves <palves@redhat.com>
4426 * utils.c (prompt_for_continue): Call target_terminal_ours.
4428 2014-07-14 Pedro Alves <palves@redhat.com>
4430 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4431 catch_errors. Don't re-enable stdin or notify observers where,
4433 (fetch_inferior_event_wrapper): Delete.
4435 2014-07-14 Pedro Alves <palves@redhat.com>
4438 * top.c: Include "inf-loop.h".
4439 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4441 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4443 (gdb_readline_wrapper): Store whether the target is async, and
4446 2014-07-14 Pedro Alves <palves@redhat.com>
4449 * top.c (gdb_readline_wrapper_line): Tweak comment.
4450 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4451 the input handler callback.
4453 2014-07-14 Pedro Alves <palves@redhat.com>
4456 * main.c: Include event-top.h.
4457 (handle_command_errors): New function.
4458 (catch_command_errors, catch_command_errors_const): Use it.
4460 2014-07-14 Pedro Alves <palves@redhat.com>
4462 * exceptions.c (catch_command_errors, catch_command_errors_const):
4464 * exceptions.h (catch_command_errors_ftype)
4465 (catch_command_errors_const_ftype): Moved to main.c.
4466 (catch_command_errors, catch_command_errors_const): Delete
4468 * main.c (catch_command_errors_ftype)
4469 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4470 (catch_command_errors, catch_command_errors_const)): Moved here
4471 from exceptions.c and make static.
4473 2014-07-14 Pedro Alves <palves@redhat.com>
4475 * exceptions.c (print_any_exception): Delete.
4476 (catch_exceptions_with_msg): Use exception_print instead of
4477 print_any_exception.
4478 (catch_errors): Use exception_fprintf instead of
4479 print_any_exception.
4480 (catch_command_errors, catch_command_errors_const): Use
4481 exception_print instead of print_any_exception.
4483 2014-07-14 Pedro Alves <palves@redhat.com>
4485 * infcall.c (run_inferior_call): Set 'sync_execution' while
4486 running the inferior call.
4488 2014-07-14 Pedro Alves <palves@redhat.com>
4490 * value.c (value_contents_equal): Delete function.
4491 * value.h (value_contents_equal): Delete declaration.
4493 2014-07-14 Tom Tromey <tromey@redhat.com>
4496 * gdbtypes.c (is_dynamic_type_internal): New function, from
4498 (is_dynamic_type): Rewrite.
4499 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4500 (resolve_dynamic_struct): Likewise.
4501 (resolve_dynamic_type_internal): New function, from
4502 resolve_dynamic_type.
4503 (resolve_dynamic_type): Rewrite.
4505 2014-07-14 Tom Tromey <tromey@redhat.com>
4507 * target.c (target_require_runnable): Also check record_stratum.
4510 2014-07-11 Yao Qi <yao@codesourcery.com>
4512 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4513 thumb_instruction_restores_sp return true.
4515 2014-07-11 Yao Qi <yao@codesourcery.com>
4517 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4518 (thumb_in_function_epilogue_p): Call
4519 thumb_instruction_restores_sp.
4521 2014-07-11 Yao Qi <yao@codesourcery.com>
4523 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4525 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4527 2014-07-11 Gary Benson <gbenson@redhat.com>
4529 * amd64-linux-nat.c (gdbcore.h): Remove include.
4530 (regset.h): Likewise.
4531 (nat/linux-btrace.h): Likewise.
4532 (btrace.h): Likewise.
4533 (gdb_assert.h): Likewise.
4534 (string.h): Likewise.
4535 (sys/uio.h): Likewise.
4536 (sys/debugreg.h): Likewise.
4537 (sys/syscall.h): Likewise.
4538 (sys/procfs.h): Likewise.
4539 (sys/user.h): Likewise.
4540 (asm/ptrace.h): Likewise.
4541 (i386-nat.h): Likewise.
4542 * i386-linux-nat.c (i386-nat.h): Likewise.
4543 (regset.h): Likewise.
4544 (target.h): Likewise.
4545 (linux-nat.h): Likewise.
4546 (nat/linux-btrace.h): Likewise.
4547 (btrace.h): Likewise.
4548 (gdb_assert.h): Likewise.
4549 (string.h): Likewise.
4550 (sys/uio.h): Likewise.
4551 (sys/user.h): Likewise.
4552 (sys/procfs.h): Likewise.
4553 (sys/reg.h): Likewise.
4554 (sys/debugreg.h): Likewise.
4555 (ORIG_EAX): Remove definition.
4557 2014-07-11 Gary Benson <gbenson@redhat.com>
4559 * i386-linux-nat.h: New file.
4560 * x86-linux-nat.h: Likewise.
4561 * x86-linux-nat.c: Likewise.
4562 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4563 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4564 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4565 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4566 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4567 (PTRACE_SETREGSET): Likewise.
4568 (arch_lwp_info): Now in x86-linux-nat.c.
4569 (have_ptrace_getregset): Now in x86-linux-nat.h.
4570 (x86_linux_dr_get): Now in x86-linux-nat.c.
4571 (x86_linux_dr_set): Likewise.
4572 (x86_linux_dr_get_addr): Likewise.
4573 (x86_linux_dr_get_control): Likewise.
4574 (x86_linux_dr_get_status): Likewise.
4575 (update_debug_registers_callback): Likewise.
4576 (x86_linux_dr_set_control): Likewise.
4577 (x86_linux_dr_set_addr): Likewise.
4578 (x86_linux_prepare_to_resume): Likewise.
4579 (x86_linux_new_thread): Likewise.
4580 (x86_linux_new_fork): Likewise.
4581 (x86_linux_get_thread_area): Likewise.
4582 (super_post_startup_inferior): Likewise.
4583 (x86_linux_child_post_startup_inferior): Likewise.
4584 (AMD64_LINUX_USER64_CS): Likewise.
4585 (AMD64_LINUX_X32_DS): Likewise.
4586 (x86_linux_read_description): Likewise.
4587 (x86_linux_enable_btrace): Likewise.
4588 (x86_linux_disable_btrace): Likewise.
4589 (x86_linux_teardown_btrace): Likewise.
4590 (x86_linux_read_btrace): Likewise.
4591 (x86_linux_create_target): Likewise.
4592 (x86_linux_add_target): Likewise.
4593 * i386-linux-nat.c (x86-linux-nat.h): New include.
4594 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4595 (PTRACE_SETREGSET): Likewise.
4596 (arch_lwp_info): Now in x86-linux-nat.c.
4597 (have_ptrace_getregset): Now in x86-linux-nat.h.
4598 (x86_linux_dr_get): Now in x86-linux-nat.c.
4599 (x86_linux_dr_set): Likewise.
4600 (x86_linux_dr_get_addr): Likewise.
4601 (x86_linux_dr_get_control): Likewise.
4602 (x86_linux_dr_get_status): Likewise.
4603 (update_debug_registers_callback): Likewise.
4604 (x86_linux_dr_set_control): Likewise.
4605 (x86_linux_dr_set_addr): Likewise.
4606 (x86_linux_prepare_to_resume): Likewise.
4607 (x86_linux_new_thread): Likewise.
4608 (x86_linux_new_fork): Likewise.
4609 (x86_linux_get_thread_area): Likewise.
4610 (super_post_startup_inferior): Likewise.
4611 (x86_linux_child_post_startup_inferior): Likewise.
4612 (AMD64_LINUX_USER64_CS): Likewise.
4613 (AMD64_LINUX_X32_DS): Likewise.
4614 (x86_linux_read_description): Likewise.
4615 (x86_linux_enable_btrace): Likewise.
4616 (x86_linux_disable_btrace): Likewise.
4617 (x86_linux_teardown_btrace): Likewise.
4618 (x86_linux_read_btrace): Likewise.
4619 (x86_linux_create_target): Likewise.
4620 (x86_linux_add_target): Likewise.
4622 2014-07-11 Gary Benson <gbenson@redhat.com>
4624 * amd64-linux-nat.c: Comment and whitespace changes.
4625 * i386-linux-nat.c: Comment and whitespace changes.
4627 2014-07-11 Gary Benson <gbenson@redhat.com>
4629 * amd64-linux-nat.c (x86_linux_create_target): New function.
4630 (x86_linux_add_target): Likewise.
4631 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4632 * i386-linux-nat.c (x86_linux_create_target): New function.
4633 (x86_linux_add_target): Likewise.
4634 (_initialize_i386_linux_nat): Delegate to the above new functions.
4636 2014-07-11 Gary Benson <gbenson@redhat.com>
4638 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4639 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4640 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4641 (ps_get_thread_area): Delegate to the above.
4643 2014-07-11 Gary Benson <gbenson@redhat.com>
4645 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4646 x86_linux_read_description. All uses updated. amd64-specific
4647 code conditionalized. Conditionalized i386-specific code added.
4648 Redundant cast removed.
4649 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4650 x86_linux_read_description. All uses updated. i386-specific
4651 code conditionalized. Conditionalized amd64-specific code added.
4652 One sizeof replaced with the actual type it is describing.
4654 2014-07-11 Gary Benson <gbenson@redhat.com>
4656 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4657 x86_linux_dr_get. All uses updated.
4658 (amd64_linux_dr_set): Renamed to
4659 x86_linux_dr_set. All uses updated.
4660 (amd64_linux_dr_get_addr): Renamed to
4661 x86_linux_dr_get_addr. All uses updated.
4662 (amd64_linux_dr_get_control): Renamed to
4663 x86_linux_dr_get_control. All uses updated.
4664 (amd64_linux_dr_get_status): Renamed to
4665 x86_linux_dr_get_status. All uses updated.
4666 (amd64_linux_dr_set_control): Renamed to
4667 x86_linux_dr_set_control. All uses updated.
4668 (amd64_linux_dr_set_addr): Renamed to
4669 x86_linux_dr_set_addr. All uses updated.
4670 (amd64_linux_prepare_to_resume): Renamed to
4671 x86_linux_prepare_to_resume. All uses updated.
4672 (amd64_linux_new_thread): Renamed to
4673 x86_linux_new_thread. All uses updated.
4674 (amd64_linux_new_fork): Renamed to
4675 x86_linux_new_fork. All uses updated.
4676 (amd64_linux_child_post_startup_inferior): Renamed to
4677 x86_linux_child_post_startup_inferior. All uses updated.
4678 (amd64_linux_enable_btrace): Renamed to
4679 x86_linux_enable_btrace. All uses updated.
4680 (amd64_linux_disable_btrace): Renamed to
4681 x86_linux_disable_btrace. All uses updated.
4682 (amd64_linux_teardown_btrace): Renamed to
4683 x86_linux_teardown_btrace. All uses updated.
4684 (amd64_linux_read_btrace): Renamed to
4685 x86_linux_read_btrace. All uses updated.
4686 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4687 x86_linux_dr_get. All uses updated.
4688 (i386_linux_dr_set): Renamed to
4689 x86_linux_dr_set. All uses updated.
4690 (i386_linux_dr_get_addr): Renamed to
4691 x86_linux_dr_get_addr. All uses updated.
4692 (i386_linux_dr_get_control): Renamed to
4693 x86_linux_dr_get_control. All uses updated.
4694 (i386_linux_dr_get_status): Renamed to
4695 x86_linux_dr_get_status. All uses updated.
4696 (i386_linux_dr_set_control): Renamed to
4697 x86_linux_dr_set_control. All uses updated.
4698 (i386_linux_dr_set_addr): Renamed to
4699 x86_linux_dr_set_addr. All uses updated.
4700 (i386_linux_prepare_to_resume): Renamed to
4701 x86_linux_prepare_to_resume. All uses updated.
4702 (i386_linux_new_thread): Renamed to
4703 x86_linux_new_thread. All uses updated.
4704 (i386_linux_new_fork): Renamed to
4705 x86_linux_new_fork. All uses updated.
4706 (i386_linux_child_post_startup_inferior): Renamed to
4707 x86_linux_child_post_startup_inferior. All uses updated.
4708 (i386_linux_enable_btrace): Renamed to
4709 x86_linux_enable_btrace. All uses updated.
4710 (i386_linux_disable_btrace): Renamed to
4711 x86_linux_disable_btrace. All uses updated.
4712 (i386_linux_teardown_btrace): Renamed to
4713 x86_linux_teardown_btrace. All uses updated.
4714 (i386_linux_read_btrace): Renamed to
4715 x86_linux_read_btrace. All uses updated.
4717 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4719 * remote.c (extended_remote_post_attach): New function.
4720 (init_extended_remote_ops): Install it as to_post_attach method.
4722 2014-07-09 Pedro Alves <palves@redhat.com>
4724 * infcmd.c (attach_command_post_wait): Don't call
4725 target_terminal_inferior here.
4726 (attach_command): Call it here instead.
4728 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4730 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4732 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4733 from varobj.c, with additional checks.
4734 (c_varobj_ops): Fill in is_path_expr_parent field.
4735 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4736 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4738 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4740 (varobj_default_is_path_expr_parent): New function.
4741 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4742 (varobj_default_is_path_expr_parent): Declare new function.
4744 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4746 * infcmd.c (finish_backward): Turn internal error into normal error.
4748 2014-07-07 Pedro Alves <palves@redhat.com>
4751 * remote.c (async_handle_remote_sigint)
4752 (async_handle_remote_sigint_twice): Call
4753 gdb_call_async_signal_handler instead of
4754 mark_async_signal_handler.
4756 2014-07-07 Tom Tromey <tromey@redhat.com>
4758 * target-delegates.c: Rebuild.
4759 * target.c (target_info_record): Remove.
4760 * record.c (info_record_command): Unconditionally call
4762 * target.h (struct target_ops) <to_info_record>: Use
4763 TARGET_DEFAULT_IGNORE.
4764 (target_info_record): Remove.
4766 2014-07-07 Tom Tromey <tromey@redhat.com>
4768 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4769 TARGET_DEFAULT_NORETURN.
4770 * target.c (generic_tls_error): New function.
4771 (target_translate_tls_address): Don't search target stack.
4772 * target-delegates.c: Rebuild.
4773 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4775 * linux-thread-db.c (thread_db_get_thread_local_address):
4776 Unconditionally call beneath target.
4778 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4780 * cli/cli-logging.c (pop_output_files): Assign targerr to
4783 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4785 * MAINTAINERS (Write After Approval): Update my email address.
4787 2014-07-02 Gary Benson <gbenson@redhat.com>
4789 * proc-service.c (ps_xfer_memory): Update comment.
4790 (ps_pstop): Remove unused function.
4791 (ps_pcontinue): Likewise.
4792 (ps_lstop): Likewise.
4793 (ps_lcontinue): Likewise.
4794 (ps_lgetxregsize): Likewise.
4795 (ps_lgetxregs): Likewise.
4796 (ps_lsetxregs): Likewise.
4797 (ps_plog): Likewise.
4798 (ps_ptread): Likewise.
4799 (ps_ptwrite): Likewise.
4801 2014-07-01 Mark Wielaard <mjw@redhat.com>
4803 * dwarf2read.c (add_array_cv_type): New function.
4804 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4805 (read_tag_volatile_type): Likewise.
4807 2014-07-01 Tom Tromey <tromey@redhat.com>
4809 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4810 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4811 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4812 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4813 * command.h (cmd_cfunc_ftype): Move earlier.
4814 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4815 (add_com, add_info): Use cmd_cfunc_ftype.
4817 2014-06-30 Tom Tromey <tromey@redhat.com>
4819 * symtab.c (operator_chars): Make parameters and return type
4821 (file_matches): Make "files" const.
4822 (struct search_symbols_data) <files>: Now const.
4823 (search_symbols): Make "regexp" and "files" parameters const.
4825 (symtab_symbol_info): Remove cast.
4826 (rbreak_command): Update.
4827 * symtab.h (search_symbols): Update.
4829 2014-06-27 Yao Qi <yao@codesourcery.com>
4831 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4832 Change parameter type to 'struct thread_info *'. Caller
4834 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4836 * dummy-frame.c (struct dummy_frame_id): New.
4837 (dummy_frame_id_eq): New function.
4838 (struct dummy_frame) <id>: Change its type to 'struct
4840 (dummy_frame_push): Add parameter ptid and save it in
4842 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4844 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4846 (lookup_dummy_frame): Change parameter type to 'struct
4847 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4848 instead of frame_id_eq.
4849 (dummy_frame_pop): Add parameter ptid. Callers updated.
4850 Update comments. Compose dummy_frame_id and pass it to
4852 (dummy_frame_discard): Add parameter ptid.
4853 (dummy_frame_sniffer): Compose dummy_frame_id and call
4854 dummy_frame_id_eq instead of frame_id_eq.
4855 (fprint_dummy_frames): Print ptid.
4856 * dummy-frame.h: Remove comments.
4857 (dummy_frame_push): Add ptid in declaration.
4858 (dummy_frame_pop, dummy_frame_discard): Likewise.
4860 2014-06-26 Tom Tromey <tromey@redhat.com>
4862 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4863 * command.h (error_no_arg): Update.
4865 2014-06-26 Tom Tromey <tromey@redhat.com>
4867 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4868 (do_show_command): Make "arg" const.
4869 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4871 2014-06-26 Tom Tromey <tromey@redhat.com>
4873 * record-full.c (record_full_get_bookmark): Make "args" const.
4874 (record_full_goto_bookmark): Make "raw_bookmark" const.
4875 * record.c (record_goto): New function.
4876 (cmd_record_goto): Use it. Now static.
4877 * record.h (record_goto): Declare.
4878 (cmd_record_goto): Remove declaration.
4879 * target-delegates.c: Rebuild.
4880 * target.h (struct target_ops) <to_get_bookmark,
4881 to_goto_bookmark>: Make parameter const.
4883 2014-06-26 Tom Tromey <tromey@redhat.com>
4885 * defs.h (generic_load): Update.
4886 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4887 * monitor.c (monitor_load): Make "args" const.
4888 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4889 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4891 (mips_load): Make "file" const.
4892 * remote-sim.c (gdbsim_load): Make "args" const.
4893 * remote.c (remote_load): Make "name" const.
4894 * symfile.c (generic_load): Make "args" const.
4895 * target-delegates.c: Rebuild.
4896 * target.c (target_load): Make "arg" const.
4897 (debug_to_load): Make "args" const.
4898 * target.h (struct target_ops) <to_load>: Make parameter const.
4899 (target_load): Update.
4901 2014-06-26 Tom Tromey <tromey@redhat.com>
4904 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4905 (dwarf2_physname, read_partial_die)
4906 (guess_partial_die_structure_name, fixup_partial_die)
4907 (guess_full_die_structure_name, anonymous_struct_prefix)
4908 (dwarf2_name): Use per-BFD obstack.
4910 2014-06-26 Yao Qi <yao@codesourcery.com>
4912 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4913 dummyframe and this_id into inner block below.
4915 2014-06-26 Yao Qi <yao@codesourcery.com>
4917 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4918 with "signal_pass[0]" in the initialization of signal_pass.
4920 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4922 * record-btrace.c (record_btrace_generating_corefile)
4923 (record_btrace_prepare_to_generate_core)
4924 (record_btrace_done_generating_core): New.
4925 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4926 (record_btrace_store_registers, record_btrace_prepare_to_store):
4927 Forward request when generating a core file.
4928 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4929 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4930 to_done_generating_core.
4932 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4934 * target.h (target_ops) <to_prepare_to_generate_core>
4935 <to_done_generating_core>: New.
4936 (target_prepare_to_generate_core, target_done_generating_core): New.
4937 * target.c (target_prepare_to_generate_core)
4938 (target_done_generating_core): New.
4939 * target-delegates.c: Regenerate.
4940 * gcore.c: (write_gcore_file): Rename to ...
4941 (write_gcore_file_1): ...this.
4942 (write_gcore_file): Call target_prepare_to_generate_core
4943 and target_done_generating_core.
4945 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4947 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4948 * gcore.c (write_gcore_file): Free memory returned from
4949 make_corefile_notes.
4950 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4951 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4953 2014-06-24 Yao Qi <yao@codesourcery.com>
4955 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4956 (arm_linux_init_abi): Set skip_trampoline_code with
4957 gdbarch_skip_trampoline_code instead of
4958 find_solib_trampoline_target.
4960 2014-06-24 Yao Qi <yao@codesourcery.com>
4962 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4963 arm_skip_bx_reg returns non-zero.
4965 2014-06-24 Yao Qi <yao@codesourcery.com>
4967 * arm-tdep.c (arm_skip_bx_reg): New function.
4968 (arm_skip_stub): Call arm_skip_bx_reg.
4970 2014-06-23 Don Breazeal <donb@codesourcery.com>
4972 * MAINTAINERS: Add myself as write-after-approval maintainer.
4974 2014-06-23 Pedro Alves <palves@redhat.com>
4976 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4977 DR_CONTROL before setting DR0..DR3.
4978 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4979 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4980 bits of DR_CONTROL related to the debug register slot being
4981 disabled. If all slots are vacant, clear local slowdown as well,
4982 and assert DR_CONTROL is 0.
4984 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4986 * python/lib/gdb/command/xmethods.py
4987 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4988 current progspace only if the string "progspace" matches LOCUS_RE.
4990 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4992 Fix --with-system-readline with readline-6.3 patch 5.
4993 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4994 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4997 2014-06-20 Tom Tromey <tromey@redhat.com>
4999 * dwarf2read.c (dw2_get_real_path): Use correct type in
5001 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5003 2014-06-20 Gary Benson <gbenson@redhat.com>
5005 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5006 * common/glibc_thread_db.h: Likewise.
5007 * common/i386-cpuid.h: Likewise.
5008 * common/i386-gcc-cpuid.h: Likewise.
5009 * common/linux-btrace.h: Likewise.
5010 * common/linux-osdata.h: Likewise.
5011 * common/linux-procfs.h: Likewise.
5012 * common/linux-ptrace.h: Likewise.
5013 * common/mips-linux-watch.h: Likewise.
5014 * common/linux-btrace.c: Moved to nat.
5015 * common/linux-osdata.c: Likewise.
5016 * common/linux-procfs.c: Likewise.
5017 * common/linux-ptrace.c: Likewise.
5018 * common/mips-linux-watch.c: Likewise.
5019 * nat/gdb_thread_db.h: Moved from common.
5020 * nat/glibc_thread_db.h: Likewise.
5021 * nat/i386-cpuid.h: Likewise.
5022 * nat/i386-gcc-cpuid.h: Likewise.
5023 * nat/linux-btrace.c: Likewise.
5024 * nat/linux-btrace.h: Likewise.
5025 * nat/linux-osdata.c: Likewise.
5026 * nat/linux-osdata.h: Likewise.
5027 * nat/linux-procfs.c: Likewise.
5028 * nat/linux-procfs.h: Likewise.
5029 * nat/linux-ptrace.c: Likewise.
5030 * nat/linux-ptrace.h: Likewise.
5031 * nat/mips-linux-watch.c: Likewise.
5032 * nat/mips-linux-watch.h: Likewise.
5033 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5034 (object file files): Reordered.
5035 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5036 of glibc_thread_db.h.
5038 2014-06-20 Gary Benson <gbenson@redhat.com>
5040 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5041 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5042 (i386_dr_low): Likewise.
5043 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5044 (i386_dr_low_set_addr): Likewise.
5045 (i386_dr_low_get_addr): Likewise.
5046 (i386_dr_low_can_set_control): Likewise.
5047 (i386_dr_low_set_control): Likewise.
5048 (i386_dr_low_get_control): Likewise.
5049 (i386_dr_low_get_status): Likewise.
5050 (i386_get_debug_register_length): Likewise.
5051 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5052 (i386_dr_low): Likewise.
5053 * nat/i386-dregs.c (i386-low.h): Remove include.
5054 (i386-nat.h): Likewise.
5055 (nat/i386-dregs.h): New include.
5056 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5057 (i386_dr_low_set_addr): Likewise.
5058 (i386_dr_low_get_addr): Likewise.
5059 (i386_dr_low_can_set_control): Likewise.
5060 (i386_dr_low_set_control): Likewise.
5061 (i386_dr_low_get_control): Likewise.
5062 (i386_dr_low_get_status): Likewise.
5063 (i386_get_debug_register_length): Likewise.
5064 (debug_hw_points): Likewise.
5066 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5068 * Makefile.in (SFILES): Add d-exp.y.
5069 (YYFILES): Add d-exp.c.
5070 (YYOBJ): Add d-exp.o.
5071 (local-maintainer-clean): Delete d-exp.c.
5072 * d-exp.y: New file.
5073 * d-lang.h (d_parse): New declaration.
5074 (d_error): New declaration.
5075 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5076 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5077 PREC_ORDER operators.
5078 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5080 2014-06-19 Yao Qi <yao@codesourcery.com>
5082 * gdbthread.h (any_running): Remove the declaration.
5083 * thread.c (any_running): Remove.
5085 2014-06-19 Yao Qi <yao@codesourcery.com>
5087 * gdbthread.h (struct thread_info) <state>: Change its type to
5088 'enum thread_state'. Update comments.
5090 2014-06-19 Pedro Alves <palves@redhat.com>
5092 * gdbthread.h (ALL_THREADS): Delete.
5093 (ALL_NON_EXITED_THREADS): New macro.
5094 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5095 instead of ALL_THREADS.
5096 * infrun.c (find_thread_needs_step_over)
5097 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5098 instead of ALL_THREADS.
5099 * record-btrace.c (record_btrace_open)
5100 (record_btrace_stop_recording, record_btrace_close)
5101 (record_btrace_is_replaying, record_btrace_resume)
5102 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5103 * remote.c (append_pending_thread_resumptions): Likewise.
5104 * thread.c (thread_apply_all_command): Likewise.
5106 2014-06-19 Gary Benson <gbenson@redhat.com>
5108 * i386-nat.c (i386_stopped_by_watchpoint):
5109 Use i386_dr_stopped_by_watchpoint.
5110 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5111 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5113 2014-06-19 Gary Benson <gbenson@redhat.com>
5115 * nat/i386-dregs.c: New file.
5116 * Makefile.in (i386-dregs.o): New rule.
5117 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5118 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5119 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5120 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5121 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5122 * config/i386/go32.mh (NATDEPFILES): Likewise.
5123 * config/i386/linux.mh (NATDEPFILES): Likewise.
5124 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5125 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5126 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5127 * i386-nat.h (debug_hw_points): New declaration.
5128 * i386-nat.c (breakpoint.h): Remove include.
5129 (command.h): Likewise.
5130 (target.h): Likewise.
5131 (gdb_assert.h): Likewise.
5132 (debug_hw_points): Made nonstatic.
5133 (debug_printf): Now in i386-dregs.c.
5134 (TARGET_HAS_DR_LEN_8): Likewise.
5135 (DR_CONTROL_SHIFT): Likewise.
5136 (DR_CONTROL_SIZE): Likewise.
5137 (DR_RW_EXECUTE): Likewise.
5138 (DR_RW_WRITE): Likewise.
5139 (DR_RW_READ): Likewise.
5140 (DR_RW_IORW): Likewise.
5141 (DR_LEN_1): Likewise.
5142 (DR_LEN_2): Likewise.
5143 (DR_LEN_4): Likewise.
5144 (DR_LEN_8): Likewise.
5145 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5146 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5147 (DR_ENABLE_SIZE): Likewise.
5148 (DR_LOCAL_SLOWDOWN): Likewise.
5149 (DR_GLOBAL_SLOWDOWN): Likewise.
5150 (DR_CONTROL_RESERVED): Likewise.
5151 (I386_DR_CONTROL_MASK): Likewise.
5152 (I386_DR_VACANT): Likewise.
5153 (I386_DR_LOCAL_ENABLE): Likewise.
5154 (I386_DR_GLOBAL_ENABLE): Likewise.
5155 (I386_DR_DISABLE): Likewise.
5156 (I386_DR_SET_RW_LEN): Likewise.
5157 (I386_DR_GET_RW_LEN): Likewise.
5158 (I386_DR_WATCH_HIT): Likewise.
5159 (i386_wp_op_t): Likewise.
5160 (i386_show_dr): Likewise.
5161 (i386_length_and_rw_bits): Likewise.
5162 (i386_insert_aligned_watchpoint): Likewise.
5163 (i386_remove_aligned_watchpoint): Likewise.
5164 (i386_handle_nonaligned_watchpoint): Likewise.
5165 (i386_update_inferior_debug_regs): Likewise.
5166 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5167 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5168 (i386_region_ok_for_watchpoint):
5169 Use i386_dr_region_ok_for_watchpoint.
5170 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5172 2014-06-19 Gary Benson <gbenson@redhat.com>
5174 * i386-nat.c (i386_insert_hw_breakpoint): Use
5175 i386_insert_watchpoint.
5176 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5178 2014-06-19 Gary Benson <gbenson@redhat.com>
5180 * i386-nat.c (i386_dr_show): Renamed to
5181 i386_show_dr and made static. All uses updated.
5182 (i386_dr_length_and_rw_bits): Renamed to
5183 i386_length_and_rw_bits and made static.
5185 (i386_dr_insert_aligned_watchpoint): Renamed to
5186 i386_insert_aligned_watchpoint and made static.
5188 (i386_dr_remove_aligned_watchpoint): Renamed to
5189 i386_remove_aligned_watchpoint and made static.
5191 (i386_dr_update_inferior_debug_regs): Renamed to
5192 i386_update_inferior_debug_regs and made static.
5194 * nat/i386-dregs.h (i386_dr_show): Removed.
5195 (i386_dr_length_and_rw_bits): Likewise.
5196 (i386_dr_insert_aligned_watchpoint): Likewise.
5197 (i386_dr_remove_aligned_watchpoint): Likewise.
5198 (i386_dr_update_inferior_debug_regs): Likewise.
5200 2014-06-19 Gary Benson <gbenson@redhat.com>
5202 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5203 * configure: Regenerate.
5204 * config.in: Likewise.
5205 * main.c (signal.h): New include.
5206 (setup_alternate_signal_stack): New function.
5207 (captured_main): Call the above.
5208 * cp-support.c (signal.h): New include.
5209 (catch_demangler_crashes): New flag.
5210 (SIGJMP_BUF): New define.
5211 (SIGSETJMP): Likewise.
5212 (SIGLONGJMP): Likewise.
5213 (gdb_demangle_jmp_buf): New static global.
5214 (gdb_demangle_attempt_core_dump): Likewise.
5215 (gdb_demangle_signal_handler): New function.
5216 (gdb_demangle): If catch_demangler_crashes is set, install the
5217 above signal handler before calling bfd_demangle, and restore
5218 the original signal handler afterwards. Display the offending
5219 symbol and call demangler_warning the first time a segmentation
5221 (_initialize_cp_support): New maint set/show command.
5223 2014-06-19 Gary Benson <gbenson@redhat.com>
5225 * utils.h (resource_limit_kind): New enum.
5226 (can_dump_core): New declaration.
5227 (warn_cant_dump_core): Likewise.
5228 (dump_core): Likewise.
5229 * utils.c (dump_core): Made nonstatic. Added new
5230 parameter "limit_kind".
5231 (can_dump_core): Made nonstatic. Moved printing code to...
5232 (warn_cant_dump_core): New function.
5233 (can_dump_core_warn): Likewise.
5234 (internal_vproblem): Replace calls to can_dump_core with
5235 calls to can_dump_core_warn. Supply new argument to each.
5237 2014-06-19 Gary Benson <gbenson@redhat.com>
5239 * utils.h (demangler_vwarning): New declaration.
5240 (demangler_warning): Likewise.
5241 * utils.c (struct internal_problem)
5242 <user_settable_should_quit>: New field.
5243 <user_settable_should_dump_core>: Likewise
5244 (internal_error_problem): Add values for above new fields.
5245 (internal_warning_problem): Likewise.
5246 (demangler_warning_problem): New static global.
5247 (demangler_vwarning): New function.
5248 (demangler_warning): Likewise.
5249 (add_internal_problem_command): Selectively add commands.
5250 (_initialize_utils): New internal problem command.
5251 * maint.c (maintenance_demangler_warning): New function.
5252 (_initialize_maint_cmds): New command.
5254 2014-06-18 Tom Tromey <tromey@redhat.com>
5256 * f-valprint.c (info_common_command_for_block): Update.
5257 * symtab.h (struct general_symbol_info) <common_block>: Now
5260 2014-06-18 Tom Tromey <tromey@redhat.com>
5262 * symtab.h (struct symtab) <blockvector>: Now const.
5263 * ada-lang.c (ada_add_global_exceptions): Update.
5264 * buildsym.c (augment_type_symtab): Update.
5265 * dwarf2read.c (dw2_lookup_symbol): Update.
5266 * jit.c (finalize_symtab): Update.
5267 * jv-lang.c (add_class_symtab_symbol): Update.
5268 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5270 * objfiles.c (objfile_relocate1): Update.
5271 * psymtab.c (lookup_symbol_aux_psymtabs)
5272 (maintenance_check_psymtabs): Update.
5273 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5275 * spu-tdep.c (spu_catch_start): Update.
5276 * symmisc.c (dump_symtab_1): Update.
5277 * symtab.c (lookup_global_symbol_from_objfile)
5278 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5279 (basic_lookup_transparent_type_quick)
5280 (basic_lookup_transparent_type, find_pc_sect_symtab)
5281 (find_pc_sect_line, search_symbols): Update.
5282 * block.c (find_block_in_blockvector): Make "bl" const.
5283 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5285 (blockvector_contains_pc): Make "bv" const.
5286 (block_for_pc_sect): Update.
5287 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5288 (blockvector_contains_pc): Update.
5289 * breakpoint.c (resolve_sal_pc): Update.
5290 * inline-frame.c (block_starting_point_at): Update.
5292 2014-06-18 Tom Tromey <tromey@redhat.com>
5294 * completer.c (complete_line): Make "line_buffer" const.
5295 * completer.h (complete_line): Update.
5297 2014-06-18 Tom Tromey <tromey@redhat.com>
5299 * symtab.c (add_macro_name): Remove unneeded cast.
5301 2014-06-18 Tom Tromey <tromey@redhat.com>
5303 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5304 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5306 2014-06-18 Tom Tromey <tromey@redhat.com>
5308 * probe.c (info_probes_for_ops): Make "arg" const.
5309 * probe.h (info_probes_for_ops): Update.
5311 2014-06-18 Tom Tromey <tromey@redhat.com>
5313 * varobj.c (varobj_create): Update.
5314 * valops.c (value_of_this): Update.
5315 * tracepoint.c (add_local_symbols, scope_info): Update.
5316 * symtab.h (struct general_symbol_info) <block>: Now const.
5317 * symtab.c (skip_prologue_sal)
5318 (default_make_symbol_completion_list_break_on)
5319 (skip_prologue_using_sal): Update.
5320 * stack.h (iterate_over_block_locals)
5321 (iterate_over_block_local_vars): Update.
5322 * stack.c (print_frame_args): Update.
5323 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5325 (get_selected_block): Make return type const.
5326 * python/py-frame.c (frapy_block): Update.
5327 * python/py-block.c (gdbpy_block_for_pc): Update.
5328 * p-exp.y (%union) <bval>: Now const.
5329 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5330 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5331 * m2-exp.y (%union) <bval>: Now const.
5332 * linespec.c (get_current_search_block): Make return type const.
5333 (create_sals_line_offset, find_label_symbols): Update.
5334 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5336 (block_starting_point_at): Make "block" const.
5337 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5338 (check_exception_resume): Update.
5339 * guile/scm-frame.c (gdbscm_frame_block): Update.
5340 * guile/scm-block.c (gdbscm_lookup_block): Update.
5341 * frame.h (get_frame_block): Update.
5342 (get_selected_block): Make return type const.
5343 * frame.c (frame_id_inner): Update.
5344 * f-valprint.c (info_common_command_for_block)
5345 (info_common_command): Update.
5346 * dwarf2loc.c (dwarf2_find_location_expression)
5347 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5348 (locexpr_describe_location_piece): Update.
5349 * c-exp.y (%union) <bval>: Now const.
5350 * breakpoint.c (resolve_sal_pc): Update.
5351 * blockframe.c (get_frame_block):Make return type const.
5352 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5353 (block_innermost_frame): Update.
5354 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5355 (block_for_pc, block_for_pc_sect): Update.
5356 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5358 (block_for_pc_sect, block_for_pc): Make return type const.
5359 * ax-gdb.c (gen_expr): Update.
5360 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5361 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5362 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5363 (ada_read_var_value): Update.
5364 * ada-exp.y (struct name_info) <block>: Now const.
5366 (block_lookup): Constify.
5368 2014-06-18 Gary Benson <gbenson@redhat.com>
5370 * nat/i386-dregs.h: New file.
5371 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5372 * i386-nat.h (i386-dregs.h): New include.
5373 (DR_FIRSTADDR): Now in i386-dregs.h.
5374 (DR_LASTADDR): Likewise.
5375 (DR_NADDR): Likewise.
5376 (DR_STATUS): Likewise.
5377 (DR_CONTROL): Likewise.
5378 (i386_debug_reg_state): Likewise.
5379 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5381 2014-06-18 Don Breazeal <donb@codesourcery.com>
5383 * breakpoint.c (set_longjmp_breakpoint): Call
5384 momentary_breakpoint_from_master with additional argument.
5385 (set_longjmp_breakpoint_for_call_dummy): Call
5386 momentary_breakpoint_from_master with additional argument.
5387 (set_std_terminate_breakpoint): Call
5388 momentary_breakpoint_from_master with additional argument.
5389 (momentary_breakpoint_from_master): Add argument to function
5390 definition and use it to initialize structure member flag.
5391 (clone_momentary_breakpoint): Call
5392 momentary_breakpoint_from_master with additional argument.
5393 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5394 member flags set in momentary_breakpoint_from_master.
5396 2014-06-18 Gary Benson <gbenson@redhat.com>
5398 * i386-nat.c (i386_show_dr): Renamed to
5399 i386_dr_show and made nonstatic. All uses updated.
5400 (i386_length_and_rw_bits): Renamed to
5401 i386_dr_length_and_rw_bits and made nonstatic.
5403 (i386_insert_aligned_watchpoint): Renamed to
5404 i386_dr_insert_aligned_watchpoint and made nonstatic.
5406 (i386_remove_aligned_watchpoint): Renamed to
5407 i386_dr_remove_aligned_watchpoint and made nonstatic.
5409 (i386_update_inferior_debug_regs): Renamed to
5410 i386_dr_update_inferior_debug_regs and made nonstatic.
5413 2014-06-18 Gary Benson <gbenson@redhat.com>
5415 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5416 (i386_dr_low_can_set_control): Likewise.
5417 (i386_dr_low_set_addr): Likewise.
5418 (i386_dr_low_set_control): Likewise.
5419 (i386_dr_low_get_addr): Likewise.
5420 (i386_dr_low_get_status): Likewise.
5421 (i386_dr_low_get_control): Likewise.
5422 (i386_insert_aligned_watchpoint): Use new macros.
5423 (i386_update_inferior_debug_regs): Likewise.
5424 (i386_stopped_data_address): Likewise.
5426 2014-06-18 Gary Benson <gbenson@redhat.com>
5428 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5429 New parameter. All uses updated.
5431 2014-06-18 Gary Benson <gbenson@redhat.com>
5433 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5436 2014-06-18 Gary Benson <gbenson@redhat.com>
5438 * i386-nat.c (debug_printf): New macro.
5439 (i386_get_debug_register_length): Likewise.
5440 (TARGET_HAS_DR_LEN_8): Use above macro.
5441 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5442 and printf_unfiltered. Use phex to format values.
5444 2014-06-18 Gary Benson <gbenson@redhat.com>
5446 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5449 2014-06-18 Gary Benson <gbenson@redhat.com>
5451 * i386-nat.c: Comment changes.
5453 2014-06-18 Gary Benson <gbenson@redhat.com>
5455 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5457 2014-06-18 Gary Benson <gbenson@redhat.com>
5459 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5460 (i386_insert_aligned_watchpoint): Likewise.
5461 (i386_remove_aligned_watchpoint): Likewise.
5462 (i386_handle_nonaligned_watchpoint): Likewise.
5464 2014-06-18 Gary Benson <gbenson@redhat.com>
5466 * i386-nat.c: Whitespace changes.
5468 2014-06-17 Samuel Bronson <naesten@gmail.com>
5470 * MAINTAINERS: Update Roland McGrath's email address.
5471 Thanks to Sergio Durigan Junior for pointing out that he left
5472 Red Hat a while ago, and giving me a current address.
5474 2014-06-17 Tom Tromey <tromey@redhat.com>
5476 * utils.h (savestring): Remove declaration.
5478 2014-06-17 Tom Tromey <tromey@redhat.com>
5480 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5482 2014-06-16 Keith Seitz <keiths@redhat.com>
5485 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5486 to update the varobj if inferior_ptid is null_ptid.
5488 2014-06-16 Tom Tromey <tromey@redhat.com>
5490 * target.h (struct target_ops) <to_info_proc>: Make parameter
5492 (target_info_proc): Update.
5493 * target.c (target_info_proc): Make "args" const.
5494 * procfs.c (procfs_info_proc): Update.
5495 * linux-tdep.c (linux_info_proc): Update.
5496 (linux_core_info_proc_mappings): Make "args" const.
5497 (linux_core_info_proc): Update.
5498 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5499 * gdbarch.c: Rebuild.
5500 * gdbarch.h: Rebuild.
5501 * corelow.c (core_info_proc): Update.
5503 2014-06-16 Tom Tromey <tromey@redhat.com>
5505 * target.h (struct target_ops) <to_disconnect>: Make parameter
5507 (target_disconnect): Update.
5508 * target.c (target_disconnect): Make "args" const.
5509 * target-delegates.c: Rebuild.
5510 * remote.c (remote_disconnect): Update.
5511 * record.h (record_disconnect): Update.
5512 * record.c (record_disconnect): Update.
5513 * inf-child.c (inf_child_disconnect): Update.
5515 2014-06-16 Tom Tromey <tromey@redhat.com>
5517 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5518 * target.c (debug_to_rcmd, default_rcmd): Update.
5519 * target-delegates.c: Rebuild.
5520 * remote.c (remote_rcmd): Update.
5521 * monitor.c (monitor_rcmd): Update.
5523 2014-06-16 Pedro Alves <palves@redhat.com>
5525 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5526 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5527 have OBJF_SHARED set.
5528 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5529 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5530 instead of OBJF_USERLOADED.
5531 * objfiles.h (OBJF_SHARED): Update comment.
5532 (userloaded_objfile_contains_address_p): Rename to ...
5533 (shared_objfile_contains_address_p): ... this, and update
5535 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5537 (remove_symbol_file_command): Skip objfiles that don't have
5540 2014-06-16 Tom Tromey <tromey@redhat.com>
5542 * minsyms.h (prim_record_minimal_symbol)
5543 (prim_record_minimal_symbol_and_info): Update comments.
5545 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5547 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5548 or --without-guile, according to how GDB was built.
5550 2014-06-13 Tom Tromey <tromey@redhat.com>
5552 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5554 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5556 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5558 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5559 help_list.Pass all_commands, not -1, to help_list.
5560 * cli/cli-dump.c (dump_command, append_command)
5561 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5562 (binary_dump_command, binary_append_command): Pass all_commands,
5563 not -1, to help_list.
5564 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5566 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5568 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5570 * top.c (set_history): Pass all_commands, not -1, to help_list.
5571 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5572 all_commands, not -1, to help_list.
5573 * symfile.c (overlay_command): Pass all_commands, not -1, to
5575 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5577 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5579 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5581 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5582 not -1, to help_list.
5583 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5584 not -1, to help_list.
5585 * maint.c (maintenance_command, maintenance_info_command)
5586 (maintenance_print_command, maintenance_set_cmd): Pass
5587 all_commands, not -1, to help_list.
5588 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5590 * language.c (set_check): Pass all_commands, not -1, to help_list.
5591 * infcmd.c (unset_command): Pass all_commands, not -1, to
5593 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5595 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5597 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5599 * breakpoint.c (save_command): Pass all_commands, not -1, to
5601 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5602 all_commands, not -1, to help_list.
5604 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5606 * regcache.c (struct register_to_invalidate): New structure.
5607 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5609 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5611 2014-06-12 Yao Qi <yao@codesourcery.com>
5613 * varobj.c (varobj_get_num_children): Call
5614 varobj_is_dynamic_p.
5615 (varobj_list_children): Likewise.
5616 (varobj_update): Likewise. Update comments.
5618 2014-06-12 Yao Qi <yao@codesourcery.com>
5620 * varobj.c (varobj_pretty_printed_p): Rename to ...
5621 (varobj_is_dynamic_p): ... this. New function.
5622 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5623 (varobj_is_dynamic_p): Declare.
5624 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5625 (mi_print_value_p, varobj_update_one): Likewise.
5627 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5628 Yao Qi <yao@codesourcery.com>
5630 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5631 (varobj_get_iterator): Wrap up code for pretty-printer by
5632 "#if HAVE_PYTHON" and "#endif".
5633 (update_dynamic_varobj_children): Likewise.
5635 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5636 Yao Qi <yao@codesourcery.com>
5638 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5639 gdb_python_initialized is false. Move some code from varobj.c.
5640 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5641 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5642 (struct varobj_item): Moved to varobj-iter.h".
5643 (varobj_clear_saved_item): New function.
5644 (update_dynamic_varobj_children): Move python-related code to
5646 (free_variable): Call varobj_clear_saved_item and
5649 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5650 Yao Qi <yao@codesourcery.com>
5652 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5653 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5654 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5655 (py-varobj.o): New rule.
5656 * python/py-varobj.c: New file.
5657 * python/python-internal.h (py_varobj_get_iterator): Declare.
5658 * varobj-iter.h: New file.
5659 * varobj.c: Include "varobj-iter.h"
5660 (struct varobj) <child_iter>: Change its type from "PyObject *"
5661 to "struct varobj_iter *".
5662 <saved_item>: Likewise.
5663 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5664 [HAVE_PYTHON] (varobj_get_iterator): New function.
5665 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5666 python-specific code to python/py-varobj.c.
5667 (install_visualizer): Call varobj_iter_delete instead of
5669 * varobj.h (varobj_ensure_python_env): Declare.
5671 2014-06-12 Yao Qi <yao@codesourcery.com>
5673 * varobj.c (struct varobj_item): New structure.
5674 (create_child_with_value): Update declaration.
5675 (varobj_add_child): Replace arguments 'name' and 'value' with
5676 'item'. All callers updated.
5677 (install_dynamic_child): Likewise.
5678 (update_dynamic_varobj_children): Likewise.
5679 (varobj_add_child): Likewise.
5680 (create_child_with_value): Likewise.
5682 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5684 * NEWS: Create a new section for the next release branch.
5685 Rename the section of the current branch, now that it has
5688 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5690 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5691 * version.in: Bump version to 7.8.50.DATE-cvs.
5693 2014-06-11 Pedro Alves <palves@redhat.com>
5696 * ser-mingw.c (net_windows_socket_check_pending): New function.
5697 (net_windows_select_thread): Ignore spurious wakeups. Use
5698 net_windows_socket_check_pending.
5699 (net_windows_wait_handle): Check for pending events with
5700 ioctlsocket, through net_windows_socket_check_pending, instead of
5701 checking the socket's event.
5703 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5705 * python/python-internal.h (gdb_PyObject_GetAttrString)
5706 (gdb_PyObject_HasAttrString): New inline function definitions.
5707 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5708 char * of the second argument to PyObject_GetAttrString.
5710 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5712 * serial.c (serial_write): Fix index of character to be printed
5713 in call to serial_logchar when serial debug traces are enabled.
5715 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5717 * gdbtypes (resolve_dynamic_range): Add function description.
5719 2014-06-09 Pedro Alves <palves@redhat.com>
5721 * linux-nat.c (linux_child_follow_fork): Initialize status with
5722 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5723 inner block. Only pass the signal to PTRACE_DETACH if in pass
5726 2014-06-09 Gary Benson <gbenson@redhat.com>
5728 * common/signals.c (gdb_signal_from_host): Reorder to separate
5729 the always-available ANSI-standard signals from the signals that
5731 (do_gdb_signal_to_host): Likewise.
5732 * proc-events.c (signal_table): Likewise.
5734 2014-06-08 Hui Zhu <hui@codesourcery.com>
5736 * common/linux-ptrace.c (linux_disable_event_reporting): New
5738 * common/linux-ptrace.h (linux_disable_event_reporting): New
5740 * linux-nat.c (linux_child_follow_fork): Do a single step before
5743 2014-06-07 Keith Seitz <keiths@redhat.com>
5747 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5748 from symbol_matches_domain in symtab.c. All local callers
5749 of symbol_matches_domain updated.
5750 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5751 search STRUCT_DOMAIN.
5752 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5753 independently. standard_lookup will do that automatically.
5754 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5755 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5756 (cp_lookup_symbol_in_namespace): Likewise.
5757 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5758 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5759 may return a STRUCT_DOMAIN match.
5760 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5761 * cp-support.c: Include language.h.
5762 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5764 * psymtab.c (match_partial_symbol): Compare the requested
5765 domain with the symbol's domain directly.
5766 (lookup_partial_symbol): Likewise.
5767 * symtab.c (lookup_symbol_in_language): Explain when/why
5768 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5769 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5770 appropriate languages.
5771 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5772 and moved to ada-lang.c
5773 (lookup_block_symbol): Explain that this function only returns
5774 symbol matching the requested DOMAIN.
5775 Compare the requested domain with the symbol's domain directly.
5776 (iterate_over_symbols): Compare the requested domain with the
5777 symbol's domain directly.
5778 * symtab.h (symbol_matches_domain): Remove.
5780 2014-06-06 Doug Evans <xdje42@gmail.com>
5782 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5783 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5784 (gdbscm_guile_version_is_at_least): Declare.
5785 (gdbscm_scm_string_to_int): Declare.
5786 * guile/guile.c (gdbscm_guile_major_version): New global.
5787 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5788 (guile_datadir): New static global.
5789 (gdbscm_guile_data_directory): New function.
5790 (initialize_scheme_side): Update.
5791 (misc_guile_functions): Add guile-data-directory.
5792 (initialize_gdb_module): Fetch guile version number.
5793 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5794 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5795 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5796 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5798 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5799 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5800 * guile/scm-value.c (gdbscm_value_to_string): Only call
5801 scm_port_conversion_strategy if Guile version >= 2.0.6.
5803 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5805 * main.c (print_gdb_help): Add -q and --silent.
5807 2014-06-06 Gary Benson <gbenson@redhat.com>
5809 * common/signals.c: Remove preprocessor conditionals for
5810 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5811 SIGSEGV and SIGTERM.
5812 * proc-events.c: Likewise.
5814 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5816 * symfile.c (symfile_free_objfile): Remove restriction to
5818 * symfile-mem.c (symbol_file_add_from_memory): Call
5819 add_target_sections_of_objfile.
5821 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5823 * guile/scm-value.c (gdbscm_history_append_x): Use
5824 'vlscm_get_value_smob_arg_unsafe' instead of
5825 'vlscm_scm_to_value'.
5827 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5830 * utils.c (printchar): Don't escape at all if quoter is NUL.
5831 Update function documentation to clarify effect of parameter
5833 * remote.c (escape_buffer): Pass '\\' as the quoter to
5834 fputstrn_unfiltered.
5835 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5836 generate the output.
5837 (mi_solib_unloaded): Same.
5839 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5841 * development.sh: Delete.
5842 * Makefile.in (config.status): Adjust dependency on development.sh.
5843 * configure.ac: Adjust development.sh source call.
5844 * configure: Regenerate.
5846 2014-06-04 Doug Evans <xdje42@gmail.com>
5848 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5849 is_scheme_bkpt, spec.
5850 (bpscm_make_breakpoint_smob): Initialize new members.
5851 (gdbscm_create_breakpoint_x): Split into two ...
5852 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5853 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5854 (scheme_function breakpoint_functions): Update.
5855 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5856 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5857 register-breakpoint!.
5859 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5862 * mem-break.c (z_type_supported): Return zero if
5863 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5865 2014-06-04 Tom Tromey <tromey@redhat.com>
5867 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5868 value_from_contents_and_address_unresolved.
5869 (ada_template_to_fixed_record_type_1): Likewise.
5870 (ada_which_variant_applies): Likewise.
5871 * value.h (value_from_contents_and_address_unresolved): Declare.
5872 * value.c (value_from_contents_and_address_unresolved): New
5874 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5875 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5876 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5878 2014-06-04 Tom Tromey <tromey@redhat.com>
5880 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5882 2014-06-04 Tom Tromey <tromey@redhat.com>
5884 * procfs.c (procfs_attach): Make "args" const.
5885 * windows-nat.c (windows_attach): Make "args" const.
5886 * nto-procfs.c (procfs_attach): Make "args" const.
5887 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5888 * go32-nat.c (go32_attach): Make "args" const.
5889 * gnu-nat.c (gnu_attach): Make "args" const.
5890 * darwin-nat.c (darwin_attach): Make "args" const.
5891 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5892 * linux-nat.c (linux_nat_attach): Make "args" const.
5893 * remote.c (extended_remote_attach_1, extended_remote_attach):
5895 * target.h (struct target_ops) <to_attach>: Make "args" const.
5896 (find_default_attach): Likewise.
5897 * utils.c (parse_pid_to_attach): Make "args" const.
5898 * utils.h (parse_pid_to_attach): Update.
5900 2014-06-04 Tom Tromey <tromey@redhat.com>
5902 * target-delegates.c: Rebuild.
5903 * target.c (default_thread_address_space): New function.
5904 (target_thread_address_space): Simplify.
5905 * target.h (struct target_ops) <to_thread_address_space>: Add
5906 TARGET_DEFAULT_FUNC.
5908 2014-06-04 Doug Evans <xdje42@gmail.com>
5910 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5912 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5914 * record-btrace.c: Include event-loop.h and inf-loop.h.
5915 (record_btrace_resume_exec_dir)
5916 (record_btrace_async_inferior_event_handler)
5917 (record_btrace_handle_async_inferior_event): New.
5918 (record_btrace_open): Create async event handler.
5919 (record_btrace_close): Delete async event handler.
5920 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5921 Mark async event handler.
5922 (record_btrace_execution_direction): New.
5923 (init_record_btrace_ops): Initialize to_execution_direction.
5925 2014-06-03 Doug Evans <xdje42@gmail.com>
5927 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5928 (gdbscm_make_parameter): Ditto.
5930 2014-06-03 Doug Evans <dje@google.com>
5932 * exec.c (exec_close_1): Call clear_section_table instead of
5933 resize_section_table.
5934 (clear_section_table): New function.
5935 (resize_section_table): Make static. Rename arg num_added to
5937 * exec.h (clear_section_table): Declare.
5938 (resize_section_table): Delete.
5939 * progspace.c (release_program_space): Call clear_section_table
5940 instead of resize_section_table.
5942 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5944 * NEWS (Python Scripting): Add entry about the new xmethods
5947 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5949 * python/py-xmethods.c: New file.
5950 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5951 (objfpy_dealloc): XDECREF on the new xmethods field.
5952 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5954 (objfpy_get_xmethods): New function.
5955 (objfile_getset): New entry 'xmethods'.
5956 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5957 (pspy_dealloc): XDECREF on the new xmethods field.
5958 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5960 (pspy_get_xmethods): New function.
5961 (pspace_getset): New entry 'xmethods'.
5962 * python/python-internal.h: Add declarations for new functions.
5963 * python/python.c (_initialize_python): Invoke
5964 gdbpy_initialize_xmethods.
5965 * python/lib/gdb/__init__.py (xmethods): New
5967 * python/lib/gdb/xmethod.py: New file.
5968 * python/lib/gdb/command/xmethods.py: New file.
5970 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5972 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5973 best match method returned by find_overload_match is an xmethod.
5974 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5975 the best matching operator returned by find_overload_match is an
5977 * valops.c: #include "extension.h".
5978 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5979 Return void. The list of matching source methods is returned in
5980 "fn_list" and a vector of matching debug method workers is
5981 returned in "xm_worker_vec". Update all callers.
5982 (value_find_oload_method_list): Likewise.
5983 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5984 non-NULL, then the index of the best matching method in this
5985 vector is returned. Update all callers.
5986 (find_overload_match): Include xmethods while performing overload
5989 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5991 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5992 * extension-priv.h (struct extension_language_ops): Add the
5994 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5995 get_matching_xmethod_workers, get_xmethod_argtypes,
5996 invoke_xmethod, free_xmethod_worker,
5997 free_xmethod_worker_vec): New functions.
5998 * extension.h: #include "common/vec.h".
5999 New function declarations.
6000 (struct xmethod_worker): New struct.
6001 (VEC (xmethod_worker_ptr)): New vector type.
6002 (xmethod_worker_ptr): New typedef.
6003 (xmethod_worker_vec): Likewise.
6004 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6006 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6007 (struct builtin_type): New field "xmethod".
6008 * valarith.c (value_ptradd): Assert that the value argument is not
6010 * valops.c (value_must_coerce_to_target): Return 0 for
6011 lval_xcallable values.
6012 * value.c (struct value): New field XM_WORKER in the field
6014 (value_address, value_raw_address): Return 0 for lval_xcallable
6016 (set_value_address): Assert that the value is not an
6018 (value_free): Free the associated xmethod worker when freeing
6019 lval_xcallable values.
6020 (set_value_component_location): Assert that the WHOLE value is not
6022 (value_of_xmethod, call_xmethod): New functions.
6023 * value.h: Declare "struct xmethod_worker".
6024 Declare new functions value_of_xmethod, call_xmethod.
6026 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6027 Pedro Alves <palves@redhat.com>
6029 PR breakpoints/17000
6030 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6031 New function, extracted from software_breakpoint_inserted_here_p.
6032 (software_breakpoint_inserted_here_p): Replace factored out code
6033 by call to find_non_raw_software_breakpoint_inserted_here.
6034 (bp_target_info_copy_insertion_state): New function.
6035 (bkpt_insert_location): Handle the case of a single-step
6036 breakpoint already inserted at the same address.
6037 (bkpt_remove_location): Handle the case of a single-step
6038 breakpoint still inserted at the same address.
6039 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6040 breakpoint already inserted at the same address.
6041 (deprecated_remove_raw_breakpoint): Handle the case of a
6042 non-raw breakpoint still inserted at the same address.
6043 (find_single_step_breakpoint): New function, extracted from
6044 single_step_breakpoint_inserted_here_p.
6045 (find_single_step_breakpoint): New function,
6046 factored out from single_step_breakpoint_inserted_here_p.
6047 (single_step_breakpoint_inserted_here_p): Reimplement.
6049 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6051 Pushed by Joel Brobecker <brobecker@adacore.com>
6052 * source.c (show_substitute_path_command): Fix display of matching
6055 2014-06-03 Gary Benson <gbenson@redhat.com>
6057 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6059 2014-06-02 Doug Evans <xdje42@gmail.com>
6061 Add parameter support for Guile.
6062 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6063 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6064 (scm-param.o): New rule.
6065 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6066 (gdbscm_misc_error): Declare.
6067 (gdbscm_canonicalize_command_name): Declare.
6068 (gdbscm_scm_to_host_string): Declare.
6069 (gdbscm_scm_from_host_string): Declare.
6070 (gdbscm_initialize_parameters): Declare.
6071 * guile/guile.c (initialize_gdb_module): Call
6072 gdbscm_initialize_parameters.
6073 * guile/lib/gdb.scm: Export parameter symbols.
6074 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6075 cmdscm_canonicalize_name and made public. All callers updated.
6076 * guile/scm-exception.c (gdbscm_misc_error): New function.
6077 * guile/scm-param.c: New file.
6078 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6079 (gdbscm_scm_to_host_string): New function.
6080 (gdbscm_scm_from_host_string): New function.
6081 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6083 2014-06-02 Doug Evans <xdje42@gmail.com>
6085 Add command support for Guile.
6086 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6087 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6088 (scm-cmd.o): New rule.
6089 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6090 (gdbscm_user_error_p): Declare.
6091 (gdbscm_parse_command_name): Declare.
6092 (gdbscm_valid_command_class_p): Declare.
6093 (gdbscm_initialize_commands): Declare.
6094 * guile/guile.c (initialize_gdb_module): Call
6095 gdbscm_initialize_commands.
6096 * guile/lib/gdb.scm: Export command symbols.
6097 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6098 (throw-user-error): New function.
6099 * guile/scm-cmd.c: New file.
6100 * guile/scm-exception.c (user_error_symbol): New static global.
6101 (gdbscm_user_error_p): New function.
6102 (gdbscm_initialize_exceptions): Set user_error_symbol.
6103 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6105 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6107 * top.c (command_loop): Handle comments here...
6108 (command_line_input): ... not here.
6110 2014-06-02 Doug Evans <xdje42@gmail.com>
6112 Add progspace support for Guile.
6113 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6114 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6115 (scm-progspace.o): New rule.
6116 * guile/guile-internal.h (pspace_smob): New typedef.
6117 (psscm_pspace_smob_pretty_printers): Declare.
6118 (psscm_pspace_smob_from_pspace): Declare.
6119 (psscm_scm_from_pspace): Declare.
6120 * guile/guile.c (initialize_gdb_module): Call
6121 gdbscm_initialize_pspaces.
6122 * guile/lib/gdb.scm: Export progspace symbols.
6123 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6125 (append-pretty-printer!): Ditto.
6126 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6128 * guile/scm-progspace.c: New file.
6130 2014-06-03 Alan Modra <amodra@gmail.com>
6132 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6133 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6135 2014-06-02 Doug Evans <dje@google.com>
6137 Add support for skeletonless type units.
6138 * dwarf2read.c (struct dwarf2_per_objfile): New member
6139 n_allocated_type_units.
6140 (struct dwarf2_per_objfile) <tu_stats>: New member
6141 nr_all_type_units_reallocs.
6142 (create_signatured_type_table_from_index): Initialize
6143 n_allocated_type_units
6144 (create_all_type_units): Ditto.
6145 (add_type_unit): Move up in file. New arg slot.
6146 All callers updated. Increase space for all_type_units more
6148 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6149 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6150 (lookup_dwp_signatured_type): Ditto.
6151 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6152 All callers updated.
6153 (build_type_psymtabs_1): Leave type_unit_groups as
6154 NULL if no TUs present.
6155 (print_tu_stats): New function.
6156 (process_skeletonless_type_unit): New function.
6157 (process_dwo_file_for_skeletonless_type_units): New
6159 (process_skeletonless_type_units): New function.
6160 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6161 Call print tu_stats if debugging enabled.
6163 2014-06-02 Pedro Alves <palves@redhat.com>
6165 * breakpoint.c (build_target_command_list): Don't build a command
6166 list if we have any duplicate location that isn't a dprintf.
6168 2014-06-02 Pedro Alves <palves@redhat.com>
6170 * breakpoint.c (dprintf_breakpoint_hit): New function.
6171 (initialize_breakpoint_ops): Install it as dprintf's
6172 breakpoint_hit method.
6174 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6176 * source.c (substitute_path_rule_matches): Simplify using
6177 filename_ncmp instead of FILENAME_CMP.
6179 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6181 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6183 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6185 * configure.ac: When Guile is available, check for the
6186 availability of 'scm_new_smob'.
6187 * configure, config.h.in: Regenerate.
6188 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6191 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6193 * frame.c (struct frame_info): Add stop_string field.
6194 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6195 (get_prev_frame_always): Old content moved into
6196 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6197 TRY_CATCH, handle MEMORY_ERROR exceptions.
6198 (frame_stop_reason_string): New function definition.
6199 * frame.h (unwind_stop_reason_to_string): Extend comment to
6200 mention frame_stop_reason_string.
6201 (frame_stop_reason_string): New function declaration.
6202 * stack.c (frame_info): Switch to frame_stop_reason_string.
6203 (backtrace_command_1): Switch to frame_stop_reason_string.
6204 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6205 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6206 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6208 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6210 * frame.c (frame_stop_reason_string): Rename to ...
6211 (unwind_stop_reason_to_string): this.
6212 * frame.h (frame_stop_reason_string): Rename to ...
6213 (unwind_stop_reason_to_string): this.
6214 * stack.c (frame_info): Update call to frame_stop_reason_string.
6215 (backtrace_command_1): Likewise.
6216 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6217 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6219 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6221 * frame.c (remove_prev_frame): New function.
6222 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6225 2014-05-29 Pedro Alves <palves@redhat.com>
6227 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6228 and make it const. When a single-step decays to a continue,
6229 clear 'step', not 'hw_step'. Pass whether the caller wanted
6230 to step to user_visible_resume_ptid, not what we ask the
6233 2014-05-29 Pedro Alves <palves@redhat.com>
6235 * infrun.c (process_event_stop_test, handle_step_into_function)
6236 (handle_step_into_function_backward): Adjust.
6237 Don't set the even thread's stop_step and call stop_waiting before
6238 calling end_stepping_range. Instead do that ...
6239 (end_stepping_range): ... here. Take an ecs pointer parameter.
6241 2014-05-29 Pedro Alves <palves@redhat.com>
6243 * infrun.c (stop_stepping): Rename to ...
6244 (stop_waiting): ... this.
6245 (proceed): Update comment.
6246 (process_event_stop_test, handle_inferior_event)
6247 (handle_signal_stop, handle_step_into_function)
6248 (handle_step_into_function_backward): Update.
6250 2014-05-29 Pedro Alves <palves@redhat.com>
6252 * infcall.c (run_inferior_call): Don't check whether the current
6253 thread is running after the proceed call.
6255 2014-05-29 Pedro Alves <palves@redhat.com>
6256 Tom Tromey <tromey@redhat.com>
6258 * NEWS: Mention "maint set target-async", "set mi-async", and that
6259 background execution commands are now always available.
6260 * target.h (target_async_permitted): Update comment.
6261 * target.c (target_async_permitted, target_async_permitted_1):
6263 (set_target_async_command): Rename to ...
6264 (maint_set_target_async_command): ... this.
6265 (show_target_async_command): Rename to ...
6266 (maint_show_target_async_command): ... this.
6267 (_initialize_target): Adjust.
6268 * infcmd.c (prepare_execution_command): Make extern.
6269 * inferior.h (prepare_execution_command): Declare.
6270 * infrun.c (set_observer_mode): Leave target async alone.
6271 * mi/mi-interp.c (mi_interpreter_init): Install
6272 mi_on_sync_execution_done as sync_execution_done observer.
6273 (mi_on_sync_execution_done): New function.
6274 (mi_execute_command_input_handler): Don't print the prompt if we
6275 just started a synchronous command with an async target.
6276 (mi_on_resume): Check sync_execution before printing prompt.
6277 * mi/mi-main.h (mi_async_p): Declare.
6278 * mi/mi-main.c: Include gdbcmd.h.
6279 (mi_async_p): New function.
6280 (mi_async, mi_async_1): New globals.
6281 (set_mi_async_command, show_mi_async_command, mi_async): New
6283 (exec_continue): Call prepare_execution_command.
6284 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6285 (mi_execute_async_cli_command): Use mi_async_p.
6286 (_initialize_mi_main): Install "set mi-async". Make
6287 "target-async" a deprecated alias.
6289 2014-05-29 Pedro Alves <palves@redhat.com>
6291 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6292 (_initialize_cli_interp): Adjust.
6293 * event-loop.c: Include "observer.h".
6294 (start_event_loop): Notify 'command_error' observers instead of
6295 calling display_gdb_prompt. Remove FIXME comment.
6296 * event-top.c (display_gdb_prompt): Remove call into the
6298 * inf-loop.c: Include "observer.h".
6299 (inferior_event_handler): Notify 'command_error' observers instead
6300 of calling display_gdb_prompt.
6301 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6302 observers instead of calling display_gdb_prompt.
6303 * interps.c (interp_set): Don't call display_gdb_prompt.
6304 (current_interp_display_prompt_p): Delete.
6305 * interps.h (interp_prompt_p): Delete declaration.
6306 (interp_prompt_p_ftype): Delete.
6307 (struct interp_procs) <prompt_proc_p>: Delete field.
6308 (current_interp_display_prompt_p): Delete declaration.
6309 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6310 (_initialize_mi_interp): Adjust.
6311 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6312 'command_error' observers.
6313 (tui_on_sync_execution_done, tui_on_command_error): New
6315 (tui_display_prompt_p): Delete.
6316 (_initialize_tui_interp): Adjust.
6318 2014-05-29 Pedro Alves <palves@redhat.com>
6321 * cli/cli-interp.c: Include infrun.h and observer.h.
6322 (cli_uiout, cli_interp): New globals.
6323 (cli_on_signal_received, cli_on_end_stepping_range)
6324 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6326 (cli_interpreter_init): Install them as 'end_stepping_range',
6327 'signal_received' 'signal_exited', 'exited' and 'no_history'
6329 (_initialize_cli_interp): Remove cli_interp local.
6330 * infrun.c (handle_inferior_event): Call the several stop reason
6331 observers instead of printing the stop reason directly.
6332 (end_stepping_range): New function.
6333 (print_end_stepping_range_reason, print_signal_exited_reason)
6334 (print_exited_reason, print_signal_received_reason)
6335 (print_no_history_reason): Make static, and add an uiout
6336 parameter. Print to that instead of to CURRENT_UIOUT.
6337 * infrun.h (print_end_stepping_range_reason)
6338 (print_signal_exited_reason, print_exited_reason)
6339 (print_signal_received_reason print_no_history_reason): New
6341 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6343 <cli_uiout>: New field.
6344 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6345 uiout for CLI output. Install 'signal_received',
6346 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6348 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6349 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6350 (mi_on_no_history): New functions.
6351 (ui_out_free_cleanup): Delete function.
6352 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6353 instead use the one already stored in the MI interpreter data.
6354 (mi_ui_out): Adjust.
6355 * tui/tui-interp.c: Include infrun.h and observer.h.
6356 (tui_interp): New global.
6357 (tui_on_signal_received, tui_on_end_stepping_range)
6358 (tui_on_signal_exited, tui_on_exited)
6359 (tui_on_no_history): New functions.
6360 (tui_init): Install them as 'end_stepping_range',
6361 'signal_received' 'signal_exited', 'exited' and 'no_history'
6363 (_initialize_tui_interp): Delete tui_interp local.
6365 2014-05-29 Pedro Alves <palves@redhat.com>
6368 * linux-nat.c (linux_nat_resume_callback): Rename the second
6369 parameter to 'except'. Skip LP if it points to EXCEPT.
6370 (linux_nat_resume): Don't mark the event lwp as not stopped
6371 before resuming sibling lwps. Instead ask
6372 linux_nat_resume_callback to skip the event lwp. Mark it as not
6373 stopped after actually resuming it.
6374 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6376 (wait_lwp): Mark the lwp as stopped here.
6377 (stop_wait_callback): Mark the lwp as not stopped right after
6378 resuming it. Don't mark lwps as stopped here.
6379 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6380 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6382 2014-05-29 Pedro Alves <palves@redhat.com>
6385 * infrun.c (resume): Determine how much to resume depending on
6386 whether the caller wanted a step, not whether we can hardware step
6387 the target. Mark all threads that we intend to run as running,
6388 unless we're calling an inferior function.
6389 (normal_stop): If the thread is running an infcall, don't finish
6391 * target.c (target_resume): Don't mark threads as running here.
6393 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6395 * serial.c (_initialize_serial): Remove support for
6396 the "set remotebaud" and "show remotebaud" commands.
6397 * NEWS: Add entry documenting the removal of that command.
6399 2014-05-28 Yao Qi <yao@codesourcery.com>
6401 * charset.c: Fix typo in comments.
6403 2014-05-27 Gary Benson <gbenson@redhat.com>
6405 * utils.c (internal_vproblem): Prompt for a bug report.
6407 2014-05-26 Andy Wingo <wingo@igalia.com>
6409 * guile/scm-arch.c (arscm_mark_arch_smob):
6410 * guile/scm-block.c (bkscm_mark_block_smob)
6411 (bkscm_mark_block_syms_progress_smob):
6412 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6413 * guile/scm-exception.c (exscm_mark_exception_smob):
6414 * guile/scm-frame.c (frscm_mark_frame_smob):
6415 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6416 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6417 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6418 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6419 (ppscm_mark_pretty_printer_worker_smob):
6420 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6421 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6422 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6423 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6425 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6428 2014-05-26 Andy Wingo <wingo@igalia.com>
6429 Doug Evans <xdje42@gmail.com>
6431 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6432 empty_base_class. All uses updated.
6433 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6434 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6436 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6437 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6438 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6439 (gdbscm_gsmob_has_property_p, add_property_name)
6440 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6441 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6442 (gdb-object-has-property?, gdb-object-properties): Remove.
6443 (gdb-object-kind): Renamed from gsmob-kind.
6445 2014-05-26 Andy Wingo <wingo@igalia.com>
6447 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6448 * configure: Regenerate.
6450 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6452 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6454 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6456 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6457 (replay_memory_access_read_only, replay_memory_access_read_write)
6458 (replay_memory_access_types, replay_memory_access)
6459 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6460 (cmd_set_record_btrace, cmd_show_record_btrace)
6461 (cmd_show_replay_memory_access): New.
6462 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6463 (record_btrace_remove_breakpoint): Replace
6464 record_btrace_allow_memory_access with replay_memory_access.
6465 (_initialize_record_btrace): Add commands.
6466 * NEWS: Announce it.
6468 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6470 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6472 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6474 * MAINTAINERS (Write After Approval): Move self back from
6477 2014-05-22 Pedro Alves <palves@redhat.com>
6479 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6480 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6481 (disable_randomization, enum exec_direction_kind)
6482 (execution_direction, stop_registers, start_remote)
6483 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6484 (wait_for_inferior, normal_stop, get_last_target_status)
6485 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6486 (insert_step_resume_breakpoint_at_sal)
6487 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6488 (set_step_info, print_stop_event, signal_stop_state)
6489 (signal_print_state, signal_pass_state, signal_stop_update)
6490 (signal_print_update, signal_pass_update)
6491 (update_signals_program_target, clear_exit_convenience_vars)
6492 (displaced_step_dump_bytes, update_observer_mode)
6493 (signal_catch_update, gdb_signal_from_command): Move
6495 * infrun.h: ... to this new file.
6496 * amd64-tdep.c: Include infrun.h.
6497 * annotate.c: Include infrun.h.
6498 * arch-utils.c: Include infrun.h.
6499 * arm-linux-tdep.c: Include infrun.h.
6500 * arm-tdep.c: Include infrun.h.
6501 * break-catch-sig.c: Include infrun.h.
6502 * breakpoint.c: Include infrun.h.
6503 * common/agent.c: Include infrun.h instead of inferior.h.
6504 * corelow.c: Include infrun.h.
6505 * event-top.c: Include infrun.h.
6506 * go32-nat.c: Include infrun.h.
6507 * i386-tdep.c: Include infrun.h.
6508 * inf-loop.c: Include infrun.h.
6509 * infcall.c: Include infrun.h.
6510 * infcmd.c: Include infrun.h.
6511 * infrun.c: Include infrun.h.
6512 * linux-fork.c: Include infrun.h.
6513 * linux-nat.c: Include infrun.h.
6514 * linux-thread-db.c: Include infrun.h.
6515 * monitor.c: Include infrun.h.
6516 * nto-tdep.c: Include infrun.h.
6517 * procfs.c: Include infrun.h.
6518 * record-btrace.c: Include infrun.h.
6519 * record-full.c: Include infrun.h.
6520 * remote-m32r-sdi.c: Include infrun.h.
6521 * remote-mips.c: Include infrun.h.
6522 * remote-notif.c: Include infrun.h.
6523 * remote-sim.c: Include infrun.h.
6524 * remote.c: Include infrun.h.
6525 * reverse.c: Include infrun.h.
6526 * rs6000-tdep.c: Include infrun.h.
6527 * s390-linux-tdep.c: Include infrun.h.
6528 * solib-irix.c: Include infrun.h.
6529 * solib-osf.c: Include infrun.h.
6530 * solib-svr4.c: Include infrun.h.
6531 * target.c: Include infrun.h.
6532 * top.c: Include infrun.h.
6533 * windows-nat.c: Include infrun.h.
6534 * mi/mi-interp.c: Include infrun.h.
6535 * mi/mi-main.c: Include infrun.h.
6536 * python/py-threadevent.c: Include infrun.h.
6538 2014-05-22 Pedro Alves <palves@redhat.com>
6540 * infrun.c (handle_inferior_event): Store the exit code for
6541 --return-child-result here, instead of ...
6542 (print_exited_reason): ... here.
6544 2014-05-21 Pedro Alves <palves@redhat.com>
6547 * gdbthread.h (struct thread_control_state): New field
6549 * infrun.c (follow_fork): Copy the new thread control field to the
6551 (clear_proceed_status_thread): Clear the new thread control field.
6552 (proceed): Set the new thread control field.
6553 * interps.h (command_interp): Declare.
6554 * interps.c (command_interpreter): New global.
6555 (command_interp): New function.
6556 (interp_exec): Set `command_interpreter' while here.
6557 * cli-out.c (cli_uiout_dtor): New function.
6558 (cli_ui_out_impl): Install it.
6559 * mi/mi-interp.c: Include cli-out.h.
6560 (mi_cmd_interpreter_exec): Add comment.
6561 (restore_current_uiout_cleanup): New function.
6562 (ui_out_free_cleanup): New function.
6563 (mi_on_normal_stop): If finishing an execution command started by
6564 a CLI command, or any kind of breakpoint-like event triggered,
6565 print the stop event to the output (CLI) stream.
6566 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6568 2014-05-21 Pedro Alves <palves@redhat.com>
6570 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6571 current source line having changed.
6572 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6573 * infrun.c (normal_stop): Adjust call to
6574 set_current_sal_from_frame.
6575 * source.c (clear_lines_listed_range): New function.
6576 (set_current_source_symtab_and_line, identify_source_line): Clear
6577 the lines listed range.
6578 (line_info): Handle the first "info line" after the current source
6579 line having changed.
6580 * stack.c (print_stack_frame): Remove center handling.
6581 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6584 2014-05-21 Pedro Alves <palves@redhat.com>
6586 * inf-child.c (inf_child_mourn_inferior): New function.
6587 * inf-child.h (inf_child_mourn_inferior): New declaration.
6588 * darwin-nat.c (darwin_mourn_inferior): Use
6589 inf_child_mourn_inferior.
6590 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6591 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6592 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6593 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6594 * windows-nat.c (windows_mourn_inferior): Likewise.
6596 2014-05-21 Doug Evans <xdje42@gmail.com>
6598 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6600 2014-05-21 Doug Evans <xdje42@gmail.com>
6602 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6603 (gdbscm_out_of_range_error): Ditto.
6604 (gdbscm_memory_error): Ditto.
6605 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6606 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6607 (gdbscm_out_of_range_error): Update.
6608 (gdbscm_memory_error): Update.
6609 (gdbscm_scm_to_target_string_unsafe): Delete.
6611 2014-05-21 Pedro Alves <palves@redhat.com>
6613 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6615 (inf_child_open_target): New function.
6616 (inf_child_open): Use inf_child_open_target to push the target
6617 instead of erroring out.
6618 (inf_child_disconnect, inf_child_close)
6619 (inf_child_maybe_unpush_target): New functions.
6620 (inf_child_target): Install inf_child_disconnect and
6621 inf_child_close. Store a pointer to the returned object.
6622 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6624 * target.c (auto_connect_native_target): New global.
6625 (show_default_run_target): New function.
6626 (find_default_run_target): Return NULL if automatically connecting
6627 to the native target is disabled.
6628 (_initialize_target): Install set/show auto-connect-native-target.
6629 * NEWS: Mention "set auto-connect-native-target", and "target
6631 * linux-nat.c (super_close): New global.
6632 (linux_nat_close): Call super_close.
6633 (linux_nat_add_target): Store a pointer to the base class's
6635 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6636 inf_child_maybe_unpush.
6637 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6639 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6640 the inferior. Use inf_child_maybe_unpush_target.
6641 (inf_ttrace_attach): Don't push the target if it is already
6643 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6644 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6645 after mourning the inferior. Use inf_child_maybe_unpush_target.
6646 (darwin_attach_pid): Don't push the target if it is already
6648 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6649 mourning the inferior. Use inf_child_maybe_unpush_target.
6650 (gnu_detach): Use inf_child_maybe_unpush_target.
6651 * go32-nat.c (go32_create_inferior): Don't push the target if it
6653 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6654 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6655 (procfs_open): Rename to ...
6656 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6657 comments. Can target_preopen before changing node. Call
6658 inf_child_open_target to push the target explicitly.
6659 (procfs_attach): Don't push the target if it is already pushed.
6660 (procfs_detach): Use inf_child_maybe_unpush_target.
6661 (procfs_create_inferior): Don't push the target if it is already
6663 (nto_native_ops): New global.
6664 (procfs_open): Reimplement.
6665 (procfs_native_open): New function.
6666 (init_procfs_targets): Install procfs_native_open as to_open of
6667 "target native". Store a pointer to the "native" target in
6669 * procfs.c (procfs_attach): Don't push the target if it is already
6671 (procfs_detach): Use inf_child_maybe_unpush_target.
6672 (procfs_mourn_inferior): Only unpush the target after mourning the
6673 inferior. Use inf_child_maybe_unpush_target.
6674 (procfs_init_inferior): Don't push the target if it is already
6676 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6677 if it is already pushed.
6679 2014-05-21 Pedro Alves <palves@redhat.com>
6681 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6682 and "procfs" targets are now called "native" instead.
6684 2014-05-21 Pedro Alves <palves@redhat.com>
6686 * go32-nat.c (go32_open): Delete.
6687 (go32_target): Don't override the to_open method.
6689 2014-05-21 Pedro Alves <palves@redhat.com>
6691 * nto-procfs.c (procfs_can_run): New function.
6692 (nto_procfs_ops): New global.
6693 (init_procfs_targets): New, based on procfs_target. Install
6694 "target native" in addition to "target procfs".
6695 (_initialize_procfs): Call init_procfs_targets instead of adding
6698 2014-05-21 Pedro Alves <palves@redhat.com>
6700 * windows-nat.c (windows_target): Don't override to_shortname,
6701 to_longname or to_doc.
6703 2014-05-21 Pedro Alves <palves@redhat.com>
6705 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6708 2014-05-21 Pedro Alves <palves@redhat.com>
6710 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6711 to_shortname, to_longname or to_doc.
6713 2014-05-21 Pedro Alves <palves@redhat.com>
6715 * go32-nat.c (go32_target): Don't override to_shortname,
6716 to_longname or to_doc.
6718 2014-05-21 Pedro Alves <palves@redhat.com>
6720 * inf-child.c (inf_child_open): Remove mention of "child".
6721 (inf_child_target): Rename target to "native" instead of "child".
6723 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6725 * Makefile.in (SFILES): Delete "regset.c".
6726 (COMMON_OBS): Delete "regset.o".
6728 * regset.h (regset_alloc): Delete prototype.
6730 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6732 * sparc-linux-tdep.c (sparc32_linux_gregset)
6733 (sparc32_linux_fpregset): New static regset structures.
6734 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6735 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6737 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6738 (sparc64_linux_fpregset): New static regset structures.
6739 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6740 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6741 New static regset structures.
6742 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6743 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6744 New static regset structures.
6745 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6746 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6747 New static regset structures.
6748 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6749 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6750 New static regset structures.
6751 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6753 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6755 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6756 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6757 register maps ("regmaps") from "*regset" to "*regmap". Do this
6758 for all regmap types and variables.
6759 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6760 (sparc32_linux_supply_core_gregset)
6761 (sparc32_linux_collect_core_gregset)
6762 (sparc32_linux_supply_core_fpregset)
6763 (sparc32_linux_collect_core_fpregset): Likewise.
6764 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6765 (sparc_gregmap, sparc_fpregmap): ... these.
6766 (sparc_supply_gregset, sparc_collect_gregset)
6767 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6768 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6769 (_initialize_sparc_nat): Rename regmaps.
6770 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6771 (sparc_gregmap, sparc_fpregmap): ... these.
6772 (sparc_supply_gregset, sparc_collect_gregset)
6773 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6774 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6776 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6777 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6779 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6781 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6782 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6783 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6785 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6786 (sparc32_bsd_fpregset): Rename to...
6787 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6788 (sparc32_bsd_fpregmap): ... these.
6789 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6790 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6791 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6792 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6793 (struct sparc_gregmap, struct sparc_fpregmap)
6794 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6795 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6796 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6797 (sparc32_supply_regset, sparc32_collect_gregset)
6798 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6800 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6801 (sparc64_linux_ptrace_gregmap): ... this.
6802 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6803 (_initialize_sparc64_linux_nat): Rename regmaps.
6804 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6805 (sparc64_linux_core_gregmap): ... this.
6806 (sparc64_linux_supply_core_gregset)
6807 (sparc64_linux_collect_core_gregset)
6808 (sparc64_linux_supply_core_fpregset)
6809 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6810 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6811 (sparc64_sol2_fpregset): Rename to...
6812 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6813 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6814 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6816 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6817 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6818 (sparc64_bsd_fpregset): Rename to...
6819 (struct sparc_gregmap, sparc64_sol2_gregmap)
6820 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6821 (sparc64_bsd_fpregmap): ... these.
6822 (sparc64_supply_gregset, sparc64_collect_gregset)
6823 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6825 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6826 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6827 (sparc64fbsd_gregmap): ... this.
6828 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6829 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6831 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6832 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6833 (sparc64nbsd_collect_fpregset): Likewise.
6834 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6835 (sparc64nbsd_gregmap): ... this.
6836 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6838 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6839 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6840 (sparc64obsd_gregmap): ... this.
6841 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6843 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6844 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6845 (sparc32nbsd_gregmap): ... this.
6846 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6849 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6851 * score-tdep.c (score7_linux_gregset): New static regset
6853 (score7_linux_regset_from_core_section): Remove dynamic regset
6855 (score_gdbarch_init): Drop allocation of tdep structure.
6856 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6858 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6860 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6862 (am33_regset_from_core_section): Remove dynamic regset
6865 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6867 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6868 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6870 (mips_linux_regset_from_core_section): Remove dynamic regset
6872 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6873 'gregset64', 'fpregset', and 'fpregset64'.
6874 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6875 deleted tdep fields.
6877 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6879 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6881 (amd64_regset_from_core_section): Remove dynamic regset
6883 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6885 (amd64obsd_regset_from_core_section): Remove dynamic regset
6887 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6889 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6890 x86-common regset supply function.
6891 * i386-tdep.c (i386_collect_gregset): Make static.
6892 (i386_gregset): New global regset structure.
6893 (i386_fpregset, i386_xstateregset): New static regset structures.
6894 (i386_regset_from_core_section): Remove dynamic regset
6896 (i386_gdbarch_init): Remove initialization of tdep fields
6897 'gregset', 'fpregset', and 'xstateregset'.
6898 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6899 'fpregset', and 'xstateregset'.
6900 (i386_collect_gregset): Remove prototype.
6901 (i386_gregset): New declaration.
6902 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6904 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6907 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6909 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6910 (arm_linux_vfpregset): New static regset structures.
6911 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6913 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6914 and 'vfpregset' fields.
6916 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6918 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6919 (aarch64_linux_fpregset): New static regset structures.
6920 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6921 of regset structures.
6922 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6925 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6927 * regset.h (struct regset): Remove gdbarch field.
6928 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6929 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6930 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6932 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6933 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6934 (ppc32_linux_vsxregset): Likewise.
6935 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6936 via the regcache instead of the regset.
6937 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6938 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6939 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6940 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6943 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6945 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6946 Constify structures.
6947 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6948 (alphanbsd_aout_gregset): Likewise.
6949 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6950 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6952 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6953 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6955 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6956 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6957 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6958 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6959 * m88k-tdep.c (m88k_gregset): Likewise.
6960 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6961 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6962 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6963 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6964 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6965 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6966 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6967 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6968 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6970 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6971 * sh-tdep.h (sh_corefile_gregset): Likewise.
6972 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6973 * vax-tdep.c (vax_gregset): Likewise.
6975 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6977 Fix TLS access for -static -pthread.
6978 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6979 (try_thread_db_load_1): Initialize it.
6980 (thread_db_get_thread_local_address): Call it if LM is zero.
6981 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6982 * target.h (struct target_ops) (to_get_thread_local_address): Add
6983 load_module_addr comment.
6985 2014-05-21 Pedro Alves <palves@redhat.com>
6987 * dcache.c (dcache_read_memory_partial): If reading the cache line
6988 fails, fallback to reading just the memory the caller wanted.
6990 2014-05-20 Doug Evans <dje@google.com>
6992 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6993 instead of get_current_arch.
6995 2014-05-20 Pedro Alves <palves@redhat.com>
6997 * NEWS: Mention that compare-sections now works with all targets.
6999 * remote.c (PACKET_qCRC): New enum value.
7000 (remote_verify_memory): Don't send qCRC if the target has no
7001 execution. Use packet_support/packet_ok. If the target doesn't
7002 support the qCRC packet, fallback to a deep memory copy.
7003 (compare_sections_command): Say "target image" instead of "remote
7005 (_initialize_remote): Add PACKET_qCRC to the list of config
7006 packets that have no associated command. Extend comment.
7007 * target.c (simple_verify_memory, default_verify_memory): New
7009 * target.h (struct target_ops) <to_verify_memory>: Default to
7010 default_verify_memory.
7011 (simple_verify_memory): New declaration.
7012 * target-delegates.c: Regenerate.
7014 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7016 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7018 2014-05-20 Hui Zhu <hui@codesourcery.com>
7019 Yao Qi <yao@codesourcery.com>
7022 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7023 and change address of sp and pc.
7025 2014-05-19 Tom Tromey <tromey@redhat.com>
7027 * gdbtypes.c (rank_function): Use XNEWVEC.
7028 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7030 2014-05-19 Doug Evans <dje@google.com>
7032 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7033 build_type_unit_groups and moved closer to only caller. Remove
7034 arguments. All references updated. Remove outdated .gdb_index
7036 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7037 build_type_psymtabs_1.
7039 2014-05-19 Doug Evans <dje@google.com>
7041 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7042 n_type_unit_groups, all_type_unit_groups. All uses removed.
7043 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7044 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7045 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7046 (add_type_unit_group_to_table): Delete.
7048 2014-05-19 Doug Evans <dje@google.com>
7050 * eval.c (evaluate_subexp_standard): Add some comments.
7052 2014-05-17 Doug Evans <xdje42@gmail.com>
7054 * progspace.c (remove_program_space): Delete, unused.
7055 * progspace.h (remove_program_space): Ditto.
7057 2014-05-17 Doug Evans <xdje42@gmail.com>
7059 * inferior.c (prune_inferiors): Fix comment.
7060 (remove_inferior_command): Call prune_program_spaces.
7062 2014-05-16 Doug Evans <dje@google.com>
7064 New command line option -D.
7066 * main.c (set_gdb_data_directory): New function.
7067 (captured_main): Recognize -D. Flag error for --data-directory "".
7068 Call set_gdb_data_directory.
7069 (print_gdb_help): Print --data-directory, -D.
7070 * main.h (set_gdb_data_directory): Declare.
7071 * top.c (staged_gdb_datadir): New static global.
7072 (set_gdb_datadir): Call set_gdb_data_directory
7073 (show_gdb_datadir): New function.
7074 (init_main): Update init of data-directory parameter.
7076 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7078 Import the "dirfd" gnulib module.
7079 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7080 * gnulib/aclocal.m4: Update.
7081 * gnulib/config.in: Update.
7082 * gnulib/configure: Update.
7083 * gnulib/import/Makefile.am: Update.
7084 * gnulib/import/Makefile.in: Update.
7085 * gnulib/import/dirfd.c: New.
7086 * gnulib/import/m4/dirfd.m4: New.
7087 * gnulib/import/m4/gnulib-cache.m4: Update.
7088 * gnulib/import/m4/gnulib-comp.m4: Update.
7090 2014-05-16 Pierre Muller <muller@sourceware.org>
7091 Yao Qi <yao@codesourcery.com>
7093 * valprint.c (print_wchar): Move the code on checking whether
7094 W is a printable wide char to the default branch of switch
7095 statement below. Call wchar_printable instead of gdb_iswprint.
7097 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7099 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7100 ldr.w and ldrd instructions.
7102 2014-05-15 Doug Evans <dje@google.com>
7104 * dwarf2read.c (read_structure_type): Delete outdated comments.
7106 2014-05-14 Tom Tromey <tromey@redhat.com>
7108 * macrocmd.c (print_macro_definition): Reindent.
7110 2014-05-13 Doug Evans <xdje42@gmail.com>
7112 * python/py-cmd.c (cmdpy_completer): Add comment.
7113 (completers): Make const.
7115 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7117 * infrun.c (resume): Remove should_resume (unused). Move up
7118 declaration of resume_ptid.
7120 2014-05-13 Tom Tromey <tromey@redhat.com>
7122 * language.h (unop_type_check): Remove.
7123 (binop_type_check): Don't declare.
7125 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7127 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7128 call to regcache_raw_collect.
7130 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7132 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7133 mi_console->quote as the quoting character.
7135 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7137 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7139 2014-04-29 Tom Tromey <tromey@redhat.com>
7141 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7142 "show debug varobj".
7144 2014-05-07 Kyle McMartin <kyle@redhat.com>
7146 Pushed by Joel Brobecker <brobecker@adacore.com>.
7147 * aarch64-tdep.c (aarch64_software_single_step): New function.
7148 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7149 with aarch64_software_single_step.
7151 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7155 2014-05-05 Keith Seitz <keiths@redhat.com>
7157 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7158 variable or history value is successfully parsed.
7160 2014-05-05 Yao Qi <yao@codesourcery.com>
7161 Pedro Alves <palves@redhat.com>
7163 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7164 address of blocks that intersects the requested range. Trim
7165 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7167 * ctf.c (ctf_xfer_partial): Likewise.
7169 2014-05-05 Yao Qi <yao@codesourcery.com>
7171 * printcmd.c (display_command): Remove the check to
7172 target_has_execution.
7174 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7176 * ppcobsd-nat.c: Include "obsd-nat.h".
7177 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7179 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7181 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7183 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7184 and 16-bit signed and unsigned arguments. Update comment.
7185 (stap_parse_probe_arguments): Extend code to handle such
7186 arguments. Use warning instead of complaint to notify about
7187 unrecognized bitness.
7189 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7191 PR breakpoints/16889
7192 * stap-probe.c (stap_parse_probe_arguments): Simplify
7193 check for non-prefixed probes (i.e., probes whose
7194 arguments do not start with "N@"). Always set the
7195 argument type to a sane value.
7197 2014-05-01 David Taylor <dtaylor@emc.com>
7199 * remote.c (compare_sections_command): Add -r option to compare
7200 all loadable read-only sections.
7202 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7204 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7205 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7207 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7208 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7209 Remove unused CORE_ADDR argument. Update all callers.
7211 2014-04-29 Pedro Alves <palves@redhat.com>
7213 * remote.c (struct packet_config) <detect>: Extend comment.
7214 (add_packet_config_cmd): Don't set the config's detect or support
7216 (init_all_packet_configs): Also initialize the config's 'detect'
7218 (reset_all_packet_configs_support): New function.
7219 (remote_open_1): Call reset_all_packet_configs_support instead of
7220 init_all_packet_configs.
7221 (_initialize_remote): Initialize all packet configs. Assert that
7222 all packets have an associated command, except a few known
7225 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7227 * dwarf2read.c (read_subrange_type): Handle dynamic
7228 DW_AT_lower_bound attributes.
7230 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7232 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7233 dynamic bounds before computing its upper bound.
7234 (ada_discrete_type_low_bound): Same as above with the lower bound.
7236 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7238 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7239 range types. Adjust the array handling implementation to
7240 take advantage of this change.
7241 (resolve_dynamic_range): New function, mostly extracted from
7242 resolve_dynamic_bounds.
7243 (resolve_dynamic_array): New function, mostly extracted from
7244 resolve_dynamic_bounds.
7245 (resolve_dynamic_bounds): Delete.
7246 (resolve_dynamic_type): Reimplement. Add handling of
7247 TYPE_CODE_RANGE types.
7249 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7251 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7252 handling of parallel ___XA types.
7254 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7256 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7257 unnecessary second call to static_unwrap_type.
7259 2014-04-27 Hui Zhu <hui@codesourcery.com>
7261 * stack.c (print_frame_info): Call do_gdb_disassembly with
7262 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7264 2014-04-26 Doug Evans <xdje42@gmail.com>
7266 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7268 2014-04-25 Pedro Alves <palves@redhat.com>
7271 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7272 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7273 and newline from built string.
7274 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7275 (linux_ptrace_attach_fail_reason): ... this.
7276 * linux-nat.c (linux_nat_attach): Adjust to use
7277 linux_ptrace_attach_fail_reason.
7279 2014-04-25 Pedro Alves <palves@redhat.com>
7281 * remote.c (struct remote_state): Remove multi_process_aware,
7282 non_stop_aware, cond_tracepoints, cond_breakpoints,
7283 breakpoint_commands, fast_tracepoints, static_tracepoints,
7284 install_in_trace, disconnected_tracing,
7285 enable_disable_tracepoints, string_tracing, and
7286 augmented_libraries_svr4_read fields.
7287 (remote_multi_process_p): Move further below in the file.
7288 (struct packet_config): Add comments.
7289 (update_packet_config): Delete function.
7290 (show_packet_config_cmd): Use packet_config_support.
7291 (add_packet_config_cmd): Use NULL as set callback.
7292 (packet_ok): "set remote foo-packet"-style commands no longer
7293 change config->supported -- adjust.
7294 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7295 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7296 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7297 (PACKET_QNonStop, PACKET_multiprocess_feature)
7298 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7299 (PACKET_DisconnectedTracing_feature)
7300 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7301 (set_remote_protocol_packet_cmd): Delete function.
7302 (packet_config_support, packet_support): New functions.
7303 (set_remote_protocol_Z_packet_cmd): Don't call
7304 update_packet_config.
7305 (remote_query_attached, remote_pass_signals)
7306 (remote_program_signals, remote_threads_info)
7307 (remote_threads_extra_info, remote_start_remote): Use
7309 (remote_start_remote): Use packet_config_support and
7311 (init_all_packet_configs): Set all packets to unknown support,
7312 instead of calling update_packet_config.
7313 (remote_check_symbols): Use packet_support.
7314 (remote_supported_packet): Unconditionally set the packet config's
7316 (remote_multi_process_feature, remote_non_stop_feature)
7317 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7318 (remote_breakpoint_commands_feature)
7319 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7320 (remote_install_in_trace_feature)
7321 (remote_disconnected_tracing_feature)
7322 (remote_enable_disable_tracepoint_feature)
7323 (remote_string_tracing_feature)
7324 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7325 (remote_protocol_features): Adjust to use remote_supported_packet
7326 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7327 "ConditionalTracepoints", "ConditionalBreakpoints",
7328 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7329 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7330 "EnableDisableTracepoints", and "tracenz".
7331 (remote_query_supported): Use packet_support.
7332 (remote_open_1): Adjust.
7333 (extended_remote_attach_1): Use packet_support. Switch on the
7334 result of packet_ok instead of checking whether the packet ended
7336 (remote_vcont_resume): Use packet_support.
7337 (remote_resume, remote_stop_ns, fetch_register_using_p)
7338 (remote_prepare_to_store, store_register_using_P)
7339 (check_binary_download, remote_write_bytes): Use packet_support.
7340 (remote_vkill): Use packet_support. Switch on the result of
7341 packet_ok instead of checking whether the packet ended up
7343 (extended_remote_supports_disable_randomization): Use
7345 (extended_remote_run): Switch on the result of packet_ok instead
7346 of checking whether the packet ended up disabled.
7347 (remote_insert_breakpoint, remote_remove_breakpoint)
7348 (remote_insert_watchpoint, remote_remove_watchpoint)
7349 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7351 (remote_search_memory): Use packet_config_support.
7352 (remote_get_thread_local_address, remote_get_tib_address)
7353 (remote_hostio_send_command, remote_can_execute_reverse): Use
7355 (remote_supports_cond_tracepoints)
7356 (remote_supports_cond_breakpoints)
7357 (remote_supports_fast_tracepoints)
7358 (remote_supports_static_tracepoints)
7359 (remote_supports_install_in_trace)
7360 (remote_supports_enable_disable_tracepoint)
7361 (remote_supports_string_tracing)
7362 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7363 the packet config says the feature is enabled or disabled.
7364 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7365 (remote_get_trace_status): Use packet_support.
7366 (remote_set_disconnected_tracing): Adjust to check whether the
7367 feature is enabled with packet_support.
7368 (remote_set_trace_buffer_size, remote_use_agent)
7369 (remote_can_use_agent, remote_supports_btrace): Use
7371 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7372 Use packet_config_support.
7373 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7374 the packet config says the feature is enabled or disabled.
7375 (set_range_stepping): Use packet_support.
7377 2014-04-25 Tom Tromey <tromey@redhat.com>
7379 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7382 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7384 * NEWS: Mention support for C99 variable length arrays.
7386 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7388 * ada-lang.c (standard_exc): Expand introductory comment.
7390 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7391 Walfred Tedeschi <walfred.tedeschi@intel.com>
7393 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7395 (amd64_linux_read_description): Add code to handle AVX512 xstate
7396 mask and return respective tdesc.
7397 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7398 and features/i386/x32-avx512-linux.c.
7399 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7400 (amd64_linux_core_read_description): Add code to handle AVX512
7401 xstate mask and return respective tdesc.
7402 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7403 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7405 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7406 (tdesc_amd64_avx512_linux): New prototype.
7407 (tdesc_x32_avx512_linux): Likewise.
7408 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7409 features/i386/x32-avx512.c.
7410 (amd64_ymm_avx512_names): New register names for pseudo
7412 (amd64_ymmh_avx512_names): New register names for raw registers
7414 (amd64_k_names): New register names for K registers.
7415 (amd64_zmmh_names): New register names for ZMM raw registers.
7416 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7417 (amd64_xmm_avx512_names): New register names for XMM16-31
7419 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7421 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7422 if feature is present.
7423 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7424 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7425 (AMD64_NUM_REGS): Adjust to new number of registers.
7426 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7427 registers supplied via XSTATE by AVX512 registers.
7428 (i386_linux_read_description): Add case for AVX512.
7429 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7430 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7431 (i386_linux_core_read_description): Add case for AVX512.
7432 (i386_linux_init_abi): Install supported register note section
7434 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7436 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7437 registers to be number of zmm7h + 1.
7438 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7439 * i386-tdep.c: Include features/i386/i386-avx512.c.
7440 (i386_zmm_names): Add ZMM pseudo register names array.
7441 (i386_zmmh_names): Add ZMM raw register names array.
7442 (i386_k_names): Add K raw register names array.
7443 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7444 registers. AVX512 has 16 more ZMM registers than there are YMM
7446 (i386_zmmh_regnum_p): Add function to look up register number of
7448 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7449 (i386_k_regnum_p): Likewise for K raw registers.
7450 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7451 registers added by AVX512.
7452 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7453 registers added by AVX512.
7454 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7456 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7457 (i386_pseudo_register_name): Add ZMM pseudo registers.
7458 (i386_zmm_type): Construct and return vector registers type for ZMM
7460 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7461 ZMM0-31 pseudo registers and K registers.
7462 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7463 and YMM16-31 registers from register cache.
7464 (i386_pseudo_register_write): Add code to write K, ZMM and
7466 (i386_register_reggroup_p): Add code to include/exclude AVX512
7467 registers in/from respective register groups.
7468 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7469 registers if feature is present in xcr0.
7470 (i386_gdbarch_init): Add code to initialize AVX512 feature
7471 variables in tdep structure, wire in pseudo registers and call
7472 initialize_tdesc_i386_avx512.
7473 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7475 (i386_regnum): Add AVX512 registers.
7476 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7477 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7478 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7479 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7481 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7482 (i386_ymm_avx512_regnum_p): Likewise.
7483 (i386_k_regnum_p): Likewise.
7484 (i386_zmm_regnum_p): Likewise.
7485 (i386_zmmh_regnum_p): Likewise.
7486 * i387-tdep.c : Update year in copyright notice.
7487 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7489 (XSAVE_YMM_AVX512_ADDR): New macro.
7490 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7492 (XSAVE_XMM_AVX512_ADDR): New macro.
7493 (xsave_avx512_k_offset): New table for K register offsets in
7495 (XSAVE_AVX512_K_ADDR): New macro.
7496 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7498 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7499 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7501 (i387_collect_xsave): Add code to collect AVX512 registers from
7503 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7504 of XMM16-31 registers.
7505 (I387_NUM_K_REGS): New define for number of K registers.
7506 (I387_K0_REGNUM): New define for K0 register number.
7507 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7508 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7509 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7511 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7512 (I387_XMM16_REGNUM): New define for XMM16 register number.
7513 (I387_YMM0_REGNUM): New define for YMM0 register number.
7514 (I387_KEND_REGNUM): New define for last K register number.
7515 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7516 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7518 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7520 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7522 * features/Makefile: Add AVX512 related files.
7523 * features/i386/32bit-avx512.xml: New file.
7524 * features/i386/64bit-avx512.xml: Likewise.
7525 * features/i386/amd64-avx512-linux.c: Likewise.
7526 * features/i386/amd64-avx512-linux.xml: Likewise.
7527 * features/i386/amd64-avx512.c: Likewise.
7528 * features/i386/amd64-avx512.xml: Likewise.
7529 * features/i386/i386-avx512-linux.c: Likewise.
7530 * features/i386/i386-avx512-linux.xml: Likewise.
7531 * features/i386/i386-avx512.c: Likewise.
7532 * features/i386/i386-avx512.xml: Likewise.
7533 * features/i386/x32-avx512-linux.c: Likewise.
7534 * features/i386/x32-avx512-linux.xml: Likewise.
7535 * features/i386/x32-avx512.c: Likewise.
7536 * features/i386/x32-avx512.xml: Likewise.
7537 * regformats/i386/amd64-avx512-linux.dat: New file.
7538 * regformats/i386/amd64-avx512.dat: Likewise.
7539 * regformats/i386/i386-avx512-linux.dat: Likewise.
7540 * regformats/i386/i386-avx512.dat: Likewise.
7541 * regformats/i386/x32-avx512-linux.dat: Likewise.
7542 * regformats/i386/x32-avx512.dat: Likewise.
7543 * NEWS: Add note about new support for AVX512.
7546 2014-04-23 Pedro Alves <palves@redhat.com>
7548 * breakpoint.c (insert_bp_location): Tolerate errors if the
7549 breakpoint is set in a user-loaded objfile.
7550 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7551 location is marked shlib_disabled. If the breakpoint is set in a
7552 user-loaded objfile is a GDB-side memory breakpoint, validate it
7553 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7554 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7556 * mem-break.c (memory_validate_breakpoint): New function.
7557 * objfiles.c (userloaded_objfile_contains_address_p): New
7559 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7560 * target.h (memory_validate_breakpoint): New declaration.
7562 2014-04-23 Pedro Alves <palves@redhat.com>
7564 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7565 the breakpoint is set in a shared library, only suppress
7566 errors for software breakpoints, not hardware breakpoints.
7568 2014-04-22 Pedro Alves <palves@redhat.com>
7570 * infrun.c (schedlock_applies): New function, factored out from
7571 find_thread_needs_step_over.
7572 (find_thread_needs_step_over): Use it.
7573 (switch_back_to_stepped_thread): Always clear trap_expected if the
7574 step over is finished. Return early if scheduler locking applies.
7575 Look for the stepping thread and a potential step-over thread with
7577 (currently_stepping_or_nexting_callback): Delete.
7579 2014-04-22 Nick Clifton <nickc@redhat.com>
7581 * NEWS: Mention that ARM sim now supports tracing.
7583 2014-04-22 Yao Qi <yao@codesourcery.com>
7585 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7587 * tracefile.c (tracefile_fetch_registers): ... it. New
7589 * tracefile.h (tracefile_fetch_registers): Declare.
7590 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7591 tracefile_fetch_registers.
7593 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7596 * windows-nat.c (thread_rec): Don't display a warning when
7597 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7598 fails for any reason, set th->suspended to -1, so that we don't
7599 try to resume such a thread. Also, don't return NULL in these
7600 cases, to avoid completely ruin the session due to "PC register is
7601 not available" error.
7602 (do_windows_fetch_inferior_registers): Check errors in
7603 GetThreadContext call.
7604 (windows_continue): Accept an additional argument KILLED; if not
7605 zero, ignore errors in the SetThreadContext call, since the
7606 inferior was killed and is shutting down.
7607 (windows_resume, get_windows_debug_event)
7608 (windows_create_inferior, windows_mourn_inferior)
7609 (windows_kill_inferior): All callers of windows_continue changed
7610 to adjust to its new calling sequence.
7612 2014-04-19 Yao Qi <yao@codesourcery.com>
7614 * ctf.c (ctf_open): Call post_create_inferior.
7616 2014-04-19 Yao Qi <yao@codesourcery.com>
7618 * ctf.c (handle_id): New static variable.
7619 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7620 value. Get the declaration of event "register" and get length
7621 of field "contents".
7623 2014-04-19 Yao Qi <yao@codesourcery.com>
7625 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7627 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7629 * valops.c (oload_method_static): Remove unnecessary argument
7630 METHOD. Update all callers.
7632 2014-04-18 Pedro alves <palves@redhat.com>
7633 Tom Tromey <tromey@redhat.com>
7636 * frame.c (get_prev_frame_1): Rename to ...
7637 (get_prev_frame_always): ... this, and make extern. Adjust.
7638 (skip_artificial_frames): Use get_prev_frame_always.
7639 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7640 (get_frame_unwind_stop_reason): Adjust to rename.
7641 * frame.h (get_prev_frame_always): Declare.
7642 * inline-frame.c: Include frame.h.
7643 (inline_frame_this_id): Use get_prev_frame_always.
7645 2014-04-18 Tristan Gingold <gingold@adacore.com>
7647 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7648 code by using bfd_mach_o_get_base_address.
7650 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7652 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7653 (spu_ax_pseudo_register_collect): New function.
7654 (spu_ax_pseudo_register_push_stack): Likewise.
7655 (spu_dwarf_reg_to_regnum): Likewise.
7656 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7658 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7660 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7661 Replace FRAME argument with FRAME_ID.
7662 * gdbarch.c, gdbarch.h: Regenerate.
7663 * findvar.c (default_value_from_register): Add GDBARCH argument;
7664 replace FRAME by FRAME_ID. No longer call get_frame_id.
7665 (value_from_register): Update call to gdbarch_value_from_register.
7666 * value.h (default_value_from_register): Update prototype.
7667 * s390-linux-tdep.c (s390_value_from_register): Update interface
7668 and call to default_value_from_register.
7669 * spu-tdep.c (spu_value_from_register): Likewise.
7671 * findvar.c (address_from_register): Remove TYPE argument.
7672 Do not call value_from_register; use gdbarch_value_from_register
7673 with null_frame_id instead.
7674 * value.h (address_from_register): Update prototype.
7675 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7676 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7677 address_from_register interface change.
7679 2014-04-17 Yao Qi <yao@codesourcery.com>
7681 * gdbtypes.h: Update comments to link to types and macros'
7684 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7686 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7688 2014-04-16 Keith Seitz <keiths@redhat.com>
7691 * dwarf2read.c (skip_one_die): Check that all relative-offset
7692 sibling DIEs fall within range of the current reader's buffer.
7693 (read_partial_die): Likewise.
7695 2014-04-16 Keith Seitz <keiths@redhat.com>
7698 * cp-namespace.c (lookup_symbol_file): If the type name of
7699 `this' is NULL, return immediately.
7701 2014-04-14 Keith Seitz <keiths@redhat.com>
7704 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7705 from symbol_matches_domain in symtab.c. All local callers
7706 of symbol_matches_domain updated.
7707 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7708 search STRUCT_DOMAIN.
7709 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7710 independently. standard_lookup will do that automatically.
7711 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7712 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7713 (cp_lookup_symbol_in_namespace): Likewise.
7714 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7715 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7716 may return a STRUCT_DOMAIN match.
7717 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7718 * cp-support.c: Include language.h.
7719 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7721 * psymtab.c (match_partial_symbol): Compare the requested
7722 domain with the symbol's domain directly.
7723 (lookup_partial_symbol): Likewise.
7724 * symtab.c (lookup_symbol_in_language): Explain when/why
7725 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7726 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7727 appropriate languages.
7728 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7729 and moved to ada-lang.c
7730 (lookup_block_symbol): Explain that this function only returns
7731 symbol matching the requested DOMAIN.
7732 Compare the requested domain with the symbol's domain directly.
7733 (iterate_over_symbols): Compare the requested domain with the
7734 symbol's domain directly.
7735 * symtab.h (symbol_matches_domain): Remove.
7737 2014-04-14 Tom Tromey <tromey@redhat.com>
7740 * c-exp.y (type_aggregate_p): New function.
7741 (qualified_name, classify_inner_name): Use it.
7742 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7743 and TYPE_TARGET_TYPE of an enum type.
7744 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7746 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7747 handle TYPE_DECLARED_CLASS.
7748 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7750 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7751 * valops.c (enum_constant_from_type): New function.
7752 (value_aggregate_elt): Use it.
7753 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7756 2014-04-14 Tom Tromey <tromey@redhat.com>
7758 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7759 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7761 * value.h (value_aggregate_elt): Update.
7763 2014-04-14 Tom Tromey <tromey@redhat.com>
7765 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7767 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7769 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7770 (evaluate_subexp_standard): Pass noside argument.
7771 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7772 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7773 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7774 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7775 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7777 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7779 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7780 points to a constant blob.
7782 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7784 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7785 property and store it as the high bound and flag the range accordingly.
7786 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7787 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7788 * gdbtypes.h (enum range_flags): New enum.
7789 (struct range_bounds): Add flags member.
7791 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7793 * c-typeprint.c (c_type_print_varspec_suffix): Added
7794 check for not yet resolved high bound. If unresolved, print
7795 "variable length" string to the console instead of random
7798 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7800 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7802 (ada_template_to_fixed_record_type_1): Likewise.
7803 (ada_to_fixed_type_1): Likewise.
7804 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7805 (cp_print_value): Likewise.
7806 * d-valprint.c (dynamic_array_type): Likewise.
7807 * findvar.c (address_of_variable): Likewise.
7808 * jv-valprint.c (java_value_print): Likewise.
7809 * valops.c (value_ind): Likewise.
7810 * value.c (coerce_ref): Likewise.
7812 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7814 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7815 value and retrieve the dynamic type size.
7817 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7819 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7820 passed to sizeof is dynamic evaluate the argument to compute the length.
7822 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7823 Joel Brobecker <brobecker@adacore.com>
7825 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7826 (dwarf2_evaluate_property): New function.
7827 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7828 * dwarf2read.c (attr_to_dynamic_prop): New function.
7829 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7831 * gdbtypes.c: Include dwarf2loc.h.
7832 (is_dynamic_type): New function.
7833 (resolve_dynamic_type): New function.
7834 (resolve_dynamic_bounds): New function.
7835 (get_type_length): New function.
7836 (check_typedef): Use get_type_length to compute type length.
7837 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7838 (TYPE_LOW_BOUND_KIND): New macro.
7839 (is_dynamic_type): New function prototype.
7840 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7841 to resolve dynamic properties of the type. Update comment.
7842 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7844 2014-04-14 Richard Henderson <rth@redhat.com>
7846 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7848 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7849 Doug Evans <xdje42@gmail.com>
7851 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7852 dereference TYPE_CODE_REF values.
7854 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7856 Revert the following changes due to regressions:
7858 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7859 (dwarf2_evaluate_property): New function.
7860 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7861 * dwarf2read.c (attr_to_dynamic_prop): New function.
7862 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7864 * gdbtypes.c: Include dwarf2loc.h.
7865 (is_dynamic_type): New function.
7866 (resolve_dynamic_type): New function.
7867 (resolve_dynamic_bounds): New function.
7868 (get_type_length): New function.
7869 (check_typedef): Use get_type_length to compute type length.
7870 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7871 (TYPE_LOW_BOUND_KIND): New macro.
7872 (is_dynamic_type): New function prototype.
7873 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7874 to resolve dynamic properties of the type. Update comment.
7875 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7877 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7878 passed to sizeof is dynamic evaluate the argument to compute the length.
7880 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7881 value and retrieve the dynamic type size.
7883 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7884 (ada_template_to_fixed_record_type_1): Likewise.
7885 (ada_to_fixed_type_1): Likewise.
7886 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7887 (cp_print_value): Likewise.
7888 * d-valprint.c (dynamic_array_type): Likewise.
7889 * eval.c (evaluate_subexp_with_coercion): Likewise.
7890 * findvar.c (address_of_variable): Likewise.
7891 * jv-valprint.c (java_value_print): Likewise.
7892 * valops.c (value_ind): Likewise.
7893 * value.c (coerce_ref): Likewise.
7895 * c-typeprint.c (c_type_print_varspec_suffix): Added
7896 check for not yet resolved high bound. If unresolved, print
7897 "variable length" string to the console instead of random
7900 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7901 property and store it as the high bound and flag the range accordingly.
7902 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7903 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7904 * gdbtypes.h (enum range_flags): New enum.
7905 (struct range_bounds): Add flags member.
7907 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7908 points to a constant blob.
7910 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7911 (evaluate_subexp_standard): Pass noside argument.
7912 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7913 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7914 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7915 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7916 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7918 2014-04-11 Keith Seitz <keiths@redhat.com>
7921 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7922 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7925 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7927 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7928 (evaluate_subexp_standard): Pass noside argument.
7929 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7930 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7931 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7932 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7933 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7935 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7937 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7938 points to a constant blob.
7940 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7942 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7943 property and store it as the high bound and flag the range accordingly.
7944 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7945 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7946 * gdbtypes.h (enum range_flags): New enum.
7947 (struct range_bounds): Add flags member.
7949 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7951 * c-typeprint.c (c_type_print_varspec_suffix): Added
7952 check for not yet resolved high bound. If unresolved, print
7953 "variable length" string to the console instead of random
7956 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7958 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7959 (ada_template_to_fixed_record_type_1): Likewise.
7960 (ada_to_fixed_type_1): Likewise.
7961 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7962 (cp_print_value): Likewise.
7963 * d-valprint.c (dynamic_array_type): Likewise.
7964 * eval.c (evaluate_subexp_with_coercion): Likewise.
7965 * findvar.c (address_of_variable): Likewise.
7966 * jv-valprint.c (java_value_print): Likewise.
7967 * valops.c (value_ind): Likewise.
7968 * value.c (coerce_ref): Likewise.
7970 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7972 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7973 value and retrieve the dynamic type size.
7975 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7977 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7978 passed to sizeof is dynamic evaluate the argument to compute the length.
7980 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7982 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7983 (dwarf2_evaluate_property): New function.
7984 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7985 * dwarf2read.c (attr_to_dynamic_prop): New function.
7986 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7988 * gdbtypes.c: Include dwarf2loc.h.
7989 (is_dynamic_type): New function.
7990 (resolve_dynamic_type): New function.
7991 (resolve_dynamic_bounds): New function.
7992 (get_type_length): New function.
7993 (check_typedef): Use get_type_length to compute type length.
7994 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7995 (TYPE_LOW_BOUND_KIND): New macro.
7996 (is_dynamic_type): New function prototype.
7997 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7998 to resolve dynamic properties of the type. Update comment.
7999 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8001 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8003 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8004 declaring high/low bounds and change uses accordingly. Call
8005 create_range_type instead of create_static_range_type.
8006 * gdbtypes.c (create_range_type): New function.
8007 (create_range_type): Convert bounds into struct bound_prop and pass
8008 them to create_range_type.
8009 * gdbtypes.h (struct bound_prop): New struct.
8010 (create_range_type): New function prototype.
8011 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8012 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8013 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8015 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8017 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8019 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8020 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8021 * ada-lang.c: All uses of create_range_type updated.
8022 * coffread.c: All uses of create_range_type updated.
8023 * dwarf2read.c: All uses of create_range_type updated.
8024 * f-exp.y: All uses of create_range_type updated.
8025 * m2-valprint.c: All uses of create_range_type updated.
8026 * mdebugread.c: All uses of create_range_type updated.
8027 * stabsread.c: All uses of create_range_type updated.
8028 * valops.c: All uses of create_range_type updated.
8029 * valprint.c: All uses of create_range_type updated.
8031 2014-04-10 Pedro Alves <palves@redhat.com>
8033 * breakpoint.c (single_step_breakpoints)
8034 (single_step_gdbarch): Move up in the file.
8035 (one_breakpoint_xfer_memory): New function, factored out from ...
8036 (breakpoint_xfer_memory): ... here. Also process single-step
8039 2014-04-09 Tristan Gingold <gingold@adacore.com>
8041 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8043 (darwin_decode_exception_message): Free port only after use.
8045 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8047 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8048 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8049 when setting the size of call_length.
8051 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8053 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8054 dereference TYPE_CODE_REF values.
8056 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8058 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8059 end of warning message.
8061 2014-04-03 Doug Evans <dje@google.com>
8063 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8064 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8066 2014-04-02 Alan Modra <amodra@gmail.com>
8068 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8069 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8070 (struct symbol_file_add_from_memory_args): Add size field.
8071 (find_vdso_size): New function.
8072 (add_vsyscall_page): Attempt to find vdso size.
8074 2014-04-01 Doug Evans <dje@google.com>
8076 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8078 2014-04-01 Tristan Gingold <gingold@adacore.com>
8080 * darwin-nat.c (darwin_encode_reply): Add prototype.
8081 (darwin_decode_exception_message): Reply to unknown inferiors.
8082 (darwin_decode_message): Handle message by id. Ignore message
8083 to unknown inferior.
8084 (darwin_wait): Discard unknown messages, add debug trace.
8086 2014-03-31 Doug Evans <dje@google.com>
8088 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8091 2014-03-31 Doug Evans <dje@google.com>
8093 New option "set print symbol-loading".
8095 * solib.c (solib_read_symbols): Only print symbol loading messages
8097 (solib_add): If symbol loading is in "brief" mode, notify user
8098 symbols are being loaded.
8099 (reload_shared_libraries_1): Ditto.
8100 * symfile.c (print_symbol_loading_off): New static global.
8101 (print_symbol_loading_brief): New static global.
8102 (print_symbol_loading_full): New static global.
8103 (print_symbol_loading_enums): New static global.
8104 (print_symbol_loading): New static global.
8105 (print_symbol_loading_p): New function.
8106 (symbol_file_add_with_addrs): Only print symbol loading messages
8108 (_initialize_symfile): Register "print symbol-loading" set/show
8110 * symfile.h (print_symbol_loading_p): Declare.
8112 2014-03-30 Doug Evans <xdje42@gmail.com>
8114 * infrun.c (set_last_target_status): New function.
8115 (handle_inferior_event): Call it.
8117 2014-03-30 Doug Evans <xdje42@gmail.com>
8119 * inferior.h (enum stop_kind): Improve comment.
8121 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8123 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8124 a reference, strip the reference layer before calling
8125 the lang_ops value_has_mutated callback.
8127 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8129 Remove some globals from our parser.
8130 * language.c (unk_lang_parser): Add "struct parser_state"
8132 * language.h (struct language_defn) <la_parser>: Likewise.
8133 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8134 (initialize_expout): Add "struct parser_state" argument.
8135 Rewrite function to use the parser state.
8136 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8137 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8138 write_exp_elt_longcst, write_exp_elt_dblcst,
8139 write_exp_elt_decfloatcst, write_exp_elt_type,
8140 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8141 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8142 write_dollar_variable): Likewise.
8143 (parse_exp_in_context_1): Use parser state.
8144 (insert_type_address_space): Add "struct parser_state" argument.
8146 (increase_expout_size): New function.
8147 * parser-defs.h: Forward declare "struct language_defn" and
8148 "struct parser_state".
8149 (expout, expout_size, expout_ptr): Remove extern declarations.
8150 (parse_gdbarch, parse_language): Rewrite macro declarations to
8151 accept the parser state.
8152 (struct parser_state): New struct.
8153 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8154 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8155 write_exp_elt_decfloatcst, write_exp_elt_type,
8156 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8157 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8158 write_exp_msymbol, write_dollar_variable,
8159 mark_struct_expression, insert_type_address_space): Add "struct
8160 parser_state" argument.
8161 (increase_expout_size): New function.
8162 * utils.c (do_clear_parser_state): New function.
8163 (make_cleanup_clear_parser_state): Likewise.
8164 * utils.h (make_cleanup_clear_parser_state): New function
8166 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8167 Update calls to write_exp* in order to pass the parser state.
8168 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8169 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8170 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8171 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8172 * stap-probe.c (stap_parse_register_operand): Likewise.
8173 (stap_parse_single_operand): Likewise.
8174 (stap_parse_argument_1): Likewise.
8175 (stap_parse_argument): Use parser state.
8176 * stap-probe.h: Include "parser-defs.h".
8177 (struct stap_parse_info) <pstate>: New field.
8178 * c-exp.y (parse_type): Rewrite to use parser state.
8179 (yyparse): Redefine to c_parse_internal.
8180 (pstate): New global variable.
8181 (parse_number): Add "struct parser_state" argument.
8182 (write_destructor_name): Likewise.
8183 (type_exp): Update calls to write_exp* and similars in order to
8185 (exp1, exp, variable, qualified_name, space_identifier,
8186 typename, typebase): Likewise.
8187 (write_destructor_name, parse_number, lex_one_token,
8188 classify_name, classify_inner_name, c_parse): Add "struct
8189 parser_state" argument. Update function to use parser state.
8190 * c-lang.h: Forward declare "struct parser_state".
8191 (c_parse): Add "struct parser_state" argument.
8192 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8193 (yyparse): Redefine macro to ada_parse_internal.
8194 (pstate): New variable.
8195 (write_int, write_object_renaming, write_var_or_type,
8196 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8197 type_int, type_long, type_long_long, type_float, type_double,
8198 type_long_double, type_char, type_boolean, type_system_address):
8199 Add "struct parser_state" argument.
8200 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8201 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8202 var_or_type, aggregate, aggregate_component_list,
8203 positional_list, others, component_group,
8204 component_associations): Update calls to write_exp* and similar
8205 functions in order to use parser state.
8206 (ada_parse, write_var_from_sym, write_int,
8207 write_exp_op_with_string, write_object_renaming,
8208 find_primitive_type, write_selectors, write_ambiguous_var,
8209 write_var_or_type, write_name_assoc, type_int, type_long,
8210 type_long_long, type_float, type_double, type_long_double,
8211 type_char, type_boolean, type_system_address): Add "struct
8212 parser_state" argument. Adjust function to use parser state.
8213 * ada-lang.c (parse): Likewise.
8214 * ada-lang.h: Forward declare "struct parser_state".
8215 (ada_parse): Add "struct parser_state" argument.
8216 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8217 calls to both functions.
8218 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8220 (yyparse): Redefine macro to f_parse_internal.
8221 (pstate): New variable.
8222 (parse_number): Add "struct parser_state" argument.
8223 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8224 and similars in order to use parser state.
8225 (parse_number): Adjust code to use parser state.
8227 (f_parse): New function.
8228 * f-lang.h: Forward declare "struct parser_state".
8229 (f_parse): Add "struct parser_state" argument.
8230 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8232 (yyparse): Redefine macro for java_parse_internal.
8233 (pstate): New variable.
8234 (push_expression_name, push_expression_name, insert_exp): Add
8235 "struct parser_state" argument.
8236 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8237 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8238 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8239 PostIncrementExpression, PostDecrementExpression,
8240 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8241 UnaryExpressionNotPlusMinus, CastExpression,
8242 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8243 RelationalExpression, EqualityExpression, AndExpression,
8244 ExclusiveOrExpression, InclusiveOrExpression,
8245 ConditionalAndExpression, ConditionalOrExpression,
8246 ConditionalExpression, Assignment, LeftHandSide): Update
8247 calls to write_exp* and similars in order to use parser state.
8248 (parse_number): Ajust code to use parser state.
8250 (java_parse): New function.
8251 (push_variable): Add "struct parser_state" argument. Adjust
8252 code to user parser state.
8253 (push_fieldnames, push_qualified_expression_name,
8254 push_expression_name, insert_exp): Likewise.
8255 * jv-lang.h: Forward declare "struct parser_state".
8256 (java_parse): Add "struct parser_state" argument.
8257 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8259 (yyparse): Redefine macro to m2_parse_internal.
8260 (pstate): New variable.
8261 (type_exp, exp, fblock, variable, type): Update calls to
8262 write_exp* and similars to use parser state.
8264 (m2_parse): New function.
8265 * m2-lang.h: Forward declare "struct parser_state".
8266 (m2_parse): Add "struct parser_state" argument.
8267 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8268 * objc-lang.h: Forward declare "struct parser_state".
8269 (end_msglist): Add "struct parser_state" argument.
8270 * p-exp.y (parse_type): Rewrite macro to use parser state.
8271 (yyparse): Redefine macro to pascal_parse_internal.
8272 (pstate): New variable.
8273 (parse_number): Add "struct parser_state" argument.
8274 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8275 write_exp* and similars in order to use parser state.
8276 (parse_number, yylex): Adjust code to use parser state.
8277 (pascal_parse): New function.
8278 * p-lang.h: Forward declare "struct parser_state".
8279 (pascal_parse): Add "struct parser_state" argument.
8280 * go-exp.y (parse_type): Rewrite macro to use parser state.
8281 (yyparse): Redefine macro to go_parse_internal.
8282 (pstate): New variable.
8283 (parse_number): Add "struct parser_state" argument.
8284 (type_exp, exp1, exp, variable, type): Update calls to
8285 write_exp* and similars in order to use parser state.
8286 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8287 to use parser state.
8288 (go_parse): Likewise.
8289 * go-lang.h: Forward declare "struct parser_state".
8290 (go_parse): Add "struct parser_state" argument.
8292 2014-03-27 Doug Evans <dje@google.com>
8294 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8296 2014-03-27 Doug Evans <dje@google.com>
8298 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8299 Remove argument abbrev_section. All callers updated.
8301 2014-03-27 Doug Evans <dje@google.com>
8303 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8304 addr_base, ranges_base.
8306 2014-03-26 Keith Seitz <keiths@redhat.com>
8308 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8309 types, not VAR_DOMAIN.
8311 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8313 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8315 * features/nios2-linux.c: Regenerated.
8316 * features/nios2.c: Regenerated.
8318 2014-03-25 Pedro Alves <palves@redhat.com>
8320 * cli/cli-script.c (script_from_file): Force the interpreter to
8323 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8325 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8326 small stack allocation.
8328 2014-03-24 Tristan Gingold <gingold@adacore.com>
8330 * darwin-nat.c (exc_server): Remove unused prototype.
8331 (darwin_dump_message): Correctly display data on x86_64.
8332 (darwin_encode_reply): Fix style.
8333 Add comments and fix indentation.
8335 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8337 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8339 2014-03-22 Doug Evans <xdje42@gmail.com>
8341 * infcmd.c: Whitespace fixes.
8342 (interrupt_command): Merge two function comments into one.
8344 2014-03-22 Doug Evans <xdje42@gmail.com>
8346 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8349 2014-03-22 Yao Qi <yao@codesourcery.com>
8351 * remote.c (target_read_live_memory): Remove.
8352 (memory_xfer_live_readonly_partial): Rename it to
8353 remote_xfer_live_readonly_partial. Remove argument 'object'.
8354 All callers updated. Call remote_read_bytes_1
8355 instead of target_read_live_memory.
8356 * tracepoint.c (set_traceframe_number): Remove.
8357 (make_cleanup_restore_traceframe_number): Likewise .
8358 * tracepoint.h (set_traceframe_number): Remove declaration.
8359 (make_cleanup_restore_traceframe_number): Likewise.
8361 2014-03-22 Yao Qi <yao@codesourcery.com>
8363 * remote.c (remote_read_bytes): Move code on reading from the
8365 (remote_read_bytes_1): ... here. New function.
8367 2014-03-22 Yao Qi <yao@codesourcery.com>
8369 * ctf.c (ctf_xfer_partial): Check the return value of
8370 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8371 return TARGET_XFER_UNAVAILABLE.
8372 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8373 * target.c (target_read_live_memory): Move it to remote.c.
8374 (memory_xfer_live_readonly_partial): Likewise.
8375 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8376 * remote.c (target_read_live_memory): Moved from target.c.
8377 (memory_xfer_live_readonly_partial): Likewise.
8378 (remote_read_bytes): Factored out from
8379 memory_xfer_partial_1.
8381 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8383 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8386 2014-03-21 Pedro Alves <palves@redhat.com>
8388 * infrun.c (normal_stop): Extend comment.
8390 2014-03-21 Hui Zhu <hui@codesourcery.com>
8391 Pedro Alves <palves@redhat.com>
8393 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8395 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8396 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8397 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8399 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8401 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8402 `z' formatted output modifier.
8404 2014-03-20 Tom Tromey <tromey@redhat.com>
8405 Sergio Durigan Junior <sergiodj@redhat.com>
8407 * probe.c (parse_probes): Turn assert into an ordinary error.
8408 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8409 exceptions when parsing probes. Rearrange the code for clarity.
8411 2014-03-20 Tom Tromey <tromey@redhat.com>
8414 * top.c (execute_command): Only dispatch events if the command
8417 2014-03-20 Tom Tromey <tromey@redhat.com>
8420 * infcall.c: Include event-top.h.
8421 (run_inferior_call): Call async_disable_stdin if needed.
8423 2014-03-20 Pedro Alves <palves@redhat.com>
8425 * infrun.c (prepare_to_proceed): Delete.
8426 (thread_still_needs_step_over): New function.
8427 (find_thread_needs_step_over): New function.
8428 (proceed): If the current thread needs a step-over, set its
8429 steping_over_breakpoint flag. Adjust to use
8430 find_thread_needs_step_over instead of prepare_to_proceed.
8431 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8432 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8434 (switch_back_to_stepped_thread): Step over breakpoints of all
8435 threads not the stepping thread, before switching back to the
8438 2014-03-20 Pedro Alves <palves@redhat.com>
8440 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8442 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8443 * infrun.c (saved_singlestep_ptid)
8444 (stepping_past_singlestep_breakpoint): Delete.
8445 (resume): Remove stepping_past_singlestep_breakpoint handling.
8446 (proceed): Store the prev_pc of the stepping thread too.
8447 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8449 (enum infwait_states): Delete infwait_thread_hop_state.
8450 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8452 (handle_inferior_event): Adjust.
8453 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8454 handling and the thread-hop code. Before removing single-step
8455 breakpoints, check whether the thread hit a single-step breakpoint
8456 of another thread. If it did, the trap is not a random signal.
8457 (switch_back_to_stepped_thread): If the event thread hit a
8458 single-step breakpoint, unblock it before switching to the
8459 stepping thread. Handle the case of the stepped thread having
8461 (keep_going): Handle the case of the current thread moving past a
8462 single-step breakpoint.
8464 2014-03-20 Pedro Alves <palves@redhat.com>
8467 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8468 are being stepped over.
8469 (breakpoint_address_match): Make extern.
8470 * breakpoint.h (breakpoint_address_match): New declaration.
8471 * inferior.h (stepping_past_instruction_at): New declaration.
8472 * infrun.c (struct step_over_info): New type.
8473 (step_over_info): New global.
8474 (set_step_over_info, clear_step_over_info)
8475 (stepping_past_instruction_at): New functions.
8476 (handle_inferior_event): Clear the step-over info when
8477 trap_expected is cleared.
8478 (resume): Remove now stale comment.
8479 (clear_proceed_status): Clear step-over info.
8480 (proceed): Adjust step-over handling to set or clear the step-over
8481 info instead of removing all breakpoints.
8482 (handle_signal_stop): When setting up a thread-hop, don't remove
8484 (stop_stepping): Clear step-over info.
8485 (keep_going): Adjust step-over handling to set or clear step-over
8486 info and then always inserting breakpoints, instead of removing
8487 all breakpoints when stepping over one.
8489 2014-03-20 Pedro Alves <palves@redhat.com>
8491 * infrun.c (previous_inferior_ptid): Adjust comment.
8492 (deferred_step_ptid): Delete.
8493 (infrun_thread_ptid_changed, prepare_to_proceed)
8494 (init_wait_for_inferior): Adjust.
8495 (handle_signal_stop): Delete deferred_step_ptid handling.
8497 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8500 * defs.h (sync_quit_force_run): New declaration.
8501 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8502 * event-top.c (async_sigterm_handler): New declaration.
8503 (async_sigterm_token): New variable.
8504 (async_init_signals): Create also async_sigterm_token.
8505 (async_sigterm_handler): New function.
8506 (sync_quit_force_run): New variable.
8507 (handle_sigterm): Replace quit_force call by other calls.
8508 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8510 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8512 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8513 offset into SPE pseudo registers.
8515 2014-03-18 Pedro Alves <palves@redhat.com>
8518 * inferior.h (print_stop_event): Declare.
8519 * infrun.c (print_stop_event): New, factored out from ...
8520 (normal_stop): ... this.
8521 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8522 of bpstat_print/print_stack_frame.
8524 2014-03-17 Tom Tromey <tromey@redhat.com>
8526 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8528 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8530 * ada-lang.c (decode_constrained_packed_array): Perform a
8531 minimal coercion for reference with coerce_ref instead of
8534 2014-03-17 Tristan Gingold <gingold@adacore.com>
8536 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8537 (darwin_solib_create_inferior_hook): Emit a warning if version
8540 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8542 * python/py-value.c (get_field_flag): Cast flag_name argument to
8543 PyObject_GetAttrString to support Python 2.4.
8545 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8547 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8548 (Global Maintainers): Remove Jan Kratochvil.
8550 2014-03-14 Pedro Alves <palves@redhat.com>
8552 * inferior.h (terminal_ours_for_output): Rename to ...
8553 (child_terminal_ours_for_output): ... this.
8554 (terminal_save_ours): Rename to ...
8555 (child_terminal_save_ours): ... this.
8556 (terminal_ours): Rename to ...
8557 (child_terminal_ours): ... this.
8558 (terminal_inferior): Rename to ...
8559 (child_terminal_inferior): ... this.
8560 (terminal_init_inferior): Rename to ...
8561 (child_terminal_init_inferior): ... this.
8562 (terminal_init_inferior_with_pgrp): Rename to ...
8563 (child_terminal_init_inferior_with_pgrp): ... this.
8564 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8565 (child_terminal_init_with_pgrp): ... this.
8566 (terminal_save_ours): Rename to ...
8567 (child_terminal_save_ours): ... this.
8568 (terminal_init_inferior): Rename to ...
8569 (child_terminal_init): ... this. Adjust.
8570 (terminal_inferior): Rename to ...
8571 (child_terminal_inferior): ... this.
8572 (terminal_ours_for_output): Rename to ...
8573 (child_terminal_ours_for_output): ... this. Adjust.
8574 (terminal_ours): Rename to ...
8575 (child_terminal_ours): ... this.
8576 (terminal_ours_1): Rename to ...
8577 (child_terminal_ours_1): ... this. Adjust.
8578 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8579 * windows-nat.c (do_initial_windows_stuff): Adjust.
8580 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8581 (gnu_terminal_init): ... this. Adjust.
8582 (gnu_target): Adjust.
8583 * inf-child.c (inf_child_target): Adjust.
8585 2014-03-13 Doug Evans <xdje42@gmail.com>
8588 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8591 2014-03-13 Doug Evans <xdje42@gmail.com>
8593 * value.c (record_latest_value): Call release_value_or_incref
8594 instead of release_value.
8596 2014-03-13 Pedro Alves <palves@redhat.com>
8598 * procfs.c (procfs_target): Don't override to_shortname,
8599 to_longname or to_doc.
8601 2014-03-13 Pedro Alves <palves@redhat.com>
8603 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8604 Unix in user visible strings.
8606 2014-03-12 Stan Shebs <stan@codesourcery.com>
8608 * gdbtypes.h: Annotate comments for Doxygen, add a page
8609 block comment with some general info.
8611 2014-03-12 Pedro Alves <palves@redhat.com>
8613 * infcmd.c (prepare_execution_command): New function, factored out
8614 from several execution commands.
8615 (run_command_1, continue_command, step_1, jump_command)
8616 (signal_command, until_command, advance_command, finish_command)
8617 (attach_command): Use prepare_execution_command.
8619 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8621 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8624 (struct arm_linux_thread_points): Removed.
8625 (struct arm_linux_process_info): New.
8626 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8627 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8628 (arm_linux_find_breakpoints_by_tid): Removed.
8629 (struct arch_lwp_info): New.
8630 (arm_linux_find_process_pid): New functions.
8631 (arm_linux_add_process): New functions.
8632 (arm_linux_process_info_get): New functions.
8633 (arm_linux_forget_process): New function.
8634 (arm_linux_get_debug_reg_state): New function.
8635 (struct update_registers_data): New.
8636 (update_registers_callback): New function.
8637 (arm_linux_insert_hw_breakpoint1): Updated.
8638 (arm_linux_remove_hw_breakpoint1): Updated.
8639 (arm_linux_insert_hw_breakpoint): Updated.
8640 (arm_linux_remove_hw_breakpoint): Updated.
8641 (arm_linux_insert_watchpoint): Updated.
8642 (arm_linux_remove_watchpoint): Updated.
8643 (arm_linux_new_thread): Updated.
8644 (arm_linux_prepare_to_resume): New function.
8645 (arm_linux_new_fork): New function.
8646 (_initialize_arm_linux_nat): Updated.
8648 2014-03-12 Pedro Alves <palves@redhat.com>
8650 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8652 2014-03-12 Tom Tromey <tromey@redhat.com>
8654 * inf-child.c (return_zero): New function.
8655 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8656 * aix-thread.c (aix_thread_inferior_created): New function.
8657 (aix_thread_attach): Remove.
8658 (init_aix_thread_ops): Don't set to_attach.
8659 (_initialize_aix_thread): Register inferior_created observer.
8660 * corelow.c (init_core_ops): Don't set to_attach or
8662 * exec.c (init_exec_ops): Don't set to_attach or
8664 * infcmd.c (run_command_1): Use find_run_target. Make direct
8666 (attach_command): Use find_attach_target. Make direct target
8668 * record-btrace.c (init_record_btrace_ops): Don't set
8670 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8672 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8673 set to_create_inferior.
8674 * target.c (complete_target_initialization): Add assertion.
8675 (target_create_inferior): Remove.
8676 (find_default_attach, find_default_create_inferior): Remove.
8677 (find_attach_target, find_run_target): New functions.
8678 (find_default_is_async_p, find_default_can_async_p)
8679 (target_supports_non_stop, target_attach): Remove.
8680 (init_dummy_target): Don't set to_create_inferior or
8681 to_supports_non_stop.
8682 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8683 TARGET_DEFAULT_FUNC.
8684 <to_create_inferior>: Add comment.
8685 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8686 TARGET_DEFAULT_RETURN.
8687 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8688 (find_attach_target, find_run_target): Declare.
8689 (target_create_inferior): Remove.
8690 (target_has_execution_1): Update comment.
8691 (target_supports_non_stop): Remove.
8692 * target-delegates.c: Rebuild.
8694 2014-03-12 Pedro Alves <palves@redhat.com>
8696 * inf-child.h: Update comment to not mention Unix.
8698 2014-03-12 Pedro Alves <palves@redhat.com>
8700 * inf-child.c: Update top comment to not mention Unix. Add
8701 generic comment describing how this target is meant to be used.
8702 (inf_child_post_attach, inf_child_post_startup_inferior)
8703 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8706 2014-03-12 Pedro Alves <palves@redhat.com>
8708 * nto-procfs.c: Include inf-child.h.
8709 (procfs_ops): Delete global.
8710 (procfs_can_run): Delete method.
8711 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8712 target pointer instead of referencing procfs_ops.
8713 (procfs_prepare_to_store): Delete.
8714 (init_procfs_ops): Delete function.
8715 (procfs_target): New function, based on init_procfs_ops, but
8716 inherit inf_child_target.
8717 (_initialize_procfs): Use procfs_target.
8719 2014-03-12 Pedro Alves <palves@redhat.com>
8721 * windows-nat.c: Include inf-child.h.
8722 (windows_ops): Delete global.
8723 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8725 (init_windows_ops): Delete function.
8726 (windows_target): New function, based on init_windows_ops, but
8727 inherit inf_child_target.
8728 (_initialize_windows_nat): Use windows_target. Install x86
8729 specific target methods here.
8731 2014-03-10 Doug Evans <xdje42@gmail.com>
8733 * guile/guile.c (call_initialize_gdb_module): New function.
8734 (initialize_guile): Replace call to scm_init_guile with call to
8737 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8739 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8740 in call to TYPE_CODE macro.
8742 2014-03-10 Jerome Guitton <guitton@adacore.com>
8744 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8745 Resolve tagged types to full view.
8747 2014-03-10 Hui Zhu <hui@codesourcery.com>
8749 * target.h (target_insert_breakpoint): Remove "hardware" from its
8752 2014-03-07 Doug Evans <dje@google.com>
8754 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8756 2014-03-07 Doug Evans <dje@google.com>
8758 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8759 Remove unused local comp_dir_attr. Assert exactly one of
8760 stub_comp_unit_die, stub_comp_dir is non-NULL.
8762 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8764 * target.h (complete_target_initialization, add_target):
8767 2014-03-07 Pedro Alves <palves@redhat.com>
8769 * go32-nat.c: Include inf-child.h.
8770 (go32_ops): Delete global.
8771 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8773 (go32_create_inferior): Push the passed in target pointer instead
8774 of referencing go32_ops.
8775 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8776 (go32_target): New function, based on init_go32_ops, but inherit
8778 (_initialize_go32_nat): Use go32_target. Move parts of
8781 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8783 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8784 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8785 SYMBOL_VALUE_ADDRESS.
8786 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8788 2014-03-06 Yao Qi <yao@codesourcery.com>
8790 * breakpoint.c (get_tracepoint_by_number): Remove argument
8791 optional_p. All callers updated. Adjust comments. Update
8793 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8795 2014-03-06 Yao Qi <yao@codesourcery.com>
8797 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8798 early if get_number returns zero. Use 'p' instead of 'args'.
8800 2014-03-06 Yao Qi <yao@codesourcery.com>
8802 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8805 2014-03-06 Yao Qi <yao@codesourcery.com>
8807 PR breakpoints/16508
8808 * tracepoint.c (check_trace_running): New function.
8809 (trace_find_command): Move code to check_trace_running and
8810 call check_trace_running.
8811 (trace_find_pc_command): Likewise.
8812 (trace_find_tracepoint_command): Likewise.
8813 (trace_find_line_command): Likewise.
8814 (trace_find_range_command): Likewise.
8815 * tracepoint.h (check_trace_running): Likewise.
8816 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8818 2014-03-06 Yao Qi <yao@codesourcery.com>
8820 * target.h (struct target_ops) <to_traceframe_info>: Use
8821 TARGET_DEFAULT_NORETURN (tcomplain ()).
8822 * target-delegates.c: Regenerated.
8824 2014-03-05 Pedro Alves <palves@redhat.com>
8827 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8828 void. Update comment.
8829 (dcache_xfer_memory): Delete.
8830 (dcache_read_memory_partial): New, based on the read bits of
8832 (dcache_update): Add status parameter. Use ULONGEST for len, and
8833 adjust. Discard cache lines if the reason for the update was
8835 * dcache.h (dcache_xfer_memory): Delete declaration.
8836 (dcache_read_memory_partial): New declaration.
8837 (dcache_update): Update prototype.
8838 * target.c (raw_memory_xfer_partial): Update the dcache here.
8839 (memory_xfer_partial_1): Don't handle dcache writes here.
8841 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8843 * remote-sim.c (gdbsim_load): Add const to prog.
8845 2014-03-03 Tom Tromey <tromey@redhat.com>
8847 * elfread.c (probe_key): Change to bfd_data.
8848 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8849 now per-BFD, not per-objfile.
8850 * stap-probe.c (stap_probe_destroy): Update comment.
8851 (handle_stap_probe): Allocate on the per-BFD obstack.
8853 2014-03-03 Tom Tromey <tromey@redhat.com>
8855 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8856 * breakpoint.c (create_longjmp_master_breakpoint): Use
8858 (add_location_to_breakpoint, bkpt_probe_insert_location)
8859 (bkpt_probe_remove_location): Update.
8860 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8861 * elfread.c (elf_symfile_relocate_probe): Remove.
8862 (elf_probe_fns): Update.
8863 (insert_exception_resume_breakpoint): Change type of "probe"
8864 parameter to bound_probe.
8865 (check_exception_resume): Update.
8866 * objfiles.c (objfile_relocate1): Don't relocate probes.
8867 * probe.c (bound_probe_s): New typedef.
8868 (parse_probes): Use get_probe_address. Set sal's objfile.
8869 (find_probe_by_pc): Return a bound_probe.
8870 (collect_probes): Return a VEC(bound_probe_s).
8871 (compare_probes): Update.
8872 (gen_ui_out_table_header_info): Change type of "probes"
8874 (info_probes_for_ops): Update.
8875 (get_probe_address): New function.
8876 (probe_safe_evaluate_at_pc): Update.
8877 * probe.h (struct probe_ops) <get_probe_address>: New field.
8878 <set_semaphore, clear_semaphore>: Add objfile parameter.
8879 (struct probe) <objfile>: Remove field.
8881 <address>: Update comment.
8882 (struct bound_probe): New.
8883 (find_probe_by_pc): Return a bound_probe.
8884 (get_probe_address): Declare.
8885 * solib-svr4.c (struct probe_and_action) <address>: New field.
8886 (hash_probe_and_action, equal_probe_and_action): Update.
8887 (register_solib_event_probe): Add address parameter.
8888 (solib_event_probe_at): Update.
8889 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8891 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8892 (stap_get_probe_address): New function.
8893 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8894 (compile_probe_arg): Update.
8895 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8897 (handle_stap_probe): Don't relocate the probe.
8898 (stap_relocate): Remove.
8899 (stap_gen_info_probes_table_values): Update.
8900 (stap_probe_ops): Remove stap_relocate.
8901 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8902 (debug_sym_probe_fns): Update.
8903 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8904 * symtab.c (init_sal): Use memset.
8905 * symtab.h (struct symtab_and_line) <objfile>: New field.
8906 * tracepoint.c (start_tracing, stop_tracing): Update.
8908 2014-03-03 Tom Tromey <tromey@redhat.com>
8910 * probe.h (parse_probes, find_probe_by_pc)
8911 (find_probes_in_objfile): Fix comments.
8913 2014-03-02 Doug Evans <xdje42@gmail.com>
8915 * infrun.c (handle_signal_stop): Replace test for
8916 TARGET_WAITKIND_STOPPED with an assert.
8918 2014-03-02 Doug Evans <xdje42@gmail.com>
8920 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8922 2014-03-02 Doug Evans <xdje42@gmail.com>
8924 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8926 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8928 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8930 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8932 * i386obsd-nat.c: Include "obsd-nat.h".
8933 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8935 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8937 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8939 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8941 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8943 * mips64obsd-nat.c: Include "obsd-nath".
8944 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8946 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8948 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8950 * amd64obsd-nat.c: Include "obsd-nat,h.
8951 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8953 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8955 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8957 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8958 (find_overload_match): Update call to find_oload_champ.
8959 (find_oload_champ_namespace_loop): Likewise
8961 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8963 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8965 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8966 * config/sparc/obsd64.mh: New file.
8967 * sparc64obsd-nat.c: New file.
8969 * obsd-nat.h: New file.
8970 * obsd-nat.c: New file.
8971 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8972 (ALLDEPFILES): Add obsd-nat.c.
8974 2014-02-28 Tom Tromey <tromey@redhat.com>
8976 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8977 * cli-out.h (cli_ui_out_impl): Now const.
8978 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8979 * ui-out.c (struct ui_out) <impl>: Now const.
8980 (default_ui_out_impl): Now const.
8981 (ui_out_new): Make 'impl' parameter const.
8982 * ui-out.h (ui_out_new): Update.
8984 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8986 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8988 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8990 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8992 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8994 Additional PR 8882 fix.
8995 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8997 2014-02-27 Pedro Alves <palves@redhat.com>
8999 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9002 2014-02-27 Pedro Alves <palves@redhat.com>
9005 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9006 * nat/linux-waitpid.c: Include string.h.
9007 (status_to_str): Moved here and made extern.
9008 * nat/linux-waitpid.h (status_to_str): New declaration.
9010 2014-02-27 Hui Zhu <hui@codesourcery.com>
9013 * infrun.c (ptid_match): Move ...
9014 * common/ptid.c (ptid_match): ... here.
9015 * inferior.h (ptid_match): Move ...
9016 * common/ptid.h (ptid_match): ... here.
9018 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9020 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9021 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9024 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9026 * obsd-tdep.c (obsd_auxv_parse): New function.
9027 (obsd_init_abi): Set auxv_parse.
9029 * gdbarch.sh (auxv_parse): New.
9030 * gdbarch.h: Regenerated.
9031 * gdbarch.c: Regenerated.
9032 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9034 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9036 * guile/scm-value.c (gdbscm_history_append_x): New function.
9037 (value_functions): Add it.
9039 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9041 * dwarf2read.c (attr_value_as_address): New function.
9042 (dwarf2_find_base_address, read_call_site_scope): Use
9043 attr_value_as_address in place of DW_ADDR.
9044 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9045 the low and high addresses. Slight rework of the handling
9046 of the high pc being a constant form, and limit it to
9047 DWARF verson 4 or higher.
9048 (dwarf2_record_block_ranges): Likewise.
9049 (read_partial_die): Likewise.
9050 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9052 2014-02-26 Tom Tromey <tromey@redhat.com>
9054 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9056 2014-02-26 Tom Tromey <tromey@redhat.com>
9058 * elfread.c (elf_read_minimal_symbols): Return early if
9059 minimal symbols have already been read. Add "ei" parameter.
9060 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9061 * minsyms.c (prim_record_minimal_symbol_full): Update.
9062 * objfiles.h (struct objstats) <n_minsyms>: Move...
9063 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9064 * symmisc.c (print_objfile_statistics): Update.
9066 2014-02-26 Tom Tromey <tromey@redhat.com>
9068 * elfread.c (elf_read_minimal_symbols): New function, from
9070 (elf_symfile_read): Call it.
9072 2014-02-26 Tom Tromey <tromey@redhat.com>
9074 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9075 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9076 (lookup_minimal_symbol_solib_trampoline)
9077 (lookup_minimal_symbol_by_pc_section_1)
9078 (lookup_minimal_symbol_and_objfile): Update.
9079 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9080 Don't allocate a minimal symbol if minsyms have already been read.
9081 (build_minimal_symbol_hash_tables): Update.
9082 (install_minimal_symbols): Do nothing if minsyms already read.
9083 Use the per-BFD obstack.
9084 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9085 * objfiles.c (allocate_objfile): Call
9086 terminate_minimal_symbol_table later.
9087 (have_minimal_symbols): Update.
9088 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9089 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9090 Move from struct objfile.
9091 <minsyms_read>: New field.
9092 (struct objfile) <msymbols, minimal_symbol_count,
9093 msymbol_hash, msymbol_demangled_hash>: Move.
9094 (ALL_OBJFILE_MSYMBOLS): Update.
9095 * symfile.c (read_symbols): Set minsyms_read.
9096 (reread_symbols): Update.
9097 * symmisc.c (dump_objfile, dump_msymbols): Update.
9099 2014-02-26 Tom Tromey <tromey@redhat.com>
9101 * minsyms.c (msymbols_sort): Remove.
9102 * minsyms.h (msymbols_sort): Remove.
9103 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9104 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9105 * elfread.c (elf_symtab_read): Don't add section offsets.
9106 * xcoffread.c (record_minimal_symbol): Don't add section offset
9107 to minimal symbol address.
9108 * somread.c (text_offset, data_offset): Remove.
9109 (som_symtab_read): Don't add section offsets to minimal symbol
9111 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9112 Don't add section offsets to minimal symbols.
9113 * coffread.c (coff_symtab_read): Don't add section offsets
9114 to minimal symbol addresses.
9115 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9116 to minimal symbol addresses.
9117 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9118 section offset to minimal symbol addresses.
9119 * mdebugread.c (parse_partial_symbols): Don't add section
9120 offset to minimal symbol addresses.
9121 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9122 offset to minimal symbol addresses.
9124 2014-02-26 Tom Tromey <tromey@redhat.com>
9126 * ada-lang.c (ada_main_name): Update.
9127 (ada_add_standard_exceptions): Update.
9128 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9129 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9130 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9131 * auxv.c (ld_so_xfer_auxv): Update.
9132 * avr-tdep.c (avr_scan_prologue): Update.
9133 * ax-gdb.c (gen_var_ref): Update.
9134 * blockframe.c (get_pc_function_start)
9135 (find_pc_partial_function_gnu_ifunc): Update.
9136 * breakpoint.c (create_overlay_event_breakpoint)
9137 (create_longjmp_master_breakpoint)
9138 (create_std_terminate_master_breakpoint)
9139 (create_exception_master_breakpoint): Update.
9140 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9141 * c-valprint.c (c_val_print): Update.
9142 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9143 * common/agent.c (agent_look_up_symbols): Update.
9144 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9145 * dwarf2loc.c (call_site_to_target_addr): Update.
9146 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9147 * elfread.c (elf_gnu_ifunc_record_cache)
9148 (elf_gnu_ifunc_resolve_by_got): Update.
9149 * findvar.c (default_read_var_value): Update.
9150 * frame.c (inside_main_func): Update.
9151 * frv-tdep.c (frv_frame_this_id): Update.
9152 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9153 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9155 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9156 (hppa_hpux_find_dummy_bpaddr): Update.
9157 * hppa-tdep.c (hppa_symbol_address): Update.
9158 * infcmd.c (until_next_command): Update.
9159 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9161 * linespec.c (minsym_found, add_minsym): Update.
9162 * linux-nat.c (get_signo): Update.
9163 * linux-thread-db.c (inferior_has_bug): Update.
9164 * m32c-tdep.c (m32c_return_value)
9165 (m32c_m16c_address_to_pointer): Update.
9166 * m32r-tdep.c (m32r_frame_this_id): Update.
9167 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9168 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9169 * maint.c (maintenance_translate_address): Update.
9170 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9171 (frob_address): New function.
9172 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9173 frob_address. Rename parameter to "pc_in".
9174 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9176 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9178 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9179 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9180 * objc-lang.c (find_objc_msgsend): Update.
9181 * objfiles.c (objfile_relocate1): Update.
9182 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9183 * p-valprint.c (pascal_val_print): Update.
9184 * parse.c (write_exp_msymbol): Update.
9185 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9186 (ppc_elfv2_skip_entrypoint): Update.
9187 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9188 * printcmd.c (build_address_symbolic, msym_info)
9189 (address_info): Update.
9190 * proc-service.c (ps_pglobal_lookup): Update.
9191 * psymtab.c (find_pc_sect_psymtab_closer)
9192 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9193 Change msymbol parameter to bound_minimal_symbol.
9194 * ravenscar-thread.c (get_running_thread_id): Update.
9195 * remote.c (remote_check_symbols): Update.
9196 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9198 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9199 * solib-dsbt.c (lm_base): Update.
9200 * solib-frv.c (lm_base, main_got): Update.
9201 * solib-irix.c (locate_base): Update.
9202 * solib-som.c (som_solib_create_inferior_hook)
9203 (link_map_start): Update.
9204 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9205 * solib-svr4.c (elf_locate_base, enable_break): Update.
9206 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9207 (flush_ea_cache): Update.
9208 * stabsread.c (define_symbol, scan_file_globals): Update.
9209 * stack.c (find_frame_funname): Update.
9210 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9211 (debug_qf_find_pc_sect_symtab): Update.
9212 * symfile.c (simple_read_overlay_table)
9213 (simple_overlay_update): Update.
9214 * symfile.h (struct quick_symbol_functions)
9215 <find_pc_sect_symtab>: Change type of msymbol to
9216 bound_minimal_symbol.
9217 * symmisc.c (dump_msymbols): Update.
9218 * symtab.c (find_pc_sect_symtab_via_partial)
9219 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9220 (search_symbols, print_msymbol_info): Update.
9221 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9222 (MSYMBOL_VALUE_ADDRESS): Redefine.
9223 (BMSYMBOL_VALUE_ADDRESS): New macro.
9224 * tracepoint.c (scope_info): Update.
9225 * tui/tui-disasm.c (tui_find_disassembly_address)
9226 (tui_get_begin_asm_address): Update.
9227 * valops.c (find_function_in_inferior): Update.
9228 * value.c (value_static_field, value_fn_field): Update.
9230 2014-02-26 Tom Tromey <tromey@redhat.com>
9232 * ada-lang.c (ada_update_initial_language): Update.
9233 (ada_main_name, ada_has_this_exception_support): Update.
9234 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9235 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9236 * arm-tdep.c (arm_skip_stub): Update.
9237 * auxv.c (ld_so_xfer_auxv): Update.
9238 * avr-tdep.c (avr_scan_prologue): Update.
9239 * ax-gdb.c (gen_var_ref): Update.
9240 * breakpoint.c (struct breakpoint_objfile_data)
9241 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9242 type to bound_minimal_symbol.
9243 (create_overlay_event_breakpoint)
9244 (create_longjmp_master_breakpoint)
9245 (create_std_terminate_master_breakpoint)
9246 (create_exception_master_breakpoint): Update.
9247 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9248 * c-exp.y (classify_name): Update.
9249 * coffread.c (coff_symfile_read): Update.
9250 * common/agent.c (agent_look_up_symbols): Update.
9251 * d-lang.c (d_main_name): Update.
9252 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9253 * dec-thread.c (enable_dec_thread): Update.
9254 * dwarf2loc.c (call_site_to_target_addr): Update.
9255 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9256 * eval.c (evaluate_subexp_standard): Update.
9257 * findvar.c (struct minsym_lookup_data) <result>: Change type
9258 to bound_minimal_symbol.
9260 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9261 * frame.c (inside_main_func): Update.
9262 * frv-tdep.c (frv_frame_this_id): Update.
9263 * gcore.c (call_target_sbrk): Update.
9264 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9265 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9267 * go-lang.c (go_main_name): Update.
9268 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9269 (hppa_hpux_find_import_stub_for_addr): Update.
9270 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9271 Update. Change return type.
9272 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9274 * jit.c (jit_breakpoint_re_set_internal): Update.
9275 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9277 * linux-nat.c (get_signo): Update.
9278 * linux-thread-db.c (inferior_has_bug): Update
9279 * m32c-tdep.c (m32c_return_value)
9280 (m32c_m16c_address_to_pointer): Update.
9281 * m32r-tdep.c (m32r_frame_this_id): Update.
9282 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9283 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9284 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9285 lookup_minimal_symbol. Change return type.
9286 (lookup_minimal_symbol): Remove.
9287 (lookup_bound_minimal_symbol): Update.
9288 (lookup_minimal_symbol_text): Change return type.
9289 (lookup_minimal_symbol_solib_trampoline): Change return type.
9290 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9291 (lookup_minimal_symbol_solib_trampoline): Change return type.
9292 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9293 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9294 (value_nsstring, find_imps): Update.
9295 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9296 * p-lang.c (pascal_main_name): Update.
9297 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9298 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9299 * proc-service.c (ps_pglobal_lookup): Update.
9300 * ravenscar-thread.c (get_running_thread_msymbol): Change
9302 (has_ravenscar_runtime, get_running_thread_id): Update.
9303 * remote.c (remote_check_symbols): Update.
9304 * sol-thread.c (ps_pglobal_lookup): Update.
9305 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9306 * solib-dsbt.c (lm_base): Update.
9307 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9309 * solib-irix.c (locate_base): Update.
9310 * solib-som.c (som_solib_create_inferior_hook)
9311 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9313 * solib-spu.c (spu_enable_break): Update.
9314 * solib-svr4.c (elf_locate_base, enable_break): Update.
9315 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9316 (flush_ea_cache): Update.
9317 * stabsread.c (define_symbol): Update.
9318 * symfile.c (simple_read_overlay_table): Update.
9319 * symtab.c (find_pc_sect_line): Update.
9320 * tracepoint.c (scope_info): Update.
9321 * tui-disasm.c (tui_get_begin_asm_address): Update.
9322 * value.c (value_static_field): Update.
9324 2014-02-26 Tom Tromey <tromey@redhat.com>
9326 * minsyms.c (prim_record_minimal_symbol_full): Use
9327 SET_MSYMBOL_VALUE_ADDRESS.
9328 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9329 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9330 SET_MSYMBOL_VALUE_ADDRESS.
9331 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9332 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9334 2014-02-26 Tom Tromey <tromey@redhat.com>
9336 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9337 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9338 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9339 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9340 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9341 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9342 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9343 * ada-lang.c (ada_main_name): Update.
9344 (ada_lookup_simple_minsym): Update.
9345 (ada_make_symbol_completion_list): Update.
9346 (ada_add_standard_exceptions): Update.
9347 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9348 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9349 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9350 * arm-tdep.c (skip_prologue_function): Update.
9351 (arm_skip_stack_protector, arm_skip_stub): Update.
9352 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9353 (arm_wince_skip_main_prologue): Update.
9354 * auxv.c (ld_so_xfer_auxv): Update.
9355 * avr-tdep.c (avr_scan_prologue): Update.
9356 * ax-gdb.c (gen_var_ref): Update.
9357 * block.c (call_site_for_pc): Update.
9358 * blockframe.c (get_pc_function_start): Update.
9359 (find_pc_partial_function_gnu_ifunc): Update.
9360 * breakpoint.c (create_overlay_event_breakpoint): Update.
9361 (create_longjmp_master_breakpoint): Update.
9362 (create_std_terminate_master_breakpoint): Update.
9363 (create_exception_master_breakpoint): Update.
9364 (resolve_sal_pc): Update.
9365 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9366 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9368 * c-valprint.c (c_val_print): Update.
9369 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9370 * coffread.c (coff_symfile_read): Update.
9371 * common/agent.c (agent_look_up_symbols): Update.
9372 * dbxread.c (find_stab_function_addr): Update.
9373 (end_psymtab): Update.
9374 * dwarf2loc.c (call_site_to_target_addr): Update.
9375 (func_verify_no_selftailcall): Update.
9376 (tailcall_dump): Update.
9377 (call_site_find_chain_1): Update.
9378 (dwarf_expr_reg_to_entry_parameter): Update.
9379 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9380 (elf_gnu_ifunc_resolve_by_got): Update.
9381 * f-valprint.c (info_common_command): Update.
9382 * findvar.c (read_var_value): Update.
9383 * frame.c (get_prev_frame_1): Update.
9384 (inside_main_func): Update.
9385 * frv-tdep.c (frv_skip_main_prologue): Update.
9386 (frv_frame_this_id): Update.
9387 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9388 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9389 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9390 (gnuv3_skip_trampoline): Update.
9391 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9392 (hppa64_hpux_in_solib_call_trampoline): Update.
9393 (hppa_hpux_skip_trampoline_code): Update.
9394 (hppa64_hpux_search_dummy_call_sequence): Update.
9395 (hppa_hpux_find_import_stub_for_addr): Update.
9396 (hppa_hpux_find_dummy_bpaddr): Update.
9397 * hppa-tdep.c (hppa_symbol_address)
9398 (hppa_lookup_stub_minimal_symbol): Update.
9399 * i386-tdep.c (i386_skip_main_prologue): Update.
9400 (i386_pe_skip_trampoline_code): Update.
9401 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9402 * infcall.c (get_function_name): Update.
9403 * infcmd.c (until_next_command): Update.
9404 * jit.c (jit_breakpoint_re_set_internal): Update.
9405 (jit_inferior_init): Update.
9406 * linespec.c (minsym_found): Update.
9407 (add_minsym): Update.
9408 * linux-fork.c (info_checkpoints_command): Update.
9409 * linux-nat.c (get_signo): Update.
9410 * linux-thread-db.c (inferior_has_bug): Update.
9411 * m32c-tdep.c (m32c_return_value): Update.
9412 (m32c_m16c_address_to_pointer): Update.
9413 (m32c_m16c_pointer_to_address): Update.
9414 * m32r-tdep.c (m32r_frame_this_id): Update.
9415 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9416 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9417 * maint.c (maintenance_translate_address): Update.
9418 * minsyms.c (add_minsym_to_hash_table): Update.
9419 (add_minsym_to_demangled_hash_table): Update.
9420 (msymbol_objfile): Update.
9421 (lookup_minimal_symbol): Update.
9422 (iterate_over_minimal_symbols): Update.
9423 (lookup_minimal_symbol_text): Update.
9424 (lookup_minimal_symbol_by_pc_name): Update.
9425 (lookup_minimal_symbol_solib_trampoline): Update.
9426 (lookup_minimal_symbol_by_pc_section_1): Update.
9427 (lookup_minimal_symbol_and_objfile): Update.
9428 (prim_record_minimal_symbol_full): Update.
9429 (compare_minimal_symbols): Update.
9430 (compact_minimal_symbols): Update.
9431 (build_minimal_symbol_hash_tables): Update.
9432 (install_minimal_symbols): Update.
9433 (terminate_minimal_symbol_table): Update.
9434 (find_solib_trampoline_target): Update.
9435 (minimal_symbol_upper_bound): Update.
9436 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9437 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9438 (mips_skip_pic_trampoline_code): Update.
9439 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9440 * objc-lang.c (selectors_info): Update.
9441 (classes_info): Update.
9442 (find_methods): Update.
9443 (find_imps): Update.
9444 (find_objc_msgsend): Update.
9445 * objfiles.c (objfile_relocate1): Update.
9446 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9447 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9448 * p-valprint.c (pascal_val_print): Update.
9449 * parse.c (write_exp_msymbol): Update.
9450 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9451 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9452 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9453 * printcmd.c (build_address_symbolic): Update.
9455 (address_info): Update.
9456 * proc-service.c (ps_pglobal_lookup): Update.
9457 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9458 (find_pc_sect_psymtab): Update.
9459 * python/py-framefilter.c (py_print_frame): Update.
9460 * ravenscar-thread.c (get_running_thread_id): Update.
9461 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9463 * remote.c (remote_check_symbols): Update.
9464 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9465 (rs6000_skip_trampoline_code): Update.
9466 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9467 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9468 * solib-dsbt.c (lm_base): Update.
9469 * solib-frv.c (lm_base): Update.
9471 * solib-irix.c (locate_base): Update.
9472 * solib-som.c (som_solib_create_inferior_hook): Update.
9473 (som_solib_desire_dynamic_linker_symbols): Update.
9474 (link_map_start): Update.
9475 * solib-spu.c (spu_enable_break): Update.
9476 (ocl_enable_break): Update.
9477 * solib-svr4.c (elf_locate_base): Update.
9478 (enable_break): Update.
9479 * spu-tdep.c (spu_get_overlay_table): Update.
9480 (spu_catch_start): Update.
9481 (flush_ea_cache): Update.
9482 * stabsread.c (define_symbol): Update.
9483 (scan_file_globals): Update.
9484 * stack.c (find_frame_funname): Update.
9485 (frame_info): Update.
9486 * symfile.c (simple_read_overlay_table): Update.
9487 (simple_overlay_update): Update.
9488 * symmisc.c (dump_msymbols): Update.
9489 * symtab.c (fixup_section): Update.
9490 (find_pc_sect_line): Update.
9491 (skip_prologue_sal): Update.
9492 (search_symbols): Update.
9493 (print_msymbol_info): Update.
9494 (rbreak_command): Update.
9495 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9496 (completion_list_objc_symbol): Update.
9497 (default_make_symbol_completion_list_break_on): Update.
9498 * tracepoint.c (scope_info): Update.
9499 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9500 (tui_get_begin_asm_address): Update.
9501 * valops.c (find_function_in_inferior): Update.
9502 * value.c (value_static_field): Update.
9503 (value_fn_field): Update.
9505 2014-02-26 Tom Tromey <tromey@redhat.com>
9507 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9508 bound minimal symbols. Move code that knows about minsym
9510 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9512 * minsyms.h (minimal_symbol_upper_bound): Declare.
9513 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9514 minimal_symbol_upper_bound.
9516 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9518 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9519 Use the type's name if its basic type does not have a tag.
9521 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9523 * dwarf2read.c (read_subrange_type): Add comment.
9525 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9527 * dwarf2read.c (update_enumeration_type_from_children): New
9528 function, mostly extracted from process_structure_scope.
9529 (read_enumeration_type): Call update_enumeration_type_from_children.
9530 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9531 and flag_flag_enum fields.
9533 2014-02-26 Pedro Alves <palves@redhat.com>
9535 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9536 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9537 to_xfer_partial method.
9539 2014-02-26 Pedro Alves <palves@redhat.com>
9541 * target.c (complete_target_initialization): Don't install
9542 default_xfer_partial as to_xfer_partial hook.
9544 (update_current_target): Don't INHERIT nor de_fault
9545 deprecated_xfer_memory. Delete de_fault macro.
9546 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9547 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9548 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9551 2014-02-26 Pedro Alves <palves@redhat.com>
9553 * go32-nat.c (my_write_child): New function.
9554 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9555 (go32_xfer_partial): New function.
9556 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9557 Instead install a to_xfer_partial hook.
9559 2014-02-26 Pedro Alves <palves@redhat.com>
9561 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9562 to_xfer_partial helper. Rewrite.
9563 (procfs_xfer_partial): New function.
9564 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9565 Install a to_xfer_partial hook.
9567 2014-02-26 Pedro Alves <palves@redhat.com>
9569 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9570 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9571 (m32r_xfer_partial): New function.
9572 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9573 Install a to_xfer_partial hook.
9575 2014-02-26 Pedro Alves <palves@redhat.com>
9577 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9579 (mips_xfer_partial): New function.
9580 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9581 hook. Install a to_xfer_partial hook.
9583 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9585 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9586 * gdbtypes.c (create_array_type_with_stride): New function,
9587 renaming create_array_type, but with an added parameter
9588 called "bit_stride".
9589 (create_array_type): Re-implement using
9590 create_array_type_with_stride.
9591 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9592 and DW_AT_bit_stride attributes.
9594 2014-02-26 Pedro Alves <palves@redhat.com>
9596 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9597 task-specific breakpoints.
9599 2014-02-25 Pedro Alves <palves@redhat.com>
9601 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9602 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9604 2014-02-25 Stan Shebs <stan@codesourcery.com>
9606 * defs.h: Annotate comments for Doxygen.
9608 2014-02-25 Tom Tromey <tromey@redhat.com>
9610 * target.h (target_ignore): Don't declare.
9611 * target.c (target_ignore): Remove.
9613 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9616 * auto-load.c (auto_load_objfile_script_1): Change filename to
9619 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9621 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9622 documentation. Adjust prototype to match the target_ops
9623 to_xfer_partial method. Adjust implementation accordingly.
9625 2014-02-25 Hui Zhu <hui@codesourcery.com>
9627 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9630 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9632 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9633 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9634 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9635 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9636 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9637 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9638 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9639 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9641 (rl78_register_type): Use a data pointer type for SP and
9642 new pseudo registers mentioned above. Use a 16 bit integer
9643 type for all other register pairs.
9644 (rl78_register_name, rl78_g10_register_name): Update for
9645 new pseudo registers.
9646 (rl78_pseudo_register_read): Likewise.
9647 (rl78_pseudo_register_write): Likewise.
9648 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9649 to the newly added pseudo registers.
9651 2014-02-24 Doug Evans <dje@google.com>
9653 * value.c (record_latest_value): Fix comment.
9654 * printcmd.c (print_command_1): Remove code to handle -1 return from
9655 record_latest_value.
9657 2014-02-24 Pedro Alves <palves@redhat.com>
9659 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9660 deprecated_xfer_memory hook.
9661 (procfs_xfer_partial): Call procfs_xfer_memory instead
9662 of the deprecated_xfer_memory target hook.
9663 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9666 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9668 * windows-nat.c (windows_xfer_shared_libraries): Return
9669 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9670 requested object is TARGET_OBJECT_LIBRARIES.
9672 2014-02-24 Yao Qi <yao@codesourcery.com>
9674 * target.h (enum target_xfer_status)
9675 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9676 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9678 * corefile.c (memory_error_message): User updated.
9679 * exec.c (section_table_read_available_memory): Likewise.
9680 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9681 * target.c (target_xfer_status_to_string): Likewise.
9682 (raw_memory_xfer_partial): Likewise.
9683 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9684 * valops.c (read_value_memory): Likewise.
9685 * exec.h: Update comments.
9687 2014-02-24 Yao Qi <yao@codesourcery.com>
9689 * target.c (target_xfer_status_to_string): Rename argument err
9691 * target.h (target_xfer_status_to_string): Update declaration.
9692 Replace target_xfer_error_to_string with
9693 target_xfer_status_to_string in comment.
9695 2014-02-24 Yao Qi <yao@codesourcery.com>
9697 * mips-linux-nat.c (super_close): Update its type.
9698 (mips_linux_close): Pass 'self' to super_close.
9700 2014-02-24 Yao Qi <yao@codesourcery.com>
9702 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9703 * corefile.c (read_memory): Adjusted.
9704 * target.c (target_write_with_progress): Adjusted.
9706 2014-02-23 Yao Qi <yao@codesourcery.com>
9710 2013-10-25 Yao Qi <yao@codesourcery.com>
9712 * remote.c (remote_traceframe_info): Return early if
9713 traceframe is not selected.
9715 2013-07-19 Yao Qi <yao@codesourcery.com>
9717 * target.c (update_current_target): Change the default action
9718 of 'to_traceframe_info' from tcomplain to return_zero.
9719 * target.h (struct target_ops) <to_traceframe_info>: Add more
9722 2014-02-23 Yao Qi <yao@codesourcery.com>
9724 * valops.c (read_value_memory): Rewrite it. Call
9725 target_xfer_partial in a loop.
9726 * exec.h (section_table_available_memory): Remove declaration.
9727 Move comments to ...
9728 * exec.c (section_table_available_memory): ... here. Make it
9731 2014-02-23 Yao Qi <yao@codesourcery.com>
9733 * exec.c (section_table_read_available_memory): New function.
9734 * exec.h (section_table_read_available_memory): Declare.
9735 * ctf.c (ctf_xfer_partial): Call
9736 section_table_read_available_memory.
9737 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9739 2014-02-23 Yao Qi <yao@codesourcery.com>
9741 * ctf.c (ctf_xfer_partial): Move code to ...
9742 * exec.c (exec_read_partial_read_only): ... it. New function.
9743 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9744 * tracefile.c: Include "exec.h".
9745 * exec.h (exec_read_partial_read_only): Declare.
9747 2014-02-23 Yao Qi <yao@codesourcery.com>
9749 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9750 (tfile_has_memory): Remove.
9751 (init_tfile_ops): Don't set fields to_has_all_memory and
9752 to_has_memory of tfile_ops.
9753 * tracefile.c (tracefile_has_all_memory): New function.
9754 (tracefile_has_memory): New function.
9755 (init_tracefile_ops): Initialize fields to_has_all_memory and
9756 to_has_memory of 'ops'.
9758 2014-02-23 Yao Qi <yao@codesourcery.com>
9760 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9761 (ctf_thread_alive, ctf_get_trace_status): Remove.
9762 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9764 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9765 (tfile_has_stack, tfile_has_registers): Remove.
9766 (tfile_thread_alive): Remove.
9767 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9769 * tracefile.c (tracefile_has_stack): New function.
9770 (tracefile_has_registers): New function.
9771 (tracefile_thread_alive): New function.
9772 (tracefile_get_trace_status): New function.
9773 (init_tracefile_ops): New function.
9774 * tracefile.h (init_tracefile_ops): Declare.
9776 2014-02-23 Yao Qi <yao@codesourcery.com>
9778 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9779 (O_LARGEFILE): Likewise.
9780 (tfile_ops): Likewise.
9781 (TRACE_HEADER_SIZE): Likewise.
9782 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9783 (cur_data_size): Likewise.
9784 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9785 (tfile_close, tfile_files_info): Likewise.
9786 (tfile_get_trace_status): Likewise.
9787 (tfile_get_tracepoint_status): Likewise.
9788 (tfile_get_traceframe_address): Likewise.
9789 (tfile_trace_find, match_blocktype): Likewise.
9790 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9791 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9792 (tfile_get_trace_state_variable_value): Likewise.
9793 (tfile_has_all_memory, tfile_has_memory): Likewise.
9794 (tfile_has_stack, tfile_has_registers): Likewise.
9795 (tfile_thread_alive, build_traceframe_info): Likewise.
9796 (tfile_traceframe_info, init_tfile_ops): Likewise.
9797 (_initialize_tracepoint): Don't call init_tfile_ops
9798 and add_target_with_completer.
9799 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9800 exec.h, completer.h and filenames.h.
9801 (_initialize_tracefile_tfile): New function.
9803 2014-02-23 Yao Qi <yao@codesourcery.com>
9805 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9807 (HFILES_NO_SRCDIR): Add tracefile.h.
9808 * ctf.c: Include "tracefile.h".
9809 * tracefile.h: New file.
9810 * tracefile.c: New file
9811 * tracefile-tfile.c: New file.
9812 * tracepoint.c: Include "tracefile.h".
9813 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9814 (stop_reason_names): Add const.
9815 (trace_file_writer_xfree): Move it to tracefile.c.
9816 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9817 (trace_save_ctf): Likewise.
9818 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9819 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9820 (tfile_write_header, tfile_write_regblock_type): Likewise.
9821 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9822 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9823 (tfile_write_raw_data, tfile_end): Likewise.
9824 (tfile_trace_file_writer_new): Likewise.
9825 (free_uploaded_tp): Make it extern.
9826 (free_uploaded_tsv): Make it extern.
9827 (_initialize_tracepoint): Move code to register command 'tsave'
9829 * tracepoint.h (stop_reason_names): Declare.
9830 (struct trace_frame_write_ops): Move it to tracefile.h.
9831 (struct trace_file_write_ops): Likewise.
9832 (struct trace_file_writer): Likewise.
9833 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9835 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9838 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9840 (get_cores_used_by_process): New parameter num_cores, use it.
9841 (linux_xfer_osdata_processes): Pass num_cores to it.
9842 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9845 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9847 * target.c (memory_xfer_partial): Fix length arg in call to
9848 breakpoint_xfer_memory.
9850 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9853 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9854 number comes after the + or - signs. Adjust length of register
9855 name to be extracted.
9857 2014-02-20 Tom Tromey <tromey@redhat.com>
9859 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9860 (ada_varobj_ops): Mark "extern".
9862 2014-02-20 Tom Tromey <tromey@redhat.com>
9864 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9866 2014-02-20 Doug Evans <xdje42@gmail.com>
9868 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9869 All callers updated.
9870 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9871 All callers updated.
9872 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9873 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9875 2014-02-20 lin zuojian <manjian2006@gmail.com>
9876 Joel Brobecker <brobecker@adacore.com>
9877 Doug Evans <xdje42@gmail.com>
9880 * dwarf2read.c (struct die_info): New member in_process.
9881 (reset_die_in_process): New function.
9882 (process_die): Set it at the start, reset when returning.
9883 (inherit_abstract_dies): Only call process_die if origin_child_die
9884 not already being processed.
9886 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9888 * windows-nat.c (handle_unload_dll): Add function documentation.
9889 (do_initial_windows_stuff): Add comment explaining why we wait
9890 until after inferior initialization has finished before
9891 processing all DLLs.
9893 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9895 * windows-nat.c (get_module_name): Delete.
9896 (windows_get_exec_module_filename): New function, mostly
9897 inspired from get_module_name.
9898 (windows_pid_to_exec_file): Replace call to get_module_name
9899 by call to windows_get_exec_module_filename.
9901 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9903 * windows-nat.c (handle_load_dll): Rewrite this function's
9904 introductory comment. Remove code using get_module_name
9905 to get the DLL's name.
9907 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9909 * windows-nat.c (get_windows_debug_event): Ignore
9910 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9911 if windows_initialization_done == 0.
9912 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9913 Adjust implementation to always load all DLLs.
9914 (do_initial_windows_stuff): Replace call to
9915 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9917 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9919 * windows-nat.c (_initialize_windows_nat): Deprecate the
9920 "dll-symbols" command. Turn the "add-shared-symbol-files"
9921 and "assf" aliases into commands, and deprecate them as well.
9922 * NEWS: Add entry explaining that "dll-symbols" and its two
9923 aliases are now deprecated.
9925 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9927 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9928 new-line in debug string. Remove trailing spaces.
9930 2014-02-19 Stan Shebs <stan@codesourcery.com>
9932 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9934 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9936 * NEWS: Add entry for the new feature
9937 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9940 2014-02-19 Stan Shebs <stan@codesourcery.com>
9942 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9944 2014-02-19 Pedro Alves <palves@redhat.com>
9946 * common/ptid.h (struct ptid): Mention that process_stratum
9947 targets should prefer ptid.lwp.
9949 2014-02-19 Pedro Alves <palves@redhat.com>
9951 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9952 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9953 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9954 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9955 store remote thread ids rather than ptid.tid.
9956 (_initialize_remote): Adjust.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * target.c (target_get_unwinder): Rewrite.
9961 (target_get_tailcall_unwinder): Rewrite.
9962 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9963 (record_btrace_to_get_tailcall_unwinder): New function.
9964 (init_record_btrace_ops): Update.
9965 * target.h (struct target_ops) <to_get_unwinder,
9966 to_get_tailcall_unwinder>: Now function pointers. Use
9967 TARGET_DEFAULT_RETURN.
9969 2014-02-19 Tom Tromey <tromey@redhat.com>
9971 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9973 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9975 2014-02-19 Tom Tromey <tromey@redhat.com>
9977 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9979 * target-delegates.c: Rebuild.
9980 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9981 TARGET_DEFAULT_FUNC.
9982 * target.c (default_target_decr_pc_after_break): Rename from
9983 forward_target_decr_pc_after_break. Simplify.
9984 (target_decr_pc_after_break): Rely on delegation.
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target.c (update_current_target): Do not INHERIT to_doc or
9989 to_magic. Do not de_fault to_open or to_close.
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * gcore.h (objfile_find_memory_regions): Declare.
9994 * gcore.c (objfile_find_memory_regions): No longer static. Add
9996 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9997 * exec.c: Include gcore.h.
9998 (exec_set_find_memory_regions): Remove.
9999 (exec_find_memory_regions): Remove.
10000 (exec_do_find_memory_regions): Remove.
10001 (init_exec_ops): Update.
10002 * defs.h (exec_set_find_memory_regions): Remove.
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10006 * target-delegates.c: Rebuild.
10007 * target.h (struct target_ops) <to_extra_thread_info,
10008 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10009 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10010 not 0, in TARGET_DEFAULT_RETURN.
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10014 * target.c (complete_target_initialization): Remove casts. Use
10015 return_zero_has_execution.
10016 (return_zero): Add "ignore" argument.
10017 (return_zero_has_execution): New function.
10018 (init_dummy_target): Remove casts. Use
10019 return_zero_has_execution.
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10023 * target.c (update_current_target): Update comments. Do not
10024 INHERIT to_stratum.
10026 2014-02-19 Tom Tromey <tromey@redhat.com>
10028 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10030 * corelow.c (core_read_description): Delegate when needed.
10031 * remote.c (remote_read_description): Delegate when needed.
10032 * target-delegates.c: Rebuild.
10033 * target.c (target_read_description): Rewrite.
10034 * target.h (struct target_ops) <to_read_description>: Update
10035 comment. Use TARGET_DEFAULT_RETURN.
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10039 * target-delegates.c: Rebuild.
10040 * target.c (update_current_target): Don't inherit or default
10042 (find_default_run_target): Check against delegate_can_run.
10043 * target.h (struct target_ops) <to_can_run>: Use
10044 TARGET_DEFAULT_RETURN.
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10048 * target-delegates.c: Rebuild.
10049 * target.c (target_disconnect): Unconditionally delegate.
10050 * target.h (struct target_ops) <to_disconnect>: Use
10051 TARGET_DEFAULT_NORETURN.
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10055 * record.c (record_stop): Unconditionally delegate.
10056 * target-delegates.c: Rebuild.
10057 * target.c (target_stop_recording): Unconditionally delegate.
10058 * target.h (struct target_ops) <to_stop_recording>: Use
10059 TARGET_DEFAULT_IGNORE.
10061 2014-02-19 Tom Tromey <tromey@redhat.com>
10063 * target-delegates.c: Rebuild.
10064 * target.c (target_enable_btrace): Unconditionally delegate.
10065 * target.h (struct target_ops) <to_enable_btrace>: Use
10066 TARGET_DEFAULT_NORETURN.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target-delegates.c: Rebuild.
10071 * target.c (target_read_btrace): Unconditionally delegate.
10072 * target.h (struct target_ops) <to_read_btrace>: Use
10073 TARGET_DEFAULT_NORETURN.
10075 2014-02-19 Tom Tromey <tromey@redhat.com>
10077 * target-delegates.c: Rebuild.
10078 * target.c (target_teardown_btrace): Unconditionally delegate.
10079 * target.h (struct target_ops) <to_teardown_btrace>: Use
10080 TARGET_DEFAULT_NORETURN.
10082 2014-02-19 Tom Tromey <tromey@redhat.com>
10084 * target-delegates.c: Rebuild.
10085 * target.c (target_disable_btrace): Unconditionally delegate.
10086 * target.h (struct target_ops) <to_disable_btrace>: Use
10087 TARGET_DEFAULT_NORETURN.
10089 2014-02-19 Tom Tromey <tromey@redhat.com>
10091 * target-delegates.c: Rebuild.
10092 * target.c (default_search_memory): New function.
10093 (simple_search_memory): Update comment.
10094 (target_search_memory): Unconditionally delegate.
10095 * target.h (struct target_ops) <to_search_memory>: Use
10096 TARGET_DEFAULT_FUNC.
10098 2014-02-19 Tom Tromey <tromey@redhat.com>
10100 * auxv.c (default_auxv_parse): No longer static.
10101 (target_auxv_parse): Unconditionally delegate.
10102 * auxv.h (default_auxv_parse): Declare.
10103 * target-delegates.c: Rebuild.
10104 * target.c: Include auxv.h.
10105 * target.h (struct target_ops) <to_auxv_parse>: Use
10106 TARGET_DEFAULT_FUNC.
10108 2014-02-19 Tom Tromey <tromey@redhat.com>
10110 * target-delegates.c: Rebuild.
10111 * target.c (target_memory_map): Unconditionally delegate.
10112 * target.h (struct target_ops) <to_memory_map>: Use
10113 TARGET_DEFAULT_RETURN.
10115 2014-02-19 Tom Tromey <tromey@redhat.com>
10117 * target-delegates.c: Rebuild.
10118 * target.c (target_thread_alive): Unconditionally delegate.
10119 * target.h (struct target_ops) <to_thread_alive>: Use
10120 TARGET_DEFAULT_RETURN.
10122 2014-02-19 Tom Tromey <tromey@redhat.com>
10124 * target-delegates.c: Rebuild.
10125 * target.c (target_save_record): Unconditionally delegate.
10126 * target.h (struct target_ops) <to_save_record>: Use
10127 TARGET_DEFAULT_NORETURN.
10129 2014-02-19 Tom Tromey <tromey@redhat.com>
10131 * target-delegates.c: Rebuild.
10132 * target.c (target_delete_record): Unconditionally delegate.
10133 * target.h (struct target_ops) <to_delete_record>: Use
10134 TARGET_DEFAULT_NORETURN.
10136 2014-02-19 Tom Tromey <tromey@redhat.com>
10138 * target-delegates.c: Rebuild.
10139 * target.c (target_record_is_replaying): Unconditionally
10141 * target.h (struct target_ops) <to_record_is_replaying>: Use
10142 TARGET_DEFAULT_RETURN.
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10146 * target-delegates.c: Rebuild.
10147 * target.c (target_goto_record_begin): Unconditionally delegate.
10148 * target.h (struct target_ops) <to_goto_record_begin>: Use
10149 TARGET_DEFAULT_NORETURN.
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * target-delegates.c: Rebuild.
10154 * target.c (target_goto_record_end): Unconditionally delegate.
10155 * target.h (struct target_ops) <to_goto_record_end>: Use
10156 TARGET_DEFAULT_NORETURN.
10158 2014-02-19 Tom Tromey <tromey@redhat.com>
10160 * target-delegates.c: Rebuild.
10161 * target.c (target_goto_record): Unconditionally delegate.
10162 * target.h (struct target_ops) <to_goto_record>: Use
10163 TARGET_DEFAULT_NORETURN.
10165 2014-02-19 Tom Tromey <tromey@redhat.com>
10167 * target-delegates.c: Rebuild.
10168 * target.c (target_insn_history): Unconditionally delegate.
10169 * target.h (struct target_ops) <to_insn_history>: Use
10170 TARGET_DEFAULT_NORETURN.
10172 2014-02-19 Tom Tromey <tromey@redhat.com>
10174 * target-delegates.c: Rebuild.
10175 * target.c (target_insn_history_from): Unconditionally delegate.
10176 * target.h (struct target_ops) <to_insn_history_from>: Use
10177 TARGET_DEFAULT_NORETURN.
10179 2014-02-19 Tom Tromey <tromey@redhat.com>
10181 * target-delegates.c: Rebuild.
10182 * target.c (target_insn_history_range): Unconditionally delegate.
10183 * target.h (struct target_ops) <to_insn_history_range>: Use
10184 TARGET_DEFAULT_NORETURN.
10186 2014-02-19 Tom Tromey <tromey@redhat.com>
10188 * target-delegates.c: Rebuild.
10189 * target.c (target_call_history): Unconditionally delegate.
10190 * target.h (struct target_ops) <to_call_history>: Use
10191 TARGET_DEFAULT_NORETURN.
10193 2014-02-19 Tom Tromey <tromey@redhat.com>
10195 * target-delegates.c: Rebuild.
10196 * target.c (target_call_history_from): Unconditionally delegate.
10197 * target.h (struct target_ops) <to_call_history_from>: Use
10198 TARGET_DEFAULT_NORETURN.
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * target-delegates.c: Rebuild.
10203 * target.c (target_call_history_range): Unconditionally delegate.
10204 * target.h (struct target_ops) <to_call_history_range>: Use
10205 TARGET_DEFAULT_NORETURN.
10207 2014-02-19 Tom Tromey <tromey@redhat.com>
10209 * target-delegates.c: Rebuild.
10210 * target.c (target_verify_memory): Unconditionally delegate.
10211 * target.h (struct target_ops) <to_verify_memory>: Use
10212 TARGET_DEFAULT_NORETURN.
10214 2014-02-19 Tom Tromey <tromey@redhat.com>
10216 * target-delegates.c: Rebuild.
10217 * target.c (target_core_of_thread): Unconditionally delegate.
10218 * target.h (struct target_ops) <to_core_of_thread>: Use
10219 TARGET_DEFAULT_RETURN.
10221 2014-02-19 Tom Tromey <tromey@redhat.com>
10223 * target-delegates.c: Rebuild.
10224 * target.c (target_flash_done): Unconditionally delegate.
10225 * target.h (struct target_ops) <to_flash_done>: Use
10226 TARGET_DEFAULT_NORETURN.
10228 2014-02-19 Tom Tromey <tromey@redhat.com>
10230 * target-delegates.c: Rebuild.
10231 * target.c (target_flash_erase): Unconditionally delegate.
10232 * target.h (struct target_ops) <to_flash_erase>: Use
10233 TARGET_DEFAULT_NORETURN.
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10237 * target-delegates.c: Rebuild.
10238 * target.c (target_get_section_table): Unconditionally delegate.
10239 * target.h (struct target_ops) <to_get_section_table>: Use
10240 TARGET_DEFAULT_RETURN.
10242 2014-02-19 Tom Tromey <tromey@redhat.com>
10244 * target-delegates.c: Rebuild.
10245 * target.c (target_pid_to_str): Unconditionally delegate.
10246 (init_dummy_target): Don't initialize to_pid_to_str.
10247 (default_pid_to_str): Rename from dummy_pid_to_str.
10248 * target.h (struct target_ops) <to_pid_to_str>: Use
10249 TARGET_DEFAULT_FUNC.
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10253 * target-delegates.c: Rebuild.
10254 * target.c (target_find_new_threads): Unconditionally delegate.
10255 * target.h (struct target_ops) <to_find_new_threads>: Use
10256 TARGET_DEFAULT_RETURN.
10258 2014-02-19 Tom Tromey <tromey@redhat.com>
10260 * target-delegates.c: Rebuild.
10261 * target.c (target_program_signals): Unconditionally delegate.
10262 * target.h (struct target_ops) <to_program_signals>: Use
10263 TARGET_DEFAULT_IGNORE.
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target-delegates.c: Rebuild.
10268 * target.c (target_pass_signals): Unconditionally delegate.
10269 * target.h (struct target_ops) <to_pass_signals>: Use
10270 TARGET_DEFAULT_IGNORE.
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10274 * target-delegates.c: Rebuild.
10275 * target.c (default_mourn_inferior): New function.
10276 (target_mourn_inferior): Unconditionally delegate.
10277 * target.h (struct target_ops) <to_mourn_inferior>: Use
10278 TARGET_DEFAULT_FUNC.
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10282 * target-delegates.c: Rebuild.
10283 * target.c (default_follow_fork): New function.
10284 (target_follow_fork): Unconditionally delegate.
10285 * target.h (struct target_ops) <to_follow_fork>: Use
10286 TARGET_DEFAULT_FUNC.
10288 2014-02-19 Tom Tromey <tromey@redhat.com>
10290 * target-delegates.c: Rebuild.
10291 * target.c (target_kill): Unconditionally delegate.
10292 * target.h (struct target_ops) <to_kill>: Use
10293 TARGET_DEFAULT_NORETURN.
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target-delegates.c: Rebuild.
10298 * target.c (target_masked_watch_num_registers): Unconditionally
10300 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10301 Use TARGET_DEFAULT_RETURN.
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10305 * target-delegates.c: Rebuild.
10306 * target.c (target_remove_mask_watchpoint): Unconditionally
10308 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10309 TARGET_DEFAULT_RETURN.
10311 2014-02-19 Tom Tromey <tromey@redhat.com>
10313 * target-delegates.c: Rebuild.
10314 * target.c (target_insert_mask_watchpoint): Unconditionally
10316 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10317 TARGET_DEFAULT_RETURN.
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10321 * target-delegates.c: Rebuild.
10322 * target.c (target_ranged_break_num_registers): Unconditionally
10324 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10325 Use TARGET_DEFAULT_RETURN.
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10329 * target-delegates.c: Rebuild.
10330 * target.c (target_fetch_registers): Unconditionally delegate.
10331 * target.h (struct target_ops) <to_fetch_registers>: Use
10332 TARGET_DEFAULT_NORETURN.
10334 2014-02-19 Tom Tromey <tromey@redhat.com>
10336 * target-delegates.c: Rebuild.
10337 * target.c (update_current_target): Don't inherit or default
10339 * target.h (struct target_ops) <to_stop>: Use
10340 TARGET_DEFAULT_IGNORE.
10342 2014-02-19 Tom Tromey <tromey@redhat.com>
10344 * target-delegates.c: Rebuild.
10345 * target.c (update_current_target): Don't inherit or default
10346 to_can_run_breakpoint_commands.
10347 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10348 Use TARGET_DEFAULT_RETURN.
10350 2014-02-19 Tom Tromey <tromey@redhat.com>
10352 * target-delegates.c: Rebuild.
10353 * target.c (update_current_target): Don't inherit or default
10354 to_supports_evaluation_of_breakpoint_conditions.
10355 * target.h (struct target_ops)
10356 <to_supports_evaluation_of_breakpoint_conditions>: Use
10357 TARGET_DEFAULT_RETURN.
10359 2014-02-19 Tom Tromey <tromey@redhat.com>
10361 * target-delegates.c: Rebuild.
10362 * target.c (update_current_target): Don't inherit or default
10363 to_augmented_libraries_svr4_read.
10364 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10365 Use TARGET_DEFAULT_RETURN.
10367 2014-02-19 Tom Tromey <tromey@redhat.com>
10369 * target-delegates.c: Rebuild.
10370 * target.c (update_current_target): Don't inherit or default
10372 * target.h (struct target_ops) <to_can_use_agent>: Use
10373 TARGET_DEFAULT_RETURN.
10375 2014-02-19 Tom Tromey <tromey@redhat.com>
10377 * target-delegates.c: Rebuild.
10378 * target.c (update_current_target): Don't inherit or default
10380 * target.h (struct target_ops) <to_use_agent>: 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_traceframe_info.
10388 (return_null): Remove.
10389 * target.h (struct target_ops) <to_traceframe_info>: Use
10390 TARGET_DEFAULT_RETURN.
10392 2014-02-19 Tom Tromey <tromey@redhat.com>
10394 * target-delegates.c: Rebuild.
10395 * target.c (update_current_target): Don't inherit or default
10396 to_static_tracepoint_markers_by_strid.
10397 * target.h (struct target_ops)
10398 <to_static_tracepoint_markers_by_strid>: Use
10399 TARGET_DEFAULT_NORETURN.
10401 2014-02-19 Tom Tromey <tromey@redhat.com>
10403 * target-delegates.c: Rebuild.
10404 * target.c (update_current_target): Don't inherit or default
10405 to_static_tracepoint_marker_at.
10406 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10407 Use TARGET_DEFAULT_RETURN.
10409 2014-02-19 Tom Tromey <tromey@redhat.com>
10411 * target-delegates.c: Rebuild.
10412 * target.c (update_current_target): Don't inherit or default
10413 to_set_permissions.
10414 * target.h (struct target_ops) <to_set_permissions>: Use
10415 TARGET_DEFAULT_IGNORE.
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10419 * target-delegates.c: Rebuild.
10420 * target.c (update_current_target): Don't inherit or default
10421 to_get_tib_address.
10422 * target.h (struct target_ops) <to_get_tib_address>: Use
10423 TARGET_DEFAULT_NORETURN.
10425 2014-02-19 Tom Tromey <tromey@redhat.com>
10427 * target-delegates.c: Rebuild.
10428 * target.c (update_current_target): Don't inherit or default
10429 to_set_trace_notes.
10430 * target.h (struct target_ops) <to_set_trace_notes>: Use
10431 TARGET_DEFAULT_RETURN.
10433 2014-02-19 Tom Tromey <tromey@redhat.com>
10435 * target-delegates.c: Rebuild.
10436 * target.c (update_current_target): Don't initialize
10437 to_set_trace_buffer_size.
10438 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10439 TARGET_DEFAULT_IGNORE.
10441 2014-02-19 Tom Tromey <tromey@redhat.com>
10443 * target-delegates.c: Rebuild.
10444 * target.c (update_current_target): Don't inherit or default
10445 to_set_circular_trace_buffer.
10446 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10447 TARGET_DEFAULT_IGNORE.
10449 2014-02-19 Tom Tromey <tromey@redhat.com>
10451 * target-delegates.c: Rebuild.
10452 * target.c (update_current_target): Don't inherit or default
10453 to_set_disconnected_tracing.
10454 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10455 TARGET_DEFAULT_IGNORE.
10457 2014-02-19 Tom Tromey <tromey@redhat.com>
10459 * target-delegates.c: Rebuild.
10460 * target.c (update_current_target): Don't inherit or default
10461 to_get_min_fast_tracepoint_insn_len.
10462 (return_minus_one): Remove.
10463 * target.h (struct target_ops)
10464 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10466 2014-02-19 Tom Tromey <tromey@redhat.com>
10468 * target-delegates.c: Rebuild.
10469 * target.c (update_current_target): Don't inherit or default
10470 to_get_raw_trace_data.
10471 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10472 TARGET_DEFAULT_NORETURN.
10474 2014-02-19 Tom Tromey <tromey@redhat.com>
10476 * target-delegates.c: Rebuild.
10477 * target.c (update_current_target): Don't inherit or default
10478 to_upload_trace_state_variables.
10479 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10480 Use TARGET_DEFAULT_RETURN.
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10484 * target-delegates.c: Rebuild.
10485 * target.c (update_current_target): Don't inherit or default
10486 to_upload_tracepoints.
10487 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10488 TARGET_DEFAULT_RETURN.
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10494 to_save_trace_data.
10495 * target.h (struct target_ops) <to_save_trace_data>: Use
10496 TARGET_DEFAULT_NORETURN.
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10500 * target-delegates.c: Rebuild.
10501 * target.c (update_current_target): Don't inherit or default
10502 to_get_trace_state_variable_value.
10503 * target.h (struct target_ops)
10504 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10506 2014-02-19 Tom Tromey <tromey@redhat.com>
10508 * target-delegates.c: Rebuild.
10509 * target.c (update_current_target): Don't inherit or default
10511 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10515 * target-delegates.c: Rebuild.
10516 * target.c (update_current_target): Don't inherit or default
10518 * target.h (struct target_ops) <to_trace_stop>: Use
10519 TARGET_DEFAULT_NORETURN.
10521 2014-02-19 Tom Tromey <tromey@redhat.com>
10523 * target-delegates.c: Rebuild.
10524 * target.c (update_current_target): Don't inherit or default
10525 to_get_tracepoint_status.
10526 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10527 TARGET_DEFAULT_NORETURN.
10529 2014-02-19 Tom Tromey <tromey@redhat.com>
10531 * target-delegates.c: Rebuild.
10532 * target.c (update_current_target): Don't inherit or default
10533 to_get_trace_status.
10534 * target.h (struct target_ops) <to_get_trace_status>: Use
10535 TARGET_DEFAULT_RETURN.
10537 2014-02-19 Tom Tromey <tromey@redhat.com>
10539 * target-delegates.c: Rebuild.
10540 * target.c (update_current_target): Don't inherit or default
10542 * target.h (struct target_ops) <to_trace_start>: Use
10543 TARGET_DEFAULT_NORETURN.
10545 2014-02-19 Tom Tromey <tromey@redhat.com>
10547 * target-delegates.c: Rebuild.
10548 * target.c (update_current_target): Don't inherit or default
10549 to_trace_set_readonly_regions.
10550 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10551 Use TARGET_DEFAULT_NORETURN.
10553 2014-02-19 Tom Tromey <tromey@redhat.com>
10555 * target-delegates.c: Rebuild.
10556 * target.c (update_current_target): Don't inherit or default
10557 to_disable_tracepoint.
10558 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10559 TARGET_DEFAULT_NORETURN.
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10563 * target-delegates.c: Rebuild.
10564 * target.c (update_current_target): Don't inherit or default
10565 to_enable_tracepoint.
10566 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10567 TARGET_DEFAULT_NORETURN.
10569 2014-02-19 Tom Tromey <tromey@redhat.com>
10571 * target-delegates.c: Rebuild.
10572 * target.c (update_current_target): Don't inherit or default
10573 to_download_trace_state_variable.
10574 * target.h (struct target_ops) <to_download_trace_state_variable>:
10575 Use TARGET_DEFAULT_NORETURN.
10577 2014-02-19 Tom Tromey <tromey@redhat.com>
10579 * target-delegates.c: Rebuild.
10580 * target.c (update_current_target): Don't inherit or default
10581 to_can_download_tracepoint.
10582 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10583 TARGET_DEFAULT_RETURN.
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10587 * target-delegates.c: Rebuild.
10588 * target.c (update_current_target): Don't inherit or default
10589 to_download_tracepoint.
10590 * target.h (struct target_ops) <to_download_tracepoint>: Use
10591 TARGET_DEFAULT_NORETURN.
10593 2014-02-19 Tom Tromey <tromey@redhat.com>
10595 * target-delegates.c: Rebuild.
10596 * target.c (update_current_target): Don't inherit or default
10598 * target.h (struct target_ops) <to_trace_init>: Use
10599 TARGET_DEFAULT_RETURN.
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10603 * target-delegates.c: Rebuild.
10604 * target.c (update_current_target): Don't inherit or default
10605 to_supports_string_tracing.
10606 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10607 TARGET_DEFAULT_RETURN.
10609 2014-02-19 Tom Tromey <tromey@redhat.com>
10611 * target-delegates.c: Rebuild.
10612 * target.c (update_current_target): Don't inherit or default
10613 to_supports_enable_disable_tracepoint.
10614 * target.h (struct target_ops)
10615 <to_supports_enable_disable_tracepoint>: Use
10616 TARGET_DEFAULT_RETURN.
10618 2014-02-19 Tom Tromey <tromey@redhat.com>
10620 * target-delegates.c: Rebuild.
10621 * target.c (update_current_target): Don't inherit or default
10622 to_supports_multi_process.
10623 * target.h (struct target_ops) <to_supports_multi_process>: Use
10624 TARGET_DEFAULT_RETURN.
10626 2014-02-19 Tom Tromey <tromey@redhat.com>
10628 * target-delegates.c: Rebuild.
10629 * target.c (update_current_target): Don't inherit or default
10630 to_get_ada_task_ptid.
10631 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10632 TARGET_DEFAULT_FUNC.
10634 2014-02-19 Tom Tromey <tromey@redhat.com>
10636 * target-delegates.c: Rebuild.
10637 * target.c (update_current_target): Don't inherit or default
10638 to_thread_architecture.
10639 * target.h (struct target_ops) <to_thread_architecture>: Use
10640 TARGET_DEFAULT_FUNC.
10642 2014-02-19 Tom Tromey <tromey@redhat.com>
10644 * target-delegates.c: Rebuild.
10645 * target.c (update_current_target): Don't inherit or default
10646 to_execution_direction.
10647 * target.h (struct target_ops) <to_execution_direction>: Use
10648 TARGET_DEFAULT_FUNC.
10650 2014-02-19 Tom Tromey <tromey@redhat.com>
10652 * target-delegates.c: Rebuild.
10653 * target.c (update_current_target): Don't inherit or default
10654 to_can_execute_reverse.
10655 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10656 TARGET_DEFAULT_RETURN.
10657 (target_can_execute_reverse): Unconditionally delegate.
10659 2014-02-19 Tom Tromey <tromey@redhat.com>
10661 * target-delegates.c: Rebuild.
10662 * target.c (update_current_target): Don't inherit or default
10664 (dummy_goto_bookmark): Remove.
10665 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10666 * target.h (struct target_ops) <to_goto_bookmark>: Use
10667 TARGET_DEFAULT_NORETURN.
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10671 * target-delegates.c: Rebuild.
10672 * target.c (update_current_target): Don't inherit or default
10674 (dummy_get_bookmark): Remove.
10675 (init_dummy_target): Don't inherit or default to_get_bookmark.
10676 * target.h (struct target_ops) <to_get_bookmark>: Use
10677 TARGET_DEFAULT_NORETURN
10679 2014-02-19 Tom Tromey <tromey@redhat.com>
10681 * target-delegates.c: Rebuild.
10682 * target.c (update_current_target): Don't inherit or default
10683 to_make_corefile_notes.
10684 (init_dummy_target): Don't initialize to_make_corefile_notes.
10685 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10686 TARGET_DEFAULT_FUNC.
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_find_memory_regions.
10693 (init_dummy_target): Don't initialize to_find_memory_regions.
10694 * target.h (struct target_ops) <to_find_memory_regions>: Use
10695 TARGET_DEFAULT_FUNC.
10697 2014-02-19 Tom Tromey <tromey@redhat.com>
10699 * target-delegates.c: Rebuild.
10700 * target.c (update_current_target): Don't inherit or default
10702 * target.h (struct target_ops) <to_log_command>: Use
10703 TARGET_DEFAULT_IGNORE.
10704 (target_log_command): Unconditionally delegate.
10706 2014-02-19 Tom Tromey <tromey@redhat.com>
10708 * target-delegates.c: Rebuild.
10709 * target.c (update_current_target): Don't inherit or default
10710 to_pid_to_exec_file.
10711 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10712 TARGET_DEFAULT_RETURN.
10714 2014-02-19 Tom Tromey <tromey@redhat.com>
10716 * target-delegates.c: Rebuild.
10717 * target.c (update_current_target): Don't inherit or default
10719 (target_thread_name): Unconditionally delegate.
10720 * target.h (struct target_ops) <to_thread_name>: Use
10721 TARGET_DEFAULT_RETURN.
10723 2014-02-19 Tom Tromey <tromey@redhat.com>
10725 * target-delegates.c: Rebuild.
10726 * target.c (update_current_target): Don't inherit or default
10727 to_extra_thread_info.
10728 * target.h (struct target_ops) <to_extra_thread_info>: Use
10729 TARGET_DEFAULT_RETURN.
10731 2014-02-19 Tom Tromey <tromey@redhat.com>
10733 * target-delegates.c: Rebuild.
10734 * target.c (update_current_target): Don't inherit or default
10736 * target.h (struct target_ops) <to_has_exited>: Use
10737 TARGET_DEFAULT_RETURN..
10739 2014-02-19 Tom Tromey <tromey@redhat.com>
10741 * target-delegates.c: Rebuild.
10742 * target.c (update_current_target): Don't inherit or default
10743 to_set_syscall_catchpoint.
10744 (return_one): Remove.
10745 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10746 TARGET_DEFAULT_RETURN.
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10750 * target-delegates.c: Rebuild.
10751 * target.c (update_current_target): Don't inherit or default
10752 to_insert_exec_catchpoint.
10753 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10754 TARGET_DEFAULT_RETURN.
10756 2014-01-08 Tom Tromey <tromey@redhat.com>
10758 * target-delegates.c: Rebuild.
10759 * target.c (update_current_target): Don't inherit or default
10760 to_insert_exec_catchpoint.
10761 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10762 TARGET_DEFAULT_RETURN.
10764 2014-02-19 Tom Tromey <tromey@redhat.com>
10766 * target-delegates.c: Rebuild.
10767 * target.c (update_current_target): Don't inherit or default
10768 to_remove_vfork_catchpoint.
10769 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10770 TARGET_DEFAULT_RETURN.
10772 2014-02-19 Tom Tromey <tromey@redhat.com>
10774 * target-delegates.c: Rebuild.
10775 * target.c (update_current_target): Don't inherit or default
10776 to_insert_vfork_catchpoint.
10777 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10778 TARGET_DEFAULT_RETURN.
10780 2014-02-19 Tom Tromey <tromey@redhat.com>
10782 * target-delegates.c: Rebuild.
10783 * target.c (update_current_target): Don't inherit or default
10784 to_remove_fork_catchpoint.
10785 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10786 TARGET_DEFAULT_RETURN.
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10790 * target-delegates.c: Rebuild.
10791 * target.c (update_current_target): Don't inherit or default
10792 to_insert_fork_catchpoint.
10793 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10794 TARGET_DEFAULT_RETURN.
10796 2014-02-19 Tom Tromey <tromey@redhat.com>
10798 * target-delegates.c: Rebuild.
10799 * target.c (update_current_target): Don't inherit or default
10800 to_post_startup_inferior.
10801 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10802 TARGET_DEFAULT_IGNORE.
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10806 * target-delegates.c: Rebuild.
10807 * target.c (update_current_target): Don't inherit or default
10809 * target.h (struct target_ops) <to_load>: Use
10810 TARGET_DEFAULT_NORETURN.
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10814 * target-delegates.c: Rebuild.
10815 * target.c (update_current_target): Don't inherit or default
10817 * target.h (struct target_ops) <to_terminal_info>: Use
10818 TARGET_DEFAULT_FUNC.
10820 2014-02-19 Tom Tromey <tromey@redhat.com>
10822 * target-delegates.c: Rebuild.
10823 * target.c (update_current_target): Don't inherit or default
10824 to_terminal_save_ours.
10825 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10826 TARGET_DEFAULT_IGNORE.
10828 2014-02-19 Tom Tromey <tromey@redhat.com>
10830 * target-delegates.c: Rebuild.
10831 * target.c (update_current_target): Don't inherit or default
10833 * target.h (struct target_ops) <to_terminal_ours>: Use
10834 TARGET_DEFAULT_IGNORE.
10836 2014-02-19 Tom Tromey <tromey@redhat.com>
10838 * target-delegates.c: Rebuild.
10839 * target.c (update_current_target): Don't inherit or default
10840 to_terminal_ours_for_output.
10841 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10842 TARGET_DEFAULT_IGNORE.
10844 2014-02-19 Tom Tromey <tromey@redhat.com>
10846 * target-delegates.c: Rebuild.
10847 * target.c (update_current_target): Don't inherit or default
10848 to_terminal_inferior.
10849 * target.h (struct target_ops) <to_terminal_inferior>: Use
10850 TARGET_DEFAULT_IGNORE.
10852 2014-02-19 Tom Tromey <tromey@redhat.com>
10854 * target-delegates.c: Rebuild.
10855 * target.c (update_current_target): Don't inherit or default
10857 * target.h (struct target_ops) <to_terminal_init>: Use
10858 TARGET_DEFAULT_IGNORE.
10860 2014-02-19 Tom Tromey <tromey@redhat.com>
10862 * target-delegates.c: Rebuild.
10863 * target.c (update_current_target): Don't inherit or default
10864 to_can_accel_watchpoint_condition.
10865 * target.h (struct target_ops)
10866 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10868 2014-02-19 Tom Tromey <tromey@redhat.com>
10870 * target-delegates.c: Rebuild.
10871 * target.c (update_current_target): Don't inherit or default
10872 to_region_ok_for_hw_watchpoint.
10873 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10874 Use TARGET_DEFAULT_FUNC.
10876 2014-02-19 Tom Tromey <tromey@redhat.com>
10878 * target-delegates.c: Rebuild.
10879 * target.c (update_current_target): Don't inherit or default
10880 to_watchpoint_addr_within_range.
10881 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10882 Use TARGET_DEFAULT_FUNC.
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10886 * target-delegates.c: Rebuild.
10887 * target.c (update_current_target): Don't inherit or default
10888 to_remove_watchpoint.
10889 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10890 TARGET_DEFAULT_NORETURN.
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10894 * target-delegates.c: Rebuild.
10895 * target.c (update_current_target): Don't inherit or default
10896 to_insert_watchpoint.
10897 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10898 TARGET_DEFAULT_RETURN.
10900 2014-02-19 Tom Tromey <tromey@redhat.com>
10902 * target-delegates.c: Rebuild.
10903 * target.c (update_current_target): Don't inherit or default
10904 to_remove_hw_breakpoint.
10905 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10906 TARGET_DEFAULT_RETURN.
10908 2014-02-19 Tom Tromey <tromey@redhat.com>
10910 * target-delegates.c: Rebuild.
10911 * target.c (update_current_target): Don't inherit or default
10912 to_insert_hw_breakpoint.
10913 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10914 TARGET_DEFAULT_RETURN.
10916 2014-02-19 Tom Tromey <tromey@redhat.com>
10918 * target-delegates.c: Rebuild.
10919 * target.c (update_current_target): Don't inherit or default
10920 to_can_use_hw_breakpoint.
10921 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10922 TARGET_DEFAULT_RETURN.
10924 2014-02-19 Tom Tromey <tromey@redhat.com>
10926 * target-delegates.c: Rebuild.
10927 * target.c (update_current_target): Don't inherit or default
10929 * target.h (struct target_ops) <to_files_info>: Use
10930 TARGET_DEFAULT_IGNORE.
10932 2014-02-19 Tom Tromey <tromey@redhat.com>
10934 * target-delegates.c: Rebuild.
10935 * target.c (update_current_target): Don't inherit or default
10937 * target.h (struct target_ops) <to_store>: Use
10938 TARGET_DEFAULT_NORETURN.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target-delegates.c: Rebuild.
10943 * target.c (update_current_target): Don't inherit or default
10945 * target.h (struct target_ops) <to_post_attach>: Use
10946 TARGET_DEFAULT_IGNORE.
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10950 * target-delegates.c: Rebuild.
10951 * target.c (update_current_target): Don't inherit or default
10953 (default_rcmd): New function.
10954 (do_monitor_command): Unconditionally delegate.
10955 * target.h (struct target_ops) <to_rmcd>: Use
10956 TARGET_DEFAULT_FUNC.
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10960 * target-delegates.c: Rebuild.
10961 * target.c (init_dummy_target): Don't initialize to_attach.
10962 (target_attach): Unconditionally delegate.
10963 * target.h (struct target_ops) <to_attach>: Use
10964 TARGET_DEFAULT_FUNC.
10966 2014-02-19 Tom Tromey <tromey@redhat.com>
10968 * target-delegates.c: Rebuild.
10969 * target.c (target_detach): Unconditionally delegate.
10970 (init_dummy_target): Don't initialize to_detach.
10971 * target.h (struct target_ops) <to_detach>: Use
10972 TARGET_DEFAULT_IGNORE.
10974 2014-02-19 Tom Tromey <tromey@redhat.com>
10976 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10978 (target_augmented_libraries_svr4_read): Add argument.
10979 * target.c (update_current_target): Update.
10980 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10983 2014-02-19 Tom Tromey <tromey@redhat.com>
10985 * target.h (struct target_ops) <to_call_history_range>: Add
10987 * target.c (target_call_history_range): Add argument.
10988 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10990 (record_btrace_call_history_from): Update.
10992 2014-02-19 Tom Tromey <tromey@redhat.com>
10994 * target.h (struct target_ops) <to_call_history_from>: Add
10996 * target.c (target_call_history_from): Add argument.
10997 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11002 * target.h (struct target_ops) <to_call_history>: Add argument.
11003 * target.c (target_call_history): Add argument.
11004 * record-btrace.c (record_btrace_call_history): Add 'self'
11007 2014-02-19 Tom Tromey <tromey@redhat.com>
11009 * target.h (struct target_ops) <to_insn_history_range>: Add
11011 * target.c (target_insn_history_range): Add argument.
11012 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11014 (record_btrace_insn_history_from): Update.
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11018 * target.h (struct target_ops) <to_insn_history_from>: Add
11020 * target.c (target_insn_history_from): Add argument.
11021 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11026 * target.h (struct target_ops) <to_insn_history>: Add argument.
11027 * target.c (target_insn_history): Add argument.
11028 * record-btrace.c (record_btrace_insn_history): Add 'self'
11031 2014-02-19 Tom Tromey <tromey@redhat.com>
11033 * target.h (struct target_ops) <to_goto_record>: Add argument.
11034 * target.c (target_goto_record): Add argument.
11035 * record-full.c (record_full_goto): Add 'self' argument.
11036 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11038 2014-02-19 Tom Tromey <tromey@redhat.com>
11040 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11041 * target.c (target_goto_record_end): Add argument.
11042 * record-full.c (record_full_goto_end): Add 'self' argument.
11043 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11045 2014-02-19 Tom Tromey <tromey@redhat.com>
11047 * target.h (struct target_ops) <to_goto_record_begin>: Add
11049 * target.c (target_goto_record_begin): Add argument.
11050 * record-full.c (record_full_goto_begin): Add 'self' argument.
11051 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11054 2014-02-19 Tom Tromey <tromey@redhat.com>
11056 * target.h (struct target_ops) <to_record_is_replaying>: Add
11058 * target.c (target_record_is_replaying): Add argument.
11059 * record-full.c (record_full_is_replaying): Add 'self' argument.
11060 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11062 (record_btrace_xfer_partial, record_btrace_store_registers)
11063 (record_btrace_prepare_to_store, record_btrace_resume)
11064 (record_btrace_wait, record_btrace_decr_pc_after_break)
11065 (record_btrace_find_new_threads, record_btrace_thread_alive):
11068 2014-02-19 Tom Tromey <tromey@redhat.com>
11070 * target.h (struct target_ops) <to_delete_record>: Add argument.
11071 * target.c (target_delete_record): Add argument.
11072 * record-full.c (record_full_delete): Add 'self' argument.
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11076 * target.h (struct target_ops) <to_save_record>: Add argument.
11077 * target.c (target_save_record): Add argument.
11078 * record-full.c (record_full_save): Add 'self' argument.
11079 (record_full_save): Add 'self' argument.
11081 2014-02-19 Tom Tromey <tromey@redhat.com>
11083 * target.h (struct target_ops) <to_info_record>: Add argument.
11084 * target.c (target_info_record): Add argument.
11085 * record.c (info_record_command): Add argument.
11086 * record-full.c (record_full_info): Add 'self' argument.
11087 * record-btrace.c (record_btrace_info): Add 'self' argument.
11089 2014-02-19 Tom Tromey <tromey@redhat.com>
11091 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11092 * target.c (target_stop_recording): Add argument.
11093 * record.c (record_stop): Add argument.
11094 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11097 2014-02-19 Tom Tromey <tromey@redhat.com>
11099 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11100 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11101 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11103 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11104 (_initialize_amd64_linux_nat): Use it.
11105 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11106 (_initialize_i386_linux_nat): Use it.
11108 2014-02-19 Tom Tromey <tromey@redhat.com>
11110 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11111 * target.c (target_teardown_btrace): Add argument.
11112 * remote.c (remote_teardown_btrace): Add 'self' argument.
11113 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11115 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11120 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11121 * target.c (target_disable_btrace): Add argument.
11122 * remote.c (remote_disable_btrace): Add 'self' argument.
11123 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11125 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11128 2014-02-19 Tom Tromey <tromey@redhat.com>
11130 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11131 * target.c (target_enable_btrace): Add argument.
11132 * remote.c (remote_enable_btrace): Add 'self' argument.
11133 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11135 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11138 2014-02-19 Tom Tromey <tromey@redhat.com>
11140 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11141 (target_can_use_agent): Add argument.
11142 * target.c (update_current_target): Update.
11143 * remote.c (remote_can_use_agent): Add 'self' argument.
11144 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11146 2014-02-19 Tom Tromey <tromey@redhat.com>
11148 * target.h (struct target_ops) <to_use_agent>: Add argument.
11149 (target_use_agent): Add argument.
11150 * target.c (update_current_target): Update.
11151 * remote.c (remote_use_agent): Add 'self' argument.
11152 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11154 2014-02-19 Tom Tromey <tromey@redhat.com>
11156 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11157 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11158 (target_traceframe_info): Add argument.
11159 * target.c (update_current_target): Update.
11160 * remote.c (remote_traceframe_info): Add 'self' argument.
11161 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11163 2014-02-19 Tom Tromey <tromey@redhat.com>
11165 * target.h (target_static_tracepoint_markers_by_strid): Add
11167 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11169 * target.c (update_current_target): Update.
11170 * remote.c (struct target_ops)
11171 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11172 * linux-nat.c (struct target_ops)
11173 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11175 2014-02-19 Tom Tromey <tromey@redhat.com>
11177 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11179 (target_static_tracepoint_marker_at): Add argument.
11180 * target.c (update_current_target): Update.
11181 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11186 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11187 (target_set_permissions): Add argument.
11188 * target.c (update_current_target): Update.
11189 * remote.c (remote_set_permissions): Add 'self' argument.
11190 (remote_start_remote): Update.
11192 2014-02-19 Tom Tromey <tromey@redhat.com>
11194 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11195 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11196 (target_get_tib_address): Add argument.
11197 * target.c (update_current_target): Update.
11198 * remote.c (remote_get_tib_address): Add 'self' argument.
11200 2014-02-19 Tom Tromey <tromey@redhat.com>
11202 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11203 (target_set_trace_notes): Add argument.
11204 * target.c (update_current_target): Update.
11205 * remote.c (remote_set_trace_notes): Add 'self' argument.
11207 2014-02-19 Tom Tromey <tromey@redhat.com>
11209 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11211 (target_set_trace_buffer_size): Add argument.
11212 * target.c (update_current_target): Update.
11213 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11215 2014-02-19 Tom Tromey <tromey@redhat.com>
11217 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11219 (target_set_circular_trace_buffer): Add argument.
11220 * target.c (update_current_target): Update.
11221 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11224 2014-02-19 Tom Tromey <tromey@redhat.com>
11226 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11228 (target_set_disconnected_tracing): Add argument.
11229 * target.c (update_current_target): Update.
11230 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11232 2014-02-19 Tom Tromey <tromey@redhat.com>
11234 * target.h (struct target_ops)
11235 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11236 (target_get_min_fast_tracepoint_insn_len): Add argument.
11237 * target.c (update_current_target): Update.
11238 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11245 (target_get_raw_trace_data): Add argument.
11246 * target.c (update_current_target): Update.
11247 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11251 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11253 (target_upload_trace_state_variables): Add argument.
11254 * target.c (update_current_target): Update.
11255 * remote.c (remote_upload_trace_state_variables): Add 'self'
11257 (remote_start_remote): Update.
11259 2014-02-19 Tom Tromey <tromey@redhat.com>
11261 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11263 (target_upload_tracepoints): Add argument.
11264 * target.c (update_current_target): Update.
11265 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11266 (remote_start_remote): Update.
11268 2014-02-19 Tom Tromey <tromey@redhat.com>
11270 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11271 (target_save_trace_data): Add argument.
11272 * target.c (update_current_target): Update.
11273 * remote.c (remote_save_trace_data): Add 'self' argument.
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11277 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11279 * target.h (struct target_ops)
11280 <to_get_trace_state_variable_value>: Add argument.
11281 (target_get_trace_state_variable_value): Add argument.
11282 * target.c (update_current_target): Update.
11283 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11285 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11287 2014-02-19 Tom Tromey <tromey@redhat.com>
11289 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11290 * target.h (struct target_ops) <to_trace_find>: Add argument.
11291 (target_trace_find): Add argument.
11292 * target.c (update_current_target): Update.
11293 * remote.c (remote_trace_find): Add 'self' argument.
11294 * ctf.c (ctf_trace_find): Add 'self' argument.
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11299 (target_trace_stop): Add argument.
11300 * target.c (update_current_target): Update.
11301 * remote.c (remote_trace_stop): Add 'self' argument.
11303 2014-02-19 Tom Tromey <tromey@redhat.com>
11305 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11306 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11308 (target_get_tracepoint_status): Add argument.
11309 * target.c (update_current_target): Update.
11310 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11314 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11315 * target.h (struct target_ops) <to_get_trace_status>: Add
11317 (target_get_trace_status): Add argument.
11318 * target.c (update_current_target): Update.
11319 * remote.c (remote_get_trace_status): Add 'self' argument.
11320 (remote_start_remote, remote_can_download_tracepoint): Update.
11321 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11323 2014-02-19 Tom Tromey <tromey@redhat.com>
11325 * target.h (struct target_ops) <to_trace_start>: Add argument.
11326 (target_trace_start): Add argument.
11327 * target.c (update_current_target): Update.
11328 * remote.c (remote_trace_start): Add 'self' argument.
11330 2014-02-19 Tom Tromey <tromey@redhat.com>
11332 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11334 (target_trace_set_readonly_regions): Add argument.
11335 * target.c (update_current_target): Update.
11336 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11339 2014-02-19 Tom Tromey <tromey@redhat.com>
11341 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11343 (target_disable_tracepoint): Add argument.
11344 * target.c (update_current_target): Update.
11345 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11347 2014-02-19 Tom Tromey <tromey@redhat.com>
11349 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11351 (target_enable_tracepoint): Add argument.
11352 * target.c (update_current_target): Update.
11353 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11355 2014-02-19 Tom Tromey <tromey@redhat.com>
11357 * target.h (struct target_ops) <to_download_trace_state_variable>:
11359 (target_download_trace_state_variable): Add argument.
11360 * target.c (update_current_target): Update.
11361 * remote.c (remote_download_trace_state_variable): Add 'self'
11364 2014-02-19 Tom Tromey <tromey@redhat.com>
11366 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11368 (target_can_download_tracepoint): Add argument.
11369 * target.c (update_current_target): Update.
11370 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11372 2014-02-19 Tom Tromey <tromey@redhat.com>
11374 * target.h (struct target_ops) <to_download_tracepoint>: Add
11376 (target_download_tracepoint): Add argument.
11377 * target.c (update_current_target): Update.
11378 * remote.c (remote_download_tracepoint): Add 'self' argument.
11380 2014-02-19 Tom Tromey <tromey@redhat.com>
11382 * target.h (struct target_ops) <to_trace_init>: Add argument.
11383 (target_trace_init): Add argument.
11384 * target.c (update_current_target): Update.
11385 * remote.c (remote_trace_init): Add 'self' argument.
11387 2014-02-19 Tom Tromey <tromey@redhat.com>
11389 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11390 * target.c (target_fileio_readlink): Add argument.
11391 * remote.c (remote_hostio_readlink): Add 'self' argument.
11392 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11396 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11397 * target.c (target_fileio_unlink): Add argument.
11398 * remote.c (remote_hostio_unlink): Add 'self' argument.
11399 (remote_file_delete): Update.
11400 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11404 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11405 * target.c (target_fileio_close): Add argument.
11406 * remote.c (remote_hostio_close): Add 'self' argument.
11407 (remote_hostio_close_cleanup): Update.
11408 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11410 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11412 2014-02-19 Tom Tromey <tromey@redhat.com>
11414 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11415 * target.c (target_fileio_pread): Add argument.
11416 * remote.c (remote_hostio_pread): Add 'self' argument.
11417 (remote_bfd_iovec_pread, remote_file_get): Update.
11418 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11420 2014-02-19 Tom Tromey <tromey@redhat.com>
11422 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11423 * target.c (target_fileio_pwrite): Add argument.
11424 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11425 (remote_file_put): Update.
11426 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11428 2014-02-19 Tom Tromey <tromey@redhat.com>
11430 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11431 * target.c (target_fileio_open): Add argument.
11432 * remote.c (remote_hostio_open): Add 'self' argument.
11433 (remote_bfd_iovec_open): Add 'self' argument.
11434 (remote_file_put): Add 'self' argument.
11435 (remote_file_get): Add 'self' argument.
11436 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11438 2014-02-19 Tom Tromey <tromey@redhat.com>
11440 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11442 (target_can_run_breakpoint_commands): Add argument.
11443 * target.c (update_current_target): Update.
11444 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11446 (remote_insert_breakpoint): Add 'self' argument.
11447 (remote_insert_hw_breakpoint): Add 'self' argument.
11448 (remote_can_run_breakpoint_commands): Add 'self' argument.
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11452 * target.h (struct target_ops)
11453 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11454 (target_supports_evaluation_of_breakpoint_conditions): Add
11456 * target.c (update_current_target): Update.
11457 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11459 (remote_insert_breakpoint): Add 'self' argument.
11460 (remote_insert_hw_breakpoint): Add 'self' argument.
11461 (remote_supports_cond_breakpoints): Add 'self' argument.
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11465 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11467 (target_supports_string_tracing): Add argument.
11468 * target.c (update_current_target): Update.
11469 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11473 * target.h (struct target_ops)
11474 <to_supports_disable_randomization>: Add argument.
11475 * target.c (find_default_supports_disable_randomization): Add
11477 (target_supports_disable_randomization): Add argument.
11478 (find_default_supports_disable_randomization): Add 'self'
11480 * remote.c (extended_remote_supports_disable_randomization): Add
11482 (remote_supports_disable_randomization): Add 'self' argument.
11483 (extended_remote_create_inferior): Update.
11484 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target.h (struct target_ops)
11490 <to_supports_enable_disable_tracepoint>: Add argument.
11491 (target_supports_enable_disable_tracepoint): Add argument.
11492 * target.c (update_current_target): Update.
11493 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11498 * target.h (struct target_ops) <to_supports_multi_process>: Add
11500 (target_supports_multi_process): Add argument.
11501 * target.c (update_current_target): Update.
11502 * remote.c (remote_supports_multi_process): Add 'self' argument.
11503 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11505 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11508 2014-02-19 Tom Tromey <tromey@redhat.com>
11510 * target.h (struct target_ops) <to_execution_direction>: Add
11512 (target_execution_direction): Add argument.
11513 * target.c (default_execution_direction): Add 'self' argument.
11514 * record-full.c (record_full_execution_direction): Add 'self'
11517 2014-02-19 Tom Tromey <tromey@redhat.com>
11519 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11521 (target_can_execute_reverse): Add argument.
11522 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11523 * record-full.c (record_full_can_execute_reverse): Add 'self'
11525 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11528 2014-02-19 Tom Tromey <tromey@redhat.com>
11530 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11531 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11533 (target_get_ada_task_ptid): Add argument.
11534 * target.c (update_current_target): Update.
11535 (default_get_ada_task_ptid): Add 'self' argument.
11536 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11537 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11538 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11540 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11542 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11544 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11546 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11547 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11552 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11553 (target_goto_bookmark): Add argument.
11554 * target.c (dummy_goto_bookmark): Add 'self' argument.
11555 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11559 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11560 (target_get_bookmark): Add argument.
11561 * target.c (dummy_get_bookmark): Add 'self' argument.
11562 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11564 2014-02-19 Tom Tromey <tromey@redhat.com>
11566 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11568 (target_make_corefile_notes): Add argument.
11569 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11570 * procfs.c (procfs_make_note_section): Add 'self' argument.
11571 (procfs_make_note_section): Add 'self' argument.
11572 (procfs_make_note_section): Add 'self' argument.
11573 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11575 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11576 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11577 * exec.c (exec_make_note_section): Add 'self' argument.
11578 (exec_make_note_section): Add 'self' argument.
11580 2014-02-19 Tom Tromey <tromey@redhat.com>
11582 * target.h (struct target_ops) <to_find_memory_regions>: Add
11584 (target_find_memory_regions): Add argument.
11585 * target.c (dummy_find_memory_regions): Add 'self' argument.
11586 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11587 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11588 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11589 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11590 * exec. (exec_do_find_memory_regions): New global.
11591 (exec_set_find_memory_regions): Rewrite.
11592 (exec_find_memory_regions): New function.
11593 (init_exec_ops): Use exec_find_memory_regions.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * target.h (struct target_ops) <to_supports_non_stop>: Add
11599 * target.c (find_default_supports_non_stop): Add argument.
11600 (target_supports_non_stop): Add argument.
11601 (find_default_supports_non_stop): Add 'self' argument.
11602 * remote.c (remote_supports_non_stop): Add 'self' argument.
11603 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11605 2014-02-19 Tom Tromey <tromey@redhat.com>
11607 * target.h (struct target_ops) <to_log_command>: Add argument.
11608 (target_log_command): Add argument.
11609 * serial.h (serial_log_command): Add 'self' argument.
11610 * serial.c (serial_log_command): Add 'self' argument.
11612 2014-02-19 Tom Tromey <tromey@redhat.com>
11614 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11615 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11617 (target_pid_to_exec_file): Add argument.
11618 * target.c (debug_to_pid_to_exec_file): Add argument.
11619 (update_current_target): Update.
11620 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11621 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11622 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11623 (linux_handle_extended_wait): Update.
11624 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11625 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11626 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11627 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11629 2014-02-19 Tom Tromey <tromey@redhat.com>
11631 * target.h (struct target_ops) <to_rcmd>: Add argument.
11632 (target_rcmd): Add argument.
11633 * target.c (debug_to_rcmd): Add argument.
11634 (update_current_target, do_monitor_command): Update.
11635 * remote.c (remote_rcmd): Add 'self' argument.
11636 * monitor.c (monitor_rcmd): Add 'self' argument.
11638 2014-02-19 Tom Tromey <tromey@redhat.com>
11640 * windows-nat.c (windows_stop): Add 'self' argument.
11641 * target.h (struct target_ops) <to_stop>: Add argument.
11642 * target.c (target_stop): Add argument.
11643 (debug_to_stop): Add argument.
11644 (update_current_target): Update.
11645 * remote.c (remote_stop): Add 'self' argument.
11646 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11647 (gdbsim_cntrl_c): Update.
11648 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11649 * procfs.c (procfs_stop): Add 'self' argument.
11650 * nto-procfs.c (procfs_stop): Add 'self' argument.
11651 * monitor.c (monitor_stop): Add 'self' argument.
11652 (monitor_open): Update.
11653 * linux-nat.c (linux_nat_stop): Add argument.
11654 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11655 * gnu-nat.c (gnu_stop): Add 'self' argument.
11656 * darwin-nat.c (darwin_stop): Add 'self' argument.
11658 2014-02-19 Tom Tromey <tromey@redhat.com>
11660 * target.h (struct target_ops) <to_thread_name>: Add argument.
11661 * target.c (target_thread_name): Add argument.
11662 (update_current_target): Update.
11663 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target.h (struct target_ops) <to_extra_thread_info>: Add
11669 (target_extra_thread_info): Add argument.
11670 * target.c (update_current_target): Update.
11671 * remote.c (remote_threads_extra_info): Add 'self' argument.
11672 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11674 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11675 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11676 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11678 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11680 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11682 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11685 2014-02-19 Tom Tromey <tromey@redhat.com>
11687 * target.h (struct target_ops) <to_program_signals>: Add argument.
11688 * target.c (target_program_signals): Add argument.
11689 * remote.c (remote_program_signals): Add 'self' argument.
11691 2014-02-19 Tom Tromey <tromey@redhat.com>
11693 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11694 * target.c (target_pass_signals): Add argument.
11695 * remote.c (remote_pass_signals): Add 'self' argument.
11696 (remote_start_remote): Update.
11697 * procfs.c (procfs_pass_signals): Add 'self' argument.
11698 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11699 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11700 (linux_nat_create_inferior, linux_nat_attach): Update.
11702 2014-02-19 Tom Tromey <tromey@redhat.com>
11704 * windows-nat.c (windows_can_run): Add 'self' argument.
11705 * target.h (struct target_ops) <to_can_run>: Add argument.
11706 (target_can_run): Add argument.
11707 * target.c (debug_to_can_run): Add argument.
11708 (update_current_target): Update.
11709 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11710 * inf-child.c (inf_child_can_run): Add 'self' argument.
11711 * go32-nat.c (go32_can_run): Add 'self' argument.
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11715 * target.h (struct target_ops) <to_has_exited>: Add argument.
11716 (target_has_exited): Add argument.
11717 * target.c (debug_to_has_exited): Add argument.
11718 (update_current_target): Update.
11720 2014-02-19 Tom Tromey <tromey@redhat.com>
11722 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11724 (target_set_syscall_catchpoint): Add argument.
11725 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11727 * target.c (update_current_target): Update.
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11731 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11733 (target_remove_exec_catchpoint): Add argument.
11734 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11735 (update_current_target): Update.
11736 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11739 2014-02-19 Tom Tromey <tromey@redhat.com>
11741 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11743 (target_insert_exec_catchpoint): Add argument.
11744 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11745 (update_current_target): Update.
11746 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11751 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11753 (target_remove_vfork_catchpoint): Add argument.
11754 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11755 (update_current_target): Update.
11756 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11759 2014-02-19 Tom Tromey <tromey@redhat.com>
11761 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11763 (target_insert_vfork_catchpoint): Add argument.
11764 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11765 (update_current_target): Update.
11766 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11769 2014-02-19 Tom Tromey <tromey@redhat.com>
11771 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11773 (target_remove_fork_catchpoint): Add argument.
11774 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11775 (update_current_target): Update.
11776 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11779 2014-02-19 Tom Tromey <tromey@redhat.com>
11781 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11783 (target_insert_fork_catchpoint): Add argument.
11784 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11785 (update_current_target): Update.
11786 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11789 2014-02-19 Tom Tromey <tromey@redhat.com>
11791 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11793 (target_post_startup_inferior): Add argument.
11794 * target.c (debug_to_post_startup_inferior): Add argument.
11795 (update_current_target): Update.
11796 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11798 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11800 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11802 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11804 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11806 (super_post_startup_inferior): Likewise.
11807 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11809 (super_post_startup_inferior): Likewise.
11810 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11811 Add 'self' argument.
11812 (super_post_startup_inferior): Likewise.
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11816 * target.h (struct target_ops) <to_load>: Add argument.
11817 * target.c (target_load): Add argument.
11818 (debug_to_load): Add argument.
11819 (update_current_target): Update.
11820 * remote.c (remote_load): Add 'self' argument.
11821 * remote-sim.c (gdbsim_load): Add 'self' argument.
11822 * remote-mips.c (mips_load): Add 'self' argument.
11823 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11824 * monitor.c (monitor_load): Add 'self' argument.
11825 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11827 2014-02-19 Tom Tromey <tromey@redhat.com>
11829 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11830 (target_terminal_info): Add argument.
11831 * target.c (debug_to_terminal_info): Add argument.
11832 (default_terminal_info): Likewise.
11833 * inflow.c (child_terminal_info): Add 'self' argument.
11834 * inferior.h (child_terminal_info): Add 'self' argument.
11835 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11837 2014-02-19 Tom Tromey <tromey@redhat.com>
11839 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11841 (target_terminal_save_ours): Add argument.
11842 * target.c (debug_to_terminal_save_ours): Add argument.
11843 (update_current_target): Update.
11844 * inflow.c (terminal_save_ours): Add 'self' argument.
11845 * inferior.h (terminal_save_ours): Add 'self' argument.
11847 2014-02-19 Tom Tromey <tromey@redhat.com>
11849 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11850 (target_terminal_ours): Add argument.
11851 * target.c (debug_to_terminal_ours): Add argument.
11852 (update_current_target): Update.
11853 * remote.c (remote_terminal_ours): Add 'self' argument.
11854 (remote_close): Update.
11855 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11856 * inflow.c (terminal_ours): Add 'self' argument.
11857 * inferior.h (terminal_ours): Add 'self' argument.
11858 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11860 2014-02-19 Pedro Alves <palves@redhat.com>
11861 Tom Tromey <tromey@redhat.com>
11863 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11865 (target_terminal_ours_for_output): Add argument.
11866 * target.c (debug_to_terminal_ours_for_output): Add argument.
11867 (update_current_target): Update.
11868 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11869 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11870 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11872 2014-02-19 Tom Tromey <tromey@redhat.com>
11874 * target.h (struct target_ops) <to_terminal_inferior>: Add
11876 * target.c (target_terminal_inferior): Add argument.
11877 (update_current_target): Update.
11878 * remote.c (remote_terminal_inferior): Add 'self' argument.
11879 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11880 * inflow.c (terminal_inferior): Add 'self' argument.
11881 * inferior.h (terminal_inferior): Add 'self' argument.
11882 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11883 (go32_terminal_inferior): Add 'self' argument.
11885 2014-02-19 Tom Tromey <tromey@redhat.com>
11887 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11888 (target_terminal_init): Add argument.
11889 * target.c (debug_to_terminal_init): Add argument.
11890 (update_current_target): Update.
11891 * inflow.c (terminal_init_inferior): Add 'self' argument.
11892 * inferior.h (terminal_init_inferior): Add 'self' argument.
11893 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11894 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11898 * target.h (struct target_ops)
11899 <to_can_accel_watchpoint_condition>: Add argument.
11900 (target_can_accel_watchpoint_condition): Add argument.
11901 * target.c (debug_to_can_accel_watchpoint_condition): Add
11903 (update_current_target): Update.
11904 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11909 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11911 (target_region_ok_for_hw_watchpoint): Add argument.
11912 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11913 (default_region_ok_for_hw_watchpoint): Add argument.
11914 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11915 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11917 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11919 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11921 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11923 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11925 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11927 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11928 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11930 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11931 Add 'self' argument.
11933 2014-02-19 Tom Tromey <tromey@redhat.com>
11935 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11937 (target_insert_watchpoint): Add argument.
11938 * target.c (debug_to_insert_watchpoint): Add argument.
11939 (update_current_target): Update.
11940 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11941 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11942 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11943 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11944 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11945 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11947 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11948 (procfs_insert_hw_watchpoint): Add 'self' argument.
11949 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11951 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11953 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11955 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11956 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11958 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11961 2014-02-19 Tom Tromey <tromey@redhat.com>
11963 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11965 (target_remove_watchpoint): Add argument.
11966 * target.c (debug_to_remove_watchpoint): Add argument.
11967 (update_current_target): Update.
11968 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11969 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11970 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11971 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11972 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11973 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11975 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11976 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11978 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11980 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11982 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11983 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11985 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11988 2014-02-19 Tom Tromey <tromey@redhat.com>
11990 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11992 (target_remove_hw_breakpoint): Add argument.
11993 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11994 (update_current_target): Update.
11995 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11996 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11998 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11999 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12001 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12008 (target_insert_hw_breakpoint): Add argument.
12009 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12010 (update_current_target): Update.
12011 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12012 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12014 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12015 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12016 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12018 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12023 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12025 (target_can_use_hardware_watchpoint): Add argument.
12026 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12027 (update_current_target): Update.
12028 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12030 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12032 * remote.c (remote_check_watch_resources): Add 'self' argument.
12033 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12034 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12036 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12037 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12039 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12041 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12043 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12045 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12047 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12049 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12050 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12052 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12055 2014-02-19 Tom Tromey <tromey@redhat.com>
12057 * target.h (struct target_ops) <to_post_attach>: Add argument.
12058 (target_post_attach): Add argument.
12059 * target.c (debug_to_post_attach): Add argument.
12060 (update_current_target): Update.
12061 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12062 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12063 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12064 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12065 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12067 2014-02-19 Tom Tromey <tromey@redhat.com>
12069 * windows-nat.c (windows_close): Add 'self' argument.
12070 * tracepoint.c (tfile_close): Add 'self' argument.
12071 * target.h (struct target_ops) <to_close>: Add argument.
12072 * target.c (target_close): Add argument.
12073 (update_current_target): Update.
12074 * remote.c (remote_close): Add 'self' argument.
12075 * remote-sim.c (gdbsim_close): Add 'self' argument.
12076 * remote-mips.c (mips_close): Add 'self' argument.
12077 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12078 * record-full.c (record_full_close): Add 'self' argument.
12079 * record-btrace.c (record_btrace_close): Add 'self' argument.
12080 * monitor.h (monitor_close): Add 'self' argument.
12081 * monitor.c (monitor_close): Add 'self' argument.
12082 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12083 * linux-nat.c (linux_nat_close): Add argument.
12084 * go32-nat.c (go32_close): Add 'self' argument.
12085 * exec.c (exec_close_1): Add 'self' argument.
12086 * ctf.c (ctf_close): Add 'self' argument.
12087 * corelow.c (core_close): Add 'self' argument.
12088 (core_close_cleanup): Update.
12089 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12090 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12094 * remote.c (remote_load): New function.
12095 (init_remote_ops): Use it.
12097 2014-02-19 Tom Tromey <tromey@redhat.com>
12099 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12101 * common/linux-btrace.h (linux_supports_btrace): Update.
12102 * remote.c (remote_supports_btrace): Add "self" argument.
12103 * target-delegates.c: Rebuild.
12104 * target.c (target_supports_btrace): Remove.
12105 * target.h (struct target_ops) <to_supports_btrace>: Add
12106 target_ops argument.
12107 (target_supports_btrace): New define.
12109 2014-02-19 Tom Tromey <tromey@redhat.com>
12111 * record-full.c (record_full_beneath_to_resume_ops)
12112 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12113 (record_full_beneath_to_wait)
12114 (record_full_beneath_to_store_registers_ops)
12115 (record_full_beneath_to_store_registers)
12116 (record_full_beneath_to_xfer_partial_ops)
12117 (record_full_beneath_to_xfer_partial)
12118 (record_full_beneath_to_insert_breakpoint_ops)
12119 (record_full_beneath_to_insert_breakpoint)
12120 (record_full_beneath_to_remove_breakpoint_ops)
12121 (record_full_beneath_to_remove_breakpoint)
12122 (record_full_beneath_to_stopped_by_watchpoint)
12123 (record_full_beneath_to_stopped_data_address)
12124 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12125 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12126 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12127 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12128 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12129 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12130 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12131 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12132 (record_full_resume, record_full_wait_1)
12133 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12134 (record_full_store_registers, record_full_xfer_partial)
12135 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12136 (record_full_async, record_full_core_xfer_partial): Use target
12138 * target-delegates.c: Rebuild.
12139 * target.c (current_xfer_partial): Remove.
12140 (update_current_target): Do not INHERIT or de_fault
12141 to_insert_breakpoint, to_remove_breakpoint,
12142 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12143 to_is_async_p, to_async. Do not set to_xfer_partial field.
12144 (default_xfer_partial): Simplify.
12145 (current_xfer_partial): Remove.
12146 (target_wait, target_resume): Simplify.
12147 (find_default_can_async_p, find_default_is_async_p): Update.
12148 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12149 to_xfer_partial, to_stopped_by_watchpoint,
12150 to_stopped_data_address.
12151 (target_store_registers): Simplify.
12152 (forward_target_remove_breakpoint)
12153 (forward_target_insert_breakpoint): Remove.
12154 (target_remove_breakpoint, target_insert_breakpoint)
12155 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12156 * target.h (struct target_ops) <to_resume, to_wait,
12157 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12158 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12159 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12161 (forward_target_remove_breakpoint)
12162 (forward_target_insert_breakpoint): Remove.
12163 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12165 (record_btrace_insert_breakpoint): Delegate directly.
12167 2014-02-19 Tom Tromey <tromey@redhat.com>
12170 * target-delegates.c: New file.
12171 * target.c: Include target-delegates.c.
12172 (init_dummy_target): Call install_dummy_methods.
12173 (complete_target_initialization): Call install_delegators.
12174 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12175 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12176 * make-target-delegates: New file.
12178 2014-02-19 Tom Tromey <tromey@redhat.com>
12180 * record.c (find_record_target): Use find_target_at.
12181 * target.c (find_target_at): New function.
12182 * target.h (find_target_at): Declare.
12184 2014-02-19 Tom Tromey <tromey@redhat.com>
12186 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12187 Add 'ops' argument.
12188 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12190 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12191 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12193 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12195 * linux-nat.c (save_sigtrap): Update.
12196 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12197 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12198 (linux_nat_close): Update.
12199 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12201 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12203 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12204 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12205 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12206 (tmp_to_async): Add 'ops' argument.
12207 (record_full_stopped_by_watchpoint, record_full_async)
12208 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12210 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12211 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12212 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12213 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12214 (remote_is_async_p, remote_async): Add 'ops' argument.
12215 (remote_stopped_data_address): Update.
12216 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12217 * target.c (update_current_target)
12218 (find_default_can_async_p, find_default_is_async_p): Update.
12219 (init_dummy_target): Update.
12220 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12221 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12222 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12223 (target_can_async_p, target_is_async_p, target_async)
12224 (target_stopped_by_watchpoint): Update.
12226 2014-02-19 Yao Qi <yao@codesourcery.com>
12229 * gdbarch.sh: Remove startup_gdbarch.
12230 * gdbarch.c: Regenerated.
12231 * gdbarch.h: Likewise.
12233 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12235 * rl78-tdep.c (rl78_g10_register_name): New function.
12236 (rl78_return_value): Add g10 support.
12237 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12240 2014-02-17 Doug Evans <xdje42@gmail.com>
12242 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12243 (SUBDIR_GUILE_SRCS): Ditto.
12244 (scm-gsmob.o): Ditto.
12246 2014-02-17 Yao Qi <yao@codesourcery.com>
12248 * gnu-nat.c (ILL_RPC): Declare defined function.
12250 2014-02-17 Yao Qi <yao@codesourcery.com>
12252 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12253 mach_msg_type_number_t.
12254 (gnu_write_inferior): Likewise.
12256 2014-02-17 Yao Qi <yao@codesourcery.com>
12258 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12260 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12261 (inf_validate_procs, inf_signal): Likewise.
12262 (S_exception_raise_request): Likewise.
12263 (do_mach_notify_dead_name): Likewise.
12264 (steal_exc_port): Likewise.
12265 (gnu_read_inferior): Change 'copy_count''s type to
12266 mach_msg_type_number_t.
12267 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12270 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12272 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12273 flag. Adjust all users; in particular...
12274 (gnu_wait): ..., don't decrement its value in here...
12275 (gnu_create_inferior): ..., and instead set the flag in here,
12276 around the startup_inferior call, and call that one with
12277 START_INFERIOR_TRAPS_EXPECTED.
12279 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12280 (ILL_RPC): ... new macro.
12281 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12282 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12283 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12284 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12285 functions with ILL_RPC macro.
12286 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12287 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12288 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12289 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12290 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12291 (S_proc_getlogin_reply, S_proc_getsid_reply)
12292 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12293 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12294 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12295 (S_proc_getnports_reply, S_proc_is_important_reply)
12296 (S_proc_get_code_reply): New stub functions, generated with
12299 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12300 collected the type check structures.
12302 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12304 2014-02-14 Doug Evans <dje@google.com>
12306 * target.c (target_write_partial): Fix result type.
12308 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12310 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12311 the proper offsets to access fpregset_t.
12313 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12315 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12316 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12317 * h8300-tdep.c (setmachinelist): Remove global.
12318 * hppa-tdep.c (hppa_sigtramp): Remove global.
12319 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12320 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12321 * ravenscar-thread.c (update_target_observer): Remove global.
12322 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12324 2014-02-12 Tom Tromey <tromey@redhat.com>
12326 * common/rsp-low.c: Update comments.
12327 * common/rsp-low.h: Update comments.
12329 2014-02-12 Tom Tromey <tromey@redhat.com>
12331 * common/rsp-low.c (convert_ascii_to_int): Remove.
12332 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12334 2014-02-12 Tom Tromey <tromey@redhat.com>
12336 * common/rsp-low.h (unhexify): Don't declare.
12337 * common/rsp-low.c (unhexify): Remove.
12339 2014-02-12 Tom Tromey <tromey@redhat.com>
12341 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12342 * common/rsp-low.c (convert_int_to_ascii): Remove.
12344 2014-02-12 Tom Tromey <tromey@redhat.com>
12346 * common/rsp-low.h (hexify): Don't declare.
12347 * common/rsp-low.c (hexify): Remove.
12349 2014-02-12 Tom Tromey <tromey@redhat.com>
12351 * common/rsp-low.c (hexify): Never take strlen of argument.
12353 2014-02-12 Tom Tromey <tromey@redhat.com>
12355 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12356 * remote.c (extended_remote_run, remote_rcmd)
12357 (remote_download_trace_state_variable, remote_save_trace_data)
12358 (remote_set_trace_notes): Update.
12359 * tracepoint.c (encode_source_string, tfile_write_status)
12360 (tfile_write_uploaded_tsv): Update.
12362 2014-02-12 Tom Tromey <tromey@redhat.com>
12364 * tracepoint.c: Include rsp-low.h.
12365 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12366 * remote.c: Include rsp-low.h.
12367 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12368 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12369 (remote_unescape_input): Move to common/rsp-low.c.
12370 * common/rsp-low.h: New file.
12371 * common/rsp-low.c: New file.
12372 * Makefile.in (SFILES): Add common/rsp-low.c.
12373 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12374 (COMMON_OBS): Add rsp-low.o.
12375 (rsp-low.o): New target.
12377 2014-02-12 Tom Tromey <tromey@redhat.com>
12379 * utils.h: Include print-utils.h.
12380 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12381 (int_string, core_addr_to_string, core_addr_to_string_nz)
12382 (hex_string, hex_string_custom): Don't declare.
12383 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12384 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12385 (hex_string_custom, int_string, core_addr_to_string)
12386 (core_addr_to_string_nz, host_address_to_string): Move to
12387 common/print-utils.c.
12388 * common/print-utils.h: New file.
12389 * common/print-utils.c: New file
12390 * Makefile.in (SFILES): Add common/print-utils.c.
12391 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12392 (COMMON_OBS): Add print-utils.o.
12393 (print-utils.o): New target.
12395 2014-02-12 Tom Tromey <tromey@redhat.com>
12397 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12399 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12401 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12403 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12405 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12406 if a PT_IO ptrace request returns sucessfully but indicates that 0
12407 bytes were transferred.
12409 2014-02-12 Pedro Alves <palves@redhat.com>
12410 Kevin Buettner <kevinb@redhat.com>
12412 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12413 TYPE_INSTANCE_FLAG_CODE_SPACE.
12415 2014-02-12 Pedro Alves <palves@redhat.com>
12417 * h8300-tdep.c (pseudo_from_raw_register)
12418 (raw_from_pseudo_register): New functions.
12419 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12422 2014-02-12 Pedro Alves <palves@redhat.com>
12424 * h8300-tdep.c (h8300_register_sim_regno): New function.
12425 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12426 gdbarch_register_sim_regno hook.
12428 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12430 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12432 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12434 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12436 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12438 * obsd-tdep.h (obsd_init_abi): New prototype.
12439 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12440 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12441 (obsd_init_abi): New functions.
12442 * i386obsd-tdep.c: Include "obsd-tdep.h".
12443 (i386obsd_init_abi): Call obsd_init_abi.
12444 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12445 (amd64obsd_init_abi): Call obsd_init_abi.
12446 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12447 obsd-tdep.c to gdb_target_obs.
12449 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12451 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12452 double float arguments to 16-byte in the argument slots.
12454 2014-02-11 Doug Evans <xdje42@gmail.com>
12456 * configure.ac: Don't crash if pkg-config is not found and guile
12457 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12459 * configure: Regenerate.
12461 2014-02-11 Yao Qi <yao@codesourcery.com>
12463 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12464 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12465 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12466 * gnu-nat.c (gnu_xfer_memory): Likewise.
12467 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12468 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12469 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12470 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12472 2014-02-11 Yao Qi <yao@codesourcery.com>
12474 * target.h (enum target_xfer_error): Rename to ...
12475 (enum target_xfer_status): ... it. New. All users updated.
12476 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12478 (TARGET_XFER_STATUS_ERROR_P): New macro.
12479 (target_xfer_error_to_string): Remove declaration.
12480 (target_xfer_status_to_string): Declare.
12481 (target_xfer_partial_ftype): Adjust it.
12482 (struct target_ops) <to_xfer_partial>: Return
12483 target_xfer_status. Add argument xfered_len. Update
12485 * target.c (target_xfer_error_to_string): Rename to ...
12486 (target_xfer_status_to_string): ... it. New. All callers
12488 (target_read_live_memory): Likewise. Call target_xfer_partial
12489 instead of target_read.
12490 (memory_xfer_live_readonly_partial): Return
12491 target_xfer_status. Add argument xfered_len.
12492 (raw_memory_xfer_partial): Likewise.
12493 (memory_xfer_partial_1): Likewise.
12494 (memory_xfer_partial): Likewise.
12495 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12496 properly. Update debug message.
12497 (default_xfer_partial, current_xfer_partial): Likewise.
12498 (target_write_partial): Likewise.
12499 (target_read_partial): Likewise. All callers updated.
12500 (read_whatever_is_readable): Likewise.
12501 (target_write_with_progress): Likewise.
12502 (target_read_alloc_1): Likewise.
12504 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12505 * auxv.c (procfs_xfer_auxv): Likewise.
12506 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12507 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12508 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12509 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12510 * corefile.c (read_memory): Adjust.
12511 * corelow.c (core_xfer_partial): Likewise.
12512 * ctf.c (ctf_xfer_partial): Likewise.
12513 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12515 (darwin_xfer_partial): Likewise.
12516 * exec.c (section_table_xfer_memory_partial): Likewise. All
12518 (exec_xfer_partial): Likewise.
12519 * exec.h (section_table_xfer_memory_partial): Update
12521 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12523 (gnu_xfer_partial): Likewise.
12524 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12525 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12526 (ia64_hpux_xfer_solib_got): Likewise.
12527 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12528 type of 'partial_len' to ULONGEST.
12529 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12530 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12531 (linux_nat_xfer_partial): Likewise.
12532 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12533 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12534 * monitor.c (monitor_xfer_memory): Likewise.
12535 (monitor_xfer_partial): Likewise.
12536 * procfs.c (procfs_xfer_partial): Likewise.
12537 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12538 * record-full.c (record_full_xfer_partial): Likewise.
12539 (record_full_core_xfer_partial): Likewise.
12540 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12541 (gdbsim_xfer_partial): Likewise.
12542 * remote.c (remote_write_bytes_aux): Likewise. All callers
12544 (remote_write_bytes, remote_read_bytes): Likewise. All
12546 (remote_flash_erase): Likewise. All callers updated.
12547 (remote_write_qxfer): Likewise. All callers updated.
12548 (remote_read_qxfer): Likewise. All callers updated.
12549 (remote_xfer_partial): Likewise.
12550 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12551 (rs6000_xfer_shared_libraries): Likewise.
12552 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12553 (sol_thread_xfer_partial): Likewise.
12554 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12555 (sparc_xfer_partial): Likewise.
12556 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12558 (spu_xfer_partial): Likewise.
12559 * spu-multiarch.c (spu_xfer_partial): Likewise.
12560 * tracepoint.c (tfile_xfer_partial): Likewise.
12561 * windows-nat.c (windows_xfer_memory): Likewise.
12562 (windows_xfer_shared_libraries): Likewise.
12563 (windows_xfer_partial): Likewise.
12564 * valprint.c: Replace 'target_xfer_error' with
12565 'target_xfer_status' in comments.
12567 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12569 Checked in by Joel Brobecker <brobecker@adacore.com>.
12570 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12572 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12574 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12575 function parameters.
12577 2014-02-10 Will Newton <will.newton@linaro.org>
12579 * elfread.c (elf_rel_plt_read): Look for a .got section if
12580 looking up .got.plt fails.
12581 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12582 on address passed to elf_gnu_ifunc_record_cache.
12583 (elf_gnu_ifunc_resolve_addr): Likewise.
12584 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12586 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12588 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12589 (X_RETTURN): New macro.
12590 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12592 * sparc64-tdep.c (sparc64_init_abi): Hook
12593 sparc_in_function_epilogue_p.
12595 2014-02-10 Gary Benson <gbenson@redhat.com>
12597 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12598 Rename name_matcher to symbol_matcher.
12600 2014-02-10 Gary Benson <gbenson@redhat.com>
12602 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12603 Use expand_symtabs_file_matcher_ftype and
12604 expand_symtabs_symbol_matcher_ftype.
12606 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12608 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12609 (struct ada_symbol_cache): New.
12610 (ada_free_symbol_cache): Forward declare.
12611 (struct ada_pspace_data): New.
12612 (ada_pspace_data_handle): New static global.
12613 (get_ada_pspace_data, ada_pspace_data_cleanup)
12614 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12615 (cache_space, cache): Delete, now folded inside struct
12617 (ada_get_symbol_cache): New function.
12618 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12620 (_initialize_ada_language): Remove initialization of cache_space.
12621 Move call to observer_attach_inferior_exit up, grouping it
12622 with the other observer registrations inside this function.
12623 Rename command to be more general. Add call to
12624 register_program_space_data_with_cleanup.
12626 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12628 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12629 ada_new_objfile_observer.
12630 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12631 (_initialize_tasks): Update uses of ada_new_objfile_observer
12632 and ada_tasks_normal_stop_observer.
12634 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12636 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12637 returned by the 'Length attribute to integer.
12639 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12641 * ada-lang.c (_initialize_ada_language): Initialize
12642 cache_space obstack.
12644 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12646 * ada-lang.c (HASH_SIZE): New macro.
12647 (struct cache_entry): New type.
12648 (cache_space, cache): New static globals.
12649 (ada_clear_symbol_cache, find_entry): New functions.
12650 (lookup_cached_symbol, cache_symbol): Implement.
12651 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12652 (_initialize_ada_language): Attach ada_new_objfile_observer
12653 and ada_free_objfile_observer.
12655 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12657 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12658 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12659 struct block * parameter.
12660 (ada_lookup_symbol_list_worker): Constify local variable "block".
12661 Remove cast which is no longer necessary.
12663 2014-02-10 Doug Evans <xdje42@gmail.com>
12665 Add Guile as an extension language.
12666 * NEWS: Mention Guile scripting.
12667 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12668 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12669 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12670 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12671 (CLIBS): Add GUILE_LIBS.
12672 (install-guile): New rule.
12673 (guile.o): New rule.
12674 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12675 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12676 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12677 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12678 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12679 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12680 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12681 * configure.ac: New option --with-guile.
12682 * configure: Regenerate.
12683 * config.in: Regenerate.
12684 * auto-load.c: Remove #include "python/python.h". Add #include
12685 "gdb/section-scripts.h".
12686 (source_section_scripts): Handle Guile scripts.
12687 (_initialize_auto_load): Add name of Guile objfile script to
12688 scripts-directory help text.
12689 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12690 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12691 (struct breakpoint): New member scm_bp_object.
12692 * defs.h (enum command_control_type): New value guile_control.
12693 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12695 (show_user): Update comment.
12696 (_initialize_cli_cmds): Update help text for "show user". Update help
12697 text for max-user-call-depth.
12698 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12700 (multi_line_command_p): Add guile_control.
12701 (print_command_lines): Handle guile_control.
12702 (execute_control_command, recurse_read_control_structure): Ditto.
12703 (process_next_line): Recognize "guile" commands.
12704 * disasm.c (gdb_disassemble_info): Make non-static.
12705 * disasm.h: #include "dis-asm.h".
12706 (struct gdbarch): Add forward decl.
12707 (gdb_disassemble_info): Declare.
12708 * extension.c: #include "guile/guile.h".
12709 (extension_languages): Add guile.
12710 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12711 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12712 * gdbtypes.c (get_unsigned_type_max): New function.
12713 (get_signed_type_minmax): New function.
12714 * gdbtypes.h (get_unsigned_type_max): Declare.
12715 (get_signed_type_minmax): Declare.
12716 * guile/README: New file.
12717 * guile/guile-internal.h: New file.
12718 * guile/guile.c: New file.
12719 * guile/guile.h: New file.
12720 * guile/scm-arch.c: New file.
12721 * guile/scm-auto-load.c: New file.
12722 * guile/scm-block.c: New file.
12723 * guile/scm-breakpoint.c: New file.
12724 * guile/scm-disasm.c: New file.
12725 * guile/scm-exception.c: New file.
12726 * guile/scm-frame.c: New file.
12727 * guile/scm-gsmob.c: New file.
12728 * guile/scm-iterator.c: New file.
12729 * guile/scm-lazy-string.c: New file.
12730 * guile/scm-math.c: New file.
12731 * guile/scm-objfile.c: New file.
12732 * guile/scm-ports.c: New file.
12733 * guile/scm-pretty-print.c: New file.
12734 * guile/scm-safe-call.c: New file.
12735 * guile/scm-string.c: New file.
12736 * guile/scm-symbol.c: New file.
12737 * guile/scm-symtab.c: New file.
12738 * guile/scm-type.c: New file.
12739 * guile/scm-utils.c: New file.
12740 * guile/scm-value.c: New file.
12741 * guile/lib/gdb.scm: New file.
12742 * guile/lib/gdb/boot.scm: New file.
12743 * guile/lib/gdb/experimental.scm: New file.
12744 * guile/lib/gdb/init.scm: New file.
12745 * guile/lib/gdb/iterator.scm: New file.
12746 * guile/lib/gdb/printing.scm: New file.
12747 * guile/lib/gdb/types.scm: New file.
12748 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12749 (VPATH): Add $(GUILE_SRCDIR).
12750 (GUILE_DIR): New variable.
12751 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12752 (all): Add stamp-guile dependency.
12753 (stamp-guile): New rule.
12754 (clean-guile, install-guile, uninstall-guile): New rules.
12755 (install-only): Add install-guile dependency.
12756 (uninstall): Add uninstall-guile dependency.
12757 (clean): Add clean-guile dependency.
12759 2014-02-09 Doug Evans <xdje42@gmail.com>
12761 Revert this patch (which I approved, mea culpa).
12763 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12765 * Makefile.in (all-lib): Remove.
12766 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12768 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12770 Fix Python stack corruption.
12771 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12774 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12776 * Makefile.in (all-lib): Remove.
12777 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12779 2014-02-07 Doug Evans <dje@google.com>
12781 * extension-priv.h (extension_language_script_ops): Add comment.
12782 (extension_language_ops): Add comment.
12783 (active_ext_lang_state): Fix typo in comment.
12785 2014-02-07 Pedro Alves <palves@redhat.com>
12787 PR breakpoints/16292
12788 * infrun.c (handle_signal_stop) <signal arrives while stepping
12789 over a breakpoint>: Switch back to the stepping thread.
12791 2014-02-07 Yao Qi <yao@codesourcery.com>
12793 * target.c (target_xfer_partial): Return zero if LEN is zero.
12795 2014-02-07 Yao Qi <yao@codesourcery.com>
12797 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12798 (ld_so_xfer_auxv): Likewise.
12799 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12800 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12801 * corelow.c (core_xfer_partial): Likewise.
12802 * ctf.c (ctf_xfer_partial): Likewise.
12803 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12804 (darwin_xfer_partial): Likewise.
12805 * exec.c (exec_xfer_partial): Likewise.
12806 * gnu-nat.c (gnu_xfer_partial): Likewise.
12807 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12808 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12809 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12810 * linux-nat.c (linux_xfer_siginfo): Likewise.
12811 (linux_proc_xfer_spu): Likewise.
12812 * procfs.c (procfs_xfer_partial): Likewise.
12813 * record-full.c (record_full_xfer_partial): Likewise.
12814 (record_full_core_xfer_partial): Likewise.
12815 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12816 * remote.c (remote_write_qxfer): Likewise.
12817 (remote_write_qxfer, remote_read_qxfer): Likewise.
12818 (remote_xfer_partial): Likewise.
12819 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12820 (rs6000_xfer_shared_libraries): Likewise.
12821 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12822 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12823 (spu_xfer_partial): Likewise.
12824 * target.c (memory_xfer_partial_1): Likewise.
12825 * tracepoint.c (tfile_xfer_partial): Likewise.
12826 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12827 (windows_xfer_partial): Likewise.
12829 2014-02-07 Yao Qi <yao@codesourcery.com>
12831 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12833 (core_xfer_shared_libraries_aix): Likewise.
12834 * gdbarch.c, gdbarch.h: Regenerated.
12835 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12836 ULONGEST. Change 'len_avail' type to ULONGEST.
12837 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12838 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12840 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12842 2014-02-07 Yao Qi <yao@codesourcery.com>
12844 * corefile.c (memory_error): Get 'exception' from ERR and pass
12845 'exception' to throw_error.
12847 2014-02-06 Doug Evans <xdje42@gmail.com>
12849 * configure.ac (libpython checking): Remove all but python.o from
12850 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12851 * configure: Regenerate.
12853 * Makefile.in (SFILES): Add extension.c.
12854 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12855 (COMMON_OBS): Add extension.o.
12856 * extension.h: New file.
12857 * extension-priv.h: New file.
12858 * extension.c: New file.
12860 * python/python-internal.h: #include "extension.h".
12861 (gdbpy_auto_load_enabled): Declare.
12862 (gdbpy_apply_val_pretty_printer): Declare.
12863 (gdbpy_apply_frame_filter): Declare.
12864 (gdbpy_preserve_values): Declare.
12865 (gdbpy_breakpoint_cond_says_stop): Declare.
12866 (gdbpy_breakpoint_has_cond): Declare.
12867 (void source_python_script_for_objfile): Delete.
12868 * python/python.c: #include "extension-priv.h".
12869 Delete inclusion of "observer.h".
12870 (extension_language_python): Moved here and renamed from
12871 script_language_python in py-auto-load.c.
12872 Redefined to be of type extension_language_defn.
12873 (python_extension_script_ops): New global.
12874 (python_extension_ops): New global.
12875 (struct python_env): New member previous_active.
12876 (restore_python_env): Call restore_active_ext_lang.
12877 (ensure_python_env): Call set_active_ext_lang.
12878 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12880 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12882 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12884 (gdbpy_eval_from_control_command): Renamed from
12885 eval_python_from_control_command, made static. New arg extlang.
12886 (gdbpy_source_script) Renamed from source_python_script, made static.
12888 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12889 result to int. New arg extlang.
12890 (gdbpy_source_objfile_script): Renamed from
12891 source_python_script_for_objfile, made static. New arg extlang.
12892 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12893 static. New args extlang, extlang_printers. Change result type to
12895 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12896 static. New arg extlang. Rename arg printers to extlang_printers
12897 and change type to ext_lang_type_printers *.
12898 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12899 static. Replace argument arg with extlang, extlang_printers.
12900 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12901 (!HAVE_PYTHON, source_python_script): Delete.
12902 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12903 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12904 (!HAVE_PYTHON, start_type_printers): Delete.
12905 (!HAVE_PYTHON, apply_type_printers): Delete.
12906 (!HAVE_PYTHON, free_type_printers): Delete.
12907 (_initialize_python): Delete call to observer_attach_before_prompt.
12908 (finalize_python): Set/restore active extension language.
12909 (gdbpy_finish_initialization) Renamed from
12910 finish_python_initialization, made static. New arg extlang.
12911 (gdbpy_initialized): New function.
12912 * python/python.h: #include "extension.h". Delete #include
12913 "value.h", "mi/mi-cmds.h".
12914 (extension_language_python): Declare.
12915 (GDBPY_AUTO_FILE_NAME): Delete.
12916 (enum py_bt_status): Moved to extension.h and renamed to
12917 ext_lang_bt_status.
12918 (enum frame_filter_flags): Moved to extension.h.
12919 (enum py_frame_args): Moved to extension.h and renamed to
12920 ext_lang_frame_args.
12921 (finish_python_initialization): Delete.
12922 (eval_python_from_control_command): Delete.
12923 (source_python_script): Delete.
12924 (apply_val_pretty_printer): Delete.
12925 (apply_frame_filter): Delete.
12926 (preserve_python_values): Delete.
12927 (gdbpy_script_language_defn): Delete.
12928 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12929 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12931 * auto-load.c: #include "extension.h".
12932 (GDB_AUTO_FILE_NAME): Delete.
12933 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12934 (script_language_gdb): Delete, moved to extension.c and renamed to
12935 extension_language_gdb.
12936 (source_gdb_script_for_objfile): Delete.
12937 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12938 (loaded_script): Change type of language member to
12939 struct extension_language_defn *.
12940 (init_loaded_scripts_info): Initialize
12941 unsupported_script_warning_printed.
12942 (maybe_add_script): Make static. Change type of language arg to
12943 struct extension_language_defn *.
12944 (clear_section_scripts): Reset unsupported_script_warning_printed.
12945 (auto_load_objfile_script_1): Rewrite to use extension language API.
12946 (auto_load_objfile_script): Make public. Remove support-compiled-in
12947 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12948 (source_section_scripts): Rewrite to use extension language API.
12949 (load_auto_scripts_for_objfile): Rewrite to use
12950 auto_load_scripts_for_objfile.
12951 (collect_matching_scripts_data): Change type of language member to
12952 struct extension_language_defn *.
12953 (auto_load_info_scripts): Change type of language arg to
12954 struct extension_language_defn *.
12955 (unsupported_script_warning_print): New function.
12956 (script_not_found_warning_print): Make static.
12957 (_initialize_auto_load): Rewrite construction of scripts-directory
12959 * auto-load.h (struct objfile): Add forward decl.
12960 (struct script_language): Delete.
12961 (struct auto_load_pspace_info): Add forward decl.
12962 (struct extension_language_defn): Add forward decl.
12963 (maybe_add_script): Delete.
12964 (auto_load_objfile_script): Declare.
12965 (script_not_found_warning_print): Delete.
12966 (auto_load_info_scripts): Update prototype.
12967 (auto_load_gdb_scripts_enabled): Declare.
12968 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12969 auto_load_python_scripts_enabled and made public.
12970 (script_language_python): Delete, moved to python.c.
12971 (gdbpy_script_language_defn): Delete.
12972 (info_auto_load_python_scripts): Update to use
12973 extension_language_python.
12975 * breakpoint.c (condition_command): Replace call to
12976 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12977 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12978 with call to breakpoint_ext_lang_cond_says_stop.
12979 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12980 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12981 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12982 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12984 (local_setattro): Print name of extension language with existing
12987 * valprint.c (val_print, value_print): Update to call
12988 apply_ext_lang_val_pretty_printer.
12989 * cp-valprint.c (cp_print_value): Update call to
12990 apply_ext_lang_val_pretty_printer.
12991 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12992 (gdbpy_apply_val_pretty_printer): Renamed from
12993 apply_val_pretty_printer. New arg extlang.
12994 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12996 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12997 extension language API.
12998 * cli/cli-script.c (execute_control_command): Update to call
12999 eval_ext_lang_from_control_command.
13001 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13002 enum ext_lang_bt_status values. Update call to
13003 apply_ext_lang_frame_filter.
13004 (mi_cmd_stack_list_locals): Ditto.
13005 (mi_cmd_stack_list_args): Ditto.
13006 (mi_cmd_stack_list_variables): Ditto.
13007 * mi/mi-main.c: Delete #include "python/python-internal.h".
13008 Add #include "extension.h".
13009 (mi_cmd_list_features): Replace reference to python internal variable
13010 gdb_python_initialized with call to ext_lang_initialized_p.
13012 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13013 Update to use enum ext_lang_frame_args. Update to call
13014 apply_ext_lang_frame_filter.
13015 * python/py-framefilter.c (extract_sym): Update to use enum
13016 ext_lang_bt_status.
13017 (extract_value, py_print_type, py_print_value): Ditto.
13018 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13019 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13020 (py_print_frame): Ditto.
13021 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13022 New arg extlang. Update to use enum ext_lang_bt_status.
13024 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13025 finish_python_initialization. Replace with call to
13026 finish_ext_lang_initialization.
13028 * typeprint.c (do_free_global_table): Update to call
13029 free_ext_lang_type_printers.
13030 (create_global_typedef_table): Update to call
13031 start_ext_lang_type_printers.
13032 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13033 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13034 (type_print_options): Change type of global_printers from "void *"
13035 to "struct ext_lang_type_printers *".
13037 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13038 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13039 (gdbpy_preserve_values): Renamed from preserve_python_values.
13041 (!HAVE_PYTHON, preserve_python_values): Delete.
13043 * utils.c (quit_flag): Delete, moved to extension.c.
13044 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13047 * eval.c: Delete #include "python/python.h".
13048 * main.c: Delete #include "python/python.h".
13050 * defs.h: Update comment.
13052 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13056 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13058 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13061 2014-02-05 Yao Qi <yao@codesourcery.com>
13063 * remote.c (remote_pass_signals): Remove local 'buf' and use
13065 (remote_program_signals): Likewise.
13067 2014-02-05 Yao Qi <yao@codesourcery.com>
13069 * ctf.c: Include "inferior.h" and "gdbthread.h".
13070 (CTF_PID): A new macro.
13071 (ctf_open): Call inferior_appeared and add_thread_silent.
13072 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13073 (ctf_thread_alive): New function.
13074 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13076 2014-02-05 Yao Qi <yao@codesourcery.com>
13080 2013-05-24 Yao Qi <yao@codesourcery.com>
13082 * tracepoint.c (TFILE_PID): Remove.
13083 (tfile_open): Don't add thread and inferior.
13084 (tfile_close): Don't set 'inferior_ptid'. Don't call
13085 exit_inferior_silent.
13086 (tfile_thread_alive): Remove.
13087 (init_tfile_ops): Don't set field 'to_thread_alive' of
13090 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13092 * remote.c (remote_start_remote): Call remote_check_symbols even
13093 if only symbol-file (not file) has been given.
13095 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13097 * gdbarch.sh (skip_entrypoint): New callback.
13098 * gdbarch.c, gdbarch.h: Regenerate.
13099 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13100 * infrun.c (fill_in_stop_func): Likewise.
13101 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13102 (ppc_elfv2_elf_make_msymbol_special): New function.
13103 (ppc_elfv2_skip_entrypoint): Likewise.
13104 (ppc_linux_init_abi): Install them for ELFv2.
13106 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13108 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13109 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13110 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13111 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13112 structures returned in GPRs.
13114 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13116 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13117 offset to the stack parameter list for the ELFv2 ABI.
13119 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13121 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13122 set_gdbarch_convert_from_func_ptr_addr and
13123 set_gdbarch_elf_make_msymbol_special for ELFv1.
13124 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13125 function descriptors on ELFv1.
13126 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13127 set up r12 at function entry.
13129 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13131 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13132 (struct gdbarch_tdep): New member elf_abi.
13134 * rs6000-tdep.c: Include "elf/ppc64.h".
13135 (rs6000_gdbarch_init): Detect ELF ABI version.
13137 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13139 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13140 within a register pair holding a DFP 128-bit value on little-endian.
13141 (ppc64_sysv_abi_return_value_base): Likewise.
13142 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13143 (dfp_pseudo_register_write): Likewise.
13145 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13147 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13148 offset on little-endian when passing _Decimal32.
13149 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13151 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13153 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13154 of the overlapped FP register within the VSX register on little-
13156 (efpr_pseudo_register_write): Likewise.
13158 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13160 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13161 offset on little-endian when passing small structures.
13163 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13165 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13166 (struct ppc64_sysv_argpos): New data structure.
13167 (ppc64_sysv_abi_push_float): Remove.
13168 (ppc64_sysv_abi_push_val): New function.
13169 (ppc64_sysv_abi_push_integer): Likewise.
13170 (ppc64_sysv_abi_push_freg): Likewise.
13171 (ppc64_sysv_abi_push_vreg): Likewise.
13172 (ppc64_sysv_abi_push_param): Likewise.
13173 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13174 (ppc64_sysv_abi_return_value_base): New function.
13175 (ppc64_sysv_abi_return_value): Refactor to use it.
13177 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13179 * NEWS: Document new target powerpc64le-*-linux*.
13181 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13183 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13184 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13186 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13187 register set used in ELF core dumps. Add floating-point register set.
13189 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13191 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13192 dwarf2_to_gdb[] table using symbolic constants. Adjust
13193 penultimate entry from number representing the PC register
13194 to symbolic constant representing the MDR register. Add
13195 constant for the PC register to the end of the table.
13197 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13199 * bsd-kvm.c: Include <sys/param.h>
13201 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13203 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13205 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13207 * ada-lang.h (clear_ada_sym_cache): Delete.
13209 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13211 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13213 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13215 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13216 the sigreturn register save area only if the syscall is
13219 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13221 * valops.c (value_slice): Minor reformatting.
13223 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13225 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13227 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13229 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13230 New static globals.
13231 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13232 (ada_ignore_descriptive_types_p): New static global.
13233 (find_parallel_type_by_descriptive_type): Return immediately
13234 if ada_ignore_descriptive_types_p is set.
13235 (_initialize_ada_language): Register new commands "maintenance
13236 set ada", "maintenance show ada", "maintenance set ada
13237 ignore-descriptive-types" and "maintenance show ada
13238 ignore-descriptive-types".
13239 * NEWS: Add entry for new "maint ada set/show
13240 ignore-descriptive-types" commands.
13242 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13244 * record-btrace.c (record_btrace_close): Call btrace_teardown
13247 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13249 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13252 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13254 * ada-typeprint (type_is_full_subrange_of_target_type):
13256 (print_range): Add parameter bounds_prefered_p. If not set,
13257 try printing range types using the name of their base type.
13258 (print_range_type): Add parameter bounds_prefered_p.
13259 Use it in call to print_range.
13260 (print_array_type, ada_print_type): Update calls to print_range
13261 and print_range_type.
13263 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13265 * ada-typeprint.c (print_array_type, print_choices, print_range)
13266 (print_range_bound, print_dynamic_range_bound, print_range_type):
13267 Remove declaration.
13269 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13271 * ada-typeprint.c (print_range): Add missing empty line
13272 after local declaration.
13274 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13276 * ada-valprint.c (print_optional_low_bound): Get index_type's
13277 target type for as long as it is a TYPE_CODE_RANGE.
13279 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13281 * procfs.c (procfs_make_note_section): Remove assertion and
13282 associated comment.
13284 2014-01-24 Yao Qi <yao@codesourcery.com>
13286 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13287 * corelow.c (get_core_siginfo): Likewise.
13289 2014-01-24 Yao Qi <yao@codesourcery.com>
13291 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13292 ULONGEST. Don't check 'len' is negative.
13293 (remote_write_bytes): Change type of 'len' to ULONGEST.
13295 2014-01-23 Tom Tromey <tromey@redhat.com>
13298 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13299 Handle exception from frame.block.
13300 (FrameVars.fetch_frame_locals): Likewise.
13302 2014-01-23 Tom Tromey <tromey@redhat.com>
13305 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13306 on a NULL pointer. Move "goto error" to correct place.
13308 2014-01-23 Tom Tromey <tromey@redhat.com>
13311 * python/py-framefilter.c (apply_frame_filter): Call
13312 ensure_python_env after computing gdbarch.
13314 2014-01-23 Yao Qi <yao@codesourcery.com>
13316 * target.c (raw_memory_xfer_partial): Change argument type
13317 from void * to gdb_byte *.
13318 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13320 2014-01-22 Doug Evans <dje@google.com>
13322 New gdbserver option --debug-format=timestamp.
13323 * NEWS: Mention it.
13325 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13327 * syscalls/s390x-linux.xml: New file.
13328 * syscalls/s390-linux.xml: New file.
13329 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13330 (XML_SYSCALL_FILENAME_S390X): Likewise.
13331 (op_svc): New enum value for SVC opcode.
13332 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13333 (s390_linux_get_syscall_number): New function.
13334 (s390_gdbarch_init): Register '*get_syscall_number' and the
13335 syscall xml file name.
13336 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13337 "s390-linux.xml" and "s390x-linux.xml".
13338 * NEWS: Announce new feature.
13340 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13342 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13344 2014-01-22 Pedro Alves <palves@redhat.com>
13346 * xtensa-config.c: Include defs.h.
13348 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13350 * common/common-utils.h: Add "ARI:" comment beside __func__
13353 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13355 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13356 documentation a bit.
13358 2014-01-21 Roland McGrath <mcgrathr@google.com>
13360 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13361 * configure: Regenerate.
13362 * aclocal.m4: Regenerate.
13363 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13364 New substituted variables.
13365 (install-strip): New target.
13366 (INSTALL_SCRIPT): New substituted variable.
13367 (FLAGS_TO_PASS): Add it.
13368 (install-only): Use $(INSTALL_SCRIPT) rather than
13369 $(INSTALL_PROGRAM) for gcore.
13371 2014-01-20 Tom Tromey <tromey@redhat.com>
13373 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13376 2014-01-20 Tom Tromey <tromey@redhat.com>
13378 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13379 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13380 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13381 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13382 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13383 (struct cmd_list_element) <flags>: Remove.
13384 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13385 doc_allocated>: New fields.
13386 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13388 * maint.c (maintenance_do_deprecate): Update.
13389 * top.c (execute_command): Update.
13391 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13393 * xtensa-linux-nat.c: Include asm/ptrace.h.
13395 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13397 * Makefile.in (SFILES): Add d-support.c.
13398 (COMMON_OBS): Add d-support.o.
13399 * d-lang.h (d_parse_symbol): Add comment, now defined in
13401 * d-lang.c (parse_call_convention)
13402 (parse_attributes, parse_function_types)
13403 (parse_function_args, parse_type, parse_identifier)
13404 (call_convention_p, d_parse_symbol): Move functions to ...
13405 * d-support.c: ... New file.
13407 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13409 * d-lang.h (d_parse_symbol): Add declaration.
13410 * d-lang.c (extract_identifiers)
13411 (extract_type_info): Remove functions.
13412 (parse_call_convention, parse_attributes)
13413 (parse_function_types, parse_function_args)
13414 (parse_type, parse_identifier, call_convention_p)
13415 (d_parse_symbol): New functions.
13416 (d_demangle): Use d_parse_symbol to demangle D symbols.
13418 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13420 * d-lang.h (struct builtin_d_type): New data type.
13421 (builtin_d_type): Add declaration.
13422 * d-lang.c (d_language_arch_info, build_d_types)
13423 (builtin_d_type): New functions.
13424 (enum d_primitive_types): New data type.
13425 (d_language_defn): Change c_language_arch_info to
13426 d_language_arch_info.
13427 (d_type_data): New static variable.
13428 (_initialize_d_language): Initialize d_type_data.
13430 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13432 * d-lang.h (d_main_name): Add declaration.
13433 * d-lang.c (d_main_name): New function.
13434 * symtab.c (find_main_name): Add call to d_main_name.
13436 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13438 * d-lang.c (d_language_defn): Change macro_expansion_c to
13439 macro_expansion_no.
13441 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13443 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13445 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13447 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13448 gdb_exception" declaration.
13449 * remote.c (getpkt_or_notif_sane): Likewise.
13451 2014-01-17 Doug Evans <dje@google.com>
13453 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13454 function, contents of dirnames_to_char_ptr_vec_append moved here.
13455 (delim_string_to_char_ptr_vec): New function.
13456 (dirnames_to_char_ptr_vec_append): Rewrite.
13457 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13459 2014-01-17 Doug Evans <dje@google.com>
13461 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13463 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13464 #include "common-utils.h".
13465 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13466 * common/vec.h (VEC_ASSERT_PASS): Update.
13467 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13468 (MACH_CHECK_ERROR): Update.
13470 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13472 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13474 * gdbarch.h: Regenerate.
13476 2014-01-16 Tom Tromey <tromey@redhat.com>
13478 * value.c (struct value) <regnum>: Move earlier.
13480 2014-01-16 Tom Tromey <tromey@redhat.com>
13482 * remote.c (extended_remote_create_inferior): Rename from
13483 extended_remote_create_inferior_1. Add "ops" argument. Remove
13484 old implementation.
13486 2014-01-16 Pedro Alves <palves@redhat.com>
13488 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13489 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13492 2014-01-16 Doug Evans <dje@google.com>
13494 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13496 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13498 * btrace.h (btrace_thread_flag): New.
13499 (struct btrace_thread_info) <flags>: New.
13500 * record-btrace.c (record_btrace_resume_thread)
13501 (record_btrace_find_thread_to_move, btrace_step_no_history)
13502 (btrace_step_stopped, record_btrace_start_replaying)
13503 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13504 (record_btrace_find_resume_thread): New.
13505 (record_btrace_resume, record_btrace_wait): Extend.
13506 (record_btrace_can_execute_reverse): New.
13507 (record_btrace_open): Fail in non-stop mode.
13508 (record_btrace_set_replay): Split into this, ...
13509 (record_btrace_stop_replaying): ... this, ...
13510 (record_btrace_clear_histories): ... and this.
13511 (init_record_btrace_ops): Init to_can_execute_reverse.
13512 * NEWS: Announce it.
13514 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13516 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13517 (forward_target_decr_pc_after_break)
13518 (target_decr_pc_after_break): New.
13519 * target.c (forward_target_decr_pc_after_break)
13520 (target_decr_pc_after_break): New.
13521 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13522 instead of gdbarch_decr_pc_after_break.
13523 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13524 instead of gdbarch_decr_pc_after_break.
13525 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13526 instead of gdbarch_decr_pc_after_break.
13527 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13528 instead of gdbarch_decr_pc_after_break.
13529 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13530 instead of gdbarch_decr_pc_after_break.
13531 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13532 instead of gdbarch_decr_pc_after_break.
13534 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13536 * btrace.c: Include regcache.h.
13537 (btrace_add_pc): New.
13538 (btrace_enable): Call btrace_add_pc.
13539 (btrace_is_empty): New.
13540 * btrace.h (btrace_is_empty): New.
13541 * record-btrace.c (require_btrace, record_btrace_info): Call
13544 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13546 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13547 Support delta reads.
13548 (linux_disable_btrace): Change return type.
13549 * common/linux-btrace.h (linux_read_btrace): Change parameters
13550 and return type to allow error reporting. Update users.
13551 (linux_disable_btrace): Change return type. Update users.
13552 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13554 (btrace_error): New.
13555 (btrace_block) <begin>: Comment on BEGIN == 0.
13556 * btrace.c (btrace_compute_ftrace): Start from the end of
13558 (btrace_stitch_trace, btrace_clear_history): New.
13559 (btrace_fetch): Read delta trace, return if replaying.
13560 (btrace_clear): Move clear history code to btrace_clear_history.
13561 (parse_xml_btrace): Throw an error if parsing failed.
13562 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13563 and return type to allow error reporting.
13564 (target_read_btrace): Change parameters and return type to allow
13566 * target.c (target_read_btrace): Update.
13567 * remote.c (remote_read_btrace): Support delta reads. Pass
13569 * NEWS: Announce it.
13571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13573 * record.h (record_btrace_frame_unwind)
13574 (record_btrace_tailcall_frame_unwind): New declarations.
13575 * dwarf2-frame: Include record.h
13576 (dwarf2_frame_cfa): Throw an error for btrace frames.
13577 * record-btrace.c: Include hashtab.h.
13578 (btrace_get_bfun_name): New.
13579 (btrace_call_history): Call btrace_get_bfun_name.
13580 (struct btrace_frame_cache): New.
13582 (bfcache_hash, bfcache_eq, bfcache_new): New.
13583 (btrace_get_frame_function): New.
13584 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13585 (record_btrace_frame_this_id): Compute own id.
13586 (record_btrace_frame_prev_register): Provide PC, throw_error
13587 for all other registers.
13588 (record_btrace_frame_sniffer): Detect btrace frames.
13589 (record_btrace_tailcall_frame_sniffer): New.
13590 (record_btrace_frame_dealloc_cache): New.
13591 (record_btrace_frame_unwind): Add new functions.
13592 (record_btrace_tailcall_frame_unwind): New.
13593 (_initialize_record_btrace): Allocate cache.
13594 * btrace.c (btrace_clear): Call reinit_frame_cache.
13595 * NEWS: Announce it.
13597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13599 * record-btrace.c (record_btrace_set_replay)
13600 (record_btrace_goto_begin, record_btrace_goto_end)
13601 (record_btrace_goto): New.
13602 (init_record_btrace_ops): Initialize them.
13603 * NEWS: Announce it.
13605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13607 * record-btrace.c (record_btrace_find_new_threads)
13608 (record_btrace_thread_alive): New.
13609 (init_record_btrace_ops): Initialize to_find_new_threads and
13612 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13614 * record-btrace.c (record_btrace_resume): New.
13615 (record_btrace_wait): New.
13616 (init_record_btrace_ops): Initialize to_wait and to_resume.
13618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13620 * record-btrace.c (record_btrace_xfer_partial)
13621 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13622 (record_btrace_allow_memory_access): New.
13623 (init_record_btrace_ops): Initialize new methods.
13624 * target.c (raw_memory_xfer_partial): Bail out if target reports
13625 that this memory is not available.
13627 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13629 * target.h (target_ops) <to_insert_breakpoint>
13630 <to_remove_breakpoint>: Add target_ops parameter.
13631 (forward_target_insert_breakpoint): New.
13632 (forward_target_remove_breakpoint): New.
13633 (memory_remove_breakpoint, memory_insert_breakpoint):
13634 Add target_ops parameter.
13635 * target.c (target_insert_breakpoint): Split into this and ...
13636 (forward_target_insert_breakpoint): ... this.
13637 (target_remove_breakpoint): Split into this and ...
13638 (forward_target_remove_breakpoint): ... this.
13639 (debug_to_insert_breakpoint): Add target_ops parameter.
13640 Call forward_target_insert_breakpoint.
13641 (debug_to_remove_breakpoint): Add target_ops parameter.
13642 Call forward_target_remove_breakpoint.
13643 (update_current_target): Do not inherit or default to_insert_breakpoint
13644 and to_remove_breakpoint.
13645 * corelow.c (ignore): Add target_ops parameter.
13646 * exec.c (ignore): Add target_ops parameter.
13647 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13648 Add target_ops parameter.
13649 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13650 Add target_ops parameter.
13651 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13652 Add target_ops parameter.
13653 * record-full.c (record_full_beneath_to_insert_breakpoint)
13654 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13655 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13656 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13657 (record_full_core_remove_breakpoint): Add target_ops parameter.
13659 (record_full_beneath_to_insert_breakpoint_ops)
13660 (record_full_beneath_to_remove_breakpoint_ops)
13661 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13662 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13663 tmp_to_remove_breakpoint_ops,
13664 record_full_beneath_to_insert_breakpoint_ops, and
13665 record_full_beneath_to_remove_breakpoint_ops.
13666 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13667 (m32r_remove_breakpoint): Add target_ops parameter.
13668 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13669 Add target_ops parameter.
13670 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13671 Add target_ops parameter.
13673 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13674 Markus Metzger <markus.t.metzger@intel.com>
13676 * record-btrace.c: Include frame-unwind.h.
13677 (record_btrace_frame_unwind_stop_reason)
13678 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13679 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13681 (init_record_btrace_ops): Install it.
13683 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13685 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13688 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13690 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13693 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13695 * frame-unwind.c: Include target.h.
13696 (frame_unwind_try_unwinder): New function with code from ...
13697 (frame_unwind_find_by_frame): ... here. New variable
13698 unwinder_from_target, call also target_get_unwinder)
13699 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13700 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13701 * target.h (struct target_ops): New fields to_get_unwinder and
13702 to_get_tailcall_unwinder.
13703 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13705 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13707 * record-btrace.c (record_btrace_fetch_registers)
13708 (record_btrace_store_registers)
13709 (record_btrace_to_prepare_to_store): New.
13710 (init_record_btrace_ops): Add the above.
13712 2014-01-16 Tom Tromey <tromey@redhat.com>
13714 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13715 * target.h (struct target_ops) <to_prepare_to_store>: Add
13717 (target_prepare_to_store): Add argument.
13718 * target.c (debug_to_prepare_to_store): Add argument.
13719 (update_current_target): Update.
13720 * remote.c (remote_prepare_to_store): Add 'self' argument.
13721 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13722 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13723 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13724 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13726 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13727 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13728 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13729 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13730 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13734 * btrace.h (replay) <replay>: New.
13735 (btrace_is_replaying): New.
13736 * btrace.c (btrace_clear): Free replay iterator.
13737 (btrace_is_replaying): New.
13738 * record-btrace.c (record_btrace_is_replaying): New.
13739 (record_btrace_info): Print insn number if replaying.
13740 (record_btrace_insn_history): Start at replay position.
13741 (record_btrace_call_history): Start at replay position.
13742 (init_record_btrace_ops): Init to_record_is_replaying.
13744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13746 * record-btrace.c (record_btrace_insn_history_range): Include
13748 (record_btrace_insn_history_from): Adjust range.
13749 (record_btrace_call_history_range): Include
13751 (record_btrace_call_history_from): Adjust range.
13752 * NEWS: Announce changes.
13754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13756 * record.h (enum record_print_flag)
13757 <record_print_indent_calls>: New.
13758 * record.c (get_call_history_modifiers): Recognize /c modifier.
13759 (_initialize_record): Document /c modifier.
13760 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13761 Reorder fields. Optionally indent the function name. Update
13763 * NEWS: Announce changes.
13765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13767 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13771 * btrace.c (ftrace_new_function): Start counting at one.
13772 * record-btrace.c (record_btrace_info): Adjust number of calls
13774 * NEWS: Announce it.
13776 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13778 * record-btrace.c (btrace_call_history_insn_range): Print
13779 insn range as [begin, end].
13781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13783 * btrace.h (struct btrace_func_link): New.
13784 (enum btrace_function_flag): New.
13785 (struct btrace_inst): Rename to ...
13786 (struct btrace_insn): ...this. Update all users.
13787 (struct btrace_func) <ibegin, iend>: Remove.
13788 (struct btrace_func_link): New.
13789 (struct btrace_func): Rename to ...
13790 (struct btrace_function): ...this. Update all users.
13791 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13792 (number, level, flags>: New.
13793 (struct btrace_insn_iterator): Rename to ...
13794 (struct btrace_insn_history): ...this.
13796 (struct btrace_insn_iterator, btrace_call_iterator): New.
13797 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13798 (struct btrace_target_info) <begin, end, level>
13799 <insn_history, call_history>: New.
13800 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13801 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13802 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13803 (btrace_call_number, btrace_call_begin, btrace_call_end)
13804 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13805 (btrace_find_function_by_number, btrace_set_insn_history)
13806 (btrace_set_call_history): New.
13807 * btrace.c (btrace_init_insn_iterator)
13808 (btrace_init_func_iterator, compute_itrace): Remove.
13809 (ftrace_print_function_name, ftrace_print_filename)
13810 (ftrace_skip_file): Change
13811 parameter to const.
13812 (ftrace_init_func): Remove.
13813 (ftrace_debug): Use new btrace_function fields.
13814 (ftrace_function_switched): Also consider gaining and
13815 losing symbol information).
13816 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13817 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13818 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13820 (ftrace_new_function): Move. Remove debug print.
13821 (ftrace_update_lines, ftrace_update_insns): New.
13822 (ftrace_update_function): Check for call, ret, and jump.
13823 (compute_ftrace): Renamed to ...
13824 (btrace_compute_ftrace): ...this. Rewritten to compute call
13826 (btrace_fetch, btrace_clear): Updated.
13827 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13828 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13829 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13830 (btrace_call_number, btrace_call_begin, btrace_call_end)
13831 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13832 (btrace_find_function_by_number, btrace_set_insn_history)
13833 (btrace_set_call_history): New.
13834 * record-btrace.c (require_btrace): Use new btrace thread
13836 (record_btrace_info, btrace_insn_history)
13837 (record_btrace_insn_history, record_btrace_insn_history_range):
13838 Use new btrace thread info fields and new iterator.
13839 (btrace_func_history_src_line): Rename to ...
13840 (btrace_call_history_src_line): ...this. Use new btrace
13841 thread info fields.
13842 (btrace_func_history): Rename to ...
13843 (btrace_call_history): ...this. Use new btrace thread info
13844 fields and new iterator.
13845 (record_btrace_call_history, record_btrace_call_history_range):
13846 Use new btrace thread info fields and new iterator.
13848 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13850 * frame.h (frame_id_build_unavailable_stack_special): New.
13851 * frame.c (frame_id_build_unavailable_stack_special): New.
13853 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13855 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13856 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13857 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13859 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13860 (i386_insn_is_jump, i386_jmp_p): New.
13861 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13862 insn_is_jump to gdbarch.
13863 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13864 * gdbarch.h: Regenerated.
13865 * gdbarch.c: Regenerated.
13866 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13867 (default_insn_is_jump): New.
13868 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13869 (default_insn_is_jump): New.
13871 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13873 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13875 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13876 (btrace_read_type) <btrace_read_new>: Change to ...
13877 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13879 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13881 * common/linux-btrace.c (linux_read_btrace): Free trace from
13882 previous iteration.
13884 2014-01-15 Doug Evans <dje@google.com>
13886 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13889 2014-01-15 Tom Tromey <tromey@redhat.com>
13891 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13892 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13893 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13894 (set_objfile_main_name): New function.
13895 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13896 language_of_main>: New fields.
13897 (set_objfile_main_name): Declare.
13898 * symtab.c (find_main_name): Loop over objfiles to find the main
13900 (set_main_name): Now static.
13901 (get_main_info): Add comment.
13902 * symtab.h (set_main_name): Don't declare.
13904 2014-01-15 Tom Tromey <tromey@redhat.com>
13906 * symtab.c (main_progspace_key): New global.
13907 (struct main_info): New.
13908 (name_of_main, language_of_main): Remove.
13909 (get_main_info, main_info_cleanup): New function.
13910 (set_main_name, main_name, main_language): Use get_main_info.
13911 (_initialize_symtab): Initialize main_progspace_key.
13913 2014-01-15 Tom Tromey <tromey@redhat.com>
13915 * dbxread.c (process_one_symbol): Update.
13916 * dwarf2read.c (read_partial_die): Update.
13917 * symfile.c (set_initial_language): Call main_language.
13918 * symtab.c (language_of_main): Now static.
13919 (set_main_name): Add 'lang' parameter.
13920 (find_main_name): Update.
13921 (main_language): New function.
13922 (symtab_observer_executable_changed): Update.
13923 * symtab.h (set_main_name): Update.
13924 (language_of_main): Remove.
13925 (main_language): Declare.
13927 2014-01-15 Tom Tromey <tromey@redhat.com>
13929 * symfile.c (init_entry_point_info): Use new "initialized" field.
13931 * objfiles.h (struct entry_point) <initialized>: New field.
13932 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13933 (struct objfile) <ei>: ...here. Remove.
13934 * objfiles.c (entry_point_address_query): Update.
13936 2014-01-15 Tom Tromey <tromey@redhat.com>
13938 * objfiles.c (entry_point_address_query): Relocate entry point
13940 (objfile_relocate1): Do not relocate entry point address.
13941 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13942 <the_bfd_section_index>: New field.
13943 * symfile.c (init_entry_point_info): Find the entry point's
13946 2014-01-15 Tom Tromey <tromey@redhat.com>
13948 * solib-frv.c (enable_break): Use entry_point_address_query.
13950 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13952 * NEWS: Add note on improved process record-replay on
13953 arm*-linux* targets.
13955 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13957 * arm-tdep.c (enum arm_record_result): New enum.
13958 (arm_record_unsupported_insn): New function.
13959 (arm_record_coproc_data_proc): Removed.
13960 (thumb2_record_ld_st_multiple): New function.
13961 (thumb2_record_ld_st_dual_ex_tbb): New function.
13962 (thumb2_record_data_proc_sreg_mimm): New function.
13963 (thumb2_record_ps_dest_generic): New function.
13964 (thumb2_record_branch_misc_cntrl): New function.
13965 (thumb2_record_str_single_data): New function.
13966 (thumb2_record_ld_mem_hints): New function.
13967 (thumb2_record_ld_word): New function.
13968 (thumb2_record_lmul_lmla_div): New function.
13969 (thumb2_record_decode_insn_handler): New function.
13970 (decode_insn): Add thumb32 instruction handlers.
13972 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13974 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13975 (struct arm_linux_record_tdep): Declare.
13976 (arm_canonicalize_syscall): New function.
13977 (arm_all_but_pc_registers_record): New function.
13978 (arm_linux_syscall_record): New function.
13979 (arm_linux_init_abi): Add syscall recording constructs.
13980 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13981 decoding. (arm_record_coproc_data_proc): Update arm syscall
13983 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13984 <arm_syscall_record>: New field.
13985 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13988 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13990 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13991 register for push instruction recording.
13993 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13995 * arm-tdep.c (thumb_record_misc): Update to correct logical
13996 error while recording ldm, ldmia and pop instructions.
13998 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14000 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14002 2014-01-15 Pedro Alves <palves@redhat.com>
14004 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14005 (go32_resume, go32_fetch_registers, store_register)
14006 (go32_store_registers, go32_prepare_to_store)
14007 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14008 (go32_create_inferior, go32_can_run, go32_terminal_init)
14009 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14012 2014-01-15 Tom Tromey <tromey@redhat.com>
14014 * target.h (async_callback_ftype): New typedef.
14015 (struct target_ops) <to_async>: Use it.
14017 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14019 * python/py-value.c (get_field_type): Remove unnecessary curly
14020 braces for single-statement if block.
14022 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14024 * python/py-type.c (convert_field): Add missing empty line
14025 after declarations.
14027 2014-01-14 Doug Evans <dje@google.com>
14029 * symfile.h (expand_symtabs_matching): Renamed from
14030 expand_partial_symbol_names. Update prototype.
14031 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14032 * symfile.c (expand_symtabs_matching): Renamed from
14033 expand_partial_symbol_names. New args file_matcher, kind.
14034 Rename arg fun to symbol_matcher.
14035 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14036 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14037 ada_expand_partial_symbol_name.
14038 (ada_make_symbol_completion_list): Update to call
14039 expand_symtabs_matching.
14040 (ada_add_global_exceptions): Call expand_symtabs_matching.
14041 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14042 call map_symbol_filenames.
14043 * symtab.c (sources_info): Update to call map_symbol_filenames.
14044 (search_symbols): Call expand_symtabs_matching.
14045 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14046 (default_make_symbol_completion_list_break_on): Update to call
14047 expand_symtabs_matching.
14048 (make_source_files_completion_list): Update to call
14049 map_symbol_filenames.
14051 2014-01-14 Doug Evans <dje@google.com>
14053 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14054 (expand_symtabs_symbol_matcher_ftype): New typedef.
14055 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14056 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14057 * symfile.c (expand_partial_symbol_names): Update to use
14058 expand_symtabs_symbol_matcher_ftype.
14059 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14060 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14061 Arg name_matcher renamed to symbol_matcher.
14062 * psymtab.c (recursively_search_psymtabs): Update to use
14063 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14065 (expand_symtabs_matching_via_partial): Update to use
14066 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14067 Arg name_matcher renamed to symbol_matcher.
14069 2014-01-14 Doug Evans <dje@google.com>
14071 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14072 (map_partial_symbol_filenames): Ditto.
14073 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14074 (map_partial_symbol_filenames): Ditto.
14075 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14076 (map_partial_symbol_filenames): Ditto.
14077 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14078 (map_partial_symbol_filenames): Ditto.
14079 * symtab.c: Delete #include "psymtab.h".
14081 2014-01-14 Pedro Alves <palves@redhat.com>
14082 Tom Tromey <tromey@redhat.com>
14084 * infrun.c (use_displaced_stepping): Use find_record_target
14085 instead of RECORD_IS_USED.
14086 (adjust_pc_after_break): Use record_full_is_used instead of
14088 * record-btrace.c (record_btrace_open): Call record_preopen
14089 instead of checking RECORD_IS_USED.
14090 * record-full.c (record_full_shortname)
14091 (record_full_core_shortname): New globals.
14092 (record_full_is_used): New function.
14093 (find_full_open): Call record_preopen instead of checking
14095 (init_record_full_ops): Set the target's shortname to
14096 record_full_shortname.
14097 (init_record_full_core_ops): Set the target's shortname to
14098 record_full_core_shortname.
14099 * record-full.h (record_full_is_used): Declare.
14100 * record.c (find_record_target): Make extern.
14101 (record_preopen): New function.
14102 * record.h (RECORD_IS_USED): Delete macro.
14103 (find_record_target, record_preopen): Declare functions.
14105 2014-01-14 Yao Qi <yao@codesourcery.com>
14107 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14108 'len''s type to ULONGEST.
14109 (core_xfer_shared_libraries_aix): Likewise.
14110 * gdbarch.c, gdbarch.h: Regenerated.
14111 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14112 Change type of 'len' to ULONGEST.
14113 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14114 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14116 2014-01-14 Yao Qi <yao@codesourcery.com>
14118 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14119 type of 'len' to ULONGEST.
14120 (linux_xfer_osdata_processgroups): Likewise.
14121 (linux_xfer_osdata_threads): Likewise.
14122 (linux_xfer_osdata_fds): Likewise.
14123 (linux_xfer_osdata_isockets): Likewise.
14124 (linux_xfer_osdata_shm): Likewise.
14125 (linux_xfer_osdata_sem): Likewise.
14126 (linux_xfer_osdata_msg): Likewise.
14127 (linux_common_xfer_osdata): Likewise.
14128 (struct osdata_type) <getter>: Likewise.
14129 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14132 2014-01-14 Yao Qi <yao@codesourcery.com>
14134 * target.h (target_xfer_partial_ftype): Update.
14135 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14137 * aix-thread.c (aix_thread_xfer_partial): Change type of
14138 argument 'len' to ULONGEST.
14139 * auxv.c (procfs_xfer_auxv): Likewise.
14140 (ld_so_xfer_auxv): Likewise.
14141 (memory_xfer_auxv): Likewise.
14142 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14143 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14144 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14145 * corelow.c (core_xfer_partial): Likewise.
14146 * ctf.c (ctf_xfer_partial): Likewise.
14147 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14149 (darwin_read_dyld_info): Likewise.
14150 (darwin_xfer_partial): Likewise.
14151 * exec.c (section_table_xfer_memory_partial): Likewise.
14152 (exec_xfer_partial): Likewise.
14153 * exec.h (section_table_xfer_memory_partial): Update
14155 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14156 instead of plongest.
14157 (gnu_xfer_partial): Likewise.
14158 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14159 (ia64_hpux_xfer_solib_got): Likewise.
14160 (ia64_hpux_xfer_partial): Likewise.
14161 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14162 * inf-ptrace.c (inf_ptrace_xfer_partial):
14163 * inf-ttrace.c (inf_ttrace_xfer_partial):
14164 * linux-nat.c (linux_xfer_siginfo): Likewise.
14165 (linux_nat_xfer_partial): Likewise.
14166 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14167 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14168 * monitor.c (monitor_xfer_memory): Likewise.
14169 (monitor_xfer_partial): Likewise.
14170 * procfs.c (procfs_xfer_partial): Likewise.
14171 * record-full.c (record_full_xfer_partial): Likewise.
14172 (record_full_core_xfer_partial): Likewise.
14173 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14174 instead of plongest.
14175 (gdbsim_xfer_partial): Likewise.
14176 * remote.c (remote_xfer_partial): Likewise.
14177 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14178 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14180 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14181 (rs6000_xfer_shared_libraries): Likewise.
14182 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14183 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14184 (sparc_xfer_partial): Likewise.
14185 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14186 (spu_xfer_partial): Likewise.
14187 * spu-multiarch.c (spu_xfer_partial): Likewise.
14188 * target.c (target_read_live_memory): Likewise.
14189 (memory_xfer_live_readonly_partial): Likewise.
14190 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14191 (target_xfer_partial, default_xfer_partial): Likewise.
14192 (current_xfer_partial): Likewise.
14193 * tracepoint.c (tfile_xfer_partial): Likewise.
14194 * windows-nat.c (windows_xfer_memory): Likewise. Call
14195 pulongest instead of plongest.
14196 (windows_xfer_partial): Likewise.
14197 (windows_xfer_shared_libraries): Likewise.
14199 2014-01-14 Yao Qi <yao@codesourcery.com>
14201 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14202 target_xfer_partial_ftype.
14204 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14208 * valops.c (value_struct_elt_bitpos): New function
14209 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14210 object to 'None' if the field name is an empty string ("").
14211 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14212 attribute to look for a field when 'name' is 'None'.
14213 (get_field_type): New function
14215 2014-01-13 Doug Evans <dje@google.com>
14218 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14219 (try_open_dwop_file): Ditto.
14220 * gdb_bfd.c: #include "vec.h".
14221 (bfdp): New typedef.
14222 (struct gdb_bfd_data): New member included_bfds.
14223 (gdb_bfd_unref): Unref all included bfds.
14224 (gdb_bfd_record_inclusion): New function.
14225 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14227 2014-01-13 Tom Tromey <tromey@redhat.com>
14229 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14231 2014-01-13 Tom Tromey <tromey@redhat.com>
14233 * defs.h (use_windows): Remove.
14234 * gdb.c (main): Update.
14235 * main.c (captured_main, gdb_main): Update.
14236 * main.h (struct captured_main_args) <use_windows>: Remove.
14237 * top.c (use_windows): Remove.
14239 2014-01-13 Tom Tromey <tromey@redhat.com>
14241 * defs.h (deprecated_flush_hook): Remove.
14243 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14246 * linux-thread-db.c (try_thread_db_load): Add parameter
14247 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14248 (try_thread_db_load_from_pdir_1): Move it there from here.
14249 (try_thread_db_load_from_sdir): Update caller.
14250 (try_thread_db_load_from_dir): Move it there from here.
14252 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14254 * regformats/regdat.sh: Always rewrite the register file.
14256 2014-01-13 Pedro Alves <palves@redhat.com>
14258 * Makefile.in (CHECK_HEADERS): New variable.
14259 (check-headers:): New rule.
14261 2014-01-13 Tom Tromey <tromey@redhat.com>
14263 * cli/cli-setshow.c (do_set_command): Update.
14264 * defs.h (deprecated_set_hook): Remove.
14265 * top.c (deprecated_set_hook): Remove.
14267 2014-01-13 Pedro Alves <palves@redhat.com>
14269 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14270 the tracepoint if the PC is a pseudo-register.
14272 2014-01-13 Tom Tromey <tromey@redhat.com>
14274 * defs.h (XCALLOC): Remove.
14275 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14276 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14277 * dwarf2loc.c (allocate_piece_closure): Likewise.
14278 * elfread.c (elf_symfile_segments): Likewise.
14279 (elf_symfile_segments): Likewise.
14280 * gdbtypes.c (copy_type_recursive): Likewise.
14281 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14282 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14283 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14285 * mt-tdep.c (mt_gdbarch_init): Likewise.
14286 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14288 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14289 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14290 * registry.c (registry_alloc_data): Likewise.
14291 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14292 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14293 * serial.c (serial_fdopen_ops): Likewise.
14294 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14296 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14297 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14300 2014-01-13 Tom Tromey <tromey@redhat.com>
14302 * defs.h (XMALLOC): Remove.
14303 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14304 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14305 * cli-out.c (struct ui_out *): Likewise.
14306 * cli/cli-dump.c (add_dump_command): Likewise.
14307 (add_dump_command): Likewise.
14308 * complaints.c (get_complaints): Likewise.
14309 (find_complaint): Likewise.
14310 * dwarf2-frame.c (execute_cfa_program): Likewise.
14311 * dwarf2read.c (abbrev_table_read_table): Likewise.
14312 * gdbarch.sh: Likewise.
14313 * gdbarch.c: Rebuild.
14314 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14315 * interps.c (interp_new): Likewise.
14316 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14317 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14318 * mi/mi-console.c (mi_console_file_new): Likewise.
14319 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14320 * mi/mi-out.c (mi_out_new): Likewise.
14321 * mi/mi-parse.c (mi_parse): Likewise.
14322 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14323 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14324 * observer.c (xalloc_observer_list_node): Likewise.
14325 * regcache.c (regcache_xmalloc_1): Likewise.
14326 * reggroups.c (reggroup_new): Likewise.
14327 (_initialize_reggroup): Likewise.
14328 * registry.c (register_data_with_cleanup): Likewise.
14329 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14330 * ser-base.c (serial_ttystate): Likewise.
14331 * ser-mingw.c (make_pipe_state): Likewise.
14332 * ser-pipe.c (pipe_open): Likewise.
14333 * serial.c (serial_open): Likewise.
14334 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14335 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14336 (tui_alloc_win_info): Likewise.
14337 (tui_add_content_elements): Likewise.
14338 * tui/tui-file.c (tui_file_new): Likewise.
14339 * tui/tui-out.c (tui_out_new): Likewise.
14340 * ui-file.c (mem_file_new): Likewise.
14341 * ui-out.c (push_level): Likewise.
14342 (make_cleanup_ui_out_end): Likewise.
14343 (append_header_to_list): Likewise.
14344 (ui_out_new): Likewise.
14345 * user-regs.c (user_reg_add_builtin): Likewise.
14347 2014-01-13 Tom Tromey <tromey@redhat.com>
14349 * defs.h (XZALLOC): Remove.
14350 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14351 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14352 (get_ada_tasks_inferior_data): Likewise.
14353 * auto-load.c (get_auto_load_pspace_data): Likewise.
14354 * auxv.c (get_auxv_inferior_data): Likewise.
14355 * bfd-target.c (target_bfd_reopen): Likewise.
14356 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14357 (deprecated_insert_raw_breakpoint): Likewise.
14358 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14359 * corelow.c (core_open): Likewise.
14360 * darwin-nat.c (darwin_check_new_threads): Likewise.
14361 (darwin_attach_pid): Likewise.
14362 * dummy-frame.c (dummy_frame_push): Likewise.
14363 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14364 * dwarf2loc.c (allocate_piece_closure): Likewise.
14365 * elfread.c (elf_symfile_segments): Likewise.
14366 * eval.c (ptrmath_type_p): Likewise.
14367 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14368 * gdbtypes.c (alloc_type_arch): Likewise.
14369 (alloc_type_instance): Likewise.
14370 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14371 * inf-child.c (inf_child_can_use_agent): Likewise.
14372 * inflow.c (get_inflow_inferior_data): Likewise.
14373 * infrun.c (save_infcall_suspend_state): Likewise.
14374 * jit.c (jit_reader_load): Likewise.
14375 (get_jit_objfile_data): Likewise.
14376 (get_jit_program_space_data): Likewise.
14377 (jit_object_open_impl): Likewise.
14378 (jit_symtab_open_impl): Likewise.
14379 (jit_block_open_impl): Likewise.
14380 (jit_frame_sniffer): Likewise.
14381 * linux-fork.c (add_fork): Likewise.
14382 * maint.c (make_command_stats_cleanup): Likewise.
14383 * objfiles.c (get_objfile_pspace_data): Likewise.
14384 * opencl-lang.c (struct lval_closure): Likewise.
14385 * osdata.c (osdata_start_osdata): Likewise.
14386 * progspace.c (new_address_space): Likewise.
14387 (add_program_space): Likewise.
14388 * remote-sim.c (get_sim_inferior_data): Likewise.
14389 * sh-tdep.c (sh_gdbarch_init): Likewise.
14390 * skip.c (Ignore): Likewise.
14391 (skip_delete_command): Likewise.
14392 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14393 (library_list_start_library): Likewise.
14394 (solib_aix_current_sos): Likewise.
14395 * solib-darwin.c (get_darwin_info): Likewise.
14396 (darwin_current_sos): Likewise.
14397 * solib-dsbt.c (get_dsbt_info): Likewise.
14398 * solib-ia64-hpux.c (new_so_list): Likewise.
14399 (ia64_hpux_get_solib_linkage_addr): Likewise.
14400 * solib-spu.c (append_ocl_sos): Likewise.
14401 (spu_current_sos): Likewise.
14402 * solib-svr4.c (get_svr4_info): Likewise.
14403 (svr4_keep_data_in_core): Likewise.
14404 (library_list_start_library): Likewise.
14405 (svr4_default_sos): Likewise.
14406 (svr4_read_so_list): Likewise.
14407 * solib-target.c (library_list_start_library): Likewise.
14408 (solib_target_current_sos): Likewise.
14409 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14410 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14411 * symfile.c (default_symfile_segments): Likewise.
14412 * target-descriptions.c (tdesc_data_init): Likewise.
14413 (tdesc_create_reg): Likewise.
14414 (struct tdesc_type *): Likewise.
14415 (tdesc_create_vector): Likewise.
14416 (tdesc_set_struct_size): Likewise.
14417 (struct tdesc_type *): Likewise.
14418 (tdesc_free_feature): Likewise.
14419 (tdesc_create_feature): Likewise.
14420 * windows-nat.c (windows_add_thread): Likewise.
14421 (windows_make_so): Likewise.
14422 * xml-support.c (gdb_xml_body_text): Likewise.
14423 (gdb_xml_create_parser_and_cleanup): Likewise.
14424 (xml_process_xincludes): Likewise.
14425 * xml-syscall.c (allocate_syscalls_info): Likewise.
14426 (syscall_create_syscall_desc): Likewise.
14428 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14430 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14431 function, with code from i386_stap_parse_special_token.
14432 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14433 (i386_stap_parse_special_token): Move code to the two functions
14434 above; simplify it.
14436 2014-01-09 Pedro Alves <palves@redhat.com>
14437 Hui Zhu <hui@codesourcery.com>
14440 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14441 bp_err_string. Don't mark the location shlib_disabled if the
14442 error thrown wasn't a generic or memory error. Catch errors
14443 thrown while inserting breakpoints in overlayed code. Output
14444 error message of software breakpoints.
14445 * remote.c (remote_insert_breakpoint): If this breakpoint has
14446 target-side commands but this stub doesn't support Z0 packets,
14447 throw NOT_SUPPORTED_ERROR error.
14448 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14449 * target.h (target_insert_breakpoint): Extend comment.
14450 (target_insert_hw_breakpoint): Add comment.
14452 2014-01-08 Pedro Alves <palves@redhat.com>
14454 * remote.c (remote_add_thread): Add threads silently if starting
14456 (remote_notice_new_inferior): If in all-stop, and starting up,
14457 don't call notice_new_inferior.
14458 (get_current_thread): New function, factored out from ...
14459 (add_current_inferior_and_thread): ... this. Adjust.
14460 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14461 found any thread, then select the remote's current thread as GDB's
14462 current thread too.
14464 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14466 * NEWS: Create a new section for the next release branch.
14467 Rename the section of the current branch, now that it has
14470 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14472 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14473 * version.in: Bump version to 7.7.50.DATE-cvs.
14475 2014-01-08 Yao Qi <yao@codesourcery.com>
14477 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14478 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14479 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14481 2014-01-08 Yao Qi <yao@codesourcery.com>
14483 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14484 return value of bfd_get_filename to symbol_file_add_from_bfd.
14486 2014-01-08 Pierre Muller <muller@sourceware.org>
14489 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14490 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14491 to prim_record_mininal_symbol_and_info.
14492 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14493 in call to prim_record_minimal_symbol_and_info.
14494 (read_pe_exported_syms): Set index field of section_data.
14496 2014-01-07 Andrew Pinski <apinski@cavium.com>
14498 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14499 * features/aarch64.c: Regenerate.
14501 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14503 * target.c (return_null): Define.
14504 (update_current_target): Use it instead of return_zero for
14505 functions that return a pointer.
14507 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14509 * source.c (add_path): Fix check for duplicated paths in the previously
14512 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14514 * ada-lang.c: Remove duplicated include statements.
14515 * alphabsd-nat.c: Ditto.
14516 * amd64-darwin-tdep.c: Ditto.
14517 * amd64fbsd-nat.c: Ditto.
14518 * auto-load.c: Ditto.
14520 * breakpoint.c: Ditto.
14521 * dbxread.c: Ditto.
14522 * fork-child.c: Ditto.
14523 * gdb_usleep.c: Ditto.
14524 * i386-darwin-tdep.c: Ditto.
14525 * i386fbsd-nat.c: Ditto.
14527 * inferior.c: Ditto.
14528 * jv-lang.c: Ditto.
14529 * linux-nat.c: Ditto.
14530 * linux-tdep.c: Ditto.
14531 * m68kbsd-nat.c: Ditto.
14532 * m68klinux-nat.c: Ditto.
14533 * microblaze-tdep.c: Ditto.
14534 * mips-linux-tdep.c: Ditto.
14535 * mn10300-tdep.c: Ditto.
14536 * nto-tdep.c: Ditto.
14537 * opencl-lang.c: Ditto.
14539 * printcmd.c: Ditto.
14540 * regcache.c: Ditto.
14541 * remote-m32r-sdi.c: Ditto.
14543 * symfile.c: Ditto.
14545 * tilegx-linux-nat.c: Ditto.
14546 * tilegx-tdep.c: Ditto.
14547 * tracepoint.c: Ditto.
14549 * vaxbsd-nat.c: Ditto.
14550 * windows-nat.c: Ditto.
14551 * xtensa-tdep.c: Ditto.
14553 2014-01-07 Yao Qi <yao@codesourcery.com>
14555 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14557 2014-01-07 Yao Qi <yao@codesourcery.com>
14558 Joel Brobecker <brobecker@adacore.com>
14560 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14561 (pdc_write_regs): Likewise.
14562 (fetch_regs_kernel_thread): Likewise.
14563 (store_regs_kernel_thread): Likewise.
14565 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14567 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14568 tagged type objects to their actual type.
14570 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14572 * ada-valprint.c (print_field_values): Add "language" parameter.
14573 Update calls to print_field_values and print_variant_part.
14574 Pass new parameter "language" in call to val_print instead
14575 of "current_language". Replace call to ada_val_print by call
14577 (print_variant_part): Add "language" parameter.
14578 (ada_val_print_struct_union): Update call to print_field_values.
14580 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14582 * ada-valprint.c (ui_memcpy): Delete.
14583 (ada_print_floating): Update documentation. Add empty line
14584 between between function documentation and implementation.
14585 Delete variable "buffer". Use ui_file_xstrdup in place of
14586 ui_file_put. Minor adjustments following this change.
14588 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14590 * ada-valprint.c (ada_val_print_string): New function,
14591 extracted from ada_val_print_array.
14592 (ada_val_print_array): Replace extracted code by call
14593 to ada_val_print_string followed by a return. Move
14594 "else" branch to the function's top block.
14596 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14598 * ada-valprint.c (ada_val_print_array): Move implementation
14599 down. Rename parameter "offset" and "val" into "offset_aligned"
14600 and "original_value" respectively. Add parameter "offset".
14602 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14604 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14605 re-organizing the code. Change the "???" message printed
14606 when target type is a TYPE_CODE_UNDEF into
14607 "<ref to undefined type>".
14609 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14611 * ada-valprint.c (print_record): Delete, implementation inlined...
14612 (ada_val_print_struct_union): ... here. Remove call to
14613 ada_check_typedef in inlined implementation.
14615 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14617 * ada-valprint.c (ada_val_print_gnat_array): New function,
14618 extracted from ada_val_print_1;
14619 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14620 (ada_val_print_flt, ada_val_print_struct_union)
14621 (ada_val_print_ref): Likewise.
14622 (ada_val_print_1): Delete variables i and elttype.
14623 Replace extracted-out code by call to corresponding
14626 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14628 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14630 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14632 * ada-valprint.c (ada_val_print_1): Replace calls to
14633 ada_val_print_1 by calls to val_print.
14635 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14637 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14638 Update calls to self accordingly. Replace calls to c_val_print
14639 by calls to val_print.
14641 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14643 * ada-valprint.c (print_record): Delete declaration.
14644 (adjust_type_signedness, ada_val_print_1): Likewise.
14645 (ada_val_print): Move function implementation down.
14646 (print_variant_part, print_field_values, print_record):
14647 Move function implementation up.
14649 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14651 * python/py-type.c (typy_get_name): New function.
14652 (type_object_getset): Add entry for attribute "name".
14653 * NEWS: Add entry mentioning this new attribute.
14655 2014-01-07 Yao Qi <yao@codesourcery.com>
14657 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14660 2014-01-07 Yao Qi <yao@codesourcery.com>
14662 * gnu-nat.c (info_port_rights): Add qualifier const to
14665 2014-01-07 Yao Qi <yao@codesourcery.com>
14667 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14669 2014-01-07 Yao Qi <yao@codesourcery.com>
14671 * gnu-nat.c (make_inf) Update declaration.
14672 (make_inf): Make it static.
14673 (inf_set_traced): Likewise.
14674 (inf_port_to_thread, inf_task_died_status): Likewise.
14676 2014-01-07 Yao Qi <yao@codesourcery.com>
14678 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14680 2014-01-07 Yao Qi <yao@codesourcery.com>
14682 * gnu-nat.c (_initialize_gnu_nat): Declare.
14684 2014-01-07 Yao Qi <yao@codesourcery.com>
14686 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14688 (struct gdbarch_info) <byte_order>: Change type to
14690 <byte_order_for_code>: Likewise.
14691 * gdbarch.c, gdbarch.h: Regenerated.
14693 2014-01-06 Sasha Smundak <asmundak@google.com>
14695 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14697 2014-01-06 Tom Tromey <tromey@redhat.com>
14699 * doublest.c (convert_doublest_to_floatformat): Use const, not
14701 * somread.c (som_symtab_read): Likewise.
14703 2014-01-07 Hui Zhu <hui@codesourcery.com>
14705 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14706 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14707 (gdb_bfd_fopen): Ditto.
14708 (gdb_bfd_openr): Ditto.
14709 (gdb_bfd_openw): Ditto.
14710 (gdb_bfd_openr_iovec): Ditto.
14711 (gdb_bfd_fdopenr): Ditto.
14712 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14713 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14715 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14717 * symfile-mem.c (symbol_file_add_from_memory): Removed
14718 gdb_bfd_stash_filename.
14720 2014-01-03 Doug Evans <dje@google.com>
14722 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14725 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14727 Update year range in copyright notice of all files.
14729 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14731 * top.c (print_gdb_version): Set copyright year to 2014.
14733 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14735 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14737 For older changes see ChangeLog-2013.
14743 version-control: never