1 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
3 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
5 2014-11-04 Pedro Alves <palves@redhat.com>
7 * breakpoint.c (breakpoint_thread_match): Delete function.
8 * breakpoint.h (breakpoint_thread_match): Delete declaration.
10 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
13 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
14 the method args also under EVAL_SKIP when evaluating method
15 calls under EVAL_SKIP.
17 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
19 * dwarf2loc.c (read_pieced_value): Do big endian
20 processing only if gdb_regnum is not -1.
21 (write_pieced_value): Ditto.
23 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
25 * arm-linux-tdep.c (arm_linux_init_abi): Use
26 info.byte_order_for_code to choose endianity of breakpoint
27 instructions snippets.
29 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
31 * arm-tdep.c (extract_arm_insn): Use
32 gdbarch_byte_order_for_code to read arm instruction.
34 2014-11-02 Doug Evans <xdje42@gmail.com>
36 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
38 2014-11-02 Doug Evans <xdje42@gmail.com>
40 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
41 main_subfile before returning.
43 2014-10-31 Doug Evans <xdje42@gmail.com>
45 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
46 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
48 2014-10-31 Doug Evans <xdje42@gmail.com>
50 * valops.c (value_cast_pointers): Fix whitespace.
51 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
54 2014-10-30 Doug Evans <dje@google.com>
56 * NEWS: Mention ability add attributes to gdb.Objfile and
57 gdb.Progspace objects.
58 * python/py-objfile.c (objfile_object): New member dict.
59 (objfpy_dealloc): Py_XDECREF dict.
60 (objfpy_initialize): Initialize dict.
61 (objfile_getset): Add __dict__.
62 (objfile_object_type): Set tp_dictoffset member.
63 * python/py-progspace.c (progspace_object): New member dict.
64 (pspy_dealloc): Py_XDECREF dict.
65 (pspy_initialize): Initialize dict.
66 (pspace_getset): Add __dict__.
67 (pspace_object_type): Set tp_dictoffset member.
69 2014-10-30 Yao Qi <yao@codesourcery.com>
71 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
72 replace '\\' with '\\\\'.
74 2014-10-29 Joel Brobecker <brobecker@adacore.com>
78 2014-10-29 Pedro Alves <palves@redhat.com>
81 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
82 instead of assuming a thread with a stepping range is always
85 2014-10-29 Pedro Alves <palves@redhat.com>
88 * event-top.c (change_line_handler): Call
89 gdb_rl_callback_handler_remove instead of
90 rl_callback_handler_remove.
91 (callback_handler_installed): New global.
92 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
93 (gdb_rl_callback_handler_reinstall): New functions.
94 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
95 gdb_rl_callback_handler_install instead of
96 rl_callback_handler_remove and rl_callback_handler_install.
97 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
98 instead of rl_callback_handler_remove.
99 * event-top.h (gdb_rl_callback_handler_remove)
100 (gdb_rl_callback_handler_install)
101 (gdb_rl_callback_handler_reinstall): New declarations.
102 * infrun.c (reinstall_readline_callback_handler_cleanup): New
104 (fetch_inferior_event): Install it.
105 * top.c (gdb_readline_wrapper_line) Call
106 gdb_rl_callback_handler_remove instead of
107 rl_callback_handler_remove.
108 (gdb_readline_wrapper_cleanup): Don't call
109 rl_callback_handler_install.
111 2014-10-29 Pedro Alves <palves@redhat.com>
113 * event-top.c (command_line_handler): Clear the first byte of
114 linebuffer, when it is first allocated.
116 2014-10-29 Pedro Alves <palves@redhat.com>
118 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
121 2014-10-29 Pedro Alves <palves@redhat.com>
125 * tui/tui-interp.c (tui_is_toplevel): Delete global.
126 (tui_allowed_p): Delete function.
127 * tui/tui.c: Include "interps.h".
128 (tui_enable): Don't use tui_allowed_p. Error out here with
129 detailed error messages if the TUI is the top level interpreter,
130 or if output is not a terminal. Use newterm instead of initscr,
131 and error out if initializing the terminal fails. Also error out if
132 the terminal doesn't support cursor addressing.
133 * tui/tui.h (tui_allowed_p): Delete declaration.
135 2014-10-29 Joel Brobecker <brobecker@adacore.com>
137 * arm-tdep.c (arm_skip_stack_protector): Return early if
138 address loaded by first "ldr" instruction does not have
139 a corresponding minimal symbol. Update comment.
141 2014-10-29 Yao Qi <yao@codesourcery.com>
143 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
144 loaded address correctly of ldr instruction.
146 2014-10-28 Pedro Alves <palves@redhat.com>
149 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
151 * infrun.c (resume) <stepping breakpoint instruction>: Set the
152 thread's stepped_breakpoint field. Skip if reverse debugging.
154 (init_thread_stepping_state, handle_signal_stop): Clear the
155 thread's stepped_breakpoint field.
157 2014-10-27 Pedro Alves <palves@redhat.com>
159 * remote.c (remote_thread_alive): New, factored out from ...
160 (remote_thread_alive): ... this.
161 (remote_update_thread_list): Bail out before deleting threads if
162 the target returned an empty list, and, the current thread has a
165 2014-10-27 Pedro Alves <palves@redhat.com>
167 * infrun.c (handle_signal_stop): Also skip handlers when a random
168 signal arrives while handling a "stepi" or a "nexti". Set the
169 thread's 'step_after_step_resume_breakpoint' flag.
171 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
173 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
174 (arm_record_ld_st_imm_offset): Reimplement to cover all
175 load/store cases for ARM opcode 010.
176 (arm_record_ld_st_multiple): Reimplement to cover all
177 load/store cases for ARM opcode 100.
179 2014-10-26 Doug Evans <xdje42@gmail.com>
181 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
183 2014-10-26 Doug Evans <xdje42@gmail.com>
185 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
186 parameter "kind" to "block_index".
187 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
189 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
191 2014-10-26 Doug Evans <xdje42@gmail.com>
193 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
195 2014-10-26 Doug Evans <xdje42@gmail.com>
197 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
200 2014-10-26 Doug Evans <xdje42@gmail.com>
202 * parser-defs.h (block_found): Move decl from here ...
203 * symtab.h (block_found): ... to here.
205 2014-10-26 Doug Evans <xdje42@gmail.com>
207 * symtab.h (struct field_of_this_result): Fix typo in comment.
208 (lookup_symbol_in_language): Move function comment here.
209 (lookup_symbol): Improve function comment.
210 (basic_lookup_symbol_nonlocal): Ditto.
211 (lookup_symbol_static, lookup_symbol_global): Ditto.
212 (lookup_symbol_aux_block): Ditto.
213 (lookup_language_this): Add function comment.
214 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
216 (lookup_block_symbol): Improve function comment.
217 (lookup_struct): Fix capitalization in function comment.
218 (lookup_transparent_type): Add function comment.
219 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
220 Improve function comment.
221 (lookup_objfile_from_block): Add function comment.
222 * symtab.c (lookup_symbol_in_language): Update function comment.
223 (lookup_symbol, lookup_language_this): Ditto.
224 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
225 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
226 (basic_lookup_symbol_nonlocal): Ditto.
227 (lookup_symbol_static, lookup_symbol_global): Ditto.
228 (lookup_transparent_type, lookup_block_symbol): Ditto.
230 2014-10-25 Doug Evans <xdje42@gmail.com>
232 * symtab.c (types_info): Delete forward decl.
233 (functions_info, variables_info, sources_info): Ditto.
234 (_initialize_symtab): Rewrite forward decl to use
235 initialize_file_ftype.
237 2014-10-25 Doug Evans <xdje42@gmail.com>
239 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
241 2014-10-25 Doug Evans <xdje42@gmail.com>
243 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
244 of local var child_die.
246 2014-10-24 Don Breazeal <donb@codesourcery.com>
248 * infrun.c (follow_fork_inferior): Update fork message printing
249 to use target_terminal_ours_for_output instead of
250 target_terminal_ours, to use _() for all format strings, to print
251 "vfork" instead of "fork" for vforks, and to add a detach message.
252 (handle_vfork_child_exec_or_exit): Update message printing to use
253 target_terminal_ours_for_output instead of target_terminal_ours, to
254 use _() for all format strings, and to fix some formatting.
256 2014-10-24 Pedro Alves <palves@redhat.com>
258 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
259 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
260 * config/vax/vax.mh: Delete.
261 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
262 obsolete configurations section.
263 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
264 * vax-nat.c: Delete file.
266 2014-10-24 Pedro Alves <palves@redhat.com>
268 * NEWS (Removed targets): Add OS/arch column.
270 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
272 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
273 on the arg type of a constructor only if it is of reference type.
275 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
277 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
278 accessors and constants from nios2 opcodes update.
279 (nios2_get_next_pc): Likewise.
281 2014-10-19 Doug Evans <xdje42@gmail.com>
283 * gdbthread.h (set_running): Fix comment.
284 (set_executing, finish_thread_state): Fix comment.
286 2014-10-18 Doug Evans <xdje42@gmail.com>
288 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
290 2014-10-17 Doug Evans <dje@google.com>
292 * NEWS: Mention new event gdb.clear_objfiles.
293 * python/py-event.h (emit_clear_objfiles_event): Clear
294 * python/py-events.h (events_object): New member clear_objfiles.
295 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
297 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
298 emit clear_objfiles event.
299 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
301 (emit_clear_objfiles_event): New function.
302 (clear_objfiles): New event.
303 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
305 * python/python.c (_initialize_python): Call
306 gdbpy_initialize_clear_objfiles_event.
308 2014-10-17 Doug Evans <dje@google.com>
310 * NEWS: Mention new gdb.Objfile.progspace attribute.
311 * python/py-objfile.c (objfpy_get_progspace): New function.
312 (objfile_getset): New entry for "progspace".
314 2014-10-17 Pedro Alves <palves@redhat.com>
317 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
318 returns a copy of the input.
319 (run_command_1, continue_command, step_1, jump_command)
320 (signal_command, until_command, advance_command, finish_command)
321 (attach_command): Adjust and install a cleanup to free the
324 2014-10-17 Pedro Alves <palves@redhat.com>
327 * infcmd.c (continue_1): If continuing all threads in the
328 foreground, make sure the inferior's terminal settings are put in
331 2014-10-17 Pedro Alves <palves@redhat.com>
334 * annotate.c (annotate_breakpoints_invalid): Use
335 target_terminal_our_for_output instead of target_terminal_ours.
336 Give back the terminal to the target.
337 (annotate_frames_invalid): Likewise.
339 2014-10-17 Pedro Alves <palves@redhat.com>
341 * target.c (enum terminal_state): New enum.
342 (terminal_state): New global.
343 (target_terminal_init): New function.
344 (target_terminal_inferior): Skip if inferior already owns the
346 (target_terminal_ours, target_terminal_ours_for_output): New
348 * target.h (target_terminal_init): Convert to function prototype.
349 (target_terminal_ours_for_output): Convert to function prototype
351 (target_terminal_ours): Convert to function prototype and tweak
353 * windows-nat.c (do_initial_windows_stuff): Call
354 target_terminal_init instead of child_terminal_init_with_pgrp.
356 2014-10-17 Pedro Alves <palves@redhat.com>
358 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
359 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
360 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
362 * NEWS: Mention that support for alpha*-*-osf* has been removed.
363 * ada-lang.h [__alpha__ && __osf__]
364 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
365 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
366 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
368 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
370 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
371 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
372 * configure: Regenerate.
373 * configure.ac: Remove references to osf.
374 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
375 section. Remove all other references to osf.
376 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
377 Remove all other references to osf.
378 * dec-thread.c: Delete file.
379 * defs.h (GDB_OSABI_OSF1): Delete.
380 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
382 * osabi.c (gdb_osabi_names): Delete "OSF/1".
383 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
385 (unconditionally_kill_inferior)
386 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
387 * solib-osf.c: Delete file.
389 2014-10-17 Pedro Alves <palves@redhat.com>
391 * remote.c (clear_threads_listing_context): Move higher up, out of
392 the HAVE_LIBEXPAT guard.
394 2014-10-16 Tristan Gingold <gingold@adacore.com>
396 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
397 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
400 2014-10-15 Pedro Alves <palves@redhat.com>
402 * dec-thread.c (dec_thread_count_gdb_threads)
403 (dec_thread_add_gdb_thread): Delete.
404 (dec_thread_update_thread_list): Delete.
405 (dec_thread_find_new_threads): Rename to ...
406 (dec_thread_update_thread_list): ... this. Delete GDB-size
407 threads that are no longer found in dec_thread_list.
408 (resync_thread_list): Delete.
409 (dec_thread_wait): Call dec_thread_update_thread_list instead of
412 2014-10-15 Pedro Alves <palves@redhat.com>
414 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
415 * remote.c (remote_update_thread_list): Skip calling prune_threads
416 if any thread listing method is supported, and instead walk over
417 the set of remote threads listed, deleting those that are not
418 found in GDB's thread list.
420 2014-10-15 Pedro Alves <palves@redhat.com>
422 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
423 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
424 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
425 (bsd_uthread_target): Adjust.
426 * corelow.c (core_open): Adjust.
427 * dec-thread.c (dec_thread_find_new_threads): Update comment.
428 (dec_thread_update_thread_list): New function.
429 (init_dec_thread_ops): Adjust.
430 * gdbthread.h (prune_threads): New declaration.
431 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
432 (thread_db_update_thread_list): ... this. Call prune_threads.
433 (init_thread_db_ops): Adjust.
434 * nto-procfs.c (procfs_find_new_threads): Rename to ...
435 (procfs_update_thread_list): ... this. Call prune_threads.
436 (procfs_attach, procfs_create_inferior, init_procfs_targets):
438 * obsd-nat.c (obsd_find_new_threads): Rename to ...
439 (obsd_update_thread_list): ... this. Call prune_threads.
440 (obsd_add_target): Adjust.
441 * procfs.c (procfs_target): Adjust.
442 (procfs_notice_thread): Update comment.
443 (procfs_find_new_threads): Rename to ...
444 (procfs_update_thread_list): ... this. Call prune_threads.
445 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
447 (ravenscar_wait): Adjust.
448 (ravenscar_find_new_threads): Rename to ...
449 (ravenscar_update_thread_list): ... this. Call prune_threads.
450 (init_ravenscar_thread_ops): Adjust.
451 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
452 (record_btrace_update_thread_list): ... this. Adjust comment.
453 (init_record_btrace_ops): Adjust.
454 * remote.c (remote_threads_info): Rename to ...
455 (remote_update_thread_list): ... this. Call prune_threads.
456 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
458 * sol-thread.c (check_for_thread_db): Adjust.
459 (sol_find_new_threads_callback): Rename to ...
460 (sol_update_thread_list_callback): ... this.
461 (sol_find_new_threads): Rename to ...
462 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
463 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
464 * target-delegates.c: Regenerate.
465 * target.c (target_find_new_threads): Rename to ...
466 (target_update_thread_list): ... this.
467 * target.h (struct target_ops): Rename to_find_new_threads field
468 to to_update_thread_list.
469 (target_find_new_threads): Rename to ...
470 (target_update_thread_list): ... this.
471 * thread.c (prune_threads): Make extern.
472 (update_thread_list): Adjust.
474 2014-10-15 Pedro Alves <palves@redhat.com>
476 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
477 Add describing comment. Return -1 if the qL packet is not
479 (struct thread_item, thread_item_t): Move higher up in
480 the file. Add comments.
481 (struct threads_parsing_context): Move higher up in
482 the file, add comments, and remote to ...
483 (struct threads_listing_context): ... this.
484 (remote_newthread_step): Don't add the thread to GDB's thread
485 database here. Instead push it to the thread_listing_context
487 (remote_find_new_threads): Rename to ...
488 (remote_get_threads_with_ql): ... this. Add target_ops and
489 targets_listing_context parameters. Pass down context.
490 (start_thread): Adjust.
491 (clear_threads_parsing_context): Rename to ...
492 (clear_threads_listing_context): ... this.
493 (remote_get_threads_with_qxfer): New, with parts salvaged from old
495 (remote_get_threads_with_qthreadinfo): Ditto.
496 (remote_threads_info): Reimplement.
498 2014-10-15 Pedro Alves <palves@redhat.com>
500 * infrun.c (resume): Don't force displaced-stepping for all
501 single-steps on software single-stepping archs.
503 2014-10-15 Pedro Alves <palves@redhat.com>
505 * breakpoint.c (single_step_breakpoints): Delete global.
506 (insert_single_step_breakpoint): Adjust to store the breakpoint
507 pointer in the current thread.
508 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
509 (cancel_single_step_breakpoints): Delete functions.
510 (breakpoint_has_location_inserted_here): Make extern.
511 (single_step_breakpoint_inserted_here_p): Adjust to walk the
513 * breakpoint.h (breakpoint_has_location_inserted_here): New
515 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
516 (cancel_single_step_breakpoints): Remove declarations.
517 * gdbthread.h (struct thread_control_state)
518 <single_step_breakpoints>: New field.
519 (delete_single_step_breakpoints)
520 (thread_has_single_step_breakpoints_set)
521 (thread_has_single_step_breakpoint_here): New declarations.
522 * infrun.c (follow_exec): Also clear the single-step breakpoints.
523 (singlestep_breakpoints_inserted_p, singlestep_ptid)
524 (singlestep_pc): Delete globals.
525 (infrun_thread_ptid_changed): Remove references to removed
527 (resume_cleanups): Delete the current thread's single-step
529 (maybe_software_singlestep): Remove references to removed globals.
530 (resume): Adjust to use thread_has_single_step_breakpoints_set and
531 delete_single_step_breakpoints.
532 (init_wait_for_inferior): Remove references to removed globals.
533 (delete_thread_infrun_breakpoints): Delete the thread's
534 single-step breakpoints too.
535 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
536 single-step breakpoints here.
537 (delete_stopped_threads_single_step_breakpoints): New function.
538 (adjust_pc_after_break): Adjust to use
539 thread_has_single_step_breakpoints_set.
540 (handle_inferior_event): Remove references to removed globals.
541 Use delete_stopped_threads_single_step_breakpoints.
542 (handle_signal_stop): Adjust to per-thread single-step
543 breakpoints. Swap test order to do cheaper tests first.
544 (switch_back_to_stepped_thread): Extend debug output. Remove
545 references to removed globals.
546 * record-full.c (record_full_wait_1): Adjust to per-thread
547 single-step breakpoints.
548 * thread.c (delete_single_step_breakpoints)
549 (thread_has_single_step_breakpoints_set)
550 (thread_has_single_step_breakpoint_here): New functions.
551 (clear_thread_inferior_resources): Also delete the thread's
552 single-step breakpoints.
554 2014-10-15 Pedro Alves <palves@redhat.com>
556 * thread.c (delete_thread_breakpoint): New function.
557 (delete_step_resume_breakpoint)
558 (delete_exception_resume_breakpoint): Use it.
559 (delete_at_next_stop): New function.
560 (clear_thread_inferior_resources): Use delete_at_next_stop.
562 2014-10-15 Pedro Alves <palves@redhat.com>
564 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
565 (breakpoint_inserted_here_p): ... here. Remove special case for
566 software single-step breakpoints.
567 (find_non_raw_software_breakpoint_inserted_here): Inline ...
568 (software_breakpoint_inserted_here_p): ... here. Remove special
569 case for software single-step breakpoints.
570 (bp_target_info_copy_insertion_state)
571 (deprecated_insert_raw_breakpoint)
572 (deprecated_remove_raw_breakpoint): Delete functions.
573 * breakpoint.h (deprecated_insert_raw_breakpoint)
574 (deprecated_remove_raw_breakpoint): Remove declarations.
576 2014-10-15 Pedro Alves <palves@redhat.com>
579 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
580 Delete array globals.
581 (single_step_breakpoints): New global.
582 (breakpoint_xfer_memory): Remove special handling for single-step
584 (update_breakpoints_after_exec): Delete bp_single_step
586 (detach_breakpoints): Remove special handling for single-step
588 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
589 (bpstat_stop_status): Add comment.
590 (bpstat_what, bptype_string, print_one_breakpoint_location)
591 (adjust_breakpoint_address, init_bp_location): Handle
593 (new_single_step_breakpoint): New function.
594 (set_momentary_breakpoint, bkpt_remove_location): Remove special
595 handling for single-step breakpoints.
596 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
597 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
599 (detach_single_step_breakpoints, find_single_step_breakpoint):
601 (breakpoint_has_location_inserted_here): New function.
602 (single_step_breakpoint_inserted_here_p): Rewrite.
603 * breakpoint.h: Remove FIXME.
604 (enum bptype) <bp_single_step>: New enum value.
605 (insert_single_step_breakpoint): Update comment.
606 * infrun.c (resume_cleanups)
607 (delete_step_thread_step_resume_breakpoint): Remove single-step
609 (fetch_inferior_event): Install a cleanup that removes infrun
611 (switch_back_to_stepped_thread) <expect thread advanced also>:
612 Clear step-over info.
614 2014-10-15 Pedro Alves <palves@redhat.com>
616 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
617 (delete_thread_infrun_breakpoints): New function, with parts
618 salvaged from delete_step_resume_breakpoint_callback.
619 (delete_step_thread_step_resume_breakpoint): Delete.
620 (for_each_just_stopped_thread_callback_func): New typedef.
621 (for_each_just_stopped_thread): New function.
622 (delete_just_stopped_threads_infrun_breakpoints): New function.
623 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
624 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
626 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
628 2014-10-15 Pedro Alves <palves@redhat.com>
630 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
631 trying to step past a non-steppable watchpoint.
632 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
634 * infrun.c (struct step_over_info): Add new field
635 'nonsteppable_watchpoint_p' and adjust comments.
636 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
638 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
639 (stepping_past_nonsteppable_watchpoint): New function.
640 (step_over_info_valid_p): Also return true if stepping past a
641 nonsteppable watchpoint.
642 (proceed): Adjust call to set_step_over_info. Remove reference to
644 (init_wait_for_inferior): Remove reference to init_infwait_state.
645 (waiton_ptid): Delete global.
646 (struct execution_control_state)
647 <stepped_after_stopped_by_watchpoint>: Delete field.
648 (wait_for_inferior, fetch_inferior_event): Always pass
649 minus_one_ptid to target_wait.
650 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
652 (init_infwait_state): Delete function.
653 (handle_inferior_event): Remove infwait_state handling.
654 (handle_signal_stop) <watchpoints handling>: Adjust after
655 stepped_after_stopped_by_watchpoint removal. Don't remove
656 breakpoints here nor set infwait_state. Set the thread's
657 stepping_over_watchpoint flag, and call keep_going instead.
658 (keep_going): Handle stepping_over_watchpoint. Adjust
659 set_step_over_info calls.
660 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
663 2014-10-15 Pedro Alves <palves@redhat.com>
665 * infrun.c (step_over_info_valid_p): New function.
666 (resume): Use step_over_info_valid_p instead of checking the
667 threads's trap_expected flag.
669 2014-10-15 Doug Evans <dje@google.com>
670 Walfred Tedeschi <walfred.tedeschi@intel.com>
673 * python/lib/gdb/__init__.py (packages): Add "printer".
674 * python/lib/gdb/command/bound_registers.py: Moved to ...
675 * python/lib/gdb/printer/bound_registers.py: ... here.
676 Add printer to global set of builtin printers. Rename printer from
677 "bound" to "mpx_bound128".
678 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
679 registered as global "builtin" printer.
680 (add_builtin_pretty_printer): New function.
681 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
682 gdb/printer/__init__.py.
684 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
686 * Makefile.in (SFILES): Remove d-support.c.
687 (COMMON_OBS): Remove d-support.o.
688 * d-lang.h (d_parse_symbol): Remove declaration.
689 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
690 * d-support.c: Remove file.
692 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
694 * gdb/infrun.c (process_event_stop_test): Apply
695 gdbarch_addr_bits_remove to longjmp resume address.
697 2014-10-15 Pedro Alves <palves@redhat.com>
699 * regformats/microblaze.dat: Delete file.
701 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
703 * features/Makefile (microblaze-expedite): Replace pc with rpc.
704 * regformats/microblaze-with-stack-protect.dat: Regenerate.
706 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
708 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
711 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
715 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
718 2014-10-14 Joel Brobecker <brobecker@adacore.com>
720 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
721 of the case where the second operand is a pointer.
722 <BINOP_SUB>: Likewise.
724 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
726 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
727 only if it is not NULL.
728 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
729 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
730 (struct probe_ops) <clear_semaphore>: Likewise.
731 * tracepoint.c (start_tracing): Call set_semaphore only if it is
733 (stop_tracing): Likewise, for clear_semaphore.
735 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
737 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
738 using language_c, instead of current_language.
740 2014-10-13 Doug Evans <dje@google.com>
742 * python/py-objfile.c (objfpy_initialize): New function.
743 (objfpy_new, objfile_to_objfile_object): Call it.
744 * python/py-progspace.c (pspy_initialize): New function.
745 (pspy_new, pspace_to_pspace_object): Call it.
747 2014-10-13 Miroslav Franc <mfranc@redhat.com>
748 Jan Kratochvil <jan.kratochvil@redhat.com>
750 Fix "save breakpoints" for "catch" command.
751 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
754 2014-10-12 Miroslav Franc <mfranc@redhat.com>
756 Fix "save breakpoints" for "disable $bpnum" command.
757 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
759 2014-10-10 Pedro Alves <palves@redhat.com>
761 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
762 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
763 (HFILES_NO_SRCDIR): Remove solib-irix.h.
764 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
766 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
767 * configure.ac: Remove references to IRIX.
768 * configure.host: Add *-*-irix* to the obsolete hosts section.
769 Remove all other references to irix.
770 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
773 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
775 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
776 isn't valid, release the tdesc arch data and return NULL.
778 2014-10-10 Pedro Alves <palves@redhat.com>
780 * linux-tdep.c: Include observer.h.
781 (linux_inferior_data): New global.
782 (struct linux_info): New structure.
783 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
784 (get_linux_inferior_data): New functions.
785 (linux_vsyscall_range): Rename to ...
786 (linux_vsyscall_range_raw): ... this.
787 (linux_vsyscall_range): New function; handles caching.
788 (_initialize_linux_tdep): Register linux_inferior_data. Install
789 inferior_exit and inferior_appeared observers.
791 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
792 Pedro Alves <palves@redhat.com>
795 * solib-svr4.c (svr4_read_so_list): Rename to ...
796 (svr4_current_sos_1): ... this and change the function comment.
797 (svr4_current_sos): New function.
799 2014-10-10 Pedro Alves <palves@redhat.com>
801 * arch-utils.c (default_vsyscall_range): New function.
802 * arch-utils.h (default_vsyscall_range): New declaration.
803 * gdbarch.sh (vsyscall_range): New hook.
804 * gdbarch.h, gdbarch.c: Regenerate.
805 * linux-tdep.c (linux_vsyscall_range): New function.
806 (linux_init_abi): Install linux_vsyscall_range as
807 vsyscall_range gdbarch hook.
808 * memrange.c (address_in_mem_range): New function.
809 * memrange.h (address_in_mem_range): New declaration.
810 * symfile-mem.c (find_vdso_size): Delete function.
811 (add_vsyscall_page): Use gdbarch_vsyscall_range.
813 2014-10-10 Pedro Alves <palves@redhat.com>
815 * infrun.c (normal_stop): Fix typo in comment.
817 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
820 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
821 typo when using logical AND to determine instruction type.
823 2014-10-09 Yao Qi <yao@codesourcery.com>
825 * infrun.c (handle_signal_stop): Remove local variable
828 2014-10-08 Stan Shebs <stan@codesourcery.com>
830 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
832 2014-10-08 Gary Benson <gbenson@redhat.com>
834 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
836 2014-10-08 Gary Benson <gbenson@redhat.com>
838 * common/common-defs.h: Include common-exceptions.h.
839 * exceptions.h: Do not include common-exceptions.h.
841 2014-10-08 Gary Benson <gbenson@redhat.com>
843 * common/common-defs.h: Include cleanups.h.
844 * common/common-exceptions.c: Do not include cleanups.h.
847 2014-10-08 Gary Benson <gbenson@redhat.com>
849 * ada-lang.c: Do not include exceptions.h.
850 * ada-valprint.c: Likewise.
851 * amd64-tdep.c: Likewise.
852 * auto-load.c: Likewise.
854 * break-catch-throw.c: Likewise.
855 * breakpoint.c: Likewise.
856 * btrace.c: Likewise.
857 * c-lang.c: Likewise.
858 * cli/cli-cmds.c: Likewise.
859 * cli/cli-interp.c: Likewise.
860 * cli/cli-script.c: Likewise.
861 * completer.c: Likewise.
862 * corefile.c: Likewise.
863 * corelow.c: Likewise.
864 * cp-abi.c: Likewise.
865 * cp-support.c: Likewise.
866 * cp-valprint.c: Likewise.
867 * darwin-nat.c: Likewise.
868 * dwarf2-frame-tailcall.c: Likewise.
869 * dwarf2-frame.c: Likewise.
870 * dwarf2loc.c: Likewise.
871 * dwarf2read.c: Likewise.
873 * event-loop.c: Likewise.
874 * event-top.c: Likewise.
875 * f-valprint.c: Likewise.
876 * frame-unwind.c: Likewise.
878 * gdbtypes.c: Likewise.
879 * gnu-v2-abi.c: Likewise.
880 * gnu-v3-abi.c: Likewise.
881 * guile/scm-auto-load.c: Likewise.
882 * guile/scm-breakpoint.c: Likewise.
883 * guile/scm-cmd.c: Likewise.
884 * guile/scm-frame.c: Likewise.
885 * guile/scm-lazy-string.c: Likewise.
886 * guile/scm-param.c: Likewise.
887 * guile/scm-symbol.c: Likewise.
888 * guile/scm-type.c: Likewise.
889 * hppa-hpux-tdep.c: Likewise.
890 * i386-tdep.c: Likewise.
891 * inf-loop.c: Likewise.
892 * infcall.c: Likewise.
893 * infcmd.c: Likewise.
894 * infrun.c: Likewise.
895 * interps.c: Likewise.
896 * interps.h: Likewise.
898 * linespec.c: Likewise.
899 * linux-nat.c: Likewise.
900 * linux-thread-db.c: Likewise.
901 * m32r-rom.c: Likewise.
903 * memory-map.c: Likewise.
904 * mi/mi-cmd-break.c: Likewise.
905 * mi/mi-cmd-stack.c: Likewise.
906 * mi/mi-interp.c: Likewise.
907 * mi/mi-main.c: Likewise.
908 * monitor.c: Likewise.
909 * nto-procfs.c: Likewise.
910 * objc-lang.c: Likewise.
911 * p-valprint.c: Likewise.
913 * ppc-linux-tdep.c: Likewise.
914 * printcmd.c: Likewise.
916 * python/py-auto-load.c: Likewise.
917 * python/py-breakpoint.c: Likewise.
918 * python/py-cmd.c: Likewise.
919 * python/py-finishbreakpoint.c: Likewise.
920 * python/py-frame.c: Likewise.
921 * python/py-framefilter.c: Likewise.
922 * python/py-function.c: Likewise.
923 * python/py-gdb-readline.c: Likewise.
924 * python/py-inferior.c: Likewise.
925 * python/py-infthread.c: Likewise.
926 * python/py-lazy-string.c: Likewise.
927 * python/py-linetable.c: Likewise.
928 * python/py-param.c: Likewise.
929 * python/py-prettyprint.c: Likewise.
930 * python/py-symbol.c: Likewise.
931 * python/py-type.c: Likewise.
932 * python/py-value.c: Likewise.
933 * python/python-internal.h: Likewise.
934 * python/python.c: Likewise.
935 * record-btrace.c: Likewise.
936 * record-full.c: Likewise.
937 * regcache.c: Likewise.
938 * remote-fileio.c: Likewise.
939 * remote-mips.c: Likewise.
940 * remote.c: Likewise.
941 * rs6000-aix-tdep.c: Likewise.
942 * rs6000-nat.c: Likewise.
944 * solib-darwin.c: Likewise.
945 * solib-dsbt.c: Likewise.
946 * solib-frv.c: Likewise.
947 * solib-ia64-hpux.c: Likewise.
948 * solib-spu.c: Likewise.
949 * solib-svr4.c: Likewise.
951 * spu-tdep.c: Likewise.
953 * stap-probe.c: Likewise.
954 * symfile-mem.c: Likewise.
955 * symmisc.c: Likewise.
956 * target.c: Likewise.
957 * thread.c: Likewise.
959 * tracepoint.c: Likewise.
960 * tui/tui-interp.c: Likewise.
961 * typeprint.c: Likewise.
963 * valarith.c: Likewise.
964 * valops.c: Likewise.
965 * valprint.c: Likewise.
967 * varobj.c: Likewise.
968 * windows-nat.c: Likewise.
969 * xml-support.c: Likewise.
971 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
973 * mips-tdep.c (add_offset_16): Rewrite to implement what the
975 (extended_mips16_next_pc): Update accordingly.
977 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
979 * mips-tdep.c (mips16_instruction_is_compact_branch): New
981 (micromips_instruction_is_compact_branch): Likewise.
982 (mips16_scan_prologue): Terminate scanning upon seeing a branch
983 or a compact jump, reaching a jump delay slot, or seeing a
984 second non-prologue instruction.
985 (micromips_scan_prologue): Also terminate scanning upon seeing a
986 compact branch or jump, or reaching a branch or jump delay slot.
987 (mips32_scan_prologue): Terminate scanning upon reaching a branch
988 or jump delay slot, or seeing a second non-prologue instruction.
989 (mips32_instruction_has_delay_slot): Retain instruction
990 examination code only, update arguments accordingly and move
991 instruction fetch pieces to...
992 (mips32_insn_at_pc_has_delay_slot): ... this new function.
993 (micromips_instruction_has_delay_slot): Likewise and to...
994 (micromips_insn_at_pc_has_delay_slot): ... this new function.
995 (mips16_instruction_has_delay_slot): Likewise and to...
996 (mips16_insn_at_pc_has_delay_slot): ... this new function.
997 (mips_single_step_through_delay): Update accordingly.
998 (mips_adjust_breakpoint_address): Likewise.
1000 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1002 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1003 !mustbe32 also return 1 for 32-bit instructions.
1004 (mips16_instruction_has_delay_slot): Likewise. Add an
1005 explanatory comment.
1007 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1009 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1012 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1014 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1016 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1017 for the breakpoint's address. Don't preinitialize `placed_size'.
1018 (insert_bp_location): Set `reqstd_address' rather than
1020 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1021 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1023 (bkpt_remove_location): Likewise.
1024 (deprecated_insert_raw_breakpoint): Likewise.
1025 (deprecated_remove_raw_breakpoint): Likewise.
1026 (find_single_step_breakpoint): Likewise.
1027 * mem-break.c (default_memory_insert_breakpoint): Use
1028 `reqstd_address' for the breakpoint's address. Don't set
1029 `placed_address' or `placed_size' if breakpoint contents couldn't
1030 have been determined.
1031 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1032 the breakpoint's address.
1033 (remote_insert_hw_breakpoint): Likewise. Don't set
1034 `placed_address' or `placed_size' if breakpoint couldn't have been
1036 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1037 `reqstd_address' for the breakpoint's address.
1038 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1039 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1040 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1041 * microblaze-linux-tdep.c
1042 (microblaze_linux_memory_remove_breakpoint): Likewise.
1043 * monitor.c (monitor_insert_breakpoint): Likewise.
1044 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1045 (procfs_insert_hw_breakpoint): Likewise.
1046 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1047 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1048 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1049 * remote-mips.c (mips_insert_breakpoint): Likewise.
1050 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1052 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1054 * valops.c (value_assign): Check for bit field assignments
1055 before calling architecture-specific register value
1056 conversion functions.
1058 2014-10-03 Pierre Muller <muller@sourceware.org>
1060 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1062 2014-10-02 Pedro Alves <palves@redhat.com>
1064 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1065 threads_are_executing.
1066 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1068 * gdbthread.h (threads_are_executing): Declare.
1069 (handle_signal_stop) <random signals>: Don't print about the
1070 signal here if stopping.
1071 (end_stepping_range): Don't notify observers here.
1072 (normal_stop): Update the thread list. If stopped by a random
1073 signal or a stepping range ended, notify observers.
1074 * thread.c (threads_executing): New global.
1075 (init_thread_list): Clear 'threads_executing'.
1076 (set_executing): Set or clear 'threads_executing'.
1077 (threads_are_executing): New function.
1078 (update_threads_executing): New function.
1079 (update_thread_list): Use it.
1081 2014-10-02 Pedro Alves <palves@redhat.com>
1083 PR breakpoints/17431
1084 * breakpoint.c (update_breakpoints_after_exec): Don't create
1085 overlay, longjmp, std terminate nor exception breakpoints here.
1087 2014-10-02 Pedro Alves <palves@redhat.com>
1089 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1091 * inferior.c (find_inferior_for_program_space): Give preference to
1092 the current inferior.
1093 * inferior.h (find_inferior_for_program_space): Update comment.
1094 * progspace.c (switch_to_program_space_and_thread): Prefer the
1095 current inferior if it's bound to the program space requested. If
1096 the inferior found doesn't have a PID yet, don't bother looking up
1098 * progspace.h (switch_to_program_space_and_thread): Adjust
1100 * thread.c (any_thread_of_process, any_live_thread_of_process):
1101 Give preference to the current thread.
1103 2014-10-01 Pedro Alves <palves@redhat.com>
1105 * breakpoint.c (insert_bp_location): Error out if inserting a
1106 software breakpoint at a read-only address.
1107 * target.c (memory_xfer_check_region): New function, factored out
1109 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1111 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1112 against the memory region attributes.
1114 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1116 * NEWS: Announce new exit-code field in -list-thread-groups
1118 * inferior.c (exit_inferior_1): Don't clear exit code.
1119 (inferior_appeared): Clear exit code.
1120 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1123 2014-10-01 Pedro Alves <palves@redhat.com>
1125 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1126 GENERATED" along with emacs/vi read-only markers.
1127 * regformats/aarch64.dat: Regenerate.
1128 * regformats/arm-with-iwmmxt.dat: Regenerate.
1129 * regformats/arm-with-neon.dat: Regenerate.
1130 * regformats/arm-with-vfpv2.dat: Regenerate.
1131 * regformats/arm-with-vfpv3.dat: Regenerate.
1132 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1133 * regformats/i386/amd64-avx.dat: Regenerate.
1134 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1135 * regformats/i386/amd64-avx512.dat: Regenerate.
1136 * regformats/i386/amd64-linux.dat: Regenerate.
1137 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1138 * regformats/i386/amd64-mpx.dat: Regenerate.
1139 * regformats/i386/amd64.dat: Regenerate.
1140 * regformats/i386/i386-avx-linux.dat: Regenerate.
1141 * regformats/i386/i386-avx.dat: Regenerate.
1142 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1143 * regformats/i386/i386-avx512.dat: Regenerate.
1144 * regformats/i386/i386-linux.dat: Regenerate.
1145 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1146 * regformats/i386/i386-mmx.dat: Regenerate.
1147 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1148 * regformats/i386/i386-mpx.dat: Regenerate.
1149 * regformats/i386/i386.dat: Regenerate.
1150 * regformats/i386/x32-avx-linux.dat: Regenerate.
1151 * regformats/i386/x32-avx.dat: Regenerate.
1152 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1153 * regformats/i386/x32-avx512.dat: Regenerate.
1154 * regformats/i386/x32-linux.dat: Regenerate.
1155 * regformats/i386/x32.dat: Regenerate.
1156 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1157 * regformats/mips-dsp-linux.dat: Regenerate.
1158 * regformats/mips-linux.dat: Regenerate.
1159 * regformats/mips64-dsp-linux.dat: Regenerate.
1160 * regformats/mips64-linux.dat: Regenerate.
1161 * regformats/nios2-linux.dat: Regenerate.
1162 * regformats/rs6000/powerpc-32.dat: Regenerate.
1163 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1164 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1165 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1166 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1167 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1168 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1169 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1170 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1171 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1172 * regformats/s390-linux32.dat: Regenerate.
1173 * regformats/s390-linux32v1.dat: Regenerate.
1174 * regformats/s390-linux32v2.dat: Regenerate.
1175 * regformats/s390-linux64.dat: Regenerate.
1176 * regformats/s390-linux64v1.dat: Regenerate.
1177 * regformats/s390-linux64v2.dat: Regenerate.
1178 * regformats/s390-te-linux64.dat: Regenerate.
1179 * regformats/s390x-linux64.dat: Regenerate.
1180 * regformats/s390x-linux64v1.dat: Regenerate.
1181 * regformats/s390x-linux64v2.dat: Regenerate.
1182 * regformats/s390x-te-linux64.dat: Regenerate.
1183 * regformats/tic6x-c62x-linux.dat: Regenerate.
1184 * regformats/tic6x-c62x.dat: Regenerate.
1185 * regformats/tic6x-c64x-linux.dat: Regenerate.
1186 * regformats/tic6x-c64x.dat: Regenerate.
1187 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1188 * regformats/tic6x-c64xp.dat: Regenerate.
1190 2014-10-01 Pedro Alves <palves@redhat.com>
1192 * features/Makefile: Update comments.
1193 (XMLTOC): List all xml files we build C files from.
1194 (clean-cfiles): New rule.
1196 2014-10-01 Pedro Alves <palves@redhat.com>
1198 * features/i386/amd64-avx512-linux.c: Regenerate.
1199 * features/i386/amd64-avx512.c: Regenerate.
1200 * features/i386/x32-avx512-linux.c: Regenerate.
1201 * features/i386/x32-avx512.c: Regenerate.
1203 2014-10-01 Pedro Alves <palves@redhat.com>
1205 * features/Makefile (WHICH): Remove arm-with-m,
1206 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1208 2014-10-01 Pedro Alves <palves@redhat.com>
1210 * features/Makefile (clean): New rule.
1212 2014-10-01 Pedro Alves <palves@redhat.com>
1214 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1215 (zmm14h): Add missing end quotes.
1217 2014-10-01 Pedro Alves <palves@redhat.com>
1219 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1220 * features/aarch64.c: Regenerate.
1222 2014-09-30 Don Breazeal <donb@codesourcery.com>
1224 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1225 code so as to work with follow_fork_inferior.
1226 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1227 (inf_ttrace_create_inferior): Remove reference to
1228 inf_ttrace_vfork_ppid.
1229 (inf_ttrace_attach): Ditto.
1230 (inf_ttrace_detach): Ditto.
1231 (inf_ttrace_kill): Use current_inferior instead of
1232 inf_ttrace_vfork_ppid.
1233 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1234 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1235 inferior away from the parent.
1236 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1238 (follow_fork_inferior): New function.
1239 (follow_inferior_reset_breakpoints): Make function static.
1240 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1241 * linux-nat.c (linux_child_follow_fork): Move target-independent
1242 code to infrun.c:follow_fork_inferior.
1244 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1246 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1247 * gdbarch.c: Regenerate.
1248 * gdbarch.h: Likewise.
1249 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1250 gdbarch method 'regset_from_core_section'.
1251 (get_core_register_section): Remove handling for the case that
1252 regset == NULL and regset_from_core_section is defined.
1253 (get_core_registers): Drop check for deleted method.
1254 * procfs.c (procfs_do_thread_registers): Adjust comment.
1256 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1258 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1259 (linux_nat_make_corefile_notes): Remove.
1260 (linux_target_install_ops): Do not set target method
1261 'make_corefile_notes'.
1262 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1264 (linux_corefile_thread_callback): Instead of args->collect, call
1265 linux_collect_thread_registers.
1266 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1267 NULL unless there is a regset iterator.
1268 (linux_make_corefile_notes_1): Remove.
1269 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1270 by linux_make_corefile_notes.
1271 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1273 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1275 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1276 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1278 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1280 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1282 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1283 (xtensa_iterate_over_regset_sections): New.
1284 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1286 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1288 * vax-tdep.c (vax_regset_from_core_section): Remove.
1289 (vax_iterate_over_regset_sections): New.
1290 (vax_gdbarch_init): Adjust gdbarch initialization.
1292 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1294 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1295 (tilegx_regset_from_core_section): Remove.
1296 (tilegx_iterate_over_regset_sections): New.
1297 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1299 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1301 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1302 (sparc_iterate_over_regset_sections): New.
1303 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1304 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1306 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1307 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1308 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1309 target method 'make_corefile_notes'.
1311 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1313 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1314 'sizeof_gregset' and 'sizeof_fpregset'.
1315 * sh-tdep.c (sh_regset_from_core_section): Remove.
1316 (sh_iterate_over_regset_sections): New.
1317 (sh_gdbarch_init): Adjust gdbarch initialization.
1318 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1320 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1323 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1325 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1326 (score7_linux_iterate_over_regset_sections): New.
1327 (score_gdbarch_init): Adjust gdbarch initialization.
1329 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1331 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1333 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1334 method 'make_corefile_notes'.
1335 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1336 (ppcfbsd_regset_from_core_section): Remove.
1337 (ppcfbsd_iterate_over_regset_sections): New.
1338 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1340 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1341 (ppcnbsd_iterate_over_regset_sections): New.
1342 (ppcnbsd_init_abi): Adjust.
1343 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1344 (ppcobsd_iterate_over_regset_sections): New.
1345 (ppcobsd_init_abi): Adjust.
1346 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1347 (rs6000_aix_iterate_over_regset_sections): New.
1348 (rs6000_aix_init_osabi): Adjust.
1350 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1352 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1353 (nios2_regset_from_core_section): Remove.
1354 (nios2_iterate_over_regset_sections): New.
1355 (nios2_linux_init_abi): Adjust gdbarch initialization.
1357 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1359 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1360 (am33_iterate_over_regset_sections): New.
1361 (am33_linux_init_osabi): Adjust gdbarch initialization.
1363 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1365 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1366 (mips_linux_iterate_over_regset_sections): New.
1367 (mips_linux_init_abi): Adjust gdbarch initialization.
1368 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1369 (mips64obsd_iterate_over_regset_sections): New.
1370 (mips64obsd_init_abi): Adjust.
1371 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1372 (mipsnbsd_iterate_over_regset_sections): New.
1373 (mipsnbsd_init_abi): Adjust.
1375 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1377 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1378 (m88k_iterate_over_regset_sections): New.
1379 (m88k_gdbarch_init): Adjust gdbarch initialization.
1381 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1383 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1384 (ia64_linux_iterate_over_regset_sections): New.
1385 (ia64_linux_init_abi): Adjust gdbarch initialization.
1387 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1389 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1390 (m68kbsd_iterate_over_regset_sections): New.
1391 (m68kbsd_init_abi): Adjust gdbarch initialization.
1392 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1393 (m68k_linux_iterate_over_regset_sections): New.
1394 (m68k_linux_init_abi): Adjust gdbarch initialization.
1396 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1398 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1399 (m32r_linux_regset_from_core_section): Remove.
1400 (m32r_linux_iterate_over_regset_sections): New.
1401 (m32r_linux_init_abi): Adjust gdbarch initialization.
1403 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1405 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1406 (amd64obsd_iterate_over_regset_sections): New.
1407 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1408 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1410 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1411 regset_from_core_section initialization.
1412 * i386-tdep.c (i386_regset_from_core_section): Remove.
1413 (i386_iterate_over_regset_sections): New.
1414 (i386_gdbarch_init): Adjust gdbarch initialization.
1415 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1416 (i386_iterate_over_regset_sections): New prototype.
1417 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1419 (i386obsd_aout_iterate_over_regset_sections): New.
1420 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1421 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1423 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1424 (amd64fbsd_init_abi): Call fbsd_init_abi.
1425 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1426 (i386fbsd4_init_abi): Call fbsd_init_abi.
1427 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1428 target method 'make_corefile_notes'.
1429 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1431 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1433 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1434 (hppa_hpux_iterate_over_regset_sections): New.
1435 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1436 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1437 (hppa_linux_iterate_over_regset_sections): New.
1438 (hppa_linux_init_abi): Adjust.
1439 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1440 (hppanbsd_iterate_over_regset_sections): New.
1441 (hppanbsd_init_abi): Adjust.
1442 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1443 (hppaobsd_iterate_over_regset_sections): New.
1444 (hppaobsd_init_abi): Adjust.
1446 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1448 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1449 (frv_linux_iterate_over_regset_sections): New.
1450 (frv_linux_init_abi): Adjust gdbarch initialization.
1452 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1454 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1455 (armbsd_iterate_over_regset_sections): New prototype.
1456 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1457 (armbsd_iterate_over_regset_sections): New.
1458 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1461 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1463 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1464 (alpha_linux_iterate_over_regset_sections): New.
1465 (alpha_linux_init_abi): Adjust gdbarch initialization.
1466 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1468 (alphanbsd_iterate_over_regset_sections): New prototype.
1470 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1472 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1474 (aarch64_linux_iterate_over_regset_sections): New.
1475 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1477 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1479 * fbsd-tdep.c: New file.
1480 * fbsd-tdep.h: New file.
1481 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1482 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1483 (ALLDEPFILES): Add fbsd-tdep.c.
1485 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1487 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1489 * gdbarch.h: Regenerate.
1490 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1492 (get_core_register_section): Add parameter 'regset' and use it, if
1493 set. Add parameter 'min_size' and verify the bfd section size
1495 (get_core_registers_cb): Add parameter 'regset' and pass it to
1496 get_core_register section. For the "standard" register sections
1497 ".reg" and ".reg2", set an appropriate default for human_name.
1498 (get_core_registers): Don't abort when the gdbarch has an iterator
1499 but no regset_from_core_section. Add NULL/0 for parameters
1500 'regset'/'min_size' in calls to get_core_register_section.
1501 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1502 'regset' and use it instead of calling the
1503 regset_from_core_section gdbarch method.
1504 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1505 * i386-tdep.c (i386_supply_xstateregset)
1506 (i386_collect_xstateregset, i386_xstateregset): Moved to
1508 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1510 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1511 core file support only if the regset iterator hasn't been set.
1512 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1513 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1514 Moved from i386-tdep.c and renamed to *_linux*.
1515 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1516 each callback invocation. Allow any .reg-xstate size when reading
1518 * amd64-tdep.c (amd64_supply_xstateregset)
1519 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1521 (amd64_regset_from_core_section): Remove.
1522 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1523 install an amd64-specific regset_from_core_section gdbarch method.
1524 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1525 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1526 Moved from amd64-tdep.c and renamed to *_linux*.
1527 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1528 to each callback invocation. Allow any .reg-xstate size when
1529 reading from a core file.
1530 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1531 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1532 each callback invocation.
1533 (arm_linux_init_abi): No longer set the regset_from_core_section
1535 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1536 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1537 each callback invocation.
1538 (ppc_linux_init_abi): No longer set the regset_from_core_section
1540 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1541 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1542 (s390_regset_from_core_section): Remove.
1543 (s390_iterate_over_regset_sections): Add regset parameter to each
1544 callback invocation.
1545 (s390_gdbarch_init): No longer set the regset_from_core_section
1546 gdbarch method. Drop initialization of deleted tdep fields.
1548 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1550 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1551 (amd64_linux_iterate_over_regset_sections): New.
1552 (amd64_linux_init_abi_common): Don't install the regset section
1553 list, but the new iterator in gdbarch.
1554 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1555 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1556 (arm_linux_iterate_over_regset_sections): ...here. New function.
1557 (arm_linux_init_abi): Set iterator instead of section list.
1558 * corelow.c (get_core_registers_cb): New function, logic moved
1560 (get_core_registers): ...loop body here. Use new iterator method
1561 instead of walking through the regset section list.
1562 * gdbarch.sh: Remove 'core_regset_sections'. New method
1563 'iterate_over_regset_sections'. New typedef
1564 'iterate_over_regset_sections_cb'.
1565 * gdbarch.c: Regenerate.
1566 * gdbarch.h: Likewise.
1567 * i386-linux-tdep.c (i386_linux_regset_sections)
1568 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1570 (i386_linux_iterate_over_regset_sections): New.
1571 (i386_linux_init_abi): Don't choose a regset section list, but
1572 install new iterator in gdbarch.
1573 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1574 (linux_collect_regset_section_cb): New function, logic moved
1576 (linux_collect_thread_registers): ...loop body here. Use iterator
1577 method instead of walking through list.
1578 (linux_make_corefile_notes_1): Check for presence of iterator
1579 method instead of regset section list.
1580 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1581 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1582 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1583 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1584 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1585 (ppc_linux_init_abi): Don't choose from above regset section
1586 lists, but install new iterator in gdbarch.
1587 * regset.h (struct core_regset_section): Remove.
1588 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1589 have_linux_v1, have_linux_v2, and have_tdb.
1590 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1591 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1592 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1593 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1594 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1595 (s390_iterate_over_regset_sections): ...here. New function. Use
1597 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1598 regset section lists, but install new iterator.
1600 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1602 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1604 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1606 * progspace.c (print_program_space): Don't prune program spaces
1607 before printing them.
1609 2014-09-25 Pedro Alves <palves@redhat.com>
1611 * infrun.c (user_visible_resume_ptid): Don't check
1612 singlestep_breakpoints_inserted_p.
1614 2014-09-25 Pedro Alves <palves@redhat.com>
1616 * breakpoint.c (should_be_inserted): Add debug output.
1618 2014-09-25 Pedro Alves <palves@redhat.com>
1620 * infrun.c (stepping_past_instruction_at)
1621 (clear_exit_convenience_vars): Point at infrun.h instead of
1623 (handle_signal_stop): Fix typo.
1625 2014-09-24 Yao Qi <yao@codesourcery.com>
1627 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1630 2014-09-22 Gary Benson <gbenson@redhat.com>
1632 * target.c (target_stop): Updated comment.
1634 2014-09-22 Gary Benson <gbenson@redhat.com>
1636 * target/target.h (target_stop_ptid): Renamed as...
1637 (target_stop_and_wait): New function. Updated comment.
1639 (target_continue_ptid): Renamed as...
1640 (target_continue_no_signal): New function. Updated comment.
1643 2014-09-22 Pedro Alves <palves@redhat.com>
1645 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1647 * breakpoint.c (enum ugll_insert_mode): New enum.
1648 (always_inserted_mode): Now a plain boolean.
1649 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1650 (breakpoints_always_inserted_mode): Delete.
1651 (breakpoints_should_be_inserted_now): New function.
1652 (insert_breakpoints): Pass UGLL_INSERT to
1653 update_global_location_list instead of calling
1654 insert_breakpoint_locations manually.
1655 (create_solib_event_breakpoint_1): New, factored out from ...
1656 (create_solib_event_breakpoint): ... this.
1657 (create_and_insert_solib_event_breakpoint): Use
1658 create_solib_event_breakpoint_1 instead of calling
1659 insert_breakpoint_locations manually.
1660 (update_global_location_list): Change parameter type from boolean
1661 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1662 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1663 (update_global_location_list_nothrow): Change parameter type from
1664 boolean to enum ugll_insert_mode.
1665 (_initialize_breakpoint): "breakpoint always-inserted" option is
1666 now a boolean command. Update help text.
1667 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1668 (breakpoints_should_be_inserted_now): New declaration.
1669 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1670 Remove breakpoints_always_inserted_mode check.
1671 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1672 * remote.c (remote_start_remote): Likewise.
1674 2014-09-22 Pedro Alves <palves@redhat.com>
1676 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1677 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1678 Instead, pass UGLL_INSERT to update_global_location_list.
1679 (update_global_location_list): Change parameter type from boolean
1680 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1681 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1682 (create_solib_event_breakpoint_1): New, factored out from ...
1683 (create_solib_event_breakpoint): ... this.
1684 (create_and_insert_solib_event_breakpoint): Use
1685 create_solib_event_breakpoint_1 instead of calling
1686 insert_breakpoint_locations manually.
1687 (update_global_location_list): Handle UGLL_INSERT.
1689 2014-09-22 Pedro Alves <palves@redhat.com>
1691 * breakpoint.c (enum ugll_insert_mode): New enum.
1692 (update_global_location_list)
1693 (update_global_location_list_nothrow): Change parameter type from
1694 boolean to enum ugll_insert_mode. All callers adjusted.
1696 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1698 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1699 SystemTap support in GDB.
1701 2014-09-19 Don Breazeal <donb@codesourcery.com>
1703 * linux-nat.c (linux_handle_extended_wait): Call
1704 linux_ptrace_get_extended_event.
1705 (wait_lwp): Call linux_is_extended_waitstatus.
1706 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1707 and linux_is_extended_waitstatus.
1708 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1709 linux_ptrace_get_extended_event.
1710 (linux_ptrace_get_extended_event): New function.
1711 (linux_is_extended_waitstatus): New function.
1712 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1713 (linux_is_extended_waitstatus): New declarations.
1715 2014-09-19 Yao Qi <yao@codesourcery.com>
1717 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1718 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1719 comments. Callers update.
1720 (dwarf_decode_lines): Likewise.
1721 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1722 comments. Skip the line table if 'lowpc' is greater than
1723 'address'. Don't check
1724 dwarf2_per_objfile->has_section_at_zero.
1726 2014-09-18 Doug Evans <dje@google.com>
1728 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1729 * python/py-symtab.c (stpy_get_producer): New function.
1730 (symtab_object_getset): Add "producer" attribute.
1732 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1735 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1736 (do_captured_read_memory_integer): Remove.
1737 (safe_read_memory_integer): Use target_read_memory directly instead
1738 of catching errors in do_captured_read_memory_integer.
1740 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1742 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1745 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1747 * objc-lang.c (find_implementation_from_class): Remove dead code.
1749 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1752 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1753 "fprintf_unfiltered (gdb_stdlog...)".
1755 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1757 PR breakpoints/12526
1758 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1760 * breakpoint.c (watch_command_1): Use these fields to retain
1761 bitfield information.
1762 (extract_bitfield_from_watchpoint_value): New function.
1763 (watchpoint_check): Use it.
1764 (update_watchpoint): Use it. Optimize the address and length of a
1765 HW watchpoint pointing to a bitfield.
1766 * value.h (unpack_value_bitfield): New prototype.
1767 * value.c (unpack_value_bitfield): Make extern.
1769 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1771 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1773 * gnu-nat.c (inf_threads): New function.
1774 * gnu-nat.h (inf_threads_ftype): New typedef.
1775 (inf_threads): New declaration.
1776 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1777 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1778 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1779 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1780 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1781 (i386_gnu_dr_get_control): New functions.
1782 (reg_addr): New structure.
1783 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1784 i386 debugging register hooks.
1785 * NEWS: Mention this.
1787 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1789 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1790 vector data transfer instructions.
1791 (arm_record_coproc_data_proc): Updated.
1793 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1795 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1796 arm_record_exreg_ld_st_insn.
1797 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1800 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1802 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1803 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1804 processing instructions.
1806 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1808 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1809 for advance SIMD struct ld/st insn.
1810 (thumb2_record_decode_insn_handler): Replace stub handler with
1811 thumb2_record_asimd_struct_ld_st.
1813 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1815 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1816 for asimd, vfp and coprocessor insns.
1817 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1818 and coprocessor insns.
1819 (thumb2_record_coproc_insn): New function.
1820 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1822 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1825 2014-09-13 Doug Evans <xdje42@gmail.com>
1827 * NEWS: Mention new "queue-signal" command.
1828 * infcmd.c (queue_signal_command): New function.
1829 (_initialize_infcmd): Add new queue-signal command.
1831 2014-09-13 Doug Evans <xdje42@gmail.com>
1833 * linux-nat.c (wait_lwp): Add debugging printf.
1834 (linux_nat_wait_1): Ditto.
1836 2014-09-12 Pedro Alves <palves@redhat.com>
1838 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1839 (create_and_insert_solib_event_breakpoint): New functions.
1840 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1841 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1842 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1843 (remove_dbx_link_breakpoint): Delete function.
1844 (insert_dbx_link_bpt_in_file): Use
1845 create_and_insert_solib_event_breakpoint instead of
1846 deprecated_insert_raw_breakpoint.
1847 (procfs_wait): Don't check whether we hit __dbx_link here.
1848 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1850 * solib-irix.c (base_breakpoint): Delete global.
1851 (disable_break): Delete function.
1852 (enable_break): Use create_solib_event_breakpoint
1853 instead of deprecated_insert_raw_breakpoint.
1854 (irix_solib_handle_event): New function.
1855 (irix_solib_create_inferior_hook): Don't run the target or disable
1856 the mapping-complete breakpoint here.
1857 (_initialize_irix_solib): Install irix_solib_handle_event as
1858 so_ops->handle_event hook.
1860 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1861 Ulrich Weigand <uweigand@de.ibm.com>
1864 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1865 instead of read_memory_unsigned_integer.
1867 2014-09-12 Gary Benson <gbenson@redhat.com>
1869 * nat/linux-waitpid.c: Include common-defs.h.
1870 [GDBSERVER]: Add FIXME comment.
1871 [!GDBSERVER]: Don't include defs.h or signal.h.
1872 (linux_debug) [!GDBSERVER]: Remove empty block.
1874 2014-09-12 Gary Benson <gbenson@redhat.com>
1876 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1877 Don't include defs.h or server.h.
1879 2014-09-12 Gary Benson <gbenson@redhat.com>
1881 * nat/linux-btrace.c: Include common-defs.h.
1882 Don't include defs.h, server.h or gdbthread.h.
1883 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1885 2014-09-12 Gary Benson <gbenson@redhat.com>
1887 * common/agent.c: Include common-defs.h.
1888 Don't include defs.h or server.h.
1889 * common/buffer.c: Likewise.
1890 * common/common-debug.c: Likewise.
1891 * common/common-utils.c: Likewise.
1892 * common/errors.c: Likewise.
1893 * common/filestuff.c: Likewise.
1894 * common/format.c: Likewise.
1895 * common/gdb_vecs.c: Likewise.
1896 * common/print-utils.c: Likewise.
1897 * common/ptid.c: Likewise.
1898 * common/rsp-low.c: Likewise.
1899 * common/signals.c: Likewise.
1900 * common/vec.c: Likewise.
1901 * common/xml-utils.c: Likewise.
1902 * nat/linux-osdata.c: Likewise.
1903 * nat/linux-procfs.c: Likewise.
1904 * nat/linux-ptrace.c: Likewise.
1905 * nat/mips-linux-watch.c: Likewise.
1906 * target/waitstatus.c: Likewise.
1908 2014-09-12 Tom Tromey <tromey@redhat.com>
1909 Gary Benson <gbenson@redhat.com>
1911 * common/common-regcache.h: New file.
1912 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1913 * regcache.h: Include common-regcache.h.
1914 (regcache_read_pc): Don't declare.
1915 * regcache.c (get_thread_regcache_for_ptid): New function.
1916 * nat/linux-btrace.c: Don't include regcache.h.
1917 Include common-regcache.h.
1918 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1920 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1922 * regcache.h (struct regset): Declare.
1924 2014-09-11 Pedro Alves <palves@redhat.com>
1927 * main.c: Include "infrun.h".
1928 (catch_command_errors, catch_command_errors_const): Wait for the
1929 foreground command to complete.
1930 * top.c (maybe_wait_sync_command_done): New function, factored out
1932 (maybe_wait_sync_command_done): ... here.
1933 * top.h (maybe_wait_sync_command_done): New declaration.
1935 2014-09-11 Tom Tromey <tromey@redhat.com>
1936 Gary Benson <gbenson@redhat.com>
1938 * common/symbol.h: New file.
1939 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1940 * minsyms.c (find_minimal_symbol_address): New function.
1941 * common/agent.c: Include common/symbol.h.
1942 [!GDBSERVER]: Don't include objfiles.h.
1943 (agent_look_up_symbols): Use find_minimal_symbol_address.
1945 2014-09-11 Gary Benson <gbenson@redhat.com>
1947 * target/target.h (target_stop_ptid, target_continue_ptid):
1949 * target.c (target_stop_ptid, target_continue_ptid): New
1951 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1952 (agent_run_command): Always use target_stop_ptid and
1953 target_continue_ptid.
1955 2014-09-11 Tom Tromey <tromey@redhat.com>
1956 Gary Benson <gbenson@redhat.com>
1958 * target/target.h: New file.
1959 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1960 * target.h: Include target/target.h.
1961 (target_read_memory, target_write_memory): Don't declare.
1962 * target.c (target_read_uint32): New function.
1963 * common/agent.c: Include target/target.h.
1964 [!GDBSERVER]: Don't include target.h.
1965 (helper_thread_id): Type changed to uint32_t.
1966 (agent_get_helper_thread_id): Use target_read_uint32.
1967 (agent_run_command): Always use target_read_memory and
1968 target_write_memory.
1969 (agent_capability): Type changed to uint32_t.
1970 (agent_capability_check): Use target_read_uint32.
1972 2014-09-11 Gary Benson <gbenson@redhat.com>
1974 * common/common-debug.h (show_debug_regs): Declare.
1975 * common/common-debug.c (show_debug_regs): Define.
1976 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1977 all uses with show_debug_regs. Replace all uses that considered
1978 debug_hw_points as a multi-value integer with straight boolean
1980 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1981 with show_debug_regs.
1982 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1983 all uses with show_debug_regs.
1984 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1985 uses with show_debug_regs.
1987 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1989 * findvar.c (address_from_register): Handle targets requiring
1990 a special conversion routine even for plain pointer types.
1992 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1994 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1995 (store_register): Do not call exec_one_dummy_insn.
1997 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1999 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2000 dereference it first. Use value_enclosing_type instead of
2002 (ada_array_length): Likewise.
2004 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2006 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2007 Adjust function implementation and documentation accordingly.
2008 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2009 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2010 Update call to ada_value_ptr_subscript.
2012 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2014 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2015 instead of VAL's type.
2017 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2019 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2021 2014-09-09 Doug Evans <xdje42@gmail.com>
2024 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2025 last parameter to pkg-config, not first.
2026 * configure.ac: Pass --with-guile provided pkg-config path to
2027 GDB_GUILE_PROGRAM_NAMES.
2028 * configure: Regenerate.
2030 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2032 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2035 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2037 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2038 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2039 the list of sections determining GDB_OSABI_IRIX.
2041 2014-09-09 James Hogan <james.hogan@imgtec.com>
2043 * MAINTAINERS (Write After Approval): Add "James Hogan".
2045 2014-09-09 James Hogan <james.hogan@imgtec.com>
2047 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2049 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2051 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2053 2014-09-08 Doug Evans <xdje42@gmail.com>
2056 * guile.c: #include <signal.h>.
2057 (_initialize_guile): Block SIGCHLD while initializing Guile.
2059 Replaces the following, which is reverted.
2061 2014-07-26 Doug Evans <xdje42@gmail.com>
2064 * configure.ac: Add check for header gc/gc.h.
2065 Add check for function setenv.
2066 * configure: Regenerate.
2067 * config.in: Regenerate.
2068 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2070 2014-09-08 Doug Evans <xdje42@gmail.com>
2072 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2073 with named constant. Fix style of pointer comparison.
2074 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2076 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2079 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2080 decide whether we display the command on "show user".
2081 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2082 printing command name.
2083 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2084 * cli/cli-decode.c (cli_user_command_p): Create helper function
2085 to verify whether cmd_list_element is a user-defined command.
2087 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2090 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2091 Fix goto out of TRY_CATCH.
2093 2014-09-06 Doug Evans <xdje42@gmail.com>
2094 Tom Tromey <tromey@redhat.com>
2097 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2098 $_any_caller_matches.
2099 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2100 * python/lib/gdb/function/caller_is.py: New file.
2102 2014-09-06 Doug Evans <xdje42@gmail.com>
2104 * infcmd.c (program_info): Fix typo.
2106 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2109 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2110 'number'. New variable 'has_digit'. Rewrite code to deal with
2111 subexpressions on SDT probes.
2113 2014-09-04 Pedro Alves <palves@redhat.com>
2115 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2116 the input is only one character long.
2118 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2121 * f-valprint.c (f_val_print): Specify the correct print option to
2122 use when printing integer values.
2124 2014-09-04 Gary Benson <gbenson@redhat.com>
2126 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2127 Remove code to cope with LWPs wrapped as PIDs.
2128 Add assertions to ensure no wrapped LWPs are passed.
2130 2014-09-04 Pedro Alves <palves@redhat.com>
2132 * value.c (value_ranges_copy_adjusted): New function, factored out
2134 (value_contents_copy_raw): ... here.
2135 (unpack_value_bits_as_long_1): Rename back to ...
2136 (unpack_bits_as_long): ... this. Remove 'original_value' and
2137 'result' parameters. Change return type to LONGEST.
2138 (unpack_value_bits_as_long): Delete.
2139 (unpack_value_field_as_long_1): Delete.
2140 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2141 (unpack_value_bitfield): New function.
2142 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2143 (value_fetch_lazy): Use unpack_value_bitfield.
2144 * value.h (unpack_value_bits_as_long): Delete declaration.
2146 2014-09-03 Sasha Smundak <asmundak@google.com>
2148 * python/py-frame.c (frapy_read_register): New function.
2150 2014-09-03 James Hogan <james.hogan@imgtec.com>
2152 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2153 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2155 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2158 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2160 (add_cmd): Set "completer_handle_brkchars" to NULL.
2161 * cli/cli-decode.h (struct cmd_list_element)
2162 <completer_handle_brkchars>: New field.
2163 * command.h (completer_ftype_void): New typedef.
2164 (set_cmd_completer_handle_brkchars): New prototype.
2165 * completer.c (set_gdb_completion_word_break_characters): New
2167 (complete_line_internal): Call "completer_handle_brkchars"
2168 callback from command.
2169 * completer.h: Include "command.h".
2170 (set_gdb_completion_word_break_characters): New prototype.
2171 * python/py-cmd.c (cmdpy_completer_helper): New function.
2172 (cmdpy_completer_handle_brkchars): New function.
2173 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2174 (cmdpy_init): Set completer_handle_brkchars to
2175 cmdpy_completer_handle_brkchars.
2177 2014-09-03 Gary Benson <gbenson@redhat.com>
2179 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2180 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2181 Loop conditions changed to equivalent form.
2182 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2183 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2184 ALL_DEBUG_ADDRESS_REGISTERS.
2186 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2188 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2191 2014-09-02 Doug Evans <dje@google.com>
2193 * typeprint.c (find_global_typedef): Fix comment.
2195 2014-09-02 Gary Benson <gbenson@redhat.com>
2197 * i386-nat.h: Renamed as...
2198 * x86-nat.h: New file. All type, function and variable name
2199 prefixes changed from "i386_" to "x86_". All references updated.
2200 * i386-nat.c: Renamed as...
2201 * x86-nat.c: New file. All type, function and variable name
2202 prefixes changed from "i386_" to "x86_". All references updated.
2203 * common/i386-xstate.h: Renamed as...
2204 * common/x86-xstate.h: New file. All type, function and variable
2205 name prefixes changed from "i386_" to "x86_". All references
2207 * nat/i386-cpuid.h: Renamed as...
2208 * nat/x86-cpuid.h: New file. All type, function and variable name
2209 prefixes changed from "i386_" to "x86_". All references updated.
2210 * nat/i386-gcc-cpuid.h: Renamed as...
2211 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2212 name prefixes changed from "i386_" to "x86_". All references
2214 * nat/i386-dregs.h: Renamed as...
2215 * nat/x86-dregs.h: New file. All type, function and variable name
2216 prefixes changed from "i386_" to "x86_". All references updated.
2217 * nat/i386-dregs.c: Renamed as...
2218 * nat/x86-dregs.c: New file. All type, function and variable name
2219 prefixes changed from "i386_" to "x86_". All references updated.
2221 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2223 * varobj.c (_initialize_varobj): Move to the end of file.
2225 2014-08-29 Gary Benson <gbenson@redhat.com>
2227 * common/common-exceptions.h: New file.
2228 * common/common-exceptions.c: Likewise.
2229 * Makefile.in (SFILES): Add common/common-exceptions.c.
2230 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2231 (COMMON_OBS): Add common-exceptions.o.
2232 (common-exceptions.o): New rule.
2233 * exceptions.h (common-exceptions.h): Include.
2234 (gdb_setjmp.h): Do not include.
2235 (return_reason): Moved to common-exceptions.h.
2236 (enum return_reason): Likewise.
2237 (RETURN_MASK): Likewise.
2238 (typedef return_mask): Likewise.
2239 (enum errors): Likewise.
2240 (struct gdb_exception): Likewise.
2241 (exceptions_state_mc_init): Likewise.
2242 (exceptions_state_mc_action_iter): Likewise.
2243 (exceptions_state_mc_action_iter_1): Likewise.
2244 (TRY_CATCH): Likewise.
2245 (throw_exception): Likewise.
2246 (throw_verror): Likewise.
2247 (throw_vquit): Likewise.
2248 (throw_error): Likewise.
2249 (throw_quit): Likewise.
2250 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2251 (enum catcher_action): Likewise.
2252 (struct catcher): Likewise.
2253 (current_catcher): Likewise.
2254 (catcher_list_size): Likewise.
2255 (exceptions_state_mc_init): Likewise.
2256 (catcher_pop): Likewise.
2257 (exceptions_state_mc): Likewise.
2258 (exceptions_state_mc_action_iter): Likewise.
2259 (exceptions_state_mc_action_iter_1): Likewise.
2260 (throw_exception): Likewise.
2261 (exception_messages): Likewise.
2262 (exception_messages_size): Likewise.
2263 (throw_it): Likewise.
2264 (throw_verror): Likewise.
2265 (throw_vquit): Likewise.
2266 (throw_error): Likewise.
2267 (throw_quit): Likewise.
2268 (prepare_to_throw_exception): New function.
2270 2014-08-29 Gary Benson <gbenson@redhat.com>
2272 * common/gdb_setjmp.h: New file.
2273 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2274 * configure.ac: Move sigsetjmp check...
2275 * common/common.m4: ...here.
2276 * configure: Regenerate.
2277 * cp-support.c (SIGJMP_BUF): Delete.
2278 (SIGSETJMP): Likewise.
2279 (SIGLONGJMP): Likewise.
2280 * exceptions.h (gdb_setjmp.h): Include.
2281 (setjmp.h): Do not include.
2282 (EXCEPTIONS_SIGJMP_BUF): Delete.
2283 (EXCEPTIONS_SIGSETJMP): Likewise.
2284 (EXCEPTIONS_SIGLONGJMP): Likewise.
2285 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2287 * exceptions.c: Likewise.
2289 2014-08-29 Gary Benson <gbenson@redhat.com>
2291 * cleanups.h: Moved to...
2292 * common/cleanups.h: New file.
2293 * cleanups.c: Moved to...
2294 * common/cleanups.c: New file. Include common-defs.h and
2295 cleanups.h. Do not include defs.h.
2296 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2297 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2298 (cleanups.o): New rule.
2300 2014-08-29 Gary Benson <gbenson@redhat.com>
2302 * common/errors.h (internal_warning): New declaration.
2303 (internal_vwarning): Likewise.
2304 * common/errors.c (internal_warning): New function.
2305 * utils.h (internal_warning): Don't declare.
2306 (internal_vwarning): Likewise.
2307 * utils.c (internal_warning): Removed.
2309 2014-08-29 Gary Benson <gbenson@redhat.com>
2311 * main.c (captured_main): Use warning during startup.
2312 Prefix startup warning messages with command name.
2314 2014-08-29 Gary Benson <gbenson@redhat.com>
2316 * main.c (captured_main): Handle usage errors with error.
2318 2014-08-29 Gary Benson <gbenson@redhat.com>
2320 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2321 exit pair with a call to error. Wrap the message with _().
2323 2014-08-29 Gary Benson <gbenson@redhat.com>
2325 * main.c (captured_main): Replace a fprintf/exit
2326 pair with a call to error. Wrap the message with _().
2328 2014-08-29 Gary Benson <gbenson@redhat.com>
2330 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2331 pairs with calls to error. Wrap the message with _().
2333 2014-08-29 Gary Benson <gbenson@redhat.com>
2335 * utils.c (vwarning): Protect calls to target_terminal_ours
2338 2014-08-29 Gary Benson <gbenson@redhat.com>
2340 * exceptions.c (print_flush): Protect calls to
2341 target_terminal_ours and wrap_here.
2343 2014-08-29 Gary Benson <gbenson@redhat.com>
2345 * utils.h (filtered_printing_initialized): New declaration.
2346 * utils.c (abort_with_message): New function.
2347 (internal_vproblem): Use abort_with_message for first level
2348 recursive internal problems, and if gdb_stderr is not set up.
2349 Protect calls to target_terminal_ours, begin_line and query.
2351 2014-08-28 Doug Evans <dje@google.com>
2353 * symtab.c (in_prologue): Move definition to better spot.
2354 (skip_prologue_using_sal): Ditto.
2356 2014-08-28 Doug Evans <dje@google.com>
2358 * symtab.c (find_function_start_sal): Move definition to better spot.
2360 2014-08-28 Yao Qi <yao@codesourcery.com>
2362 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2363 found_stack_adjust in forward scan. Remove condition check
2364 on found_stack_adjust which is always true. Indent the code.
2366 2014-08-28 Yao Qi <yao@codesourcery.com>
2368 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2369 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2370 (dwarf_decode_lines): Remove argument
2371 want_line_info. Remove condition check on want_line_info.
2374 2014-08-27 Doug Evans <dje@google.com>
2376 * dwarf2read.c (dwarf_record_line): Fix typo.
2378 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2380 * target.h (struct target_ops::to_terminal_save_ours): Remove
2382 (target_terminal_save_ours): Remove macro.
2383 * target-delegates.c: Regenerate.
2384 * inf-child.c (inf_child_target): Don't set the nonexistent
2385 field to_terminal_save_ours.
2386 * inferior.h (child_terminal_save_ours): Remove declaration.
2387 * terminal.h (gdb_save_tty_state): New declaration.
2388 * inflow.c (child_terminal_save_ours): Rename to ...
2389 (gdb_save_tty_state): ... this.
2390 * tui/tui.c: Include terminal.h.
2391 (tui_enable): Use gdb_save_tty_state instead of
2392 target_terminal_save_ours.
2393 (tui_disable): Likewise.
2395 2014-08-25 Doug Evans <dje@google.com>
2397 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2398 Pass NULL instead of 0 for context pointer.
2400 2014-08-25 Yao Qi <yao@codesourcery.com>
2402 * dwarf2read.c: Fix grammatical error.
2404 2014-08-24 Yao Qi <yao@codesourcery.com>
2406 * dwarf2read.c (scan_partial_symbols): Update comments.
2407 Rename argument 'need_pc' with 'set_addrmap'.
2408 (add_partial_namespace): Rename argument 'need_pc' with
2410 (add_partial_module): Likewise.
2411 (add_partial_subprogram): Likewise. Update comments.
2412 (dwarf2_name): Fix typo.
2414 2014-08-22 Doug Evans <dje@google.com>
2417 * dwarf2read.c (dwarf_record_line_p): New function.
2418 (dwarf_decode_lines_1): Ignore subsequent line number entries
2419 for the same line if any entry had a non-zero discriminator.
2421 2014-08-22 Doug Evans <dje@google.com>
2423 * buildsym.h (record_line_ftype): New typedef.
2424 (record_line): Use it.
2425 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2426 (dwarf_decode_lines_1): Call them.
2428 2014-08-22 Yao Qi <yao@codesourcery.com>
2430 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2431 (ctf_end): Remove code.
2433 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2435 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2436 (linux_make_corefile_notes): call update_thread_list, protected against
2439 2014-08-21 Pedro Alves <palves@redhat.com>
2441 * infcmd.c (attach_command): Remove comment.
2443 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2445 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2446 unsigned LONGEST to ULONGEST.
2448 2014-08-20 Pedro Alves <palves@redhat.com>
2450 * Makefile.in (check-read1): New rule.
2452 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2454 * value.c (value_from_contents_and_address): Strip resolved_type's
2455 typedef layers before checking its TYPE_DATA_LOCATION.
2457 2014-08-20 Pedro Alves <palves@redhat.com>
2459 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2461 2014-08-20 Yao Qi <yao@codesourcery.com>
2463 * amd64-tdep.c (amd64_classify): Add a blank line after the
2464 example. Move "*/" to a new line.
2465 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2466 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2467 * dwarf2read.c (psymtab_include_file_name): Likewise.
2469 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2470 Pedro Alves <palves@redhat.com>
2474 * ada-lang.c (coerce_unspec_val_to_type): Use
2475 value_contents_copy_raw.
2476 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2477 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2478 * cp-valprint.c (cp_print_value_fields): Let the common printing
2479 code handle optimized out values.
2480 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2481 * d-valprint.c (dynamic_array_type): Use
2482 value_bits_any_optimized_out.
2483 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2484 check_any_valid fields.
2485 (check_pieced_value_bits): Delete and inline ...
2486 (check_pieced_synthetic_pointer): ... here.
2487 (check_pieced_value_validity): Delete.
2488 (check_pieced_value_invalid): Delete.
2489 (pieced_value_funcs): Remove check_validity and check_any_valid
2491 (read_pieced_value): Use mark_value_bits_optimized_out.
2492 (write_pieced_value): Switch to use
2493 mark_value_bytes_optimized_out.
2494 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2495 of assuming the whole value is optimized out.
2496 * findvar.c (read_frame_register_value): Remove special handling
2497 of optimized out registers.
2498 (value_from_register): Use mark_value_bytes_optimized_out.
2499 * frame-unwind.c (frame_unwind_got_optimized): Use
2500 mark_value_bytes_optimized_out.
2501 * jv-valprint.c (java_value_print): Adjust.
2502 (java_print_value_fields): Let the common printing code handle
2503 optimized out values.
2504 * mips-tdep.c (mips_print_register): Remove special handling of
2505 optimized out registers.
2506 * opencl-lang.c (lval_func_check_validity): Delete.
2507 (lval_func_check_any_valid): Delete.
2508 (opencl_value_funcs): Remove check_validity and check_any_valid
2510 * p-valprint.c (pascal_object_print_value_fields): Let the common
2511 printing code handle optimized out values.
2512 * stack.c (read_frame_arg): Remove special handling of optimized
2513 out values. Fetch both VAL and ENTRYVAL before comparing
2514 contents. Adjust to value_available_contents_eq rename.
2515 * valprint.c (valprint_check_validity)
2516 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2517 (val_print_array_elements): Adjust.
2518 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2519 (value_bits_any_optimized_out): New function.
2520 (value_entirely_covered_by_range_vector): New function, factored
2521 out from value_entirely_unavailable.
2522 (value_entirely_unavailable): Reimplement.
2523 (value_entirely_optimized_out): New function.
2524 (insert_into_bit_range_vector): New function, factored out from
2525 mark_value_bits_unavailable.
2526 (mark_value_bits_unavailable): Reimplement.
2527 (struct ranges_and_idx): New struct.
2528 (find_first_range_overlap_and_match): New function, factored out
2529 from value_available_contents_bits_eq.
2530 (value_available_contents_bits_eq): Rename to ...
2531 (value_contents_bits_eq): ... this. Check both unavailable
2532 contents and optimized out contents.
2533 (value_available_contents_eq): Rename to ...
2534 (value_contents_eq): ... this.
2535 (allocate_value_lazy): Remove reference to the old optimized_out
2537 (allocate_optimized_out_value): Use
2538 mark_value_bytes_optimized_out.
2539 (require_not_optimized_out): Adjust to check whether the
2540 optimized_out vec is empty.
2541 (ranges_copy_adjusted): New function, factored out from
2542 value_contents_copy_raw.
2543 (value_contents_copy_raw): Also copy the optimized out ranges.
2544 Assert the destination ranges aren't optimized out.
2545 (value_contents_copy): Update comment, remove call to
2546 require_not_optimized_out.
2547 (value_contents_equal): Adjust to check whether the optimized_out
2549 (set_value_optimized_out, value_optimized_out_const): Delete.
2550 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2552 (value_entirely_optimized_out, value_bits_valid): Delete.
2553 (value_copy): Take a VEC copy of the 'optimized_out' field.
2554 (value_primitive_field): Remove special handling of optimized out.
2555 (value_fetch_lazy): Assert that lazy values have no unavailable
2556 regions. Use value_bits_any_optimized_out. Remove some special
2557 handling for optimized out values.
2558 * value.h: Add intro comment about <optimized out> and
2560 (struct lval_funcs): Remove check_validity and check_any_valid
2562 (set_value_optimized_out, value_optimized_out_const): Remove.
2563 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2565 (value_bits_any_optimized_out): New declaration.
2566 (value_bits_valid): Delete declaration.
2567 (value_available_contents_eq): Rename to ...
2568 (value_contents_eq): ... this, and extend comments.
2570 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2572 Fix -fsanitize=address on unreadable inferior strings.
2573 * valprint.c (val_print_string): Fix access before BUFFER.
2575 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2577 * target.c (target_struct_size): Remove.
2578 (target_struct_allocsize): Remove.
2579 (DEFAULT_ALLOCSIZE): Remove.
2580 (target_ops_p): New typedef.
2581 (DEF_VEC_P (target_ops_p)): New vector type.
2582 (target_structs): Change type to VEC (target_ops_p).
2583 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2584 (find_default_run_target): Rewrite for loop following changes to
2587 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2589 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2590 Adjust code accordingly. Adjust function description comment.
2592 2014-08-19 Yao Qi <yao@codesourcery.com>
2594 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2597 2014-08-19 Alan Modra <amodra@gmail.com>
2599 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2600 * config.in: Regenerate.
2601 * configure: Regenerate.
2603 2014-08-19 Tom Tromey <tromey@redhat.com>
2604 Gary Benson <gbenson@redhat.com>
2606 * common/common-debug.h: New file.
2607 * common/common-debug.c: Likewise.
2608 * debug.c: Likewise.
2609 * Makefile.in (SFILES): Add common/common-debug.c.
2610 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2611 (COMMON_OBS): Add common-debug.o and debug.o.
2612 (common-debug.o): New rule.
2613 * common/common-defs.h: Include common-debug.h.
2614 * common/agent.c (debug_agent_printf): New function.
2615 (DEBUG_AGENT): Redefine.
2616 * nat/i386-dregs.c (debug_printf): Undefine.
2618 2014-08-19 Gary Benson <gbenson@redhat.com>
2620 * common/common-defs.h: Include print-utils.h.
2621 * utils.h: Do not include print-utils.h.
2623 2014-08-19 Tom Tromey <tromey@redhat.com>
2624 Gary Benson <gbenson@redhat.com>
2626 * common/common-types.h: New file.
2627 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2628 * common/common-defs.h: Include common-types.h.
2629 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2632 2014-08-19 Tom Tromey <tromey@redhat.com>
2633 Gary Benson <gbenson@redhat.com>
2635 * common/errors.h: New file.
2636 * common/errors.c: Likewise.
2637 * Makefile.in (SFILES): Add common/errors.c.
2638 (HFILES_NO_SRCDIR): Add common/errors.h.
2639 (COMMON_OBS): Add errors.o.
2640 (errors.o): New rule.
2641 * common/common-defs.h: Include errors.h.
2642 * utils.h (perror_with_name, error, verror, warning, vwarning):
2644 * common/common-utils.h: (malloc_failure, internal_error):
2647 2014-08-19 Gary Benson <gbenson@redhat.com>
2649 * utils.c (internal_vproblem): Always print the message.
2651 2014-08-18 Doug Evans <dje@google.com>
2653 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2655 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2657 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2658 Return 0 if TYPE is dynamic.
2659 (print_range): Add handling of dynamic ranges.
2661 2014-08-18 Keven Boell <keven.boell@intel.com>
2662 Joel Brobecker <brobecker@adacore.com>
2664 * gdbtypes.h (struct main_type): Add field "data_location".
2665 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2666 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2667 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2668 a dynamic data location.
2669 (resolve_dynamic_type): Add DW_AT_data_location handling.
2670 (copy_recursive, copy_type): Copy the data_location information
2672 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2673 * value.c (value_from_contents_and_address): Add
2674 DW_AT_data_location handling.
2676 2014-08-18 Keven Boell <keven.boell@intel.com>
2677 Joel Brobecker <brobecker@adacore.com>
2679 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2680 field "get_object_address".
2681 * dwarf2expr.c (execute_stack_op): Add handling for
2682 DW_OP_push_object_address.
2683 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2684 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2685 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2686 (dwarf_expr_get_obj_addr): New function.
2687 (dwarf_expr_ctx_funcs): Add get_object_address field.
2688 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2689 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2690 (dwarf2_evaluate_property): Add parameter "address". Use it.
2691 (needs_get_obj_addr): New function.
2692 (needs_frame_ctx_funcs): Add get_object_address field.
2693 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2694 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2695 (resolve_dynamic_array): Likewise.
2697 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2699 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2700 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2701 fixed value for records and unions for which some GNAT encodings
2704 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2706 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2707 rewrite to avoid "else if" and "else" constructs. Should be
2708 a no-op in practice.
2710 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2712 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2715 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2718 * eval.c: Update all calls to find_overload_match.
2719 * valarith.c: Likewise.
2720 (value_user_defined_cpp_op, value_user_defined_op): New
2721 argument NOSIDE. Update all callers.
2722 * valops.c (find_overload_match): New argument NOSIDE.
2723 * value.h (find_overload_match): Update signature.
2725 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2727 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2728 'items' methods instead of 'iteritems' method on dictionaries.
2730 2014-08-15 Doug Evans <dje@google.com>
2732 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2735 2014-08-15 Doug Evans <dje@google.com>
2737 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2739 2014-08-15 Doug Evans <dje@google.com>
2741 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2743 2014-08-15 Doug Evans <dje@google.com>
2745 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2748 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2750 * dcache.h: Include target.h, to avoid compile time warnings.
2752 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2754 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2755 frame_info" partial declaration.
2756 * gdbarch.h: Regenerate.
2758 2014-08-15 Yao Qi <yao@codesourcery.com>
2760 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2761 Add parameter 'decode_for_pst_p'. Callers update.
2763 2014-08-13 Yao Qi <yao@codesourcery.com>
2766 * configure.ac: Use local variable 'pos'.
2767 * configure: Regenerated.
2769 2014-08-11 Doug Evans <dje@google.com>
2771 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2772 message, it is redundant with "Reading symbols from ..." message.
2774 2014-08-10 Doug Evans <xdje42@gmail.com>
2776 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2778 2014-08-09 Yao Qi <yao@codesourcery.com>
2781 * remote.c (remote_xfer_partial): Remove dead code.
2783 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2785 * ia64-linux-tdep.c: Include "regset.h".
2786 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2787 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2788 (ia64_linux_supply_fpregset): New function.
2789 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2790 (ia64_linux_regset_from_core_section): New function.
2791 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2794 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2796 * m68klinux-tdep.c: Include "regset.h".
2797 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2798 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2799 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2800 (m68k_linux_regset_from_core_section): New function.
2801 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2804 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2806 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2807 function. Move logic to...
2808 (tilegx_linux_regmap): ... this new register map.
2809 (tilegx_linux_regset): Refer to register map, replace supply
2810 method by regcache_supply_regset, and add collect method.
2811 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2812 TILEGX_FIRST_EASY_REGNUM.
2814 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2816 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2817 that calls regcache_supply_regset and handles the EPC register
2818 separately. Move main logic to...
2819 (score7_linux_gregmap): ... this new register map.
2820 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2821 (score7_linux_gregset): Refer to register map. Add collect method.
2822 (score7_linux_regset_from_core_section): Replace
2823 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2824 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2825 (struct regset): Delete unused forward declaraction.
2826 (struct pt_regs): Delete structure definition.
2827 (elf_gregset_t): Delete typedef.
2829 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2831 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2832 (nios2_core_regset): Add collect method.
2834 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2836 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2837 platform-independent and don't write to read-only input buffer.
2838 (m32r_linux_collect_gregset): New function.
2839 (m32r_linux_gregset): Add collect method.
2841 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2843 * hppa-linux-tdep.c (greg_map): Rename to...
2844 (hppa_linux_gregmap): ... this. Also convert to
2845 regcache_map_entry format.
2846 (hppa_linux_supply_regset): Delete function.
2847 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2848 (hppa_linux_fpregmap): ... this new register map.
2849 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2850 register map, replace supply method by regcache_supply_regset, and
2851 add collect method regcache_collect_regset.
2853 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2855 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2856 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2857 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2858 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2859 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2860 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2861 (frv_linux_supply_gregset): Replace main logic by call to
2862 regcache_supply_regset, but keep clearing gr32-gr63.
2863 (frv_linux_supply_fpregset): Delete function.
2864 (frv_linux_gregset): Refer to appropriate register map and add
2865 regcache_collect_regset as the collect method.
2866 (frv_linux_fpregset): Likewise. Also exchange the supply method
2867 by regcache_supply_regset.
2869 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2871 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2872 by call to alpha_supply_int_regs.
2873 (alpha_linux_collect_gregset): New function.
2874 (alpha_linux_supply_fpregset): Replace logic by call to
2875 alpha_supply_fp_regs.
2876 (alpha_linux_collect_fpregset): New function.
2877 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2879 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2881 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2882 by call to regcache_collect_regset.
2883 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2884 instead of aarch64_linux_supply_gregset/_fpregset.
2885 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2886 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2887 header file instead.
2888 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2889 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2890 functions. Move logic to ...
2891 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2893 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2894 refer to new register maps, replace *_regset_from_core by
2895 regcache_supply_regset, and also use regcache_collect_regset.
2896 * aarch64-linux-tdep.h: Include "regset.h".
2897 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2899 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2900 macros, moved from C source file.
2901 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2902 variable declarations.
2904 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2906 * s390-linux-nat.c: Include "regset.h".
2907 (regmap_gregset): Delete macro.
2908 (s390_64_regmap_gregset): New register map for
2909 regcache_supply/_collect_regset.
2910 (s390_64_gregset): New regset.
2911 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2912 (regmap_fpregset): Delete macro.
2913 (s390_native_supply, s390_native_collect): Delete functions.
2914 (supply_gregset, fill_gregset): Replace s390-specific regmap
2915 handling by a call to regcache_supply/_collect_regset.
2916 (supply_fpregset, fill_fpregset): Call regcache_supply/
2917 _collect_regset instead of s390_native_supply/_collect.
2918 (fetch_regset, store_regset): Likewise. Also change the last
2919 parameter to a regset instead of a regmap.
2920 (s390_linux_fetch_inferior_registers)
2921 (390_linux_store_inferior_registers): Adjust last parameter in
2922 calls to fetch_regset and store_regset.
2923 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2924 (s390_gregmap): ... this. Also make static const and convert to
2925 regcache_map_entry format.
2926 (s390x_regmap_gregset): Delete.
2927 (s390_regmap_fpregset): Rename to...
2928 (s390_fpregmap): ... this. Make static const and convert to
2929 regcache_map_entry format.
2930 (s390_regmap_upper, s390_regmap_last_break)
2931 (s390x_regmap_last_break, s390_regmap_system_call)
2932 (s390_regmap_tdb): Likewise.
2933 (s390_supply_regset, s390_collect_regset): Remove functions.
2934 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2936 (s390_gregset, s390_fpregset, s390_upper_regset)
2937 (s390_last_break_regset, s390x_last_break_regset)
2938 (s390_system_call_regset, s390_tdb_regset): Make global and
2939 replace s390_supply/_collect_regset by regcache_supply/
2941 (s390x_gregset): Delete.
2942 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2943 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2944 (s390_regmap_fpregset, s390_regmap_last_break)
2945 (s390x_regmap_last_break, s390_regmap_system_call)
2946 (s390_regmap_tdb): Delete global variable declarations.
2947 (s390_gregset, s390_fpregset, s390_last_break_regset)
2948 (s390x_last_break_regset, s390_system_call_regset)
2949 (s390_tdb_regset): New global variable declarations.
2951 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2953 * regcache.c: Include "regset.h".
2954 (regcache_transfer_regset): New local function.
2955 (regcache_supply_regset, regcache_collect_regset): New functions.
2956 * regcache.h (struct regcache_map_entry): New structure.
2957 (REGCACHE_MAP_SKIP): New enum value.
2958 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2960 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2962 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2963 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2964 (ppc_linux_collect_gregset ): Likewise.
2965 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2966 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2967 (ppc_collect_vrregset): Likewise.
2968 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2971 2014-08-07 Yao Qi <yao@codesourcery.com>
2973 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2974 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2975 * remote.c (remote_read_bytes): Likewise.
2977 2014-08-07 Yao Qi <yao@codesourcery.com>
2979 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2981 2014-08-07 Yao Qi <yao@codesourcery.com>
2984 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2985 TARGET_XFER_OK instead of 0.
2987 2014-08-07 Gary Benson <gbenson@redhat.com>
2989 * common/common-defs.h: Include errno.h.
2990 * defs.h: Do not include errno.h.
2991 * ada-typeprint.c: Likewise.
2992 * c-typeprint.c: Likewise.
2993 * core-regset.c: Likewise.
2994 * corefile.c: Likewise.
2995 * corelow.c: Likewise.
2996 * event-loop.c: Likewise.
2997 * f-typeprint.c: Likewise.
2998 * gnu-nat.c: Likewise.
2999 * go32-nat.c: Likewise.
3000 * i386gnu-nat.c: Likewise.
3001 * m2-typeprint.c: Likewise.
3002 * nat/linux-btrace.c: Likewise.
3003 * p-typeprint.c: Likewise.
3004 * procfs.c: Likewise.
3005 * remote-sim.c: Likewise.
3006 * rs6000-nat.c: Likewise.
3007 * target.c: Likewise.
3008 * typeprint.c: Likewise.
3009 * ui-file.c: Likewise.
3010 * valops.c: Likewise.
3011 * valprint.c: Likewise.
3013 2014-08-07 Gary Benson <gbenson@redhat.com>
3015 * common/common-defs.h: Include string.h.
3016 * aarch64-tdep.c: Do not include string.h.
3017 * ada-exp.y: Likewise.
3018 * ada-lang.c: Likewise.
3019 * ada-lex.l: Likewise.
3020 * ada-typeprint.c: Likewise.
3021 * ada-valprint.c: Likewise.
3022 * aix-thread.c: Likewise.
3023 * alpha-linux-tdep.c: Likewise.
3024 * alpha-mdebug-tdep.c: Likewise.
3025 * alpha-nat.c: Likewise.
3026 * alpha-osf1-tdep.c: Likewise.
3027 * alpha-tdep.c: Likewise.
3028 * alphanbsd-tdep.c: Likewise.
3029 * amd64-dicos-tdep.c: Likewise.
3030 * amd64-linux-tdep.c: Likewise.
3031 * amd64-nat.c: Likewise.
3032 * amd64-sol2-tdep.c: Likewise.
3033 * amd64fbsd-tdep.c: Likewise.
3034 * amd64obsd-tdep.c: Likewise.
3035 * arch-utils.c: Likewise.
3036 * arm-linux-nat.c: Likewise.
3037 * arm-linux-tdep.c: Likewise.
3038 * arm-tdep.c: Likewise.
3039 * arm-wince-tdep.c: Likewise.
3040 * armbsd-tdep.c: Likewise.
3041 * armnbsd-nat.c: Likewise.
3042 * armnbsd-tdep.c: Likewise.
3043 * armobsd-tdep.c: Likewise.
3044 * avr-tdep.c: Likewise.
3045 * ax-gdb.c: Likewise.
3046 * ax-general.c: Likewise.
3047 * bcache.c: Likewise.
3048 * bfin-tdep.c: Likewise.
3049 * breakpoint.c: Likewise.
3050 * build-id.c: Likewise.
3051 * buildsym.c: Likewise.
3052 * c-exp.y: Likewise.
3053 * c-lang.c: Likewise.
3054 * c-typeprint.c: Likewise.
3055 * c-valprint.c: Likewise.
3056 * charset.c: Likewise.
3057 * cli-out.c: Likewise.
3058 * cli/cli-cmds.c: Likewise.
3059 * cli/cli-decode.c: Likewise.
3060 * cli/cli-dump.c: Likewise.
3061 * cli/cli-interp.c: Likewise.
3062 * cli/cli-logging.c: Likewise.
3063 * cli/cli-script.c: Likewise.
3064 * cli/cli-setshow.c: Likewise.
3065 * cli/cli-utils.c: Likewise.
3066 * coffread.c: Likewise.
3067 * common/agent.c: Likewise.
3068 * common/buffer.c: Likewise.
3069 * common/buffer.h: Likewise.
3070 * common/common-utils.c: Likewise.
3071 * common/filestuff.c: Likewise.
3072 * common/filestuff.c: Likewise.
3073 * common/format.c: Likewise.
3074 * common/print-utils.c: Likewise.
3075 * common/rsp-low.c: Likewise.
3076 * common/signals.c: Likewise.
3077 * common/vec.h: Likewise.
3078 * common/xml-utils.c: Likewise.
3079 * core-regset.c: Likewise.
3080 * corefile.c: Likewise.
3081 * corelow.c: Likewise.
3082 * cp-abi.c: Likewise.
3083 * cp-name-parser.y: Likewise.
3084 * cp-support.c: Likewise.
3085 * cp-valprint.c: Likewise.
3086 * cris-tdep.c: Likewise.
3087 * d-exp.y: Likewise.
3088 * darwin-nat.c: Likewise.
3089 * dbxread.c: Likewise.
3090 * dcache.c: Likewise.
3091 * demangle.c: Likewise.
3092 * dicos-tdep.c: Likewise.
3093 * disasm.c: Likewise.
3094 * doublest.c: Likewise.
3095 * dsrec.c: Likewise.
3096 * dummy-frame.c: Likewise.
3097 * dwarf2-frame.c: Likewise.
3098 * dwarf2loc.c: Likewise.
3099 * dwarf2read.c: Likewise.
3100 * elfread.c: Likewise.
3101 * environ.c: Likewise.
3103 * event-loop.c: Likewise.
3104 * exceptions.c: Likewise.
3106 * expprint.c: Likewise.
3107 * f-exp.y: Likewise.
3108 * f-lang.c: Likewise.
3109 * f-typeprint.c: Likewise.
3110 * f-valprint.c: Likewise.
3111 * fbsd-nat.c: Likewise.
3112 * findcmd.c: Likewise.
3113 * findvar.c: Likewise.
3114 * fork-child.c: Likewise.
3115 * frame.c: Likewise.
3116 * frv-linux-tdep.c: Likewise.
3117 * frv-tdep.c: Likewise.
3119 * gdb_bfd.c: Likewise.
3120 * gdbarch.c: Likewise.
3121 * gdbarch.sh: Likewise.
3122 * gdbtypes.c: Likewise.
3123 * gnu-nat.c: Likewise.
3124 * gnu-v2-abi.c: Likewise.
3125 * gnu-v3-abi.c: Likewise.
3126 * go-exp.y: Likewise.
3127 * go-lang.c: Likewise.
3128 * go32-nat.c: Likewise.
3129 * guile/guile.c: Likewise.
3130 * guile/scm-auto-load.c: Likewise.
3131 * hppa-hpux-tdep.c: Likewise.
3132 * hppa-linux-nat.c: Likewise.
3133 * hppanbsd-tdep.c: Likewise.
3134 * hppaobsd-tdep.c: Likewise.
3135 * i386-cygwin-tdep.c: Likewise.
3136 * i386-dicos-tdep.c: Likewise.
3137 * i386-linux-tdep.c: Likewise.
3138 * i386-nto-tdep.c: Likewise.
3139 * i386-sol2-tdep.c: Likewise.
3140 * i386-tdep.c: Likewise.
3141 * i386bsd-tdep.c: Likewise.
3142 * i386gnu-nat.c: Likewise.
3143 * i386nbsd-tdep.c: Likewise.
3144 * i386obsd-tdep.c: Likewise.
3145 * i387-tdep.c: Likewise.
3146 * ia64-libunwind-tdep.c: Likewise.
3147 * ia64-linux-nat.c: Likewise.
3148 * inf-child.c: Likewise.
3149 * inf-ptrace.c: Likewise.
3150 * inf-ttrace.c: Likewise.
3151 * infcall.c: Likewise.
3152 * infcmd.c: Likewise.
3153 * inflow.c: Likewise.
3154 * infrun.c: Likewise.
3155 * interps.c: Likewise.
3156 * iq2000-tdep.c: Likewise.
3157 * irix5-nat.c: Likewise.
3158 * jv-exp.y: Likewise.
3159 * jv-lang.c: Likewise.
3160 * jv-typeprint.c: Likewise.
3161 * jv-valprint.c: Likewise.
3162 * language.c: Likewise.
3163 * linux-fork.c: Likewise.
3164 * linux-nat.c: Likewise.
3165 * lm32-tdep.c: Likewise.
3166 * m2-exp.y: Likewise.
3167 * m2-typeprint.c: Likewise.
3168 * m32c-tdep.c: Likewise.
3169 * m32r-linux-nat.c: Likewise.
3170 * m32r-linux-tdep.c: Likewise.
3171 * m32r-rom.c: Likewise.
3172 * m32r-tdep.c: Likewise.
3173 * m68hc11-tdep.c: Likewise.
3174 * m68k-tdep.c: Likewise.
3175 * m68kbsd-tdep.c: Likewise.
3176 * m68klinux-nat.c: Likewise.
3177 * m68klinux-tdep.c: Likewise.
3178 * m88k-tdep.c: Likewise.
3179 * machoread.c: Likewise.
3180 * macrocmd.c: Likewise.
3182 * mdebugread.c: Likewise.
3183 * mem-break.c: Likewise.
3184 * memattr.c: Likewise.
3185 * memory-map.c: Likewise.
3186 * mep-tdep.c: Likewise.
3187 * mi/mi-cmd-break.c: Likewise.
3188 * mi/mi-cmd-disas.c: Likewise.
3189 * mi/mi-cmd-env.c: Likewise.
3190 * mi/mi-cmd-stack.c: Likewise.
3191 * mi/mi-cmd-var.c: Likewise.
3192 * mi/mi-cmds.c: Likewise.
3193 * mi/mi-console.c: Likewise.
3194 * mi/mi-getopt.c: Likewise.
3195 * mi/mi-interp.c: Likewise.
3196 * mi/mi-main.c: Likewise.
3197 * mi/mi-parse.c: Likewise.
3198 * microblaze-rom.c: Likewise.
3199 * microblaze-tdep.c: Likewise.
3200 * mingw-hdep.c: Likewise.
3201 * minidebug.c: Likewise.
3202 * minsyms.c: Likewise.
3203 * mips-irix-tdep.c: Likewise.
3204 * mips-linux-tdep.c: Likewise.
3205 * mips-tdep.c: Likewise.
3206 * mips64obsd-tdep.c: Likewise.
3207 * mipsnbsd-tdep.c: Likewise.
3208 * mipsread.c: Likewise.
3209 * mn10300-linux-tdep.c: Likewise.
3210 * mn10300-tdep.c: Likewise.
3211 * monitor.c: Likewise.
3212 * moxie-tdep.c: Likewise.
3213 * mt-tdep.c: Likewise.
3214 * nat/linux-btrace.c: Likewise.
3215 * nat/linux-osdata.c: Likewise.
3216 * nat/linux-procfs.c: Likewise.
3217 * nat/linux-ptrace.c: Likewise.
3218 * nat/linux-waitpid.c: Likewise.
3219 * nbsd-tdep.c: Likewise.
3220 * nios2-linux-tdep.c: Likewise.
3221 * nto-procfs.c: Likewise.
3222 * nto-tdep.c: Likewise.
3223 * objc-lang.c: Likewise.
3224 * objfiles.c: Likewise.
3225 * opencl-lang.c: Likewise.
3226 * osabi.c: Likewise.
3227 * osdata.c: Likewise.
3228 * p-exp.y: Likewise.
3229 * p-lang.c: Likewise.
3230 * p-typeprint.c: Likewise.
3231 * parse.c: Likewise.
3232 * posix-hdep.c: Likewise.
3233 * ppc-linux-nat.c: Likewise.
3234 * ppc-sysv-tdep.c: Likewise.
3235 * ppcfbsd-tdep.c: Likewise.
3236 * ppcnbsd-tdep.c: Likewise.
3237 * ppcobsd-tdep.c: Likewise.
3238 * printcmd.c: Likewise.
3239 * procfs.c: Likewise.
3240 * prologue-value.c: Likewise.
3241 * python/py-auto-load.c: Likewise.
3242 * python/py-gdb-readline.c: Likewise.
3243 * ravenscar-thread.c: Likewise.
3244 * regcache.c: Likewise.
3245 * registry.c: Likewise.
3246 * remote-fileio.c: Likewise.
3247 * remote-m32r-sdi.c: Likewise.
3248 * remote-mips.c: Likewise.
3249 * remote-notif.c: Likewise.
3250 * remote-sim.c: Likewise.
3251 * remote.c: Likewise.
3252 * reverse.c: Likewise.
3253 * rs6000-aix-tdep.c: Likewise.
3254 * ser-base.c: Likewise.
3255 * ser-go32.c: Likewise.
3256 * ser-mingw.c: Likewise.
3257 * ser-pipe.c: Likewise.
3258 * ser-tcp.c: Likewise.
3259 * ser-unix.c: Likewise.
3260 * serial.c: Likewise.
3261 * sh-tdep.c: Likewise.
3262 * sh64-tdep.c: Likewise.
3263 * shnbsd-tdep.c: Likewise.
3265 * sol-thread.c: Likewise.
3266 * solib-dsbt.c: Likewise.
3267 * solib-frv.c: Likewise.
3268 * solib-osf.c: Likewise.
3269 * solib-som.c: Likewise.
3270 * solib-spu.c: Likewise.
3271 * solib-target.c: Likewise.
3272 * solib.c: Likewise.
3273 * somread.c: Likewise.
3274 * source.c: Likewise.
3275 * sparc-nat.c: Likewise.
3276 * sparc-sol2-tdep.c: Likewise.
3277 * sparc-tdep.c: Likewise.
3278 * sparc64-tdep.c: Likewise.
3279 * sparc64fbsd-tdep.c: Likewise.
3280 * sparc64nbsd-tdep.c: Likewise.
3281 * sparcnbsd-tdep.c: Likewise.
3282 * spu-linux-nat.c: Likewise.
3283 * spu-multiarch.c: Likewise.
3284 * spu-tdep.c: Likewise.
3285 * stabsread.c: Likewise.
3286 * stack.c: Likewise.
3287 * std-regs.c: Likewise.
3288 * symfile.c: Likewise.
3289 * symmisc.c: Likewise.
3290 * symtab.c: Likewise.
3291 * target.c: Likewise.
3292 * thread.c: Likewise.
3293 * tilegx-linux-nat.c: Likewise.
3294 * tilegx-tdep.c: Likewise.
3296 * tracepoint.c: Likewise.
3297 * tui/tui-command.c: Likewise.
3298 * tui/tui-data.c: Likewise.
3299 * tui/tui-disasm.c: Likewise.
3300 * tui/tui-file.c: Likewise.
3301 * tui/tui-layout.c: Likewise.
3302 * tui/tui-out.c: Likewise.
3303 * tui/tui-regs.c: Likewise.
3304 * tui/tui-source.c: Likewise.
3305 * tui/tui-stack.c: Likewise.
3306 * tui/tui-win.c: Likewise.
3307 * tui/tui-windata.c: Likewise.
3308 * tui/tui-winsource.c: Likewise.
3309 * typeprint.c: Likewise.
3310 * ui-file.c: Likewise.
3311 * ui-out.c: Likewise.
3312 * user-regs.c: Likewise.
3313 * utils.c: Likewise.
3314 * v850-tdep.c: Likewise.
3315 * valarith.c: Likewise.
3316 * valops.c: Likewise.
3317 * valprint.c: Likewise.
3318 * value.c: Likewise.
3319 * varobj.c: Likewise.
3320 * vax-tdep.c: Likewise.
3321 * vaxnbsd-tdep.c: Likewise.
3322 * vaxobsd-tdep.c: Likewise.
3323 * windows-nat.c: Likewise.
3324 * xcoffread.c: Likewise.
3325 * xml-support.c: Likewise.
3326 * xstormy16-tdep.c: Likewise.
3327 * xtensa-linux-nat.c: Likewise.
3329 2014-08-07 Gary Benson <gbenson@redhat.com>
3331 * common/common-defs.h: Include gdb_assert.h.
3332 * aarch64-tdep.c: Do not include gdb_assert.h.
3333 * addrmap.c: Likewise.
3334 * aix-thread.c: Likewise.
3335 * alpha-linux-tdep.c: Likewise.
3336 * alpha-mdebug-tdep.c: Likewise.
3337 * alphanbsd-tdep.c: Likewise.
3338 * amd64-nat.c: Likewise.
3339 * amd64-tdep.c: Likewise.
3340 * amd64bsd-nat.c: Likewise.
3341 * amd64fbsd-nat.c: Likewise.
3342 * amd64fbsd-tdep.c: Likewise.
3343 * amd64nbsd-nat.c: Likewise.
3344 * amd64nbsd-tdep.c: Likewise.
3345 * amd64obsd-nat.c: Likewise.
3346 * amd64obsd-tdep.c: Likewise.
3347 * arch-utils.c: Likewise.
3348 * arm-tdep.c: Likewise.
3349 * armbsd-tdep.c: Likewise.
3351 * bcache.c: Likewise.
3352 * bfin-tdep.c: Likewise.
3353 * blockframe.c: Likewise.
3354 * breakpoint.c: Likewise.
3355 * bsd-kvm.c: Likewise.
3356 * bsd-uthread.c: Likewise.
3357 * buildsym.c: Likewise.
3358 * c-exp.y: Likewise.
3359 * c-lang.c: Likewise.
3360 * charset.c: Likewise.
3361 * cleanups.c: Likewise.
3362 * cli-out.c: Likewise.
3363 * cli/cli-decode.c: Likewise.
3364 * cli/cli-dump.c: Likewise.
3365 * cli/cli-logging.c: Likewise.
3366 * cli/cli-script.c: Likewise.
3367 * cli/cli-utils.c: Likewise.
3368 * coffread.c: Likewise.
3369 * common/common-utils.c: Likewise.
3370 * common/queue.h: Likewise.
3371 * common/signals.c: Likewise.
3372 * common/vec.h: Likewise.
3373 * complaints.c: Likewise.
3374 * completer.c: Likewise.
3375 * corelow.c: Likewise.
3376 * cp-abi.c: Likewise.
3377 * cp-name-parser.y: Likewise.
3378 * cp-namespace.c: Likewise.
3379 * cp-support.c: Likewise.
3380 * cris-tdep.c: Likewise.
3381 * dbxread.c: Likewise.
3382 * dictionary.c: Likewise.
3383 * doublest.c: Likewise.
3384 * dsrec.c: Likewise.
3385 * dummy-frame.c: Likewise.
3386 * dwarf2-frame-tailcall.c: Likewise.
3387 * dwarf2-frame.c: Likewise.
3388 * dwarf2expr.c: Likewise.
3389 * dwarf2loc.c: Likewise.
3390 * dwarf2read.c: Likewise.
3392 * event-loop.c: Likewise.
3393 * exceptions.c: Likewise.
3394 * expprint.c: Likewise.
3395 * f-valprint.c: Likewise.
3396 * fbsd-nat.c: Likewise.
3397 * findvar.c: Likewise.
3398 * frame-unwind.c: Likewise.
3399 * frame.c: Likewise.
3400 * frv-tdep.c: Likewise.
3401 * gcore.c: Likewise.
3402 * gdb-dlfcn.c: Likewise.
3403 * gdb_bfd.c: Likewise.
3404 * gdbarch.c: Likewise.
3405 * gdbarch.sh: Likewise.
3406 * gdbtypes.c: Likewise.
3407 * gnu-nat.c: Likewise.
3408 * gnu-v3-abi.c: Likewise.
3409 * go-lang.c: Likewise.
3410 * guile/scm-exception.c: Likewise.
3411 * guile/scm-gsmob.c: Likewise.
3412 * guile/scm-lazy-string.c: Likewise.
3413 * guile/scm-math.c: Likewise.
3414 * guile/scm-pretty-print.c: Likewise.
3415 * guile/scm-safe-call.c: Likewise.
3416 * guile/scm-utils.c: Likewise.
3417 * guile/scm-value.c: Likewise.
3418 * h8300-tdep.c: Likewise.
3419 * hppa-hpux-nat.c: Likewise.
3420 * hppa-tdep.c: Likewise.
3421 * hppanbsd-tdep.c: Likewise.
3422 * hppaobsd-tdep.c: Likewise.
3423 * i386-darwin-nat.c: Likewise.
3424 * i386-darwin-tdep.c: Likewise.
3425 * i386-nto-tdep.c: Likewise.
3426 * i386-tdep.c: Likewise.
3427 * i386bsd-nat.c: Likewise.
3428 * i386fbsd-tdep.c: Likewise.
3429 * i386gnu-nat.c: Likewise.
3430 * i386nbsd-tdep.c: Likewise.
3431 * i386obsd-tdep.c: Likewise.
3432 * i387-tdep.c: Likewise.
3433 * ia64-libunwind-tdep.c: Likewise.
3434 * ia64-tdep.c: Likewise.
3435 * inf-ptrace.c: Likewise.
3436 * inf-ttrace.c: Likewise.
3437 * infcall.c: Likewise.
3438 * infcmd.c: Likewise.
3439 * infrun.c: Likewise.
3440 * inline-frame.c: Likewise.
3441 * interps.c: Likewise.
3442 * jv-lang.c: Likewise.
3443 * jv-typeprint.c: Likewise.
3444 * linux-fork.c: Likewise.
3445 * linux-nat.c: Likewise.
3446 * linux-thread-db.c: Likewise.
3447 * m32c-tdep.c: Likewise.
3448 * m32r-linux-nat.c: Likewise.
3449 * m32r-tdep.c: Likewise.
3450 * m68k-tdep.c: Likewise.
3451 * m68kbsd-nat.c: Likewise.
3452 * m68kbsd-tdep.c: Likewise.
3453 * m88k-tdep.c: Likewise.
3454 * machoread.c: Likewise.
3455 * macroexp.c: Likewise.
3456 * macrotab.c: Likewise.
3457 * maint.c: Likewise.
3458 * mdebugread.c: Likewise.
3459 * memory-map.c: Likewise.
3460 * mep-tdep.c: Likewise.
3461 * mi/mi-common.c: Likewise.
3462 * microblaze-tdep.c: Likewise.
3463 * mingw-hdep.c: Likewise.
3464 * mips-linux-nat.c: Likewise.
3465 * mips-linux-tdep.c: Likewise.
3466 * mips-tdep.c: Likewise.
3467 * mips64obsd-tdep.c: Likewise.
3468 * mipsnbsd-tdep.c: Likewise.
3469 * mn10300-linux-tdep.c: Likewise.
3470 * mn10300-tdep.c: Likewise.
3471 * moxie-tdep.c: Likewise.
3472 * mt-tdep.c: Likewise.
3473 * nat/linux-btrace.c: Likewise.
3474 * nat/linux-osdata.c: Likewise.
3475 * nat/linux-ptrace.c: Likewise.
3476 * nat/mips-linux-watch.c: Likewise.
3477 * nios2-linux-tdep.c: Likewise.
3478 * nios2-tdep.c: Likewise.
3479 * objc-lang.c: Likewise.
3480 * objfiles.c: Likewise.
3481 * obsd-nat.c: Likewise.
3482 * opencl-lang.c: Likewise.
3483 * osabi.c: Likewise.
3484 * parse.c: Likewise.
3485 * ppc-linux-nat.c: Likewise.
3486 * ppc-sysv-tdep.c: Likewise.
3487 * ppcfbsd-nat.c: Likewise.
3488 * ppcfbsd-tdep.c: Likewise.
3489 * ppcnbsd-nat.c: Likewise.
3490 * ppcnbsd-tdep.c: Likewise.
3491 * ppcobsd-nat.c: Likewise.
3492 * ppcobsd-tdep.c: Likewise.
3493 * printcmd.c: Likewise.
3494 * procfs.c: Likewise.
3495 * prologue-value.c: Likewise.
3496 * psymtab.c: Likewise.
3497 * python/py-lazy-string.c: Likewise.
3498 * python/py-value.c: Likewise.
3499 * regcache.c: Likewise.
3500 * reggroups.c: Likewise.
3501 * registry.c: Likewise.
3502 * remote-sim.c: Likewise.
3503 * remote.c: Likewise.
3504 * rs6000-aix-tdep.c: Likewise.
3505 * rs6000-tdep.c: Likewise.
3506 * s390-linux-tdep.c: Likewise.
3507 * score-tdep.c: Likewise.
3508 * ser-base.c: Likewise.
3509 * ser-mingw.c: Likewise.
3510 * sh-tdep.c: Likewise.
3511 * sh64-tdep.c: Likewise.
3512 * solib-darwin.c: Likewise.
3513 * solib-spu.c: Likewise.
3514 * solib-svr4.c: Likewise.
3515 * source.c: Likewise.
3516 * sparc-nat.c: Likewise.
3517 * sparc-sol2-tdep.c: Likewise.
3518 * sparc-tdep.c: Likewise.
3519 * sparc64-sol2-tdep.c: Likewise.
3520 * sparc64-tdep.c: Likewise.
3521 * sparc64fbsd-tdep.c: Likewise.
3522 * sparc64nbsd-tdep.c: Likewise.
3523 * sparc64obsd-tdep.c: Likewise.
3524 * sparcnbsd-tdep.c: Likewise.
3525 * sparcobsd-tdep.c: Likewise.
3526 * spu-multiarch.c: Likewise.
3527 * spu-tdep.c: Likewise.
3528 * stabsread.c: Likewise.
3529 * stack.c: Likewise.
3530 * symfile.c: Likewise.
3531 * symtab.c: Likewise.
3532 * target-descriptions.c: Likewise.
3533 * target-memory.c: Likewise.
3534 * target.c: Likewise.
3535 * tic6x-linux-tdep.c: Likewise.
3536 * tic6x-tdep.c: Likewise.
3537 * tilegx-linux-nat.c: Likewise.
3538 * tilegx-tdep.c: Likewise.
3540 * tramp-frame.c: Likewise.
3541 * tui/tui-out.c: Likewise.
3542 * tui/tui-winsource.c: Likewise.
3543 * ui-out.c: Likewise.
3544 * user-regs.c: Likewise.
3545 * utils.c: Likewise.
3546 * v850-tdep.c: Likewise.
3547 * valops.c: Likewise.
3548 * value.c: Likewise.
3549 * varobj.c: Likewise.
3550 * vax-nat.c: Likewise.
3551 * xml-syscall.c: Likewise.
3552 * xml-tdesc.c: Likewise.
3553 * xstormy16-tdep.c: Likewise.
3554 * xtensa-linux-nat.c: Likewise.
3555 * xtensa-tdep.c: Likewise.
3557 2014-08-07 Gary Benson <gbenson@redhat.com>
3559 * common/common-defs.h: Include common-utils.h.
3560 * defs.h: Do not include common-utils.h.
3561 * common/gdb_assert.h: Likewise.
3562 * darwin-nat.h: Likewise.
3563 * nat/linux-btrace.c: Likewise.
3564 * target/waitstatus.h: Likewise.
3566 2014-08-07 Gary Benson <gbenson@redhat.com>
3568 * common/common-defs.h: Include ptid.h.
3569 * defs.h: Do not include ptid.h.
3570 * inferior.h: Likewise.
3571 * infrun.h: Likewise.
3572 * nat/linux-btrace.h: Likewise.
3573 * nat/linux-osdata.h: Likewise.
3574 * target/waitstatus.h: Likewise.
3576 2014-08-07 Gary Benson <gbenson@redhat.com>
3578 * common/common-defs.h: Include gdb_locale.h.
3579 * defs.h: Do not include gdb_locale.h.
3581 2014-08-07 Gary Benson <gbenson@redhat.com>
3583 * common/common-defs.h: Include gdb/signals.h.
3584 * defs.h: Do not include gdb/signals.h.
3586 2014-08-07 Gary Benson <gbenson@redhat.com>
3588 * common/common-defs.h: Include pathmax.h.
3589 * defs.h: Do not include pathmax.h.
3591 2014-08-07 Gary Benson <gbenson@redhat.com>
3593 * common/common-defs.h: Include libiberty.h.
3594 * defs.h: Do not include libiberty.h.
3595 * common/queue.h: Likewise.
3596 * cp-name-parser.y: Likewise.
3597 * mi/mi-cmd-catch.c: Likewise.
3598 * python/python.c: Likewise.
3600 2014-08-07 Gary Benson <gbenson@redhat.com>
3602 * common/common-defs.h: Include ansidecl.h.
3603 * defs.h: Do not include ansidecl.h.
3604 * common/buffer.h: Likewise.
3605 * common/common-utils.h: Likewise.
3607 2014-08-07 Gary Benson <gbenson@redhat.com>
3609 * common/common-defs.h: Include stddef.h.
3610 * defs.h: Do not include stddef.h.
3611 * common/common-utils.h: Likewise.
3612 * amd64fbsd-nat.c: Likewise.
3613 * bcache.c: Likewise.
3614 * charset.c: Likewise.
3615 * common/buffer.h: Likewise.
3616 * common/vec.h: Likewise.
3617 * i386bsd-nat.c: Likewise.
3618 * nat/linux-btrace.h: Likewise.
3619 * ppcfbsd-nat.c: Likewise.
3620 * ppcnbsd-tdep.h: Likewise.
3621 * ppcobsd-nat.c: Likewise.
3622 * ppcobsd-tdep.h: Likewise.
3623 * python/py-gdb-readline.c: Likewise.
3625 2014-08-07 Gary Benson <gbenson@redhat.com>
3627 * common/common-defs.h: Include stdarg.h.
3628 * defs.h: Do not include stdarg.h.
3629 * ada-lang.c: Likewise.
3630 * common/common-utils.h: Likewise.
3631 * guile/scm-string.c: Likewise.
3632 * guile/scm-utils.c: Likewise.
3633 * m32c-tdep.c: Likewise.
3635 2014-08-07 Gary Benson <gbenson@redhat.com>
3637 * common/common-defs.h: Include stdlib.h.
3638 * defs.h: Do not include stdlib.h.
3639 * addrmap.c: Likewise.
3640 * bcache.c: Likewise.
3641 * common/buffer.c: Likewise.
3642 * common/common-utils.c: Likewise.
3643 * cp-name-parser.y: Likewise.
3644 * go32-nat.c: Likewise.
3645 * mn10300-linux-tdep.c: Likewise.
3646 * nat/linux-osdata.c: Likewise.
3647 * tui/tui.c: Likewise.
3648 * windows-nat.c: Likewise.
3650 2014-08-07 Gary Benson <gbenson@redhat.com>
3652 * common/common-defs.h: Include stdio.h.
3653 * defs.h: Do not include stdio.h.
3654 * ada-lang.c: Likewise.
3655 * common/buffer.c: Likewise.
3656 * common/common-utils.c: Likewise.
3657 * cp-name-parser.y: Likewise.
3658 * gnu-nat.c: Likewise.
3659 * go32-nat.c: Likewise.
3660 * i386gnu-nat.c: Likewise.
3661 * proc-api.c: Likewise.
3662 * proc-events.c: Likewise.
3663 * proc-flags.c: Likewise.
3664 * proc-why.c: Likewise.
3665 * python/python-internal.h: Likewise.
3666 * target-memory.c: Likewise.
3667 * tui/tui-io.c: Likewise.
3668 * tui/tui.c: Likewise.
3670 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3672 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3673 (scan_dyntag_auxv): Same.
3675 2014-08-06 Yao Qi <yao@codesourcery.com>
3677 * amd64-linux-nat.c: Remove duplicated include
3679 * i386-linux-nat.c: Likewise.
3681 2014-08-06 Yao Qi <yao@codesourcery.com>
3683 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3684 operand" with "Special opcode" in comments.
3686 2014-08-05 Gary Benson <gbenson@redhat.com>
3688 * interps.c (initialize_interps): Remove prototype.
3689 (interpreter_initialized): Remove static global.
3690 (interp_add): Do not call initialize_interps.
3691 (initialize_interps): Remove function.
3693 2014-08-05 Gary Benson <gbenson@redhat.com>
3695 * utils.c (vwarning): Remove spurious va_end.
3697 2014-08-05 Alan Modra <amodra@gmail.com>
3699 * charset.c (convert_between_encodings): Cast result of obstack_base.
3700 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3701 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3702 (read_unwind_info): Use size_t for some locals.
3703 * jit.c (finalize_symtab): Likewise.
3704 * utils.c (hashtab_obstack_allocate): Likewise.
3705 * symmisc.c (print_objfile_statistics): Update format strings.
3707 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3709 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3710 (Changes in GDB 7.8): ... here.
3712 2014-08-04 Tom Tromey <tromey@redhat.com>
3714 * target.c (set_targetdebug): New function.
3715 (initialize_targets): Pass set_targetdebug when creating "set
3718 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3720 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3721 if detecting a variable-sized field that is not the last field.
3722 Fix struct type length computation.
3724 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3726 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3729 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3731 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3732 Remove "+ 8" offset in computation of CHAIN_VMA.
3734 2014-07-31 Doug Evans <dje@google.com>
3736 * inflow.c (child_terminal_inferior): Add comment.
3737 (child_terminal_ours_for_output): Add comment.
3738 (child_terminal_ours): Add comment.
3739 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3740 (linux_nat_terminal_ours): Add comment.
3742 2014-07-31 Gary Benson <gbenson@redhat.com>
3744 * common/btrace-common.h: Do not include defs.h or server.h.
3745 * nat/mips-linux-watch.h: Likewise.
3746 * gdb-dlfcn.h: Do not include defs.h.
3747 * tracefile.h: Likewise.
3749 2014-07-30 Roland McGrath <mcgrathr@google.com>
3751 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3753 2014-07-30 Tom Tromey <tromey@redhat.com>
3755 * bsd-kvm.c (bsd_kvm_open): Constify.
3756 * corelow.c (core_open): Constify.
3757 * ctf.c (ctf_open): Constify.
3758 * dbug-rom.c (dbug_open): Constify.
3759 * exec.c (exec_open): Constify.
3760 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3761 * microblaze-rom.c (picobug_open): Constify.
3762 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3764 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3765 * record-btrace.c (record_btrace_open): Constify.
3766 * record-full.c (record_full_core_open_1, record_full_open_1)
3767 (record_full_open): Constify.
3768 * remote-m32r-sdi.c (m32r_open): Constify.
3769 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3770 (rockhopper_open, lsi_open): Constify.
3771 * remote-sim.c (gdbsim_open): Constify.
3772 * remote.c (remote_open, extended_remote_open, remote_open_1):
3774 * target.h (struct target_ops) <to_open>: Make "arg" const.
3775 * tracefile-tfile.c (tfile_open): Constify.
3777 2014-07-30 Tom Tromey <tromey@redhat.com>
3779 * breakpoint.c (map_breakpoint_numbers): Update.
3780 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3781 (get_number_const): New function.
3782 (get_number): Rewrite using get_number_const.
3783 (init_number_or_range): Make "string" const.
3784 (number_is_in_list): Make "list" const.
3785 * cli/cli-utils.h (get_number_const): Declare.
3786 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3787 (init_number_or_range, number_is_in_list): Update.
3788 * printcmd.c (map_display_numbers): Update.
3789 * value.c (value_from_history_ref): Constify.
3790 * value.h (value_from_history_ref): Update.
3792 2014-07-30 Tom Tromey <tromey@redhat.com>
3794 * corefile.c (hook_type, call_extra_exec_file_hooks)
3795 (specify_exec_file_hook): Constify.
3796 * exec.c (exec_file_attach): Make "filename" const.
3797 * gdbcore.h (deprecated_exec_file_display_hook)
3798 (specify_exec_file_hook, exec_file_attach): Constify.
3799 * main.c (captured_main): Use catch_command_errors_const.
3801 2014-07-30 Tom Tromey <tromey@redhat.com>
3803 * target.c (open_target): New function.
3804 (add_target_with_completer, add_deprecated_target_alias): Use
3805 set_cmd_sfunc, set_cmd_context.
3806 (debug_to_open): Remove.
3807 (setup_target_debug): Update.
3809 2014-07-30 Yao Qi <yao@codesourcery.com>
3811 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3813 * parse.c (exp_iterate): Update comments.
3815 2014-07-30 Gary Benson <gbenson@redhat.com>
3817 * common/common-defs.h: New file.
3818 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3819 * defs.h: Include common-defs.h.
3820 Do not include config.h or build-gnulib/config.h.
3822 2014-07-30 Gary Benson <gbenson@redhat.com>
3824 * common/common-utils.h: Do not include config.h.
3825 * nat/linux-btrace.h: Likewise.
3827 2014-07-30 Gary Benson <gbenson@redhat.com>
3829 * btrace.c: Include defs.h.
3830 * common/ptid.c: Include defs.h or server.h as appropriate.
3831 * nat/mips-linux-watch.c: Likewise.
3833 2014-07-29 Tom Tromey <tromey@redhat.com>
3835 * target.c (target_is_pushed): Simplify.
3837 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3841 2014-07-29 Yao Qi <yao@codesourcery.com>
3844 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3846 2014-07-28 Doug Evans <xdje42@gmail.com>
3849 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3850 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3853 2014-07-28 Will Newton <will.newton@linaro.org>
3855 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3856 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3857 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3858 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3859 (THUMB2_EABI_SYSCALL): Likewise.
3860 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3862 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3863 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3865 2014-07-27 Doug Evans <xdje42@gmail.com>
3867 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3869 2014-07-27 Doug Evans <xdje42@gmail.com>
3871 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3873 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3874 Doug Evans <xdje42@gmail.com>
3877 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3878 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3879 * configure.ac: Try to use guild to compile an scm file, if it fails
3880 then disable guile support.
3881 * configure: Regenerate.
3882 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3884 (GUILE_COMPILED_FILES): New variable.
3885 (GUILE_FILES) Update.
3886 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3887 (stamp-guile): Compile scm files.
3888 * guile/guile.c (boot_guile_support): New function.
3889 (standard_throw_args_p): New function.
3890 (print_standard_throw_error, print_throw_error): New functions.
3891 (handle_boot_error): New function.
3892 (initialize_scheme_side): Rewrite to call boot_guile_support.
3893 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3894 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3896 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3897 Doug Evans <xdje42@gmail.com>
3900 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3901 * guile/lib/gdb/support.scm: New file.
3902 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3903 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3905 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3907 (%assert-type): Ditto, and renamed to assert-type.
3908 (%exception-print-style): Delete.
3910 2014-07-26 Doug Evans <xdje42@gmail.com>
3913 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3914 * configure: Regenerate.
3915 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3917 (PYTHON_FILES): New variable.
3918 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3919 (GUILE_FILES): New variable.
3920 (stamp-python, install-python, uninstall-python): Handle empty
3922 (stamp-guile, install-guile, uninstall-guile): Ditto.
3924 2014-07-26 Doug Evans <xdje42@gmail.com>
3927 * guile/lib/gdb.scm (pretty-printers): Export.
3928 (set-pretty-printers!): Export.
3929 * guile/lib/gdb/printing.scm (gdb module): Update.
3930 (prepend-pretty-printer!, append-pretty-printer!): Update.
3931 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3932 (pretty_printer_list_var): Delete.
3933 (pretty_printer_list): New static global.
3934 (gdbscm_pretty_printers): New function.
3935 (gdbscm_set_pretty_printers_x): New function.
3936 (ppscm_find_pretty_printer_from_gdb): Update.
3937 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3938 (gdbscm_initialize_pretty_printers): Update.
3940 2014-07-26 Doug Evans <xdje42@gmail.com>
3943 * configure.ac: Add check for header gc/gc.h.
3944 Add check for function setenv.
3945 * configure: Regenerate.
3946 * config.in: Regenerate.
3947 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3949 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3951 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3952 variation in gdbarch matching.
3954 2014-07-25 Tom Tromey <tromey@redhat.com>
3956 * exec.c (using_exec_ops): Remove.
3957 (exec_close_1): Update. Remove extraneous block, reindent.
3958 (add_target_sections): Use target_is_pushed.
3960 2014-07-25 Pedro Alves <palves@redhat.com>
3962 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3963 * monitor.c (monitor_create_inferior): Likewise.
3964 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3965 * remote-sim.c (gdbsim_create_inferior): Likewise.
3966 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3967 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3968 * windows-nat.c (do_initial_windows_stuff): Likewise.
3970 2014-07-25 Pedro Alves <palves@redhat.com>
3972 * NEWS: Mention signal passing and "signal" command changes.
3973 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3975 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3977 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3978 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3979 (jump_command): Adjust clear_proceed_status call.
3980 (signal_command): Warn if other thread that are resumed have
3981 signals that will be delivered. Adjust clear_proceed_status call.
3982 (until_next_command, finish_command)
3983 (proceed_after_attach_callback, attach_command_post_wait)
3984 (attach_command): Adjust clear_proceed_status call.
3985 * infrun.c (proceed_after_vfork_done): Likewise.
3986 (proceed_after_attach_callback): Adjust comment.
3987 (clear_proceed_status_thread): Clear stop_signal if not in pass
3989 (clear_proceed_status_callback): Delete.
3990 (clear_proceed_status): New 'step' parameter. Only clear the
3991 proceed status of threads the command being prepared is about to
3993 (proceed): If passed in an explicit signal, override stop_signal
3994 with it. Don't pass the last stop signal to the thread we're
3996 (init_wait_for_inferior): Adjust clear_proceed_status call.
3997 (switch_back_to_stepped_thread): Clear the signal if it should not
3999 * infrun.h (clear_proceed_status): New 'step' parameter.
4000 (user_visible_resume_ptid): Add comment.
4001 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4002 signal is in pass state.
4003 * remote.c (append_pending_thread_resumptions): Likewise.
4004 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4006 2014-07-25 Tom Tromey <tromey@redhat.com>
4008 * target.h (target_stopped_data_address)
4009 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4012 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4014 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4016 (avr_pointer_to_address): Likewise.
4018 2014-07-24 Tom Tromey <tromey@redhat.com>
4020 * monitor.c (compile_pattern): Update.
4021 * target.h (struct target_ops) <to_shortname, to_longname,
4024 2014-07-24 Tom Tromey <tromey@redhat.com>
4026 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4027 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4028 (add_info_alias, add_com): Make "doc" const.
4029 (print_doc_line): Make "str" const.
4030 (delete_cmd): Update.
4031 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4032 (print_doc_line): Update.
4033 * cli/cli-script.c (document_command): Update.
4034 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4035 (add_com, add_info, add_info_alias): Update.
4036 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4037 * python/py-cmd.c (cmdpy_destroyer): Update.
4039 2014-07-24 Tom Tromey <tromey@redhat.com>
4041 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4042 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4043 (help_cmd_list): Constify.
4044 (lookup_cmd): Update.
4045 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4047 (help_cmd_list, apropos_cmd): Update.
4048 * cli/cli-script.c (show_user): Update.
4049 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4050 * cli/cli-setshow.h (cmd_show_list): Update.
4051 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4052 (cmd_show_list): Update.
4053 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4054 * python/py-cmd.c (cmdpy_destroyer): Update.
4056 2014-07-24 Tom Tromey <tromey@redhat.com>
4058 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4059 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4061 * command.h (deprecate_cmd): Update.
4062 * maint.c (maintenance_do_deprecate): Add casts.
4064 2014-07-24 Tom Tromey <tromey@redhat.com>
4066 * cli/cli-decode.c (help_cmd): Make parameter "const".
4067 * cli/cli-decode.h (help_cmd): Update.
4069 2014-07-24 Tom Tromey <tromey@redhat.com>
4071 * stack.c (up_silently_base, down_silently_base): Make argument
4074 2014-07-24 Tom Tromey <tromey@redhat.com>
4076 * solib.c (solib_add): Make "pattern" const.
4077 * solib.h (solib_add): Update.
4079 2014-07-24 Tom Tromey <tromey@redhat.com>
4081 * remote.c (remote_serial_open, print_packet, putpkt)
4082 (putpkt_binary): Constify.
4083 * remote.h (putpkt): Update.
4085 2014-07-24 Tom Tromey <tromey@redhat.com>
4087 * monitor.c (monitor_open): Make "args" const.
4088 * monitor.h (monitor_open): Update.
4090 2014-07-24 Tom Tromey <tromey@redhat.com>
4092 * maint.c (match_bfd_flags): Make "string" const.
4093 (print_bfd_section_info): Remove casts.
4094 (print_objfile_section_info): Make "string" const.
4096 2014-07-24 Tom Tromey <tromey@redhat.com>
4098 * inf-child.c (inf_child_open_target): Make "arg" const.
4099 * inf-child.h (inf_child_open_target): Update.
4101 2014-07-24 Tom Tromey <tromey@redhat.com>
4103 * environ.c (unset_in_environ): Make "var" const.
4104 * environ.h (unset_in_environ): Update.
4106 2014-07-24 Tom Tromey <tromey@redhat.com>
4108 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4110 (scan_filename_with_cleanup): Likewise.
4111 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4112 Make arguments const.
4113 (restore_command): Update.
4115 2014-07-24 Pedro Alves <palves@redhat.com>
4117 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4119 2014-07-24 Tom Tromey <tromey@redhat.com>
4120 Gary Benson <gbenson@redhat.com>
4122 * nat/linux-ptrace.c (additional_flags): New global.
4123 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4124 additional_flags; don't check GDBSERVER.
4125 (linux_ptrace_set_additional_flags): New function.
4126 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4128 * linux-nat.c (_initialize_linux_nat): Call
4129 linux_ptrace_set_additional_flags.
4131 2014-07-24 Tom Tromey <tromey@redhat.com>
4133 * make-target-delegates (munge_type, write_debugmethod): New
4135 (debug_names): New global.
4136 ($TARGET_DEBUG_PRINTER): New global.
4137 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4139 Write debug methods. Generate init_debug_target.
4140 * target-debug.h: New file.
4141 * target-delegates.c: Rebuild.
4142 * target.c: Include target-debug.h.
4143 (debug_target): Hoist definition.
4144 (target_kill, target_get_section_table, target_memory_map)
4145 (target_flash_erase, target_flash_done, target_detach)
4146 (target_disconnect, target_wait, target_resume)
4147 (target_pass_signals, target_program_signals, target_follow_fork)
4148 (target_mourn_inferior, target_search_memory)
4149 (target_thread_address_space, target_close)
4150 (target_find_new_threads, target_core_of_thread)
4151 (target_verify_memory, target_insert_mask_watchpoint)
4152 (target_remove_mask_watchpoint): Remove targetdebug code.
4153 (debug_to_post_attach, debug_to_prepare_to_store)
4154 (debug_to_files_info, debug_to_insert_breakpoint)
4155 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4156 (debug_to_region_ok_for_hw_watchpoint)
4157 (debug_to_can_accel_watchpoint_condition)
4158 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4159 (debug_to_watchpoint_addr_within_range)
4160 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4161 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4162 (debug_to_terminal_init, debug_to_terminal_inferior)
4163 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4164 (debug_to_terminal_save_ours, debug_to_terminal_info)
4165 (debug_to_load, debug_to_post_startup_inferior)
4166 (debug_to_insert_fork_catchpoint)
4167 (debug_to_remove_fork_catchpoint)
4168 (debug_to_insert_vfork_catchpoint)
4169 (debug_to_remove_vfork_catchpoint)
4170 (debug_to_insert_exec_catchpoint)
4171 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4172 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4173 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4174 (setup_target_debug): Call init_debug_target.
4175 * target.h (TARGET_DEBUG_PRINTER): New macro.
4176 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4177 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4179 2014-07-24 Gary Benson <gbenson@redhat.com>
4181 * exceptions.h (throw_vfatal): Renamed to...
4182 (throw_vquit): New declaration.
4183 (throw_quit): Likewise.
4184 * exceptions.c (throw_vfatal): Renamed to...
4185 (throw_vquit): New function.
4186 (throw_quit): Likewise.
4187 (throw_error): Call throw_verror rather than throw_it.
4188 * utils.h (vfatal): Removed.
4190 * utils.c (vfatal): Removed.
4192 (internal_verror): Replaced call to fatal with call to throw_quit.
4193 (quit): Replaced calls to fatal with calls to throw_quit.
4195 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4197 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4200 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4202 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4203 less than zero in conditional expression.
4205 2014-07-23 Tom Tromey <tromey@redhat.com>
4207 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4208 ($INTRO_PART): Don't match whitespace.
4209 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4211 ($METHOD): Add $METHOD_TRAILER.
4213 (scan_target_h): New sub.
4214 Change main loop not to collect state.
4215 * target-delegates.c: Rebuild.
4217 2014-07-23 Gary Benson <gbenson@redhat.com>
4219 * cp-support.c (gdb_demangle): Fix build on systems without
4222 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4224 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4225 for reference entry value target data value.
4227 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4229 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4230 value_available_contents_eq.
4232 2014-07-22 Pedro Alves <palves@redhat.com>
4234 * value.c (allocate_optimized_out_value): Don't mark value as
4237 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4239 * MAINTAINERS (Write After Approval): Update my email address.
4241 2014-07-20 Doug Evans <dje@google.com>
4244 * remote.c (putpkt_binary): Add text to error message.
4246 2014-07-20 Yao Qi <yao@codesourcery.com>
4248 * eval.c: Remove "Chill" from comments.
4249 * gdbtypes.h: Likewise.
4250 * symtab.h: Likewise.
4252 2014-07-20 Yao Qi <yao@codesourcery.com>
4254 * std-operator.def: Update comments to TERNOP_SLICE.
4256 2014-07-20 Yao Qi <yao@codesourcery.com>
4258 * std-operator.def: Remove BINOP_RANGE.
4259 * breakpoint.c (watchpoint_exp_is_const): Update.
4260 * expprint.c (dump_subexp_body_standard): Likewise.
4261 * eval.c (init_array_element): Remove dead code.
4262 (evaluate_subexp_standard): Likewise.
4264 2014-07-20 Yao Qi <yao@codesourcery.com>
4266 * std-operator.def: Remove BINOP_IN.
4267 * breakpoint.c (watchpoint_exp_is_const): Update.
4268 * eval.c (evaluate_subexp_standard): Likewise.
4269 * expprint.c (dump_subexp_body_standard): Likewise.
4271 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4273 * microblaze-tdep.c (microblaze_register_names): Add
4274 the rshr and rslr register names.
4275 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4276 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4277 Use of tdesc_numbered_register. Use of
4278 microblaze_register_g_packet_guesses. Use of
4279 tdesc_use_registers. Use of set_gdbarch_register_type.
4280 (microblaze_register_g_packet_guesses): New.
4281 * microblaze-tdep.h (microblaze_reg_num): Add
4282 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4283 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4284 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4285 * features/microblaze-core.xml: New file.
4286 * features/microblaze-stack-protect.xml: New file.
4287 * features/microblaze-with-stack-protect.c: New file.
4288 * features/microblaze-with-stack-protect.xml: New file.
4289 * features/microblaze.xml: New file.
4290 * features/microblaze.c: New file.
4291 * features/Makefile (microblaze-with-stack-protect): Add
4292 microblaze-with-stack-protect microblaze and microblaze-expedite.
4293 * regformats/microblaze-with-stack-protect.dat: New file.
4294 * regformats/microblaze.dat: New file.
4295 * doc/gdb.texinfo (MicroBlaze Features): Added.
4297 2014-07-18 Tom Tromey <tromey@redhat.com>
4299 * exec.c (exec_ops): Now static.
4300 * exec.h (exec_ops): Don't declare.
4302 2014-07-18 Tom Tromey <tromey@redhat.com>
4304 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4305 to find_target_beneath.
4306 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4307 find_target_beneath.
4308 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4310 2014-07-18 Tom Tromey <tromey@redhat.com>
4313 * utils.c (quit): Use target_supports_terminal_ours.
4314 * target.h (target_supports_terminal_ours): Declare.
4315 * target.c (target_supports_delete_record): Don't check
4316 to_delete_record against NULL.
4317 (target_supports_terminal_ours): New function.
4319 2014-07-18 Tom Tromey <tromey@redhat.com>
4322 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4323 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4324 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4325 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4326 * windows-nat.c (windows_xfer_partial): Always delegate.
4327 * record-btrace.c (record_btrace_xfer_partial): Simplify
4329 (record_btrace_fetch_registers, record_btrace_store_registers)
4330 (record_btrace_prepare_to_store, record_btrace_resume)
4331 (record_btrace_wait, record_btrace_find_new_threads)
4332 (record_btrace_thread_alive): Likewise.
4333 * procfs.c (procfs_xfer_partial): Always delegate.
4334 * corelow.c (core_xfer_partial): Always delegate.
4335 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4337 2014-07-18 Tom Tromey <tromey@redhat.com>
4339 * exec.c (exec_make_note_section): Move earlier.
4341 2014-07-17 Doug Evans <dje@google.com>
4344 * maint.c (count_symtabs_and_blocks): Handle NULL
4345 current_program_space.
4346 (report_command_stats): Check global enabled flag in addition to
4347 recorded enabled flag.
4348 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4350 2014-07-16 Pedro Alves <palves@redhat.com>
4352 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4354 2014-07-16 Tom Tromey <tromey@redhat.com>
4356 * target.h (struct target_ops) <to_delete_record>: Reformat
4359 2014-07-16 Tom Tromey <tromey@redhat.com>
4361 * target-delegates.c: Rebuild.
4363 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4365 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4366 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4367 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4368 (avr_pointer_to_address): Likewise.
4369 (avr_address_class_type_flags): New function.
4370 (avr_address_class_type_flags_to_name): Likewise.
4371 (avr_address_class_name_to_type_flags): Likewise.
4372 (avr_gdbarch_init): Set address_class_type_flags,
4373 address_class_type_flags_to_name and
4374 address_class_name_to_type_flags.
4376 2014-07-15 Pedro Alves <palves@redhat.com>
4378 * linux-nat.c (kill_callback): Save errno and work with saved
4381 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4383 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4385 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4387 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4388 breakpoint support correctly.
4390 2014-07-14 Pedro Alves <palves@redhat.com>
4392 * utils.c (prompt_for_continue): Call target_terminal_ours.
4394 2014-07-14 Pedro Alves <palves@redhat.com>
4396 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4397 catch_errors. Don't re-enable stdin or notify observers where,
4399 (fetch_inferior_event_wrapper): Delete.
4401 2014-07-14 Pedro Alves <palves@redhat.com>
4404 * top.c: Include "inf-loop.h".
4405 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4407 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4409 (gdb_readline_wrapper): Store whether the target is async, and
4412 2014-07-14 Pedro Alves <palves@redhat.com>
4415 * top.c (gdb_readline_wrapper_line): Tweak comment.
4416 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4417 the input handler callback.
4419 2014-07-14 Pedro Alves <palves@redhat.com>
4422 * main.c: Include event-top.h.
4423 (handle_command_errors): New function.
4424 (catch_command_errors, catch_command_errors_const): Use it.
4426 2014-07-14 Pedro Alves <palves@redhat.com>
4428 * exceptions.c (catch_command_errors, catch_command_errors_const):
4430 * exceptions.h (catch_command_errors_ftype)
4431 (catch_command_errors_const_ftype): Moved to main.c.
4432 (catch_command_errors, catch_command_errors_const): Delete
4434 * main.c (catch_command_errors_ftype)
4435 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4436 (catch_command_errors, catch_command_errors_const)): Moved here
4437 from exceptions.c and make static.
4439 2014-07-14 Pedro Alves <palves@redhat.com>
4441 * exceptions.c (print_any_exception): Delete.
4442 (catch_exceptions_with_msg): Use exception_print instead of
4443 print_any_exception.
4444 (catch_errors): Use exception_fprintf instead of
4445 print_any_exception.
4446 (catch_command_errors, catch_command_errors_const): Use
4447 exception_print instead of print_any_exception.
4449 2014-07-14 Pedro Alves <palves@redhat.com>
4451 * infcall.c (run_inferior_call): Set 'sync_execution' while
4452 running the inferior call.
4454 2014-07-14 Pedro Alves <palves@redhat.com>
4456 * value.c (value_contents_equal): Delete function.
4457 * value.h (value_contents_equal): Delete declaration.
4459 2014-07-14 Tom Tromey <tromey@redhat.com>
4462 * gdbtypes.c (is_dynamic_type_internal): New function, from
4464 (is_dynamic_type): Rewrite.
4465 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4466 (resolve_dynamic_struct): Likewise.
4467 (resolve_dynamic_type_internal): New function, from
4468 resolve_dynamic_type.
4469 (resolve_dynamic_type): Rewrite.
4471 2014-07-14 Tom Tromey <tromey@redhat.com>
4473 * target.c (target_require_runnable): Also check record_stratum.
4476 2014-07-11 Yao Qi <yao@codesourcery.com>
4478 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4479 thumb_instruction_restores_sp return true.
4481 2014-07-11 Yao Qi <yao@codesourcery.com>
4483 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4484 (thumb_in_function_epilogue_p): Call
4485 thumb_instruction_restores_sp.
4487 2014-07-11 Yao Qi <yao@codesourcery.com>
4489 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4491 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4493 2014-07-11 Gary Benson <gbenson@redhat.com>
4495 * amd64-linux-nat.c (gdbcore.h): Remove include.
4496 (regset.h): Likewise.
4497 (nat/linux-btrace.h): Likewise.
4498 (btrace.h): Likewise.
4499 (gdb_assert.h): Likewise.
4500 (string.h): Likewise.
4501 (sys/uio.h): Likewise.
4502 (sys/debugreg.h): Likewise.
4503 (sys/syscall.h): Likewise.
4504 (sys/procfs.h): Likewise.
4505 (sys/user.h): Likewise.
4506 (asm/ptrace.h): Likewise.
4507 (i386-nat.h): Likewise.
4508 * i386-linux-nat.c (i386-nat.h): Likewise.
4509 (regset.h): Likewise.
4510 (target.h): Likewise.
4511 (linux-nat.h): Likewise.
4512 (nat/linux-btrace.h): Likewise.
4513 (btrace.h): Likewise.
4514 (gdb_assert.h): Likewise.
4515 (string.h): Likewise.
4516 (sys/uio.h): Likewise.
4517 (sys/user.h): Likewise.
4518 (sys/procfs.h): Likewise.
4519 (sys/reg.h): Likewise.
4520 (sys/debugreg.h): Likewise.
4521 (ORIG_EAX): Remove definition.
4523 2014-07-11 Gary Benson <gbenson@redhat.com>
4525 * i386-linux-nat.h: New file.
4526 * x86-linux-nat.h: Likewise.
4527 * x86-linux-nat.c: Likewise.
4528 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4529 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4530 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4531 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4532 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4533 (PTRACE_SETREGSET): Likewise.
4534 (arch_lwp_info): Now in x86-linux-nat.c.
4535 (have_ptrace_getregset): Now in x86-linux-nat.h.
4536 (x86_linux_dr_get): Now in x86-linux-nat.c.
4537 (x86_linux_dr_set): Likewise.
4538 (x86_linux_dr_get_addr): Likewise.
4539 (x86_linux_dr_get_control): Likewise.
4540 (x86_linux_dr_get_status): Likewise.
4541 (update_debug_registers_callback): Likewise.
4542 (x86_linux_dr_set_control): Likewise.
4543 (x86_linux_dr_set_addr): Likewise.
4544 (x86_linux_prepare_to_resume): Likewise.
4545 (x86_linux_new_thread): Likewise.
4546 (x86_linux_new_fork): Likewise.
4547 (x86_linux_get_thread_area): Likewise.
4548 (super_post_startup_inferior): Likewise.
4549 (x86_linux_child_post_startup_inferior): Likewise.
4550 (AMD64_LINUX_USER64_CS): Likewise.
4551 (AMD64_LINUX_X32_DS): Likewise.
4552 (x86_linux_read_description): Likewise.
4553 (x86_linux_enable_btrace): Likewise.
4554 (x86_linux_disable_btrace): Likewise.
4555 (x86_linux_teardown_btrace): Likewise.
4556 (x86_linux_read_btrace): Likewise.
4557 (x86_linux_create_target): Likewise.
4558 (x86_linux_add_target): Likewise.
4559 * i386-linux-nat.c (x86-linux-nat.h): New include.
4560 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4561 (PTRACE_SETREGSET): Likewise.
4562 (arch_lwp_info): Now in x86-linux-nat.c.
4563 (have_ptrace_getregset): Now in x86-linux-nat.h.
4564 (x86_linux_dr_get): Now in x86-linux-nat.c.
4565 (x86_linux_dr_set): Likewise.
4566 (x86_linux_dr_get_addr): Likewise.
4567 (x86_linux_dr_get_control): Likewise.
4568 (x86_linux_dr_get_status): Likewise.
4569 (update_debug_registers_callback): Likewise.
4570 (x86_linux_dr_set_control): Likewise.
4571 (x86_linux_dr_set_addr): Likewise.
4572 (x86_linux_prepare_to_resume): Likewise.
4573 (x86_linux_new_thread): Likewise.
4574 (x86_linux_new_fork): Likewise.
4575 (x86_linux_get_thread_area): Likewise.
4576 (super_post_startup_inferior): Likewise.
4577 (x86_linux_child_post_startup_inferior): Likewise.
4578 (AMD64_LINUX_USER64_CS): Likewise.
4579 (AMD64_LINUX_X32_DS): Likewise.
4580 (x86_linux_read_description): Likewise.
4581 (x86_linux_enable_btrace): Likewise.
4582 (x86_linux_disable_btrace): Likewise.
4583 (x86_linux_teardown_btrace): Likewise.
4584 (x86_linux_read_btrace): Likewise.
4585 (x86_linux_create_target): Likewise.
4586 (x86_linux_add_target): Likewise.
4588 2014-07-11 Gary Benson <gbenson@redhat.com>
4590 * amd64-linux-nat.c: Comment and whitespace changes.
4591 * i386-linux-nat.c: Comment and whitespace changes.
4593 2014-07-11 Gary Benson <gbenson@redhat.com>
4595 * amd64-linux-nat.c (x86_linux_create_target): New function.
4596 (x86_linux_add_target): Likewise.
4597 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4598 * i386-linux-nat.c (x86_linux_create_target): New function.
4599 (x86_linux_add_target): Likewise.
4600 (_initialize_i386_linux_nat): Delegate to the above new functions.
4602 2014-07-11 Gary Benson <gbenson@redhat.com>
4604 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4605 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4606 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4607 (ps_get_thread_area): Delegate to the above.
4609 2014-07-11 Gary Benson <gbenson@redhat.com>
4611 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4612 x86_linux_read_description. All uses updated. amd64-specific
4613 code conditionalized. Conditionalized i386-specific code added.
4614 Redundant cast removed.
4615 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4616 x86_linux_read_description. All uses updated. i386-specific
4617 code conditionalized. Conditionalized amd64-specific code added.
4618 One sizeof replaced with the actual type it is describing.
4620 2014-07-11 Gary Benson <gbenson@redhat.com>
4622 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4623 x86_linux_dr_get. All uses updated.
4624 (amd64_linux_dr_set): Renamed to
4625 x86_linux_dr_set. All uses updated.
4626 (amd64_linux_dr_get_addr): Renamed to
4627 x86_linux_dr_get_addr. All uses updated.
4628 (amd64_linux_dr_get_control): Renamed to
4629 x86_linux_dr_get_control. All uses updated.
4630 (amd64_linux_dr_get_status): Renamed to
4631 x86_linux_dr_get_status. All uses updated.
4632 (amd64_linux_dr_set_control): Renamed to
4633 x86_linux_dr_set_control. All uses updated.
4634 (amd64_linux_dr_set_addr): Renamed to
4635 x86_linux_dr_set_addr. All uses updated.
4636 (amd64_linux_prepare_to_resume): Renamed to
4637 x86_linux_prepare_to_resume. All uses updated.
4638 (amd64_linux_new_thread): Renamed to
4639 x86_linux_new_thread. All uses updated.
4640 (amd64_linux_new_fork): Renamed to
4641 x86_linux_new_fork. All uses updated.
4642 (amd64_linux_child_post_startup_inferior): Renamed to
4643 x86_linux_child_post_startup_inferior. All uses updated.
4644 (amd64_linux_enable_btrace): Renamed to
4645 x86_linux_enable_btrace. All uses updated.
4646 (amd64_linux_disable_btrace): Renamed to
4647 x86_linux_disable_btrace. All uses updated.
4648 (amd64_linux_teardown_btrace): Renamed to
4649 x86_linux_teardown_btrace. All uses updated.
4650 (amd64_linux_read_btrace): Renamed to
4651 x86_linux_read_btrace. All uses updated.
4652 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4653 x86_linux_dr_get. All uses updated.
4654 (i386_linux_dr_set): Renamed to
4655 x86_linux_dr_set. All uses updated.
4656 (i386_linux_dr_get_addr): Renamed to
4657 x86_linux_dr_get_addr. All uses updated.
4658 (i386_linux_dr_get_control): Renamed to
4659 x86_linux_dr_get_control. All uses updated.
4660 (i386_linux_dr_get_status): Renamed to
4661 x86_linux_dr_get_status. All uses updated.
4662 (i386_linux_dr_set_control): Renamed to
4663 x86_linux_dr_set_control. All uses updated.
4664 (i386_linux_dr_set_addr): Renamed to
4665 x86_linux_dr_set_addr. All uses updated.
4666 (i386_linux_prepare_to_resume): Renamed to
4667 x86_linux_prepare_to_resume. All uses updated.
4668 (i386_linux_new_thread): Renamed to
4669 x86_linux_new_thread. All uses updated.
4670 (i386_linux_new_fork): Renamed to
4671 x86_linux_new_fork. All uses updated.
4672 (i386_linux_child_post_startup_inferior): Renamed to
4673 x86_linux_child_post_startup_inferior. All uses updated.
4674 (i386_linux_enable_btrace): Renamed to
4675 x86_linux_enable_btrace. All uses updated.
4676 (i386_linux_disable_btrace): Renamed to
4677 x86_linux_disable_btrace. All uses updated.
4678 (i386_linux_teardown_btrace): Renamed to
4679 x86_linux_teardown_btrace. All uses updated.
4680 (i386_linux_read_btrace): Renamed to
4681 x86_linux_read_btrace. All uses updated.
4683 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4685 * remote.c (extended_remote_post_attach): New function.
4686 (init_extended_remote_ops): Install it as to_post_attach method.
4688 2014-07-09 Pedro Alves <palves@redhat.com>
4690 * infcmd.c (attach_command_post_wait): Don't call
4691 target_terminal_inferior here.
4692 (attach_command): Call it here instead.
4694 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4696 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4698 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4699 from varobj.c, with additional checks.
4700 (c_varobj_ops): Fill in is_path_expr_parent field.
4701 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4702 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4704 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4706 (varobj_default_is_path_expr_parent): New function.
4707 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4708 (varobj_default_is_path_expr_parent): Declare new function.
4710 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4712 * infcmd.c (finish_backward): Turn internal error into normal error.
4714 2014-07-07 Pedro Alves <palves@redhat.com>
4717 * remote.c (async_handle_remote_sigint)
4718 (async_handle_remote_sigint_twice): Call
4719 gdb_call_async_signal_handler instead of
4720 mark_async_signal_handler.
4722 2014-07-07 Tom Tromey <tromey@redhat.com>
4724 * target-delegates.c: Rebuild.
4725 * target.c (target_info_record): Remove.
4726 * record.c (info_record_command): Unconditionally call
4728 * target.h (struct target_ops) <to_info_record>: Use
4729 TARGET_DEFAULT_IGNORE.
4730 (target_info_record): Remove.
4732 2014-07-07 Tom Tromey <tromey@redhat.com>
4734 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4735 TARGET_DEFAULT_NORETURN.
4736 * target.c (generic_tls_error): New function.
4737 (target_translate_tls_address): Don't search target stack.
4738 * target-delegates.c: Rebuild.
4739 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4741 * linux-thread-db.c (thread_db_get_thread_local_address):
4742 Unconditionally call beneath target.
4744 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4746 * cli/cli-logging.c (pop_output_files): Assign targerr to
4749 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4751 * MAINTAINERS (Write After Approval): Update my email address.
4753 2014-07-02 Gary Benson <gbenson@redhat.com>
4755 * proc-service.c (ps_xfer_memory): Update comment.
4756 (ps_pstop): Remove unused function.
4757 (ps_pcontinue): Likewise.
4758 (ps_lstop): Likewise.
4759 (ps_lcontinue): Likewise.
4760 (ps_lgetxregsize): Likewise.
4761 (ps_lgetxregs): Likewise.
4762 (ps_lsetxregs): Likewise.
4763 (ps_plog): Likewise.
4764 (ps_ptread): Likewise.
4765 (ps_ptwrite): Likewise.
4767 2014-07-01 Mark Wielaard <mjw@redhat.com>
4769 * dwarf2read.c (add_array_cv_type): New function.
4770 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4771 (read_tag_volatile_type): Likewise.
4773 2014-07-01 Tom Tromey <tromey@redhat.com>
4775 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4776 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4777 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4778 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4779 * command.h (cmd_cfunc_ftype): Move earlier.
4780 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4781 (add_com, add_info): Use cmd_cfunc_ftype.
4783 2014-06-30 Tom Tromey <tromey@redhat.com>
4785 * symtab.c (operator_chars): Make parameters and return type
4787 (file_matches): Make "files" const.
4788 (struct search_symbols_data) <files>: Now const.
4789 (search_symbols): Make "regexp" and "files" parameters const.
4791 (symtab_symbol_info): Remove cast.
4792 (rbreak_command): Update.
4793 * symtab.h (search_symbols): Update.
4795 2014-06-27 Yao Qi <yao@codesourcery.com>
4797 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4798 Change parameter type to 'struct thread_info *'. Caller
4800 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4802 * dummy-frame.c (struct dummy_frame_id): New.
4803 (dummy_frame_id_eq): New function.
4804 (struct dummy_frame) <id>: Change its type to 'struct
4806 (dummy_frame_push): Add parameter ptid and save it in
4808 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4810 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4812 (lookup_dummy_frame): Change parameter type to 'struct
4813 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4814 instead of frame_id_eq.
4815 (dummy_frame_pop): Add parameter ptid. Callers updated.
4816 Update comments. Compose dummy_frame_id and pass it to
4818 (dummy_frame_discard): Add parameter ptid.
4819 (dummy_frame_sniffer): Compose dummy_frame_id and call
4820 dummy_frame_id_eq instead of frame_id_eq.
4821 (fprint_dummy_frames): Print ptid.
4822 * dummy-frame.h: Remove comments.
4823 (dummy_frame_push): Add ptid in declaration.
4824 (dummy_frame_pop, dummy_frame_discard): Likewise.
4826 2014-06-26 Tom Tromey <tromey@redhat.com>
4828 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4829 * command.h (error_no_arg): Update.
4831 2014-06-26 Tom Tromey <tromey@redhat.com>
4833 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4834 (do_show_command): Make "arg" const.
4835 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4837 2014-06-26 Tom Tromey <tromey@redhat.com>
4839 * record-full.c (record_full_get_bookmark): Make "args" const.
4840 (record_full_goto_bookmark): Make "raw_bookmark" const.
4841 * record.c (record_goto): New function.
4842 (cmd_record_goto): Use it. Now static.
4843 * record.h (record_goto): Declare.
4844 (cmd_record_goto): Remove declaration.
4845 * target-delegates.c: Rebuild.
4846 * target.h (struct target_ops) <to_get_bookmark,
4847 to_goto_bookmark>: Make parameter const.
4849 2014-06-26 Tom Tromey <tromey@redhat.com>
4851 * defs.h (generic_load): Update.
4852 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4853 * monitor.c (monitor_load): Make "args" const.
4854 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4855 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4857 (mips_load): Make "file" const.
4858 * remote-sim.c (gdbsim_load): Make "args" const.
4859 * remote.c (remote_load): Make "name" const.
4860 * symfile.c (generic_load): Make "args" const.
4861 * target-delegates.c: Rebuild.
4862 * target.c (target_load): Make "arg" const.
4863 (debug_to_load): Make "args" const.
4864 * target.h (struct target_ops) <to_load>: Make parameter const.
4865 (target_load): Update.
4867 2014-06-26 Tom Tromey <tromey@redhat.com>
4870 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4871 (dwarf2_physname, read_partial_die)
4872 (guess_partial_die_structure_name, fixup_partial_die)
4873 (guess_full_die_structure_name, anonymous_struct_prefix)
4874 (dwarf2_name): Use per-BFD obstack.
4876 2014-06-26 Yao Qi <yao@codesourcery.com>
4878 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4879 dummyframe and this_id into inner block below.
4881 2014-06-26 Yao Qi <yao@codesourcery.com>
4883 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4884 with "signal_pass[0]" in the initialization of signal_pass.
4886 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4888 * record-btrace.c (record_btrace_generating_corefile)
4889 (record_btrace_prepare_to_generate_core)
4890 (record_btrace_done_generating_core): New.
4891 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4892 (record_btrace_store_registers, record_btrace_prepare_to_store):
4893 Forward request when generating a core file.
4894 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4895 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4896 to_done_generating_core.
4898 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4900 * target.h (target_ops) <to_prepare_to_generate_core>
4901 <to_done_generating_core>: New.
4902 (target_prepare_to_generate_core, target_done_generating_core): New.
4903 * target.c (target_prepare_to_generate_core)
4904 (target_done_generating_core): New.
4905 * target-delegates.c: Regenerate.
4906 * gcore.c: (write_gcore_file): Rename to ...
4907 (write_gcore_file_1): ...this.
4908 (write_gcore_file): Call target_prepare_to_generate_core
4909 and target_done_generating_core.
4911 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4913 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4914 * gcore.c (write_gcore_file): Free memory returned from
4915 make_corefile_notes.
4916 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4917 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4919 2014-06-24 Yao Qi <yao@codesourcery.com>
4921 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4922 (arm_linux_init_abi): Set skip_trampoline_code with
4923 gdbarch_skip_trampoline_code instead of
4924 find_solib_trampoline_target.
4926 2014-06-24 Yao Qi <yao@codesourcery.com>
4928 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4929 arm_skip_bx_reg returns non-zero.
4931 2014-06-24 Yao Qi <yao@codesourcery.com>
4933 * arm-tdep.c (arm_skip_bx_reg): New function.
4934 (arm_skip_stub): Call arm_skip_bx_reg.
4936 2014-06-23 Don Breazeal <donb@codesourcery.com>
4938 * MAINTAINERS: Add myself as write-after-approval maintainer.
4940 2014-06-23 Pedro Alves <palves@redhat.com>
4942 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4943 DR_CONTROL before setting DR0..DR3.
4944 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4945 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4946 bits of DR_CONTROL related to the debug register slot being
4947 disabled. If all slots are vacant, clear local slowdown as well,
4948 and assert DR_CONTROL is 0.
4950 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4952 * python/lib/gdb/command/xmethods.py
4953 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4954 current progspace only if the string "progspace" matches LOCUS_RE.
4956 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4958 Fix --with-system-readline with readline-6.3 patch 5.
4959 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4960 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4963 2014-06-20 Tom Tromey <tromey@redhat.com>
4965 * dwarf2read.c (dw2_get_real_path): Use correct type in
4967 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4969 2014-06-20 Gary Benson <gbenson@redhat.com>
4971 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4972 * common/glibc_thread_db.h: Likewise.
4973 * common/i386-cpuid.h: Likewise.
4974 * common/i386-gcc-cpuid.h: Likewise.
4975 * common/linux-btrace.h: Likewise.
4976 * common/linux-osdata.h: Likewise.
4977 * common/linux-procfs.h: Likewise.
4978 * common/linux-ptrace.h: Likewise.
4979 * common/mips-linux-watch.h: Likewise.
4980 * common/linux-btrace.c: Moved to nat.
4981 * common/linux-osdata.c: Likewise.
4982 * common/linux-procfs.c: Likewise.
4983 * common/linux-ptrace.c: Likewise.
4984 * common/mips-linux-watch.c: Likewise.
4985 * nat/gdb_thread_db.h: Moved from common.
4986 * nat/glibc_thread_db.h: Likewise.
4987 * nat/i386-cpuid.h: Likewise.
4988 * nat/i386-gcc-cpuid.h: Likewise.
4989 * nat/linux-btrace.c: Likewise.
4990 * nat/linux-btrace.h: Likewise.
4991 * nat/linux-osdata.c: Likewise.
4992 * nat/linux-osdata.h: Likewise.
4993 * nat/linux-procfs.c: Likewise.
4994 * nat/linux-procfs.h: Likewise.
4995 * nat/linux-ptrace.c: Likewise.
4996 * nat/linux-ptrace.h: Likewise.
4997 * nat/mips-linux-watch.c: Likewise.
4998 * nat/mips-linux-watch.h: Likewise.
4999 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5000 (object file files): Reordered.
5001 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5002 of glibc_thread_db.h.
5004 2014-06-20 Gary Benson <gbenson@redhat.com>
5006 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5007 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5008 (i386_dr_low): Likewise.
5009 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5010 (i386_dr_low_set_addr): Likewise.
5011 (i386_dr_low_get_addr): Likewise.
5012 (i386_dr_low_can_set_control): Likewise.
5013 (i386_dr_low_set_control): Likewise.
5014 (i386_dr_low_get_control): Likewise.
5015 (i386_dr_low_get_status): Likewise.
5016 (i386_get_debug_register_length): Likewise.
5017 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5018 (i386_dr_low): Likewise.
5019 * nat/i386-dregs.c (i386-low.h): Remove include.
5020 (i386-nat.h): Likewise.
5021 (nat/i386-dregs.h): New include.
5022 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5023 (i386_dr_low_set_addr): Likewise.
5024 (i386_dr_low_get_addr): Likewise.
5025 (i386_dr_low_can_set_control): Likewise.
5026 (i386_dr_low_set_control): Likewise.
5027 (i386_dr_low_get_control): Likewise.
5028 (i386_dr_low_get_status): Likewise.
5029 (i386_get_debug_register_length): Likewise.
5030 (debug_hw_points): Likewise.
5032 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5034 * Makefile.in (SFILES): Add d-exp.y.
5035 (YYFILES): Add d-exp.c.
5036 (YYOBJ): Add d-exp.o.
5037 (local-maintainer-clean): Delete d-exp.c.
5038 * d-exp.y: New file.
5039 * d-lang.h (d_parse): New declaration.
5040 (d_error): New declaration.
5041 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5042 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5043 PREC_ORDER operators.
5044 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5046 2014-06-19 Yao Qi <yao@codesourcery.com>
5048 * gdbthread.h (any_running): Remove the declaration.
5049 * thread.c (any_running): Remove.
5051 2014-06-19 Yao Qi <yao@codesourcery.com>
5053 * gdbthread.h (struct thread_info) <state>: Change its type to
5054 'enum thread_state'. Update comments.
5056 2014-06-19 Pedro Alves <palves@redhat.com>
5058 * gdbthread.h (ALL_THREADS): Delete.
5059 (ALL_NON_EXITED_THREADS): New macro.
5060 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5061 instead of ALL_THREADS.
5062 * infrun.c (find_thread_needs_step_over)
5063 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5064 instead of ALL_THREADS.
5065 * record-btrace.c (record_btrace_open)
5066 (record_btrace_stop_recording, record_btrace_close)
5067 (record_btrace_is_replaying, record_btrace_resume)
5068 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5069 * remote.c (append_pending_thread_resumptions): Likewise.
5070 * thread.c (thread_apply_all_command): Likewise.
5072 2014-06-19 Gary Benson <gbenson@redhat.com>
5074 * i386-nat.c (i386_stopped_by_watchpoint):
5075 Use i386_dr_stopped_by_watchpoint.
5076 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5077 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5079 2014-06-19 Gary Benson <gbenson@redhat.com>
5081 * nat/i386-dregs.c: New file.
5082 * Makefile.in (i386-dregs.o): New rule.
5083 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5084 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5085 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5086 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5087 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5088 * config/i386/go32.mh (NATDEPFILES): Likewise.
5089 * config/i386/linux.mh (NATDEPFILES): Likewise.
5090 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5091 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5092 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5093 * i386-nat.h (debug_hw_points): New declaration.
5094 * i386-nat.c (breakpoint.h): Remove include.
5095 (command.h): Likewise.
5096 (target.h): Likewise.
5097 (gdb_assert.h): Likewise.
5098 (debug_hw_points): Made nonstatic.
5099 (debug_printf): Now in i386-dregs.c.
5100 (TARGET_HAS_DR_LEN_8): Likewise.
5101 (DR_CONTROL_SHIFT): Likewise.
5102 (DR_CONTROL_SIZE): Likewise.
5103 (DR_RW_EXECUTE): Likewise.
5104 (DR_RW_WRITE): Likewise.
5105 (DR_RW_READ): Likewise.
5106 (DR_RW_IORW): Likewise.
5107 (DR_LEN_1): Likewise.
5108 (DR_LEN_2): Likewise.
5109 (DR_LEN_4): Likewise.
5110 (DR_LEN_8): Likewise.
5111 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5112 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5113 (DR_ENABLE_SIZE): Likewise.
5114 (DR_LOCAL_SLOWDOWN): Likewise.
5115 (DR_GLOBAL_SLOWDOWN): Likewise.
5116 (DR_CONTROL_RESERVED): Likewise.
5117 (I386_DR_CONTROL_MASK): Likewise.
5118 (I386_DR_VACANT): Likewise.
5119 (I386_DR_LOCAL_ENABLE): Likewise.
5120 (I386_DR_GLOBAL_ENABLE): Likewise.
5121 (I386_DR_DISABLE): Likewise.
5122 (I386_DR_SET_RW_LEN): Likewise.
5123 (I386_DR_GET_RW_LEN): Likewise.
5124 (I386_DR_WATCH_HIT): Likewise.
5125 (i386_wp_op_t): Likewise.
5126 (i386_show_dr): Likewise.
5127 (i386_length_and_rw_bits): Likewise.
5128 (i386_insert_aligned_watchpoint): Likewise.
5129 (i386_remove_aligned_watchpoint): Likewise.
5130 (i386_handle_nonaligned_watchpoint): Likewise.
5131 (i386_update_inferior_debug_regs): Likewise.
5132 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5133 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5134 (i386_region_ok_for_watchpoint):
5135 Use i386_dr_region_ok_for_watchpoint.
5136 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5138 2014-06-19 Gary Benson <gbenson@redhat.com>
5140 * i386-nat.c (i386_insert_hw_breakpoint): Use
5141 i386_insert_watchpoint.
5142 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5144 2014-06-19 Gary Benson <gbenson@redhat.com>
5146 * i386-nat.c (i386_dr_show): Renamed to
5147 i386_show_dr and made static. All uses updated.
5148 (i386_dr_length_and_rw_bits): Renamed to
5149 i386_length_and_rw_bits and made static.
5151 (i386_dr_insert_aligned_watchpoint): Renamed to
5152 i386_insert_aligned_watchpoint and made static.
5154 (i386_dr_remove_aligned_watchpoint): Renamed to
5155 i386_remove_aligned_watchpoint and made static.
5157 (i386_dr_update_inferior_debug_regs): Renamed to
5158 i386_update_inferior_debug_regs and made static.
5160 * nat/i386-dregs.h (i386_dr_show): Removed.
5161 (i386_dr_length_and_rw_bits): Likewise.
5162 (i386_dr_insert_aligned_watchpoint): Likewise.
5163 (i386_dr_remove_aligned_watchpoint): Likewise.
5164 (i386_dr_update_inferior_debug_regs): Likewise.
5166 2014-06-19 Gary Benson <gbenson@redhat.com>
5168 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5169 * configure: Regenerate.
5170 * config.in: Likewise.
5171 * main.c (signal.h): New include.
5172 (setup_alternate_signal_stack): New function.
5173 (captured_main): Call the above.
5174 * cp-support.c (signal.h): New include.
5175 (catch_demangler_crashes): New flag.
5176 (SIGJMP_BUF): New define.
5177 (SIGSETJMP): Likewise.
5178 (SIGLONGJMP): Likewise.
5179 (gdb_demangle_jmp_buf): New static global.
5180 (gdb_demangle_attempt_core_dump): Likewise.
5181 (gdb_demangle_signal_handler): New function.
5182 (gdb_demangle): If catch_demangler_crashes is set, install the
5183 above signal handler before calling bfd_demangle, and restore
5184 the original signal handler afterwards. Display the offending
5185 symbol and call demangler_warning the first time a segmentation
5187 (_initialize_cp_support): New maint set/show command.
5189 2014-06-19 Gary Benson <gbenson@redhat.com>
5191 * utils.h (resource_limit_kind): New enum.
5192 (can_dump_core): New declaration.
5193 (warn_cant_dump_core): Likewise.
5194 (dump_core): Likewise.
5195 * utils.c (dump_core): Made nonstatic. Added new
5196 parameter "limit_kind".
5197 (can_dump_core): Made nonstatic. Moved printing code to...
5198 (warn_cant_dump_core): New function.
5199 (can_dump_core_warn): Likewise.
5200 (internal_vproblem): Replace calls to can_dump_core with
5201 calls to can_dump_core_warn. Supply new argument to each.
5203 2014-06-19 Gary Benson <gbenson@redhat.com>
5205 * utils.h (demangler_vwarning): New declaration.
5206 (demangler_warning): Likewise.
5207 * utils.c (struct internal_problem)
5208 <user_settable_should_quit>: New field.
5209 <user_settable_should_dump_core>: Likewise
5210 (internal_error_problem): Add values for above new fields.
5211 (internal_warning_problem): Likewise.
5212 (demangler_warning_problem): New static global.
5213 (demangler_vwarning): New function.
5214 (demangler_warning): Likewise.
5215 (add_internal_problem_command): Selectively add commands.
5216 (_initialize_utils): New internal problem command.
5217 * maint.c (maintenance_demangler_warning): New function.
5218 (_initialize_maint_cmds): New command.
5220 2014-06-18 Tom Tromey <tromey@redhat.com>
5222 * f-valprint.c (info_common_command_for_block): Update.
5223 * symtab.h (struct general_symbol_info) <common_block>: Now
5226 2014-06-18 Tom Tromey <tromey@redhat.com>
5228 * symtab.h (struct symtab) <blockvector>: Now const.
5229 * ada-lang.c (ada_add_global_exceptions): Update.
5230 * buildsym.c (augment_type_symtab): Update.
5231 * dwarf2read.c (dw2_lookup_symbol): Update.
5232 * jit.c (finalize_symtab): Update.
5233 * jv-lang.c (add_class_symtab_symbol): Update.
5234 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5236 * objfiles.c (objfile_relocate1): Update.
5237 * psymtab.c (lookup_symbol_aux_psymtabs)
5238 (maintenance_check_psymtabs): Update.
5239 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5241 * spu-tdep.c (spu_catch_start): Update.
5242 * symmisc.c (dump_symtab_1): Update.
5243 * symtab.c (lookup_global_symbol_from_objfile)
5244 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5245 (basic_lookup_transparent_type_quick)
5246 (basic_lookup_transparent_type, find_pc_sect_symtab)
5247 (find_pc_sect_line, search_symbols): Update.
5248 * block.c (find_block_in_blockvector): Make "bl" const.
5249 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5251 (blockvector_contains_pc): Make "bv" const.
5252 (block_for_pc_sect): Update.
5253 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5254 (blockvector_contains_pc): Update.
5255 * breakpoint.c (resolve_sal_pc): Update.
5256 * inline-frame.c (block_starting_point_at): Update.
5258 2014-06-18 Tom Tromey <tromey@redhat.com>
5260 * completer.c (complete_line): Make "line_buffer" const.
5261 * completer.h (complete_line): Update.
5263 2014-06-18 Tom Tromey <tromey@redhat.com>
5265 * symtab.c (add_macro_name): Remove unneeded cast.
5267 2014-06-18 Tom Tromey <tromey@redhat.com>
5269 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5270 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5272 2014-06-18 Tom Tromey <tromey@redhat.com>
5274 * probe.c (info_probes_for_ops): Make "arg" const.
5275 * probe.h (info_probes_for_ops): Update.
5277 2014-06-18 Tom Tromey <tromey@redhat.com>
5279 * varobj.c (varobj_create): Update.
5280 * valops.c (value_of_this): Update.
5281 * tracepoint.c (add_local_symbols, scope_info): Update.
5282 * symtab.h (struct general_symbol_info) <block>: Now const.
5283 * symtab.c (skip_prologue_sal)
5284 (default_make_symbol_completion_list_break_on)
5285 (skip_prologue_using_sal): Update.
5286 * stack.h (iterate_over_block_locals)
5287 (iterate_over_block_local_vars): Update.
5288 * stack.c (print_frame_args): Update.
5289 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5291 (get_selected_block): Make return type const.
5292 * python/py-frame.c (frapy_block): Update.
5293 * python/py-block.c (gdbpy_block_for_pc): Update.
5294 * p-exp.y (%union) <bval>: Now const.
5295 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5296 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5297 * m2-exp.y (%union) <bval>: Now const.
5298 * linespec.c (get_current_search_block): Make return type const.
5299 (create_sals_line_offset, find_label_symbols): Update.
5300 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5302 (block_starting_point_at): Make "block" const.
5303 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5304 (check_exception_resume): Update.
5305 * guile/scm-frame.c (gdbscm_frame_block): Update.
5306 * guile/scm-block.c (gdbscm_lookup_block): Update.
5307 * frame.h (get_frame_block): Update.
5308 (get_selected_block): Make return type const.
5309 * frame.c (frame_id_inner): Update.
5310 * f-valprint.c (info_common_command_for_block)
5311 (info_common_command): Update.
5312 * dwarf2loc.c (dwarf2_find_location_expression)
5313 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5314 (locexpr_describe_location_piece): Update.
5315 * c-exp.y (%union) <bval>: Now const.
5316 * breakpoint.c (resolve_sal_pc): Update.
5317 * blockframe.c (get_frame_block):Make return type const.
5318 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5319 (block_innermost_frame): Update.
5320 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5321 (block_for_pc, block_for_pc_sect): Update.
5322 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5324 (block_for_pc_sect, block_for_pc): Make return type const.
5325 * ax-gdb.c (gen_expr): Update.
5326 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5327 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5328 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5329 (ada_read_var_value): Update.
5330 * ada-exp.y (struct name_info) <block>: Now const.
5332 (block_lookup): Constify.
5334 2014-06-18 Gary Benson <gbenson@redhat.com>
5336 * nat/i386-dregs.h: New file.
5337 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5338 * i386-nat.h (i386-dregs.h): New include.
5339 (DR_FIRSTADDR): Now in i386-dregs.h.
5340 (DR_LASTADDR): Likewise.
5341 (DR_NADDR): Likewise.
5342 (DR_STATUS): Likewise.
5343 (DR_CONTROL): Likewise.
5344 (i386_debug_reg_state): Likewise.
5345 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5347 2014-06-18 Don Breazeal <donb@codesourcery.com>
5349 * breakpoint.c (set_longjmp_breakpoint): Call
5350 momentary_breakpoint_from_master with additional argument.
5351 (set_longjmp_breakpoint_for_call_dummy): Call
5352 momentary_breakpoint_from_master with additional argument.
5353 (set_std_terminate_breakpoint): Call
5354 momentary_breakpoint_from_master with additional argument.
5355 (momentary_breakpoint_from_master): Add argument to function
5356 definition and use it to initialize structure member flag.
5357 (clone_momentary_breakpoint): Call
5358 momentary_breakpoint_from_master with additional argument.
5359 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5360 member flags set in momentary_breakpoint_from_master.
5362 2014-06-18 Gary Benson <gbenson@redhat.com>
5364 * i386-nat.c (i386_show_dr): Renamed to
5365 i386_dr_show and made nonstatic. All uses updated.
5366 (i386_length_and_rw_bits): Renamed to
5367 i386_dr_length_and_rw_bits and made nonstatic.
5369 (i386_insert_aligned_watchpoint): Renamed to
5370 i386_dr_insert_aligned_watchpoint and made nonstatic.
5372 (i386_remove_aligned_watchpoint): Renamed to
5373 i386_dr_remove_aligned_watchpoint and made nonstatic.
5375 (i386_update_inferior_debug_regs): Renamed to
5376 i386_dr_update_inferior_debug_regs and made nonstatic.
5379 2014-06-18 Gary Benson <gbenson@redhat.com>
5381 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5382 (i386_dr_low_can_set_control): Likewise.
5383 (i386_dr_low_set_addr): Likewise.
5384 (i386_dr_low_set_control): Likewise.
5385 (i386_dr_low_get_addr): Likewise.
5386 (i386_dr_low_get_status): Likewise.
5387 (i386_dr_low_get_control): Likewise.
5388 (i386_insert_aligned_watchpoint): Use new macros.
5389 (i386_update_inferior_debug_regs): Likewise.
5390 (i386_stopped_data_address): Likewise.
5392 2014-06-18 Gary Benson <gbenson@redhat.com>
5394 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5395 New parameter. All uses updated.
5397 2014-06-18 Gary Benson <gbenson@redhat.com>
5399 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5402 2014-06-18 Gary Benson <gbenson@redhat.com>
5404 * i386-nat.c (debug_printf): New macro.
5405 (i386_get_debug_register_length): Likewise.
5406 (TARGET_HAS_DR_LEN_8): Use above macro.
5407 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5408 and printf_unfiltered. Use phex to format values.
5410 2014-06-18 Gary Benson <gbenson@redhat.com>
5412 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5415 2014-06-18 Gary Benson <gbenson@redhat.com>
5417 * i386-nat.c: Comment changes.
5419 2014-06-18 Gary Benson <gbenson@redhat.com>
5421 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5423 2014-06-18 Gary Benson <gbenson@redhat.com>
5425 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5426 (i386_insert_aligned_watchpoint): Likewise.
5427 (i386_remove_aligned_watchpoint): Likewise.
5428 (i386_handle_nonaligned_watchpoint): Likewise.
5430 2014-06-18 Gary Benson <gbenson@redhat.com>
5432 * i386-nat.c: Whitespace changes.
5434 2014-06-17 Samuel Bronson <naesten@gmail.com>
5436 * MAINTAINERS: Update Roland McGrath's email address.
5437 Thanks to Sergio Durigan Junior for pointing out that he left
5438 Red Hat a while ago, and giving me a current address.
5440 2014-06-17 Tom Tromey <tromey@redhat.com>
5442 * utils.h (savestring): Remove declaration.
5444 2014-06-17 Tom Tromey <tromey@redhat.com>
5446 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5448 2014-06-16 Keith Seitz <keiths@redhat.com>
5451 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5452 to update the varobj if inferior_ptid is null_ptid.
5454 2014-06-16 Tom Tromey <tromey@redhat.com>
5456 * target.h (struct target_ops) <to_info_proc>: Make parameter
5458 (target_info_proc): Update.
5459 * target.c (target_info_proc): Make "args" const.
5460 * procfs.c (procfs_info_proc): Update.
5461 * linux-tdep.c (linux_info_proc): Update.
5462 (linux_core_info_proc_mappings): Make "args" const.
5463 (linux_core_info_proc): Update.
5464 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5465 * gdbarch.c: Rebuild.
5466 * gdbarch.h: Rebuild.
5467 * corelow.c (core_info_proc): Update.
5469 2014-06-16 Tom Tromey <tromey@redhat.com>
5471 * target.h (struct target_ops) <to_disconnect>: Make parameter
5473 (target_disconnect): Update.
5474 * target.c (target_disconnect): Make "args" const.
5475 * target-delegates.c: Rebuild.
5476 * remote.c (remote_disconnect): Update.
5477 * record.h (record_disconnect): Update.
5478 * record.c (record_disconnect): Update.
5479 * inf-child.c (inf_child_disconnect): Update.
5481 2014-06-16 Tom Tromey <tromey@redhat.com>
5483 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5484 * target.c (debug_to_rcmd, default_rcmd): Update.
5485 * target-delegates.c: Rebuild.
5486 * remote.c (remote_rcmd): Update.
5487 * monitor.c (monitor_rcmd): Update.
5489 2014-06-16 Pedro Alves <palves@redhat.com>
5491 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5492 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5493 have OBJF_SHARED set.
5494 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5495 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5496 instead of OBJF_USERLOADED.
5497 * objfiles.h (OBJF_SHARED): Update comment.
5498 (userloaded_objfile_contains_address_p): Rename to ...
5499 (shared_objfile_contains_address_p): ... this, and update
5501 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5503 (remove_symbol_file_command): Skip objfiles that don't have
5506 2014-06-16 Tom Tromey <tromey@redhat.com>
5508 * minsyms.h (prim_record_minimal_symbol)
5509 (prim_record_minimal_symbol_and_info): Update comments.
5511 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5513 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5514 or --without-guile, according to how GDB was built.
5516 2014-06-13 Tom Tromey <tromey@redhat.com>
5518 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5520 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5522 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5524 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5525 help_list.Pass all_commands, not -1, to help_list.
5526 * cli/cli-dump.c (dump_command, append_command)
5527 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5528 (binary_dump_command, binary_append_command): Pass all_commands,
5529 not -1, to help_list.
5530 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5532 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5534 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5536 * top.c (set_history): Pass all_commands, not -1, to help_list.
5537 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5538 all_commands, not -1, to help_list.
5539 * symfile.c (overlay_command): Pass all_commands, not -1, to
5541 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5543 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5545 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5547 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5548 not -1, to help_list.
5549 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5550 not -1, to help_list.
5551 * maint.c (maintenance_command, maintenance_info_command)
5552 (maintenance_print_command, maintenance_set_cmd): Pass
5553 all_commands, not -1, to help_list.
5554 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5556 * language.c (set_check): Pass all_commands, not -1, to help_list.
5557 * infcmd.c (unset_command): Pass all_commands, not -1, to
5559 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5561 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5563 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5565 * breakpoint.c (save_command): Pass all_commands, not -1, to
5567 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5568 all_commands, not -1, to help_list.
5570 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5572 * regcache.c (struct register_to_invalidate): New structure.
5573 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5575 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5577 2014-06-12 Yao Qi <yao@codesourcery.com>
5579 * varobj.c (varobj_get_num_children): Call
5580 varobj_is_dynamic_p.
5581 (varobj_list_children): Likewise.
5582 (varobj_update): Likewise. Update comments.
5584 2014-06-12 Yao Qi <yao@codesourcery.com>
5586 * varobj.c (varobj_pretty_printed_p): Rename to ...
5587 (varobj_is_dynamic_p): ... this. New function.
5588 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5589 (varobj_is_dynamic_p): Declare.
5590 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5591 (mi_print_value_p, varobj_update_one): Likewise.
5593 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5594 Yao Qi <yao@codesourcery.com>
5596 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5597 (varobj_get_iterator): Wrap up code for pretty-printer by
5598 "#if HAVE_PYTHON" and "#endif".
5599 (update_dynamic_varobj_children): Likewise.
5601 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5602 Yao Qi <yao@codesourcery.com>
5604 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5605 gdb_python_initialized is false. Move some code from varobj.c.
5606 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5607 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5608 (struct varobj_item): Moved to varobj-iter.h".
5609 (varobj_clear_saved_item): New function.
5610 (update_dynamic_varobj_children): Move python-related code to
5612 (free_variable): Call varobj_clear_saved_item and
5615 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5616 Yao Qi <yao@codesourcery.com>
5618 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5619 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5620 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5621 (py-varobj.o): New rule.
5622 * python/py-varobj.c: New file.
5623 * python/python-internal.h (py_varobj_get_iterator): Declare.
5624 * varobj-iter.h: New file.
5625 * varobj.c: Include "varobj-iter.h"
5626 (struct varobj) <child_iter>: Change its type from "PyObject *"
5627 to "struct varobj_iter *".
5628 <saved_item>: Likewise.
5629 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5630 [HAVE_PYTHON] (varobj_get_iterator): New function.
5631 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5632 python-specific code to python/py-varobj.c.
5633 (install_visualizer): Call varobj_iter_delete instead of
5635 * varobj.h (varobj_ensure_python_env): Declare.
5637 2014-06-12 Yao Qi <yao@codesourcery.com>
5639 * varobj.c (struct varobj_item): New structure.
5640 (create_child_with_value): Update declaration.
5641 (varobj_add_child): Replace arguments 'name' and 'value' with
5642 'item'. All callers updated.
5643 (install_dynamic_child): Likewise.
5644 (update_dynamic_varobj_children): Likewise.
5645 (varobj_add_child): Likewise.
5646 (create_child_with_value): Likewise.
5648 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5650 * NEWS: Create a new section for the next release branch.
5651 Rename the section of the current branch, now that it has
5654 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5656 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5657 * version.in: Bump version to 7.8.50.DATE-cvs.
5659 2014-06-11 Pedro Alves <palves@redhat.com>
5662 * ser-mingw.c (net_windows_socket_check_pending): New function.
5663 (net_windows_select_thread): Ignore spurious wakeups. Use
5664 net_windows_socket_check_pending.
5665 (net_windows_wait_handle): Check for pending events with
5666 ioctlsocket, through net_windows_socket_check_pending, instead of
5667 checking the socket's event.
5669 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5671 * python/python-internal.h (gdb_PyObject_GetAttrString)
5672 (gdb_PyObject_HasAttrString): New inline function definitions.
5673 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5674 char * of the second argument to PyObject_GetAttrString.
5676 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5678 * serial.c (serial_write): Fix index of character to be printed
5679 in call to serial_logchar when serial debug traces are enabled.
5681 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5683 * gdbtypes (resolve_dynamic_range): Add function description.
5685 2014-06-09 Pedro Alves <palves@redhat.com>
5687 * linux-nat.c (linux_child_follow_fork): Initialize status with
5688 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5689 inner block. Only pass the signal to PTRACE_DETACH if in pass
5692 2014-06-09 Gary Benson <gbenson@redhat.com>
5694 * common/signals.c (gdb_signal_from_host): Reorder to separate
5695 the always-available ANSI-standard signals from the signals that
5697 (do_gdb_signal_to_host): Likewise.
5698 * proc-events.c (signal_table): Likewise.
5700 2014-06-08 Hui Zhu <hui@codesourcery.com>
5702 * common/linux-ptrace.c (linux_disable_event_reporting): New
5704 * common/linux-ptrace.h (linux_disable_event_reporting): New
5706 * linux-nat.c (linux_child_follow_fork): Do a single step before
5709 2014-06-07 Keith Seitz <keiths@redhat.com>
5713 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5714 from symbol_matches_domain in symtab.c. All local callers
5715 of symbol_matches_domain updated.
5716 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5717 search STRUCT_DOMAIN.
5718 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5719 independently. standard_lookup will do that automatically.
5720 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5721 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5722 (cp_lookup_symbol_in_namespace): Likewise.
5723 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5724 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5725 may return a STRUCT_DOMAIN match.
5726 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5727 * cp-support.c: Include language.h.
5728 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5730 * psymtab.c (match_partial_symbol): Compare the requested
5731 domain with the symbol's domain directly.
5732 (lookup_partial_symbol): Likewise.
5733 * symtab.c (lookup_symbol_in_language): Explain when/why
5734 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5735 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5736 appropriate languages.
5737 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5738 and moved to ada-lang.c
5739 (lookup_block_symbol): Explain that this function only returns
5740 symbol matching the requested DOMAIN.
5741 Compare the requested domain with the symbol's domain directly.
5742 (iterate_over_symbols): Compare the requested domain with the
5743 symbol's domain directly.
5744 * symtab.h (symbol_matches_domain): Remove.
5746 2014-06-06 Doug Evans <xdje42@gmail.com>
5748 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5749 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5750 (gdbscm_guile_version_is_at_least): Declare.
5751 (gdbscm_scm_string_to_int): Declare.
5752 * guile/guile.c (gdbscm_guile_major_version): New global.
5753 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5754 (guile_datadir): New static global.
5755 (gdbscm_guile_data_directory): New function.
5756 (initialize_scheme_side): Update.
5757 (misc_guile_functions): Add guile-data-directory.
5758 (initialize_gdb_module): Fetch guile version number.
5759 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5760 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5761 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5762 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5764 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5765 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5766 * guile/scm-value.c (gdbscm_value_to_string): Only call
5767 scm_port_conversion_strategy if Guile version >= 2.0.6.
5769 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5771 * main.c (print_gdb_help): Add -q and --silent.
5773 2014-06-06 Gary Benson <gbenson@redhat.com>
5775 * common/signals.c: Remove preprocessor conditionals for
5776 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5777 SIGSEGV and SIGTERM.
5778 * proc-events.c: Likewise.
5780 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5782 * symfile.c (symfile_free_objfile): Remove restriction to
5784 * symfile-mem.c (symbol_file_add_from_memory): Call
5785 add_target_sections_of_objfile.
5787 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5789 * guile/scm-value.c (gdbscm_history_append_x): Use
5790 'vlscm_get_value_smob_arg_unsafe' instead of
5791 'vlscm_scm_to_value'.
5793 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5796 * utils.c (printchar): Don't escape at all if quoter is NUL.
5797 Update function documentation to clarify effect of parameter
5799 * remote.c (escape_buffer): Pass '\\' as the quoter to
5800 fputstrn_unfiltered.
5801 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5802 generate the output.
5803 (mi_solib_unloaded): Same.
5805 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5807 * development.sh: Delete.
5808 * Makefile.in (config.status): Adjust dependency on development.sh.
5809 * configure.ac: Adjust development.sh source call.
5810 * configure: Regenerate.
5812 2014-06-04 Doug Evans <xdje42@gmail.com>
5814 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5815 is_scheme_bkpt, spec.
5816 (bpscm_make_breakpoint_smob): Initialize new members.
5817 (gdbscm_create_breakpoint_x): Split into two ...
5818 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5819 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5820 (scheme_function breakpoint_functions): Update.
5821 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5822 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5823 register-breakpoint!.
5825 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5828 * mem-break.c (z_type_supported): Return zero if
5829 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5831 2014-06-04 Tom Tromey <tromey@redhat.com>
5833 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5834 value_from_contents_and_address_unresolved.
5835 (ada_template_to_fixed_record_type_1): Likewise.
5836 (ada_which_variant_applies): Likewise.
5837 * value.h (value_from_contents_and_address_unresolved): Declare.
5838 * value.c (value_from_contents_and_address_unresolved): New
5840 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5841 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5842 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5844 2014-06-04 Tom Tromey <tromey@redhat.com>
5846 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5848 2014-06-04 Tom Tromey <tromey@redhat.com>
5850 * procfs.c (procfs_attach): Make "args" const.
5851 * windows-nat.c (windows_attach): Make "args" const.
5852 * nto-procfs.c (procfs_attach): Make "args" const.
5853 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5854 * go32-nat.c (go32_attach): Make "args" const.
5855 * gnu-nat.c (gnu_attach): Make "args" const.
5856 * darwin-nat.c (darwin_attach): Make "args" const.
5857 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5858 * linux-nat.c (linux_nat_attach): Make "args" const.
5859 * remote.c (extended_remote_attach_1, extended_remote_attach):
5861 * target.h (struct target_ops) <to_attach>: Make "args" const.
5862 (find_default_attach): Likewise.
5863 * utils.c (parse_pid_to_attach): Make "args" const.
5864 * utils.h (parse_pid_to_attach): Update.
5866 2014-06-04 Tom Tromey <tromey@redhat.com>
5868 * target-delegates.c: Rebuild.
5869 * target.c (default_thread_address_space): New function.
5870 (target_thread_address_space): Simplify.
5871 * target.h (struct target_ops) <to_thread_address_space>: Add
5872 TARGET_DEFAULT_FUNC.
5874 2014-06-04 Doug Evans <xdje42@gmail.com>
5876 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5878 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5880 * record-btrace.c: Include event-loop.h and inf-loop.h.
5881 (record_btrace_resume_exec_dir)
5882 (record_btrace_async_inferior_event_handler)
5883 (record_btrace_handle_async_inferior_event): New.
5884 (record_btrace_open): Create async event handler.
5885 (record_btrace_close): Delete async event handler.
5886 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5887 Mark async event handler.
5888 (record_btrace_execution_direction): New.
5889 (init_record_btrace_ops): Initialize to_execution_direction.
5891 2014-06-03 Doug Evans <xdje42@gmail.com>
5893 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5894 (gdbscm_make_parameter): Ditto.
5896 2014-06-03 Doug Evans <dje@google.com>
5898 * exec.c (exec_close_1): Call clear_section_table instead of
5899 resize_section_table.
5900 (clear_section_table): New function.
5901 (resize_section_table): Make static. Rename arg num_added to
5903 * exec.h (clear_section_table): Declare.
5904 (resize_section_table): Delete.
5905 * progspace.c (release_program_space): Call clear_section_table
5906 instead of resize_section_table.
5908 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5910 * NEWS (Python Scripting): Add entry about the new xmethods
5913 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5915 * python/py-xmethods.c: New file.
5916 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5917 (objfpy_dealloc): XDECREF on the new xmethods field.
5918 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5920 (objfpy_get_xmethods): New function.
5921 (objfile_getset): New entry 'xmethods'.
5922 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5923 (pspy_dealloc): XDECREF on the new xmethods field.
5924 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5926 (pspy_get_xmethods): New function.
5927 (pspace_getset): New entry 'xmethods'.
5928 * python/python-internal.h: Add declarations for new functions.
5929 * python/python.c (_initialize_python): Invoke
5930 gdbpy_initialize_xmethods.
5931 * python/lib/gdb/__init__.py (xmethods): New
5933 * python/lib/gdb/xmethod.py: New file.
5934 * python/lib/gdb/command/xmethods.py: New file.
5936 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5938 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5939 best match method returned by find_overload_match is an xmethod.
5940 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5941 the best matching operator returned by find_overload_match is an
5943 * valops.c: #include "extension.h".
5944 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5945 Return void. The list of matching source methods is returned in
5946 "fn_list" and a vector of matching debug method workers is
5947 returned in "xm_worker_vec". Update all callers.
5948 (value_find_oload_method_list): Likewise.
5949 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5950 non-NULL, then the index of the best matching method in this
5951 vector is returned. Update all callers.
5952 (find_overload_match): Include xmethods while performing overload
5955 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5957 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5958 * extension-priv.h (struct extension_language_ops): Add the
5960 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5961 get_matching_xmethod_workers, get_xmethod_argtypes,
5962 invoke_xmethod, free_xmethod_worker,
5963 free_xmethod_worker_vec): New functions.
5964 * extension.h: #include "common/vec.h".
5965 New function declarations.
5966 (struct xmethod_worker): New struct.
5967 (VEC (xmethod_worker_ptr)): New vector type.
5968 (xmethod_worker_ptr): New typedef.
5969 (xmethod_worker_vec): Likewise.
5970 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5972 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5973 (struct builtin_type): New field "xmethod".
5974 * valarith.c (value_ptradd): Assert that the value argument is not
5976 * valops.c (value_must_coerce_to_target): Return 0 for
5977 lval_xcallable values.
5978 * value.c (struct value): New field XM_WORKER in the field
5980 (value_address, value_raw_address): Return 0 for lval_xcallable
5982 (set_value_address): Assert that the value is not an
5984 (value_free): Free the associated xmethod worker when freeing
5985 lval_xcallable values.
5986 (set_value_component_location): Assert that the WHOLE value is not
5988 (value_of_xmethod, call_xmethod): New functions.
5989 * value.h: Declare "struct xmethod_worker".
5990 Declare new functions value_of_xmethod, call_xmethod.
5992 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5993 Pedro Alves <palves@redhat.com>
5995 PR breakpoints/17000
5996 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5997 New function, extracted from software_breakpoint_inserted_here_p.
5998 (software_breakpoint_inserted_here_p): Replace factored out code
5999 by call to find_non_raw_software_breakpoint_inserted_here.
6000 (bp_target_info_copy_insertion_state): New function.
6001 (bkpt_insert_location): Handle the case of a single-step
6002 breakpoint already inserted at the same address.
6003 (bkpt_remove_location): Handle the case of a single-step
6004 breakpoint still inserted at the same address.
6005 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6006 breakpoint already inserted at the same address.
6007 (deprecated_remove_raw_breakpoint): Handle the case of a
6008 non-raw breakpoint still inserted at the same address.
6009 (find_single_step_breakpoint): New function, extracted from
6010 single_step_breakpoint_inserted_here_p.
6011 (find_single_step_breakpoint): New function,
6012 factored out from single_step_breakpoint_inserted_here_p.
6013 (single_step_breakpoint_inserted_here_p): Reimplement.
6015 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6017 Pushed by Joel Brobecker <brobecker@adacore.com>
6018 * source.c (show_substitute_path_command): Fix display of matching
6021 2014-06-03 Gary Benson <gbenson@redhat.com>
6023 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6025 2014-06-02 Doug Evans <xdje42@gmail.com>
6027 Add parameter support for Guile.
6028 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6029 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6030 (scm-param.o): New rule.
6031 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6032 (gdbscm_misc_error): Declare.
6033 (gdbscm_canonicalize_command_name): Declare.
6034 (gdbscm_scm_to_host_string): Declare.
6035 (gdbscm_scm_from_host_string): Declare.
6036 (gdbscm_initialize_parameters): Declare.
6037 * guile/guile.c (initialize_gdb_module): Call
6038 gdbscm_initialize_parameters.
6039 * guile/lib/gdb.scm: Export parameter symbols.
6040 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6041 cmdscm_canonicalize_name and made public. All callers updated.
6042 * guile/scm-exception.c (gdbscm_misc_error): New function.
6043 * guile/scm-param.c: New file.
6044 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6045 (gdbscm_scm_to_host_string): New function.
6046 (gdbscm_scm_from_host_string): New function.
6047 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6049 2014-06-02 Doug Evans <xdje42@gmail.com>
6051 Add command support for Guile.
6052 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6053 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6054 (scm-cmd.o): New rule.
6055 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6056 (gdbscm_user_error_p): Declare.
6057 (gdbscm_parse_command_name): Declare.
6058 (gdbscm_valid_command_class_p): Declare.
6059 (gdbscm_initialize_commands): Declare.
6060 * guile/guile.c (initialize_gdb_module): Call
6061 gdbscm_initialize_commands.
6062 * guile/lib/gdb.scm: Export command symbols.
6063 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6064 (throw-user-error): New function.
6065 * guile/scm-cmd.c: New file.
6066 * guile/scm-exception.c (user_error_symbol): New static global.
6067 (gdbscm_user_error_p): New function.
6068 (gdbscm_initialize_exceptions): Set user_error_symbol.
6069 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6071 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6073 * top.c (command_loop): Handle comments here...
6074 (command_line_input): ... not here.
6076 2014-06-02 Doug Evans <xdje42@gmail.com>
6078 Add progspace support for Guile.
6079 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6080 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6081 (scm-progspace.o): New rule.
6082 * guile/guile-internal.h (pspace_smob): New typedef.
6083 (psscm_pspace_smob_pretty_printers): Declare.
6084 (psscm_pspace_smob_from_pspace): Declare.
6085 (psscm_scm_from_pspace): Declare.
6086 * guile/guile.c (initialize_gdb_module): Call
6087 gdbscm_initialize_pspaces.
6088 * guile/lib/gdb.scm: Export progspace symbols.
6089 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6091 (append-pretty-printer!): Ditto.
6092 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6094 * guile/scm-progspace.c: New file.
6096 2014-06-03 Alan Modra <amodra@gmail.com>
6098 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6099 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6101 2014-06-02 Doug Evans <dje@google.com>
6103 Add support for skeletonless type units.
6104 * dwarf2read.c (struct dwarf2_per_objfile): New member
6105 n_allocated_type_units.
6106 (struct dwarf2_per_objfile) <tu_stats>: New member
6107 nr_all_type_units_reallocs.
6108 (create_signatured_type_table_from_index): Initialize
6109 n_allocated_type_units
6110 (create_all_type_units): Ditto.
6111 (add_type_unit): Move up in file. New arg slot.
6112 All callers updated. Increase space for all_type_units more
6114 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6115 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6116 (lookup_dwp_signatured_type): Ditto.
6117 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6118 All callers updated.
6119 (build_type_psymtabs_1): Leave type_unit_groups as
6120 NULL if no TUs present.
6121 (print_tu_stats): New function.
6122 (process_skeletonless_type_unit): New function.
6123 (process_dwo_file_for_skeletonless_type_units): New
6125 (process_skeletonless_type_units): New function.
6126 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6127 Call print tu_stats if debugging enabled.
6129 2014-06-02 Pedro Alves <palves@redhat.com>
6131 * breakpoint.c (build_target_command_list): Don't build a command
6132 list if we have any duplicate location that isn't a dprintf.
6134 2014-06-02 Pedro Alves <palves@redhat.com>
6136 * breakpoint.c (dprintf_breakpoint_hit): New function.
6137 (initialize_breakpoint_ops): Install it as dprintf's
6138 breakpoint_hit method.
6140 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6142 * source.c (substitute_path_rule_matches): Simplify using
6143 filename_ncmp instead of FILENAME_CMP.
6145 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6147 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6149 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6151 * configure.ac: When Guile is available, check for the
6152 availability of 'scm_new_smob'.
6153 * configure, config.h.in: Regenerate.
6154 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6157 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6159 * frame.c (struct frame_info): Add stop_string field.
6160 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6161 (get_prev_frame_always): Old content moved into
6162 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6163 TRY_CATCH, handle MEMORY_ERROR exceptions.
6164 (frame_stop_reason_string): New function definition.
6165 * frame.h (unwind_stop_reason_to_string): Extend comment to
6166 mention frame_stop_reason_string.
6167 (frame_stop_reason_string): New function declaration.
6168 * stack.c (frame_info): Switch to frame_stop_reason_string.
6169 (backtrace_command_1): Switch to frame_stop_reason_string.
6170 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6171 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6172 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6174 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6176 * frame.c (frame_stop_reason_string): Rename to ...
6177 (unwind_stop_reason_to_string): this.
6178 * frame.h (frame_stop_reason_string): Rename to ...
6179 (unwind_stop_reason_to_string): this.
6180 * stack.c (frame_info): Update call to frame_stop_reason_string.
6181 (backtrace_command_1): Likewise.
6182 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6183 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6185 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6187 * frame.c (remove_prev_frame): New function.
6188 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6191 2014-05-29 Pedro Alves <palves@redhat.com>
6193 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6194 and make it const. When a single-step decays to a continue,
6195 clear 'step', not 'hw_step'. Pass whether the caller wanted
6196 to step to user_visible_resume_ptid, not what we ask the
6199 2014-05-29 Pedro Alves <palves@redhat.com>
6201 * infrun.c (process_event_stop_test, handle_step_into_function)
6202 (handle_step_into_function_backward): Adjust.
6203 Don't set the even thread's stop_step and call stop_waiting before
6204 calling end_stepping_range. Instead do that ...
6205 (end_stepping_range): ... here. Take an ecs pointer parameter.
6207 2014-05-29 Pedro Alves <palves@redhat.com>
6209 * infrun.c (stop_stepping): Rename to ...
6210 (stop_waiting): ... this.
6211 (proceed): Update comment.
6212 (process_event_stop_test, handle_inferior_event)
6213 (handle_signal_stop, handle_step_into_function)
6214 (handle_step_into_function_backward): Update.
6216 2014-05-29 Pedro Alves <palves@redhat.com>
6218 * infcall.c (run_inferior_call): Don't check whether the current
6219 thread is running after the proceed call.
6221 2014-05-29 Pedro Alves <palves@redhat.com>
6222 Tom Tromey <tromey@redhat.com>
6224 * NEWS: Mention "maint set target-async", "set mi-async", and that
6225 background execution commands are now always available.
6226 * target.h (target_async_permitted): Update comment.
6227 * target.c (target_async_permitted, target_async_permitted_1):
6229 (set_target_async_command): Rename to ...
6230 (maint_set_target_async_command): ... this.
6231 (show_target_async_command): Rename to ...
6232 (maint_show_target_async_command): ... this.
6233 (_initialize_target): Adjust.
6234 * infcmd.c (prepare_execution_command): Make extern.
6235 * inferior.h (prepare_execution_command): Declare.
6236 * infrun.c (set_observer_mode): Leave target async alone.
6237 * mi/mi-interp.c (mi_interpreter_init): Install
6238 mi_on_sync_execution_done as sync_execution_done observer.
6239 (mi_on_sync_execution_done): New function.
6240 (mi_execute_command_input_handler): Don't print the prompt if we
6241 just started a synchronous command with an async target.
6242 (mi_on_resume): Check sync_execution before printing prompt.
6243 * mi/mi-main.h (mi_async_p): Declare.
6244 * mi/mi-main.c: Include gdbcmd.h.
6245 (mi_async_p): New function.
6246 (mi_async, mi_async_1): New globals.
6247 (set_mi_async_command, show_mi_async_command, mi_async): New
6249 (exec_continue): Call prepare_execution_command.
6250 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6251 (mi_execute_async_cli_command): Use mi_async_p.
6252 (_initialize_mi_main): Install "set mi-async". Make
6253 "target-async" a deprecated alias.
6255 2014-05-29 Pedro Alves <palves@redhat.com>
6257 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6258 (_initialize_cli_interp): Adjust.
6259 * event-loop.c: Include "observer.h".
6260 (start_event_loop): Notify 'command_error' observers instead of
6261 calling display_gdb_prompt. Remove FIXME comment.
6262 * event-top.c (display_gdb_prompt): Remove call into the
6264 * inf-loop.c: Include "observer.h".
6265 (inferior_event_handler): Notify 'command_error' observers instead
6266 of calling display_gdb_prompt.
6267 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6268 observers instead of calling display_gdb_prompt.
6269 * interps.c (interp_set): Don't call display_gdb_prompt.
6270 (current_interp_display_prompt_p): Delete.
6271 * interps.h (interp_prompt_p): Delete declaration.
6272 (interp_prompt_p_ftype): Delete.
6273 (struct interp_procs) <prompt_proc_p>: Delete field.
6274 (current_interp_display_prompt_p): Delete declaration.
6275 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6276 (_initialize_mi_interp): Adjust.
6277 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6278 'command_error' observers.
6279 (tui_on_sync_execution_done, tui_on_command_error): New
6281 (tui_display_prompt_p): Delete.
6282 (_initialize_tui_interp): Adjust.
6284 2014-05-29 Pedro Alves <palves@redhat.com>
6287 * cli/cli-interp.c: Include infrun.h and observer.h.
6288 (cli_uiout, cli_interp): New globals.
6289 (cli_on_signal_received, cli_on_end_stepping_range)
6290 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6292 (cli_interpreter_init): Install them as 'end_stepping_range',
6293 'signal_received' 'signal_exited', 'exited' and 'no_history'
6295 (_initialize_cli_interp): Remove cli_interp local.
6296 * infrun.c (handle_inferior_event): Call the several stop reason
6297 observers instead of printing the stop reason directly.
6298 (end_stepping_range): New function.
6299 (print_end_stepping_range_reason, print_signal_exited_reason)
6300 (print_exited_reason, print_signal_received_reason)
6301 (print_no_history_reason): Make static, and add an uiout
6302 parameter. Print to that instead of to CURRENT_UIOUT.
6303 * infrun.h (print_end_stepping_range_reason)
6304 (print_signal_exited_reason, print_exited_reason)
6305 (print_signal_received_reason print_no_history_reason): New
6307 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6309 <cli_uiout>: New field.
6310 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6311 uiout for CLI output. Install 'signal_received',
6312 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6314 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6315 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6316 (mi_on_no_history): New functions.
6317 (ui_out_free_cleanup): Delete function.
6318 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6319 instead use the one already stored in the MI interpreter data.
6320 (mi_ui_out): Adjust.
6321 * tui/tui-interp.c: Include infrun.h and observer.h.
6322 (tui_interp): New global.
6323 (tui_on_signal_received, tui_on_end_stepping_range)
6324 (tui_on_signal_exited, tui_on_exited)
6325 (tui_on_no_history): New functions.
6326 (tui_init): Install them as 'end_stepping_range',
6327 'signal_received' 'signal_exited', 'exited' and 'no_history'
6329 (_initialize_tui_interp): Delete tui_interp local.
6331 2014-05-29 Pedro Alves <palves@redhat.com>
6334 * linux-nat.c (linux_nat_resume_callback): Rename the second
6335 parameter to 'except'. Skip LP if it points to EXCEPT.
6336 (linux_nat_resume): Don't mark the event lwp as not stopped
6337 before resuming sibling lwps. Instead ask
6338 linux_nat_resume_callback to skip the event lwp. Mark it as not
6339 stopped after actually resuming it.
6340 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6342 (wait_lwp): Mark the lwp as stopped here.
6343 (stop_wait_callback): Mark the lwp as not stopped right after
6344 resuming it. Don't mark lwps as stopped here.
6345 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6346 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6348 2014-05-29 Pedro Alves <palves@redhat.com>
6351 * infrun.c (resume): Determine how much to resume depending on
6352 whether the caller wanted a step, not whether we can hardware step
6353 the target. Mark all threads that we intend to run as running,
6354 unless we're calling an inferior function.
6355 (normal_stop): If the thread is running an infcall, don't finish
6357 * target.c (target_resume): Don't mark threads as running here.
6359 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6361 * serial.c (_initialize_serial): Remove support for
6362 the "set remotebaud" and "show remotebaud" commands.
6363 * NEWS: Add entry documenting the removal of that command.
6365 2014-05-28 Yao Qi <yao@codesourcery.com>
6367 * charset.c: Fix typo in comments.
6369 2014-05-27 Gary Benson <gbenson@redhat.com>
6371 * utils.c (internal_vproblem): Prompt for a bug report.
6373 2014-05-26 Andy Wingo <wingo@igalia.com>
6375 * guile/scm-arch.c (arscm_mark_arch_smob):
6376 * guile/scm-block.c (bkscm_mark_block_smob)
6377 (bkscm_mark_block_syms_progress_smob):
6378 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6379 * guile/scm-exception.c (exscm_mark_exception_smob):
6380 * guile/scm-frame.c (frscm_mark_frame_smob):
6381 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6382 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6383 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6384 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6385 (ppscm_mark_pretty_printer_worker_smob):
6386 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6387 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6388 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6389 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6391 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6394 2014-05-26 Andy Wingo <wingo@igalia.com>
6395 Doug Evans <xdje42@gmail.com>
6397 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6398 empty_base_class. All uses updated.
6399 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6400 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6402 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6403 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6404 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6405 (gdbscm_gsmob_has_property_p, add_property_name)
6406 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6407 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6408 (gdb-object-has-property?, gdb-object-properties): Remove.
6409 (gdb-object-kind): Renamed from gsmob-kind.
6411 2014-05-26 Andy Wingo <wingo@igalia.com>
6413 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6414 * configure: Regenerate.
6416 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6418 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6420 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6422 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6423 (replay_memory_access_read_only, replay_memory_access_read_write)
6424 (replay_memory_access_types, replay_memory_access)
6425 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6426 (cmd_set_record_btrace, cmd_show_record_btrace)
6427 (cmd_show_replay_memory_access): New.
6428 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6429 (record_btrace_remove_breakpoint): Replace
6430 record_btrace_allow_memory_access with replay_memory_access.
6431 (_initialize_record_btrace): Add commands.
6432 * NEWS: Announce it.
6434 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6436 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6438 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6440 * MAINTAINERS (Write After Approval): Move self back from
6443 2014-05-22 Pedro Alves <palves@redhat.com>
6445 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6446 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6447 (disable_randomization, enum exec_direction_kind)
6448 (execution_direction, stop_registers, start_remote)
6449 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6450 (wait_for_inferior, normal_stop, get_last_target_status)
6451 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6452 (insert_step_resume_breakpoint_at_sal)
6453 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6454 (set_step_info, print_stop_event, signal_stop_state)
6455 (signal_print_state, signal_pass_state, signal_stop_update)
6456 (signal_print_update, signal_pass_update)
6457 (update_signals_program_target, clear_exit_convenience_vars)
6458 (displaced_step_dump_bytes, update_observer_mode)
6459 (signal_catch_update, gdb_signal_from_command): Move
6461 * infrun.h: ... to this new file.
6462 * amd64-tdep.c: Include infrun.h.
6463 * annotate.c: Include infrun.h.
6464 * arch-utils.c: Include infrun.h.
6465 * arm-linux-tdep.c: Include infrun.h.
6466 * arm-tdep.c: Include infrun.h.
6467 * break-catch-sig.c: Include infrun.h.
6468 * breakpoint.c: Include infrun.h.
6469 * common/agent.c: Include infrun.h instead of inferior.h.
6470 * corelow.c: Include infrun.h.
6471 * event-top.c: Include infrun.h.
6472 * go32-nat.c: Include infrun.h.
6473 * i386-tdep.c: Include infrun.h.
6474 * inf-loop.c: Include infrun.h.
6475 * infcall.c: Include infrun.h.
6476 * infcmd.c: Include infrun.h.
6477 * infrun.c: Include infrun.h.
6478 * linux-fork.c: Include infrun.h.
6479 * linux-nat.c: Include infrun.h.
6480 * linux-thread-db.c: Include infrun.h.
6481 * monitor.c: Include infrun.h.
6482 * nto-tdep.c: Include infrun.h.
6483 * procfs.c: Include infrun.h.
6484 * record-btrace.c: Include infrun.h.
6485 * record-full.c: Include infrun.h.
6486 * remote-m32r-sdi.c: Include infrun.h.
6487 * remote-mips.c: Include infrun.h.
6488 * remote-notif.c: Include infrun.h.
6489 * remote-sim.c: Include infrun.h.
6490 * remote.c: Include infrun.h.
6491 * reverse.c: Include infrun.h.
6492 * rs6000-tdep.c: Include infrun.h.
6493 * s390-linux-tdep.c: Include infrun.h.
6494 * solib-irix.c: Include infrun.h.
6495 * solib-osf.c: Include infrun.h.
6496 * solib-svr4.c: Include infrun.h.
6497 * target.c: Include infrun.h.
6498 * top.c: Include infrun.h.
6499 * windows-nat.c: Include infrun.h.
6500 * mi/mi-interp.c: Include infrun.h.
6501 * mi/mi-main.c: Include infrun.h.
6502 * python/py-threadevent.c: Include infrun.h.
6504 2014-05-22 Pedro Alves <palves@redhat.com>
6506 * infrun.c (handle_inferior_event): Store the exit code for
6507 --return-child-result here, instead of ...
6508 (print_exited_reason): ... here.
6510 2014-05-21 Pedro Alves <palves@redhat.com>
6513 * gdbthread.h (struct thread_control_state): New field
6515 * infrun.c (follow_fork): Copy the new thread control field to the
6517 (clear_proceed_status_thread): Clear the new thread control field.
6518 (proceed): Set the new thread control field.
6519 * interps.h (command_interp): Declare.
6520 * interps.c (command_interpreter): New global.
6521 (command_interp): New function.
6522 (interp_exec): Set `command_interpreter' while here.
6523 * cli-out.c (cli_uiout_dtor): New function.
6524 (cli_ui_out_impl): Install it.
6525 * mi/mi-interp.c: Include cli-out.h.
6526 (mi_cmd_interpreter_exec): Add comment.
6527 (restore_current_uiout_cleanup): New function.
6528 (ui_out_free_cleanup): New function.
6529 (mi_on_normal_stop): If finishing an execution command started by
6530 a CLI command, or any kind of breakpoint-like event triggered,
6531 print the stop event to the output (CLI) stream.
6532 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6534 2014-05-21 Pedro Alves <palves@redhat.com>
6536 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6537 current source line having changed.
6538 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6539 * infrun.c (normal_stop): Adjust call to
6540 set_current_sal_from_frame.
6541 * source.c (clear_lines_listed_range): New function.
6542 (set_current_source_symtab_and_line, identify_source_line): Clear
6543 the lines listed range.
6544 (line_info): Handle the first "info line" after the current source
6545 line having changed.
6546 * stack.c (print_stack_frame): Remove center handling.
6547 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6550 2014-05-21 Pedro Alves <palves@redhat.com>
6552 * inf-child.c (inf_child_mourn_inferior): New function.
6553 * inf-child.h (inf_child_mourn_inferior): New declaration.
6554 * darwin-nat.c (darwin_mourn_inferior): Use
6555 inf_child_mourn_inferior.
6556 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6557 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6558 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6559 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6560 * windows-nat.c (windows_mourn_inferior): Likewise.
6562 2014-05-21 Doug Evans <xdje42@gmail.com>
6564 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6566 2014-05-21 Doug Evans <xdje42@gmail.com>
6568 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6569 (gdbscm_out_of_range_error): Ditto.
6570 (gdbscm_memory_error): Ditto.
6571 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6572 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6573 (gdbscm_out_of_range_error): Update.
6574 (gdbscm_memory_error): Update.
6575 (gdbscm_scm_to_target_string_unsafe): Delete.
6577 2014-05-21 Pedro Alves <palves@redhat.com>
6579 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6581 (inf_child_open_target): New function.
6582 (inf_child_open): Use inf_child_open_target to push the target
6583 instead of erroring out.
6584 (inf_child_disconnect, inf_child_close)
6585 (inf_child_maybe_unpush_target): New functions.
6586 (inf_child_target): Install inf_child_disconnect and
6587 inf_child_close. Store a pointer to the returned object.
6588 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6590 * target.c (auto_connect_native_target): New global.
6591 (show_default_run_target): New function.
6592 (find_default_run_target): Return NULL if automatically connecting
6593 to the native target is disabled.
6594 (_initialize_target): Install set/show auto-connect-native-target.
6595 * NEWS: Mention "set auto-connect-native-target", and "target
6597 * linux-nat.c (super_close): New global.
6598 (linux_nat_close): Call super_close.
6599 (linux_nat_add_target): Store a pointer to the base class's
6601 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6602 inf_child_maybe_unpush.
6603 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6605 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6606 the inferior. Use inf_child_maybe_unpush_target.
6607 (inf_ttrace_attach): Don't push the target if it is already
6609 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6610 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6611 after mourning the inferior. Use inf_child_maybe_unpush_target.
6612 (darwin_attach_pid): Don't push the target if it is already
6614 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6615 mourning the inferior. Use inf_child_maybe_unpush_target.
6616 (gnu_detach): Use inf_child_maybe_unpush_target.
6617 * go32-nat.c (go32_create_inferior): Don't push the target if it
6619 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6620 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6621 (procfs_open): Rename to ...
6622 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6623 comments. Can target_preopen before changing node. Call
6624 inf_child_open_target to push the target explicitly.
6625 (procfs_attach): Don't push the target if it is already pushed.
6626 (procfs_detach): Use inf_child_maybe_unpush_target.
6627 (procfs_create_inferior): Don't push the target if it is already
6629 (nto_native_ops): New global.
6630 (procfs_open): Reimplement.
6631 (procfs_native_open): New function.
6632 (init_procfs_targets): Install procfs_native_open as to_open of
6633 "target native". Store a pointer to the "native" target in
6635 * procfs.c (procfs_attach): Don't push the target if it is already
6637 (procfs_detach): Use inf_child_maybe_unpush_target.
6638 (procfs_mourn_inferior): Only unpush the target after mourning the
6639 inferior. Use inf_child_maybe_unpush_target.
6640 (procfs_init_inferior): Don't push the target if it is already
6642 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6643 if it is already pushed.
6645 2014-05-21 Pedro Alves <palves@redhat.com>
6647 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6648 and "procfs" targets are now called "native" instead.
6650 2014-05-21 Pedro Alves <palves@redhat.com>
6652 * go32-nat.c (go32_open): Delete.
6653 (go32_target): Don't override the to_open method.
6655 2014-05-21 Pedro Alves <palves@redhat.com>
6657 * nto-procfs.c (procfs_can_run): New function.
6658 (nto_procfs_ops): New global.
6659 (init_procfs_targets): New, based on procfs_target. Install
6660 "target native" in addition to "target procfs".
6661 (_initialize_procfs): Call init_procfs_targets instead of adding
6664 2014-05-21 Pedro Alves <palves@redhat.com>
6666 * windows-nat.c (windows_target): Don't override to_shortname,
6667 to_longname or to_doc.
6669 2014-05-21 Pedro Alves <palves@redhat.com>
6671 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6674 2014-05-21 Pedro Alves <palves@redhat.com>
6676 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6677 to_shortname, to_longname or to_doc.
6679 2014-05-21 Pedro Alves <palves@redhat.com>
6681 * go32-nat.c (go32_target): Don't override to_shortname,
6682 to_longname or to_doc.
6684 2014-05-21 Pedro Alves <palves@redhat.com>
6686 * inf-child.c (inf_child_open): Remove mention of "child".
6687 (inf_child_target): Rename target to "native" instead of "child".
6689 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6691 * Makefile.in (SFILES): Delete "regset.c".
6692 (COMMON_OBS): Delete "regset.o".
6694 * regset.h (regset_alloc): Delete prototype.
6696 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6698 * sparc-linux-tdep.c (sparc32_linux_gregset)
6699 (sparc32_linux_fpregset): New static regset structures.
6700 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6701 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6703 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6704 (sparc64_linux_fpregset): New static regset structures.
6705 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6706 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6707 New static regset structures.
6708 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6709 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6710 New static regset structures.
6711 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6712 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6713 New static regset structures.
6714 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6715 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6716 New static regset structures.
6717 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6719 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6721 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6722 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6723 register maps ("regmaps") from "*regset" to "*regmap". Do this
6724 for all regmap types and variables.
6725 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6726 (sparc32_linux_supply_core_gregset)
6727 (sparc32_linux_collect_core_gregset)
6728 (sparc32_linux_supply_core_fpregset)
6729 (sparc32_linux_collect_core_fpregset): Likewise.
6730 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6731 (sparc_gregmap, sparc_fpregmap): ... these.
6732 (sparc_supply_gregset, sparc_collect_gregset)
6733 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6734 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6735 (_initialize_sparc_nat): Rename regmaps.
6736 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6737 (sparc_gregmap, sparc_fpregmap): ... these.
6738 (sparc_supply_gregset, sparc_collect_gregset)
6739 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6740 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6742 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6743 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6745 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6747 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6748 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6749 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6751 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6752 (sparc32_bsd_fpregset): Rename to...
6753 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6754 (sparc32_bsd_fpregmap): ... these.
6755 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6756 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6757 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6758 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6759 (struct sparc_gregmap, struct sparc_fpregmap)
6760 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6761 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6762 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6763 (sparc32_supply_regset, sparc32_collect_gregset)
6764 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6766 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6767 (sparc64_linux_ptrace_gregmap): ... this.
6768 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6769 (_initialize_sparc64_linux_nat): Rename regmaps.
6770 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6771 (sparc64_linux_core_gregmap): ... this.
6772 (sparc64_linux_supply_core_gregset)
6773 (sparc64_linux_collect_core_gregset)
6774 (sparc64_linux_supply_core_fpregset)
6775 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6776 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6777 (sparc64_sol2_fpregset): Rename to...
6778 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6779 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6780 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6782 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6783 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6784 (sparc64_bsd_fpregset): Rename to...
6785 (struct sparc_gregmap, sparc64_sol2_gregmap)
6786 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6787 (sparc64_bsd_fpregmap): ... these.
6788 (sparc64_supply_gregset, sparc64_collect_gregset)
6789 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6791 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6792 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6793 (sparc64fbsd_gregmap): ... this.
6794 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6795 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6797 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6798 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6799 (sparc64nbsd_collect_fpregset): Likewise.
6800 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6801 (sparc64nbsd_gregmap): ... this.
6802 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6804 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6805 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6806 (sparc64obsd_gregmap): ... this.
6807 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6809 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6810 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6811 (sparc32nbsd_gregmap): ... this.
6812 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6815 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6817 * score-tdep.c (score7_linux_gregset): New static regset
6819 (score7_linux_regset_from_core_section): Remove dynamic regset
6821 (score_gdbarch_init): Drop allocation of tdep structure.
6822 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6824 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6826 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6828 (am33_regset_from_core_section): Remove dynamic regset
6831 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6833 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6834 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6836 (mips_linux_regset_from_core_section): Remove dynamic regset
6838 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6839 'gregset64', 'fpregset', and 'fpregset64'.
6840 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6841 deleted tdep fields.
6843 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6845 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6847 (amd64_regset_from_core_section): Remove dynamic regset
6849 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6851 (amd64obsd_regset_from_core_section): Remove dynamic regset
6853 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6855 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6856 x86-common regset supply function.
6857 * i386-tdep.c (i386_collect_gregset): Make static.
6858 (i386_gregset): New global regset structure.
6859 (i386_fpregset, i386_xstateregset): New static regset structures.
6860 (i386_regset_from_core_section): Remove dynamic regset
6862 (i386_gdbarch_init): Remove initialization of tdep fields
6863 'gregset', 'fpregset', and 'xstateregset'.
6864 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6865 'fpregset', and 'xstateregset'.
6866 (i386_collect_gregset): Remove prototype.
6867 (i386_gregset): New declaration.
6868 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6870 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6873 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6875 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6876 (arm_linux_vfpregset): New static regset structures.
6877 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6879 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6880 and 'vfpregset' fields.
6882 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6884 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6885 (aarch64_linux_fpregset): New static regset structures.
6886 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6887 of regset structures.
6888 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6891 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6893 * regset.h (struct regset): Remove gdbarch field.
6894 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6895 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6896 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6898 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6899 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6900 (ppc32_linux_vsxregset): Likewise.
6901 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6902 via the regcache instead of the regset.
6903 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6904 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6905 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6906 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6909 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6911 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6912 Constify structures.
6913 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6914 (alphanbsd_aout_gregset): Likewise.
6915 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6916 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6918 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6919 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6921 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6922 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6923 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6924 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6925 * m88k-tdep.c (m88k_gregset): Likewise.
6926 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6927 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6928 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6929 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6930 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6931 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6932 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6933 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6934 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6936 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6937 * sh-tdep.h (sh_corefile_gregset): Likewise.
6938 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6939 * vax-tdep.c (vax_gregset): Likewise.
6941 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6943 Fix TLS access for -static -pthread.
6944 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6945 (try_thread_db_load_1): Initialize it.
6946 (thread_db_get_thread_local_address): Call it if LM is zero.
6947 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6948 * target.h (struct target_ops) (to_get_thread_local_address): Add
6949 load_module_addr comment.
6951 2014-05-21 Pedro Alves <palves@redhat.com>
6953 * dcache.c (dcache_read_memory_partial): If reading the cache line
6954 fails, fallback to reading just the memory the caller wanted.
6956 2014-05-20 Doug Evans <dje@google.com>
6958 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6959 instead of get_current_arch.
6961 2014-05-20 Pedro Alves <palves@redhat.com>
6963 * NEWS: Mention that compare-sections now works with all targets.
6965 * remote.c (PACKET_qCRC): New enum value.
6966 (remote_verify_memory): Don't send qCRC if the target has no
6967 execution. Use packet_support/packet_ok. If the target doesn't
6968 support the qCRC packet, fallback to a deep memory copy.
6969 (compare_sections_command): Say "target image" instead of "remote
6971 (_initialize_remote): Add PACKET_qCRC to the list of config
6972 packets that have no associated command. Extend comment.
6973 * target.c (simple_verify_memory, default_verify_memory): New
6975 * target.h (struct target_ops) <to_verify_memory>: Default to
6976 default_verify_memory.
6977 (simple_verify_memory): New declaration.
6978 * target-delegates.c: Regenerate.
6980 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6982 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6984 2014-05-20 Hui Zhu <hui@codesourcery.com>
6985 Yao Qi <yao@codesourcery.com>
6988 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6989 and change address of sp and pc.
6991 2014-05-19 Tom Tromey <tromey@redhat.com>
6993 * gdbtypes.c (rank_function): Use XNEWVEC.
6994 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6996 2014-05-19 Doug Evans <dje@google.com>
6998 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6999 build_type_unit_groups and moved closer to only caller. Remove
7000 arguments. All references updated. Remove outdated .gdb_index
7002 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7003 build_type_psymtabs_1.
7005 2014-05-19 Doug Evans <dje@google.com>
7007 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7008 n_type_unit_groups, all_type_unit_groups. All uses removed.
7009 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7010 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7011 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7012 (add_type_unit_group_to_table): Delete.
7014 2014-05-19 Doug Evans <dje@google.com>
7016 * eval.c (evaluate_subexp_standard): Add some comments.
7018 2014-05-17 Doug Evans <xdje42@gmail.com>
7020 * progspace.c (remove_program_space): Delete, unused.
7021 * progspace.h (remove_program_space): Ditto.
7023 2014-05-17 Doug Evans <xdje42@gmail.com>
7025 * inferior.c (prune_inferiors): Fix comment.
7026 (remove_inferior_command): Call prune_program_spaces.
7028 2014-05-16 Doug Evans <dje@google.com>
7030 New command line option -D.
7032 * main.c (set_gdb_data_directory): New function.
7033 (captured_main): Recognize -D. Flag error for --data-directory "".
7034 Call set_gdb_data_directory.
7035 (print_gdb_help): Print --data-directory, -D.
7036 * main.h (set_gdb_data_directory): Declare.
7037 * top.c (staged_gdb_datadir): New static global.
7038 (set_gdb_datadir): Call set_gdb_data_directory
7039 (show_gdb_datadir): New function.
7040 (init_main): Update init of data-directory parameter.
7042 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7044 Import the "dirfd" gnulib module.
7045 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7046 * gnulib/aclocal.m4: Update.
7047 * gnulib/config.in: Update.
7048 * gnulib/configure: Update.
7049 * gnulib/import/Makefile.am: Update.
7050 * gnulib/import/Makefile.in: Update.
7051 * gnulib/import/dirfd.c: New.
7052 * gnulib/import/m4/dirfd.m4: New.
7053 * gnulib/import/m4/gnulib-cache.m4: Update.
7054 * gnulib/import/m4/gnulib-comp.m4: Update.
7056 2014-05-16 Pierre Muller <muller@sourceware.org>
7057 Yao Qi <yao@codesourcery.com>
7059 * valprint.c (print_wchar): Move the code on checking whether
7060 W is a printable wide char to the default branch of switch
7061 statement below. Call wchar_printable instead of gdb_iswprint.
7063 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7065 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7066 ldr.w and ldrd instructions.
7068 2014-05-15 Doug Evans <dje@google.com>
7070 * dwarf2read.c (read_structure_type): Delete outdated comments.
7072 2014-05-14 Tom Tromey <tromey@redhat.com>
7074 * macrocmd.c (print_macro_definition): Reindent.
7076 2014-05-13 Doug Evans <xdje42@gmail.com>
7078 * python/py-cmd.c (cmdpy_completer): Add comment.
7079 (completers): Make const.
7081 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7083 * infrun.c (resume): Remove should_resume (unused). Move up
7084 declaration of resume_ptid.
7086 2014-05-13 Tom Tromey <tromey@redhat.com>
7088 * language.h (unop_type_check): Remove.
7089 (binop_type_check): Don't declare.
7091 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7093 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7094 call to regcache_raw_collect.
7096 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7098 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7099 mi_console->quote as the quoting character.
7101 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7103 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7105 2014-04-29 Tom Tromey <tromey@redhat.com>
7107 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7108 "show debug varobj".
7110 2014-05-07 Kyle McMartin <kyle@redhat.com>
7112 Pushed by Joel Brobecker <brobecker@adacore.com>.
7113 * aarch64-tdep.c (aarch64_software_single_step): New function.
7114 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7115 with aarch64_software_single_step.
7117 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7121 2014-05-05 Keith Seitz <keiths@redhat.com>
7123 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7124 variable or history value is successfully parsed.
7126 2014-05-05 Yao Qi <yao@codesourcery.com>
7127 Pedro Alves <palves@redhat.com>
7129 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7130 address of blocks that intersects the requested range. Trim
7131 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7133 * ctf.c (ctf_xfer_partial): Likewise.
7135 2014-05-05 Yao Qi <yao@codesourcery.com>
7137 * printcmd.c (display_command): Remove the check to
7138 target_has_execution.
7140 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7142 * ppcobsd-nat.c: Include "obsd-nat.h".
7143 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7145 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7147 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7149 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7150 and 16-bit signed and unsigned arguments. Update comment.
7151 (stap_parse_probe_arguments): Extend code to handle such
7152 arguments. Use warning instead of complaint to notify about
7153 unrecognized bitness.
7155 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7157 PR breakpoints/16889
7158 * stap-probe.c (stap_parse_probe_arguments): Simplify
7159 check for non-prefixed probes (i.e., probes whose
7160 arguments do not start with "N@"). Always set the
7161 argument type to a sane value.
7163 2014-05-01 David Taylor <dtaylor@emc.com>
7165 * remote.c (compare_sections_command): Add -r option to compare
7166 all loadable read-only sections.
7168 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7170 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7171 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7173 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7174 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7175 Remove unused CORE_ADDR argument. Update all callers.
7177 2014-04-29 Pedro Alves <palves@redhat.com>
7179 * remote.c (struct packet_config) <detect>: Extend comment.
7180 (add_packet_config_cmd): Don't set the config's detect or support
7182 (init_all_packet_configs): Also initialize the config's 'detect'
7184 (reset_all_packet_configs_support): New function.
7185 (remote_open_1): Call reset_all_packet_configs_support instead of
7186 init_all_packet_configs.
7187 (_initialize_remote): Initialize all packet configs. Assert that
7188 all packets have an associated command, except a few known
7191 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7193 * dwarf2read.c (read_subrange_type): Handle dynamic
7194 DW_AT_lower_bound attributes.
7196 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7198 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7199 dynamic bounds before computing its upper bound.
7200 (ada_discrete_type_low_bound): Same as above with the lower bound.
7202 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7204 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7205 range types. Adjust the array handling implementation to
7206 take advantage of this change.
7207 (resolve_dynamic_range): New function, mostly extracted from
7208 resolve_dynamic_bounds.
7209 (resolve_dynamic_array): New function, mostly extracted from
7210 resolve_dynamic_bounds.
7211 (resolve_dynamic_bounds): Delete.
7212 (resolve_dynamic_type): Reimplement. Add handling of
7213 TYPE_CODE_RANGE types.
7215 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7217 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7218 handling of parallel ___XA types.
7220 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7222 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7223 unnecessary second call to static_unwrap_type.
7225 2014-04-27 Hui Zhu <hui@codesourcery.com>
7227 * stack.c (print_frame_info): Call do_gdb_disassembly with
7228 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7230 2014-04-26 Doug Evans <xdje42@gmail.com>
7232 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7234 2014-04-25 Pedro Alves <palves@redhat.com>
7237 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7238 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7239 and newline from built string.
7240 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7241 (linux_ptrace_attach_fail_reason): ... this.
7242 * linux-nat.c (linux_nat_attach): Adjust to use
7243 linux_ptrace_attach_fail_reason.
7245 2014-04-25 Pedro Alves <palves@redhat.com>
7247 * remote.c (struct remote_state): Remove multi_process_aware,
7248 non_stop_aware, cond_tracepoints, cond_breakpoints,
7249 breakpoint_commands, fast_tracepoints, static_tracepoints,
7250 install_in_trace, disconnected_tracing,
7251 enable_disable_tracepoints, string_tracing, and
7252 augmented_libraries_svr4_read fields.
7253 (remote_multi_process_p): Move further below in the file.
7254 (struct packet_config): Add comments.
7255 (update_packet_config): Delete function.
7256 (show_packet_config_cmd): Use packet_config_support.
7257 (add_packet_config_cmd): Use NULL as set callback.
7258 (packet_ok): "set remote foo-packet"-style commands no longer
7259 change config->supported -- adjust.
7260 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7261 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7262 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7263 (PACKET_QNonStop, PACKET_multiprocess_feature)
7264 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7265 (PACKET_DisconnectedTracing_feature)
7266 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7267 (set_remote_protocol_packet_cmd): Delete function.
7268 (packet_config_support, packet_support): New functions.
7269 (set_remote_protocol_Z_packet_cmd): Don't call
7270 update_packet_config.
7271 (remote_query_attached, remote_pass_signals)
7272 (remote_program_signals, remote_threads_info)
7273 (remote_threads_extra_info, remote_start_remote): Use
7275 (remote_start_remote): Use packet_config_support and
7277 (init_all_packet_configs): Set all packets to unknown support,
7278 instead of calling update_packet_config.
7279 (remote_check_symbols): Use packet_support.
7280 (remote_supported_packet): Unconditionally set the packet config's
7282 (remote_multi_process_feature, remote_non_stop_feature)
7283 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7284 (remote_breakpoint_commands_feature)
7285 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7286 (remote_install_in_trace_feature)
7287 (remote_disconnected_tracing_feature)
7288 (remote_enable_disable_tracepoint_feature)
7289 (remote_string_tracing_feature)
7290 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7291 (remote_protocol_features): Adjust to use remote_supported_packet
7292 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7293 "ConditionalTracepoints", "ConditionalBreakpoints",
7294 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7295 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7296 "EnableDisableTracepoints", and "tracenz".
7297 (remote_query_supported): Use packet_support.
7298 (remote_open_1): Adjust.
7299 (extended_remote_attach_1): Use packet_support. Switch on the
7300 result of packet_ok instead of checking whether the packet ended
7302 (remote_vcont_resume): Use packet_support.
7303 (remote_resume, remote_stop_ns, fetch_register_using_p)
7304 (remote_prepare_to_store, store_register_using_P)
7305 (check_binary_download, remote_write_bytes): Use packet_support.
7306 (remote_vkill): Use packet_support. Switch on the result of
7307 packet_ok instead of checking whether the packet ended up
7309 (extended_remote_supports_disable_randomization): Use
7311 (extended_remote_run): Switch on the result of packet_ok instead
7312 of checking whether the packet ended up disabled.
7313 (remote_insert_breakpoint, remote_remove_breakpoint)
7314 (remote_insert_watchpoint, remote_remove_watchpoint)
7315 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7317 (remote_search_memory): Use packet_config_support.
7318 (remote_get_thread_local_address, remote_get_tib_address)
7319 (remote_hostio_send_command, remote_can_execute_reverse): Use
7321 (remote_supports_cond_tracepoints)
7322 (remote_supports_cond_breakpoints)
7323 (remote_supports_fast_tracepoints)
7324 (remote_supports_static_tracepoints)
7325 (remote_supports_install_in_trace)
7326 (remote_supports_enable_disable_tracepoint)
7327 (remote_supports_string_tracing)
7328 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7329 the packet config says the feature is enabled or disabled.
7330 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7331 (remote_get_trace_status): Use packet_support.
7332 (remote_set_disconnected_tracing): Adjust to check whether the
7333 feature is enabled with packet_support.
7334 (remote_set_trace_buffer_size, remote_use_agent)
7335 (remote_can_use_agent, remote_supports_btrace): Use
7337 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7338 Use packet_config_support.
7339 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7340 the packet config says the feature is enabled or disabled.
7341 (set_range_stepping): Use packet_support.
7343 2014-04-25 Tom Tromey <tromey@redhat.com>
7345 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7348 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7350 * NEWS: Mention support for C99 variable length arrays.
7352 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7354 * ada-lang.c (standard_exc): Expand introductory comment.
7356 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7357 Walfred Tedeschi <walfred.tedeschi@intel.com>
7359 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7361 (amd64_linux_read_description): Add code to handle AVX512 xstate
7362 mask and return respective tdesc.
7363 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7364 and features/i386/x32-avx512-linux.c.
7365 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7366 (amd64_linux_core_read_description): Add code to handle AVX512
7367 xstate mask and return respective tdesc.
7368 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7369 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7371 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7372 (tdesc_amd64_avx512_linux): New prototype.
7373 (tdesc_x32_avx512_linux): Likewise.
7374 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7375 features/i386/x32-avx512.c.
7376 (amd64_ymm_avx512_names): New register names for pseudo
7378 (amd64_ymmh_avx512_names): New register names for raw registers
7380 (amd64_k_names): New register names for K registers.
7381 (amd64_zmmh_names): New register names for ZMM raw registers.
7382 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7383 (amd64_xmm_avx512_names): New register names for XMM16-31
7385 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7387 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7388 if feature is present.
7389 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7390 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7391 (AMD64_NUM_REGS): Adjust to new number of registers.
7392 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7393 registers supplied via XSTATE by AVX512 registers.
7394 (i386_linux_read_description): Add case for AVX512.
7395 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7396 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7397 (i386_linux_core_read_description): Add case for AVX512.
7398 (i386_linux_init_abi): Install supported register note section
7400 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7402 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7403 registers to be number of zmm7h + 1.
7404 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7405 * i386-tdep.c: Include features/i386/i386-avx512.c.
7406 (i386_zmm_names): Add ZMM pseudo register names array.
7407 (i386_zmmh_names): Add ZMM raw register names array.
7408 (i386_k_names): Add K raw register names array.
7409 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7410 registers. AVX512 has 16 more ZMM registers than there are YMM
7412 (i386_zmmh_regnum_p): Add function to look up register number of
7414 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7415 (i386_k_regnum_p): Likewise for K raw registers.
7416 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7417 registers added by AVX512.
7418 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7419 registers added by AVX512.
7420 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7422 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7423 (i386_pseudo_register_name): Add ZMM pseudo registers.
7424 (i386_zmm_type): Construct and return vector registers type for ZMM
7426 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7427 ZMM0-31 pseudo registers and K registers.
7428 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7429 and YMM16-31 registers from register cache.
7430 (i386_pseudo_register_write): Add code to write K, ZMM and
7432 (i386_register_reggroup_p): Add code to include/exclude AVX512
7433 registers in/from respective register groups.
7434 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7435 registers if feature is present in xcr0.
7436 (i386_gdbarch_init): Add code to initialize AVX512 feature
7437 variables in tdep structure, wire in pseudo registers and call
7438 initialize_tdesc_i386_avx512.
7439 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7441 (i386_regnum): Add AVX512 registers.
7442 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7443 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7444 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7445 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7447 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7448 (i386_ymm_avx512_regnum_p): Likewise.
7449 (i386_k_regnum_p): Likewise.
7450 (i386_zmm_regnum_p): Likewise.
7451 (i386_zmmh_regnum_p): Likewise.
7452 * i387-tdep.c : Update year in copyright notice.
7453 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7455 (XSAVE_YMM_AVX512_ADDR): New macro.
7456 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7458 (XSAVE_XMM_AVX512_ADDR): New macro.
7459 (xsave_avx512_k_offset): New table for K register offsets in
7461 (XSAVE_AVX512_K_ADDR): New macro.
7462 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7464 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7465 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7467 (i387_collect_xsave): Add code to collect AVX512 registers from
7469 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7470 of XMM16-31 registers.
7471 (I387_NUM_K_REGS): New define for number of K registers.
7472 (I387_K0_REGNUM): New define for K0 register number.
7473 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7474 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7475 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7477 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7478 (I387_XMM16_REGNUM): New define for XMM16 register number.
7479 (I387_YMM0_REGNUM): New define for YMM0 register number.
7480 (I387_KEND_REGNUM): New define for last K register number.
7481 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7482 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7484 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7486 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7488 * features/Makefile: Add AVX512 related files.
7489 * features/i386/32bit-avx512.xml: New file.
7490 * features/i386/64bit-avx512.xml: Likewise.
7491 * features/i386/amd64-avx512-linux.c: Likewise.
7492 * features/i386/amd64-avx512-linux.xml: Likewise.
7493 * features/i386/amd64-avx512.c: Likewise.
7494 * features/i386/amd64-avx512.xml: Likewise.
7495 * features/i386/i386-avx512-linux.c: Likewise.
7496 * features/i386/i386-avx512-linux.xml: Likewise.
7497 * features/i386/i386-avx512.c: Likewise.
7498 * features/i386/i386-avx512.xml: Likewise.
7499 * features/i386/x32-avx512-linux.c: Likewise.
7500 * features/i386/x32-avx512-linux.xml: Likewise.
7501 * features/i386/x32-avx512.c: Likewise.
7502 * features/i386/x32-avx512.xml: Likewise.
7503 * regformats/i386/amd64-avx512-linux.dat: New file.
7504 * regformats/i386/amd64-avx512.dat: Likewise.
7505 * regformats/i386/i386-avx512-linux.dat: Likewise.
7506 * regformats/i386/i386-avx512.dat: Likewise.
7507 * regformats/i386/x32-avx512-linux.dat: Likewise.
7508 * regformats/i386/x32-avx512.dat: Likewise.
7509 * NEWS: Add note about new support for AVX512.
7512 2014-04-23 Pedro Alves <palves@redhat.com>
7514 * breakpoint.c (insert_bp_location): Tolerate errors if the
7515 breakpoint is set in a user-loaded objfile.
7516 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7517 location is marked shlib_disabled. If the breakpoint is set in a
7518 user-loaded objfile is a GDB-side memory breakpoint, validate it
7519 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7520 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7522 * mem-break.c (memory_validate_breakpoint): New function.
7523 * objfiles.c (userloaded_objfile_contains_address_p): New
7525 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7526 * target.h (memory_validate_breakpoint): New declaration.
7528 2014-04-23 Pedro Alves <palves@redhat.com>
7530 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7531 the breakpoint is set in a shared library, only suppress
7532 errors for software breakpoints, not hardware breakpoints.
7534 2014-04-22 Pedro Alves <palves@redhat.com>
7536 * infrun.c (schedlock_applies): New function, factored out from
7537 find_thread_needs_step_over.
7538 (find_thread_needs_step_over): Use it.
7539 (switch_back_to_stepped_thread): Always clear trap_expected if the
7540 step over is finished. Return early if scheduler locking applies.
7541 Look for the stepping thread and a potential step-over thread with
7543 (currently_stepping_or_nexting_callback): Delete.
7545 2014-04-22 Nick Clifton <nickc@redhat.com>
7547 * NEWS: Mention that ARM sim now supports tracing.
7549 2014-04-22 Yao Qi <yao@codesourcery.com>
7551 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7553 * tracefile.c (tracefile_fetch_registers): ... it. New
7555 * tracefile.h (tracefile_fetch_registers): Declare.
7556 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7557 tracefile_fetch_registers.
7559 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7562 * windows-nat.c (thread_rec): Don't display a warning when
7563 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7564 fails for any reason, set th->suspended to -1, so that we don't
7565 try to resume such a thread. Also, don't return NULL in these
7566 cases, to avoid completely ruin the session due to "PC register is
7567 not available" error.
7568 (do_windows_fetch_inferior_registers): Check errors in
7569 GetThreadContext call.
7570 (windows_continue): Accept an additional argument KILLED; if not
7571 zero, ignore errors in the SetThreadContext call, since the
7572 inferior was killed and is shutting down.
7573 (windows_resume, get_windows_debug_event)
7574 (windows_create_inferior, windows_mourn_inferior)
7575 (windows_kill_inferior): All callers of windows_continue changed
7576 to adjust to its new calling sequence.
7578 2014-04-19 Yao Qi <yao@codesourcery.com>
7580 * ctf.c (ctf_open): Call post_create_inferior.
7582 2014-04-19 Yao Qi <yao@codesourcery.com>
7584 * ctf.c (handle_id): New static variable.
7585 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7586 value. Get the declaration of event "register" and get length
7587 of field "contents".
7589 2014-04-19 Yao Qi <yao@codesourcery.com>
7591 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7593 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7595 * valops.c (oload_method_static): Remove unnecessary argument
7596 METHOD. Update all callers.
7598 2014-04-18 Pedro alves <palves@redhat.com>
7599 Tom Tromey <tromey@redhat.com>
7602 * frame.c (get_prev_frame_1): Rename to ...
7603 (get_prev_frame_always): ... this, and make extern. Adjust.
7604 (skip_artificial_frames): Use get_prev_frame_always.
7605 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7606 (get_frame_unwind_stop_reason): Adjust to rename.
7607 * frame.h (get_prev_frame_always): Declare.
7608 * inline-frame.c: Include frame.h.
7609 (inline_frame_this_id): Use get_prev_frame_always.
7611 2014-04-18 Tristan Gingold <gingold@adacore.com>
7613 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7614 code by using bfd_mach_o_get_base_address.
7616 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7618 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7619 (spu_ax_pseudo_register_collect): New function.
7620 (spu_ax_pseudo_register_push_stack): Likewise.
7621 (spu_dwarf_reg_to_regnum): Likewise.
7622 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7624 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7626 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7627 Replace FRAME argument with FRAME_ID.
7628 * gdbarch.c, gdbarch.h: Regenerate.
7629 * findvar.c (default_value_from_register): Add GDBARCH argument;
7630 replace FRAME by FRAME_ID. No longer call get_frame_id.
7631 (value_from_register): Update call to gdbarch_value_from_register.
7632 * value.h (default_value_from_register): Update prototype.
7633 * s390-linux-tdep.c (s390_value_from_register): Update interface
7634 and call to default_value_from_register.
7635 * spu-tdep.c (spu_value_from_register): Likewise.
7637 * findvar.c (address_from_register): Remove TYPE argument.
7638 Do not call value_from_register; use gdbarch_value_from_register
7639 with null_frame_id instead.
7640 * value.h (address_from_register): Update prototype.
7641 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7642 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7643 address_from_register interface change.
7645 2014-04-17 Yao Qi <yao@codesourcery.com>
7647 * gdbtypes.h: Update comments to link to types and macros'
7650 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7652 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7654 2014-04-16 Keith Seitz <keiths@redhat.com>
7657 * dwarf2read.c (skip_one_die): Check that all relative-offset
7658 sibling DIEs fall within range of the current reader's buffer.
7659 (read_partial_die): Likewise.
7661 2014-04-16 Keith Seitz <keiths@redhat.com>
7664 * cp-namespace.c (lookup_symbol_file): If the type name of
7665 `this' is NULL, return immediately.
7667 2014-04-14 Keith Seitz <keiths@redhat.com>
7670 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7671 from symbol_matches_domain in symtab.c. All local callers
7672 of symbol_matches_domain updated.
7673 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7674 search STRUCT_DOMAIN.
7675 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7676 independently. standard_lookup will do that automatically.
7677 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7678 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7679 (cp_lookup_symbol_in_namespace): Likewise.
7680 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7681 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7682 may return a STRUCT_DOMAIN match.
7683 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7684 * cp-support.c: Include language.h.
7685 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7687 * psymtab.c (match_partial_symbol): Compare the requested
7688 domain with the symbol's domain directly.
7689 (lookup_partial_symbol): Likewise.
7690 * symtab.c (lookup_symbol_in_language): Explain when/why
7691 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7692 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7693 appropriate languages.
7694 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7695 and moved to ada-lang.c
7696 (lookup_block_symbol): Explain that this function only returns
7697 symbol matching the requested DOMAIN.
7698 Compare the requested domain with the symbol's domain directly.
7699 (iterate_over_symbols): Compare the requested domain with the
7700 symbol's domain directly.
7701 * symtab.h (symbol_matches_domain): Remove.
7703 2014-04-14 Tom Tromey <tromey@redhat.com>
7706 * c-exp.y (type_aggregate_p): New function.
7707 (qualified_name, classify_inner_name): Use it.
7708 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7709 and TYPE_TARGET_TYPE of an enum type.
7710 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7712 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7713 handle TYPE_DECLARED_CLASS.
7714 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7716 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7717 * valops.c (enum_constant_from_type): New function.
7718 (value_aggregate_elt): Use it.
7719 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7722 2014-04-14 Tom Tromey <tromey@redhat.com>
7724 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7725 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7727 * value.h (value_aggregate_elt): Update.
7729 2014-04-14 Tom Tromey <tromey@redhat.com>
7731 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7733 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7735 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7736 (evaluate_subexp_standard): Pass noside argument.
7737 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7738 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7739 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7740 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7741 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7743 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7745 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7746 points to a constant blob.
7748 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7750 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7751 property and store it as the high bound and flag the range accordingly.
7752 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7753 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7754 * gdbtypes.h (enum range_flags): New enum.
7755 (struct range_bounds): Add flags member.
7757 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7759 * c-typeprint.c (c_type_print_varspec_suffix): Added
7760 check for not yet resolved high bound. If unresolved, print
7761 "variable length" string to the console instead of random
7764 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7766 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7768 (ada_template_to_fixed_record_type_1): Likewise.
7769 (ada_to_fixed_type_1): Likewise.
7770 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7771 (cp_print_value): Likewise.
7772 * d-valprint.c (dynamic_array_type): Likewise.
7773 * findvar.c (address_of_variable): Likewise.
7774 * jv-valprint.c (java_value_print): Likewise.
7775 * valops.c (value_ind): Likewise.
7776 * value.c (coerce_ref): Likewise.
7778 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7780 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7781 value and retrieve the dynamic type size.
7783 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7785 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7786 passed to sizeof is dynamic evaluate the argument to compute the length.
7788 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7789 Joel Brobecker <brobecker@adacore.com>
7791 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7792 (dwarf2_evaluate_property): New function.
7793 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7794 * dwarf2read.c (attr_to_dynamic_prop): New function.
7795 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7797 * gdbtypes.c: Include dwarf2loc.h.
7798 (is_dynamic_type): New function.
7799 (resolve_dynamic_type): New function.
7800 (resolve_dynamic_bounds): New function.
7801 (get_type_length): New function.
7802 (check_typedef): Use get_type_length to compute type length.
7803 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7804 (TYPE_LOW_BOUND_KIND): New macro.
7805 (is_dynamic_type): New function prototype.
7806 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7807 to resolve dynamic properties of the type. Update comment.
7808 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7810 2014-04-14 Richard Henderson <rth@redhat.com>
7812 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7814 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7815 Doug Evans <xdje42@gmail.com>
7817 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7818 dereference TYPE_CODE_REF values.
7820 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7822 Revert the following changes due to regressions:
7824 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7825 (dwarf2_evaluate_property): New function.
7826 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7827 * dwarf2read.c (attr_to_dynamic_prop): New function.
7828 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7830 * gdbtypes.c: Include dwarf2loc.h.
7831 (is_dynamic_type): New function.
7832 (resolve_dynamic_type): New function.
7833 (resolve_dynamic_bounds): New function.
7834 (get_type_length): New function.
7835 (check_typedef): Use get_type_length to compute type length.
7836 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7837 (TYPE_LOW_BOUND_KIND): New macro.
7838 (is_dynamic_type): New function prototype.
7839 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7840 to resolve dynamic properties of the type. Update comment.
7841 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7843 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7844 passed to sizeof is dynamic evaluate the argument to compute the length.
7846 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7847 value and retrieve the dynamic type size.
7849 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7850 (ada_template_to_fixed_record_type_1): Likewise.
7851 (ada_to_fixed_type_1): Likewise.
7852 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7853 (cp_print_value): Likewise.
7854 * d-valprint.c (dynamic_array_type): Likewise.
7855 * eval.c (evaluate_subexp_with_coercion): Likewise.
7856 * findvar.c (address_of_variable): Likewise.
7857 * jv-valprint.c (java_value_print): Likewise.
7858 * valops.c (value_ind): Likewise.
7859 * value.c (coerce_ref): Likewise.
7861 * c-typeprint.c (c_type_print_varspec_suffix): Added
7862 check for not yet resolved high bound. If unresolved, print
7863 "variable length" string to the console instead of random
7866 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7867 property and store it as the high bound and flag the range accordingly.
7868 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7869 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7870 * gdbtypes.h (enum range_flags): New enum.
7871 (struct range_bounds): Add flags member.
7873 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7874 points to a constant blob.
7876 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7877 (evaluate_subexp_standard): Pass noside argument.
7878 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7879 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7880 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7881 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7882 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7884 2014-04-11 Keith Seitz <keiths@redhat.com>
7887 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7888 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7891 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7893 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7894 (evaluate_subexp_standard): Pass noside argument.
7895 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7896 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7897 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7898 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7899 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7901 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7903 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7904 points to a constant blob.
7906 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7908 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7909 property and store it as the high bound and flag the range accordingly.
7910 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7911 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7912 * gdbtypes.h (enum range_flags): New enum.
7913 (struct range_bounds): Add flags member.
7915 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7917 * c-typeprint.c (c_type_print_varspec_suffix): Added
7918 check for not yet resolved high bound. If unresolved, print
7919 "variable length" string to the console instead of random
7922 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7924 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7925 (ada_template_to_fixed_record_type_1): Likewise.
7926 (ada_to_fixed_type_1): Likewise.
7927 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7928 (cp_print_value): Likewise.
7929 * d-valprint.c (dynamic_array_type): Likewise.
7930 * eval.c (evaluate_subexp_with_coercion): Likewise.
7931 * findvar.c (address_of_variable): Likewise.
7932 * jv-valprint.c (java_value_print): Likewise.
7933 * valops.c (value_ind): Likewise.
7934 * value.c (coerce_ref): Likewise.
7936 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7938 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7939 value and retrieve the dynamic type size.
7941 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7943 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7944 passed to sizeof is dynamic evaluate the argument to compute the length.
7946 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7948 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7949 (dwarf2_evaluate_property): New function.
7950 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7951 * dwarf2read.c (attr_to_dynamic_prop): New function.
7952 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7954 * gdbtypes.c: Include dwarf2loc.h.
7955 (is_dynamic_type): New function.
7956 (resolve_dynamic_type): New function.
7957 (resolve_dynamic_bounds): New function.
7958 (get_type_length): New function.
7959 (check_typedef): Use get_type_length to compute type length.
7960 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7961 (TYPE_LOW_BOUND_KIND): New macro.
7962 (is_dynamic_type): New function prototype.
7963 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7964 to resolve dynamic properties of the type. Update comment.
7965 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7967 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7969 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7970 declaring high/low bounds and change uses accordingly. Call
7971 create_range_type instead of create_static_range_type.
7972 * gdbtypes.c (create_range_type): New function.
7973 (create_range_type): Convert bounds into struct bound_prop and pass
7974 them to create_range_type.
7975 * gdbtypes.h (struct bound_prop): New struct.
7976 (create_range_type): New function prototype.
7977 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7978 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7979 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7981 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7983 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7985 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7986 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7987 * ada-lang.c: All uses of create_range_type updated.
7988 * coffread.c: All uses of create_range_type updated.
7989 * dwarf2read.c: All uses of create_range_type updated.
7990 * f-exp.y: All uses of create_range_type updated.
7991 * m2-valprint.c: All uses of create_range_type updated.
7992 * mdebugread.c: All uses of create_range_type updated.
7993 * stabsread.c: All uses of create_range_type updated.
7994 * valops.c: All uses of create_range_type updated.
7995 * valprint.c: All uses of create_range_type updated.
7997 2014-04-10 Pedro Alves <palves@redhat.com>
7999 * breakpoint.c (single_step_breakpoints)
8000 (single_step_gdbarch): Move up in the file.
8001 (one_breakpoint_xfer_memory): New function, factored out from ...
8002 (breakpoint_xfer_memory): ... here. Also process single-step
8005 2014-04-09 Tristan Gingold <gingold@adacore.com>
8007 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8009 (darwin_decode_exception_message): Free port only after use.
8011 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8013 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8014 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8015 when setting the size of call_length.
8017 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8019 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8020 dereference TYPE_CODE_REF values.
8022 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8024 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8025 end of warning message.
8027 2014-04-03 Doug Evans <dje@google.com>
8029 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8030 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8032 2014-04-02 Alan Modra <amodra@gmail.com>
8034 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8035 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8036 (struct symbol_file_add_from_memory_args): Add size field.
8037 (find_vdso_size): New function.
8038 (add_vsyscall_page): Attempt to find vdso size.
8040 2014-04-01 Doug Evans <dje@google.com>
8042 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8044 2014-04-01 Tristan Gingold <gingold@adacore.com>
8046 * darwin-nat.c (darwin_encode_reply): Add prototype.
8047 (darwin_decode_exception_message): Reply to unknown inferiors.
8048 (darwin_decode_message): Handle message by id. Ignore message
8049 to unknown inferior.
8050 (darwin_wait): Discard unknown messages, add debug trace.
8052 2014-03-31 Doug Evans <dje@google.com>
8054 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8057 2014-03-31 Doug Evans <dje@google.com>
8059 New option "set print symbol-loading".
8061 * solib.c (solib_read_symbols): Only print symbol loading messages
8063 (solib_add): If symbol loading is in "brief" mode, notify user
8064 symbols are being loaded.
8065 (reload_shared_libraries_1): Ditto.
8066 * symfile.c (print_symbol_loading_off): New static global.
8067 (print_symbol_loading_brief): New static global.
8068 (print_symbol_loading_full): New static global.
8069 (print_symbol_loading_enums): New static global.
8070 (print_symbol_loading): New static global.
8071 (print_symbol_loading_p): New function.
8072 (symbol_file_add_with_addrs): Only print symbol loading messages
8074 (_initialize_symfile): Register "print symbol-loading" set/show
8076 * symfile.h (print_symbol_loading_p): Declare.
8078 2014-03-30 Doug Evans <xdje42@gmail.com>
8080 * infrun.c (set_last_target_status): New function.
8081 (handle_inferior_event): Call it.
8083 2014-03-30 Doug Evans <xdje42@gmail.com>
8085 * inferior.h (enum stop_kind): Improve comment.
8087 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8089 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8090 a reference, strip the reference layer before calling
8091 the lang_ops value_has_mutated callback.
8093 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8095 Remove some globals from our parser.
8096 * language.c (unk_lang_parser): Add "struct parser_state"
8098 * language.h (struct language_defn) <la_parser>: Likewise.
8099 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8100 (initialize_expout): Add "struct parser_state" argument.
8101 Rewrite function to use the parser state.
8102 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8103 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8104 write_exp_elt_longcst, write_exp_elt_dblcst,
8105 write_exp_elt_decfloatcst, write_exp_elt_type,
8106 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8107 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8108 write_dollar_variable): Likewise.
8109 (parse_exp_in_context_1): Use parser state.
8110 (insert_type_address_space): Add "struct parser_state" argument.
8112 (increase_expout_size): New function.
8113 * parser-defs.h: Forward declare "struct language_defn" and
8114 "struct parser_state".
8115 (expout, expout_size, expout_ptr): Remove extern declarations.
8116 (parse_gdbarch, parse_language): Rewrite macro declarations to
8117 accept the parser state.
8118 (struct parser_state): New struct.
8119 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8120 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8121 write_exp_elt_decfloatcst, write_exp_elt_type,
8122 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8123 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8124 write_exp_msymbol, write_dollar_variable,
8125 mark_struct_expression, insert_type_address_space): Add "struct
8126 parser_state" argument.
8127 (increase_expout_size): New function.
8128 * utils.c (do_clear_parser_state): New function.
8129 (make_cleanup_clear_parser_state): Likewise.
8130 * utils.h (make_cleanup_clear_parser_state): New function
8132 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8133 Update calls to write_exp* in order to pass the parser state.
8134 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8135 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8136 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8137 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8138 * stap-probe.c (stap_parse_register_operand): Likewise.
8139 (stap_parse_single_operand): Likewise.
8140 (stap_parse_argument_1): Likewise.
8141 (stap_parse_argument): Use parser state.
8142 * stap-probe.h: Include "parser-defs.h".
8143 (struct stap_parse_info) <pstate>: New field.
8144 * c-exp.y (parse_type): Rewrite to use parser state.
8145 (yyparse): Redefine to c_parse_internal.
8146 (pstate): New global variable.
8147 (parse_number): Add "struct parser_state" argument.
8148 (write_destructor_name): Likewise.
8149 (type_exp): Update calls to write_exp* and similars in order to
8151 (exp1, exp, variable, qualified_name, space_identifier,
8152 typename, typebase): Likewise.
8153 (write_destructor_name, parse_number, lex_one_token,
8154 classify_name, classify_inner_name, c_parse): Add "struct
8155 parser_state" argument. Update function to use parser state.
8156 * c-lang.h: Forward declare "struct parser_state".
8157 (c_parse): Add "struct parser_state" argument.
8158 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8159 (yyparse): Redefine macro to ada_parse_internal.
8160 (pstate): New variable.
8161 (write_int, write_object_renaming, write_var_or_type,
8162 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8163 type_int, type_long, type_long_long, type_float, type_double,
8164 type_long_double, type_char, type_boolean, type_system_address):
8165 Add "struct parser_state" argument.
8166 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8167 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8168 var_or_type, aggregate, aggregate_component_list,
8169 positional_list, others, component_group,
8170 component_associations): Update calls to write_exp* and similar
8171 functions in order to use parser state.
8172 (ada_parse, write_var_from_sym, write_int,
8173 write_exp_op_with_string, write_object_renaming,
8174 find_primitive_type, write_selectors, write_ambiguous_var,
8175 write_var_or_type, write_name_assoc, type_int, type_long,
8176 type_long_long, type_float, type_double, type_long_double,
8177 type_char, type_boolean, type_system_address): Add "struct
8178 parser_state" argument. Adjust function to use parser state.
8179 * ada-lang.c (parse): Likewise.
8180 * ada-lang.h: Forward declare "struct parser_state".
8181 (ada_parse): Add "struct parser_state" argument.
8182 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8183 calls to both functions.
8184 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8186 (yyparse): Redefine macro to f_parse_internal.
8187 (pstate): New variable.
8188 (parse_number): Add "struct parser_state" argument.
8189 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8190 and similars in order to use parser state.
8191 (parse_number): Adjust code to use parser state.
8193 (f_parse): New function.
8194 * f-lang.h: Forward declare "struct parser_state".
8195 (f_parse): Add "struct parser_state" argument.
8196 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8198 (yyparse): Redefine macro for java_parse_internal.
8199 (pstate): New variable.
8200 (push_expression_name, push_expression_name, insert_exp): Add
8201 "struct parser_state" argument.
8202 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8203 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8204 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8205 PostIncrementExpression, PostDecrementExpression,
8206 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8207 UnaryExpressionNotPlusMinus, CastExpression,
8208 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8209 RelationalExpression, EqualityExpression, AndExpression,
8210 ExclusiveOrExpression, InclusiveOrExpression,
8211 ConditionalAndExpression, ConditionalOrExpression,
8212 ConditionalExpression, Assignment, LeftHandSide): Update
8213 calls to write_exp* and similars in order to use parser state.
8214 (parse_number): Ajust code to use parser state.
8216 (java_parse): New function.
8217 (push_variable): Add "struct parser_state" argument. Adjust
8218 code to user parser state.
8219 (push_fieldnames, push_qualified_expression_name,
8220 push_expression_name, insert_exp): Likewise.
8221 * jv-lang.h: Forward declare "struct parser_state".
8222 (java_parse): Add "struct parser_state" argument.
8223 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8225 (yyparse): Redefine macro to m2_parse_internal.
8226 (pstate): New variable.
8227 (type_exp, exp, fblock, variable, type): Update calls to
8228 write_exp* and similars to use parser state.
8230 (m2_parse): New function.
8231 * m2-lang.h: Forward declare "struct parser_state".
8232 (m2_parse): Add "struct parser_state" argument.
8233 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8234 * objc-lang.h: Forward declare "struct parser_state".
8235 (end_msglist): Add "struct parser_state" argument.
8236 * p-exp.y (parse_type): Rewrite macro to use parser state.
8237 (yyparse): Redefine macro to pascal_parse_internal.
8238 (pstate): New variable.
8239 (parse_number): Add "struct parser_state" argument.
8240 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8241 write_exp* and similars in order to use parser state.
8242 (parse_number, yylex): Adjust code to use parser state.
8243 (pascal_parse): New function.
8244 * p-lang.h: Forward declare "struct parser_state".
8245 (pascal_parse): Add "struct parser_state" argument.
8246 * go-exp.y (parse_type): Rewrite macro to use parser state.
8247 (yyparse): Redefine macro to go_parse_internal.
8248 (pstate): New variable.
8249 (parse_number): Add "struct parser_state" argument.
8250 (type_exp, exp1, exp, variable, type): Update calls to
8251 write_exp* and similars in order to use parser state.
8252 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8253 to use parser state.
8254 (go_parse): Likewise.
8255 * go-lang.h: Forward declare "struct parser_state".
8256 (go_parse): Add "struct parser_state" argument.
8258 2014-03-27 Doug Evans <dje@google.com>
8260 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8262 2014-03-27 Doug Evans <dje@google.com>
8264 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8265 Remove argument abbrev_section. All callers updated.
8267 2014-03-27 Doug Evans <dje@google.com>
8269 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8270 addr_base, ranges_base.
8272 2014-03-26 Keith Seitz <keiths@redhat.com>
8274 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8275 types, not VAR_DOMAIN.
8277 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8279 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8281 * features/nios2-linux.c: Regenerated.
8282 * features/nios2.c: Regenerated.
8284 2014-03-25 Pedro Alves <palves@redhat.com>
8286 * cli/cli-script.c (script_from_file): Force the interpreter to
8289 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8291 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8292 small stack allocation.
8294 2014-03-24 Tristan Gingold <gingold@adacore.com>
8296 * darwin-nat.c (exc_server): Remove unused prototype.
8297 (darwin_dump_message): Correctly display data on x86_64.
8298 (darwin_encode_reply): Fix style.
8299 Add comments and fix indentation.
8301 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8303 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8305 2014-03-22 Doug Evans <xdje42@gmail.com>
8307 * infcmd.c: Whitespace fixes.
8308 (interrupt_command): Merge two function comments into one.
8310 2014-03-22 Doug Evans <xdje42@gmail.com>
8312 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8315 2014-03-22 Yao Qi <yao@codesourcery.com>
8317 * remote.c (target_read_live_memory): Remove.
8318 (memory_xfer_live_readonly_partial): Rename it to
8319 remote_xfer_live_readonly_partial. Remove argument 'object'.
8320 All callers updated. Call remote_read_bytes_1
8321 instead of target_read_live_memory.
8322 * tracepoint.c (set_traceframe_number): Remove.
8323 (make_cleanup_restore_traceframe_number): Likewise .
8324 * tracepoint.h (set_traceframe_number): Remove declaration.
8325 (make_cleanup_restore_traceframe_number): Likewise.
8327 2014-03-22 Yao Qi <yao@codesourcery.com>
8329 * remote.c (remote_read_bytes): Move code on reading from the
8331 (remote_read_bytes_1): ... here. New function.
8333 2014-03-22 Yao Qi <yao@codesourcery.com>
8335 * ctf.c (ctf_xfer_partial): Check the return value of
8336 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8337 return TARGET_XFER_UNAVAILABLE.
8338 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8339 * target.c (target_read_live_memory): Move it to remote.c.
8340 (memory_xfer_live_readonly_partial): Likewise.
8341 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8342 * remote.c (target_read_live_memory): Moved from target.c.
8343 (memory_xfer_live_readonly_partial): Likewise.
8344 (remote_read_bytes): Factored out from
8345 memory_xfer_partial_1.
8347 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8349 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8352 2014-03-21 Pedro Alves <palves@redhat.com>
8354 * infrun.c (normal_stop): Extend comment.
8356 2014-03-21 Hui Zhu <hui@codesourcery.com>
8357 Pedro Alves <palves@redhat.com>
8359 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8361 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8362 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8363 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8365 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8367 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8368 `z' formatted output modifier.
8370 2014-03-20 Tom Tromey <tromey@redhat.com>
8371 Sergio Durigan Junior <sergiodj@redhat.com>
8373 * probe.c (parse_probes): Turn assert into an ordinary error.
8374 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8375 exceptions when parsing probes. Rearrange the code for clarity.
8377 2014-03-20 Tom Tromey <tromey@redhat.com>
8380 * top.c (execute_command): Only dispatch events if the command
8383 2014-03-20 Tom Tromey <tromey@redhat.com>
8386 * infcall.c: Include event-top.h.
8387 (run_inferior_call): Call async_disable_stdin if needed.
8389 2014-03-20 Pedro Alves <palves@redhat.com>
8391 * infrun.c (prepare_to_proceed): Delete.
8392 (thread_still_needs_step_over): New function.
8393 (find_thread_needs_step_over): New function.
8394 (proceed): If the current thread needs a step-over, set its
8395 steping_over_breakpoint flag. Adjust to use
8396 find_thread_needs_step_over instead of prepare_to_proceed.
8397 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8398 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8400 (switch_back_to_stepped_thread): Step over breakpoints of all
8401 threads not the stepping thread, before switching back to the
8404 2014-03-20 Pedro Alves <palves@redhat.com>
8406 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8408 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8409 * infrun.c (saved_singlestep_ptid)
8410 (stepping_past_singlestep_breakpoint): Delete.
8411 (resume): Remove stepping_past_singlestep_breakpoint handling.
8412 (proceed): Store the prev_pc of the stepping thread too.
8413 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8415 (enum infwait_states): Delete infwait_thread_hop_state.
8416 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8418 (handle_inferior_event): Adjust.
8419 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8420 handling and the thread-hop code. Before removing single-step
8421 breakpoints, check whether the thread hit a single-step breakpoint
8422 of another thread. If it did, the trap is not a random signal.
8423 (switch_back_to_stepped_thread): If the event thread hit a
8424 single-step breakpoint, unblock it before switching to the
8425 stepping thread. Handle the case of the stepped thread having
8427 (keep_going): Handle the case of the current thread moving past a
8428 single-step breakpoint.
8430 2014-03-20 Pedro Alves <palves@redhat.com>
8433 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8434 are being stepped over.
8435 (breakpoint_address_match): Make extern.
8436 * breakpoint.h (breakpoint_address_match): New declaration.
8437 * inferior.h (stepping_past_instruction_at): New declaration.
8438 * infrun.c (struct step_over_info): New type.
8439 (step_over_info): New global.
8440 (set_step_over_info, clear_step_over_info)
8441 (stepping_past_instruction_at): New functions.
8442 (handle_inferior_event): Clear the step-over info when
8443 trap_expected is cleared.
8444 (resume): Remove now stale comment.
8445 (clear_proceed_status): Clear step-over info.
8446 (proceed): Adjust step-over handling to set or clear the step-over
8447 info instead of removing all breakpoints.
8448 (handle_signal_stop): When setting up a thread-hop, don't remove
8450 (stop_stepping): Clear step-over info.
8451 (keep_going): Adjust step-over handling to set or clear step-over
8452 info and then always inserting breakpoints, instead of removing
8453 all breakpoints when stepping over one.
8455 2014-03-20 Pedro Alves <palves@redhat.com>
8457 * infrun.c (previous_inferior_ptid): Adjust comment.
8458 (deferred_step_ptid): Delete.
8459 (infrun_thread_ptid_changed, prepare_to_proceed)
8460 (init_wait_for_inferior): Adjust.
8461 (handle_signal_stop): Delete deferred_step_ptid handling.
8463 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8466 * defs.h (sync_quit_force_run): New declaration.
8467 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8468 * event-top.c (async_sigterm_handler): New declaration.
8469 (async_sigterm_token): New variable.
8470 (async_init_signals): Create also async_sigterm_token.
8471 (async_sigterm_handler): New function.
8472 (sync_quit_force_run): New variable.
8473 (handle_sigterm): Replace quit_force call by other calls.
8474 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8476 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8478 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8479 offset into SPE pseudo registers.
8481 2014-03-18 Pedro Alves <palves@redhat.com>
8484 * inferior.h (print_stop_event): Declare.
8485 * infrun.c (print_stop_event): New, factored out from ...
8486 (normal_stop): ... this.
8487 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8488 of bpstat_print/print_stack_frame.
8490 2014-03-17 Tom Tromey <tromey@redhat.com>
8492 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8494 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8496 * ada-lang.c (decode_constrained_packed_array): Perform a
8497 minimal coercion for reference with coerce_ref instead of
8500 2014-03-17 Tristan Gingold <gingold@adacore.com>
8502 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8503 (darwin_solib_create_inferior_hook): Emit a warning if version
8506 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8508 * python/py-value.c (get_field_flag): Cast flag_name argument to
8509 PyObject_GetAttrString to support Python 2.4.
8511 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8513 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8514 (Global Maintainers): Remove Jan Kratochvil.
8516 2014-03-14 Pedro Alves <palves@redhat.com>
8518 * inferior.h (terminal_ours_for_output): Rename to ...
8519 (child_terminal_ours_for_output): ... this.
8520 (terminal_save_ours): Rename to ...
8521 (child_terminal_save_ours): ... this.
8522 (terminal_ours): Rename to ...
8523 (child_terminal_ours): ... this.
8524 (terminal_inferior): Rename to ...
8525 (child_terminal_inferior): ... this.
8526 (terminal_init_inferior): Rename to ...
8527 (child_terminal_init_inferior): ... this.
8528 (terminal_init_inferior_with_pgrp): Rename to ...
8529 (child_terminal_init_inferior_with_pgrp): ... this.
8530 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8531 (child_terminal_init_with_pgrp): ... this.
8532 (terminal_save_ours): Rename to ...
8533 (child_terminal_save_ours): ... this.
8534 (terminal_init_inferior): Rename to ...
8535 (child_terminal_init): ... this. Adjust.
8536 (terminal_inferior): Rename to ...
8537 (child_terminal_inferior): ... this.
8538 (terminal_ours_for_output): Rename to ...
8539 (child_terminal_ours_for_output): ... this. Adjust.
8540 (terminal_ours): Rename to ...
8541 (child_terminal_ours): ... this.
8542 (terminal_ours_1): Rename to ...
8543 (child_terminal_ours_1): ... this. Adjust.
8544 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8545 * windows-nat.c (do_initial_windows_stuff): Adjust.
8546 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8547 (gnu_terminal_init): ... this. Adjust.
8548 (gnu_target): Adjust.
8549 * inf-child.c (inf_child_target): Adjust.
8551 2014-03-13 Doug Evans <xdje42@gmail.com>
8554 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8557 2014-03-13 Doug Evans <xdje42@gmail.com>
8559 * value.c (record_latest_value): Call release_value_or_incref
8560 instead of release_value.
8562 2014-03-13 Pedro Alves <palves@redhat.com>
8564 * procfs.c (procfs_target): Don't override to_shortname,
8565 to_longname or to_doc.
8567 2014-03-13 Pedro Alves <palves@redhat.com>
8569 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8570 Unix in user visible strings.
8572 2014-03-12 Stan Shebs <stan@codesourcery.com>
8574 * gdbtypes.h: Annotate comments for Doxygen, add a page
8575 block comment with some general info.
8577 2014-03-12 Pedro Alves <palves@redhat.com>
8579 * infcmd.c (prepare_execution_command): New function, factored out
8580 from several execution commands.
8581 (run_command_1, continue_command, step_1, jump_command)
8582 (signal_command, until_command, advance_command, finish_command)
8583 (attach_command): Use prepare_execution_command.
8585 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8587 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8590 (struct arm_linux_thread_points): Removed.
8591 (struct arm_linux_process_info): New.
8592 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8593 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8594 (arm_linux_find_breakpoints_by_tid): Removed.
8595 (struct arch_lwp_info): New.
8596 (arm_linux_find_process_pid): New functions.
8597 (arm_linux_add_process): New functions.
8598 (arm_linux_process_info_get): New functions.
8599 (arm_linux_forget_process): New function.
8600 (arm_linux_get_debug_reg_state): New function.
8601 (struct update_registers_data): New.
8602 (update_registers_callback): New function.
8603 (arm_linux_insert_hw_breakpoint1): Updated.
8604 (arm_linux_remove_hw_breakpoint1): Updated.
8605 (arm_linux_insert_hw_breakpoint): Updated.
8606 (arm_linux_remove_hw_breakpoint): Updated.
8607 (arm_linux_insert_watchpoint): Updated.
8608 (arm_linux_remove_watchpoint): Updated.
8609 (arm_linux_new_thread): Updated.
8610 (arm_linux_prepare_to_resume): New function.
8611 (arm_linux_new_fork): New function.
8612 (_initialize_arm_linux_nat): Updated.
8614 2014-03-12 Pedro Alves <palves@redhat.com>
8616 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8618 2014-03-12 Tom Tromey <tromey@redhat.com>
8620 * inf-child.c (return_zero): New function.
8621 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8622 * aix-thread.c (aix_thread_inferior_created): New function.
8623 (aix_thread_attach): Remove.
8624 (init_aix_thread_ops): Don't set to_attach.
8625 (_initialize_aix_thread): Register inferior_created observer.
8626 * corelow.c (init_core_ops): Don't set to_attach or
8628 * exec.c (init_exec_ops): Don't set to_attach or
8630 * infcmd.c (run_command_1): Use find_run_target. Make direct
8632 (attach_command): Use find_attach_target. Make direct target
8634 * record-btrace.c (init_record_btrace_ops): Don't set
8636 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8638 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8639 set to_create_inferior.
8640 * target.c (complete_target_initialization): Add assertion.
8641 (target_create_inferior): Remove.
8642 (find_default_attach, find_default_create_inferior): Remove.
8643 (find_attach_target, find_run_target): New functions.
8644 (find_default_is_async_p, find_default_can_async_p)
8645 (target_supports_non_stop, target_attach): Remove.
8646 (init_dummy_target): Don't set to_create_inferior or
8647 to_supports_non_stop.
8648 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8649 TARGET_DEFAULT_FUNC.
8650 <to_create_inferior>: Add comment.
8651 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8652 TARGET_DEFAULT_RETURN.
8653 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8654 (find_attach_target, find_run_target): Declare.
8655 (target_create_inferior): Remove.
8656 (target_has_execution_1): Update comment.
8657 (target_supports_non_stop): Remove.
8658 * target-delegates.c: Rebuild.
8660 2014-03-12 Pedro Alves <palves@redhat.com>
8662 * inf-child.h: Update comment to not mention Unix.
8664 2014-03-12 Pedro Alves <palves@redhat.com>
8666 * inf-child.c: Update top comment to not mention Unix. Add
8667 generic comment describing how this target is meant to be used.
8668 (inf_child_post_attach, inf_child_post_startup_inferior)
8669 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8672 2014-03-12 Pedro Alves <palves@redhat.com>
8674 * nto-procfs.c: Include inf-child.h.
8675 (procfs_ops): Delete global.
8676 (procfs_can_run): Delete method.
8677 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8678 target pointer instead of referencing procfs_ops.
8679 (procfs_prepare_to_store): Delete.
8680 (init_procfs_ops): Delete function.
8681 (procfs_target): New function, based on init_procfs_ops, but
8682 inherit inf_child_target.
8683 (_initialize_procfs): Use procfs_target.
8685 2014-03-12 Pedro Alves <palves@redhat.com>
8687 * windows-nat.c: Include inf-child.h.
8688 (windows_ops): Delete global.
8689 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8691 (init_windows_ops): Delete function.
8692 (windows_target): New function, based on init_windows_ops, but
8693 inherit inf_child_target.
8694 (_initialize_windows_nat): Use windows_target. Install x86
8695 specific target methods here.
8697 2014-03-10 Doug Evans <xdje42@gmail.com>
8699 * guile/guile.c (call_initialize_gdb_module): New function.
8700 (initialize_guile): Replace call to scm_init_guile with call to
8703 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8705 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8706 in call to TYPE_CODE macro.
8708 2014-03-10 Jerome Guitton <guitton@adacore.com>
8710 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8711 Resolve tagged types to full view.
8713 2014-03-10 Hui Zhu <hui@codesourcery.com>
8715 * target.h (target_insert_breakpoint): Remove "hardware" from its
8718 2014-03-07 Doug Evans <dje@google.com>
8720 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8722 2014-03-07 Doug Evans <dje@google.com>
8724 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8725 Remove unused local comp_dir_attr. Assert exactly one of
8726 stub_comp_unit_die, stub_comp_dir is non-NULL.
8728 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8730 * target.h (complete_target_initialization, add_target):
8733 2014-03-07 Pedro Alves <palves@redhat.com>
8735 * go32-nat.c: Include inf-child.h.
8736 (go32_ops): Delete global.
8737 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8739 (go32_create_inferior): Push the passed in target pointer instead
8740 of referencing go32_ops.
8741 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8742 (go32_target): New function, based on init_go32_ops, but inherit
8744 (_initialize_go32_nat): Use go32_target. Move parts of
8747 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8749 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8750 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8751 SYMBOL_VALUE_ADDRESS.
8752 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8754 2014-03-06 Yao Qi <yao@codesourcery.com>
8756 * breakpoint.c (get_tracepoint_by_number): Remove argument
8757 optional_p. All callers updated. Adjust comments. Update
8759 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8761 2014-03-06 Yao Qi <yao@codesourcery.com>
8763 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8764 early if get_number returns zero. Use 'p' instead of 'args'.
8766 2014-03-06 Yao Qi <yao@codesourcery.com>
8768 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8771 2014-03-06 Yao Qi <yao@codesourcery.com>
8773 PR breakpoints/16508
8774 * tracepoint.c (check_trace_running): New function.
8775 (trace_find_command): Move code to check_trace_running and
8776 call check_trace_running.
8777 (trace_find_pc_command): Likewise.
8778 (trace_find_tracepoint_command): Likewise.
8779 (trace_find_line_command): Likewise.
8780 (trace_find_range_command): Likewise.
8781 * tracepoint.h (check_trace_running): Likewise.
8782 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8784 2014-03-06 Yao Qi <yao@codesourcery.com>
8786 * target.h (struct target_ops) <to_traceframe_info>: Use
8787 TARGET_DEFAULT_NORETURN (tcomplain ()).
8788 * target-delegates.c: Regenerated.
8790 2014-03-05 Pedro Alves <palves@redhat.com>
8793 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8794 void. Update comment.
8795 (dcache_xfer_memory): Delete.
8796 (dcache_read_memory_partial): New, based on the read bits of
8798 (dcache_update): Add status parameter. Use ULONGEST for len, and
8799 adjust. Discard cache lines if the reason for the update was
8801 * dcache.h (dcache_xfer_memory): Delete declaration.
8802 (dcache_read_memory_partial): New declaration.
8803 (dcache_update): Update prototype.
8804 * target.c (raw_memory_xfer_partial): Update the dcache here.
8805 (memory_xfer_partial_1): Don't handle dcache writes here.
8807 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8809 * remote-sim.c (gdbsim_load): Add const to prog.
8811 2014-03-03 Tom Tromey <tromey@redhat.com>
8813 * elfread.c (probe_key): Change to bfd_data.
8814 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8815 now per-BFD, not per-objfile.
8816 * stap-probe.c (stap_probe_destroy): Update comment.
8817 (handle_stap_probe): Allocate on the per-BFD obstack.
8819 2014-03-03 Tom Tromey <tromey@redhat.com>
8821 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8822 * breakpoint.c (create_longjmp_master_breakpoint): Use
8824 (add_location_to_breakpoint, bkpt_probe_insert_location)
8825 (bkpt_probe_remove_location): Update.
8826 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8827 * elfread.c (elf_symfile_relocate_probe): Remove.
8828 (elf_probe_fns): Update.
8829 (insert_exception_resume_breakpoint): Change type of "probe"
8830 parameter to bound_probe.
8831 (check_exception_resume): Update.
8832 * objfiles.c (objfile_relocate1): Don't relocate probes.
8833 * probe.c (bound_probe_s): New typedef.
8834 (parse_probes): Use get_probe_address. Set sal's objfile.
8835 (find_probe_by_pc): Return a bound_probe.
8836 (collect_probes): Return a VEC(bound_probe_s).
8837 (compare_probes): Update.
8838 (gen_ui_out_table_header_info): Change type of "probes"
8840 (info_probes_for_ops): Update.
8841 (get_probe_address): New function.
8842 (probe_safe_evaluate_at_pc): Update.
8843 * probe.h (struct probe_ops) <get_probe_address>: New field.
8844 <set_semaphore, clear_semaphore>: Add objfile parameter.
8845 (struct probe) <objfile>: Remove field.
8847 <address>: Update comment.
8848 (struct bound_probe): New.
8849 (find_probe_by_pc): Return a bound_probe.
8850 (get_probe_address): Declare.
8851 * solib-svr4.c (struct probe_and_action) <address>: New field.
8852 (hash_probe_and_action, equal_probe_and_action): Update.
8853 (register_solib_event_probe): Add address parameter.
8854 (solib_event_probe_at): Update.
8855 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8857 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8858 (stap_get_probe_address): New function.
8859 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8860 (compile_probe_arg): Update.
8861 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8863 (handle_stap_probe): Don't relocate the probe.
8864 (stap_relocate): Remove.
8865 (stap_gen_info_probes_table_values): Update.
8866 (stap_probe_ops): Remove stap_relocate.
8867 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8868 (debug_sym_probe_fns): Update.
8869 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8870 * symtab.c (init_sal): Use memset.
8871 * symtab.h (struct symtab_and_line) <objfile>: New field.
8872 * tracepoint.c (start_tracing, stop_tracing): Update.
8874 2014-03-03 Tom Tromey <tromey@redhat.com>
8876 * probe.h (parse_probes, find_probe_by_pc)
8877 (find_probes_in_objfile): Fix comments.
8879 2014-03-02 Doug Evans <xdje42@gmail.com>
8881 * infrun.c (handle_signal_stop): Replace test for
8882 TARGET_WAITKIND_STOPPED with an assert.
8884 2014-03-02 Doug Evans <xdje42@gmail.com>
8886 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8888 2014-03-02 Doug Evans <xdje42@gmail.com>
8890 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8892 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8894 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8896 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8898 * i386obsd-nat.c: Include "obsd-nat.h".
8899 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8901 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8903 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8905 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8907 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8909 * mips64obsd-nat.c: Include "obsd-nath".
8910 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8912 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8914 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8916 * amd64obsd-nat.c: Include "obsd-nat,h.
8917 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8919 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8921 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8923 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8924 (find_overload_match): Update call to find_oload_champ.
8925 (find_oload_champ_namespace_loop): Likewise
8927 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8929 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8931 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8932 * config/sparc/obsd64.mh: New file.
8933 * sparc64obsd-nat.c: New file.
8935 * obsd-nat.h: New file.
8936 * obsd-nat.c: New file.
8937 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8938 (ALLDEPFILES): Add obsd-nat.c.
8940 2014-02-28 Tom Tromey <tromey@redhat.com>
8942 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8943 * cli-out.h (cli_ui_out_impl): Now const.
8944 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8945 * ui-out.c (struct ui_out) <impl>: Now const.
8946 (default_ui_out_impl): Now const.
8947 (ui_out_new): Make 'impl' parameter const.
8948 * ui-out.h (ui_out_new): Update.
8950 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8952 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8954 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8956 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8958 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8960 Additional PR 8882 fix.
8961 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8963 2014-02-27 Pedro Alves <palves@redhat.com>
8965 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8968 2014-02-27 Pedro Alves <palves@redhat.com>
8971 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8972 * nat/linux-waitpid.c: Include string.h.
8973 (status_to_str): Moved here and made extern.
8974 * nat/linux-waitpid.h (status_to_str): New declaration.
8976 2014-02-27 Hui Zhu <hui@codesourcery.com>
8979 * infrun.c (ptid_match): Move ...
8980 * common/ptid.c (ptid_match): ... here.
8981 * inferior.h (ptid_match): Move ...
8982 * common/ptid.h (ptid_match): ... here.
8984 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8986 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8987 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8990 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8992 * obsd-tdep.c (obsd_auxv_parse): New function.
8993 (obsd_init_abi): Set auxv_parse.
8995 * gdbarch.sh (auxv_parse): New.
8996 * gdbarch.h: Regenerated.
8997 * gdbarch.c: Regenerated.
8998 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9000 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9002 * guile/scm-value.c (gdbscm_history_append_x): New function.
9003 (value_functions): Add it.
9005 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9007 * dwarf2read.c (attr_value_as_address): New function.
9008 (dwarf2_find_base_address, read_call_site_scope): Use
9009 attr_value_as_address in place of DW_ADDR.
9010 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9011 the low and high addresses. Slight rework of the handling
9012 of the high pc being a constant form, and limit it to
9013 DWARF verson 4 or higher.
9014 (dwarf2_record_block_ranges): Likewise.
9015 (read_partial_die): Likewise.
9016 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9018 2014-02-26 Tom Tromey <tromey@redhat.com>
9020 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9022 2014-02-26 Tom Tromey <tromey@redhat.com>
9024 * elfread.c (elf_read_minimal_symbols): Return early if
9025 minimal symbols have already been read. Add "ei" parameter.
9026 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9027 * minsyms.c (prim_record_minimal_symbol_full): Update.
9028 * objfiles.h (struct objstats) <n_minsyms>: Move...
9029 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9030 * symmisc.c (print_objfile_statistics): Update.
9032 2014-02-26 Tom Tromey <tromey@redhat.com>
9034 * elfread.c (elf_read_minimal_symbols): New function, from
9036 (elf_symfile_read): Call it.
9038 2014-02-26 Tom Tromey <tromey@redhat.com>
9040 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9041 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9042 (lookup_minimal_symbol_solib_trampoline)
9043 (lookup_minimal_symbol_by_pc_section_1)
9044 (lookup_minimal_symbol_and_objfile): Update.
9045 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9046 Don't allocate a minimal symbol if minsyms have already been read.
9047 (build_minimal_symbol_hash_tables): Update.
9048 (install_minimal_symbols): Do nothing if minsyms already read.
9049 Use the per-BFD obstack.
9050 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9051 * objfiles.c (allocate_objfile): Call
9052 terminate_minimal_symbol_table later.
9053 (have_minimal_symbols): Update.
9054 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9055 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9056 Move from struct objfile.
9057 <minsyms_read>: New field.
9058 (struct objfile) <msymbols, minimal_symbol_count,
9059 msymbol_hash, msymbol_demangled_hash>: Move.
9060 (ALL_OBJFILE_MSYMBOLS): Update.
9061 * symfile.c (read_symbols): Set minsyms_read.
9062 (reread_symbols): Update.
9063 * symmisc.c (dump_objfile, dump_msymbols): Update.
9065 2014-02-26 Tom Tromey <tromey@redhat.com>
9067 * minsyms.c (msymbols_sort): Remove.
9068 * minsyms.h (msymbols_sort): Remove.
9069 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9070 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9071 * elfread.c (elf_symtab_read): Don't add section offsets.
9072 * xcoffread.c (record_minimal_symbol): Don't add section offset
9073 to minimal symbol address.
9074 * somread.c (text_offset, data_offset): Remove.
9075 (som_symtab_read): Don't add section offsets to minimal symbol
9077 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9078 Don't add section offsets to minimal symbols.
9079 * coffread.c (coff_symtab_read): Don't add section offsets
9080 to minimal symbol addresses.
9081 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9082 to minimal symbol addresses.
9083 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9084 section offset to minimal symbol addresses.
9085 * mdebugread.c (parse_partial_symbols): Don't add section
9086 offset to minimal symbol addresses.
9087 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9088 offset to minimal symbol addresses.
9090 2014-02-26 Tom Tromey <tromey@redhat.com>
9092 * ada-lang.c (ada_main_name): Update.
9093 (ada_add_standard_exceptions): Update.
9094 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9095 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9096 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9097 * auxv.c (ld_so_xfer_auxv): Update.
9098 * avr-tdep.c (avr_scan_prologue): Update.
9099 * ax-gdb.c (gen_var_ref): Update.
9100 * blockframe.c (get_pc_function_start)
9101 (find_pc_partial_function_gnu_ifunc): Update.
9102 * breakpoint.c (create_overlay_event_breakpoint)
9103 (create_longjmp_master_breakpoint)
9104 (create_std_terminate_master_breakpoint)
9105 (create_exception_master_breakpoint): Update.
9106 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9107 * c-valprint.c (c_val_print): Update.
9108 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9109 * common/agent.c (agent_look_up_symbols): Update.
9110 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9111 * dwarf2loc.c (call_site_to_target_addr): Update.
9112 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9113 * elfread.c (elf_gnu_ifunc_record_cache)
9114 (elf_gnu_ifunc_resolve_by_got): Update.
9115 * findvar.c (default_read_var_value): Update.
9116 * frame.c (inside_main_func): Update.
9117 * frv-tdep.c (frv_frame_this_id): Update.
9118 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9119 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9121 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9122 (hppa_hpux_find_dummy_bpaddr): Update.
9123 * hppa-tdep.c (hppa_symbol_address): Update.
9124 * infcmd.c (until_next_command): Update.
9125 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9127 * linespec.c (minsym_found, add_minsym): Update.
9128 * linux-nat.c (get_signo): Update.
9129 * linux-thread-db.c (inferior_has_bug): Update.
9130 * m32c-tdep.c (m32c_return_value)
9131 (m32c_m16c_address_to_pointer): Update.
9132 * m32r-tdep.c (m32r_frame_this_id): Update.
9133 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9134 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9135 * maint.c (maintenance_translate_address): Update.
9136 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9137 (frob_address): New function.
9138 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9139 frob_address. Rename parameter to "pc_in".
9140 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9142 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9144 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9145 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9146 * objc-lang.c (find_objc_msgsend): Update.
9147 * objfiles.c (objfile_relocate1): Update.
9148 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9149 * p-valprint.c (pascal_val_print): Update.
9150 * parse.c (write_exp_msymbol): Update.
9151 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9152 (ppc_elfv2_skip_entrypoint): Update.
9153 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9154 * printcmd.c (build_address_symbolic, msym_info)
9155 (address_info): Update.
9156 * proc-service.c (ps_pglobal_lookup): Update.
9157 * psymtab.c (find_pc_sect_psymtab_closer)
9158 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9159 Change msymbol parameter to bound_minimal_symbol.
9160 * ravenscar-thread.c (get_running_thread_id): Update.
9161 * remote.c (remote_check_symbols): Update.
9162 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9164 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9165 * solib-dsbt.c (lm_base): Update.
9166 * solib-frv.c (lm_base, main_got): Update.
9167 * solib-irix.c (locate_base): Update.
9168 * solib-som.c (som_solib_create_inferior_hook)
9169 (link_map_start): Update.
9170 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9171 * solib-svr4.c (elf_locate_base, enable_break): Update.
9172 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9173 (flush_ea_cache): Update.
9174 * stabsread.c (define_symbol, scan_file_globals): Update.
9175 * stack.c (find_frame_funname): Update.
9176 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9177 (debug_qf_find_pc_sect_symtab): Update.
9178 * symfile.c (simple_read_overlay_table)
9179 (simple_overlay_update): Update.
9180 * symfile.h (struct quick_symbol_functions)
9181 <find_pc_sect_symtab>: Change type of msymbol to
9182 bound_minimal_symbol.
9183 * symmisc.c (dump_msymbols): Update.
9184 * symtab.c (find_pc_sect_symtab_via_partial)
9185 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9186 (search_symbols, print_msymbol_info): Update.
9187 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9188 (MSYMBOL_VALUE_ADDRESS): Redefine.
9189 (BMSYMBOL_VALUE_ADDRESS): New macro.
9190 * tracepoint.c (scope_info): Update.
9191 * tui/tui-disasm.c (tui_find_disassembly_address)
9192 (tui_get_begin_asm_address): Update.
9193 * valops.c (find_function_in_inferior): Update.
9194 * value.c (value_static_field, value_fn_field): Update.
9196 2014-02-26 Tom Tromey <tromey@redhat.com>
9198 * ada-lang.c (ada_update_initial_language): Update.
9199 (ada_main_name, ada_has_this_exception_support): Update.
9200 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9201 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9202 * arm-tdep.c (arm_skip_stub): Update.
9203 * auxv.c (ld_so_xfer_auxv): Update.
9204 * avr-tdep.c (avr_scan_prologue): Update.
9205 * ax-gdb.c (gen_var_ref): Update.
9206 * breakpoint.c (struct breakpoint_objfile_data)
9207 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9208 type to bound_minimal_symbol.
9209 (create_overlay_event_breakpoint)
9210 (create_longjmp_master_breakpoint)
9211 (create_std_terminate_master_breakpoint)
9212 (create_exception_master_breakpoint): Update.
9213 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9214 * c-exp.y (classify_name): Update.
9215 * coffread.c (coff_symfile_read): Update.
9216 * common/agent.c (agent_look_up_symbols): Update.
9217 * d-lang.c (d_main_name): Update.
9218 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9219 * dec-thread.c (enable_dec_thread): Update.
9220 * dwarf2loc.c (call_site_to_target_addr): Update.
9221 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9222 * eval.c (evaluate_subexp_standard): Update.
9223 * findvar.c (struct minsym_lookup_data) <result>: Change type
9224 to bound_minimal_symbol.
9226 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9227 * frame.c (inside_main_func): Update.
9228 * frv-tdep.c (frv_frame_this_id): Update.
9229 * gcore.c (call_target_sbrk): Update.
9230 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9231 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9233 * go-lang.c (go_main_name): Update.
9234 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9235 (hppa_hpux_find_import_stub_for_addr): Update.
9236 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9237 Update. Change return type.
9238 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9240 * jit.c (jit_breakpoint_re_set_internal): Update.
9241 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9243 * linux-nat.c (get_signo): Update.
9244 * linux-thread-db.c (inferior_has_bug): Update
9245 * m32c-tdep.c (m32c_return_value)
9246 (m32c_m16c_address_to_pointer): Update.
9247 * m32r-tdep.c (m32r_frame_this_id): Update.
9248 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9249 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9250 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9251 lookup_minimal_symbol. Change return type.
9252 (lookup_minimal_symbol): Remove.
9253 (lookup_bound_minimal_symbol): Update.
9254 (lookup_minimal_symbol_text): Change return type.
9255 (lookup_minimal_symbol_solib_trampoline): Change return type.
9256 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9257 (lookup_minimal_symbol_solib_trampoline): Change return type.
9258 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9259 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9260 (value_nsstring, find_imps): Update.
9261 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9262 * p-lang.c (pascal_main_name): Update.
9263 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9264 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9265 * proc-service.c (ps_pglobal_lookup): Update.
9266 * ravenscar-thread.c (get_running_thread_msymbol): Change
9268 (has_ravenscar_runtime, get_running_thread_id): Update.
9269 * remote.c (remote_check_symbols): Update.
9270 * sol-thread.c (ps_pglobal_lookup): Update.
9271 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9272 * solib-dsbt.c (lm_base): Update.
9273 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9275 * solib-irix.c (locate_base): Update.
9276 * solib-som.c (som_solib_create_inferior_hook)
9277 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9279 * solib-spu.c (spu_enable_break): Update.
9280 * solib-svr4.c (elf_locate_base, enable_break): Update.
9281 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9282 (flush_ea_cache): Update.
9283 * stabsread.c (define_symbol): Update.
9284 * symfile.c (simple_read_overlay_table): Update.
9285 * symtab.c (find_pc_sect_line): Update.
9286 * tracepoint.c (scope_info): Update.
9287 * tui-disasm.c (tui_get_begin_asm_address): Update.
9288 * value.c (value_static_field): Update.
9290 2014-02-26 Tom Tromey <tromey@redhat.com>
9292 * minsyms.c (prim_record_minimal_symbol_full): Use
9293 SET_MSYMBOL_VALUE_ADDRESS.
9294 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9295 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9296 SET_MSYMBOL_VALUE_ADDRESS.
9297 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9298 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9300 2014-02-26 Tom Tromey <tromey@redhat.com>
9302 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9303 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9304 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9305 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9306 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9307 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9308 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9309 * ada-lang.c (ada_main_name): Update.
9310 (ada_lookup_simple_minsym): Update.
9311 (ada_make_symbol_completion_list): Update.
9312 (ada_add_standard_exceptions): Update.
9313 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9314 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9315 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9316 * arm-tdep.c (skip_prologue_function): Update.
9317 (arm_skip_stack_protector, arm_skip_stub): Update.
9318 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9319 (arm_wince_skip_main_prologue): Update.
9320 * auxv.c (ld_so_xfer_auxv): Update.
9321 * avr-tdep.c (avr_scan_prologue): Update.
9322 * ax-gdb.c (gen_var_ref): Update.
9323 * block.c (call_site_for_pc): Update.
9324 * blockframe.c (get_pc_function_start): Update.
9325 (find_pc_partial_function_gnu_ifunc): Update.
9326 * breakpoint.c (create_overlay_event_breakpoint): Update.
9327 (create_longjmp_master_breakpoint): Update.
9328 (create_std_terminate_master_breakpoint): Update.
9329 (create_exception_master_breakpoint): Update.
9330 (resolve_sal_pc): Update.
9331 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9332 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9334 * c-valprint.c (c_val_print): Update.
9335 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9336 * coffread.c (coff_symfile_read): Update.
9337 * common/agent.c (agent_look_up_symbols): Update.
9338 * dbxread.c (find_stab_function_addr): Update.
9339 (end_psymtab): Update.
9340 * dwarf2loc.c (call_site_to_target_addr): Update.
9341 (func_verify_no_selftailcall): Update.
9342 (tailcall_dump): Update.
9343 (call_site_find_chain_1): Update.
9344 (dwarf_expr_reg_to_entry_parameter): Update.
9345 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9346 (elf_gnu_ifunc_resolve_by_got): Update.
9347 * f-valprint.c (info_common_command): Update.
9348 * findvar.c (read_var_value): Update.
9349 * frame.c (get_prev_frame_1): Update.
9350 (inside_main_func): Update.
9351 * frv-tdep.c (frv_skip_main_prologue): Update.
9352 (frv_frame_this_id): Update.
9353 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9354 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9355 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9356 (gnuv3_skip_trampoline): Update.
9357 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9358 (hppa64_hpux_in_solib_call_trampoline): Update.
9359 (hppa_hpux_skip_trampoline_code): Update.
9360 (hppa64_hpux_search_dummy_call_sequence): Update.
9361 (hppa_hpux_find_import_stub_for_addr): Update.
9362 (hppa_hpux_find_dummy_bpaddr): Update.
9363 * hppa-tdep.c (hppa_symbol_address)
9364 (hppa_lookup_stub_minimal_symbol): Update.
9365 * i386-tdep.c (i386_skip_main_prologue): Update.
9366 (i386_pe_skip_trampoline_code): Update.
9367 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9368 * infcall.c (get_function_name): Update.
9369 * infcmd.c (until_next_command): Update.
9370 * jit.c (jit_breakpoint_re_set_internal): Update.
9371 (jit_inferior_init): Update.
9372 * linespec.c (minsym_found): Update.
9373 (add_minsym): Update.
9374 * linux-fork.c (info_checkpoints_command): Update.
9375 * linux-nat.c (get_signo): Update.
9376 * linux-thread-db.c (inferior_has_bug): Update.
9377 * m32c-tdep.c (m32c_return_value): Update.
9378 (m32c_m16c_address_to_pointer): Update.
9379 (m32c_m16c_pointer_to_address): Update.
9380 * m32r-tdep.c (m32r_frame_this_id): Update.
9381 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9382 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9383 * maint.c (maintenance_translate_address): Update.
9384 * minsyms.c (add_minsym_to_hash_table): Update.
9385 (add_minsym_to_demangled_hash_table): Update.
9386 (msymbol_objfile): Update.
9387 (lookup_minimal_symbol): Update.
9388 (iterate_over_minimal_symbols): Update.
9389 (lookup_minimal_symbol_text): Update.
9390 (lookup_minimal_symbol_by_pc_name): Update.
9391 (lookup_minimal_symbol_solib_trampoline): Update.
9392 (lookup_minimal_symbol_by_pc_section_1): Update.
9393 (lookup_minimal_symbol_and_objfile): Update.
9394 (prim_record_minimal_symbol_full): Update.
9395 (compare_minimal_symbols): Update.
9396 (compact_minimal_symbols): Update.
9397 (build_minimal_symbol_hash_tables): Update.
9398 (install_minimal_symbols): Update.
9399 (terminate_minimal_symbol_table): Update.
9400 (find_solib_trampoline_target): Update.
9401 (minimal_symbol_upper_bound): Update.
9402 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9403 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9404 (mips_skip_pic_trampoline_code): Update.
9405 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9406 * objc-lang.c (selectors_info): Update.
9407 (classes_info): Update.
9408 (find_methods): Update.
9409 (find_imps): Update.
9410 (find_objc_msgsend): Update.
9411 * objfiles.c (objfile_relocate1): Update.
9412 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9413 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9414 * p-valprint.c (pascal_val_print): Update.
9415 * parse.c (write_exp_msymbol): Update.
9416 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9417 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9418 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9419 * printcmd.c (build_address_symbolic): Update.
9421 (address_info): Update.
9422 * proc-service.c (ps_pglobal_lookup): Update.
9423 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9424 (find_pc_sect_psymtab): Update.
9425 * python/py-framefilter.c (py_print_frame): Update.
9426 * ravenscar-thread.c (get_running_thread_id): Update.
9427 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9429 * remote.c (remote_check_symbols): Update.
9430 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9431 (rs6000_skip_trampoline_code): Update.
9432 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9433 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9434 * solib-dsbt.c (lm_base): Update.
9435 * solib-frv.c (lm_base): Update.
9437 * solib-irix.c (locate_base): Update.
9438 * solib-som.c (som_solib_create_inferior_hook): Update.
9439 (som_solib_desire_dynamic_linker_symbols): Update.
9440 (link_map_start): Update.
9441 * solib-spu.c (spu_enable_break): Update.
9442 (ocl_enable_break): Update.
9443 * solib-svr4.c (elf_locate_base): Update.
9444 (enable_break): Update.
9445 * spu-tdep.c (spu_get_overlay_table): Update.
9446 (spu_catch_start): Update.
9447 (flush_ea_cache): Update.
9448 * stabsread.c (define_symbol): Update.
9449 (scan_file_globals): Update.
9450 * stack.c (find_frame_funname): Update.
9451 (frame_info): Update.
9452 * symfile.c (simple_read_overlay_table): Update.
9453 (simple_overlay_update): Update.
9454 * symmisc.c (dump_msymbols): Update.
9455 * symtab.c (fixup_section): Update.
9456 (find_pc_sect_line): Update.
9457 (skip_prologue_sal): Update.
9458 (search_symbols): Update.
9459 (print_msymbol_info): Update.
9460 (rbreak_command): Update.
9461 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9462 (completion_list_objc_symbol): Update.
9463 (default_make_symbol_completion_list_break_on): Update.
9464 * tracepoint.c (scope_info): Update.
9465 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9466 (tui_get_begin_asm_address): Update.
9467 * valops.c (find_function_in_inferior): Update.
9468 * value.c (value_static_field): Update.
9469 (value_fn_field): Update.
9471 2014-02-26 Tom Tromey <tromey@redhat.com>
9473 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9474 bound minimal symbols. Move code that knows about minsym
9476 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9478 * minsyms.h (minimal_symbol_upper_bound): Declare.
9479 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9480 minimal_symbol_upper_bound.
9482 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9484 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9485 Use the type's name if its basic type does not have a tag.
9487 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9489 * dwarf2read.c (read_subrange_type): Add comment.
9491 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9493 * dwarf2read.c (update_enumeration_type_from_children): New
9494 function, mostly extracted from process_structure_scope.
9495 (read_enumeration_type): Call update_enumeration_type_from_children.
9496 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9497 and flag_flag_enum fields.
9499 2014-02-26 Pedro Alves <palves@redhat.com>
9501 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9502 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9503 to_xfer_partial method.
9505 2014-02-26 Pedro Alves <palves@redhat.com>
9507 * target.c (complete_target_initialization): Don't install
9508 default_xfer_partial as to_xfer_partial hook.
9510 (update_current_target): Don't INHERIT nor de_fault
9511 deprecated_xfer_memory. Delete de_fault macro.
9512 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9513 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9514 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9517 2014-02-26 Pedro Alves <palves@redhat.com>
9519 * go32-nat.c (my_write_child): New function.
9520 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9521 (go32_xfer_partial): New function.
9522 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9523 Instead install a to_xfer_partial hook.
9525 2014-02-26 Pedro Alves <palves@redhat.com>
9527 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9528 to_xfer_partial helper. Rewrite.
9529 (procfs_xfer_partial): New function.
9530 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9531 Install a to_xfer_partial hook.
9533 2014-02-26 Pedro Alves <palves@redhat.com>
9535 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9536 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9537 (m32r_xfer_partial): New function.
9538 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9539 Install a to_xfer_partial hook.
9541 2014-02-26 Pedro Alves <palves@redhat.com>
9543 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9545 (mips_xfer_partial): New function.
9546 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9547 hook. Install a to_xfer_partial hook.
9549 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9551 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9552 * gdbtypes.c (create_array_type_with_stride): New function,
9553 renaming create_array_type, but with an added parameter
9554 called "bit_stride".
9555 (create_array_type): Re-implement using
9556 create_array_type_with_stride.
9557 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9558 and DW_AT_bit_stride attributes.
9560 2014-02-26 Pedro Alves <palves@redhat.com>
9562 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9563 task-specific breakpoints.
9565 2014-02-25 Pedro Alves <palves@redhat.com>
9567 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9568 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9570 2014-02-25 Stan Shebs <stan@codesourcery.com>
9572 * defs.h: Annotate comments for Doxygen.
9574 2014-02-25 Tom Tromey <tromey@redhat.com>
9576 * target.h (target_ignore): Don't declare.
9577 * target.c (target_ignore): Remove.
9579 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9582 * auto-load.c (auto_load_objfile_script_1): Change filename to
9585 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9587 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9588 documentation. Adjust prototype to match the target_ops
9589 to_xfer_partial method. Adjust implementation accordingly.
9591 2014-02-25 Hui Zhu <hui@codesourcery.com>
9593 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9596 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9598 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9599 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9600 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9601 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9602 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9603 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9604 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9605 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9607 (rl78_register_type): Use a data pointer type for SP and
9608 new pseudo registers mentioned above. Use a 16 bit integer
9609 type for all other register pairs.
9610 (rl78_register_name, rl78_g10_register_name): Update for
9611 new pseudo registers.
9612 (rl78_pseudo_register_read): Likewise.
9613 (rl78_pseudo_register_write): Likewise.
9614 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9615 to the newly added pseudo registers.
9617 2014-02-24 Doug Evans <dje@google.com>
9619 * value.c (record_latest_value): Fix comment.
9620 * printcmd.c (print_command_1): Remove code to handle -1 return from
9621 record_latest_value.
9623 2014-02-24 Pedro Alves <palves@redhat.com>
9625 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9626 deprecated_xfer_memory hook.
9627 (procfs_xfer_partial): Call procfs_xfer_memory instead
9628 of the deprecated_xfer_memory target hook.
9629 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9632 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9634 * windows-nat.c (windows_xfer_shared_libraries): Return
9635 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9636 requested object is TARGET_OBJECT_LIBRARIES.
9638 2014-02-24 Yao Qi <yao@codesourcery.com>
9640 * target.h (enum target_xfer_status)
9641 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9642 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9644 * corefile.c (memory_error_message): User updated.
9645 * exec.c (section_table_read_available_memory): Likewise.
9646 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9647 * target.c (target_xfer_status_to_string): Likewise.
9648 (raw_memory_xfer_partial): Likewise.
9649 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9650 * valops.c (read_value_memory): Likewise.
9651 * exec.h: Update comments.
9653 2014-02-24 Yao Qi <yao@codesourcery.com>
9655 * target.c (target_xfer_status_to_string): Rename argument err
9657 * target.h (target_xfer_status_to_string): Update declaration.
9658 Replace target_xfer_error_to_string with
9659 target_xfer_status_to_string in comment.
9661 2014-02-24 Yao Qi <yao@codesourcery.com>
9663 * mips-linux-nat.c (super_close): Update its type.
9664 (mips_linux_close): Pass 'self' to super_close.
9666 2014-02-24 Yao Qi <yao@codesourcery.com>
9668 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9669 * corefile.c (read_memory): Adjusted.
9670 * target.c (target_write_with_progress): Adjusted.
9672 2014-02-23 Yao Qi <yao@codesourcery.com>
9676 2013-10-25 Yao Qi <yao@codesourcery.com>
9678 * remote.c (remote_traceframe_info): Return early if
9679 traceframe is not selected.
9681 2013-07-19 Yao Qi <yao@codesourcery.com>
9683 * target.c (update_current_target): Change the default action
9684 of 'to_traceframe_info' from tcomplain to return_zero.
9685 * target.h (struct target_ops) <to_traceframe_info>: Add more
9688 2014-02-23 Yao Qi <yao@codesourcery.com>
9690 * valops.c (read_value_memory): Rewrite it. Call
9691 target_xfer_partial in a loop.
9692 * exec.h (section_table_available_memory): Remove declaration.
9693 Move comments to ...
9694 * exec.c (section_table_available_memory): ... here. Make it
9697 2014-02-23 Yao Qi <yao@codesourcery.com>
9699 * exec.c (section_table_read_available_memory): New function.
9700 * exec.h (section_table_read_available_memory): Declare.
9701 * ctf.c (ctf_xfer_partial): Call
9702 section_table_read_available_memory.
9703 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9705 2014-02-23 Yao Qi <yao@codesourcery.com>
9707 * ctf.c (ctf_xfer_partial): Move code to ...
9708 * exec.c (exec_read_partial_read_only): ... it. New function.
9709 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9710 * tracefile.c: Include "exec.h".
9711 * exec.h (exec_read_partial_read_only): Declare.
9713 2014-02-23 Yao Qi <yao@codesourcery.com>
9715 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9716 (tfile_has_memory): Remove.
9717 (init_tfile_ops): Don't set fields to_has_all_memory and
9718 to_has_memory of tfile_ops.
9719 * tracefile.c (tracefile_has_all_memory): New function.
9720 (tracefile_has_memory): New function.
9721 (init_tracefile_ops): Initialize fields to_has_all_memory and
9722 to_has_memory of 'ops'.
9724 2014-02-23 Yao Qi <yao@codesourcery.com>
9726 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9727 (ctf_thread_alive, ctf_get_trace_status): Remove.
9728 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9730 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9731 (tfile_has_stack, tfile_has_registers): Remove.
9732 (tfile_thread_alive): Remove.
9733 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9735 * tracefile.c (tracefile_has_stack): New function.
9736 (tracefile_has_registers): New function.
9737 (tracefile_thread_alive): New function.
9738 (tracefile_get_trace_status): New function.
9739 (init_tracefile_ops): New function.
9740 * tracefile.h (init_tracefile_ops): Declare.
9742 2014-02-23 Yao Qi <yao@codesourcery.com>
9744 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9745 (O_LARGEFILE): Likewise.
9746 (tfile_ops): Likewise.
9747 (TRACE_HEADER_SIZE): Likewise.
9748 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9749 (cur_data_size): Likewise.
9750 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9751 (tfile_close, tfile_files_info): Likewise.
9752 (tfile_get_trace_status): Likewise.
9753 (tfile_get_tracepoint_status): Likewise.
9754 (tfile_get_traceframe_address): Likewise.
9755 (tfile_trace_find, match_blocktype): Likewise.
9756 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9757 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9758 (tfile_get_trace_state_variable_value): Likewise.
9759 (tfile_has_all_memory, tfile_has_memory): Likewise.
9760 (tfile_has_stack, tfile_has_registers): Likewise.
9761 (tfile_thread_alive, build_traceframe_info): Likewise.
9762 (tfile_traceframe_info, init_tfile_ops): Likewise.
9763 (_initialize_tracepoint): Don't call init_tfile_ops
9764 and add_target_with_completer.
9765 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9766 exec.h, completer.h and filenames.h.
9767 (_initialize_tracefile_tfile): New function.
9769 2014-02-23 Yao Qi <yao@codesourcery.com>
9771 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9773 (HFILES_NO_SRCDIR): Add tracefile.h.
9774 * ctf.c: Include "tracefile.h".
9775 * tracefile.h: New file.
9776 * tracefile.c: New file
9777 * tracefile-tfile.c: New file.
9778 * tracepoint.c: Include "tracefile.h".
9779 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9780 (stop_reason_names): Add const.
9781 (trace_file_writer_xfree): Move it to tracefile.c.
9782 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9783 (trace_save_ctf): Likewise.
9784 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9785 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9786 (tfile_write_header, tfile_write_regblock_type): Likewise.
9787 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9788 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9789 (tfile_write_raw_data, tfile_end): Likewise.
9790 (tfile_trace_file_writer_new): Likewise.
9791 (free_uploaded_tp): Make it extern.
9792 (free_uploaded_tsv): Make it extern.
9793 (_initialize_tracepoint): Move code to register command 'tsave'
9795 * tracepoint.h (stop_reason_names): Declare.
9796 (struct trace_frame_write_ops): Move it to tracefile.h.
9797 (struct trace_file_write_ops): Likewise.
9798 (struct trace_file_writer): Likewise.
9799 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9801 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9804 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9806 (get_cores_used_by_process): New parameter num_cores, use it.
9807 (linux_xfer_osdata_processes): Pass num_cores to it.
9808 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9811 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9813 * target.c (memory_xfer_partial): Fix length arg in call to
9814 breakpoint_xfer_memory.
9816 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9819 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9820 number comes after the + or - signs. Adjust length of register
9821 name to be extracted.
9823 2014-02-20 Tom Tromey <tromey@redhat.com>
9825 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9826 (ada_varobj_ops): Mark "extern".
9828 2014-02-20 Tom Tromey <tromey@redhat.com>
9830 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9832 2014-02-20 Doug Evans <xdje42@gmail.com>
9834 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9835 All callers updated.
9836 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9837 All callers updated.
9838 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9839 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9841 2014-02-20 lin zuojian <manjian2006@gmail.com>
9842 Joel Brobecker <brobecker@adacore.com>
9843 Doug Evans <xdje42@gmail.com>
9846 * dwarf2read.c (struct die_info): New member in_process.
9847 (reset_die_in_process): New function.
9848 (process_die): Set it at the start, reset when returning.
9849 (inherit_abstract_dies): Only call process_die if origin_child_die
9850 not already being processed.
9852 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9854 * windows-nat.c (handle_unload_dll): Add function documentation.
9855 (do_initial_windows_stuff): Add comment explaining why we wait
9856 until after inferior initialization has finished before
9857 processing all DLLs.
9859 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9861 * windows-nat.c (get_module_name): Delete.
9862 (windows_get_exec_module_filename): New function, mostly
9863 inspired from get_module_name.
9864 (windows_pid_to_exec_file): Replace call to get_module_name
9865 by call to windows_get_exec_module_filename.
9867 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9869 * windows-nat.c (handle_load_dll): Rewrite this function's
9870 introductory comment. Remove code using get_module_name
9871 to get the DLL's name.
9873 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9875 * windows-nat.c (get_windows_debug_event): Ignore
9876 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9877 if windows_initialization_done == 0.
9878 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9879 Adjust implementation to always load all DLLs.
9880 (do_initial_windows_stuff): Replace call to
9881 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9883 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9885 * windows-nat.c (_initialize_windows_nat): Deprecate the
9886 "dll-symbols" command. Turn the "add-shared-symbol-files"
9887 and "assf" aliases into commands, and deprecate them as well.
9888 * NEWS: Add entry explaining that "dll-symbols" and its two
9889 aliases are now deprecated.
9891 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9893 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9894 new-line in debug string. Remove trailing spaces.
9896 2014-02-19 Stan Shebs <stan@codesourcery.com>
9898 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9900 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9902 * NEWS: Add entry for the new feature
9903 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9906 2014-02-19 Stan Shebs <stan@codesourcery.com>
9908 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9910 2014-02-19 Pedro Alves <palves@redhat.com>
9912 * common/ptid.h (struct ptid): Mention that process_stratum
9913 targets should prefer ptid.lwp.
9915 2014-02-19 Pedro Alves <palves@redhat.com>
9917 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9918 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9919 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9920 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9921 store remote thread ids rather than ptid.tid.
9922 (_initialize_remote): Adjust.
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9926 * target.c (target_get_unwinder): Rewrite.
9927 (target_get_tailcall_unwinder): Rewrite.
9928 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9929 (record_btrace_to_get_tailcall_unwinder): New function.
9930 (init_record_btrace_ops): Update.
9931 * target.h (struct target_ops) <to_get_unwinder,
9932 to_get_tailcall_unwinder>: Now function pointers. Use
9933 TARGET_DEFAULT_RETURN.
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9937 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9939 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9943 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9945 * target-delegates.c: Rebuild.
9946 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9947 TARGET_DEFAULT_FUNC.
9948 * target.c (default_target_decr_pc_after_break): Rename from
9949 forward_target_decr_pc_after_break. Simplify.
9950 (target_decr_pc_after_break): Rely on delegation.
9952 2014-02-19 Tom Tromey <tromey@redhat.com>
9954 * target.c (update_current_target): Do not INHERIT to_doc or
9955 to_magic. Do not de_fault to_open or to_close.
9957 2014-02-19 Tom Tromey <tromey@redhat.com>
9959 * gcore.h (objfile_find_memory_regions): Declare.
9960 * gcore.c (objfile_find_memory_regions): No longer static. Add
9962 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9963 * exec.c: Include gcore.h.
9964 (exec_set_find_memory_regions): Remove.
9965 (exec_find_memory_regions): Remove.
9966 (exec_do_find_memory_regions): Remove.
9967 (init_exec_ops): Update.
9968 * defs.h (exec_set_find_memory_regions): Remove.
9970 2014-02-19 Tom Tromey <tromey@redhat.com>
9972 * target-delegates.c: Rebuild.
9973 * target.h (struct target_ops) <to_extra_thread_info,
9974 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9975 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9976 not 0, in TARGET_DEFAULT_RETURN.
9978 2014-02-19 Tom Tromey <tromey@redhat.com>
9980 * target.c (complete_target_initialization): Remove casts. Use
9981 return_zero_has_execution.
9982 (return_zero): Add "ignore" argument.
9983 (return_zero_has_execution): New function.
9984 (init_dummy_target): Remove casts. Use
9985 return_zero_has_execution.
9987 2014-02-19 Tom Tromey <tromey@redhat.com>
9989 * target.c (update_current_target): Update comments. Do not
9992 2014-02-19 Tom Tromey <tromey@redhat.com>
9994 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9996 * corelow.c (core_read_description): Delegate when needed.
9997 * remote.c (remote_read_description): Delegate when needed.
9998 * target-delegates.c: Rebuild.
9999 * target.c (target_read_description): Rewrite.
10000 * target.h (struct target_ops) <to_read_description>: Update
10001 comment. Use TARGET_DEFAULT_RETURN.
10003 2014-02-19 Tom Tromey <tromey@redhat.com>
10005 * target-delegates.c: Rebuild.
10006 * target.c (update_current_target): Don't inherit or default
10008 (find_default_run_target): Check against delegate_can_run.
10009 * target.h (struct target_ops) <to_can_run>: Use
10010 TARGET_DEFAULT_RETURN.
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10014 * target-delegates.c: Rebuild.
10015 * target.c (target_disconnect): Unconditionally delegate.
10016 * target.h (struct target_ops) <to_disconnect>: Use
10017 TARGET_DEFAULT_NORETURN.
10019 2014-02-19 Tom Tromey <tromey@redhat.com>
10021 * record.c (record_stop): Unconditionally delegate.
10022 * target-delegates.c: Rebuild.
10023 * target.c (target_stop_recording): Unconditionally delegate.
10024 * target.h (struct target_ops) <to_stop_recording>: Use
10025 TARGET_DEFAULT_IGNORE.
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10029 * target-delegates.c: Rebuild.
10030 * target.c (target_enable_btrace): Unconditionally delegate.
10031 * target.h (struct target_ops) <to_enable_btrace>: Use
10032 TARGET_DEFAULT_NORETURN.
10034 2014-02-19 Tom Tromey <tromey@redhat.com>
10036 * target-delegates.c: Rebuild.
10037 * target.c (target_read_btrace): Unconditionally delegate.
10038 * target.h (struct target_ops) <to_read_btrace>: Use
10039 TARGET_DEFAULT_NORETURN.
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10043 * target-delegates.c: Rebuild.
10044 * target.c (target_teardown_btrace): Unconditionally delegate.
10045 * target.h (struct target_ops) <to_teardown_btrace>: Use
10046 TARGET_DEFAULT_NORETURN.
10048 2014-02-19 Tom Tromey <tromey@redhat.com>
10050 * target-delegates.c: Rebuild.
10051 * target.c (target_disable_btrace): Unconditionally delegate.
10052 * target.h (struct target_ops) <to_disable_btrace>: Use
10053 TARGET_DEFAULT_NORETURN.
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10057 * target-delegates.c: Rebuild.
10058 * target.c (default_search_memory): New function.
10059 (simple_search_memory): Update comment.
10060 (target_search_memory): Unconditionally delegate.
10061 * target.h (struct target_ops) <to_search_memory>: Use
10062 TARGET_DEFAULT_FUNC.
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10066 * auxv.c (default_auxv_parse): No longer static.
10067 (target_auxv_parse): Unconditionally delegate.
10068 * auxv.h (default_auxv_parse): Declare.
10069 * target-delegates.c: Rebuild.
10070 * target.c: Include auxv.h.
10071 * target.h (struct target_ops) <to_auxv_parse>: Use
10072 TARGET_DEFAULT_FUNC.
10074 2014-02-19 Tom Tromey <tromey@redhat.com>
10076 * target-delegates.c: Rebuild.
10077 * target.c (target_memory_map): Unconditionally delegate.
10078 * target.h (struct target_ops) <to_memory_map>: Use
10079 TARGET_DEFAULT_RETURN.
10081 2014-02-19 Tom Tromey <tromey@redhat.com>
10083 * target-delegates.c: Rebuild.
10084 * target.c (target_thread_alive): Unconditionally delegate.
10085 * target.h (struct target_ops) <to_thread_alive>: Use
10086 TARGET_DEFAULT_RETURN.
10088 2014-02-19 Tom Tromey <tromey@redhat.com>
10090 * target-delegates.c: Rebuild.
10091 * target.c (target_save_record): Unconditionally delegate.
10092 * target.h (struct target_ops) <to_save_record>: Use
10093 TARGET_DEFAULT_NORETURN.
10095 2014-02-19 Tom Tromey <tromey@redhat.com>
10097 * target-delegates.c: Rebuild.
10098 * target.c (target_delete_record): Unconditionally delegate.
10099 * target.h (struct target_ops) <to_delete_record>: Use
10100 TARGET_DEFAULT_NORETURN.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target-delegates.c: Rebuild.
10105 * target.c (target_record_is_replaying): Unconditionally
10107 * target.h (struct target_ops) <to_record_is_replaying>: Use
10108 TARGET_DEFAULT_RETURN.
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10112 * target-delegates.c: Rebuild.
10113 * target.c (target_goto_record_begin): Unconditionally delegate.
10114 * target.h (struct target_ops) <to_goto_record_begin>: Use
10115 TARGET_DEFAULT_NORETURN.
10117 2014-02-19 Tom Tromey <tromey@redhat.com>
10119 * target-delegates.c: Rebuild.
10120 * target.c (target_goto_record_end): Unconditionally delegate.
10121 * target.h (struct target_ops) <to_goto_record_end>: Use
10122 TARGET_DEFAULT_NORETURN.
10124 2014-02-19 Tom Tromey <tromey@redhat.com>
10126 * target-delegates.c: Rebuild.
10127 * target.c (target_goto_record): Unconditionally delegate.
10128 * target.h (struct target_ops) <to_goto_record>: Use
10129 TARGET_DEFAULT_NORETURN.
10131 2014-02-19 Tom Tromey <tromey@redhat.com>
10133 * target-delegates.c: Rebuild.
10134 * target.c (target_insn_history): Unconditionally delegate.
10135 * target.h (struct target_ops) <to_insn_history>: Use
10136 TARGET_DEFAULT_NORETURN.
10138 2014-02-19 Tom Tromey <tromey@redhat.com>
10140 * target-delegates.c: Rebuild.
10141 * target.c (target_insn_history_from): Unconditionally delegate.
10142 * target.h (struct target_ops) <to_insn_history_from>: Use
10143 TARGET_DEFAULT_NORETURN.
10145 2014-02-19 Tom Tromey <tromey@redhat.com>
10147 * target-delegates.c: Rebuild.
10148 * target.c (target_insn_history_range): Unconditionally delegate.
10149 * target.h (struct target_ops) <to_insn_history_range>: Use
10150 TARGET_DEFAULT_NORETURN.
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10154 * target-delegates.c: Rebuild.
10155 * target.c (target_call_history): Unconditionally delegate.
10156 * target.h (struct target_ops) <to_call_history>: Use
10157 TARGET_DEFAULT_NORETURN.
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10161 * target-delegates.c: Rebuild.
10162 * target.c (target_call_history_from): Unconditionally delegate.
10163 * target.h (struct target_ops) <to_call_history_from>: Use
10164 TARGET_DEFAULT_NORETURN.
10166 2014-02-19 Tom Tromey <tromey@redhat.com>
10168 * target-delegates.c: Rebuild.
10169 * target.c (target_call_history_range): Unconditionally delegate.
10170 * target.h (struct target_ops) <to_call_history_range>: Use
10171 TARGET_DEFAULT_NORETURN.
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10175 * target-delegates.c: Rebuild.
10176 * target.c (target_verify_memory): Unconditionally delegate.
10177 * target.h (struct target_ops) <to_verify_memory>: Use
10178 TARGET_DEFAULT_NORETURN.
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * target-delegates.c: Rebuild.
10183 * target.c (target_core_of_thread): Unconditionally delegate.
10184 * target.h (struct target_ops) <to_core_of_thread>: Use
10185 TARGET_DEFAULT_RETURN.
10187 2014-02-19 Tom Tromey <tromey@redhat.com>
10189 * target-delegates.c: Rebuild.
10190 * target.c (target_flash_done): Unconditionally delegate.
10191 * target.h (struct target_ops) <to_flash_done>: Use
10192 TARGET_DEFAULT_NORETURN.
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10196 * target-delegates.c: Rebuild.
10197 * target.c (target_flash_erase): Unconditionally delegate.
10198 * target.h (struct target_ops) <to_flash_erase>: Use
10199 TARGET_DEFAULT_NORETURN.
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10203 * target-delegates.c: Rebuild.
10204 * target.c (target_get_section_table): Unconditionally delegate.
10205 * target.h (struct target_ops) <to_get_section_table>: Use
10206 TARGET_DEFAULT_RETURN.
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10210 * target-delegates.c: Rebuild.
10211 * target.c (target_pid_to_str): Unconditionally delegate.
10212 (init_dummy_target): Don't initialize to_pid_to_str.
10213 (default_pid_to_str): Rename from dummy_pid_to_str.
10214 * target.h (struct target_ops) <to_pid_to_str>: Use
10215 TARGET_DEFAULT_FUNC.
10217 2014-02-19 Tom Tromey <tromey@redhat.com>
10219 * target-delegates.c: Rebuild.
10220 * target.c (target_find_new_threads): Unconditionally delegate.
10221 * target.h (struct target_ops) <to_find_new_threads>: Use
10222 TARGET_DEFAULT_RETURN.
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10226 * target-delegates.c: Rebuild.
10227 * target.c (target_program_signals): Unconditionally delegate.
10228 * target.h (struct target_ops) <to_program_signals>: Use
10229 TARGET_DEFAULT_IGNORE.
10231 2014-02-19 Tom Tromey <tromey@redhat.com>
10233 * target-delegates.c: Rebuild.
10234 * target.c (target_pass_signals): Unconditionally delegate.
10235 * target.h (struct target_ops) <to_pass_signals>: Use
10236 TARGET_DEFAULT_IGNORE.
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10240 * target-delegates.c: Rebuild.
10241 * target.c (default_mourn_inferior): New function.
10242 (target_mourn_inferior): Unconditionally delegate.
10243 * target.h (struct target_ops) <to_mourn_inferior>: Use
10244 TARGET_DEFAULT_FUNC.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * target-delegates.c: Rebuild.
10249 * target.c (default_follow_fork): New function.
10250 (target_follow_fork): Unconditionally delegate.
10251 * target.h (struct target_ops) <to_follow_fork>: Use
10252 TARGET_DEFAULT_FUNC.
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10256 * target-delegates.c: Rebuild.
10257 * target.c (target_kill): Unconditionally delegate.
10258 * target.h (struct target_ops) <to_kill>: Use
10259 TARGET_DEFAULT_NORETURN.
10261 2014-02-19 Tom Tromey <tromey@redhat.com>
10263 * target-delegates.c: Rebuild.
10264 * target.c (target_masked_watch_num_registers): Unconditionally
10266 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10267 Use TARGET_DEFAULT_RETURN.
10269 2014-02-19 Tom Tromey <tromey@redhat.com>
10271 * target-delegates.c: Rebuild.
10272 * target.c (target_remove_mask_watchpoint): Unconditionally
10274 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10275 TARGET_DEFAULT_RETURN.
10277 2014-02-19 Tom Tromey <tromey@redhat.com>
10279 * target-delegates.c: Rebuild.
10280 * target.c (target_insert_mask_watchpoint): Unconditionally
10282 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10283 TARGET_DEFAULT_RETURN.
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10287 * target-delegates.c: Rebuild.
10288 * target.c (target_ranged_break_num_registers): Unconditionally
10290 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10291 Use TARGET_DEFAULT_RETURN.
10293 2014-02-19 Tom Tromey <tromey@redhat.com>
10295 * target-delegates.c: Rebuild.
10296 * target.c (target_fetch_registers): Unconditionally delegate.
10297 * target.h (struct target_ops) <to_fetch_registers>: Use
10298 TARGET_DEFAULT_NORETURN.
10300 2014-02-19 Tom Tromey <tromey@redhat.com>
10302 * target-delegates.c: Rebuild.
10303 * target.c (update_current_target): Don't inherit or default
10305 * target.h (struct target_ops) <to_stop>: Use
10306 TARGET_DEFAULT_IGNORE.
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10310 * target-delegates.c: Rebuild.
10311 * target.c (update_current_target): Don't inherit or default
10312 to_can_run_breakpoint_commands.
10313 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10314 Use TARGET_DEFAULT_RETURN.
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10318 * target-delegates.c: Rebuild.
10319 * target.c (update_current_target): Don't inherit or default
10320 to_supports_evaluation_of_breakpoint_conditions.
10321 * target.h (struct target_ops)
10322 <to_supports_evaluation_of_breakpoint_conditions>: Use
10323 TARGET_DEFAULT_RETURN.
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10327 * target-delegates.c: Rebuild.
10328 * target.c (update_current_target): Don't inherit or default
10329 to_augmented_libraries_svr4_read.
10330 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10331 Use TARGET_DEFAULT_RETURN.
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10335 * target-delegates.c: Rebuild.
10336 * target.c (update_current_target): Don't inherit or default
10338 * target.h (struct target_ops) <to_can_use_agent>: Use
10339 TARGET_DEFAULT_RETURN.
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target-delegates.c: Rebuild.
10344 * target.c (update_current_target): Don't inherit or default
10346 * target.h (struct target_ops) <to_use_agent>: Use
10347 TARGET_DEFAULT_NORETURN.
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10353 to_traceframe_info.
10354 (return_null): Remove.
10355 * target.h (struct target_ops) <to_traceframe_info>: Use
10356 TARGET_DEFAULT_RETURN.
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10360 * target-delegates.c: Rebuild.
10361 * target.c (update_current_target): Don't inherit or default
10362 to_static_tracepoint_markers_by_strid.
10363 * target.h (struct target_ops)
10364 <to_static_tracepoint_markers_by_strid>: Use
10365 TARGET_DEFAULT_NORETURN.
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
10371 to_static_tracepoint_marker_at.
10372 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10373 Use 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
10379 to_set_permissions.
10380 * target.h (struct target_ops) <to_set_permissions>: Use
10381 TARGET_DEFAULT_IGNORE.
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_get_tib_address.
10388 * target.h (struct target_ops) <to_get_tib_address>: Use
10389 TARGET_DEFAULT_NORETURN.
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10393 * target-delegates.c: Rebuild.
10394 * target.c (update_current_target): Don't inherit or default
10395 to_set_trace_notes.
10396 * target.h (struct target_ops) <to_set_trace_notes>: Use
10397 TARGET_DEFAULT_RETURN.
10399 2014-02-19 Tom Tromey <tromey@redhat.com>
10401 * target-delegates.c: Rebuild.
10402 * target.c (update_current_target): Don't initialize
10403 to_set_trace_buffer_size.
10404 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10405 TARGET_DEFAULT_IGNORE.
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10409 * target-delegates.c: Rebuild.
10410 * target.c (update_current_target): Don't inherit or default
10411 to_set_circular_trace_buffer.
10412 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10413 TARGET_DEFAULT_IGNORE.
10415 2014-02-19 Tom Tromey <tromey@redhat.com>
10417 * target-delegates.c: Rebuild.
10418 * target.c (update_current_target): Don't inherit or default
10419 to_set_disconnected_tracing.
10420 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10421 TARGET_DEFAULT_IGNORE.
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10425 * target-delegates.c: Rebuild.
10426 * target.c (update_current_target): Don't inherit or default
10427 to_get_min_fast_tracepoint_insn_len.
10428 (return_minus_one): Remove.
10429 * target.h (struct target_ops)
10430 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10432 2014-02-19 Tom Tromey <tromey@redhat.com>
10434 * target-delegates.c: Rebuild.
10435 * target.c (update_current_target): Don't inherit or default
10436 to_get_raw_trace_data.
10437 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10438 TARGET_DEFAULT_NORETURN.
10440 2014-02-19 Tom Tromey <tromey@redhat.com>
10442 * target-delegates.c: Rebuild.
10443 * target.c (update_current_target): Don't inherit or default
10444 to_upload_trace_state_variables.
10445 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10446 Use TARGET_DEFAULT_RETURN.
10448 2014-02-19 Tom Tromey <tromey@redhat.com>
10450 * target-delegates.c: Rebuild.
10451 * target.c (update_current_target): Don't inherit or default
10452 to_upload_tracepoints.
10453 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10454 TARGET_DEFAULT_RETURN.
10456 2014-02-19 Tom Tromey <tromey@redhat.com>
10458 * target-delegates.c: Rebuild.
10459 * target.c (update_current_target): Don't inherit or default
10460 to_save_trace_data.
10461 * target.h (struct target_ops) <to_save_trace_data>: Use
10462 TARGET_DEFAULT_NORETURN.
10464 2014-02-19 Tom Tromey <tromey@redhat.com>
10466 * target-delegates.c: Rebuild.
10467 * target.c (update_current_target): Don't inherit or default
10468 to_get_trace_state_variable_value.
10469 * target.h (struct target_ops)
10470 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10472 2014-02-19 Tom Tromey <tromey@redhat.com>
10474 * target-delegates.c: Rebuild.
10475 * target.c (update_current_target): Don't inherit or default
10477 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10479 2014-02-19 Tom Tromey <tromey@redhat.com>
10481 * target-delegates.c: Rebuild.
10482 * target.c (update_current_target): Don't inherit or default
10484 * target.h (struct target_ops) <to_trace_stop>: Use
10485 TARGET_DEFAULT_NORETURN.
10487 2014-02-19 Tom Tromey <tromey@redhat.com>
10489 * target-delegates.c: Rebuild.
10490 * target.c (update_current_target): Don't inherit or default
10491 to_get_tracepoint_status.
10492 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10493 TARGET_DEFAULT_NORETURN.
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10497 * target-delegates.c: Rebuild.
10498 * target.c (update_current_target): Don't inherit or default
10499 to_get_trace_status.
10500 * target.h (struct target_ops) <to_get_trace_status>: Use
10501 TARGET_DEFAULT_RETURN.
10503 2014-02-19 Tom Tromey <tromey@redhat.com>
10505 * target-delegates.c: Rebuild.
10506 * target.c (update_current_target): Don't inherit or default
10508 * target.h (struct target_ops) <to_trace_start>: Use
10509 TARGET_DEFAULT_NORETURN.
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10513 * target-delegates.c: Rebuild.
10514 * target.c (update_current_target): Don't inherit or default
10515 to_trace_set_readonly_regions.
10516 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10517 Use TARGET_DEFAULT_NORETURN.
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10521 * target-delegates.c: Rebuild.
10522 * target.c (update_current_target): Don't inherit or default
10523 to_disable_tracepoint.
10524 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10525 TARGET_DEFAULT_NORETURN.
10527 2014-02-19 Tom Tromey <tromey@redhat.com>
10529 * target-delegates.c: Rebuild.
10530 * target.c (update_current_target): Don't inherit or default
10531 to_enable_tracepoint.
10532 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10533 TARGET_DEFAULT_NORETURN.
10535 2014-02-19 Tom Tromey <tromey@redhat.com>
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't inherit or default
10539 to_download_trace_state_variable.
10540 * target.h (struct target_ops) <to_download_trace_state_variable>:
10541 Use TARGET_DEFAULT_NORETURN.
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10545 * target-delegates.c: Rebuild.
10546 * target.c (update_current_target): Don't inherit or default
10547 to_can_download_tracepoint.
10548 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10549 TARGET_DEFAULT_RETURN.
10551 2014-02-19 Tom Tromey <tromey@redhat.com>
10553 * target-delegates.c: Rebuild.
10554 * target.c (update_current_target): Don't inherit or default
10555 to_download_tracepoint.
10556 * target.h (struct target_ops) <to_download_tracepoint>: Use
10557 TARGET_DEFAULT_NORETURN.
10559 2014-02-19 Tom Tromey <tromey@redhat.com>
10561 * target-delegates.c: Rebuild.
10562 * target.c (update_current_target): Don't inherit or default
10564 * target.h (struct target_ops) <to_trace_init>: Use
10565 TARGET_DEFAULT_RETURN.
10567 2014-02-19 Tom Tromey <tromey@redhat.com>
10569 * target-delegates.c: Rebuild.
10570 * target.c (update_current_target): Don't inherit or default
10571 to_supports_string_tracing.
10572 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10573 TARGET_DEFAULT_RETURN.
10575 2014-02-19 Tom Tromey <tromey@redhat.com>
10577 * target-delegates.c: Rebuild.
10578 * target.c (update_current_target): Don't inherit or default
10579 to_supports_enable_disable_tracepoint.
10580 * target.h (struct target_ops)
10581 <to_supports_enable_disable_tracepoint>: Use
10582 TARGET_DEFAULT_RETURN.
10584 2014-02-19 Tom Tromey <tromey@redhat.com>
10586 * target-delegates.c: Rebuild.
10587 * target.c (update_current_target): Don't inherit or default
10588 to_supports_multi_process.
10589 * target.h (struct target_ops) <to_supports_multi_process>: Use
10590 TARGET_DEFAULT_RETURN.
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10594 * target-delegates.c: Rebuild.
10595 * target.c (update_current_target): Don't inherit or default
10596 to_get_ada_task_ptid.
10597 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10598 TARGET_DEFAULT_FUNC.
10600 2014-02-19 Tom Tromey <tromey@redhat.com>
10602 * target-delegates.c: Rebuild.
10603 * target.c (update_current_target): Don't inherit or default
10604 to_thread_architecture.
10605 * target.h (struct target_ops) <to_thread_architecture>: Use
10606 TARGET_DEFAULT_FUNC.
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10610 * target-delegates.c: Rebuild.
10611 * target.c (update_current_target): Don't inherit or default
10612 to_execution_direction.
10613 * target.h (struct target_ops) <to_execution_direction>: Use
10614 TARGET_DEFAULT_FUNC.
10616 2014-02-19 Tom Tromey <tromey@redhat.com>
10618 * target-delegates.c: Rebuild.
10619 * target.c (update_current_target): Don't inherit or default
10620 to_can_execute_reverse.
10621 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10622 TARGET_DEFAULT_RETURN.
10623 (target_can_execute_reverse): Unconditionally delegate.
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10627 * target-delegates.c: Rebuild.
10628 * target.c (update_current_target): Don't inherit or default
10630 (dummy_goto_bookmark): Remove.
10631 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10632 * target.h (struct target_ops) <to_goto_bookmark>: Use
10633 TARGET_DEFAULT_NORETURN.
10635 2014-02-19 Tom Tromey <tromey@redhat.com>
10637 * target-delegates.c: Rebuild.
10638 * target.c (update_current_target): Don't inherit or default
10640 (dummy_get_bookmark): Remove.
10641 (init_dummy_target): Don't inherit or default to_get_bookmark.
10642 * target.h (struct target_ops) <to_get_bookmark>: Use
10643 TARGET_DEFAULT_NORETURN
10645 2014-02-19 Tom Tromey <tromey@redhat.com>
10647 * target-delegates.c: Rebuild.
10648 * target.c (update_current_target): Don't inherit or default
10649 to_make_corefile_notes.
10650 (init_dummy_target): Don't initialize to_make_corefile_notes.
10651 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10652 TARGET_DEFAULT_FUNC.
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10656 * target-delegates.c: Rebuild.
10657 * target.c (update_current_target): Don't inherit or default
10658 to_find_memory_regions.
10659 (init_dummy_target): Don't initialize to_find_memory_regions.
10660 * target.h (struct target_ops) <to_find_memory_regions>: Use
10661 TARGET_DEFAULT_FUNC.
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10665 * target-delegates.c: Rebuild.
10666 * target.c (update_current_target): Don't inherit or default
10668 * target.h (struct target_ops) <to_log_command>: Use
10669 TARGET_DEFAULT_IGNORE.
10670 (target_log_command): Unconditionally delegate.
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10674 * target-delegates.c: Rebuild.
10675 * target.c (update_current_target): Don't inherit or default
10676 to_pid_to_exec_file.
10677 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10678 TARGET_DEFAULT_RETURN.
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10682 * target-delegates.c: Rebuild.
10683 * target.c (update_current_target): Don't inherit or default
10685 (target_thread_name): Unconditionally delegate.
10686 * target.h (struct target_ops) <to_thread_name>: Use
10687 TARGET_DEFAULT_RETURN.
10689 2014-02-19 Tom Tromey <tromey@redhat.com>
10691 * target-delegates.c: Rebuild.
10692 * target.c (update_current_target): Don't inherit or default
10693 to_extra_thread_info.
10694 * target.h (struct target_ops) <to_extra_thread_info>: Use
10695 TARGET_DEFAULT_RETURN.
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_has_exited>: Use
10703 TARGET_DEFAULT_RETURN..
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10707 * target-delegates.c: Rebuild.
10708 * target.c (update_current_target): Don't inherit or default
10709 to_set_syscall_catchpoint.
10710 (return_one): Remove.
10711 * target.h (struct target_ops) <to_set_syscall_catchpoint>: 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
10718 to_insert_exec_catchpoint.
10719 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10720 TARGET_DEFAULT_RETURN.
10722 2014-01-08 Tom Tromey <tromey@redhat.com>
10724 * target-delegates.c: Rebuild.
10725 * target.c (update_current_target): Don't inherit or default
10726 to_insert_exec_catchpoint.
10727 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10728 TARGET_DEFAULT_RETURN.
10730 2014-02-19 Tom Tromey <tromey@redhat.com>
10732 * target-delegates.c: Rebuild.
10733 * target.c (update_current_target): Don't inherit or default
10734 to_remove_vfork_catchpoint.
10735 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10736 TARGET_DEFAULT_RETURN.
10738 2014-02-19 Tom Tromey <tromey@redhat.com>
10740 * target-delegates.c: Rebuild.
10741 * target.c (update_current_target): Don't inherit or default
10742 to_insert_vfork_catchpoint.
10743 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10744 TARGET_DEFAULT_RETURN.
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10748 * target-delegates.c: Rebuild.
10749 * target.c (update_current_target): Don't inherit or default
10750 to_remove_fork_catchpoint.
10751 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10752 TARGET_DEFAULT_RETURN.
10754 2014-02-19 Tom Tromey <tromey@redhat.com>
10756 * target-delegates.c: Rebuild.
10757 * target.c (update_current_target): Don't inherit or default
10758 to_insert_fork_catchpoint.
10759 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10760 TARGET_DEFAULT_RETURN.
10762 2014-02-19 Tom Tromey <tromey@redhat.com>
10764 * target-delegates.c: Rebuild.
10765 * target.c (update_current_target): Don't inherit or default
10766 to_post_startup_inferior.
10767 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10768 TARGET_DEFAULT_IGNORE.
10770 2014-02-19 Tom Tromey <tromey@redhat.com>
10772 * target-delegates.c: Rebuild.
10773 * target.c (update_current_target): Don't inherit or default
10775 * target.h (struct target_ops) <to_load>: Use
10776 TARGET_DEFAULT_NORETURN.
10778 2014-02-19 Tom Tromey <tromey@redhat.com>
10780 * target-delegates.c: Rebuild.
10781 * target.c (update_current_target): Don't inherit or default
10783 * target.h (struct target_ops) <to_terminal_info>: Use
10784 TARGET_DEFAULT_FUNC.
10786 2014-02-19 Tom Tromey <tromey@redhat.com>
10788 * target-delegates.c: Rebuild.
10789 * target.c (update_current_target): Don't inherit or default
10790 to_terminal_save_ours.
10791 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10792 TARGET_DEFAULT_IGNORE.
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10796 * target-delegates.c: Rebuild.
10797 * target.c (update_current_target): Don't inherit or default
10799 * target.h (struct target_ops) <to_terminal_ours>: Use
10800 TARGET_DEFAULT_IGNORE.
10802 2014-02-19 Tom Tromey <tromey@redhat.com>
10804 * target-delegates.c: Rebuild.
10805 * target.c (update_current_target): Don't inherit or default
10806 to_terminal_ours_for_output.
10807 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10808 TARGET_DEFAULT_IGNORE.
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10812 * target-delegates.c: Rebuild.
10813 * target.c (update_current_target): Don't inherit or default
10814 to_terminal_inferior.
10815 * target.h (struct target_ops) <to_terminal_inferior>: Use
10816 TARGET_DEFAULT_IGNORE.
10818 2014-02-19 Tom Tromey <tromey@redhat.com>
10820 * target-delegates.c: Rebuild.
10821 * target.c (update_current_target): Don't inherit or default
10823 * target.h (struct target_ops) <to_terminal_init>: Use
10824 TARGET_DEFAULT_IGNORE.
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target-delegates.c: Rebuild.
10829 * target.c (update_current_target): Don't inherit or default
10830 to_can_accel_watchpoint_condition.
10831 * target.h (struct target_ops)
10832 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * target-delegates.c: Rebuild.
10837 * target.c (update_current_target): Don't inherit or default
10838 to_region_ok_for_hw_watchpoint.
10839 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10840 Use TARGET_DEFAULT_FUNC.
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10844 * target-delegates.c: Rebuild.
10845 * target.c (update_current_target): Don't inherit or default
10846 to_watchpoint_addr_within_range.
10847 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10848 Use TARGET_DEFAULT_FUNC.
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10852 * target-delegates.c: Rebuild.
10853 * target.c (update_current_target): Don't inherit or default
10854 to_remove_watchpoint.
10855 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10856 TARGET_DEFAULT_NORETURN.
10858 2014-02-19 Tom Tromey <tromey@redhat.com>
10860 * target-delegates.c: Rebuild.
10861 * target.c (update_current_target): Don't inherit or default
10862 to_insert_watchpoint.
10863 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10864 TARGET_DEFAULT_RETURN.
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10868 * target-delegates.c: Rebuild.
10869 * target.c (update_current_target): Don't inherit or default
10870 to_remove_hw_breakpoint.
10871 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10872 TARGET_DEFAULT_RETURN.
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10876 * target-delegates.c: Rebuild.
10877 * target.c (update_current_target): Don't inherit or default
10878 to_insert_hw_breakpoint.
10879 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10880 TARGET_DEFAULT_RETURN.
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10884 * target-delegates.c: Rebuild.
10885 * target.c (update_current_target): Don't inherit or default
10886 to_can_use_hw_breakpoint.
10887 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10888 TARGET_DEFAULT_RETURN.
10890 2014-02-19 Tom Tromey <tromey@redhat.com>
10892 * target-delegates.c: Rebuild.
10893 * target.c (update_current_target): Don't inherit or default
10895 * target.h (struct target_ops) <to_files_info>: Use
10896 TARGET_DEFAULT_IGNORE.
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10900 * target-delegates.c: Rebuild.
10901 * target.c (update_current_target): Don't inherit or default
10903 * target.h (struct target_ops) <to_store>: Use
10904 TARGET_DEFAULT_NORETURN.
10906 2014-02-19 Tom Tromey <tromey@redhat.com>
10908 * target-delegates.c: Rebuild.
10909 * target.c (update_current_target): Don't inherit or default
10911 * target.h (struct target_ops) <to_post_attach>: Use
10912 TARGET_DEFAULT_IGNORE.
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10916 * target-delegates.c: Rebuild.
10917 * target.c (update_current_target): Don't inherit or default
10919 (default_rcmd): New function.
10920 (do_monitor_command): Unconditionally delegate.
10921 * target.h (struct target_ops) <to_rmcd>: Use
10922 TARGET_DEFAULT_FUNC.
10924 2014-02-19 Tom Tromey <tromey@redhat.com>
10926 * target-delegates.c: Rebuild.
10927 * target.c (init_dummy_target): Don't initialize to_attach.
10928 (target_attach): Unconditionally delegate.
10929 * target.h (struct target_ops) <to_attach>: Use
10930 TARGET_DEFAULT_FUNC.
10932 2014-02-19 Tom Tromey <tromey@redhat.com>
10934 * target-delegates.c: Rebuild.
10935 * target.c (target_detach): Unconditionally delegate.
10936 (init_dummy_target): Don't initialize to_detach.
10937 * target.h (struct target_ops) <to_detach>: Use
10938 TARGET_DEFAULT_IGNORE.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10944 (target_augmented_libraries_svr4_read): Add argument.
10945 * target.c (update_current_target): Update.
10946 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10949 2014-02-19 Tom Tromey <tromey@redhat.com>
10951 * target.h (struct target_ops) <to_call_history_range>: Add
10953 * target.c (target_call_history_range): Add argument.
10954 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10956 (record_btrace_call_history_from): Update.
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10960 * target.h (struct target_ops) <to_call_history_from>: Add
10962 * target.c (target_call_history_from): Add argument.
10963 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10966 2014-02-19 Tom Tromey <tromey@redhat.com>
10968 * target.h (struct target_ops) <to_call_history>: Add argument.
10969 * target.c (target_call_history): Add argument.
10970 * record-btrace.c (record_btrace_call_history): Add 'self'
10973 2014-02-19 Tom Tromey <tromey@redhat.com>
10975 * target.h (struct target_ops) <to_insn_history_range>: Add
10977 * target.c (target_insn_history_range): Add argument.
10978 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10980 (record_btrace_insn_history_from): Update.
10982 2014-02-19 Tom Tromey <tromey@redhat.com>
10984 * target.h (struct target_ops) <to_insn_history_from>: Add
10986 * target.c (target_insn_history_from): Add argument.
10987 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10990 2014-02-19 Tom Tromey <tromey@redhat.com>
10992 * target.h (struct target_ops) <to_insn_history>: Add argument.
10993 * target.c (target_insn_history): Add argument.
10994 * record-btrace.c (record_btrace_insn_history): Add 'self'
10997 2014-02-19 Tom Tromey <tromey@redhat.com>
10999 * target.h (struct target_ops) <to_goto_record>: Add argument.
11000 * target.c (target_goto_record): Add argument.
11001 * record-full.c (record_full_goto): Add 'self' argument.
11002 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11004 2014-02-19 Tom Tromey <tromey@redhat.com>
11006 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11007 * target.c (target_goto_record_end): Add argument.
11008 * record-full.c (record_full_goto_end): Add 'self' argument.
11009 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11013 * target.h (struct target_ops) <to_goto_record_begin>: Add
11015 * target.c (target_goto_record_begin): Add argument.
11016 * record-full.c (record_full_goto_begin): Add 'self' argument.
11017 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11020 2014-02-19 Tom Tromey <tromey@redhat.com>
11022 * target.h (struct target_ops) <to_record_is_replaying>: Add
11024 * target.c (target_record_is_replaying): Add argument.
11025 * record-full.c (record_full_is_replaying): Add 'self' argument.
11026 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11028 (record_btrace_xfer_partial, record_btrace_store_registers)
11029 (record_btrace_prepare_to_store, record_btrace_resume)
11030 (record_btrace_wait, record_btrace_decr_pc_after_break)
11031 (record_btrace_find_new_threads, record_btrace_thread_alive):
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * target.h (struct target_ops) <to_delete_record>: Add argument.
11037 * target.c (target_delete_record): Add argument.
11038 * record-full.c (record_full_delete): Add 'self' argument.
11040 2014-02-19 Tom Tromey <tromey@redhat.com>
11042 * target.h (struct target_ops) <to_save_record>: Add argument.
11043 * target.c (target_save_record): Add argument.
11044 * record-full.c (record_full_save): Add 'self' argument.
11045 (record_full_save): Add 'self' argument.
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11049 * target.h (struct target_ops) <to_info_record>: Add argument.
11050 * target.c (target_info_record): Add argument.
11051 * record.c (info_record_command): Add argument.
11052 * record-full.c (record_full_info): Add 'self' argument.
11053 * record-btrace.c (record_btrace_info): Add 'self' argument.
11055 2014-02-19 Tom Tromey <tromey@redhat.com>
11057 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11058 * target.c (target_stop_recording): Add argument.
11059 * record.c (record_stop): Add argument.
11060 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11063 2014-02-19 Tom Tromey <tromey@redhat.com>
11065 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11066 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11067 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11069 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11070 (_initialize_amd64_linux_nat): Use it.
11071 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11072 (_initialize_i386_linux_nat): Use it.
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11076 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11077 * target.c (target_teardown_btrace): Add argument.
11078 * remote.c (remote_teardown_btrace): Add 'self' argument.
11079 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11081 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11084 2014-02-19 Tom Tromey <tromey@redhat.com>
11086 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11087 * target.c (target_disable_btrace): Add argument.
11088 * remote.c (remote_disable_btrace): Add 'self' argument.
11089 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11091 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11094 2014-02-19 Tom Tromey <tromey@redhat.com>
11096 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11097 * target.c (target_enable_btrace): Add argument.
11098 * remote.c (remote_enable_btrace): Add 'self' argument.
11099 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11101 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11104 2014-02-19 Tom Tromey <tromey@redhat.com>
11106 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11107 (target_can_use_agent): Add argument.
11108 * target.c (update_current_target): Update.
11109 * remote.c (remote_can_use_agent): Add 'self' argument.
11110 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11114 * target.h (struct target_ops) <to_use_agent>: Add argument.
11115 (target_use_agent): Add argument.
11116 * target.c (update_current_target): Update.
11117 * remote.c (remote_use_agent): Add 'self' argument.
11118 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11120 2014-02-19 Tom Tromey <tromey@redhat.com>
11122 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11123 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11124 (target_traceframe_info): Add argument.
11125 * target.c (update_current_target): Update.
11126 * remote.c (remote_traceframe_info): Add 'self' argument.
11127 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11129 2014-02-19 Tom Tromey <tromey@redhat.com>
11131 * target.h (target_static_tracepoint_markers_by_strid): Add
11133 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11135 * target.c (update_current_target): Update.
11136 * remote.c (struct target_ops)
11137 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11138 * linux-nat.c (struct target_ops)
11139 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11143 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11145 (target_static_tracepoint_marker_at): Add argument.
11146 * target.c (update_current_target): Update.
11147 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11150 2014-02-19 Tom Tromey <tromey@redhat.com>
11152 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11153 (target_set_permissions): Add argument.
11154 * target.c (update_current_target): Update.
11155 * remote.c (remote_set_permissions): Add 'self' argument.
11156 (remote_start_remote): Update.
11158 2014-02-19 Tom Tromey <tromey@redhat.com>
11160 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11161 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11162 (target_get_tib_address): Add argument.
11163 * target.c (update_current_target): Update.
11164 * remote.c (remote_get_tib_address): Add 'self' argument.
11166 2014-02-19 Tom Tromey <tromey@redhat.com>
11168 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11169 (target_set_trace_notes): Add argument.
11170 * target.c (update_current_target): Update.
11171 * remote.c (remote_set_trace_notes): Add 'self' argument.
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11175 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11177 (target_set_trace_buffer_size): Add argument.
11178 * target.c (update_current_target): Update.
11179 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11185 (target_set_circular_trace_buffer): Add argument.
11186 * target.c (update_current_target): Update.
11187 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11190 2014-02-19 Tom Tromey <tromey@redhat.com>
11192 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11194 (target_set_disconnected_tracing): Add argument.
11195 * target.c (update_current_target): Update.
11196 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11200 * target.h (struct target_ops)
11201 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11202 (target_get_min_fast_tracepoint_insn_len): Add argument.
11203 * target.c (update_current_target): Update.
11204 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11207 2014-02-19 Tom Tromey <tromey@redhat.com>
11209 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11211 (target_get_raw_trace_data): Add argument.
11212 * target.c (update_current_target): Update.
11213 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11215 2014-02-19 Tom Tromey <tromey@redhat.com>
11217 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11219 (target_upload_trace_state_variables): Add argument.
11220 * target.c (update_current_target): Update.
11221 * remote.c (remote_upload_trace_state_variables): Add 'self'
11223 (remote_start_remote): Update.
11225 2014-02-19 Tom Tromey <tromey@redhat.com>
11227 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11229 (target_upload_tracepoints): Add argument.
11230 * target.c (update_current_target): Update.
11231 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11232 (remote_start_remote): Update.
11234 2014-02-19 Tom Tromey <tromey@redhat.com>
11236 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11237 (target_save_trace_data): Add argument.
11238 * target.c (update_current_target): Update.
11239 * remote.c (remote_save_trace_data): Add 'self' argument.
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11245 * target.h (struct target_ops)
11246 <to_get_trace_state_variable_value>: Add argument.
11247 (target_get_trace_state_variable_value): Add argument.
11248 * target.c (update_current_target): Update.
11249 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11251 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11256 * target.h (struct target_ops) <to_trace_find>: Add argument.
11257 (target_trace_find): Add argument.
11258 * target.c (update_current_target): Update.
11259 * remote.c (remote_trace_find): Add 'self' argument.
11260 * ctf.c (ctf_trace_find): Add 'self' argument.
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11264 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11265 (target_trace_stop): Add argument.
11266 * target.c (update_current_target): Update.
11267 * remote.c (remote_trace_stop): Add 'self' argument.
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11271 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11272 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11274 (target_get_tracepoint_status): Add argument.
11275 * target.c (update_current_target): Update.
11276 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11278 2014-02-19 Tom Tromey <tromey@redhat.com>
11280 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11281 * target.h (struct target_ops) <to_get_trace_status>: Add
11283 (target_get_trace_status): Add argument.
11284 * target.c (update_current_target): Update.
11285 * remote.c (remote_get_trace_status): Add 'self' argument.
11286 (remote_start_remote, remote_can_download_tracepoint): Update.
11287 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11289 2014-02-19 Tom Tromey <tromey@redhat.com>
11291 * target.h (struct target_ops) <to_trace_start>: Add argument.
11292 (target_trace_start): Add argument.
11293 * target.c (update_current_target): Update.
11294 * remote.c (remote_trace_start): Add 'self' argument.
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11300 (target_trace_set_readonly_regions): Add argument.
11301 * target.c (update_current_target): Update.
11302 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11305 2014-02-19 Tom Tromey <tromey@redhat.com>
11307 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11309 (target_disable_tracepoint): Add argument.
11310 * target.c (update_current_target): Update.
11311 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11313 2014-02-19 Tom Tromey <tromey@redhat.com>
11315 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11317 (target_enable_tracepoint): Add argument.
11318 * target.c (update_current_target): Update.
11319 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11323 * target.h (struct target_ops) <to_download_trace_state_variable>:
11325 (target_download_trace_state_variable): Add argument.
11326 * target.c (update_current_target): Update.
11327 * remote.c (remote_download_trace_state_variable): Add 'self'
11330 2014-02-19 Tom Tromey <tromey@redhat.com>
11332 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11334 (target_can_download_tracepoint): Add argument.
11335 * target.c (update_current_target): Update.
11336 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11340 * target.h (struct target_ops) <to_download_tracepoint>: Add
11342 (target_download_tracepoint): Add argument.
11343 * target.c (update_current_target): Update.
11344 * remote.c (remote_download_tracepoint): Add 'self' argument.
11346 2014-02-19 Tom Tromey <tromey@redhat.com>
11348 * target.h (struct target_ops) <to_trace_init>: Add argument.
11349 (target_trace_init): Add argument.
11350 * target.c (update_current_target): Update.
11351 * remote.c (remote_trace_init): Add 'self' argument.
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11355 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11356 * target.c (target_fileio_readlink): Add argument.
11357 * remote.c (remote_hostio_readlink): Add 'self' argument.
11358 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11362 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11363 * target.c (target_fileio_unlink): Add argument.
11364 * remote.c (remote_hostio_unlink): Add 'self' argument.
11365 (remote_file_delete): Update.
11366 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11368 2014-02-19 Tom Tromey <tromey@redhat.com>
11370 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11371 * target.c (target_fileio_close): Add argument.
11372 * remote.c (remote_hostio_close): Add 'self' argument.
11373 (remote_hostio_close_cleanup): Update.
11374 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11376 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11380 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11381 * target.c (target_fileio_pread): Add argument.
11382 * remote.c (remote_hostio_pread): Add 'self' argument.
11383 (remote_bfd_iovec_pread, remote_file_get): Update.
11384 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11386 2014-02-19 Tom Tromey <tromey@redhat.com>
11388 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11389 * target.c (target_fileio_pwrite): Add argument.
11390 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11391 (remote_file_put): Update.
11392 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11396 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11397 * target.c (target_fileio_open): Add argument.
11398 * remote.c (remote_hostio_open): Add 'self' argument.
11399 (remote_bfd_iovec_open): Add 'self' argument.
11400 (remote_file_put): Add 'self' argument.
11401 (remote_file_get): Add 'self' argument.
11402 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11404 2014-02-19 Tom Tromey <tromey@redhat.com>
11406 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11408 (target_can_run_breakpoint_commands): Add argument.
11409 * target.c (update_current_target): Update.
11410 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11412 (remote_insert_breakpoint): Add 'self' argument.
11413 (remote_insert_hw_breakpoint): Add 'self' argument.
11414 (remote_can_run_breakpoint_commands): Add 'self' argument.
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target.h (struct target_ops)
11419 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11420 (target_supports_evaluation_of_breakpoint_conditions): Add
11422 * target.c (update_current_target): Update.
11423 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11425 (remote_insert_breakpoint): Add 'self' argument.
11426 (remote_insert_hw_breakpoint): Add 'self' argument.
11427 (remote_supports_cond_breakpoints): Add 'self' argument.
11429 2014-02-19 Tom Tromey <tromey@redhat.com>
11431 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11433 (target_supports_string_tracing): Add argument.
11434 * target.c (update_current_target): Update.
11435 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11437 2014-02-19 Tom Tromey <tromey@redhat.com>
11439 * target.h (struct target_ops)
11440 <to_supports_disable_randomization>: Add argument.
11441 * target.c (find_default_supports_disable_randomization): Add
11443 (target_supports_disable_randomization): Add argument.
11444 (find_default_supports_disable_randomization): Add 'self'
11446 * remote.c (extended_remote_supports_disable_randomization): Add
11448 (remote_supports_disable_randomization): Add 'self' argument.
11449 (extended_remote_create_inferior): Update.
11450 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11455 * target.h (struct target_ops)
11456 <to_supports_enable_disable_tracepoint>: Add argument.
11457 (target_supports_enable_disable_tracepoint): Add argument.
11458 * target.c (update_current_target): Update.
11459 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11462 2014-02-19 Tom Tromey <tromey@redhat.com>
11464 * target.h (struct target_ops) <to_supports_multi_process>: Add
11466 (target_supports_multi_process): Add argument.
11467 * target.c (update_current_target): Update.
11468 * remote.c (remote_supports_multi_process): Add 'self' argument.
11469 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11471 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11474 2014-02-19 Tom Tromey <tromey@redhat.com>
11476 * target.h (struct target_ops) <to_execution_direction>: Add
11478 (target_execution_direction): Add argument.
11479 * target.c (default_execution_direction): Add 'self' argument.
11480 * record-full.c (record_full_execution_direction): Add 'self'
11483 2014-02-19 Tom Tromey <tromey@redhat.com>
11485 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11487 (target_can_execute_reverse): Add argument.
11488 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11489 * record-full.c (record_full_can_execute_reverse): Add 'self'
11491 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11494 2014-02-19 Tom Tromey <tromey@redhat.com>
11496 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11497 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11499 (target_get_ada_task_ptid): Add argument.
11500 * target.c (update_current_target): Update.
11501 (default_get_ada_task_ptid): Add 'self' argument.
11502 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11503 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11504 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11506 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11508 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11510 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11512 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11513 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11516 2014-02-19 Tom Tromey <tromey@redhat.com>
11518 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11519 (target_goto_bookmark): Add argument.
11520 * target.c (dummy_goto_bookmark): Add 'self' argument.
11521 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11523 2014-02-19 Tom Tromey <tromey@redhat.com>
11525 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11526 (target_get_bookmark): Add argument.
11527 * target.c (dummy_get_bookmark): Add 'self' argument.
11528 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11532 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11534 (target_make_corefile_notes): Add argument.
11535 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11536 * procfs.c (procfs_make_note_section): Add 'self' argument.
11537 (procfs_make_note_section): Add 'self' argument.
11538 (procfs_make_note_section): Add 'self' argument.
11539 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11541 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11542 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11543 * exec.c (exec_make_note_section): Add 'self' argument.
11544 (exec_make_note_section): Add 'self' argument.
11546 2014-02-19 Tom Tromey <tromey@redhat.com>
11548 * target.h (struct target_ops) <to_find_memory_regions>: Add
11550 (target_find_memory_regions): Add argument.
11551 * target.c (dummy_find_memory_regions): Add 'self' argument.
11552 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11553 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11554 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11555 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11556 * exec. (exec_do_find_memory_regions): New global.
11557 (exec_set_find_memory_regions): Rewrite.
11558 (exec_find_memory_regions): New function.
11559 (init_exec_ops): Use exec_find_memory_regions.
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * target.h (struct target_ops) <to_supports_non_stop>: Add
11565 * target.c (find_default_supports_non_stop): Add argument.
11566 (target_supports_non_stop): Add argument.
11567 (find_default_supports_non_stop): Add 'self' argument.
11568 * remote.c (remote_supports_non_stop): Add 'self' argument.
11569 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11573 * target.h (struct target_ops) <to_log_command>: Add argument.
11574 (target_log_command): Add argument.
11575 * serial.h (serial_log_command): Add 'self' argument.
11576 * serial.c (serial_log_command): Add 'self' argument.
11578 2014-02-19 Tom Tromey <tromey@redhat.com>
11580 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11581 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11583 (target_pid_to_exec_file): Add argument.
11584 * target.c (debug_to_pid_to_exec_file): Add argument.
11585 (update_current_target): Update.
11586 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11587 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11588 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11589 (linux_handle_extended_wait): Update.
11590 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11591 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11592 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11593 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * target.h (struct target_ops) <to_rcmd>: Add argument.
11598 (target_rcmd): Add argument.
11599 * target.c (debug_to_rcmd): Add argument.
11600 (update_current_target, do_monitor_command): Update.
11601 * remote.c (remote_rcmd): Add 'self' argument.
11602 * monitor.c (monitor_rcmd): Add 'self' argument.
11604 2014-02-19 Tom Tromey <tromey@redhat.com>
11606 * windows-nat.c (windows_stop): Add 'self' argument.
11607 * target.h (struct target_ops) <to_stop>: Add argument.
11608 * target.c (target_stop): Add argument.
11609 (debug_to_stop): Add argument.
11610 (update_current_target): Update.
11611 * remote.c (remote_stop): Add 'self' argument.
11612 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11613 (gdbsim_cntrl_c): Update.
11614 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11615 * procfs.c (procfs_stop): Add 'self' argument.
11616 * nto-procfs.c (procfs_stop): Add 'self' argument.
11617 * monitor.c (monitor_stop): Add 'self' argument.
11618 (monitor_open): Update.
11619 * linux-nat.c (linux_nat_stop): Add argument.
11620 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11621 * gnu-nat.c (gnu_stop): Add 'self' argument.
11622 * darwin-nat.c (darwin_stop): Add 'self' argument.
11624 2014-02-19 Tom Tromey <tromey@redhat.com>
11626 * target.h (struct target_ops) <to_thread_name>: Add argument.
11627 * target.c (target_thread_name): Add argument.
11628 (update_current_target): Update.
11629 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11631 2014-02-19 Tom Tromey <tromey@redhat.com>
11633 * target.h (struct target_ops) <to_extra_thread_info>: Add
11635 (target_extra_thread_info): Add argument.
11636 * target.c (update_current_target): Update.
11637 * remote.c (remote_threads_extra_info): Add 'self' argument.
11638 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11640 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11641 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11642 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11644 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11646 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11648 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11653 * target.h (struct target_ops) <to_program_signals>: Add argument.
11654 * target.c (target_program_signals): Add argument.
11655 * remote.c (remote_program_signals): Add 'self' argument.
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11659 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11660 * target.c (target_pass_signals): Add argument.
11661 * remote.c (remote_pass_signals): Add 'self' argument.
11662 (remote_start_remote): Update.
11663 * procfs.c (procfs_pass_signals): Add 'self' argument.
11664 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11665 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11666 (linux_nat_create_inferior, linux_nat_attach): Update.
11668 2014-02-19 Tom Tromey <tromey@redhat.com>
11670 * windows-nat.c (windows_can_run): Add 'self' argument.
11671 * target.h (struct target_ops) <to_can_run>: Add argument.
11672 (target_can_run): Add argument.
11673 * target.c (debug_to_can_run): Add argument.
11674 (update_current_target): Update.
11675 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11676 * inf-child.c (inf_child_can_run): Add 'self' argument.
11677 * go32-nat.c (go32_can_run): Add 'self' argument.
11679 2014-02-19 Tom Tromey <tromey@redhat.com>
11681 * target.h (struct target_ops) <to_has_exited>: Add argument.
11682 (target_has_exited): Add argument.
11683 * target.c (debug_to_has_exited): Add argument.
11684 (update_current_target): Update.
11686 2014-02-19 Tom Tromey <tromey@redhat.com>
11688 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11690 (target_set_syscall_catchpoint): Add argument.
11691 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11693 * target.c (update_current_target): Update.
11695 2014-02-19 Tom Tromey <tromey@redhat.com>
11697 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11699 (target_remove_exec_catchpoint): Add argument.
11700 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11701 (update_current_target): Update.
11702 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11707 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11709 (target_insert_exec_catchpoint): Add argument.
11710 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11711 (update_current_target): Update.
11712 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11715 2014-02-19 Tom Tromey <tromey@redhat.com>
11717 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11719 (target_remove_vfork_catchpoint): Add argument.
11720 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11721 (update_current_target): Update.
11722 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11725 2014-02-19 Tom Tromey <tromey@redhat.com>
11727 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11729 (target_insert_vfork_catchpoint): Add argument.
11730 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11731 (update_current_target): Update.
11732 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11735 2014-02-19 Tom Tromey <tromey@redhat.com>
11737 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11739 (target_remove_fork_catchpoint): Add argument.
11740 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11741 (update_current_target): Update.
11742 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11745 2014-02-19 Tom Tromey <tromey@redhat.com>
11747 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11749 (target_insert_fork_catchpoint): Add argument.
11750 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11751 (update_current_target): Update.
11752 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11755 2014-02-19 Tom Tromey <tromey@redhat.com>
11757 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11759 (target_post_startup_inferior): Add argument.
11760 * target.c (debug_to_post_startup_inferior): Add argument.
11761 (update_current_target): Update.
11762 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11764 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11766 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11768 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11770 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11772 (super_post_startup_inferior): Likewise.
11773 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11775 (super_post_startup_inferior): Likewise.
11776 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11777 Add 'self' argument.
11778 (super_post_startup_inferior): Likewise.
11780 2014-02-19 Tom Tromey <tromey@redhat.com>
11782 * target.h (struct target_ops) <to_load>: Add argument.
11783 * target.c (target_load): Add argument.
11784 (debug_to_load): Add argument.
11785 (update_current_target): Update.
11786 * remote.c (remote_load): Add 'self' argument.
11787 * remote-sim.c (gdbsim_load): Add 'self' argument.
11788 * remote-mips.c (mips_load): Add 'self' argument.
11789 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11790 * monitor.c (monitor_load): Add 'self' argument.
11791 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11795 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11796 (target_terminal_info): Add argument.
11797 * target.c (debug_to_terminal_info): Add argument.
11798 (default_terminal_info): Likewise.
11799 * inflow.c (child_terminal_info): Add 'self' argument.
11800 * inferior.h (child_terminal_info): Add 'self' argument.
11801 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11803 2014-02-19 Tom Tromey <tromey@redhat.com>
11805 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11807 (target_terminal_save_ours): Add argument.
11808 * target.c (debug_to_terminal_save_ours): Add argument.
11809 (update_current_target): Update.
11810 * inflow.c (terminal_save_ours): Add 'self' argument.
11811 * inferior.h (terminal_save_ours): Add 'self' argument.
11813 2014-02-19 Tom Tromey <tromey@redhat.com>
11815 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11816 (target_terminal_ours): Add argument.
11817 * target.c (debug_to_terminal_ours): Add argument.
11818 (update_current_target): Update.
11819 * remote.c (remote_terminal_ours): Add 'self' argument.
11820 (remote_close): Update.
11821 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11822 * inflow.c (terminal_ours): Add 'self' argument.
11823 * inferior.h (terminal_ours): Add 'self' argument.
11824 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11826 2014-02-19 Pedro Alves <palves@redhat.com>
11827 Tom Tromey <tromey@redhat.com>
11829 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11831 (target_terminal_ours_for_output): Add argument.
11832 * target.c (debug_to_terminal_ours_for_output): Add argument.
11833 (update_current_target): Update.
11834 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11835 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11836 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11838 2014-02-19 Tom Tromey <tromey@redhat.com>
11840 * target.h (struct target_ops) <to_terminal_inferior>: Add
11842 * target.c (target_terminal_inferior): Add argument.
11843 (update_current_target): Update.
11844 * remote.c (remote_terminal_inferior): Add 'self' argument.
11845 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11846 * inflow.c (terminal_inferior): Add 'self' argument.
11847 * inferior.h (terminal_inferior): Add 'self' argument.
11848 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11849 (go32_terminal_inferior): Add 'self' argument.
11851 2014-02-19 Tom Tromey <tromey@redhat.com>
11853 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11854 (target_terminal_init): Add argument.
11855 * target.c (debug_to_terminal_init): Add argument.
11856 (update_current_target): Update.
11857 * inflow.c (terminal_init_inferior): Add 'self' argument.
11858 * inferior.h (terminal_init_inferior): Add 'self' argument.
11859 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11860 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11862 2014-02-19 Tom Tromey <tromey@redhat.com>
11864 * target.h (struct target_ops)
11865 <to_can_accel_watchpoint_condition>: Add argument.
11866 (target_can_accel_watchpoint_condition): Add argument.
11867 * target.c (debug_to_can_accel_watchpoint_condition): Add
11869 (update_current_target): Update.
11870 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11873 2014-02-19 Tom Tromey <tromey@redhat.com>
11875 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11877 (target_region_ok_for_hw_watchpoint): Add argument.
11878 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11879 (default_region_ok_for_hw_watchpoint): Add argument.
11880 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11881 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11883 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11885 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11887 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11889 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11891 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11893 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11894 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11896 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11897 Add 'self' argument.
11899 2014-02-19 Tom Tromey <tromey@redhat.com>
11901 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11903 (target_insert_watchpoint): Add argument.
11904 * target.c (debug_to_insert_watchpoint): Add argument.
11905 (update_current_target): Update.
11906 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11907 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11908 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11909 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11910 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11911 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11913 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11914 (procfs_insert_hw_watchpoint): Add 'self' argument.
11915 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11917 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11919 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11921 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11922 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11924 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11929 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11931 (target_remove_watchpoint): Add argument.
11932 * target.c (debug_to_remove_watchpoint): Add argument.
11933 (update_current_target): Update.
11934 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11935 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11936 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11937 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11938 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11939 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11941 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11942 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11944 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11946 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11948 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11949 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11951 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11954 2014-02-19 Tom Tromey <tromey@redhat.com>
11956 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11958 (target_remove_hw_breakpoint): Add argument.
11959 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11960 (update_current_target): Update.
11961 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11962 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11964 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11965 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11967 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11970 2014-02-19 Tom Tromey <tromey@redhat.com>
11972 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11974 (target_insert_hw_breakpoint): Add argument.
11975 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11976 (update_current_target): Update.
11977 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11978 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11980 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11981 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11982 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11984 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11987 2014-02-19 Tom Tromey <tromey@redhat.com>
11989 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11991 (target_can_use_hardware_watchpoint): Add argument.
11992 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11993 (update_current_target): Update.
11994 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11996 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11998 * remote.c (remote_check_watch_resources): Add 'self' argument.
11999 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12000 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12002 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12003 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12005 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12007 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12009 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12011 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12013 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12015 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12016 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12018 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12023 * target.h (struct target_ops) <to_post_attach>: Add argument.
12024 (target_post_attach): Add argument.
12025 * target.c (debug_to_post_attach): Add argument.
12026 (update_current_target): Update.
12027 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12028 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12029 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12030 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12031 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12033 2014-02-19 Tom Tromey <tromey@redhat.com>
12035 * windows-nat.c (windows_close): Add 'self' argument.
12036 * tracepoint.c (tfile_close): Add 'self' argument.
12037 * target.h (struct target_ops) <to_close>: Add argument.
12038 * target.c (target_close): Add argument.
12039 (update_current_target): Update.
12040 * remote.c (remote_close): Add 'self' argument.
12041 * remote-sim.c (gdbsim_close): Add 'self' argument.
12042 * remote-mips.c (mips_close): Add 'self' argument.
12043 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12044 * record-full.c (record_full_close): Add 'self' argument.
12045 * record-btrace.c (record_btrace_close): Add 'self' argument.
12046 * monitor.h (monitor_close): Add 'self' argument.
12047 * monitor.c (monitor_close): Add 'self' argument.
12048 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12049 * linux-nat.c (linux_nat_close): Add argument.
12050 * go32-nat.c (go32_close): Add 'self' argument.
12051 * exec.c (exec_close_1): Add 'self' argument.
12052 * ctf.c (ctf_close): Add 'self' argument.
12053 * corelow.c (core_close): Add 'self' argument.
12054 (core_close_cleanup): Update.
12055 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12056 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12058 2014-02-19 Tom Tromey <tromey@redhat.com>
12060 * remote.c (remote_load): New function.
12061 (init_remote_ops): Use it.
12063 2014-02-19 Tom Tromey <tromey@redhat.com>
12065 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12067 * common/linux-btrace.h (linux_supports_btrace): Update.
12068 * remote.c (remote_supports_btrace): Add "self" argument.
12069 * target-delegates.c: Rebuild.
12070 * target.c (target_supports_btrace): Remove.
12071 * target.h (struct target_ops) <to_supports_btrace>: Add
12072 target_ops argument.
12073 (target_supports_btrace): New define.
12075 2014-02-19 Tom Tromey <tromey@redhat.com>
12077 * record-full.c (record_full_beneath_to_resume_ops)
12078 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12079 (record_full_beneath_to_wait)
12080 (record_full_beneath_to_store_registers_ops)
12081 (record_full_beneath_to_store_registers)
12082 (record_full_beneath_to_xfer_partial_ops)
12083 (record_full_beneath_to_xfer_partial)
12084 (record_full_beneath_to_insert_breakpoint_ops)
12085 (record_full_beneath_to_insert_breakpoint)
12086 (record_full_beneath_to_remove_breakpoint_ops)
12087 (record_full_beneath_to_remove_breakpoint)
12088 (record_full_beneath_to_stopped_by_watchpoint)
12089 (record_full_beneath_to_stopped_data_address)
12090 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12091 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12092 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12093 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12094 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12095 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12096 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12097 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12098 (record_full_resume, record_full_wait_1)
12099 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12100 (record_full_store_registers, record_full_xfer_partial)
12101 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12102 (record_full_async, record_full_core_xfer_partial): Use target
12104 * target-delegates.c: Rebuild.
12105 * target.c (current_xfer_partial): Remove.
12106 (update_current_target): Do not INHERIT or de_fault
12107 to_insert_breakpoint, to_remove_breakpoint,
12108 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12109 to_is_async_p, to_async. Do not set to_xfer_partial field.
12110 (default_xfer_partial): Simplify.
12111 (current_xfer_partial): Remove.
12112 (target_wait, target_resume): Simplify.
12113 (find_default_can_async_p, find_default_is_async_p): Update.
12114 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12115 to_xfer_partial, to_stopped_by_watchpoint,
12116 to_stopped_data_address.
12117 (target_store_registers): Simplify.
12118 (forward_target_remove_breakpoint)
12119 (forward_target_insert_breakpoint): Remove.
12120 (target_remove_breakpoint, target_insert_breakpoint)
12121 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12122 * target.h (struct target_ops) <to_resume, to_wait,
12123 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12124 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12125 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12127 (forward_target_remove_breakpoint)
12128 (forward_target_insert_breakpoint): Remove.
12129 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12131 (record_btrace_insert_breakpoint): Delegate directly.
12133 2014-02-19 Tom Tromey <tromey@redhat.com>
12136 * target-delegates.c: New file.
12137 * target.c: Include target-delegates.c.
12138 (init_dummy_target): Call install_dummy_methods.
12139 (complete_target_initialization): Call install_delegators.
12140 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12141 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12142 * make-target-delegates: New file.
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12146 * record.c (find_record_target): Use find_target_at.
12147 * target.c (find_target_at): New function.
12148 * target.h (find_target_at): Declare.
12150 2014-02-19 Tom Tromey <tromey@redhat.com>
12152 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12153 Add 'ops' argument.
12154 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12156 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12157 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12159 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12161 * linux-nat.c (save_sigtrap): Update.
12162 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12163 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12164 (linux_nat_close): Update.
12165 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12167 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12169 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12170 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12171 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12172 (tmp_to_async): Add 'ops' argument.
12173 (record_full_stopped_by_watchpoint, record_full_async)
12174 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12176 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12177 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12178 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12179 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12180 (remote_is_async_p, remote_async): Add 'ops' argument.
12181 (remote_stopped_data_address): Update.
12182 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12183 * target.c (update_current_target)
12184 (find_default_can_async_p, find_default_is_async_p): Update.
12185 (init_dummy_target): Update.
12186 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12187 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12188 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12189 (target_can_async_p, target_is_async_p, target_async)
12190 (target_stopped_by_watchpoint): Update.
12192 2014-02-19 Yao Qi <yao@codesourcery.com>
12195 * gdbarch.sh: Remove startup_gdbarch.
12196 * gdbarch.c: Regenerated.
12197 * gdbarch.h: Likewise.
12199 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12201 * rl78-tdep.c (rl78_g10_register_name): New function.
12202 (rl78_return_value): Add g10 support.
12203 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12206 2014-02-17 Doug Evans <xdje42@gmail.com>
12208 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12209 (SUBDIR_GUILE_SRCS): Ditto.
12210 (scm-gsmob.o): Ditto.
12212 2014-02-17 Yao Qi <yao@codesourcery.com>
12214 * gnu-nat.c (ILL_RPC): Declare defined function.
12216 2014-02-17 Yao Qi <yao@codesourcery.com>
12218 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12219 mach_msg_type_number_t.
12220 (gnu_write_inferior): Likewise.
12222 2014-02-17 Yao Qi <yao@codesourcery.com>
12224 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12226 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12227 (inf_validate_procs, inf_signal): Likewise.
12228 (S_exception_raise_request): Likewise.
12229 (do_mach_notify_dead_name): Likewise.
12230 (steal_exc_port): Likewise.
12231 (gnu_read_inferior): Change 'copy_count''s type to
12232 mach_msg_type_number_t.
12233 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12236 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12238 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12239 flag. Adjust all users; in particular...
12240 (gnu_wait): ..., don't decrement its value in here...
12241 (gnu_create_inferior): ..., and instead set the flag in here,
12242 around the startup_inferior call, and call that one with
12243 START_INFERIOR_TRAPS_EXPECTED.
12245 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12246 (ILL_RPC): ... new macro.
12247 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12248 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12249 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12250 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12251 functions with ILL_RPC macro.
12252 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12253 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12254 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12255 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12256 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12257 (S_proc_getlogin_reply, S_proc_getsid_reply)
12258 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12259 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12260 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12261 (S_proc_getnports_reply, S_proc_is_important_reply)
12262 (S_proc_get_code_reply): New stub functions, generated with
12265 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12266 collected the type check structures.
12268 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12270 2014-02-14 Doug Evans <dje@google.com>
12272 * target.c (target_write_partial): Fix result type.
12274 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12276 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12277 the proper offsets to access fpregset_t.
12279 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12281 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12282 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12283 * h8300-tdep.c (setmachinelist): Remove global.
12284 * hppa-tdep.c (hppa_sigtramp): Remove global.
12285 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12286 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12287 * ravenscar-thread.c (update_target_observer): Remove global.
12288 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12290 2014-02-12 Tom Tromey <tromey@redhat.com>
12292 * common/rsp-low.c: Update comments.
12293 * common/rsp-low.h: Update comments.
12295 2014-02-12 Tom Tromey <tromey@redhat.com>
12297 * common/rsp-low.c (convert_ascii_to_int): Remove.
12298 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12300 2014-02-12 Tom Tromey <tromey@redhat.com>
12302 * common/rsp-low.h (unhexify): Don't declare.
12303 * common/rsp-low.c (unhexify): Remove.
12305 2014-02-12 Tom Tromey <tromey@redhat.com>
12307 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12308 * common/rsp-low.c (convert_int_to_ascii): Remove.
12310 2014-02-12 Tom Tromey <tromey@redhat.com>
12312 * common/rsp-low.h (hexify): Don't declare.
12313 * common/rsp-low.c (hexify): Remove.
12315 2014-02-12 Tom Tromey <tromey@redhat.com>
12317 * common/rsp-low.c (hexify): Never take strlen of argument.
12319 2014-02-12 Tom Tromey <tromey@redhat.com>
12321 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12322 * remote.c (extended_remote_run, remote_rcmd)
12323 (remote_download_trace_state_variable, remote_save_trace_data)
12324 (remote_set_trace_notes): Update.
12325 * tracepoint.c (encode_source_string, tfile_write_status)
12326 (tfile_write_uploaded_tsv): Update.
12328 2014-02-12 Tom Tromey <tromey@redhat.com>
12330 * tracepoint.c: Include rsp-low.h.
12331 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12332 * remote.c: Include rsp-low.h.
12333 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12334 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12335 (remote_unescape_input): Move to common/rsp-low.c.
12336 * common/rsp-low.h: New file.
12337 * common/rsp-low.c: New file.
12338 * Makefile.in (SFILES): Add common/rsp-low.c.
12339 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12340 (COMMON_OBS): Add rsp-low.o.
12341 (rsp-low.o): New target.
12343 2014-02-12 Tom Tromey <tromey@redhat.com>
12345 * utils.h: Include print-utils.h.
12346 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12347 (int_string, core_addr_to_string, core_addr_to_string_nz)
12348 (hex_string, hex_string_custom): Don't declare.
12349 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12350 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12351 (hex_string_custom, int_string, core_addr_to_string)
12352 (core_addr_to_string_nz, host_address_to_string): Move to
12353 common/print-utils.c.
12354 * common/print-utils.h: New file.
12355 * common/print-utils.c: New file
12356 * Makefile.in (SFILES): Add common/print-utils.c.
12357 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12358 (COMMON_OBS): Add print-utils.o.
12359 (print-utils.o): New target.
12361 2014-02-12 Tom Tromey <tromey@redhat.com>
12363 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12365 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12367 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12369 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12371 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12372 if a PT_IO ptrace request returns sucessfully but indicates that 0
12373 bytes were transferred.
12375 2014-02-12 Pedro Alves <palves@redhat.com>
12376 Kevin Buettner <kevinb@redhat.com>
12378 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12379 TYPE_INSTANCE_FLAG_CODE_SPACE.
12381 2014-02-12 Pedro Alves <palves@redhat.com>
12383 * h8300-tdep.c (pseudo_from_raw_register)
12384 (raw_from_pseudo_register): New functions.
12385 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12388 2014-02-12 Pedro Alves <palves@redhat.com>
12390 * h8300-tdep.c (h8300_register_sim_regno): New function.
12391 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12392 gdbarch_register_sim_regno hook.
12394 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12396 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12398 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12400 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12402 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12404 * obsd-tdep.h (obsd_init_abi): New prototype.
12405 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12406 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12407 (obsd_init_abi): New functions.
12408 * i386obsd-tdep.c: Include "obsd-tdep.h".
12409 (i386obsd_init_abi): Call obsd_init_abi.
12410 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12411 (amd64obsd_init_abi): Call obsd_init_abi.
12412 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12413 obsd-tdep.c to gdb_target_obs.
12415 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12417 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12418 double float arguments to 16-byte in the argument slots.
12420 2014-02-11 Doug Evans <xdje42@gmail.com>
12422 * configure.ac: Don't crash if pkg-config is not found and guile
12423 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12425 * configure: Regenerate.
12427 2014-02-11 Yao Qi <yao@codesourcery.com>
12429 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12430 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12431 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12432 * gnu-nat.c (gnu_xfer_memory): Likewise.
12433 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12434 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12435 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12436 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12438 2014-02-11 Yao Qi <yao@codesourcery.com>
12440 * target.h (enum target_xfer_error): Rename to ...
12441 (enum target_xfer_status): ... it. New. All users updated.
12442 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12444 (TARGET_XFER_STATUS_ERROR_P): New macro.
12445 (target_xfer_error_to_string): Remove declaration.
12446 (target_xfer_status_to_string): Declare.
12447 (target_xfer_partial_ftype): Adjust it.
12448 (struct target_ops) <to_xfer_partial>: Return
12449 target_xfer_status. Add argument xfered_len. Update
12451 * target.c (target_xfer_error_to_string): Rename to ...
12452 (target_xfer_status_to_string): ... it. New. All callers
12454 (target_read_live_memory): Likewise. Call target_xfer_partial
12455 instead of target_read.
12456 (memory_xfer_live_readonly_partial): Return
12457 target_xfer_status. Add argument xfered_len.
12458 (raw_memory_xfer_partial): Likewise.
12459 (memory_xfer_partial_1): Likewise.
12460 (memory_xfer_partial): Likewise.
12461 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12462 properly. Update debug message.
12463 (default_xfer_partial, current_xfer_partial): Likewise.
12464 (target_write_partial): Likewise.
12465 (target_read_partial): Likewise. All callers updated.
12466 (read_whatever_is_readable): Likewise.
12467 (target_write_with_progress): Likewise.
12468 (target_read_alloc_1): Likewise.
12470 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12471 * auxv.c (procfs_xfer_auxv): Likewise.
12472 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12473 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12474 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12475 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12476 * corefile.c (read_memory): Adjust.
12477 * corelow.c (core_xfer_partial): Likewise.
12478 * ctf.c (ctf_xfer_partial): Likewise.
12479 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12481 (darwin_xfer_partial): Likewise.
12482 * exec.c (section_table_xfer_memory_partial): Likewise. All
12484 (exec_xfer_partial): Likewise.
12485 * exec.h (section_table_xfer_memory_partial): Update
12487 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12489 (gnu_xfer_partial): Likewise.
12490 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12491 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12492 (ia64_hpux_xfer_solib_got): Likewise.
12493 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12494 type of 'partial_len' to ULONGEST.
12495 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12496 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12497 (linux_nat_xfer_partial): Likewise.
12498 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12499 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12500 * monitor.c (monitor_xfer_memory): Likewise.
12501 (monitor_xfer_partial): Likewise.
12502 * procfs.c (procfs_xfer_partial): Likewise.
12503 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12504 * record-full.c (record_full_xfer_partial): Likewise.
12505 (record_full_core_xfer_partial): Likewise.
12506 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12507 (gdbsim_xfer_partial): Likewise.
12508 * remote.c (remote_write_bytes_aux): Likewise. All callers
12510 (remote_write_bytes, remote_read_bytes): Likewise. All
12512 (remote_flash_erase): Likewise. All callers updated.
12513 (remote_write_qxfer): Likewise. All callers updated.
12514 (remote_read_qxfer): Likewise. All callers updated.
12515 (remote_xfer_partial): Likewise.
12516 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12517 (rs6000_xfer_shared_libraries): Likewise.
12518 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12519 (sol_thread_xfer_partial): Likewise.
12520 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12521 (sparc_xfer_partial): Likewise.
12522 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12524 (spu_xfer_partial): Likewise.
12525 * spu-multiarch.c (spu_xfer_partial): Likewise.
12526 * tracepoint.c (tfile_xfer_partial): Likewise.
12527 * windows-nat.c (windows_xfer_memory): Likewise.
12528 (windows_xfer_shared_libraries): Likewise.
12529 (windows_xfer_partial): Likewise.
12530 * valprint.c: Replace 'target_xfer_error' with
12531 'target_xfer_status' in comments.
12533 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12535 Checked in by Joel Brobecker <brobecker@adacore.com>.
12536 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12538 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12540 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12541 function parameters.
12543 2014-02-10 Will Newton <will.newton@linaro.org>
12545 * elfread.c (elf_rel_plt_read): Look for a .got section if
12546 looking up .got.plt fails.
12547 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12548 on address passed to elf_gnu_ifunc_record_cache.
12549 (elf_gnu_ifunc_resolve_addr): Likewise.
12550 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12552 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12554 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12555 (X_RETTURN): New macro.
12556 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12558 * sparc64-tdep.c (sparc64_init_abi): Hook
12559 sparc_in_function_epilogue_p.
12561 2014-02-10 Gary Benson <gbenson@redhat.com>
12563 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12564 Rename name_matcher to symbol_matcher.
12566 2014-02-10 Gary Benson <gbenson@redhat.com>
12568 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12569 Use expand_symtabs_file_matcher_ftype and
12570 expand_symtabs_symbol_matcher_ftype.
12572 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12574 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12575 (struct ada_symbol_cache): New.
12576 (ada_free_symbol_cache): Forward declare.
12577 (struct ada_pspace_data): New.
12578 (ada_pspace_data_handle): New static global.
12579 (get_ada_pspace_data, ada_pspace_data_cleanup)
12580 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12581 (cache_space, cache): Delete, now folded inside struct
12583 (ada_get_symbol_cache): New function.
12584 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12586 (_initialize_ada_language): Remove initialization of cache_space.
12587 Move call to observer_attach_inferior_exit up, grouping it
12588 with the other observer registrations inside this function.
12589 Rename command to be more general. Add call to
12590 register_program_space_data_with_cleanup.
12592 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12594 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12595 ada_new_objfile_observer.
12596 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12597 (_initialize_tasks): Update uses of ada_new_objfile_observer
12598 and ada_tasks_normal_stop_observer.
12600 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12602 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12603 returned by the 'Length attribute to integer.
12605 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12607 * ada-lang.c (_initialize_ada_language): Initialize
12608 cache_space obstack.
12610 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12612 * ada-lang.c (HASH_SIZE): New macro.
12613 (struct cache_entry): New type.
12614 (cache_space, cache): New static globals.
12615 (ada_clear_symbol_cache, find_entry): New functions.
12616 (lookup_cached_symbol, cache_symbol): Implement.
12617 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12618 (_initialize_ada_language): Attach ada_new_objfile_observer
12619 and ada_free_objfile_observer.
12621 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12623 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12624 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12625 struct block * parameter.
12626 (ada_lookup_symbol_list_worker): Constify local variable "block".
12627 Remove cast which is no longer necessary.
12629 2014-02-10 Doug Evans <xdje42@gmail.com>
12631 Add Guile as an extension language.
12632 * NEWS: Mention Guile scripting.
12633 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12634 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12635 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12636 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12637 (CLIBS): Add GUILE_LIBS.
12638 (install-guile): New rule.
12639 (guile.o): New rule.
12640 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12641 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12642 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12643 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12644 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12645 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12646 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12647 * configure.ac: New option --with-guile.
12648 * configure: Regenerate.
12649 * config.in: Regenerate.
12650 * auto-load.c: Remove #include "python/python.h". Add #include
12651 "gdb/section-scripts.h".
12652 (source_section_scripts): Handle Guile scripts.
12653 (_initialize_auto_load): Add name of Guile objfile script to
12654 scripts-directory help text.
12655 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12656 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12657 (struct breakpoint): New member scm_bp_object.
12658 * defs.h (enum command_control_type): New value guile_control.
12659 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12661 (show_user): Update comment.
12662 (_initialize_cli_cmds): Update help text for "show user". Update help
12663 text for max-user-call-depth.
12664 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12666 (multi_line_command_p): Add guile_control.
12667 (print_command_lines): Handle guile_control.
12668 (execute_control_command, recurse_read_control_structure): Ditto.
12669 (process_next_line): Recognize "guile" commands.
12670 * disasm.c (gdb_disassemble_info): Make non-static.
12671 * disasm.h: #include "dis-asm.h".
12672 (struct gdbarch): Add forward decl.
12673 (gdb_disassemble_info): Declare.
12674 * extension.c: #include "guile/guile.h".
12675 (extension_languages): Add guile.
12676 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12677 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12678 * gdbtypes.c (get_unsigned_type_max): New function.
12679 (get_signed_type_minmax): New function.
12680 * gdbtypes.h (get_unsigned_type_max): Declare.
12681 (get_signed_type_minmax): Declare.
12682 * guile/README: New file.
12683 * guile/guile-internal.h: New file.
12684 * guile/guile.c: New file.
12685 * guile/guile.h: New file.
12686 * guile/scm-arch.c: New file.
12687 * guile/scm-auto-load.c: New file.
12688 * guile/scm-block.c: New file.
12689 * guile/scm-breakpoint.c: New file.
12690 * guile/scm-disasm.c: New file.
12691 * guile/scm-exception.c: New file.
12692 * guile/scm-frame.c: New file.
12693 * guile/scm-gsmob.c: New file.
12694 * guile/scm-iterator.c: New file.
12695 * guile/scm-lazy-string.c: New file.
12696 * guile/scm-math.c: New file.
12697 * guile/scm-objfile.c: New file.
12698 * guile/scm-ports.c: New file.
12699 * guile/scm-pretty-print.c: New file.
12700 * guile/scm-safe-call.c: New file.
12701 * guile/scm-string.c: New file.
12702 * guile/scm-symbol.c: New file.
12703 * guile/scm-symtab.c: New file.
12704 * guile/scm-type.c: New file.
12705 * guile/scm-utils.c: New file.
12706 * guile/scm-value.c: New file.
12707 * guile/lib/gdb.scm: New file.
12708 * guile/lib/gdb/boot.scm: New file.
12709 * guile/lib/gdb/experimental.scm: New file.
12710 * guile/lib/gdb/init.scm: New file.
12711 * guile/lib/gdb/iterator.scm: New file.
12712 * guile/lib/gdb/printing.scm: New file.
12713 * guile/lib/gdb/types.scm: New file.
12714 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12715 (VPATH): Add $(GUILE_SRCDIR).
12716 (GUILE_DIR): New variable.
12717 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12718 (all): Add stamp-guile dependency.
12719 (stamp-guile): New rule.
12720 (clean-guile, install-guile, uninstall-guile): New rules.
12721 (install-only): Add install-guile dependency.
12722 (uninstall): Add uninstall-guile dependency.
12723 (clean): Add clean-guile dependency.
12725 2014-02-09 Doug Evans <xdje42@gmail.com>
12727 Revert this patch (which I approved, mea culpa).
12729 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12731 * Makefile.in (all-lib): Remove.
12732 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12734 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12736 Fix Python stack corruption.
12737 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12740 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12742 * Makefile.in (all-lib): Remove.
12743 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12745 2014-02-07 Doug Evans <dje@google.com>
12747 * extension-priv.h (extension_language_script_ops): Add comment.
12748 (extension_language_ops): Add comment.
12749 (active_ext_lang_state): Fix typo in comment.
12751 2014-02-07 Pedro Alves <palves@redhat.com>
12753 PR breakpoints/16292
12754 * infrun.c (handle_signal_stop) <signal arrives while stepping
12755 over a breakpoint>: Switch back to the stepping thread.
12757 2014-02-07 Yao Qi <yao@codesourcery.com>
12759 * target.c (target_xfer_partial): Return zero if LEN is zero.
12761 2014-02-07 Yao Qi <yao@codesourcery.com>
12763 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12764 (ld_so_xfer_auxv): Likewise.
12765 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12766 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12767 * corelow.c (core_xfer_partial): Likewise.
12768 * ctf.c (ctf_xfer_partial): Likewise.
12769 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12770 (darwin_xfer_partial): Likewise.
12771 * exec.c (exec_xfer_partial): Likewise.
12772 * gnu-nat.c (gnu_xfer_partial): Likewise.
12773 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12774 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12775 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12776 * linux-nat.c (linux_xfer_siginfo): Likewise.
12777 (linux_proc_xfer_spu): Likewise.
12778 * procfs.c (procfs_xfer_partial): Likewise.
12779 * record-full.c (record_full_xfer_partial): Likewise.
12780 (record_full_core_xfer_partial): Likewise.
12781 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12782 * remote.c (remote_write_qxfer): Likewise.
12783 (remote_write_qxfer, remote_read_qxfer): Likewise.
12784 (remote_xfer_partial): Likewise.
12785 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12786 (rs6000_xfer_shared_libraries): Likewise.
12787 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12788 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12789 (spu_xfer_partial): Likewise.
12790 * target.c (memory_xfer_partial_1): Likewise.
12791 * tracepoint.c (tfile_xfer_partial): Likewise.
12792 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12793 (windows_xfer_partial): Likewise.
12795 2014-02-07 Yao Qi <yao@codesourcery.com>
12797 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12799 (core_xfer_shared_libraries_aix): Likewise.
12800 * gdbarch.c, gdbarch.h: Regenerated.
12801 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12802 ULONGEST. Change 'len_avail' type to ULONGEST.
12803 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12804 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12806 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12808 2014-02-07 Yao Qi <yao@codesourcery.com>
12810 * corefile.c (memory_error): Get 'exception' from ERR and pass
12811 'exception' to throw_error.
12813 2014-02-06 Doug Evans <xdje42@gmail.com>
12815 * configure.ac (libpython checking): Remove all but python.o from
12816 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12817 * configure: Regenerate.
12819 * Makefile.in (SFILES): Add extension.c.
12820 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12821 (COMMON_OBS): Add extension.o.
12822 * extension.h: New file.
12823 * extension-priv.h: New file.
12824 * extension.c: New file.
12826 * python/python-internal.h: #include "extension.h".
12827 (gdbpy_auto_load_enabled): Declare.
12828 (gdbpy_apply_val_pretty_printer): Declare.
12829 (gdbpy_apply_frame_filter): Declare.
12830 (gdbpy_preserve_values): Declare.
12831 (gdbpy_breakpoint_cond_says_stop): Declare.
12832 (gdbpy_breakpoint_has_cond): Declare.
12833 (void source_python_script_for_objfile): Delete.
12834 * python/python.c: #include "extension-priv.h".
12835 Delete inclusion of "observer.h".
12836 (extension_language_python): Moved here and renamed from
12837 script_language_python in py-auto-load.c.
12838 Redefined to be of type extension_language_defn.
12839 (python_extension_script_ops): New global.
12840 (python_extension_ops): New global.
12841 (struct python_env): New member previous_active.
12842 (restore_python_env): Call restore_active_ext_lang.
12843 (ensure_python_env): Call set_active_ext_lang.
12844 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12846 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12848 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12850 (gdbpy_eval_from_control_command): Renamed from
12851 eval_python_from_control_command, made static. New arg extlang.
12852 (gdbpy_source_script) Renamed from source_python_script, made static.
12854 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12855 result to int. New arg extlang.
12856 (gdbpy_source_objfile_script): Renamed from
12857 source_python_script_for_objfile, made static. New arg extlang.
12858 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12859 static. New args extlang, extlang_printers. Change result type to
12861 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12862 static. New arg extlang. Rename arg printers to extlang_printers
12863 and change type to ext_lang_type_printers *.
12864 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12865 static. Replace argument arg with extlang, extlang_printers.
12866 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12867 (!HAVE_PYTHON, source_python_script): Delete.
12868 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12869 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12870 (!HAVE_PYTHON, start_type_printers): Delete.
12871 (!HAVE_PYTHON, apply_type_printers): Delete.
12872 (!HAVE_PYTHON, free_type_printers): Delete.
12873 (_initialize_python): Delete call to observer_attach_before_prompt.
12874 (finalize_python): Set/restore active extension language.
12875 (gdbpy_finish_initialization) Renamed from
12876 finish_python_initialization, made static. New arg extlang.
12877 (gdbpy_initialized): New function.
12878 * python/python.h: #include "extension.h". Delete #include
12879 "value.h", "mi/mi-cmds.h".
12880 (extension_language_python): Declare.
12881 (GDBPY_AUTO_FILE_NAME): Delete.
12882 (enum py_bt_status): Moved to extension.h and renamed to
12883 ext_lang_bt_status.
12884 (enum frame_filter_flags): Moved to extension.h.
12885 (enum py_frame_args): Moved to extension.h and renamed to
12886 ext_lang_frame_args.
12887 (finish_python_initialization): Delete.
12888 (eval_python_from_control_command): Delete.
12889 (source_python_script): Delete.
12890 (apply_val_pretty_printer): Delete.
12891 (apply_frame_filter): Delete.
12892 (preserve_python_values): Delete.
12893 (gdbpy_script_language_defn): Delete.
12894 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12895 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12897 * auto-load.c: #include "extension.h".
12898 (GDB_AUTO_FILE_NAME): Delete.
12899 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12900 (script_language_gdb): Delete, moved to extension.c and renamed to
12901 extension_language_gdb.
12902 (source_gdb_script_for_objfile): Delete.
12903 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12904 (loaded_script): Change type of language member to
12905 struct extension_language_defn *.
12906 (init_loaded_scripts_info): Initialize
12907 unsupported_script_warning_printed.
12908 (maybe_add_script): Make static. Change type of language arg to
12909 struct extension_language_defn *.
12910 (clear_section_scripts): Reset unsupported_script_warning_printed.
12911 (auto_load_objfile_script_1): Rewrite to use extension language API.
12912 (auto_load_objfile_script): Make public. Remove support-compiled-in
12913 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12914 (source_section_scripts): Rewrite to use extension language API.
12915 (load_auto_scripts_for_objfile): Rewrite to use
12916 auto_load_scripts_for_objfile.
12917 (collect_matching_scripts_data): Change type of language member to
12918 struct extension_language_defn *.
12919 (auto_load_info_scripts): Change type of language arg to
12920 struct extension_language_defn *.
12921 (unsupported_script_warning_print): New function.
12922 (script_not_found_warning_print): Make static.
12923 (_initialize_auto_load): Rewrite construction of scripts-directory
12925 * auto-load.h (struct objfile): Add forward decl.
12926 (struct script_language): Delete.
12927 (struct auto_load_pspace_info): Add forward decl.
12928 (struct extension_language_defn): Add forward decl.
12929 (maybe_add_script): Delete.
12930 (auto_load_objfile_script): Declare.
12931 (script_not_found_warning_print): Delete.
12932 (auto_load_info_scripts): Update prototype.
12933 (auto_load_gdb_scripts_enabled): Declare.
12934 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12935 auto_load_python_scripts_enabled and made public.
12936 (script_language_python): Delete, moved to python.c.
12937 (gdbpy_script_language_defn): Delete.
12938 (info_auto_load_python_scripts): Update to use
12939 extension_language_python.
12941 * breakpoint.c (condition_command): Replace call to
12942 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12943 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12944 with call to breakpoint_ext_lang_cond_says_stop.
12945 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12946 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12947 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12948 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12950 (local_setattro): Print name of extension language with existing
12953 * valprint.c (val_print, value_print): Update to call
12954 apply_ext_lang_val_pretty_printer.
12955 * cp-valprint.c (cp_print_value): Update call to
12956 apply_ext_lang_val_pretty_printer.
12957 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12958 (gdbpy_apply_val_pretty_printer): Renamed from
12959 apply_val_pretty_printer. New arg extlang.
12960 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12962 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12963 extension language API.
12964 * cli/cli-script.c (execute_control_command): Update to call
12965 eval_ext_lang_from_control_command.
12967 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12968 enum ext_lang_bt_status values. Update call to
12969 apply_ext_lang_frame_filter.
12970 (mi_cmd_stack_list_locals): Ditto.
12971 (mi_cmd_stack_list_args): Ditto.
12972 (mi_cmd_stack_list_variables): Ditto.
12973 * mi/mi-main.c: Delete #include "python/python-internal.h".
12974 Add #include "extension.h".
12975 (mi_cmd_list_features): Replace reference to python internal variable
12976 gdb_python_initialized with call to ext_lang_initialized_p.
12978 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12979 Update to use enum ext_lang_frame_args. Update to call
12980 apply_ext_lang_frame_filter.
12981 * python/py-framefilter.c (extract_sym): Update to use enum
12982 ext_lang_bt_status.
12983 (extract_value, py_print_type, py_print_value): Ditto.
12984 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12985 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12986 (py_print_frame): Ditto.
12987 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12988 New arg extlang. Update to use enum ext_lang_bt_status.
12990 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12991 finish_python_initialization. Replace with call to
12992 finish_ext_lang_initialization.
12994 * typeprint.c (do_free_global_table): Update to call
12995 free_ext_lang_type_printers.
12996 (create_global_typedef_table): Update to call
12997 start_ext_lang_type_printers.
12998 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12999 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13000 (type_print_options): Change type of global_printers from "void *"
13001 to "struct ext_lang_type_printers *".
13003 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13004 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13005 (gdbpy_preserve_values): Renamed from preserve_python_values.
13007 (!HAVE_PYTHON, preserve_python_values): Delete.
13009 * utils.c (quit_flag): Delete, moved to extension.c.
13010 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13013 * eval.c: Delete #include "python/python.h".
13014 * main.c: Delete #include "python/python.h".
13016 * defs.h: Update comment.
13018 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13022 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13024 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13027 2014-02-05 Yao Qi <yao@codesourcery.com>
13029 * remote.c (remote_pass_signals): Remove local 'buf' and use
13031 (remote_program_signals): Likewise.
13033 2014-02-05 Yao Qi <yao@codesourcery.com>
13035 * ctf.c: Include "inferior.h" and "gdbthread.h".
13036 (CTF_PID): A new macro.
13037 (ctf_open): Call inferior_appeared and add_thread_silent.
13038 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13039 (ctf_thread_alive): New function.
13040 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13042 2014-02-05 Yao Qi <yao@codesourcery.com>
13046 2013-05-24 Yao Qi <yao@codesourcery.com>
13048 * tracepoint.c (TFILE_PID): Remove.
13049 (tfile_open): Don't add thread and inferior.
13050 (tfile_close): Don't set 'inferior_ptid'. Don't call
13051 exit_inferior_silent.
13052 (tfile_thread_alive): Remove.
13053 (init_tfile_ops): Don't set field 'to_thread_alive' of
13056 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13058 * remote.c (remote_start_remote): Call remote_check_symbols even
13059 if only symbol-file (not file) has been given.
13061 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13063 * gdbarch.sh (skip_entrypoint): New callback.
13064 * gdbarch.c, gdbarch.h: Regenerate.
13065 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13066 * infrun.c (fill_in_stop_func): Likewise.
13067 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13068 (ppc_elfv2_elf_make_msymbol_special): New function.
13069 (ppc_elfv2_skip_entrypoint): Likewise.
13070 (ppc_linux_init_abi): Install them for ELFv2.
13072 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13074 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13075 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13076 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13077 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13078 structures returned in GPRs.
13080 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13082 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13083 offset to the stack parameter list for the ELFv2 ABI.
13085 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13087 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13088 set_gdbarch_convert_from_func_ptr_addr and
13089 set_gdbarch_elf_make_msymbol_special for ELFv1.
13090 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13091 function descriptors on ELFv1.
13092 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13093 set up r12 at function entry.
13095 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13097 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13098 (struct gdbarch_tdep): New member elf_abi.
13100 * rs6000-tdep.c: Include "elf/ppc64.h".
13101 (rs6000_gdbarch_init): Detect ELF ABI version.
13103 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13105 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13106 within a register pair holding a DFP 128-bit value on little-endian.
13107 (ppc64_sysv_abi_return_value_base): Likewise.
13108 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13109 (dfp_pseudo_register_write): Likewise.
13111 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13113 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13114 offset on little-endian when passing _Decimal32.
13115 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13117 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13119 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13120 of the overlapped FP register within the VSX register on little-
13122 (efpr_pseudo_register_write): Likewise.
13124 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13126 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13127 offset on little-endian when passing small structures.
13129 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13131 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13132 (struct ppc64_sysv_argpos): New data structure.
13133 (ppc64_sysv_abi_push_float): Remove.
13134 (ppc64_sysv_abi_push_val): New function.
13135 (ppc64_sysv_abi_push_integer): Likewise.
13136 (ppc64_sysv_abi_push_freg): Likewise.
13137 (ppc64_sysv_abi_push_vreg): Likewise.
13138 (ppc64_sysv_abi_push_param): Likewise.
13139 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13140 (ppc64_sysv_abi_return_value_base): New function.
13141 (ppc64_sysv_abi_return_value): Refactor to use it.
13143 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13145 * NEWS: Document new target powerpc64le-*-linux*.
13147 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13149 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13150 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13152 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13153 register set used in ELF core dumps. Add floating-point register set.
13155 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13157 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13158 dwarf2_to_gdb[] table using symbolic constants. Adjust
13159 penultimate entry from number representing the PC register
13160 to symbolic constant representing the MDR register. Add
13161 constant for the PC register to the end of the table.
13163 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13165 * bsd-kvm.c: Include <sys/param.h>
13167 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13169 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13171 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13173 * ada-lang.h (clear_ada_sym_cache): Delete.
13175 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13177 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13179 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13181 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13182 the sigreturn register save area only if the syscall is
13185 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13187 * valops.c (value_slice): Minor reformatting.
13189 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13191 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13193 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13195 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13196 New static globals.
13197 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13198 (ada_ignore_descriptive_types_p): New static global.
13199 (find_parallel_type_by_descriptive_type): Return immediately
13200 if ada_ignore_descriptive_types_p is set.
13201 (_initialize_ada_language): Register new commands "maintenance
13202 set ada", "maintenance show ada", "maintenance set ada
13203 ignore-descriptive-types" and "maintenance show ada
13204 ignore-descriptive-types".
13205 * NEWS: Add entry for new "maint ada set/show
13206 ignore-descriptive-types" commands.
13208 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13210 * record-btrace.c (record_btrace_close): Call btrace_teardown
13213 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13215 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13218 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13220 * ada-typeprint (type_is_full_subrange_of_target_type):
13222 (print_range): Add parameter bounds_prefered_p. If not set,
13223 try printing range types using the name of their base type.
13224 (print_range_type): Add parameter bounds_prefered_p.
13225 Use it in call to print_range.
13226 (print_array_type, ada_print_type): Update calls to print_range
13227 and print_range_type.
13229 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13231 * ada-typeprint.c (print_array_type, print_choices, print_range)
13232 (print_range_bound, print_dynamic_range_bound, print_range_type):
13233 Remove declaration.
13235 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13237 * ada-typeprint.c (print_range): Add missing empty line
13238 after local declaration.
13240 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13242 * ada-valprint.c (print_optional_low_bound): Get index_type's
13243 target type for as long as it is a TYPE_CODE_RANGE.
13245 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13247 * procfs.c (procfs_make_note_section): Remove assertion and
13248 associated comment.
13250 2014-01-24 Yao Qi <yao@codesourcery.com>
13252 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13253 * corelow.c (get_core_siginfo): Likewise.
13255 2014-01-24 Yao Qi <yao@codesourcery.com>
13257 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13258 ULONGEST. Don't check 'len' is negative.
13259 (remote_write_bytes): Change type of 'len' to ULONGEST.
13261 2014-01-23 Tom Tromey <tromey@redhat.com>
13264 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13265 Handle exception from frame.block.
13266 (FrameVars.fetch_frame_locals): Likewise.
13268 2014-01-23 Tom Tromey <tromey@redhat.com>
13271 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13272 on a NULL pointer. Move "goto error" to correct place.
13274 2014-01-23 Tom Tromey <tromey@redhat.com>
13277 * python/py-framefilter.c (apply_frame_filter): Call
13278 ensure_python_env after computing gdbarch.
13280 2014-01-23 Yao Qi <yao@codesourcery.com>
13282 * target.c (raw_memory_xfer_partial): Change argument type
13283 from void * to gdb_byte *.
13284 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13286 2014-01-22 Doug Evans <dje@google.com>
13288 New gdbserver option --debug-format=timestamp.
13289 * NEWS: Mention it.
13291 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13293 * syscalls/s390x-linux.xml: New file.
13294 * syscalls/s390-linux.xml: New file.
13295 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13296 (XML_SYSCALL_FILENAME_S390X): Likewise.
13297 (op_svc): New enum value for SVC opcode.
13298 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13299 (s390_linux_get_syscall_number): New function.
13300 (s390_gdbarch_init): Register '*get_syscall_number' and the
13301 syscall xml file name.
13302 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13303 "s390-linux.xml" and "s390x-linux.xml".
13304 * NEWS: Announce new feature.
13306 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13308 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13310 2014-01-22 Pedro Alves <palves@redhat.com>
13312 * xtensa-config.c: Include defs.h.
13314 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13316 * common/common-utils.h: Add "ARI:" comment beside __func__
13319 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13321 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13322 documentation a bit.
13324 2014-01-21 Roland McGrath <mcgrathr@google.com>
13326 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13327 * configure: Regenerate.
13328 * aclocal.m4: Regenerate.
13329 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13330 New substituted variables.
13331 (install-strip): New target.
13332 (INSTALL_SCRIPT): New substituted variable.
13333 (FLAGS_TO_PASS): Add it.
13334 (install-only): Use $(INSTALL_SCRIPT) rather than
13335 $(INSTALL_PROGRAM) for gcore.
13337 2014-01-20 Tom Tromey <tromey@redhat.com>
13339 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13342 2014-01-20 Tom Tromey <tromey@redhat.com>
13344 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13345 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13346 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13347 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13348 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13349 (struct cmd_list_element) <flags>: Remove.
13350 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13351 doc_allocated>: New fields.
13352 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13354 * maint.c (maintenance_do_deprecate): Update.
13355 * top.c (execute_command): Update.
13357 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13359 * xtensa-linux-nat.c: Include asm/ptrace.h.
13361 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13363 * Makefile.in (SFILES): Add d-support.c.
13364 (COMMON_OBS): Add d-support.o.
13365 * d-lang.h (d_parse_symbol): Add comment, now defined in
13367 * d-lang.c (parse_call_convention)
13368 (parse_attributes, parse_function_types)
13369 (parse_function_args, parse_type, parse_identifier)
13370 (call_convention_p, d_parse_symbol): Move functions to ...
13371 * d-support.c: ... New file.
13373 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13375 * d-lang.h (d_parse_symbol): Add declaration.
13376 * d-lang.c (extract_identifiers)
13377 (extract_type_info): Remove functions.
13378 (parse_call_convention, parse_attributes)
13379 (parse_function_types, parse_function_args)
13380 (parse_type, parse_identifier, call_convention_p)
13381 (d_parse_symbol): New functions.
13382 (d_demangle): Use d_parse_symbol to demangle D symbols.
13384 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13386 * d-lang.h (struct builtin_d_type): New data type.
13387 (builtin_d_type): Add declaration.
13388 * d-lang.c (d_language_arch_info, build_d_types)
13389 (builtin_d_type): New functions.
13390 (enum d_primitive_types): New data type.
13391 (d_language_defn): Change c_language_arch_info to
13392 d_language_arch_info.
13393 (d_type_data): New static variable.
13394 (_initialize_d_language): Initialize d_type_data.
13396 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13398 * d-lang.h (d_main_name): Add declaration.
13399 * d-lang.c (d_main_name): New function.
13400 * symtab.c (find_main_name): Add call to d_main_name.
13402 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13404 * d-lang.c (d_language_defn): Change macro_expansion_c to
13405 macro_expansion_no.
13407 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13409 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13411 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13413 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13414 gdb_exception" declaration.
13415 * remote.c (getpkt_or_notif_sane): Likewise.
13417 2014-01-17 Doug Evans <dje@google.com>
13419 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13420 function, contents of dirnames_to_char_ptr_vec_append moved here.
13421 (delim_string_to_char_ptr_vec): New function.
13422 (dirnames_to_char_ptr_vec_append): Rewrite.
13423 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13425 2014-01-17 Doug Evans <dje@google.com>
13427 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13429 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13430 #include "common-utils.h".
13431 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13432 * common/vec.h (VEC_ASSERT_PASS): Update.
13433 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13434 (MACH_CHECK_ERROR): Update.
13436 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13438 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13440 * gdbarch.h: Regenerate.
13442 2014-01-16 Tom Tromey <tromey@redhat.com>
13444 * value.c (struct value) <regnum>: Move earlier.
13446 2014-01-16 Tom Tromey <tromey@redhat.com>
13448 * remote.c (extended_remote_create_inferior): Rename from
13449 extended_remote_create_inferior_1. Add "ops" argument. Remove
13450 old implementation.
13452 2014-01-16 Pedro Alves <palves@redhat.com>
13454 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13455 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13458 2014-01-16 Doug Evans <dje@google.com>
13460 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13462 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13464 * btrace.h (btrace_thread_flag): New.
13465 (struct btrace_thread_info) <flags>: New.
13466 * record-btrace.c (record_btrace_resume_thread)
13467 (record_btrace_find_thread_to_move, btrace_step_no_history)
13468 (btrace_step_stopped, record_btrace_start_replaying)
13469 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13470 (record_btrace_find_resume_thread): New.
13471 (record_btrace_resume, record_btrace_wait): Extend.
13472 (record_btrace_can_execute_reverse): New.
13473 (record_btrace_open): Fail in non-stop mode.
13474 (record_btrace_set_replay): Split into this, ...
13475 (record_btrace_stop_replaying): ... this, ...
13476 (record_btrace_clear_histories): ... and this.
13477 (init_record_btrace_ops): Init to_can_execute_reverse.
13478 * NEWS: Announce it.
13480 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13482 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13483 (forward_target_decr_pc_after_break)
13484 (target_decr_pc_after_break): New.
13485 * target.c (forward_target_decr_pc_after_break)
13486 (target_decr_pc_after_break): New.
13487 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13488 instead of gdbarch_decr_pc_after_break.
13489 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13490 instead of gdbarch_decr_pc_after_break.
13491 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13492 instead of gdbarch_decr_pc_after_break.
13493 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13494 instead of gdbarch_decr_pc_after_break.
13495 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13496 instead of gdbarch_decr_pc_after_break.
13497 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13498 instead of gdbarch_decr_pc_after_break.
13500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13502 * btrace.c: Include regcache.h.
13503 (btrace_add_pc): New.
13504 (btrace_enable): Call btrace_add_pc.
13505 (btrace_is_empty): New.
13506 * btrace.h (btrace_is_empty): New.
13507 * record-btrace.c (require_btrace, record_btrace_info): Call
13510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13512 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13513 Support delta reads.
13514 (linux_disable_btrace): Change return type.
13515 * common/linux-btrace.h (linux_read_btrace): Change parameters
13516 and return type to allow error reporting. Update users.
13517 (linux_disable_btrace): Change return type. Update users.
13518 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13520 (btrace_error): New.
13521 (btrace_block) <begin>: Comment on BEGIN == 0.
13522 * btrace.c (btrace_compute_ftrace): Start from the end of
13524 (btrace_stitch_trace, btrace_clear_history): New.
13525 (btrace_fetch): Read delta trace, return if replaying.
13526 (btrace_clear): Move clear history code to btrace_clear_history.
13527 (parse_xml_btrace): Throw an error if parsing failed.
13528 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13529 and return type to allow error reporting.
13530 (target_read_btrace): Change parameters and return type to allow
13532 * target.c (target_read_btrace): Update.
13533 * remote.c (remote_read_btrace): Support delta reads. Pass
13535 * NEWS: Announce it.
13537 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13539 * record.h (record_btrace_frame_unwind)
13540 (record_btrace_tailcall_frame_unwind): New declarations.
13541 * dwarf2-frame: Include record.h
13542 (dwarf2_frame_cfa): Throw an error for btrace frames.
13543 * record-btrace.c: Include hashtab.h.
13544 (btrace_get_bfun_name): New.
13545 (btrace_call_history): Call btrace_get_bfun_name.
13546 (struct btrace_frame_cache): New.
13548 (bfcache_hash, bfcache_eq, bfcache_new): New.
13549 (btrace_get_frame_function): New.
13550 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13551 (record_btrace_frame_this_id): Compute own id.
13552 (record_btrace_frame_prev_register): Provide PC, throw_error
13553 for all other registers.
13554 (record_btrace_frame_sniffer): Detect btrace frames.
13555 (record_btrace_tailcall_frame_sniffer): New.
13556 (record_btrace_frame_dealloc_cache): New.
13557 (record_btrace_frame_unwind): Add new functions.
13558 (record_btrace_tailcall_frame_unwind): New.
13559 (_initialize_record_btrace): Allocate cache.
13560 * btrace.c (btrace_clear): Call reinit_frame_cache.
13561 * NEWS: Announce it.
13563 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13565 * record-btrace.c (record_btrace_set_replay)
13566 (record_btrace_goto_begin, record_btrace_goto_end)
13567 (record_btrace_goto): New.
13568 (init_record_btrace_ops): Initialize them.
13569 * NEWS: Announce it.
13571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13573 * record-btrace.c (record_btrace_find_new_threads)
13574 (record_btrace_thread_alive): New.
13575 (init_record_btrace_ops): Initialize to_find_new_threads and
13578 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13580 * record-btrace.c (record_btrace_resume): New.
13581 (record_btrace_wait): New.
13582 (init_record_btrace_ops): Initialize to_wait and to_resume.
13584 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13586 * record-btrace.c (record_btrace_xfer_partial)
13587 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13588 (record_btrace_allow_memory_access): New.
13589 (init_record_btrace_ops): Initialize new methods.
13590 * target.c (raw_memory_xfer_partial): Bail out if target reports
13591 that this memory is not available.
13593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13595 * target.h (target_ops) <to_insert_breakpoint>
13596 <to_remove_breakpoint>: Add target_ops parameter.
13597 (forward_target_insert_breakpoint): New.
13598 (forward_target_remove_breakpoint): New.
13599 (memory_remove_breakpoint, memory_insert_breakpoint):
13600 Add target_ops parameter.
13601 * target.c (target_insert_breakpoint): Split into this and ...
13602 (forward_target_insert_breakpoint): ... this.
13603 (target_remove_breakpoint): Split into this and ...
13604 (forward_target_remove_breakpoint): ... this.
13605 (debug_to_insert_breakpoint): Add target_ops parameter.
13606 Call forward_target_insert_breakpoint.
13607 (debug_to_remove_breakpoint): Add target_ops parameter.
13608 Call forward_target_remove_breakpoint.
13609 (update_current_target): Do not inherit or default to_insert_breakpoint
13610 and to_remove_breakpoint.
13611 * corelow.c (ignore): Add target_ops parameter.
13612 * exec.c (ignore): Add target_ops parameter.
13613 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13614 Add target_ops parameter.
13615 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13616 Add target_ops parameter.
13617 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13618 Add target_ops parameter.
13619 * record-full.c (record_full_beneath_to_insert_breakpoint)
13620 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13621 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13622 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13623 (record_full_core_remove_breakpoint): Add target_ops parameter.
13625 (record_full_beneath_to_insert_breakpoint_ops)
13626 (record_full_beneath_to_remove_breakpoint_ops)
13627 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13628 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13629 tmp_to_remove_breakpoint_ops,
13630 record_full_beneath_to_insert_breakpoint_ops, and
13631 record_full_beneath_to_remove_breakpoint_ops.
13632 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13633 (m32r_remove_breakpoint): Add target_ops parameter.
13634 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13635 Add target_ops parameter.
13636 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13637 Add target_ops parameter.
13639 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13640 Markus Metzger <markus.t.metzger@intel.com>
13642 * record-btrace.c: Include frame-unwind.h.
13643 (record_btrace_frame_unwind_stop_reason)
13644 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13645 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13647 (init_record_btrace_ops): Install it.
13649 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13651 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13654 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13656 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13659 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13661 * frame-unwind.c: Include target.h.
13662 (frame_unwind_try_unwinder): New function with code from ...
13663 (frame_unwind_find_by_frame): ... here. New variable
13664 unwinder_from_target, call also target_get_unwinder)
13665 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13666 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13667 * target.h (struct target_ops): New fields to_get_unwinder and
13668 to_get_tailcall_unwinder.
13669 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13671 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13673 * record-btrace.c (record_btrace_fetch_registers)
13674 (record_btrace_store_registers)
13675 (record_btrace_to_prepare_to_store): New.
13676 (init_record_btrace_ops): Add the above.
13678 2014-01-16 Tom Tromey <tromey@redhat.com>
13680 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13681 * target.h (struct target_ops) <to_prepare_to_store>: Add
13683 (target_prepare_to_store): Add argument.
13684 * target.c (debug_to_prepare_to_store): Add argument.
13685 (update_current_target): Update.
13686 * remote.c (remote_prepare_to_store): Add 'self' argument.
13687 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13688 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13689 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13690 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13692 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13693 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13694 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13695 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13696 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13698 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13700 * btrace.h (replay) <replay>: New.
13701 (btrace_is_replaying): New.
13702 * btrace.c (btrace_clear): Free replay iterator.
13703 (btrace_is_replaying): New.
13704 * record-btrace.c (record_btrace_is_replaying): New.
13705 (record_btrace_info): Print insn number if replaying.
13706 (record_btrace_insn_history): Start at replay position.
13707 (record_btrace_call_history): Start at replay position.
13708 (init_record_btrace_ops): Init to_record_is_replaying.
13710 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13712 * record-btrace.c (record_btrace_insn_history_range): Include
13714 (record_btrace_insn_history_from): Adjust range.
13715 (record_btrace_call_history_range): Include
13717 (record_btrace_call_history_from): Adjust range.
13718 * NEWS: Announce changes.
13720 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13722 * record.h (enum record_print_flag)
13723 <record_print_indent_calls>: New.
13724 * record.c (get_call_history_modifiers): Recognize /c modifier.
13725 (_initialize_record): Document /c modifier.
13726 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13727 Reorder fields. Optionally indent the function name. Update
13729 * NEWS: Announce changes.
13731 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13733 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13735 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13737 * btrace.c (ftrace_new_function): Start counting at one.
13738 * record-btrace.c (record_btrace_info): Adjust number of calls
13740 * NEWS: Announce it.
13742 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13744 * record-btrace.c (btrace_call_history_insn_range): Print
13745 insn range as [begin, end].
13747 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13749 * btrace.h (struct btrace_func_link): New.
13750 (enum btrace_function_flag): New.
13751 (struct btrace_inst): Rename to ...
13752 (struct btrace_insn): ...this. Update all users.
13753 (struct btrace_func) <ibegin, iend>: Remove.
13754 (struct btrace_func_link): New.
13755 (struct btrace_func): Rename to ...
13756 (struct btrace_function): ...this. Update all users.
13757 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13758 (number, level, flags>: New.
13759 (struct btrace_insn_iterator): Rename to ...
13760 (struct btrace_insn_history): ...this.
13762 (struct btrace_insn_iterator, btrace_call_iterator): New.
13763 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13764 (struct btrace_target_info) <begin, end, level>
13765 <insn_history, call_history>: New.
13766 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13767 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13768 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13769 (btrace_call_number, btrace_call_begin, btrace_call_end)
13770 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13771 (btrace_find_function_by_number, btrace_set_insn_history)
13772 (btrace_set_call_history): New.
13773 * btrace.c (btrace_init_insn_iterator)
13774 (btrace_init_func_iterator, compute_itrace): Remove.
13775 (ftrace_print_function_name, ftrace_print_filename)
13776 (ftrace_skip_file): Change
13777 parameter to const.
13778 (ftrace_init_func): Remove.
13779 (ftrace_debug): Use new btrace_function fields.
13780 (ftrace_function_switched): Also consider gaining and
13781 losing symbol information).
13782 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13783 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13784 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13786 (ftrace_new_function): Move. Remove debug print.
13787 (ftrace_update_lines, ftrace_update_insns): New.
13788 (ftrace_update_function): Check for call, ret, and jump.
13789 (compute_ftrace): Renamed to ...
13790 (btrace_compute_ftrace): ...this. Rewritten to compute call
13792 (btrace_fetch, btrace_clear): Updated.
13793 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13794 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13795 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13796 (btrace_call_number, btrace_call_begin, btrace_call_end)
13797 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13798 (btrace_find_function_by_number, btrace_set_insn_history)
13799 (btrace_set_call_history): New.
13800 * record-btrace.c (require_btrace): Use new btrace thread
13802 (record_btrace_info, btrace_insn_history)
13803 (record_btrace_insn_history, record_btrace_insn_history_range):
13804 Use new btrace thread info fields and new iterator.
13805 (btrace_func_history_src_line): Rename to ...
13806 (btrace_call_history_src_line): ...this. Use new btrace
13807 thread info fields.
13808 (btrace_func_history): Rename to ...
13809 (btrace_call_history): ...this. Use new btrace thread info
13810 fields and new iterator.
13811 (record_btrace_call_history, record_btrace_call_history_range):
13812 Use new btrace thread info fields and new iterator.
13814 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13816 * frame.h (frame_id_build_unavailable_stack_special): New.
13817 * frame.c (frame_id_build_unavailable_stack_special): New.
13819 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13821 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13822 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13823 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13825 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13826 (i386_insn_is_jump, i386_jmp_p): New.
13827 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13828 insn_is_jump to gdbarch.
13829 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13830 * gdbarch.h: Regenerated.
13831 * gdbarch.c: Regenerated.
13832 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13833 (default_insn_is_jump): New.
13834 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13835 (default_insn_is_jump): New.
13837 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13839 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13841 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13842 (btrace_read_type) <btrace_read_new>: Change to ...
13843 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13847 * common/linux-btrace.c (linux_read_btrace): Free trace from
13848 previous iteration.
13850 2014-01-15 Doug Evans <dje@google.com>
13852 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13855 2014-01-15 Tom Tromey <tromey@redhat.com>
13857 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13858 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13859 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13860 (set_objfile_main_name): New function.
13861 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13862 language_of_main>: New fields.
13863 (set_objfile_main_name): Declare.
13864 * symtab.c (find_main_name): Loop over objfiles to find the main
13866 (set_main_name): Now static.
13867 (get_main_info): Add comment.
13868 * symtab.h (set_main_name): Don't declare.
13870 2014-01-15 Tom Tromey <tromey@redhat.com>
13872 * symtab.c (main_progspace_key): New global.
13873 (struct main_info): New.
13874 (name_of_main, language_of_main): Remove.
13875 (get_main_info, main_info_cleanup): New function.
13876 (set_main_name, main_name, main_language): Use get_main_info.
13877 (_initialize_symtab): Initialize main_progspace_key.
13879 2014-01-15 Tom Tromey <tromey@redhat.com>
13881 * dbxread.c (process_one_symbol): Update.
13882 * dwarf2read.c (read_partial_die): Update.
13883 * symfile.c (set_initial_language): Call main_language.
13884 * symtab.c (language_of_main): Now static.
13885 (set_main_name): Add 'lang' parameter.
13886 (find_main_name): Update.
13887 (main_language): New function.
13888 (symtab_observer_executable_changed): Update.
13889 * symtab.h (set_main_name): Update.
13890 (language_of_main): Remove.
13891 (main_language): Declare.
13893 2014-01-15 Tom Tromey <tromey@redhat.com>
13895 * symfile.c (init_entry_point_info): Use new "initialized" field.
13897 * objfiles.h (struct entry_point) <initialized>: New field.
13898 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13899 (struct objfile) <ei>: ...here. Remove.
13900 * objfiles.c (entry_point_address_query): Update.
13902 2014-01-15 Tom Tromey <tromey@redhat.com>
13904 * objfiles.c (entry_point_address_query): Relocate entry point
13906 (objfile_relocate1): Do not relocate entry point address.
13907 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13908 <the_bfd_section_index>: New field.
13909 * symfile.c (init_entry_point_info): Find the entry point's
13912 2014-01-15 Tom Tromey <tromey@redhat.com>
13914 * solib-frv.c (enable_break): Use entry_point_address_query.
13916 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13918 * NEWS: Add note on improved process record-replay on
13919 arm*-linux* targets.
13921 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13923 * arm-tdep.c (enum arm_record_result): New enum.
13924 (arm_record_unsupported_insn): New function.
13925 (arm_record_coproc_data_proc): Removed.
13926 (thumb2_record_ld_st_multiple): New function.
13927 (thumb2_record_ld_st_dual_ex_tbb): New function.
13928 (thumb2_record_data_proc_sreg_mimm): New function.
13929 (thumb2_record_ps_dest_generic): New function.
13930 (thumb2_record_branch_misc_cntrl): New function.
13931 (thumb2_record_str_single_data): New function.
13932 (thumb2_record_ld_mem_hints): New function.
13933 (thumb2_record_ld_word): New function.
13934 (thumb2_record_lmul_lmla_div): New function.
13935 (thumb2_record_decode_insn_handler): New function.
13936 (decode_insn): Add thumb32 instruction handlers.
13938 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13940 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13941 (struct arm_linux_record_tdep): Declare.
13942 (arm_canonicalize_syscall): New function.
13943 (arm_all_but_pc_registers_record): New function.
13944 (arm_linux_syscall_record): New function.
13945 (arm_linux_init_abi): Add syscall recording constructs.
13946 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13947 decoding. (arm_record_coproc_data_proc): Update arm syscall
13949 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13950 <arm_syscall_record>: New field.
13951 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13954 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13956 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13957 register for push instruction recording.
13959 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13961 * arm-tdep.c (thumb_record_misc): Update to correct logical
13962 error while recording ldm, ldmia and pop instructions.
13964 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13966 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13968 2014-01-15 Pedro Alves <palves@redhat.com>
13970 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13971 (go32_resume, go32_fetch_registers, store_register)
13972 (go32_store_registers, go32_prepare_to_store)
13973 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13974 (go32_create_inferior, go32_can_run, go32_terminal_init)
13975 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13978 2014-01-15 Tom Tromey <tromey@redhat.com>
13980 * target.h (async_callback_ftype): New typedef.
13981 (struct target_ops) <to_async>: Use it.
13983 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13985 * python/py-value.c (get_field_type): Remove unnecessary curly
13986 braces for single-statement if block.
13988 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13990 * python/py-type.c (convert_field): Add missing empty line
13991 after declarations.
13993 2014-01-14 Doug Evans <dje@google.com>
13995 * symfile.h (expand_symtabs_matching): Renamed from
13996 expand_partial_symbol_names. Update prototype.
13997 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13998 * symfile.c (expand_symtabs_matching): Renamed from
13999 expand_partial_symbol_names. New args file_matcher, kind.
14000 Rename arg fun to symbol_matcher.
14001 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14002 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14003 ada_expand_partial_symbol_name.
14004 (ada_make_symbol_completion_list): Update to call
14005 expand_symtabs_matching.
14006 (ada_add_global_exceptions): Call expand_symtabs_matching.
14007 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14008 call map_symbol_filenames.
14009 * symtab.c (sources_info): Update to call map_symbol_filenames.
14010 (search_symbols): Call expand_symtabs_matching.
14011 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14012 (default_make_symbol_completion_list_break_on): Update to call
14013 expand_symtabs_matching.
14014 (make_source_files_completion_list): Update to call
14015 map_symbol_filenames.
14017 2014-01-14 Doug Evans <dje@google.com>
14019 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14020 (expand_symtabs_symbol_matcher_ftype): New typedef.
14021 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14022 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14023 * symfile.c (expand_partial_symbol_names): Update to use
14024 expand_symtabs_symbol_matcher_ftype.
14025 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14026 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14027 Arg name_matcher renamed to symbol_matcher.
14028 * psymtab.c (recursively_search_psymtabs): Update to use
14029 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14031 (expand_symtabs_matching_via_partial): Update to use
14032 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14033 Arg name_matcher renamed to symbol_matcher.
14035 2014-01-14 Doug Evans <dje@google.com>
14037 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14038 (map_partial_symbol_filenames): Ditto.
14039 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14040 (map_partial_symbol_filenames): Ditto.
14041 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14042 (map_partial_symbol_filenames): Ditto.
14043 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14044 (map_partial_symbol_filenames): Ditto.
14045 * symtab.c: Delete #include "psymtab.h".
14047 2014-01-14 Pedro Alves <palves@redhat.com>
14048 Tom Tromey <tromey@redhat.com>
14050 * infrun.c (use_displaced_stepping): Use find_record_target
14051 instead of RECORD_IS_USED.
14052 (adjust_pc_after_break): Use record_full_is_used instead of
14054 * record-btrace.c (record_btrace_open): Call record_preopen
14055 instead of checking RECORD_IS_USED.
14056 * record-full.c (record_full_shortname)
14057 (record_full_core_shortname): New globals.
14058 (record_full_is_used): New function.
14059 (find_full_open): Call record_preopen instead of checking
14061 (init_record_full_ops): Set the target's shortname to
14062 record_full_shortname.
14063 (init_record_full_core_ops): Set the target's shortname to
14064 record_full_core_shortname.
14065 * record-full.h (record_full_is_used): Declare.
14066 * record.c (find_record_target): Make extern.
14067 (record_preopen): New function.
14068 * record.h (RECORD_IS_USED): Delete macro.
14069 (find_record_target, record_preopen): Declare functions.
14071 2014-01-14 Yao Qi <yao@codesourcery.com>
14073 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14074 'len''s type to ULONGEST.
14075 (core_xfer_shared_libraries_aix): Likewise.
14076 * gdbarch.c, gdbarch.h: Regenerated.
14077 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14078 Change type of 'len' to ULONGEST.
14079 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14080 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14082 2014-01-14 Yao Qi <yao@codesourcery.com>
14084 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14085 type of 'len' to ULONGEST.
14086 (linux_xfer_osdata_processgroups): Likewise.
14087 (linux_xfer_osdata_threads): Likewise.
14088 (linux_xfer_osdata_fds): Likewise.
14089 (linux_xfer_osdata_isockets): Likewise.
14090 (linux_xfer_osdata_shm): Likewise.
14091 (linux_xfer_osdata_sem): Likewise.
14092 (linux_xfer_osdata_msg): Likewise.
14093 (linux_common_xfer_osdata): Likewise.
14094 (struct osdata_type) <getter>: Likewise.
14095 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14098 2014-01-14 Yao Qi <yao@codesourcery.com>
14100 * target.h (target_xfer_partial_ftype): Update.
14101 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14103 * aix-thread.c (aix_thread_xfer_partial): Change type of
14104 argument 'len' to ULONGEST.
14105 * auxv.c (procfs_xfer_auxv): Likewise.
14106 (ld_so_xfer_auxv): Likewise.
14107 (memory_xfer_auxv): Likewise.
14108 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14109 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14110 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14111 * corelow.c (core_xfer_partial): Likewise.
14112 * ctf.c (ctf_xfer_partial): Likewise.
14113 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14115 (darwin_read_dyld_info): Likewise.
14116 (darwin_xfer_partial): Likewise.
14117 * exec.c (section_table_xfer_memory_partial): Likewise.
14118 (exec_xfer_partial): Likewise.
14119 * exec.h (section_table_xfer_memory_partial): Update
14121 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14122 instead of plongest.
14123 (gnu_xfer_partial): Likewise.
14124 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14125 (ia64_hpux_xfer_solib_got): Likewise.
14126 (ia64_hpux_xfer_partial): Likewise.
14127 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14128 * inf-ptrace.c (inf_ptrace_xfer_partial):
14129 * inf-ttrace.c (inf_ttrace_xfer_partial):
14130 * linux-nat.c (linux_xfer_siginfo): Likewise.
14131 (linux_nat_xfer_partial): Likewise.
14132 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14133 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14134 * monitor.c (monitor_xfer_memory): Likewise.
14135 (monitor_xfer_partial): Likewise.
14136 * procfs.c (procfs_xfer_partial): Likewise.
14137 * record-full.c (record_full_xfer_partial): Likewise.
14138 (record_full_core_xfer_partial): Likewise.
14139 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14140 instead of plongest.
14141 (gdbsim_xfer_partial): Likewise.
14142 * remote.c (remote_xfer_partial): Likewise.
14143 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14144 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14146 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14147 (rs6000_xfer_shared_libraries): Likewise.
14148 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14149 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14150 (sparc_xfer_partial): Likewise.
14151 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14152 (spu_xfer_partial): Likewise.
14153 * spu-multiarch.c (spu_xfer_partial): Likewise.
14154 * target.c (target_read_live_memory): Likewise.
14155 (memory_xfer_live_readonly_partial): Likewise.
14156 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14157 (target_xfer_partial, default_xfer_partial): Likewise.
14158 (current_xfer_partial): Likewise.
14159 * tracepoint.c (tfile_xfer_partial): Likewise.
14160 * windows-nat.c (windows_xfer_memory): Likewise. Call
14161 pulongest instead of plongest.
14162 (windows_xfer_partial): Likewise.
14163 (windows_xfer_shared_libraries): Likewise.
14165 2014-01-14 Yao Qi <yao@codesourcery.com>
14167 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14168 target_xfer_partial_ftype.
14170 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14174 * valops.c (value_struct_elt_bitpos): New function
14175 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14176 object to 'None' if the field name is an empty string ("").
14177 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14178 attribute to look for a field when 'name' is 'None'.
14179 (get_field_type): New function
14181 2014-01-13 Doug Evans <dje@google.com>
14184 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14185 (try_open_dwop_file): Ditto.
14186 * gdb_bfd.c: #include "vec.h".
14187 (bfdp): New typedef.
14188 (struct gdb_bfd_data): New member included_bfds.
14189 (gdb_bfd_unref): Unref all included bfds.
14190 (gdb_bfd_record_inclusion): New function.
14191 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14193 2014-01-13 Tom Tromey <tromey@redhat.com>
14195 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14197 2014-01-13 Tom Tromey <tromey@redhat.com>
14199 * defs.h (use_windows): Remove.
14200 * gdb.c (main): Update.
14201 * main.c (captured_main, gdb_main): Update.
14202 * main.h (struct captured_main_args) <use_windows>: Remove.
14203 * top.c (use_windows): Remove.
14205 2014-01-13 Tom Tromey <tromey@redhat.com>
14207 * defs.h (deprecated_flush_hook): Remove.
14209 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14212 * linux-thread-db.c (try_thread_db_load): Add parameter
14213 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14214 (try_thread_db_load_from_pdir_1): Move it there from here.
14215 (try_thread_db_load_from_sdir): Update caller.
14216 (try_thread_db_load_from_dir): Move it there from here.
14218 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14220 * regformats/regdat.sh: Always rewrite the register file.
14222 2014-01-13 Pedro Alves <palves@redhat.com>
14224 * Makefile.in (CHECK_HEADERS): New variable.
14225 (check-headers:): New rule.
14227 2014-01-13 Tom Tromey <tromey@redhat.com>
14229 * cli/cli-setshow.c (do_set_command): Update.
14230 * defs.h (deprecated_set_hook): Remove.
14231 * top.c (deprecated_set_hook): Remove.
14233 2014-01-13 Pedro Alves <palves@redhat.com>
14235 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14236 the tracepoint if the PC is a pseudo-register.
14238 2014-01-13 Tom Tromey <tromey@redhat.com>
14240 * defs.h (XCALLOC): Remove.
14241 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14242 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14243 * dwarf2loc.c (allocate_piece_closure): Likewise.
14244 * elfread.c (elf_symfile_segments): Likewise.
14245 (elf_symfile_segments): Likewise.
14246 * gdbtypes.c (copy_type_recursive): Likewise.
14247 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14248 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14249 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14251 * mt-tdep.c (mt_gdbarch_init): Likewise.
14252 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14254 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14255 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14256 * registry.c (registry_alloc_data): Likewise.
14257 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14258 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14259 * serial.c (serial_fdopen_ops): Likewise.
14260 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14262 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14263 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14266 2014-01-13 Tom Tromey <tromey@redhat.com>
14268 * defs.h (XMALLOC): Remove.
14269 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14270 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14271 * cli-out.c (struct ui_out *): Likewise.
14272 * cli/cli-dump.c (add_dump_command): Likewise.
14273 (add_dump_command): Likewise.
14274 * complaints.c (get_complaints): Likewise.
14275 (find_complaint): Likewise.
14276 * dwarf2-frame.c (execute_cfa_program): Likewise.
14277 * dwarf2read.c (abbrev_table_read_table): Likewise.
14278 * gdbarch.sh: Likewise.
14279 * gdbarch.c: Rebuild.
14280 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14281 * interps.c (interp_new): Likewise.
14282 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14283 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14284 * mi/mi-console.c (mi_console_file_new): Likewise.
14285 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14286 * mi/mi-out.c (mi_out_new): Likewise.
14287 * mi/mi-parse.c (mi_parse): Likewise.
14288 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14289 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14290 * observer.c (xalloc_observer_list_node): Likewise.
14291 * regcache.c (regcache_xmalloc_1): Likewise.
14292 * reggroups.c (reggroup_new): Likewise.
14293 (_initialize_reggroup): Likewise.
14294 * registry.c (register_data_with_cleanup): Likewise.
14295 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14296 * ser-base.c (serial_ttystate): Likewise.
14297 * ser-mingw.c (make_pipe_state): Likewise.
14298 * ser-pipe.c (pipe_open): Likewise.
14299 * serial.c (serial_open): Likewise.
14300 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14301 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14302 (tui_alloc_win_info): Likewise.
14303 (tui_add_content_elements): Likewise.
14304 * tui/tui-file.c (tui_file_new): Likewise.
14305 * tui/tui-out.c (tui_out_new): Likewise.
14306 * ui-file.c (mem_file_new): Likewise.
14307 * ui-out.c (push_level): Likewise.
14308 (make_cleanup_ui_out_end): Likewise.
14309 (append_header_to_list): Likewise.
14310 (ui_out_new): Likewise.
14311 * user-regs.c (user_reg_add_builtin): Likewise.
14313 2014-01-13 Tom Tromey <tromey@redhat.com>
14315 * defs.h (XZALLOC): Remove.
14316 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14317 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14318 (get_ada_tasks_inferior_data): Likewise.
14319 * auto-load.c (get_auto_load_pspace_data): Likewise.
14320 * auxv.c (get_auxv_inferior_data): Likewise.
14321 * bfd-target.c (target_bfd_reopen): Likewise.
14322 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14323 (deprecated_insert_raw_breakpoint): Likewise.
14324 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14325 * corelow.c (core_open): Likewise.
14326 * darwin-nat.c (darwin_check_new_threads): Likewise.
14327 (darwin_attach_pid): Likewise.
14328 * dummy-frame.c (dummy_frame_push): Likewise.
14329 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14330 * dwarf2loc.c (allocate_piece_closure): Likewise.
14331 * elfread.c (elf_symfile_segments): Likewise.
14332 * eval.c (ptrmath_type_p): Likewise.
14333 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14334 * gdbtypes.c (alloc_type_arch): Likewise.
14335 (alloc_type_instance): Likewise.
14336 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14337 * inf-child.c (inf_child_can_use_agent): Likewise.
14338 * inflow.c (get_inflow_inferior_data): Likewise.
14339 * infrun.c (save_infcall_suspend_state): Likewise.
14340 * jit.c (jit_reader_load): Likewise.
14341 (get_jit_objfile_data): Likewise.
14342 (get_jit_program_space_data): Likewise.
14343 (jit_object_open_impl): Likewise.
14344 (jit_symtab_open_impl): Likewise.
14345 (jit_block_open_impl): Likewise.
14346 (jit_frame_sniffer): Likewise.
14347 * linux-fork.c (add_fork): Likewise.
14348 * maint.c (make_command_stats_cleanup): Likewise.
14349 * objfiles.c (get_objfile_pspace_data): Likewise.
14350 * opencl-lang.c (struct lval_closure): Likewise.
14351 * osdata.c (osdata_start_osdata): Likewise.
14352 * progspace.c (new_address_space): Likewise.
14353 (add_program_space): Likewise.
14354 * remote-sim.c (get_sim_inferior_data): Likewise.
14355 * sh-tdep.c (sh_gdbarch_init): Likewise.
14356 * skip.c (Ignore): Likewise.
14357 (skip_delete_command): Likewise.
14358 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14359 (library_list_start_library): Likewise.
14360 (solib_aix_current_sos): Likewise.
14361 * solib-darwin.c (get_darwin_info): Likewise.
14362 (darwin_current_sos): Likewise.
14363 * solib-dsbt.c (get_dsbt_info): Likewise.
14364 * solib-ia64-hpux.c (new_so_list): Likewise.
14365 (ia64_hpux_get_solib_linkage_addr): Likewise.
14366 * solib-spu.c (append_ocl_sos): Likewise.
14367 (spu_current_sos): Likewise.
14368 * solib-svr4.c (get_svr4_info): Likewise.
14369 (svr4_keep_data_in_core): Likewise.
14370 (library_list_start_library): Likewise.
14371 (svr4_default_sos): Likewise.
14372 (svr4_read_so_list): Likewise.
14373 * solib-target.c (library_list_start_library): Likewise.
14374 (solib_target_current_sos): Likewise.
14375 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14376 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14377 * symfile.c (default_symfile_segments): Likewise.
14378 * target-descriptions.c (tdesc_data_init): Likewise.
14379 (tdesc_create_reg): Likewise.
14380 (struct tdesc_type *): Likewise.
14381 (tdesc_create_vector): Likewise.
14382 (tdesc_set_struct_size): Likewise.
14383 (struct tdesc_type *): Likewise.
14384 (tdesc_free_feature): Likewise.
14385 (tdesc_create_feature): Likewise.
14386 * windows-nat.c (windows_add_thread): Likewise.
14387 (windows_make_so): Likewise.
14388 * xml-support.c (gdb_xml_body_text): Likewise.
14389 (gdb_xml_create_parser_and_cleanup): Likewise.
14390 (xml_process_xincludes): Likewise.
14391 * xml-syscall.c (allocate_syscalls_info): Likewise.
14392 (syscall_create_syscall_desc): Likewise.
14394 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14396 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14397 function, with code from i386_stap_parse_special_token.
14398 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14399 (i386_stap_parse_special_token): Move code to the two functions
14400 above; simplify it.
14402 2014-01-09 Pedro Alves <palves@redhat.com>
14403 Hui Zhu <hui@codesourcery.com>
14406 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14407 bp_err_string. Don't mark the location shlib_disabled if the
14408 error thrown wasn't a generic or memory error. Catch errors
14409 thrown while inserting breakpoints in overlayed code. Output
14410 error message of software breakpoints.
14411 * remote.c (remote_insert_breakpoint): If this breakpoint has
14412 target-side commands but this stub doesn't support Z0 packets,
14413 throw NOT_SUPPORTED_ERROR error.
14414 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14415 * target.h (target_insert_breakpoint): Extend comment.
14416 (target_insert_hw_breakpoint): Add comment.
14418 2014-01-08 Pedro Alves <palves@redhat.com>
14420 * remote.c (remote_add_thread): Add threads silently if starting
14422 (remote_notice_new_inferior): If in all-stop, and starting up,
14423 don't call notice_new_inferior.
14424 (get_current_thread): New function, factored out from ...
14425 (add_current_inferior_and_thread): ... this. Adjust.
14426 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14427 found any thread, then select the remote's current thread as GDB's
14428 current thread too.
14430 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14432 * NEWS: Create a new section for the next release branch.
14433 Rename the section of the current branch, now that it has
14436 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14438 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14439 * version.in: Bump version to 7.7.50.DATE-cvs.
14441 2014-01-08 Yao Qi <yao@codesourcery.com>
14443 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14444 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14445 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14447 2014-01-08 Yao Qi <yao@codesourcery.com>
14449 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14450 return value of bfd_get_filename to symbol_file_add_from_bfd.
14452 2014-01-08 Pierre Muller <muller@sourceware.org>
14455 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14456 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14457 to prim_record_mininal_symbol_and_info.
14458 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14459 in call to prim_record_minimal_symbol_and_info.
14460 (read_pe_exported_syms): Set index field of section_data.
14462 2014-01-07 Andrew Pinski <apinski@cavium.com>
14464 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14465 * features/aarch64.c: Regenerate.
14467 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14469 * target.c (return_null): Define.
14470 (update_current_target): Use it instead of return_zero for
14471 functions that return a pointer.
14473 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14475 * source.c (add_path): Fix check for duplicated paths in the previously
14478 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14480 * ada-lang.c: Remove duplicated include statements.
14481 * alphabsd-nat.c: Ditto.
14482 * amd64-darwin-tdep.c: Ditto.
14483 * amd64fbsd-nat.c: Ditto.
14484 * auto-load.c: Ditto.
14486 * breakpoint.c: Ditto.
14487 * dbxread.c: Ditto.
14488 * fork-child.c: Ditto.
14489 * gdb_usleep.c: Ditto.
14490 * i386-darwin-tdep.c: Ditto.
14491 * i386fbsd-nat.c: Ditto.
14493 * inferior.c: Ditto.
14494 * jv-lang.c: Ditto.
14495 * linux-nat.c: Ditto.
14496 * linux-tdep.c: Ditto.
14497 * m68kbsd-nat.c: Ditto.
14498 * m68klinux-nat.c: Ditto.
14499 * microblaze-tdep.c: Ditto.
14500 * mips-linux-tdep.c: Ditto.
14501 * mn10300-tdep.c: Ditto.
14502 * nto-tdep.c: Ditto.
14503 * opencl-lang.c: Ditto.
14505 * printcmd.c: Ditto.
14506 * regcache.c: Ditto.
14507 * remote-m32r-sdi.c: Ditto.
14509 * symfile.c: Ditto.
14511 * tilegx-linux-nat.c: Ditto.
14512 * tilegx-tdep.c: Ditto.
14513 * tracepoint.c: Ditto.
14515 * vaxbsd-nat.c: Ditto.
14516 * windows-nat.c: Ditto.
14517 * xtensa-tdep.c: Ditto.
14519 2014-01-07 Yao Qi <yao@codesourcery.com>
14521 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14523 2014-01-07 Yao Qi <yao@codesourcery.com>
14524 Joel Brobecker <brobecker@adacore.com>
14526 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14527 (pdc_write_regs): Likewise.
14528 (fetch_regs_kernel_thread): Likewise.
14529 (store_regs_kernel_thread): Likewise.
14531 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14533 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14534 tagged type objects to their actual type.
14536 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14538 * ada-valprint.c (print_field_values): Add "language" parameter.
14539 Update calls to print_field_values and print_variant_part.
14540 Pass new parameter "language" in call to val_print instead
14541 of "current_language". Replace call to ada_val_print by call
14543 (print_variant_part): Add "language" parameter.
14544 (ada_val_print_struct_union): Update call to print_field_values.
14546 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14548 * ada-valprint.c (ui_memcpy): Delete.
14549 (ada_print_floating): Update documentation. Add empty line
14550 between between function documentation and implementation.
14551 Delete variable "buffer". Use ui_file_xstrdup in place of
14552 ui_file_put. Minor adjustments following this change.
14554 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14556 * ada-valprint.c (ada_val_print_string): New function,
14557 extracted from ada_val_print_array.
14558 (ada_val_print_array): Replace extracted code by call
14559 to ada_val_print_string followed by a return. Move
14560 "else" branch to the function's top block.
14562 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14564 * ada-valprint.c (ada_val_print_array): Move implementation
14565 down. Rename parameter "offset" and "val" into "offset_aligned"
14566 and "original_value" respectively. Add parameter "offset".
14568 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14570 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14571 re-organizing the code. Change the "???" message printed
14572 when target type is a TYPE_CODE_UNDEF into
14573 "<ref to undefined type>".
14575 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14577 * ada-valprint.c (print_record): Delete, implementation inlined...
14578 (ada_val_print_struct_union): ... here. Remove call to
14579 ada_check_typedef in inlined implementation.
14581 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14583 * ada-valprint.c (ada_val_print_gnat_array): New function,
14584 extracted from ada_val_print_1;
14585 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14586 (ada_val_print_flt, ada_val_print_struct_union)
14587 (ada_val_print_ref): Likewise.
14588 (ada_val_print_1): Delete variables i and elttype.
14589 Replace extracted-out code by call to corresponding
14592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14594 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14596 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14598 * ada-valprint.c (ada_val_print_1): Replace calls to
14599 ada_val_print_1 by calls to val_print.
14601 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14603 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14604 Update calls to self accordingly. Replace calls to c_val_print
14605 by calls to val_print.
14607 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14609 * ada-valprint.c (print_record): Delete declaration.
14610 (adjust_type_signedness, ada_val_print_1): Likewise.
14611 (ada_val_print): Move function implementation down.
14612 (print_variant_part, print_field_values, print_record):
14613 Move function implementation up.
14615 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14617 * python/py-type.c (typy_get_name): New function.
14618 (type_object_getset): Add entry for attribute "name".
14619 * NEWS: Add entry mentioning this new attribute.
14621 2014-01-07 Yao Qi <yao@codesourcery.com>
14623 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14626 2014-01-07 Yao Qi <yao@codesourcery.com>
14628 * gnu-nat.c (info_port_rights): Add qualifier const to
14631 2014-01-07 Yao Qi <yao@codesourcery.com>
14633 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14635 2014-01-07 Yao Qi <yao@codesourcery.com>
14637 * gnu-nat.c (make_inf) Update declaration.
14638 (make_inf): Make it static.
14639 (inf_set_traced): Likewise.
14640 (inf_port_to_thread, inf_task_died_status): Likewise.
14642 2014-01-07 Yao Qi <yao@codesourcery.com>
14644 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14646 2014-01-07 Yao Qi <yao@codesourcery.com>
14648 * gnu-nat.c (_initialize_gnu_nat): Declare.
14650 2014-01-07 Yao Qi <yao@codesourcery.com>
14652 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14654 (struct gdbarch_info) <byte_order>: Change type to
14656 <byte_order_for_code>: Likewise.
14657 * gdbarch.c, gdbarch.h: Regenerated.
14659 2014-01-06 Sasha Smundak <asmundak@google.com>
14661 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14663 2014-01-06 Tom Tromey <tromey@redhat.com>
14665 * doublest.c (convert_doublest_to_floatformat): Use const, not
14667 * somread.c (som_symtab_read): Likewise.
14669 2014-01-07 Hui Zhu <hui@codesourcery.com>
14671 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14672 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14673 (gdb_bfd_fopen): Ditto.
14674 (gdb_bfd_openr): Ditto.
14675 (gdb_bfd_openw): Ditto.
14676 (gdb_bfd_openr_iovec): Ditto.
14677 (gdb_bfd_fdopenr): Ditto.
14678 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14679 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14681 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14683 * symfile-mem.c (symbol_file_add_from_memory): Removed
14684 gdb_bfd_stash_filename.
14686 2014-01-03 Doug Evans <dje@google.com>
14688 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14691 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14693 Update year range in copyright notice of all files.
14695 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14697 * top.c (print_gdb_version): Set copyright year to 2014.
14699 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14701 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14703 For older changes see ChangeLog-2013.
14709 version-control: never