1 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
4 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
5 the method args also under EVAL_SKIP when evaluating method
8 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
10 * dwarf2loc.c (read_pieced_value): Do big endian
11 processing only if gdb_regnum is not -1.
12 (write_pieced_value): Ditto.
14 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
16 * arm-linux-tdep.c (arm_linux_init_abi): Use
17 info.byte_order_for_code to choose endianity of breakpoint
18 instructions snippets.
20 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
22 * arm-tdep.c (extract_arm_insn): Use
23 gdbarch_byte_order_for_code to read arm instruction.
25 2014-11-02 Doug Evans <xdje42@gmail.com>
27 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
29 2014-11-02 Doug Evans <xdje42@gmail.com>
31 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
32 main_subfile before returning.
34 2014-10-31 Doug Evans <xdje42@gmail.com>
36 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
37 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
39 2014-10-31 Doug Evans <xdje42@gmail.com>
41 * valops.c (value_cast_pointers): Fix whitespace.
42 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
45 2014-10-30 Doug Evans <dje@google.com>
47 * NEWS: Mention ability add attributes to gdb.Objfile and
48 gdb.Progspace objects.
49 * python/py-objfile.c (objfile_object): New member dict.
50 (objfpy_dealloc): Py_XDECREF dict.
51 (objfpy_initialize): Initialize dict.
52 (objfile_getset): Add __dict__.
53 (objfile_object_type): Set tp_dictoffset member.
54 * python/py-progspace.c (progspace_object): New member dict.
55 (pspy_dealloc): Py_XDECREF dict.
56 (pspy_initialize): Initialize dict.
57 (pspace_getset): Add __dict__.
58 (pspace_object_type): Set tp_dictoffset member.
60 2014-10-30 Yao Qi <yao@codesourcery.com>
62 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
63 replace '\\' with '\\\\'.
65 2014-10-29 Joel Brobecker <brobecker@adacore.com>
69 2014-10-29 Pedro Alves <palves@redhat.com>
72 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
73 instead of assuming a thread with a stepping range is always
76 2014-10-29 Pedro Alves <palves@redhat.com>
79 * event-top.c (change_line_handler): Call
80 gdb_rl_callback_handler_remove instead of
81 rl_callback_handler_remove.
82 (callback_handler_installed): New global.
83 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
84 (gdb_rl_callback_handler_reinstall): New functions.
85 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
86 gdb_rl_callback_handler_install instead of
87 rl_callback_handler_remove and rl_callback_handler_install.
88 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
89 instead of rl_callback_handler_remove.
90 * event-top.h (gdb_rl_callback_handler_remove)
91 (gdb_rl_callback_handler_install)
92 (gdb_rl_callback_handler_reinstall): New declarations.
93 * infrun.c (reinstall_readline_callback_handler_cleanup): New
95 (fetch_inferior_event): Install it.
96 * top.c (gdb_readline_wrapper_line) Call
97 gdb_rl_callback_handler_remove instead of
98 rl_callback_handler_remove.
99 (gdb_readline_wrapper_cleanup): Don't call
100 rl_callback_handler_install.
102 2014-10-29 Pedro Alves <palves@redhat.com>
104 * event-top.c (command_line_handler): Clear the first byte of
105 linebuffer, when it is first allocated.
107 2014-10-29 Pedro Alves <palves@redhat.com>
109 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
112 2014-10-29 Pedro Alves <palves@redhat.com>
116 * tui/tui-interp.c (tui_is_toplevel): Delete global.
117 (tui_allowed_p): Delete function.
118 * tui/tui.c: Include "interps.h".
119 (tui_enable): Don't use tui_allowed_p. Error out here with
120 detailed error messages if the TUI is the top level interpreter,
121 or if output is not a terminal. Use newterm instead of initscr,
122 and error out if initializing the terminal fails. Also error out if
123 the terminal doesn't support cursor addressing.
124 * tui/tui.h (tui_allowed_p): Delete declaration.
126 2014-10-29 Joel Brobecker <brobecker@adacore.com>
128 * arm-tdep.c (arm_skip_stack_protector): Return early if
129 address loaded by first "ldr" instruction does not have
130 a corresponding minimal symbol. Update comment.
132 2014-10-29 Yao Qi <yao@codesourcery.com>
134 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
135 loaded address correctly of ldr instruction.
137 2014-10-28 Pedro Alves <palves@redhat.com>
140 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
142 * infrun.c (resume) <stepping breakpoint instruction>: Set the
143 thread's stepped_breakpoint field. Skip if reverse debugging.
145 (init_thread_stepping_state, handle_signal_stop): Clear the
146 thread's stepped_breakpoint field.
148 2014-10-27 Pedro Alves <palves@redhat.com>
150 * remote.c (remote_thread_alive): New, factored out from ...
151 (remote_thread_alive): ... this.
152 (remote_update_thread_list): Bail out before deleting threads if
153 the target returned an empty list, and, the current thread has a
156 2014-10-27 Pedro Alves <palves@redhat.com>
158 * infrun.c (handle_signal_stop): Also skip handlers when a random
159 signal arrives while handling a "stepi" or a "nexti". Set the
160 thread's 'step_after_step_resume_breakpoint' flag.
162 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
164 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
165 (arm_record_ld_st_imm_offset): Reimplement to cover all
166 load/store cases for ARM opcode 010.
167 (arm_record_ld_st_multiple): Reimplement to cover all
168 load/store cases for ARM opcode 100.
170 2014-10-26 Doug Evans <xdje42@gmail.com>
172 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
174 2014-10-26 Doug Evans <xdje42@gmail.com>
176 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
177 parameter "kind" to "block_index".
178 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
180 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
182 2014-10-26 Doug Evans <xdje42@gmail.com>
184 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
186 2014-10-26 Doug Evans <xdje42@gmail.com>
188 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
191 2014-10-26 Doug Evans <xdje42@gmail.com>
193 * parser-defs.h (block_found): Move decl from here ...
194 * symtab.h (block_found): ... to here.
196 2014-10-26 Doug Evans <xdje42@gmail.com>
198 * symtab.h (struct field_of_this_result): Fix typo in comment.
199 (lookup_symbol_in_language): Move function comment here.
200 (lookup_symbol): Improve function comment.
201 (basic_lookup_symbol_nonlocal): Ditto.
202 (lookup_symbol_static, lookup_symbol_global): Ditto.
203 (lookup_symbol_aux_block): Ditto.
204 (lookup_language_this): Add function comment.
205 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
207 (lookup_block_symbol): Improve function comment.
208 (lookup_struct): Fix capitalization in function comment.
209 (lookup_transparent_type): Add function comment.
210 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
211 Improve function comment.
212 (lookup_objfile_from_block): Add function comment.
213 * symtab.c (lookup_symbol_in_language): Update function comment.
214 (lookup_symbol, lookup_language_this): Ditto.
215 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
216 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
217 (basic_lookup_symbol_nonlocal): Ditto.
218 (lookup_symbol_static, lookup_symbol_global): Ditto.
219 (lookup_transparent_type, lookup_block_symbol): Ditto.
221 2014-10-25 Doug Evans <xdje42@gmail.com>
223 * symtab.c (types_info): Delete forward decl.
224 (functions_info, variables_info, sources_info): Ditto.
225 (_initialize_symtab): Rewrite forward decl to use
226 initialize_file_ftype.
228 2014-10-25 Doug Evans <xdje42@gmail.com>
230 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
232 2014-10-25 Doug Evans <xdje42@gmail.com>
234 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
235 of local var child_die.
237 2014-10-24 Don Breazeal <donb@codesourcery.com>
239 * infrun.c (follow_fork_inferior): Update fork message printing
240 to use target_terminal_ours_for_output instead of
241 target_terminal_ours, to use _() for all format strings, to print
242 "vfork" instead of "fork" for vforks, and to add a detach message.
243 (handle_vfork_child_exec_or_exit): Update message printing to use
244 target_terminal_ours_for_output instead of target_terminal_ours, to
245 use _() for all format strings, and to fix some formatting.
247 2014-10-24 Pedro Alves <palves@redhat.com>
249 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
250 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
251 * config/vax/vax.mh: Delete.
252 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
253 obsolete configurations section.
254 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
255 * vax-nat.c: Delete file.
257 2014-10-24 Pedro Alves <palves@redhat.com>
259 * NEWS (Removed targets): Add OS/arch column.
261 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
263 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
264 on the arg type of a constructor only if it is of reference type.
266 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
268 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
269 accessors and constants from nios2 opcodes update.
270 (nios2_get_next_pc): Likewise.
272 2014-10-19 Doug Evans <xdje42@gmail.com>
274 * gdbthread.h (set_running): Fix comment.
275 (set_executing, finish_thread_state): Fix comment.
277 2014-10-18 Doug Evans <xdje42@gmail.com>
279 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
281 2014-10-17 Doug Evans <dje@google.com>
283 * NEWS: Mention new event gdb.clear_objfiles.
284 * python/py-event.h (emit_clear_objfiles_event): Clear
285 * python/py-events.h (events_object): New member clear_objfiles.
286 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
288 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
289 emit clear_objfiles event.
290 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
292 (emit_clear_objfiles_event): New function.
293 (clear_objfiles): New event.
294 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
296 * python/python.c (_initialize_python): Call
297 gdbpy_initialize_clear_objfiles_event.
299 2014-10-17 Doug Evans <dje@google.com>
301 * NEWS: Mention new gdb.Objfile.progspace attribute.
302 * python/py-objfile.c (objfpy_get_progspace): New function.
303 (objfile_getset): New entry for "progspace".
305 2014-10-17 Pedro Alves <palves@redhat.com>
308 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
309 returns a copy of the input.
310 (run_command_1, continue_command, step_1, jump_command)
311 (signal_command, until_command, advance_command, finish_command)
312 (attach_command): Adjust and install a cleanup to free the
315 2014-10-17 Pedro Alves <palves@redhat.com>
318 * infcmd.c (continue_1): If continuing all threads in the
319 foreground, make sure the inferior's terminal settings are put in
322 2014-10-17 Pedro Alves <palves@redhat.com>
325 * annotate.c (annotate_breakpoints_invalid): Use
326 target_terminal_our_for_output instead of target_terminal_ours.
327 Give back the terminal to the target.
328 (annotate_frames_invalid): Likewise.
330 2014-10-17 Pedro Alves <palves@redhat.com>
332 * target.c (enum terminal_state): New enum.
333 (terminal_state): New global.
334 (target_terminal_init): New function.
335 (target_terminal_inferior): Skip if inferior already owns the
337 (target_terminal_ours, target_terminal_ours_for_output): New
339 * target.h (target_terminal_init): Convert to function prototype.
340 (target_terminal_ours_for_output): Convert to function prototype
342 (target_terminal_ours): Convert to function prototype and tweak
344 * windows-nat.c (do_initial_windows_stuff): Call
345 target_terminal_init instead of child_terminal_init_with_pgrp.
347 2014-10-17 Pedro Alves <palves@redhat.com>
349 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
350 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
351 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
353 * NEWS: Mention that support for alpha*-*-osf* has been removed.
354 * ada-lang.h [__alpha__ && __osf__]
355 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
356 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
357 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
359 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
361 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
362 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
363 * configure: Regenerate.
364 * configure.ac: Remove references to osf.
365 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
366 section. Remove all other references to osf.
367 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
368 Remove all other references to osf.
369 * dec-thread.c: Delete file.
370 * defs.h (GDB_OSABI_OSF1): Delete.
371 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
373 * osabi.c (gdb_osabi_names): Delete "OSF/1".
374 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
376 (unconditionally_kill_inferior)
377 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
378 * solib-osf.c: Delete file.
380 2014-10-17 Pedro Alves <palves@redhat.com>
382 * remote.c (clear_threads_listing_context): Move higher up, out of
383 the HAVE_LIBEXPAT guard.
385 2014-10-16 Tristan Gingold <gingold@adacore.com>
387 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
388 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
391 2014-10-15 Pedro Alves <palves@redhat.com>
393 * dec-thread.c (dec_thread_count_gdb_threads)
394 (dec_thread_add_gdb_thread): Delete.
395 (dec_thread_update_thread_list): Delete.
396 (dec_thread_find_new_threads): Rename to ...
397 (dec_thread_update_thread_list): ... this. Delete GDB-size
398 threads that are no longer found in dec_thread_list.
399 (resync_thread_list): Delete.
400 (dec_thread_wait): Call dec_thread_update_thread_list instead of
403 2014-10-15 Pedro Alves <palves@redhat.com>
405 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
406 * remote.c (remote_update_thread_list): Skip calling prune_threads
407 if any thread listing method is supported, and instead walk over
408 the set of remote threads listed, deleting those that are not
409 found in GDB's thread list.
411 2014-10-15 Pedro Alves <palves@redhat.com>
413 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
414 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
415 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
416 (bsd_uthread_target): Adjust.
417 * corelow.c (core_open): Adjust.
418 * dec-thread.c (dec_thread_find_new_threads): Update comment.
419 (dec_thread_update_thread_list): New function.
420 (init_dec_thread_ops): Adjust.
421 * gdbthread.h (prune_threads): New declaration.
422 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
423 (thread_db_update_thread_list): ... this. Call prune_threads.
424 (init_thread_db_ops): Adjust.
425 * nto-procfs.c (procfs_find_new_threads): Rename to ...
426 (procfs_update_thread_list): ... this. Call prune_threads.
427 (procfs_attach, procfs_create_inferior, init_procfs_targets):
429 * obsd-nat.c (obsd_find_new_threads): Rename to ...
430 (obsd_update_thread_list): ... this. Call prune_threads.
431 (obsd_add_target): Adjust.
432 * procfs.c (procfs_target): Adjust.
433 (procfs_notice_thread): Update comment.
434 (procfs_find_new_threads): Rename to ...
435 (procfs_update_thread_list): ... this. Call prune_threads.
436 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
438 (ravenscar_wait): Adjust.
439 (ravenscar_find_new_threads): Rename to ...
440 (ravenscar_update_thread_list): ... this. Call prune_threads.
441 (init_ravenscar_thread_ops): Adjust.
442 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
443 (record_btrace_update_thread_list): ... this. Adjust comment.
444 (init_record_btrace_ops): Adjust.
445 * remote.c (remote_threads_info): Rename to ...
446 (remote_update_thread_list): ... this. Call prune_threads.
447 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
449 * sol-thread.c (check_for_thread_db): Adjust.
450 (sol_find_new_threads_callback): Rename to ...
451 (sol_update_thread_list_callback): ... this.
452 (sol_find_new_threads): Rename to ...
453 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
454 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
455 * target-delegates.c: Regenerate.
456 * target.c (target_find_new_threads): Rename to ...
457 (target_update_thread_list): ... this.
458 * target.h (struct target_ops): Rename to_find_new_threads field
459 to to_update_thread_list.
460 (target_find_new_threads): Rename to ...
461 (target_update_thread_list): ... this.
462 * thread.c (prune_threads): Make extern.
463 (update_thread_list): Adjust.
465 2014-10-15 Pedro Alves <palves@redhat.com>
467 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
468 Add describing comment. Return -1 if the qL packet is not
470 (struct thread_item, thread_item_t): Move higher up in
471 the file. Add comments.
472 (struct threads_parsing_context): Move higher up in
473 the file, add comments, and remote to ...
474 (struct threads_listing_context): ... this.
475 (remote_newthread_step): Don't add the thread to GDB's thread
476 database here. Instead push it to the thread_listing_context
478 (remote_find_new_threads): Rename to ...
479 (remote_get_threads_with_ql): ... this. Add target_ops and
480 targets_listing_context parameters. Pass down context.
481 (start_thread): Adjust.
482 (clear_threads_parsing_context): Rename to ...
483 (clear_threads_listing_context): ... this.
484 (remote_get_threads_with_qxfer): New, with parts salvaged from old
486 (remote_get_threads_with_qthreadinfo): Ditto.
487 (remote_threads_info): Reimplement.
489 2014-10-15 Pedro Alves <palves@redhat.com>
491 * infrun.c (resume): Don't force displaced-stepping for all
492 single-steps on software single-stepping archs.
494 2014-10-15 Pedro Alves <palves@redhat.com>
496 * breakpoint.c (single_step_breakpoints): Delete global.
497 (insert_single_step_breakpoint): Adjust to store the breakpoint
498 pointer in the current thread.
499 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
500 (cancel_single_step_breakpoints): Delete functions.
501 (breakpoint_has_location_inserted_here): Make extern.
502 (single_step_breakpoint_inserted_here_p): Adjust to walk the
504 * breakpoint.h (breakpoint_has_location_inserted_here): New
506 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
507 (cancel_single_step_breakpoints): Remove declarations.
508 * gdbthread.h (struct thread_control_state)
509 <single_step_breakpoints>: New field.
510 (delete_single_step_breakpoints)
511 (thread_has_single_step_breakpoints_set)
512 (thread_has_single_step_breakpoint_here): New declarations.
513 * infrun.c (follow_exec): Also clear the single-step breakpoints.
514 (singlestep_breakpoints_inserted_p, singlestep_ptid)
515 (singlestep_pc): Delete globals.
516 (infrun_thread_ptid_changed): Remove references to removed
518 (resume_cleanups): Delete the current thread's single-step
520 (maybe_software_singlestep): Remove references to removed globals.
521 (resume): Adjust to use thread_has_single_step_breakpoints_set and
522 delete_single_step_breakpoints.
523 (init_wait_for_inferior): Remove references to removed globals.
524 (delete_thread_infrun_breakpoints): Delete the thread's
525 single-step breakpoints too.
526 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
527 single-step breakpoints here.
528 (delete_stopped_threads_single_step_breakpoints): New function.
529 (adjust_pc_after_break): Adjust to use
530 thread_has_single_step_breakpoints_set.
531 (handle_inferior_event): Remove references to removed globals.
532 Use delete_stopped_threads_single_step_breakpoints.
533 (handle_signal_stop): Adjust to per-thread single-step
534 breakpoints. Swap test order to do cheaper tests first.
535 (switch_back_to_stepped_thread): Extend debug output. Remove
536 references to removed globals.
537 * record-full.c (record_full_wait_1): Adjust to per-thread
538 single-step breakpoints.
539 * thread.c (delete_single_step_breakpoints)
540 (thread_has_single_step_breakpoints_set)
541 (thread_has_single_step_breakpoint_here): New functions.
542 (clear_thread_inferior_resources): Also delete the thread's
543 single-step breakpoints.
545 2014-10-15 Pedro Alves <palves@redhat.com>
547 * thread.c (delete_thread_breakpoint): New function.
548 (delete_step_resume_breakpoint)
549 (delete_exception_resume_breakpoint): Use it.
550 (delete_at_next_stop): New function.
551 (clear_thread_inferior_resources): Use delete_at_next_stop.
553 2014-10-15 Pedro Alves <palves@redhat.com>
555 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
556 (breakpoint_inserted_here_p): ... here. Remove special case for
557 software single-step breakpoints.
558 (find_non_raw_software_breakpoint_inserted_here): Inline ...
559 (software_breakpoint_inserted_here_p): ... here. Remove special
560 case for software single-step breakpoints.
561 (bp_target_info_copy_insertion_state)
562 (deprecated_insert_raw_breakpoint)
563 (deprecated_remove_raw_breakpoint): Delete functions.
564 * breakpoint.h (deprecated_insert_raw_breakpoint)
565 (deprecated_remove_raw_breakpoint): Remove declarations.
567 2014-10-15 Pedro Alves <palves@redhat.com>
570 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
571 Delete array globals.
572 (single_step_breakpoints): New global.
573 (breakpoint_xfer_memory): Remove special handling for single-step
575 (update_breakpoints_after_exec): Delete bp_single_step
577 (detach_breakpoints): Remove special handling for single-step
579 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
580 (bpstat_stop_status): Add comment.
581 (bpstat_what, bptype_string, print_one_breakpoint_location)
582 (adjust_breakpoint_address, init_bp_location): Handle
584 (new_single_step_breakpoint): New function.
585 (set_momentary_breakpoint, bkpt_remove_location): Remove special
586 handling for single-step breakpoints.
587 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
588 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
590 (detach_single_step_breakpoints, find_single_step_breakpoint):
592 (breakpoint_has_location_inserted_here): New function.
593 (single_step_breakpoint_inserted_here_p): Rewrite.
594 * breakpoint.h: Remove FIXME.
595 (enum bptype) <bp_single_step>: New enum value.
596 (insert_single_step_breakpoint): Update comment.
597 * infrun.c (resume_cleanups)
598 (delete_step_thread_step_resume_breakpoint): Remove single-step
600 (fetch_inferior_event): Install a cleanup that removes infrun
602 (switch_back_to_stepped_thread) <expect thread advanced also>:
603 Clear step-over info.
605 2014-10-15 Pedro Alves <palves@redhat.com>
607 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
608 (delete_thread_infrun_breakpoints): New function, with parts
609 salvaged from delete_step_resume_breakpoint_callback.
610 (delete_step_thread_step_resume_breakpoint): Delete.
611 (for_each_just_stopped_thread_callback_func): New typedef.
612 (for_each_just_stopped_thread): New function.
613 (delete_just_stopped_threads_infrun_breakpoints): New function.
614 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
615 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
617 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
619 2014-10-15 Pedro Alves <palves@redhat.com>
621 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
622 trying to step past a non-steppable watchpoint.
623 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
625 * infrun.c (struct step_over_info): Add new field
626 'nonsteppable_watchpoint_p' and adjust comments.
627 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
629 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
630 (stepping_past_nonsteppable_watchpoint): New function.
631 (step_over_info_valid_p): Also return true if stepping past a
632 nonsteppable watchpoint.
633 (proceed): Adjust call to set_step_over_info. Remove reference to
635 (init_wait_for_inferior): Remove reference to init_infwait_state.
636 (waiton_ptid): Delete global.
637 (struct execution_control_state)
638 <stepped_after_stopped_by_watchpoint>: Delete field.
639 (wait_for_inferior, fetch_inferior_event): Always pass
640 minus_one_ptid to target_wait.
641 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
643 (init_infwait_state): Delete function.
644 (handle_inferior_event): Remove infwait_state handling.
645 (handle_signal_stop) <watchpoints handling>: Adjust after
646 stepped_after_stopped_by_watchpoint removal. Don't remove
647 breakpoints here nor set infwait_state. Set the thread's
648 stepping_over_watchpoint flag, and call keep_going instead.
649 (keep_going): Handle stepping_over_watchpoint. Adjust
650 set_step_over_info calls.
651 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
654 2014-10-15 Pedro Alves <palves@redhat.com>
656 * infrun.c (step_over_info_valid_p): New function.
657 (resume): Use step_over_info_valid_p instead of checking the
658 threads's trap_expected flag.
660 2014-10-15 Doug Evans <dje@google.com>
661 Walfred Tedeschi <walfred.tedeschi@intel.com>
664 * python/lib/gdb/__init__.py (packages): Add "printer".
665 * python/lib/gdb/command/bound_registers.py: Moved to ...
666 * python/lib/gdb/printer/bound_registers.py: ... here.
667 Add printer to global set of builtin printers. Rename printer from
668 "bound" to "mpx_bound128".
669 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
670 registered as global "builtin" printer.
671 (add_builtin_pretty_printer): New function.
672 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
673 gdb/printer/__init__.py.
675 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
677 * Makefile.in (SFILES): Remove d-support.c.
678 (COMMON_OBS): Remove d-support.o.
679 * d-lang.h (d_parse_symbol): Remove declaration.
680 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
681 * d-support.c: Remove file.
683 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
685 * gdb/infrun.c (process_event_stop_test): Apply
686 gdbarch_addr_bits_remove to longjmp resume address.
688 2014-10-15 Pedro Alves <palves@redhat.com>
690 * regformats/microblaze.dat: Delete file.
692 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
694 * features/Makefile (microblaze-expedite): Replace pc with rpc.
695 * regformats/microblaze-with-stack-protect.dat: Regenerate.
697 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
699 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
702 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
706 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
709 2014-10-14 Joel Brobecker <brobecker@adacore.com>
711 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
712 of the case where the second operand is a pointer.
713 <BINOP_SUB>: Likewise.
715 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
717 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
718 only if it is not NULL.
719 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
720 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
721 (struct probe_ops) <clear_semaphore>: Likewise.
722 * tracepoint.c (start_tracing): Call set_semaphore only if it is
724 (stop_tracing): Likewise, for clear_semaphore.
726 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
728 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
729 using language_c, instead of current_language.
731 2014-10-13 Doug Evans <dje@google.com>
733 * python/py-objfile.c (objfpy_initialize): New function.
734 (objfpy_new, objfile_to_objfile_object): Call it.
735 * python/py-progspace.c (pspy_initialize): New function.
736 (pspy_new, pspace_to_pspace_object): Call it.
738 2014-10-13 Miroslav Franc <mfranc@redhat.com>
739 Jan Kratochvil <jan.kratochvil@redhat.com>
741 Fix "save breakpoints" for "catch" command.
742 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
745 2014-10-12 Miroslav Franc <mfranc@redhat.com>
747 Fix "save breakpoints" for "disable $bpnum" command.
748 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
750 2014-10-10 Pedro Alves <palves@redhat.com>
752 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
753 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
754 (HFILES_NO_SRCDIR): Remove solib-irix.h.
755 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
757 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
758 * configure.ac: Remove references to IRIX.
759 * configure.host: Add *-*-irix* to the obsolete hosts section.
760 Remove all other references to irix.
761 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
764 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
766 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
767 isn't valid, release the tdesc arch data and return NULL.
769 2014-10-10 Pedro Alves <palves@redhat.com>
771 * linux-tdep.c: Include observer.h.
772 (linux_inferior_data): New global.
773 (struct linux_info): New structure.
774 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
775 (get_linux_inferior_data): New functions.
776 (linux_vsyscall_range): Rename to ...
777 (linux_vsyscall_range_raw): ... this.
778 (linux_vsyscall_range): New function; handles caching.
779 (_initialize_linux_tdep): Register linux_inferior_data. Install
780 inferior_exit and inferior_appeared observers.
782 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
783 Pedro Alves <palves@redhat.com>
786 * solib-svr4.c (svr4_read_so_list): Rename to ...
787 (svr4_current_sos_1): ... this and change the function comment.
788 (svr4_current_sos): New function.
790 2014-10-10 Pedro Alves <palves@redhat.com>
792 * arch-utils.c (default_vsyscall_range): New function.
793 * arch-utils.h (default_vsyscall_range): New declaration.
794 * gdbarch.sh (vsyscall_range): New hook.
795 * gdbarch.h, gdbarch.c: Regenerate.
796 * linux-tdep.c (linux_vsyscall_range): New function.
797 (linux_init_abi): Install linux_vsyscall_range as
798 vsyscall_range gdbarch hook.
799 * memrange.c (address_in_mem_range): New function.
800 * memrange.h (address_in_mem_range): New declaration.
801 * symfile-mem.c (find_vdso_size): Delete function.
802 (add_vsyscall_page): Use gdbarch_vsyscall_range.
804 2014-10-10 Pedro Alves <palves@redhat.com>
806 * infrun.c (normal_stop): Fix typo in comment.
808 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
811 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
812 typo when using logical AND to determine instruction type.
814 2014-10-09 Yao Qi <yao@codesourcery.com>
816 * infrun.c (handle_signal_stop): Remove local variable
819 2014-10-08 Stan Shebs <stan@codesourcery.com>
821 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
823 2014-10-08 Gary Benson <gbenson@redhat.com>
825 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
827 2014-10-08 Gary Benson <gbenson@redhat.com>
829 * common/common-defs.h: Include common-exceptions.h.
830 * exceptions.h: Do not include common-exceptions.h.
832 2014-10-08 Gary Benson <gbenson@redhat.com>
834 * common/common-defs.h: Include cleanups.h.
835 * common/common-exceptions.c: Do not include cleanups.h.
838 2014-10-08 Gary Benson <gbenson@redhat.com>
840 * ada-lang.c: Do not include exceptions.h.
841 * ada-valprint.c: Likewise.
842 * amd64-tdep.c: Likewise.
843 * auto-load.c: Likewise.
845 * break-catch-throw.c: Likewise.
846 * breakpoint.c: Likewise.
847 * btrace.c: Likewise.
848 * c-lang.c: Likewise.
849 * cli/cli-cmds.c: Likewise.
850 * cli/cli-interp.c: Likewise.
851 * cli/cli-script.c: Likewise.
852 * completer.c: Likewise.
853 * corefile.c: Likewise.
854 * corelow.c: Likewise.
855 * cp-abi.c: Likewise.
856 * cp-support.c: Likewise.
857 * cp-valprint.c: Likewise.
858 * darwin-nat.c: Likewise.
859 * dwarf2-frame-tailcall.c: Likewise.
860 * dwarf2-frame.c: Likewise.
861 * dwarf2loc.c: Likewise.
862 * dwarf2read.c: Likewise.
864 * event-loop.c: Likewise.
865 * event-top.c: Likewise.
866 * f-valprint.c: Likewise.
867 * frame-unwind.c: Likewise.
869 * gdbtypes.c: Likewise.
870 * gnu-v2-abi.c: Likewise.
871 * gnu-v3-abi.c: Likewise.
872 * guile/scm-auto-load.c: Likewise.
873 * guile/scm-breakpoint.c: Likewise.
874 * guile/scm-cmd.c: Likewise.
875 * guile/scm-frame.c: Likewise.
876 * guile/scm-lazy-string.c: Likewise.
877 * guile/scm-param.c: Likewise.
878 * guile/scm-symbol.c: Likewise.
879 * guile/scm-type.c: Likewise.
880 * hppa-hpux-tdep.c: Likewise.
881 * i386-tdep.c: Likewise.
882 * inf-loop.c: Likewise.
883 * infcall.c: Likewise.
884 * infcmd.c: Likewise.
885 * infrun.c: Likewise.
886 * interps.c: Likewise.
887 * interps.h: Likewise.
889 * linespec.c: Likewise.
890 * linux-nat.c: Likewise.
891 * linux-thread-db.c: Likewise.
892 * m32r-rom.c: Likewise.
894 * memory-map.c: Likewise.
895 * mi/mi-cmd-break.c: Likewise.
896 * mi/mi-cmd-stack.c: Likewise.
897 * mi/mi-interp.c: Likewise.
898 * mi/mi-main.c: Likewise.
899 * monitor.c: Likewise.
900 * nto-procfs.c: Likewise.
901 * objc-lang.c: Likewise.
902 * p-valprint.c: Likewise.
904 * ppc-linux-tdep.c: Likewise.
905 * printcmd.c: Likewise.
907 * python/py-auto-load.c: Likewise.
908 * python/py-breakpoint.c: Likewise.
909 * python/py-cmd.c: Likewise.
910 * python/py-finishbreakpoint.c: Likewise.
911 * python/py-frame.c: Likewise.
912 * python/py-framefilter.c: Likewise.
913 * python/py-function.c: Likewise.
914 * python/py-gdb-readline.c: Likewise.
915 * python/py-inferior.c: Likewise.
916 * python/py-infthread.c: Likewise.
917 * python/py-lazy-string.c: Likewise.
918 * python/py-linetable.c: Likewise.
919 * python/py-param.c: Likewise.
920 * python/py-prettyprint.c: Likewise.
921 * python/py-symbol.c: Likewise.
922 * python/py-type.c: Likewise.
923 * python/py-value.c: Likewise.
924 * python/python-internal.h: Likewise.
925 * python/python.c: Likewise.
926 * record-btrace.c: Likewise.
927 * record-full.c: Likewise.
928 * regcache.c: Likewise.
929 * remote-fileio.c: Likewise.
930 * remote-mips.c: Likewise.
931 * remote.c: Likewise.
932 * rs6000-aix-tdep.c: Likewise.
933 * rs6000-nat.c: Likewise.
935 * solib-darwin.c: Likewise.
936 * solib-dsbt.c: Likewise.
937 * solib-frv.c: Likewise.
938 * solib-ia64-hpux.c: Likewise.
939 * solib-spu.c: Likewise.
940 * solib-svr4.c: Likewise.
942 * spu-tdep.c: Likewise.
944 * stap-probe.c: Likewise.
945 * symfile-mem.c: Likewise.
946 * symmisc.c: Likewise.
947 * target.c: Likewise.
948 * thread.c: Likewise.
950 * tracepoint.c: Likewise.
951 * tui/tui-interp.c: Likewise.
952 * typeprint.c: Likewise.
954 * valarith.c: Likewise.
955 * valops.c: Likewise.
956 * valprint.c: Likewise.
958 * varobj.c: Likewise.
959 * windows-nat.c: Likewise.
960 * xml-support.c: Likewise.
962 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
964 * mips-tdep.c (add_offset_16): Rewrite to implement what the
966 (extended_mips16_next_pc): Update accordingly.
968 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
970 * mips-tdep.c (mips16_instruction_is_compact_branch): New
972 (micromips_instruction_is_compact_branch): Likewise.
973 (mips16_scan_prologue): Terminate scanning upon seeing a branch
974 or a compact jump, reaching a jump delay slot, or seeing a
975 second non-prologue instruction.
976 (micromips_scan_prologue): Also terminate scanning upon seeing a
977 compact branch or jump, or reaching a branch or jump delay slot.
978 (mips32_scan_prologue): Terminate scanning upon reaching a branch
979 or jump delay slot, or seeing a second non-prologue instruction.
980 (mips32_instruction_has_delay_slot): Retain instruction
981 examination code only, update arguments accordingly and move
982 instruction fetch pieces to...
983 (mips32_insn_at_pc_has_delay_slot): ... this new function.
984 (micromips_instruction_has_delay_slot): Likewise and to...
985 (micromips_insn_at_pc_has_delay_slot): ... this new function.
986 (mips16_instruction_has_delay_slot): Likewise and to...
987 (mips16_insn_at_pc_has_delay_slot): ... this new function.
988 (mips_single_step_through_delay): Update accordingly.
989 (mips_adjust_breakpoint_address): Likewise.
991 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
993 * mips-tdep.c (micromips_instruction_has_delay_slot): When
994 !mustbe32 also return 1 for 32-bit instructions.
995 (mips16_instruction_has_delay_slot): Likewise. Add an
998 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1000 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1003 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1005 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1007 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1008 for the breakpoint's address. Don't preinitialize `placed_size'.
1009 (insert_bp_location): Set `reqstd_address' rather than
1011 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1012 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1014 (bkpt_remove_location): Likewise.
1015 (deprecated_insert_raw_breakpoint): Likewise.
1016 (deprecated_remove_raw_breakpoint): Likewise.
1017 (find_single_step_breakpoint): Likewise.
1018 * mem-break.c (default_memory_insert_breakpoint): Use
1019 `reqstd_address' for the breakpoint's address. Don't set
1020 `placed_address' or `placed_size' if breakpoint contents couldn't
1021 have been determined.
1022 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1023 the breakpoint's address.
1024 (remote_insert_hw_breakpoint): Likewise. Don't set
1025 `placed_address' or `placed_size' if breakpoint couldn't have been
1027 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1028 `reqstd_address' for the breakpoint's address.
1029 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1030 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1031 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1032 * microblaze-linux-tdep.c
1033 (microblaze_linux_memory_remove_breakpoint): Likewise.
1034 * monitor.c (monitor_insert_breakpoint): Likewise.
1035 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1036 (procfs_insert_hw_breakpoint): Likewise.
1037 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1038 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1039 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1040 * remote-mips.c (mips_insert_breakpoint): Likewise.
1041 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1043 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1045 * valops.c (value_assign): Check for bit field assignments
1046 before calling architecture-specific register value
1047 conversion functions.
1049 2014-10-03 Pierre Muller <muller@sourceware.org>
1051 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1053 2014-10-02 Pedro Alves <palves@redhat.com>
1055 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1056 threads_are_executing.
1057 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1059 * gdbthread.h (threads_are_executing): Declare.
1060 (handle_signal_stop) <random signals>: Don't print about the
1061 signal here if stopping.
1062 (end_stepping_range): Don't notify observers here.
1063 (normal_stop): Update the thread list. If stopped by a random
1064 signal or a stepping range ended, notify observers.
1065 * thread.c (threads_executing): New global.
1066 (init_thread_list): Clear 'threads_executing'.
1067 (set_executing): Set or clear 'threads_executing'.
1068 (threads_are_executing): New function.
1069 (update_threads_executing): New function.
1070 (update_thread_list): Use it.
1072 2014-10-02 Pedro Alves <palves@redhat.com>
1074 PR breakpoints/17431
1075 * breakpoint.c (update_breakpoints_after_exec): Don't create
1076 overlay, longjmp, std terminate nor exception breakpoints here.
1078 2014-10-02 Pedro Alves <palves@redhat.com>
1080 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1082 * inferior.c (find_inferior_for_program_space): Give preference to
1083 the current inferior.
1084 * inferior.h (find_inferior_for_program_space): Update comment.
1085 * progspace.c (switch_to_program_space_and_thread): Prefer the
1086 current inferior if it's bound to the program space requested. If
1087 the inferior found doesn't have a PID yet, don't bother looking up
1089 * progspace.h (switch_to_program_space_and_thread): Adjust
1091 * thread.c (any_thread_of_process, any_live_thread_of_process):
1092 Give preference to the current thread.
1094 2014-10-01 Pedro Alves <palves@redhat.com>
1096 * breakpoint.c (insert_bp_location): Error out if inserting a
1097 software breakpoint at a read-only address.
1098 * target.c (memory_xfer_check_region): New function, factored out
1100 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1102 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1103 against the memory region attributes.
1105 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1107 * NEWS: Announce new exit-code field in -list-thread-groups
1109 * inferior.c (exit_inferior_1): Don't clear exit code.
1110 (inferior_appeared): Clear exit code.
1111 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1114 2014-10-01 Pedro Alves <palves@redhat.com>
1116 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1117 GENERATED" along with emacs/vi read-only markers.
1118 * regformats/aarch64.dat: Regenerate.
1119 * regformats/arm-with-iwmmxt.dat: Regenerate.
1120 * regformats/arm-with-neon.dat: Regenerate.
1121 * regformats/arm-with-vfpv2.dat: Regenerate.
1122 * regformats/arm-with-vfpv3.dat: Regenerate.
1123 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1124 * regformats/i386/amd64-avx.dat: Regenerate.
1125 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1126 * regformats/i386/amd64-avx512.dat: Regenerate.
1127 * regformats/i386/amd64-linux.dat: Regenerate.
1128 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1129 * regformats/i386/amd64-mpx.dat: Regenerate.
1130 * regformats/i386/amd64.dat: Regenerate.
1131 * regformats/i386/i386-avx-linux.dat: Regenerate.
1132 * regformats/i386/i386-avx.dat: Regenerate.
1133 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1134 * regformats/i386/i386-avx512.dat: Regenerate.
1135 * regformats/i386/i386-linux.dat: Regenerate.
1136 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1137 * regformats/i386/i386-mmx.dat: Regenerate.
1138 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1139 * regformats/i386/i386-mpx.dat: Regenerate.
1140 * regformats/i386/i386.dat: Regenerate.
1141 * regformats/i386/x32-avx-linux.dat: Regenerate.
1142 * regformats/i386/x32-avx.dat: Regenerate.
1143 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1144 * regformats/i386/x32-avx512.dat: Regenerate.
1145 * regformats/i386/x32-linux.dat: Regenerate.
1146 * regformats/i386/x32.dat: Regenerate.
1147 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1148 * regformats/mips-dsp-linux.dat: Regenerate.
1149 * regformats/mips-linux.dat: Regenerate.
1150 * regformats/mips64-dsp-linux.dat: Regenerate.
1151 * regformats/mips64-linux.dat: Regenerate.
1152 * regformats/nios2-linux.dat: Regenerate.
1153 * regformats/rs6000/powerpc-32.dat: Regenerate.
1154 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1155 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1156 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1157 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1158 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1159 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1160 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1161 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1162 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1163 * regformats/s390-linux32.dat: Regenerate.
1164 * regformats/s390-linux32v1.dat: Regenerate.
1165 * regformats/s390-linux32v2.dat: Regenerate.
1166 * regformats/s390-linux64.dat: Regenerate.
1167 * regformats/s390-linux64v1.dat: Regenerate.
1168 * regformats/s390-linux64v2.dat: Regenerate.
1169 * regformats/s390-te-linux64.dat: Regenerate.
1170 * regformats/s390x-linux64.dat: Regenerate.
1171 * regformats/s390x-linux64v1.dat: Regenerate.
1172 * regformats/s390x-linux64v2.dat: Regenerate.
1173 * regformats/s390x-te-linux64.dat: Regenerate.
1174 * regformats/tic6x-c62x-linux.dat: Regenerate.
1175 * regformats/tic6x-c62x.dat: Regenerate.
1176 * regformats/tic6x-c64x-linux.dat: Regenerate.
1177 * regformats/tic6x-c64x.dat: Regenerate.
1178 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1179 * regformats/tic6x-c64xp.dat: Regenerate.
1181 2014-10-01 Pedro Alves <palves@redhat.com>
1183 * features/Makefile: Update comments.
1184 (XMLTOC): List all xml files we build C files from.
1185 (clean-cfiles): New rule.
1187 2014-10-01 Pedro Alves <palves@redhat.com>
1189 * features/i386/amd64-avx512-linux.c: Regenerate.
1190 * features/i386/amd64-avx512.c: Regenerate.
1191 * features/i386/x32-avx512-linux.c: Regenerate.
1192 * features/i386/x32-avx512.c: Regenerate.
1194 2014-10-01 Pedro Alves <palves@redhat.com>
1196 * features/Makefile (WHICH): Remove arm-with-m,
1197 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1199 2014-10-01 Pedro Alves <palves@redhat.com>
1201 * features/Makefile (clean): New rule.
1203 2014-10-01 Pedro Alves <palves@redhat.com>
1205 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1206 (zmm14h): Add missing end quotes.
1208 2014-10-01 Pedro Alves <palves@redhat.com>
1210 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1211 * features/aarch64.c: Regenerate.
1213 2014-09-30 Don Breazeal <donb@codesourcery.com>
1215 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1216 code so as to work with follow_fork_inferior.
1217 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1218 (inf_ttrace_create_inferior): Remove reference to
1219 inf_ttrace_vfork_ppid.
1220 (inf_ttrace_attach): Ditto.
1221 (inf_ttrace_detach): Ditto.
1222 (inf_ttrace_kill): Use current_inferior instead of
1223 inf_ttrace_vfork_ppid.
1224 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1225 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1226 inferior away from the parent.
1227 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1229 (follow_fork_inferior): New function.
1230 (follow_inferior_reset_breakpoints): Make function static.
1231 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1232 * linux-nat.c (linux_child_follow_fork): Move target-independent
1233 code to infrun.c:follow_fork_inferior.
1235 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1237 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1238 * gdbarch.c: Regenerate.
1239 * gdbarch.h: Likewise.
1240 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1241 gdbarch method 'regset_from_core_section'.
1242 (get_core_register_section): Remove handling for the case that
1243 regset == NULL and regset_from_core_section is defined.
1244 (get_core_registers): Drop check for deleted method.
1245 * procfs.c (procfs_do_thread_registers): Adjust comment.
1247 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1249 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1250 (linux_nat_make_corefile_notes): Remove.
1251 (linux_target_install_ops): Do not set target method
1252 'make_corefile_notes'.
1253 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1255 (linux_corefile_thread_callback): Instead of args->collect, call
1256 linux_collect_thread_registers.
1257 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1258 NULL unless there is a regset iterator.
1259 (linux_make_corefile_notes_1): Remove.
1260 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1261 by linux_make_corefile_notes.
1262 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1264 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1266 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1267 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1269 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1271 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1273 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1274 (xtensa_iterate_over_regset_sections): New.
1275 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1277 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1279 * vax-tdep.c (vax_regset_from_core_section): Remove.
1280 (vax_iterate_over_regset_sections): New.
1281 (vax_gdbarch_init): Adjust gdbarch initialization.
1283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1285 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1286 (tilegx_regset_from_core_section): Remove.
1287 (tilegx_iterate_over_regset_sections): New.
1288 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1290 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1292 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1293 (sparc_iterate_over_regset_sections): New.
1294 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1295 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1297 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1298 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1299 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1300 target method 'make_corefile_notes'.
1302 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1304 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1305 'sizeof_gregset' and 'sizeof_fpregset'.
1306 * sh-tdep.c (sh_regset_from_core_section): Remove.
1307 (sh_iterate_over_regset_sections): New.
1308 (sh_gdbarch_init): Adjust gdbarch initialization.
1309 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1311 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1314 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1316 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1317 (score7_linux_iterate_over_regset_sections): New.
1318 (score_gdbarch_init): Adjust gdbarch initialization.
1320 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1322 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1324 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1325 method 'make_corefile_notes'.
1326 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1327 (ppcfbsd_regset_from_core_section): Remove.
1328 (ppcfbsd_iterate_over_regset_sections): New.
1329 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1331 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1332 (ppcnbsd_iterate_over_regset_sections): New.
1333 (ppcnbsd_init_abi): Adjust.
1334 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1335 (ppcobsd_iterate_over_regset_sections): New.
1336 (ppcobsd_init_abi): Adjust.
1337 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1338 (rs6000_aix_iterate_over_regset_sections): New.
1339 (rs6000_aix_init_osabi): Adjust.
1341 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1343 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1344 (nios2_regset_from_core_section): Remove.
1345 (nios2_iterate_over_regset_sections): New.
1346 (nios2_linux_init_abi): Adjust gdbarch initialization.
1348 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1350 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1351 (am33_iterate_over_regset_sections): New.
1352 (am33_linux_init_osabi): Adjust gdbarch initialization.
1354 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1356 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1357 (mips_linux_iterate_over_regset_sections): New.
1358 (mips_linux_init_abi): Adjust gdbarch initialization.
1359 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1360 (mips64obsd_iterate_over_regset_sections): New.
1361 (mips64obsd_init_abi): Adjust.
1362 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1363 (mipsnbsd_iterate_over_regset_sections): New.
1364 (mipsnbsd_init_abi): Adjust.
1366 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1368 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1369 (m88k_iterate_over_regset_sections): New.
1370 (m88k_gdbarch_init): Adjust gdbarch initialization.
1372 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1374 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1375 (ia64_linux_iterate_over_regset_sections): New.
1376 (ia64_linux_init_abi): Adjust gdbarch initialization.
1378 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1380 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1381 (m68kbsd_iterate_over_regset_sections): New.
1382 (m68kbsd_init_abi): Adjust gdbarch initialization.
1383 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1384 (m68k_linux_iterate_over_regset_sections): New.
1385 (m68k_linux_init_abi): Adjust gdbarch initialization.
1387 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1389 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1390 (m32r_linux_regset_from_core_section): Remove.
1391 (m32r_linux_iterate_over_regset_sections): New.
1392 (m32r_linux_init_abi): Adjust gdbarch initialization.
1394 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1396 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1397 (amd64obsd_iterate_over_regset_sections): New.
1398 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1399 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1401 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1402 regset_from_core_section initialization.
1403 * i386-tdep.c (i386_regset_from_core_section): Remove.
1404 (i386_iterate_over_regset_sections): New.
1405 (i386_gdbarch_init): Adjust gdbarch initialization.
1406 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1407 (i386_iterate_over_regset_sections): New prototype.
1408 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1410 (i386obsd_aout_iterate_over_regset_sections): New.
1411 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1412 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1414 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1415 (amd64fbsd_init_abi): Call fbsd_init_abi.
1416 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1417 (i386fbsd4_init_abi): Call fbsd_init_abi.
1418 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1419 target method 'make_corefile_notes'.
1420 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1422 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1424 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1425 (hppa_hpux_iterate_over_regset_sections): New.
1426 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1427 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1428 (hppa_linux_iterate_over_regset_sections): New.
1429 (hppa_linux_init_abi): Adjust.
1430 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1431 (hppanbsd_iterate_over_regset_sections): New.
1432 (hppanbsd_init_abi): Adjust.
1433 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1434 (hppaobsd_iterate_over_regset_sections): New.
1435 (hppaobsd_init_abi): Adjust.
1437 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1439 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1440 (frv_linux_iterate_over_regset_sections): New.
1441 (frv_linux_init_abi): Adjust gdbarch initialization.
1443 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1445 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1446 (armbsd_iterate_over_regset_sections): New prototype.
1447 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1448 (armbsd_iterate_over_regset_sections): New.
1449 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1452 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1454 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1455 (alpha_linux_iterate_over_regset_sections): New.
1456 (alpha_linux_init_abi): Adjust gdbarch initialization.
1457 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1459 (alphanbsd_iterate_over_regset_sections): New prototype.
1461 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1463 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1465 (aarch64_linux_iterate_over_regset_sections): New.
1466 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1468 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1470 * fbsd-tdep.c: New file.
1471 * fbsd-tdep.h: New file.
1472 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1473 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1474 (ALLDEPFILES): Add fbsd-tdep.c.
1476 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1478 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1480 * gdbarch.h: Regenerate.
1481 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1483 (get_core_register_section): Add parameter 'regset' and use it, if
1484 set. Add parameter 'min_size' and verify the bfd section size
1486 (get_core_registers_cb): Add parameter 'regset' and pass it to
1487 get_core_register section. For the "standard" register sections
1488 ".reg" and ".reg2", set an appropriate default for human_name.
1489 (get_core_registers): Don't abort when the gdbarch has an iterator
1490 but no regset_from_core_section. Add NULL/0 for parameters
1491 'regset'/'min_size' in calls to get_core_register_section.
1492 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1493 'regset' and use it instead of calling the
1494 regset_from_core_section gdbarch method.
1495 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1496 * i386-tdep.c (i386_supply_xstateregset)
1497 (i386_collect_xstateregset, i386_xstateregset): Moved to
1499 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1501 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1502 core file support only if the regset iterator hasn't been set.
1503 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1504 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1505 Moved from i386-tdep.c and renamed to *_linux*.
1506 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1507 each callback invocation. Allow any .reg-xstate size when reading
1509 * amd64-tdep.c (amd64_supply_xstateregset)
1510 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1512 (amd64_regset_from_core_section): Remove.
1513 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1514 install an amd64-specific regset_from_core_section gdbarch method.
1515 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1516 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1517 Moved from amd64-tdep.c and renamed to *_linux*.
1518 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1519 to each callback invocation. Allow any .reg-xstate size when
1520 reading from a core file.
1521 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1522 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1523 each callback invocation.
1524 (arm_linux_init_abi): No longer set the regset_from_core_section
1526 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1527 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1528 each callback invocation.
1529 (ppc_linux_init_abi): No longer set the regset_from_core_section
1531 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1532 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1533 (s390_regset_from_core_section): Remove.
1534 (s390_iterate_over_regset_sections): Add regset parameter to each
1535 callback invocation.
1536 (s390_gdbarch_init): No longer set the regset_from_core_section
1537 gdbarch method. Drop initialization of deleted tdep fields.
1539 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1541 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1542 (amd64_linux_iterate_over_regset_sections): New.
1543 (amd64_linux_init_abi_common): Don't install the regset section
1544 list, but the new iterator in gdbarch.
1545 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1546 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1547 (arm_linux_iterate_over_regset_sections): ...here. New function.
1548 (arm_linux_init_abi): Set iterator instead of section list.
1549 * corelow.c (get_core_registers_cb): New function, logic moved
1551 (get_core_registers): ...loop body here. Use new iterator method
1552 instead of walking through the regset section list.
1553 * gdbarch.sh: Remove 'core_regset_sections'. New method
1554 'iterate_over_regset_sections'. New typedef
1555 'iterate_over_regset_sections_cb'.
1556 * gdbarch.c: Regenerate.
1557 * gdbarch.h: Likewise.
1558 * i386-linux-tdep.c (i386_linux_regset_sections)
1559 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1561 (i386_linux_iterate_over_regset_sections): New.
1562 (i386_linux_init_abi): Don't choose a regset section list, but
1563 install new iterator in gdbarch.
1564 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1565 (linux_collect_regset_section_cb): New function, logic moved
1567 (linux_collect_thread_registers): ...loop body here. Use iterator
1568 method instead of walking through list.
1569 (linux_make_corefile_notes_1): Check for presence of iterator
1570 method instead of regset section list.
1571 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1572 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1573 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1574 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1575 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1576 (ppc_linux_init_abi): Don't choose from above regset section
1577 lists, but install new iterator in gdbarch.
1578 * regset.h (struct core_regset_section): Remove.
1579 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1580 have_linux_v1, have_linux_v2, and have_tdb.
1581 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1582 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1583 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1584 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1585 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1586 (s390_iterate_over_regset_sections): ...here. New function. Use
1588 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1589 regset section lists, but install new iterator.
1591 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1593 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1595 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1597 * progspace.c (print_program_space): Don't prune program spaces
1598 before printing them.
1600 2014-09-25 Pedro Alves <palves@redhat.com>
1602 * infrun.c (user_visible_resume_ptid): Don't check
1603 singlestep_breakpoints_inserted_p.
1605 2014-09-25 Pedro Alves <palves@redhat.com>
1607 * breakpoint.c (should_be_inserted): Add debug output.
1609 2014-09-25 Pedro Alves <palves@redhat.com>
1611 * infrun.c (stepping_past_instruction_at)
1612 (clear_exit_convenience_vars): Point at infrun.h instead of
1614 (handle_signal_stop): Fix typo.
1616 2014-09-24 Yao Qi <yao@codesourcery.com>
1618 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1621 2014-09-22 Gary Benson <gbenson@redhat.com>
1623 * target.c (target_stop): Updated comment.
1625 2014-09-22 Gary Benson <gbenson@redhat.com>
1627 * target/target.h (target_stop_ptid): Renamed as...
1628 (target_stop_and_wait): New function. Updated comment.
1630 (target_continue_ptid): Renamed as...
1631 (target_continue_no_signal): New function. Updated comment.
1634 2014-09-22 Pedro Alves <palves@redhat.com>
1636 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1638 * breakpoint.c (enum ugll_insert_mode): New enum.
1639 (always_inserted_mode): Now a plain boolean.
1640 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1641 (breakpoints_always_inserted_mode): Delete.
1642 (breakpoints_should_be_inserted_now): New function.
1643 (insert_breakpoints): Pass UGLL_INSERT to
1644 update_global_location_list instead of calling
1645 insert_breakpoint_locations manually.
1646 (create_solib_event_breakpoint_1): New, factored out from ...
1647 (create_solib_event_breakpoint): ... this.
1648 (create_and_insert_solib_event_breakpoint): Use
1649 create_solib_event_breakpoint_1 instead of calling
1650 insert_breakpoint_locations manually.
1651 (update_global_location_list): Change parameter type from boolean
1652 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1653 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1654 (update_global_location_list_nothrow): Change parameter type from
1655 boolean to enum ugll_insert_mode.
1656 (_initialize_breakpoint): "breakpoint always-inserted" option is
1657 now a boolean command. Update help text.
1658 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1659 (breakpoints_should_be_inserted_now): New declaration.
1660 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1661 Remove breakpoints_always_inserted_mode check.
1662 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1663 * remote.c (remote_start_remote): Likewise.
1665 2014-09-22 Pedro Alves <palves@redhat.com>
1667 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1668 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1669 Instead, pass UGLL_INSERT to update_global_location_list.
1670 (update_global_location_list): Change parameter type from boolean
1671 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1672 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1673 (create_solib_event_breakpoint_1): New, factored out from ...
1674 (create_solib_event_breakpoint): ... this.
1675 (create_and_insert_solib_event_breakpoint): Use
1676 create_solib_event_breakpoint_1 instead of calling
1677 insert_breakpoint_locations manually.
1678 (update_global_location_list): Handle UGLL_INSERT.
1680 2014-09-22 Pedro Alves <palves@redhat.com>
1682 * breakpoint.c (enum ugll_insert_mode): New enum.
1683 (update_global_location_list)
1684 (update_global_location_list_nothrow): Change parameter type from
1685 boolean to enum ugll_insert_mode. All callers adjusted.
1687 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1689 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1690 SystemTap support in GDB.
1692 2014-09-19 Don Breazeal <donb@codesourcery.com>
1694 * linux-nat.c (linux_handle_extended_wait): Call
1695 linux_ptrace_get_extended_event.
1696 (wait_lwp): Call linux_is_extended_waitstatus.
1697 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1698 and linux_is_extended_waitstatus.
1699 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1700 linux_ptrace_get_extended_event.
1701 (linux_ptrace_get_extended_event): New function.
1702 (linux_is_extended_waitstatus): New function.
1703 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1704 (linux_is_extended_waitstatus): New declarations.
1706 2014-09-19 Yao Qi <yao@codesourcery.com>
1708 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1709 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1710 comments. Callers update.
1711 (dwarf_decode_lines): Likewise.
1712 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1713 comments. Skip the line table if 'lowpc' is greater than
1714 'address'. Don't check
1715 dwarf2_per_objfile->has_section_at_zero.
1717 2014-09-18 Doug Evans <dje@google.com>
1719 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1720 * python/py-symtab.c (stpy_get_producer): New function.
1721 (symtab_object_getset): Add "producer" attribute.
1723 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1726 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1727 (do_captured_read_memory_integer): Remove.
1728 (safe_read_memory_integer): Use target_read_memory directly instead
1729 of catching errors in do_captured_read_memory_integer.
1731 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1733 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1736 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1738 * objc-lang.c (find_implementation_from_class): Remove dead code.
1740 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1743 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1744 "fprintf_unfiltered (gdb_stdlog...)".
1746 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1748 PR breakpoints/12526
1749 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1751 * breakpoint.c (watch_command_1): Use these fields to retain
1752 bitfield information.
1753 (extract_bitfield_from_watchpoint_value): New function.
1754 (watchpoint_check): Use it.
1755 (update_watchpoint): Use it. Optimize the address and length of a
1756 HW watchpoint pointing to a bitfield.
1757 * value.h (unpack_value_bitfield): New prototype.
1758 * value.c (unpack_value_bitfield): Make extern.
1760 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1762 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1764 * gnu-nat.c (inf_threads): New function.
1765 * gnu-nat.h (inf_threads_ftype): New typedef.
1766 (inf_threads): New declaration.
1767 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1768 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1769 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1770 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1771 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1772 (i386_gnu_dr_get_control): New functions.
1773 (reg_addr): New structure.
1774 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1775 i386 debugging register hooks.
1776 * NEWS: Mention this.
1778 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1780 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1781 vector data transfer instructions.
1782 (arm_record_coproc_data_proc): Updated.
1784 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1786 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1787 arm_record_exreg_ld_st_insn.
1788 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1791 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1793 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1794 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1795 processing instructions.
1797 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1799 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1800 for advance SIMD struct ld/st insn.
1801 (thumb2_record_decode_insn_handler): Replace stub handler with
1802 thumb2_record_asimd_struct_ld_st.
1804 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1806 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1807 for asimd, vfp and coprocessor insns.
1808 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1809 and coprocessor insns.
1810 (thumb2_record_coproc_insn): New function.
1811 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1813 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1816 2014-09-13 Doug Evans <xdje42@gmail.com>
1818 * NEWS: Mention new "queue-signal" command.
1819 * infcmd.c (queue_signal_command): New function.
1820 (_initialize_infcmd): Add new queue-signal command.
1822 2014-09-13 Doug Evans <xdje42@gmail.com>
1824 * linux-nat.c (wait_lwp): Add debugging printf.
1825 (linux_nat_wait_1): Ditto.
1827 2014-09-12 Pedro Alves <palves@redhat.com>
1829 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1830 (create_and_insert_solib_event_breakpoint): New functions.
1831 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1832 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1833 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1834 (remove_dbx_link_breakpoint): Delete function.
1835 (insert_dbx_link_bpt_in_file): Use
1836 create_and_insert_solib_event_breakpoint instead of
1837 deprecated_insert_raw_breakpoint.
1838 (procfs_wait): Don't check whether we hit __dbx_link here.
1839 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1841 * solib-irix.c (base_breakpoint): Delete global.
1842 (disable_break): Delete function.
1843 (enable_break): Use create_solib_event_breakpoint
1844 instead of deprecated_insert_raw_breakpoint.
1845 (irix_solib_handle_event): New function.
1846 (irix_solib_create_inferior_hook): Don't run the target or disable
1847 the mapping-complete breakpoint here.
1848 (_initialize_irix_solib): Install irix_solib_handle_event as
1849 so_ops->handle_event hook.
1851 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1852 Ulrich Weigand <uweigand@de.ibm.com>
1855 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1856 instead of read_memory_unsigned_integer.
1858 2014-09-12 Gary Benson <gbenson@redhat.com>
1860 * nat/linux-waitpid.c: Include common-defs.h.
1861 [GDBSERVER]: Add FIXME comment.
1862 [!GDBSERVER]: Don't include defs.h or signal.h.
1863 (linux_debug) [!GDBSERVER]: Remove empty block.
1865 2014-09-12 Gary Benson <gbenson@redhat.com>
1867 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1868 Don't include defs.h or server.h.
1870 2014-09-12 Gary Benson <gbenson@redhat.com>
1872 * nat/linux-btrace.c: Include common-defs.h.
1873 Don't include defs.h, server.h or gdbthread.h.
1874 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1876 2014-09-12 Gary Benson <gbenson@redhat.com>
1878 * common/agent.c: Include common-defs.h.
1879 Don't include defs.h or server.h.
1880 * common/buffer.c: Likewise.
1881 * common/common-debug.c: Likewise.
1882 * common/common-utils.c: Likewise.
1883 * common/errors.c: Likewise.
1884 * common/filestuff.c: Likewise.
1885 * common/format.c: Likewise.
1886 * common/gdb_vecs.c: Likewise.
1887 * common/print-utils.c: Likewise.
1888 * common/ptid.c: Likewise.
1889 * common/rsp-low.c: Likewise.
1890 * common/signals.c: Likewise.
1891 * common/vec.c: Likewise.
1892 * common/xml-utils.c: Likewise.
1893 * nat/linux-osdata.c: Likewise.
1894 * nat/linux-procfs.c: Likewise.
1895 * nat/linux-ptrace.c: Likewise.
1896 * nat/mips-linux-watch.c: Likewise.
1897 * target/waitstatus.c: Likewise.
1899 2014-09-12 Tom Tromey <tromey@redhat.com>
1900 Gary Benson <gbenson@redhat.com>
1902 * common/common-regcache.h: New file.
1903 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1904 * regcache.h: Include common-regcache.h.
1905 (regcache_read_pc): Don't declare.
1906 * regcache.c (get_thread_regcache_for_ptid): New function.
1907 * nat/linux-btrace.c: Don't include regcache.h.
1908 Include common-regcache.h.
1909 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1911 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1913 * regcache.h (struct regset): Declare.
1915 2014-09-11 Pedro Alves <palves@redhat.com>
1918 * main.c: Include "infrun.h".
1919 (catch_command_errors, catch_command_errors_const): Wait for the
1920 foreground command to complete.
1921 * top.c (maybe_wait_sync_command_done): New function, factored out
1923 (maybe_wait_sync_command_done): ... here.
1924 * top.h (maybe_wait_sync_command_done): New declaration.
1926 2014-09-11 Tom Tromey <tromey@redhat.com>
1927 Gary Benson <gbenson@redhat.com>
1929 * common/symbol.h: New file.
1930 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1931 * minsyms.c (find_minimal_symbol_address): New function.
1932 * common/agent.c: Include common/symbol.h.
1933 [!GDBSERVER]: Don't include objfiles.h.
1934 (agent_look_up_symbols): Use find_minimal_symbol_address.
1936 2014-09-11 Gary Benson <gbenson@redhat.com>
1938 * target/target.h (target_stop_ptid, target_continue_ptid):
1940 * target.c (target_stop_ptid, target_continue_ptid): New
1942 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1943 (agent_run_command): Always use target_stop_ptid and
1944 target_continue_ptid.
1946 2014-09-11 Tom Tromey <tromey@redhat.com>
1947 Gary Benson <gbenson@redhat.com>
1949 * target/target.h: New file.
1950 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1951 * target.h: Include target/target.h.
1952 (target_read_memory, target_write_memory): Don't declare.
1953 * target.c (target_read_uint32): New function.
1954 * common/agent.c: Include target/target.h.
1955 [!GDBSERVER]: Don't include target.h.
1956 (helper_thread_id): Type changed to uint32_t.
1957 (agent_get_helper_thread_id): Use target_read_uint32.
1958 (agent_run_command): Always use target_read_memory and
1959 target_write_memory.
1960 (agent_capability): Type changed to uint32_t.
1961 (agent_capability_check): Use target_read_uint32.
1963 2014-09-11 Gary Benson <gbenson@redhat.com>
1965 * common/common-debug.h (show_debug_regs): Declare.
1966 * common/common-debug.c (show_debug_regs): Define.
1967 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1968 all uses with show_debug_regs. Replace all uses that considered
1969 debug_hw_points as a multi-value integer with straight boolean
1971 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1972 with show_debug_regs.
1973 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1974 all uses with show_debug_regs.
1975 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1976 uses with show_debug_regs.
1978 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1980 * findvar.c (address_from_register): Handle targets requiring
1981 a special conversion routine even for plain pointer types.
1983 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1985 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1986 (store_register): Do not call exec_one_dummy_insn.
1988 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1990 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1991 dereference it first. Use value_enclosing_type instead of
1993 (ada_array_length): Likewise.
1995 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1997 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1998 Adjust function implementation and documentation accordingly.
1999 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2000 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2001 Update call to ada_value_ptr_subscript.
2003 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2005 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2006 instead of VAL's type.
2008 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2010 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2012 2014-09-09 Doug Evans <xdje42@gmail.com>
2015 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2016 last parameter to pkg-config, not first.
2017 * configure.ac: Pass --with-guile provided pkg-config path to
2018 GDB_GUILE_PROGRAM_NAMES.
2019 * configure: Regenerate.
2021 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2023 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2026 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2028 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2029 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2030 the list of sections determining GDB_OSABI_IRIX.
2032 2014-09-09 James Hogan <james.hogan@imgtec.com>
2034 * MAINTAINERS (Write After Approval): Add "James Hogan".
2036 2014-09-09 James Hogan <james.hogan@imgtec.com>
2038 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2040 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2042 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2044 2014-09-08 Doug Evans <xdje42@gmail.com>
2047 * guile.c: #include <signal.h>.
2048 (_initialize_guile): Block SIGCHLD while initializing Guile.
2050 Replaces the following, which is reverted.
2052 2014-07-26 Doug Evans <xdje42@gmail.com>
2055 * configure.ac: Add check for header gc/gc.h.
2056 Add check for function setenv.
2057 * configure: Regenerate.
2058 * config.in: Regenerate.
2059 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2061 2014-09-08 Doug Evans <xdje42@gmail.com>
2063 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2064 with named constant. Fix style of pointer comparison.
2065 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2067 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2070 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2071 decide whether we display the command on "show user".
2072 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2073 printing command name.
2074 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2075 * cli/cli-decode.c (cli_user_command_p): Create helper function
2076 to verify whether cmd_list_element is a user-defined command.
2078 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2081 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2082 Fix goto out of TRY_CATCH.
2084 2014-09-06 Doug Evans <xdje42@gmail.com>
2085 Tom Tromey <tromey@redhat.com>
2088 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2089 $_any_caller_matches.
2090 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2091 * python/lib/gdb/function/caller_is.py: New file.
2093 2014-09-06 Doug Evans <xdje42@gmail.com>
2095 * infcmd.c (program_info): Fix typo.
2097 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2100 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2101 'number'. New variable 'has_digit'. Rewrite code to deal with
2102 subexpressions on SDT probes.
2104 2014-09-04 Pedro Alves <palves@redhat.com>
2106 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2107 the input is only one character long.
2109 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2112 * f-valprint.c (f_val_print): Specify the correct print option to
2113 use when printing integer values.
2115 2014-09-04 Gary Benson <gbenson@redhat.com>
2117 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2118 Remove code to cope with LWPs wrapped as PIDs.
2119 Add assertions to ensure no wrapped LWPs are passed.
2121 2014-09-04 Pedro Alves <palves@redhat.com>
2123 * value.c (value_ranges_copy_adjusted): New function, factored out
2125 (value_contents_copy_raw): ... here.
2126 (unpack_value_bits_as_long_1): Rename back to ...
2127 (unpack_bits_as_long): ... this. Remove 'original_value' and
2128 'result' parameters. Change return type to LONGEST.
2129 (unpack_value_bits_as_long): Delete.
2130 (unpack_value_field_as_long_1): Delete.
2131 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2132 (unpack_value_bitfield): New function.
2133 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2134 (value_fetch_lazy): Use unpack_value_bitfield.
2135 * value.h (unpack_value_bits_as_long): Delete declaration.
2137 2014-09-03 Sasha Smundak <asmundak@google.com>
2139 * python/py-frame.c (frapy_read_register): New function.
2141 2014-09-03 James Hogan <james.hogan@imgtec.com>
2143 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2144 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2146 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2149 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2151 (add_cmd): Set "completer_handle_brkchars" to NULL.
2152 * cli/cli-decode.h (struct cmd_list_element)
2153 <completer_handle_brkchars>: New field.
2154 * command.h (completer_ftype_void): New typedef.
2155 (set_cmd_completer_handle_brkchars): New prototype.
2156 * completer.c (set_gdb_completion_word_break_characters): New
2158 (complete_line_internal): Call "completer_handle_brkchars"
2159 callback from command.
2160 * completer.h: Include "command.h".
2161 (set_gdb_completion_word_break_characters): New prototype.
2162 * python/py-cmd.c (cmdpy_completer_helper): New function.
2163 (cmdpy_completer_handle_brkchars): New function.
2164 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2165 (cmdpy_init): Set completer_handle_brkchars to
2166 cmdpy_completer_handle_brkchars.
2168 2014-09-03 Gary Benson <gbenson@redhat.com>
2170 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2171 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2172 Loop conditions changed to equivalent form.
2173 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2174 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2175 ALL_DEBUG_ADDRESS_REGISTERS.
2177 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2179 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2182 2014-09-02 Doug Evans <dje@google.com>
2184 * typeprint.c (find_global_typedef): Fix comment.
2186 2014-09-02 Gary Benson <gbenson@redhat.com>
2188 * i386-nat.h: Renamed as...
2189 * x86-nat.h: New file. All type, function and variable name
2190 prefixes changed from "i386_" to "x86_". All references updated.
2191 * i386-nat.c: Renamed as...
2192 * x86-nat.c: New file. All type, function and variable name
2193 prefixes changed from "i386_" to "x86_". All references updated.
2194 * common/i386-xstate.h: Renamed as...
2195 * common/x86-xstate.h: New file. All type, function and variable
2196 name prefixes changed from "i386_" to "x86_". All references
2198 * nat/i386-cpuid.h: Renamed as...
2199 * nat/x86-cpuid.h: New file. All type, function and variable name
2200 prefixes changed from "i386_" to "x86_". All references updated.
2201 * nat/i386-gcc-cpuid.h: Renamed as...
2202 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2203 name prefixes changed from "i386_" to "x86_". All references
2205 * nat/i386-dregs.h: Renamed as...
2206 * nat/x86-dregs.h: New file. All type, function and variable name
2207 prefixes changed from "i386_" to "x86_". All references updated.
2208 * nat/i386-dregs.c: Renamed as...
2209 * nat/x86-dregs.c: New file. All type, function and variable name
2210 prefixes changed from "i386_" to "x86_". All references updated.
2212 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2214 * varobj.c (_initialize_varobj): Move to the end of file.
2216 2014-08-29 Gary Benson <gbenson@redhat.com>
2218 * common/common-exceptions.h: New file.
2219 * common/common-exceptions.c: Likewise.
2220 * Makefile.in (SFILES): Add common/common-exceptions.c.
2221 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2222 (COMMON_OBS): Add common-exceptions.o.
2223 (common-exceptions.o): New rule.
2224 * exceptions.h (common-exceptions.h): Include.
2225 (gdb_setjmp.h): Do not include.
2226 (return_reason): Moved to common-exceptions.h.
2227 (enum return_reason): Likewise.
2228 (RETURN_MASK): Likewise.
2229 (typedef return_mask): Likewise.
2230 (enum errors): Likewise.
2231 (struct gdb_exception): Likewise.
2232 (exceptions_state_mc_init): Likewise.
2233 (exceptions_state_mc_action_iter): Likewise.
2234 (exceptions_state_mc_action_iter_1): Likewise.
2235 (TRY_CATCH): Likewise.
2236 (throw_exception): Likewise.
2237 (throw_verror): Likewise.
2238 (throw_vquit): Likewise.
2239 (throw_error): Likewise.
2240 (throw_quit): Likewise.
2241 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2242 (enum catcher_action): Likewise.
2243 (struct catcher): Likewise.
2244 (current_catcher): Likewise.
2245 (catcher_list_size): Likewise.
2246 (exceptions_state_mc_init): Likewise.
2247 (catcher_pop): Likewise.
2248 (exceptions_state_mc): Likewise.
2249 (exceptions_state_mc_action_iter): Likewise.
2250 (exceptions_state_mc_action_iter_1): Likewise.
2251 (throw_exception): Likewise.
2252 (exception_messages): Likewise.
2253 (exception_messages_size): Likewise.
2254 (throw_it): Likewise.
2255 (throw_verror): Likewise.
2256 (throw_vquit): Likewise.
2257 (throw_error): Likewise.
2258 (throw_quit): Likewise.
2259 (prepare_to_throw_exception): New function.
2261 2014-08-29 Gary Benson <gbenson@redhat.com>
2263 * common/gdb_setjmp.h: New file.
2264 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2265 * configure.ac: Move sigsetjmp check...
2266 * common/common.m4: ...here.
2267 * configure: Regenerate.
2268 * cp-support.c (SIGJMP_BUF): Delete.
2269 (SIGSETJMP): Likewise.
2270 (SIGLONGJMP): Likewise.
2271 * exceptions.h (gdb_setjmp.h): Include.
2272 (setjmp.h): Do not include.
2273 (EXCEPTIONS_SIGJMP_BUF): Delete.
2274 (EXCEPTIONS_SIGSETJMP): Likewise.
2275 (EXCEPTIONS_SIGLONGJMP): Likewise.
2276 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2278 * exceptions.c: Likewise.
2280 2014-08-29 Gary Benson <gbenson@redhat.com>
2282 * cleanups.h: Moved to...
2283 * common/cleanups.h: New file.
2284 * cleanups.c: Moved to...
2285 * common/cleanups.c: New file. Include common-defs.h and
2286 cleanups.h. Do not include defs.h.
2287 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2288 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2289 (cleanups.o): New rule.
2291 2014-08-29 Gary Benson <gbenson@redhat.com>
2293 * common/errors.h (internal_warning): New declaration.
2294 (internal_vwarning): Likewise.
2295 * common/errors.c (internal_warning): New function.
2296 * utils.h (internal_warning): Don't declare.
2297 (internal_vwarning): Likewise.
2298 * utils.c (internal_warning): Removed.
2300 2014-08-29 Gary Benson <gbenson@redhat.com>
2302 * main.c (captured_main): Use warning during startup.
2303 Prefix startup warning messages with command name.
2305 2014-08-29 Gary Benson <gbenson@redhat.com>
2307 * main.c (captured_main): Handle usage errors with error.
2309 2014-08-29 Gary Benson <gbenson@redhat.com>
2311 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2312 exit pair with a call to error. Wrap the message with _().
2314 2014-08-29 Gary Benson <gbenson@redhat.com>
2316 * main.c (captured_main): Replace a fprintf/exit
2317 pair with a call to error. Wrap the message with _().
2319 2014-08-29 Gary Benson <gbenson@redhat.com>
2321 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2322 pairs with calls to error. Wrap the message with _().
2324 2014-08-29 Gary Benson <gbenson@redhat.com>
2326 * utils.c (vwarning): Protect calls to target_terminal_ours
2329 2014-08-29 Gary Benson <gbenson@redhat.com>
2331 * exceptions.c (print_flush): Protect calls to
2332 target_terminal_ours and wrap_here.
2334 2014-08-29 Gary Benson <gbenson@redhat.com>
2336 * utils.h (filtered_printing_initialized): New declaration.
2337 * utils.c (abort_with_message): New function.
2338 (internal_vproblem): Use abort_with_message for first level
2339 recursive internal problems, and if gdb_stderr is not set up.
2340 Protect calls to target_terminal_ours, begin_line and query.
2342 2014-08-28 Doug Evans <dje@google.com>
2344 * symtab.c (in_prologue): Move definition to better spot.
2345 (skip_prologue_using_sal): Ditto.
2347 2014-08-28 Doug Evans <dje@google.com>
2349 * symtab.c (find_function_start_sal): Move definition to better spot.
2351 2014-08-28 Yao Qi <yao@codesourcery.com>
2353 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2354 found_stack_adjust in forward scan. Remove condition check
2355 on found_stack_adjust which is always true. Indent the code.
2357 2014-08-28 Yao Qi <yao@codesourcery.com>
2359 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2360 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2361 (dwarf_decode_lines): Remove argument
2362 want_line_info. Remove condition check on want_line_info.
2365 2014-08-27 Doug Evans <dje@google.com>
2367 * dwarf2read.c (dwarf_record_line): Fix typo.
2369 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2371 * target.h (struct target_ops::to_terminal_save_ours): Remove
2373 (target_terminal_save_ours): Remove macro.
2374 * target-delegates.c: Regenerate.
2375 * inf-child.c (inf_child_target): Don't set the nonexistent
2376 field to_terminal_save_ours.
2377 * inferior.h (child_terminal_save_ours): Remove declaration.
2378 * terminal.h (gdb_save_tty_state): New declaration.
2379 * inflow.c (child_terminal_save_ours): Rename to ...
2380 (gdb_save_tty_state): ... this.
2381 * tui/tui.c: Include terminal.h.
2382 (tui_enable): Use gdb_save_tty_state instead of
2383 target_terminal_save_ours.
2384 (tui_disable): Likewise.
2386 2014-08-25 Doug Evans <dje@google.com>
2388 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2389 Pass NULL instead of 0 for context pointer.
2391 2014-08-25 Yao Qi <yao@codesourcery.com>
2393 * dwarf2read.c: Fix grammatical error.
2395 2014-08-24 Yao Qi <yao@codesourcery.com>
2397 * dwarf2read.c (scan_partial_symbols): Update comments.
2398 Rename argument 'need_pc' with 'set_addrmap'.
2399 (add_partial_namespace): Rename argument 'need_pc' with
2401 (add_partial_module): Likewise.
2402 (add_partial_subprogram): Likewise. Update comments.
2403 (dwarf2_name): Fix typo.
2405 2014-08-22 Doug Evans <dje@google.com>
2408 * dwarf2read.c (dwarf_record_line_p): New function.
2409 (dwarf_decode_lines_1): Ignore subsequent line number entries
2410 for the same line if any entry had a non-zero discriminator.
2412 2014-08-22 Doug Evans <dje@google.com>
2414 * buildsym.h (record_line_ftype): New typedef.
2415 (record_line): Use it.
2416 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2417 (dwarf_decode_lines_1): Call them.
2419 2014-08-22 Yao Qi <yao@codesourcery.com>
2421 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2422 (ctf_end): Remove code.
2424 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2426 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2427 (linux_make_corefile_notes): call update_thread_list, protected against
2430 2014-08-21 Pedro Alves <palves@redhat.com>
2432 * infcmd.c (attach_command): Remove comment.
2434 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2436 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2437 unsigned LONGEST to ULONGEST.
2439 2014-08-20 Pedro Alves <palves@redhat.com>
2441 * Makefile.in (check-read1): New rule.
2443 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2445 * value.c (value_from_contents_and_address): Strip resolved_type's
2446 typedef layers before checking its TYPE_DATA_LOCATION.
2448 2014-08-20 Pedro Alves <palves@redhat.com>
2450 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2452 2014-08-20 Yao Qi <yao@codesourcery.com>
2454 * amd64-tdep.c (amd64_classify): Add a blank line after the
2455 example. Move "*/" to a new line.
2456 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2457 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2458 * dwarf2read.c (psymtab_include_file_name): Likewise.
2460 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2461 Pedro Alves <palves@redhat.com>
2465 * ada-lang.c (coerce_unspec_val_to_type): Use
2466 value_contents_copy_raw.
2467 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2468 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2469 * cp-valprint.c (cp_print_value_fields): Let the common printing
2470 code handle optimized out values.
2471 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2472 * d-valprint.c (dynamic_array_type): Use
2473 value_bits_any_optimized_out.
2474 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2475 check_any_valid fields.
2476 (check_pieced_value_bits): Delete and inline ...
2477 (check_pieced_synthetic_pointer): ... here.
2478 (check_pieced_value_validity): Delete.
2479 (check_pieced_value_invalid): Delete.
2480 (pieced_value_funcs): Remove check_validity and check_any_valid
2482 (read_pieced_value): Use mark_value_bits_optimized_out.
2483 (write_pieced_value): Switch to use
2484 mark_value_bytes_optimized_out.
2485 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2486 of assuming the whole value is optimized out.
2487 * findvar.c (read_frame_register_value): Remove special handling
2488 of optimized out registers.
2489 (value_from_register): Use mark_value_bytes_optimized_out.
2490 * frame-unwind.c (frame_unwind_got_optimized): Use
2491 mark_value_bytes_optimized_out.
2492 * jv-valprint.c (java_value_print): Adjust.
2493 (java_print_value_fields): Let the common printing code handle
2494 optimized out values.
2495 * mips-tdep.c (mips_print_register): Remove special handling of
2496 optimized out registers.
2497 * opencl-lang.c (lval_func_check_validity): Delete.
2498 (lval_func_check_any_valid): Delete.
2499 (opencl_value_funcs): Remove check_validity and check_any_valid
2501 * p-valprint.c (pascal_object_print_value_fields): Let the common
2502 printing code handle optimized out values.
2503 * stack.c (read_frame_arg): Remove special handling of optimized
2504 out values. Fetch both VAL and ENTRYVAL before comparing
2505 contents. Adjust to value_available_contents_eq rename.
2506 * valprint.c (valprint_check_validity)
2507 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2508 (val_print_array_elements): Adjust.
2509 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2510 (value_bits_any_optimized_out): New function.
2511 (value_entirely_covered_by_range_vector): New function, factored
2512 out from value_entirely_unavailable.
2513 (value_entirely_unavailable): Reimplement.
2514 (value_entirely_optimized_out): New function.
2515 (insert_into_bit_range_vector): New function, factored out from
2516 mark_value_bits_unavailable.
2517 (mark_value_bits_unavailable): Reimplement.
2518 (struct ranges_and_idx): New struct.
2519 (find_first_range_overlap_and_match): New function, factored out
2520 from value_available_contents_bits_eq.
2521 (value_available_contents_bits_eq): Rename to ...
2522 (value_contents_bits_eq): ... this. Check both unavailable
2523 contents and optimized out contents.
2524 (value_available_contents_eq): Rename to ...
2525 (value_contents_eq): ... this.
2526 (allocate_value_lazy): Remove reference to the old optimized_out
2528 (allocate_optimized_out_value): Use
2529 mark_value_bytes_optimized_out.
2530 (require_not_optimized_out): Adjust to check whether the
2531 optimized_out vec is empty.
2532 (ranges_copy_adjusted): New function, factored out from
2533 value_contents_copy_raw.
2534 (value_contents_copy_raw): Also copy the optimized out ranges.
2535 Assert the destination ranges aren't optimized out.
2536 (value_contents_copy): Update comment, remove call to
2537 require_not_optimized_out.
2538 (value_contents_equal): Adjust to check whether the optimized_out
2540 (set_value_optimized_out, value_optimized_out_const): Delete.
2541 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2543 (value_entirely_optimized_out, value_bits_valid): Delete.
2544 (value_copy): Take a VEC copy of the 'optimized_out' field.
2545 (value_primitive_field): Remove special handling of optimized out.
2546 (value_fetch_lazy): Assert that lazy values have no unavailable
2547 regions. Use value_bits_any_optimized_out. Remove some special
2548 handling for optimized out values.
2549 * value.h: Add intro comment about <optimized out> and
2551 (struct lval_funcs): Remove check_validity and check_any_valid
2553 (set_value_optimized_out, value_optimized_out_const): Remove.
2554 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2556 (value_bits_any_optimized_out): New declaration.
2557 (value_bits_valid): Delete declaration.
2558 (value_available_contents_eq): Rename to ...
2559 (value_contents_eq): ... this, and extend comments.
2561 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2563 Fix -fsanitize=address on unreadable inferior strings.
2564 * valprint.c (val_print_string): Fix access before BUFFER.
2566 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2568 * target.c (target_struct_size): Remove.
2569 (target_struct_allocsize): Remove.
2570 (DEFAULT_ALLOCSIZE): Remove.
2571 (target_ops_p): New typedef.
2572 (DEF_VEC_P (target_ops_p)): New vector type.
2573 (target_structs): Change type to VEC (target_ops_p).
2574 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2575 (find_default_run_target): Rewrite for loop following changes to
2578 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2580 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2581 Adjust code accordingly. Adjust function description comment.
2583 2014-08-19 Yao Qi <yao@codesourcery.com>
2585 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2588 2014-08-19 Alan Modra <amodra@gmail.com>
2590 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2591 * config.in: Regenerate.
2592 * configure: Regenerate.
2594 2014-08-19 Tom Tromey <tromey@redhat.com>
2595 Gary Benson <gbenson@redhat.com>
2597 * common/common-debug.h: New file.
2598 * common/common-debug.c: Likewise.
2599 * debug.c: Likewise.
2600 * Makefile.in (SFILES): Add common/common-debug.c.
2601 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2602 (COMMON_OBS): Add common-debug.o and debug.o.
2603 (common-debug.o): New rule.
2604 * common/common-defs.h: Include common-debug.h.
2605 * common/agent.c (debug_agent_printf): New function.
2606 (DEBUG_AGENT): Redefine.
2607 * nat/i386-dregs.c (debug_printf): Undefine.
2609 2014-08-19 Gary Benson <gbenson@redhat.com>
2611 * common/common-defs.h: Include print-utils.h.
2612 * utils.h: Do not include print-utils.h.
2614 2014-08-19 Tom Tromey <tromey@redhat.com>
2615 Gary Benson <gbenson@redhat.com>
2617 * common/common-types.h: New file.
2618 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2619 * common/common-defs.h: Include common-types.h.
2620 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2623 2014-08-19 Tom Tromey <tromey@redhat.com>
2624 Gary Benson <gbenson@redhat.com>
2626 * common/errors.h: New file.
2627 * common/errors.c: Likewise.
2628 * Makefile.in (SFILES): Add common/errors.c.
2629 (HFILES_NO_SRCDIR): Add common/errors.h.
2630 (COMMON_OBS): Add errors.o.
2631 (errors.o): New rule.
2632 * common/common-defs.h: Include errors.h.
2633 * utils.h (perror_with_name, error, verror, warning, vwarning):
2635 * common/common-utils.h: (malloc_failure, internal_error):
2638 2014-08-19 Gary Benson <gbenson@redhat.com>
2640 * utils.c (internal_vproblem): Always print the message.
2642 2014-08-18 Doug Evans <dje@google.com>
2644 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2646 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2648 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2649 Return 0 if TYPE is dynamic.
2650 (print_range): Add handling of dynamic ranges.
2652 2014-08-18 Keven Boell <keven.boell@intel.com>
2653 Joel Brobecker <brobecker@adacore.com>
2655 * gdbtypes.h (struct main_type): Add field "data_location".
2656 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2657 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2658 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2659 a dynamic data location.
2660 (resolve_dynamic_type): Add DW_AT_data_location handling.
2661 (copy_recursive, copy_type): Copy the data_location information
2663 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2664 * value.c (value_from_contents_and_address): Add
2665 DW_AT_data_location handling.
2667 2014-08-18 Keven Boell <keven.boell@intel.com>
2668 Joel Brobecker <brobecker@adacore.com>
2670 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2671 field "get_object_address".
2672 * dwarf2expr.c (execute_stack_op): Add handling for
2673 DW_OP_push_object_address.
2674 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2675 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2676 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2677 (dwarf_expr_get_obj_addr): New function.
2678 (dwarf_expr_ctx_funcs): Add get_object_address field.
2679 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2680 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2681 (dwarf2_evaluate_property): Add parameter "address". Use it.
2682 (needs_get_obj_addr): New function.
2683 (needs_frame_ctx_funcs): Add get_object_address field.
2684 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2685 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2686 (resolve_dynamic_array): Likewise.
2688 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2690 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2691 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2692 fixed value for records and unions for which some GNAT encodings
2695 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2697 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2698 rewrite to avoid "else if" and "else" constructs. Should be
2699 a no-op in practice.
2701 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2703 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2706 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2709 * eval.c: Update all calls to find_overload_match.
2710 * valarith.c: Likewise.
2711 (value_user_defined_cpp_op, value_user_defined_op): New
2712 argument NOSIDE. Update all callers.
2713 * valops.c (find_overload_match): New argument NOSIDE.
2714 * value.h (find_overload_match): Update signature.
2716 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2718 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2719 'items' methods instead of 'iteritems' method on dictionaries.
2721 2014-08-15 Doug Evans <dje@google.com>
2723 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2726 2014-08-15 Doug Evans <dje@google.com>
2728 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2730 2014-08-15 Doug Evans <dje@google.com>
2732 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2734 2014-08-15 Doug Evans <dje@google.com>
2736 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2739 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2741 * dcache.h: Include target.h, to avoid compile time warnings.
2743 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2745 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2746 frame_info" partial declaration.
2747 * gdbarch.h: Regenerate.
2749 2014-08-15 Yao Qi <yao@codesourcery.com>
2751 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2752 Add parameter 'decode_for_pst_p'. Callers update.
2754 2014-08-13 Yao Qi <yao@codesourcery.com>
2757 * configure.ac: Use local variable 'pos'.
2758 * configure: Regenerated.
2760 2014-08-11 Doug Evans <dje@google.com>
2762 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2763 message, it is redundant with "Reading symbols from ..." message.
2765 2014-08-10 Doug Evans <xdje42@gmail.com>
2767 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2769 2014-08-09 Yao Qi <yao@codesourcery.com>
2772 * remote.c (remote_xfer_partial): Remove dead code.
2774 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2776 * ia64-linux-tdep.c: Include "regset.h".
2777 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2778 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2779 (ia64_linux_supply_fpregset): New function.
2780 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2781 (ia64_linux_regset_from_core_section): New function.
2782 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2785 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2787 * m68klinux-tdep.c: Include "regset.h".
2788 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2789 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2790 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2791 (m68k_linux_regset_from_core_section): New function.
2792 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2795 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2797 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2798 function. Move logic to...
2799 (tilegx_linux_regmap): ... this new register map.
2800 (tilegx_linux_regset): Refer to register map, replace supply
2801 method by regcache_supply_regset, and add collect method.
2802 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2803 TILEGX_FIRST_EASY_REGNUM.
2805 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2807 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2808 that calls regcache_supply_regset and handles the EPC register
2809 separately. Move main logic to...
2810 (score7_linux_gregmap): ... this new register map.
2811 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2812 (score7_linux_gregset): Refer to register map. Add collect method.
2813 (score7_linux_regset_from_core_section): Replace
2814 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2815 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2816 (struct regset): Delete unused forward declaraction.
2817 (struct pt_regs): Delete structure definition.
2818 (elf_gregset_t): Delete typedef.
2820 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2822 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2823 (nios2_core_regset): Add collect method.
2825 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2827 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2828 platform-independent and don't write to read-only input buffer.
2829 (m32r_linux_collect_gregset): New function.
2830 (m32r_linux_gregset): Add collect method.
2832 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2834 * hppa-linux-tdep.c (greg_map): Rename to...
2835 (hppa_linux_gregmap): ... this. Also convert to
2836 regcache_map_entry format.
2837 (hppa_linux_supply_regset): Delete function.
2838 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2839 (hppa_linux_fpregmap): ... this new register map.
2840 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2841 register map, replace supply method by regcache_supply_regset, and
2842 add collect method regcache_collect_regset.
2844 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2846 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2847 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2848 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2849 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2850 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2851 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2852 (frv_linux_supply_gregset): Replace main logic by call to
2853 regcache_supply_regset, but keep clearing gr32-gr63.
2854 (frv_linux_supply_fpregset): Delete function.
2855 (frv_linux_gregset): Refer to appropriate register map and add
2856 regcache_collect_regset as the collect method.
2857 (frv_linux_fpregset): Likewise. Also exchange the supply method
2858 by regcache_supply_regset.
2860 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2862 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2863 by call to alpha_supply_int_regs.
2864 (alpha_linux_collect_gregset): New function.
2865 (alpha_linux_supply_fpregset): Replace logic by call to
2866 alpha_supply_fp_regs.
2867 (alpha_linux_collect_fpregset): New function.
2868 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2870 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2872 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2873 by call to regcache_collect_regset.
2874 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2875 instead of aarch64_linux_supply_gregset/_fpregset.
2876 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2877 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2878 header file instead.
2879 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2880 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2881 functions. Move logic to ...
2882 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2884 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2885 refer to new register maps, replace *_regset_from_core by
2886 regcache_supply_regset, and also use regcache_collect_regset.
2887 * aarch64-linux-tdep.h: Include "regset.h".
2888 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2890 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2891 macros, moved from C source file.
2892 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2893 variable declarations.
2895 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2897 * s390-linux-nat.c: Include "regset.h".
2898 (regmap_gregset): Delete macro.
2899 (s390_64_regmap_gregset): New register map for
2900 regcache_supply/_collect_regset.
2901 (s390_64_gregset): New regset.
2902 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2903 (regmap_fpregset): Delete macro.
2904 (s390_native_supply, s390_native_collect): Delete functions.
2905 (supply_gregset, fill_gregset): Replace s390-specific regmap
2906 handling by a call to regcache_supply/_collect_regset.
2907 (supply_fpregset, fill_fpregset): Call regcache_supply/
2908 _collect_regset instead of s390_native_supply/_collect.
2909 (fetch_regset, store_regset): Likewise. Also change the last
2910 parameter to a regset instead of a regmap.
2911 (s390_linux_fetch_inferior_registers)
2912 (390_linux_store_inferior_registers): Adjust last parameter in
2913 calls to fetch_regset and store_regset.
2914 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2915 (s390_gregmap): ... this. Also make static const and convert to
2916 regcache_map_entry format.
2917 (s390x_regmap_gregset): Delete.
2918 (s390_regmap_fpregset): Rename to...
2919 (s390_fpregmap): ... this. Make static const and convert to
2920 regcache_map_entry format.
2921 (s390_regmap_upper, s390_regmap_last_break)
2922 (s390x_regmap_last_break, s390_regmap_system_call)
2923 (s390_regmap_tdb): Likewise.
2924 (s390_supply_regset, s390_collect_regset): Remove functions.
2925 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2927 (s390_gregset, s390_fpregset, s390_upper_regset)
2928 (s390_last_break_regset, s390x_last_break_regset)
2929 (s390_system_call_regset, s390_tdb_regset): Make global and
2930 replace s390_supply/_collect_regset by regcache_supply/
2932 (s390x_gregset): Delete.
2933 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2934 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2935 (s390_regmap_fpregset, s390_regmap_last_break)
2936 (s390x_regmap_last_break, s390_regmap_system_call)
2937 (s390_regmap_tdb): Delete global variable declarations.
2938 (s390_gregset, s390_fpregset, s390_last_break_regset)
2939 (s390x_last_break_regset, s390_system_call_regset)
2940 (s390_tdb_regset): New global variable declarations.
2942 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2944 * regcache.c: Include "regset.h".
2945 (regcache_transfer_regset): New local function.
2946 (regcache_supply_regset, regcache_collect_regset): New functions.
2947 * regcache.h (struct regcache_map_entry): New structure.
2948 (REGCACHE_MAP_SKIP): New enum value.
2949 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2951 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2953 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2954 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2955 (ppc_linux_collect_gregset ): Likewise.
2956 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2957 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2958 (ppc_collect_vrregset): Likewise.
2959 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2962 2014-08-07 Yao Qi <yao@codesourcery.com>
2964 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2965 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2966 * remote.c (remote_read_bytes): Likewise.
2968 2014-08-07 Yao Qi <yao@codesourcery.com>
2970 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2972 2014-08-07 Yao Qi <yao@codesourcery.com>
2975 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2976 TARGET_XFER_OK instead of 0.
2978 2014-08-07 Gary Benson <gbenson@redhat.com>
2980 * common/common-defs.h: Include errno.h.
2981 * defs.h: Do not include errno.h.
2982 * ada-typeprint.c: Likewise.
2983 * c-typeprint.c: Likewise.
2984 * core-regset.c: Likewise.
2985 * corefile.c: Likewise.
2986 * corelow.c: Likewise.
2987 * event-loop.c: Likewise.
2988 * f-typeprint.c: Likewise.
2989 * gnu-nat.c: Likewise.
2990 * go32-nat.c: Likewise.
2991 * i386gnu-nat.c: Likewise.
2992 * m2-typeprint.c: Likewise.
2993 * nat/linux-btrace.c: Likewise.
2994 * p-typeprint.c: Likewise.
2995 * procfs.c: Likewise.
2996 * remote-sim.c: Likewise.
2997 * rs6000-nat.c: Likewise.
2998 * target.c: Likewise.
2999 * typeprint.c: Likewise.
3000 * ui-file.c: Likewise.
3001 * valops.c: Likewise.
3002 * valprint.c: Likewise.
3004 2014-08-07 Gary Benson <gbenson@redhat.com>
3006 * common/common-defs.h: Include string.h.
3007 * aarch64-tdep.c: Do not include string.h.
3008 * ada-exp.y: Likewise.
3009 * ada-lang.c: Likewise.
3010 * ada-lex.l: Likewise.
3011 * ada-typeprint.c: Likewise.
3012 * ada-valprint.c: Likewise.
3013 * aix-thread.c: Likewise.
3014 * alpha-linux-tdep.c: Likewise.
3015 * alpha-mdebug-tdep.c: Likewise.
3016 * alpha-nat.c: Likewise.
3017 * alpha-osf1-tdep.c: Likewise.
3018 * alpha-tdep.c: Likewise.
3019 * alphanbsd-tdep.c: Likewise.
3020 * amd64-dicos-tdep.c: Likewise.
3021 * amd64-linux-tdep.c: Likewise.
3022 * amd64-nat.c: Likewise.
3023 * amd64-sol2-tdep.c: Likewise.
3024 * amd64fbsd-tdep.c: Likewise.
3025 * amd64obsd-tdep.c: Likewise.
3026 * arch-utils.c: Likewise.
3027 * arm-linux-nat.c: Likewise.
3028 * arm-linux-tdep.c: Likewise.
3029 * arm-tdep.c: Likewise.
3030 * arm-wince-tdep.c: Likewise.
3031 * armbsd-tdep.c: Likewise.
3032 * armnbsd-nat.c: Likewise.
3033 * armnbsd-tdep.c: Likewise.
3034 * armobsd-tdep.c: Likewise.
3035 * avr-tdep.c: Likewise.
3036 * ax-gdb.c: Likewise.
3037 * ax-general.c: Likewise.
3038 * bcache.c: Likewise.
3039 * bfin-tdep.c: Likewise.
3040 * breakpoint.c: Likewise.
3041 * build-id.c: Likewise.
3042 * buildsym.c: Likewise.
3043 * c-exp.y: Likewise.
3044 * c-lang.c: Likewise.
3045 * c-typeprint.c: Likewise.
3046 * c-valprint.c: Likewise.
3047 * charset.c: Likewise.
3048 * cli-out.c: Likewise.
3049 * cli/cli-cmds.c: Likewise.
3050 * cli/cli-decode.c: Likewise.
3051 * cli/cli-dump.c: Likewise.
3052 * cli/cli-interp.c: Likewise.
3053 * cli/cli-logging.c: Likewise.
3054 * cli/cli-script.c: Likewise.
3055 * cli/cli-setshow.c: Likewise.
3056 * cli/cli-utils.c: Likewise.
3057 * coffread.c: Likewise.
3058 * common/agent.c: Likewise.
3059 * common/buffer.c: Likewise.
3060 * common/buffer.h: Likewise.
3061 * common/common-utils.c: Likewise.
3062 * common/filestuff.c: Likewise.
3063 * common/filestuff.c: Likewise.
3064 * common/format.c: Likewise.
3065 * common/print-utils.c: Likewise.
3066 * common/rsp-low.c: Likewise.
3067 * common/signals.c: Likewise.
3068 * common/vec.h: Likewise.
3069 * common/xml-utils.c: Likewise.
3070 * core-regset.c: Likewise.
3071 * corefile.c: Likewise.
3072 * corelow.c: Likewise.
3073 * cp-abi.c: Likewise.
3074 * cp-name-parser.y: Likewise.
3075 * cp-support.c: Likewise.
3076 * cp-valprint.c: Likewise.
3077 * cris-tdep.c: Likewise.
3078 * d-exp.y: Likewise.
3079 * darwin-nat.c: Likewise.
3080 * dbxread.c: Likewise.
3081 * dcache.c: Likewise.
3082 * demangle.c: Likewise.
3083 * dicos-tdep.c: Likewise.
3084 * disasm.c: Likewise.
3085 * doublest.c: Likewise.
3086 * dsrec.c: Likewise.
3087 * dummy-frame.c: Likewise.
3088 * dwarf2-frame.c: Likewise.
3089 * dwarf2loc.c: Likewise.
3090 * dwarf2read.c: Likewise.
3091 * elfread.c: Likewise.
3092 * environ.c: Likewise.
3094 * event-loop.c: Likewise.
3095 * exceptions.c: Likewise.
3097 * expprint.c: Likewise.
3098 * f-exp.y: Likewise.
3099 * f-lang.c: Likewise.
3100 * f-typeprint.c: Likewise.
3101 * f-valprint.c: Likewise.
3102 * fbsd-nat.c: Likewise.
3103 * findcmd.c: Likewise.
3104 * findvar.c: Likewise.
3105 * fork-child.c: Likewise.
3106 * frame.c: Likewise.
3107 * frv-linux-tdep.c: Likewise.
3108 * frv-tdep.c: Likewise.
3110 * gdb_bfd.c: Likewise.
3111 * gdbarch.c: Likewise.
3112 * gdbarch.sh: Likewise.
3113 * gdbtypes.c: Likewise.
3114 * gnu-nat.c: Likewise.
3115 * gnu-v2-abi.c: Likewise.
3116 * gnu-v3-abi.c: Likewise.
3117 * go-exp.y: Likewise.
3118 * go-lang.c: Likewise.
3119 * go32-nat.c: Likewise.
3120 * guile/guile.c: Likewise.
3121 * guile/scm-auto-load.c: Likewise.
3122 * hppa-hpux-tdep.c: Likewise.
3123 * hppa-linux-nat.c: Likewise.
3124 * hppanbsd-tdep.c: Likewise.
3125 * hppaobsd-tdep.c: Likewise.
3126 * i386-cygwin-tdep.c: Likewise.
3127 * i386-dicos-tdep.c: Likewise.
3128 * i386-linux-tdep.c: Likewise.
3129 * i386-nto-tdep.c: Likewise.
3130 * i386-sol2-tdep.c: Likewise.
3131 * i386-tdep.c: Likewise.
3132 * i386bsd-tdep.c: Likewise.
3133 * i386gnu-nat.c: Likewise.
3134 * i386nbsd-tdep.c: Likewise.
3135 * i386obsd-tdep.c: Likewise.
3136 * i387-tdep.c: Likewise.
3137 * ia64-libunwind-tdep.c: Likewise.
3138 * ia64-linux-nat.c: Likewise.
3139 * inf-child.c: Likewise.
3140 * inf-ptrace.c: Likewise.
3141 * inf-ttrace.c: Likewise.
3142 * infcall.c: Likewise.
3143 * infcmd.c: Likewise.
3144 * inflow.c: Likewise.
3145 * infrun.c: Likewise.
3146 * interps.c: Likewise.
3147 * iq2000-tdep.c: Likewise.
3148 * irix5-nat.c: Likewise.
3149 * jv-exp.y: Likewise.
3150 * jv-lang.c: Likewise.
3151 * jv-typeprint.c: Likewise.
3152 * jv-valprint.c: Likewise.
3153 * language.c: Likewise.
3154 * linux-fork.c: Likewise.
3155 * linux-nat.c: Likewise.
3156 * lm32-tdep.c: Likewise.
3157 * m2-exp.y: Likewise.
3158 * m2-typeprint.c: Likewise.
3159 * m32c-tdep.c: Likewise.
3160 * m32r-linux-nat.c: Likewise.
3161 * m32r-linux-tdep.c: Likewise.
3162 * m32r-rom.c: Likewise.
3163 * m32r-tdep.c: Likewise.
3164 * m68hc11-tdep.c: Likewise.
3165 * m68k-tdep.c: Likewise.
3166 * m68kbsd-tdep.c: Likewise.
3167 * m68klinux-nat.c: Likewise.
3168 * m68klinux-tdep.c: Likewise.
3169 * m88k-tdep.c: Likewise.
3170 * machoread.c: Likewise.
3171 * macrocmd.c: Likewise.
3173 * mdebugread.c: Likewise.
3174 * mem-break.c: Likewise.
3175 * memattr.c: Likewise.
3176 * memory-map.c: Likewise.
3177 * mep-tdep.c: Likewise.
3178 * mi/mi-cmd-break.c: Likewise.
3179 * mi/mi-cmd-disas.c: Likewise.
3180 * mi/mi-cmd-env.c: Likewise.
3181 * mi/mi-cmd-stack.c: Likewise.
3182 * mi/mi-cmd-var.c: Likewise.
3183 * mi/mi-cmds.c: Likewise.
3184 * mi/mi-console.c: Likewise.
3185 * mi/mi-getopt.c: Likewise.
3186 * mi/mi-interp.c: Likewise.
3187 * mi/mi-main.c: Likewise.
3188 * mi/mi-parse.c: Likewise.
3189 * microblaze-rom.c: Likewise.
3190 * microblaze-tdep.c: Likewise.
3191 * mingw-hdep.c: Likewise.
3192 * minidebug.c: Likewise.
3193 * minsyms.c: Likewise.
3194 * mips-irix-tdep.c: Likewise.
3195 * mips-linux-tdep.c: Likewise.
3196 * mips-tdep.c: Likewise.
3197 * mips64obsd-tdep.c: Likewise.
3198 * mipsnbsd-tdep.c: Likewise.
3199 * mipsread.c: Likewise.
3200 * mn10300-linux-tdep.c: Likewise.
3201 * mn10300-tdep.c: Likewise.
3202 * monitor.c: Likewise.
3203 * moxie-tdep.c: Likewise.
3204 * mt-tdep.c: Likewise.
3205 * nat/linux-btrace.c: Likewise.
3206 * nat/linux-osdata.c: Likewise.
3207 * nat/linux-procfs.c: Likewise.
3208 * nat/linux-ptrace.c: Likewise.
3209 * nat/linux-waitpid.c: Likewise.
3210 * nbsd-tdep.c: Likewise.
3211 * nios2-linux-tdep.c: Likewise.
3212 * nto-procfs.c: Likewise.
3213 * nto-tdep.c: Likewise.
3214 * objc-lang.c: Likewise.
3215 * objfiles.c: Likewise.
3216 * opencl-lang.c: Likewise.
3217 * osabi.c: Likewise.
3218 * osdata.c: Likewise.
3219 * p-exp.y: Likewise.
3220 * p-lang.c: Likewise.
3221 * p-typeprint.c: Likewise.
3222 * parse.c: Likewise.
3223 * posix-hdep.c: Likewise.
3224 * ppc-linux-nat.c: Likewise.
3225 * ppc-sysv-tdep.c: Likewise.
3226 * ppcfbsd-tdep.c: Likewise.
3227 * ppcnbsd-tdep.c: Likewise.
3228 * ppcobsd-tdep.c: Likewise.
3229 * printcmd.c: Likewise.
3230 * procfs.c: Likewise.
3231 * prologue-value.c: Likewise.
3232 * python/py-auto-load.c: Likewise.
3233 * python/py-gdb-readline.c: Likewise.
3234 * ravenscar-thread.c: Likewise.
3235 * regcache.c: Likewise.
3236 * registry.c: Likewise.
3237 * remote-fileio.c: Likewise.
3238 * remote-m32r-sdi.c: Likewise.
3239 * remote-mips.c: Likewise.
3240 * remote-notif.c: Likewise.
3241 * remote-sim.c: Likewise.
3242 * remote.c: Likewise.
3243 * reverse.c: Likewise.
3244 * rs6000-aix-tdep.c: Likewise.
3245 * ser-base.c: Likewise.
3246 * ser-go32.c: Likewise.
3247 * ser-mingw.c: Likewise.
3248 * ser-pipe.c: Likewise.
3249 * ser-tcp.c: Likewise.
3250 * ser-unix.c: Likewise.
3251 * serial.c: Likewise.
3252 * sh-tdep.c: Likewise.
3253 * sh64-tdep.c: Likewise.
3254 * shnbsd-tdep.c: Likewise.
3256 * sol-thread.c: Likewise.
3257 * solib-dsbt.c: Likewise.
3258 * solib-frv.c: Likewise.
3259 * solib-osf.c: Likewise.
3260 * solib-som.c: Likewise.
3261 * solib-spu.c: Likewise.
3262 * solib-target.c: Likewise.
3263 * solib.c: Likewise.
3264 * somread.c: Likewise.
3265 * source.c: Likewise.
3266 * sparc-nat.c: Likewise.
3267 * sparc-sol2-tdep.c: Likewise.
3268 * sparc-tdep.c: Likewise.
3269 * sparc64-tdep.c: Likewise.
3270 * sparc64fbsd-tdep.c: Likewise.
3271 * sparc64nbsd-tdep.c: Likewise.
3272 * sparcnbsd-tdep.c: Likewise.
3273 * spu-linux-nat.c: Likewise.
3274 * spu-multiarch.c: Likewise.
3275 * spu-tdep.c: Likewise.
3276 * stabsread.c: Likewise.
3277 * stack.c: Likewise.
3278 * std-regs.c: Likewise.
3279 * symfile.c: Likewise.
3280 * symmisc.c: Likewise.
3281 * symtab.c: Likewise.
3282 * target.c: Likewise.
3283 * thread.c: Likewise.
3284 * tilegx-linux-nat.c: Likewise.
3285 * tilegx-tdep.c: Likewise.
3287 * tracepoint.c: Likewise.
3288 * tui/tui-command.c: Likewise.
3289 * tui/tui-data.c: Likewise.
3290 * tui/tui-disasm.c: Likewise.
3291 * tui/tui-file.c: Likewise.
3292 * tui/tui-layout.c: Likewise.
3293 * tui/tui-out.c: Likewise.
3294 * tui/tui-regs.c: Likewise.
3295 * tui/tui-source.c: Likewise.
3296 * tui/tui-stack.c: Likewise.
3297 * tui/tui-win.c: Likewise.
3298 * tui/tui-windata.c: Likewise.
3299 * tui/tui-winsource.c: Likewise.
3300 * typeprint.c: Likewise.
3301 * ui-file.c: Likewise.
3302 * ui-out.c: Likewise.
3303 * user-regs.c: Likewise.
3304 * utils.c: Likewise.
3305 * v850-tdep.c: Likewise.
3306 * valarith.c: Likewise.
3307 * valops.c: Likewise.
3308 * valprint.c: Likewise.
3309 * value.c: Likewise.
3310 * varobj.c: Likewise.
3311 * vax-tdep.c: Likewise.
3312 * vaxnbsd-tdep.c: Likewise.
3313 * vaxobsd-tdep.c: Likewise.
3314 * windows-nat.c: Likewise.
3315 * xcoffread.c: Likewise.
3316 * xml-support.c: Likewise.
3317 * xstormy16-tdep.c: Likewise.
3318 * xtensa-linux-nat.c: Likewise.
3320 2014-08-07 Gary Benson <gbenson@redhat.com>
3322 * common/common-defs.h: Include gdb_assert.h.
3323 * aarch64-tdep.c: Do not include gdb_assert.h.
3324 * addrmap.c: Likewise.
3325 * aix-thread.c: Likewise.
3326 * alpha-linux-tdep.c: Likewise.
3327 * alpha-mdebug-tdep.c: Likewise.
3328 * alphanbsd-tdep.c: Likewise.
3329 * amd64-nat.c: Likewise.
3330 * amd64-tdep.c: Likewise.
3331 * amd64bsd-nat.c: Likewise.
3332 * amd64fbsd-nat.c: Likewise.
3333 * amd64fbsd-tdep.c: Likewise.
3334 * amd64nbsd-nat.c: Likewise.
3335 * amd64nbsd-tdep.c: Likewise.
3336 * amd64obsd-nat.c: Likewise.
3337 * amd64obsd-tdep.c: Likewise.
3338 * arch-utils.c: Likewise.
3339 * arm-tdep.c: Likewise.
3340 * armbsd-tdep.c: Likewise.
3342 * bcache.c: Likewise.
3343 * bfin-tdep.c: Likewise.
3344 * blockframe.c: Likewise.
3345 * breakpoint.c: Likewise.
3346 * bsd-kvm.c: Likewise.
3347 * bsd-uthread.c: Likewise.
3348 * buildsym.c: Likewise.
3349 * c-exp.y: Likewise.
3350 * c-lang.c: Likewise.
3351 * charset.c: Likewise.
3352 * cleanups.c: Likewise.
3353 * cli-out.c: Likewise.
3354 * cli/cli-decode.c: Likewise.
3355 * cli/cli-dump.c: Likewise.
3356 * cli/cli-logging.c: Likewise.
3357 * cli/cli-script.c: Likewise.
3358 * cli/cli-utils.c: Likewise.
3359 * coffread.c: Likewise.
3360 * common/common-utils.c: Likewise.
3361 * common/queue.h: Likewise.
3362 * common/signals.c: Likewise.
3363 * common/vec.h: Likewise.
3364 * complaints.c: Likewise.
3365 * completer.c: Likewise.
3366 * corelow.c: Likewise.
3367 * cp-abi.c: Likewise.
3368 * cp-name-parser.y: Likewise.
3369 * cp-namespace.c: Likewise.
3370 * cp-support.c: Likewise.
3371 * cris-tdep.c: Likewise.
3372 * dbxread.c: Likewise.
3373 * dictionary.c: Likewise.
3374 * doublest.c: Likewise.
3375 * dsrec.c: Likewise.
3376 * dummy-frame.c: Likewise.
3377 * dwarf2-frame-tailcall.c: Likewise.
3378 * dwarf2-frame.c: Likewise.
3379 * dwarf2expr.c: Likewise.
3380 * dwarf2loc.c: Likewise.
3381 * dwarf2read.c: Likewise.
3383 * event-loop.c: Likewise.
3384 * exceptions.c: Likewise.
3385 * expprint.c: Likewise.
3386 * f-valprint.c: Likewise.
3387 * fbsd-nat.c: Likewise.
3388 * findvar.c: Likewise.
3389 * frame-unwind.c: Likewise.
3390 * frame.c: Likewise.
3391 * frv-tdep.c: Likewise.
3392 * gcore.c: Likewise.
3393 * gdb-dlfcn.c: Likewise.
3394 * gdb_bfd.c: Likewise.
3395 * gdbarch.c: Likewise.
3396 * gdbarch.sh: Likewise.
3397 * gdbtypes.c: Likewise.
3398 * gnu-nat.c: Likewise.
3399 * gnu-v3-abi.c: Likewise.
3400 * go-lang.c: Likewise.
3401 * guile/scm-exception.c: Likewise.
3402 * guile/scm-gsmob.c: Likewise.
3403 * guile/scm-lazy-string.c: Likewise.
3404 * guile/scm-math.c: Likewise.
3405 * guile/scm-pretty-print.c: Likewise.
3406 * guile/scm-safe-call.c: Likewise.
3407 * guile/scm-utils.c: Likewise.
3408 * guile/scm-value.c: Likewise.
3409 * h8300-tdep.c: Likewise.
3410 * hppa-hpux-nat.c: Likewise.
3411 * hppa-tdep.c: Likewise.
3412 * hppanbsd-tdep.c: Likewise.
3413 * hppaobsd-tdep.c: Likewise.
3414 * i386-darwin-nat.c: Likewise.
3415 * i386-darwin-tdep.c: Likewise.
3416 * i386-nto-tdep.c: Likewise.
3417 * i386-tdep.c: Likewise.
3418 * i386bsd-nat.c: Likewise.
3419 * i386fbsd-tdep.c: Likewise.
3420 * i386gnu-nat.c: Likewise.
3421 * i386nbsd-tdep.c: Likewise.
3422 * i386obsd-tdep.c: Likewise.
3423 * i387-tdep.c: Likewise.
3424 * ia64-libunwind-tdep.c: Likewise.
3425 * ia64-tdep.c: Likewise.
3426 * inf-ptrace.c: Likewise.
3427 * inf-ttrace.c: Likewise.
3428 * infcall.c: Likewise.
3429 * infcmd.c: Likewise.
3430 * infrun.c: Likewise.
3431 * inline-frame.c: Likewise.
3432 * interps.c: Likewise.
3433 * jv-lang.c: Likewise.
3434 * jv-typeprint.c: Likewise.
3435 * linux-fork.c: Likewise.
3436 * linux-nat.c: Likewise.
3437 * linux-thread-db.c: Likewise.
3438 * m32c-tdep.c: Likewise.
3439 * m32r-linux-nat.c: Likewise.
3440 * m32r-tdep.c: Likewise.
3441 * m68k-tdep.c: Likewise.
3442 * m68kbsd-nat.c: Likewise.
3443 * m68kbsd-tdep.c: Likewise.
3444 * m88k-tdep.c: Likewise.
3445 * machoread.c: Likewise.
3446 * macroexp.c: Likewise.
3447 * macrotab.c: Likewise.
3448 * maint.c: Likewise.
3449 * mdebugread.c: Likewise.
3450 * memory-map.c: Likewise.
3451 * mep-tdep.c: Likewise.
3452 * mi/mi-common.c: Likewise.
3453 * microblaze-tdep.c: Likewise.
3454 * mingw-hdep.c: Likewise.
3455 * mips-linux-nat.c: Likewise.
3456 * mips-linux-tdep.c: Likewise.
3457 * mips-tdep.c: Likewise.
3458 * mips64obsd-tdep.c: Likewise.
3459 * mipsnbsd-tdep.c: Likewise.
3460 * mn10300-linux-tdep.c: Likewise.
3461 * mn10300-tdep.c: Likewise.
3462 * moxie-tdep.c: Likewise.
3463 * mt-tdep.c: Likewise.
3464 * nat/linux-btrace.c: Likewise.
3465 * nat/linux-osdata.c: Likewise.
3466 * nat/linux-ptrace.c: Likewise.
3467 * nat/mips-linux-watch.c: Likewise.
3468 * nios2-linux-tdep.c: Likewise.
3469 * nios2-tdep.c: Likewise.
3470 * objc-lang.c: Likewise.
3471 * objfiles.c: Likewise.
3472 * obsd-nat.c: Likewise.
3473 * opencl-lang.c: Likewise.
3474 * osabi.c: Likewise.
3475 * parse.c: Likewise.
3476 * ppc-linux-nat.c: Likewise.
3477 * ppc-sysv-tdep.c: Likewise.
3478 * ppcfbsd-nat.c: Likewise.
3479 * ppcfbsd-tdep.c: Likewise.
3480 * ppcnbsd-nat.c: Likewise.
3481 * ppcnbsd-tdep.c: Likewise.
3482 * ppcobsd-nat.c: Likewise.
3483 * ppcobsd-tdep.c: Likewise.
3484 * printcmd.c: Likewise.
3485 * procfs.c: Likewise.
3486 * prologue-value.c: Likewise.
3487 * psymtab.c: Likewise.
3488 * python/py-lazy-string.c: Likewise.
3489 * python/py-value.c: Likewise.
3490 * regcache.c: Likewise.
3491 * reggroups.c: Likewise.
3492 * registry.c: Likewise.
3493 * remote-sim.c: Likewise.
3494 * remote.c: Likewise.
3495 * rs6000-aix-tdep.c: Likewise.
3496 * rs6000-tdep.c: Likewise.
3497 * s390-linux-tdep.c: Likewise.
3498 * score-tdep.c: Likewise.
3499 * ser-base.c: Likewise.
3500 * ser-mingw.c: Likewise.
3501 * sh-tdep.c: Likewise.
3502 * sh64-tdep.c: Likewise.
3503 * solib-darwin.c: Likewise.
3504 * solib-spu.c: Likewise.
3505 * solib-svr4.c: Likewise.
3506 * source.c: Likewise.
3507 * sparc-nat.c: Likewise.
3508 * sparc-sol2-tdep.c: Likewise.
3509 * sparc-tdep.c: Likewise.
3510 * sparc64-sol2-tdep.c: Likewise.
3511 * sparc64-tdep.c: Likewise.
3512 * sparc64fbsd-tdep.c: Likewise.
3513 * sparc64nbsd-tdep.c: Likewise.
3514 * sparc64obsd-tdep.c: Likewise.
3515 * sparcnbsd-tdep.c: Likewise.
3516 * sparcobsd-tdep.c: Likewise.
3517 * spu-multiarch.c: Likewise.
3518 * spu-tdep.c: Likewise.
3519 * stabsread.c: Likewise.
3520 * stack.c: Likewise.
3521 * symfile.c: Likewise.
3522 * symtab.c: Likewise.
3523 * target-descriptions.c: Likewise.
3524 * target-memory.c: Likewise.
3525 * target.c: Likewise.
3526 * tic6x-linux-tdep.c: Likewise.
3527 * tic6x-tdep.c: Likewise.
3528 * tilegx-linux-nat.c: Likewise.
3529 * tilegx-tdep.c: Likewise.
3531 * tramp-frame.c: Likewise.
3532 * tui/tui-out.c: Likewise.
3533 * tui/tui-winsource.c: Likewise.
3534 * ui-out.c: Likewise.
3535 * user-regs.c: Likewise.
3536 * utils.c: Likewise.
3537 * v850-tdep.c: Likewise.
3538 * valops.c: Likewise.
3539 * value.c: Likewise.
3540 * varobj.c: Likewise.
3541 * vax-nat.c: Likewise.
3542 * xml-syscall.c: Likewise.
3543 * xml-tdesc.c: Likewise.
3544 * xstormy16-tdep.c: Likewise.
3545 * xtensa-linux-nat.c: Likewise.
3546 * xtensa-tdep.c: Likewise.
3548 2014-08-07 Gary Benson <gbenson@redhat.com>
3550 * common/common-defs.h: Include common-utils.h.
3551 * defs.h: Do not include common-utils.h.
3552 * common/gdb_assert.h: Likewise.
3553 * darwin-nat.h: Likewise.
3554 * nat/linux-btrace.c: Likewise.
3555 * target/waitstatus.h: Likewise.
3557 2014-08-07 Gary Benson <gbenson@redhat.com>
3559 * common/common-defs.h: Include ptid.h.
3560 * defs.h: Do not include ptid.h.
3561 * inferior.h: Likewise.
3562 * infrun.h: Likewise.
3563 * nat/linux-btrace.h: Likewise.
3564 * nat/linux-osdata.h: Likewise.
3565 * target/waitstatus.h: Likewise.
3567 2014-08-07 Gary Benson <gbenson@redhat.com>
3569 * common/common-defs.h: Include gdb_locale.h.
3570 * defs.h: Do not include gdb_locale.h.
3572 2014-08-07 Gary Benson <gbenson@redhat.com>
3574 * common/common-defs.h: Include gdb/signals.h.
3575 * defs.h: Do not include gdb/signals.h.
3577 2014-08-07 Gary Benson <gbenson@redhat.com>
3579 * common/common-defs.h: Include pathmax.h.
3580 * defs.h: Do not include pathmax.h.
3582 2014-08-07 Gary Benson <gbenson@redhat.com>
3584 * common/common-defs.h: Include libiberty.h.
3585 * defs.h: Do not include libiberty.h.
3586 * common/queue.h: Likewise.
3587 * cp-name-parser.y: Likewise.
3588 * mi/mi-cmd-catch.c: Likewise.
3589 * python/python.c: Likewise.
3591 2014-08-07 Gary Benson <gbenson@redhat.com>
3593 * common/common-defs.h: Include ansidecl.h.
3594 * defs.h: Do not include ansidecl.h.
3595 * common/buffer.h: Likewise.
3596 * common/common-utils.h: Likewise.
3598 2014-08-07 Gary Benson <gbenson@redhat.com>
3600 * common/common-defs.h: Include stddef.h.
3601 * defs.h: Do not include stddef.h.
3602 * common/common-utils.h: Likewise.
3603 * amd64fbsd-nat.c: Likewise.
3604 * bcache.c: Likewise.
3605 * charset.c: Likewise.
3606 * common/buffer.h: Likewise.
3607 * common/vec.h: Likewise.
3608 * i386bsd-nat.c: Likewise.
3609 * nat/linux-btrace.h: Likewise.
3610 * ppcfbsd-nat.c: Likewise.
3611 * ppcnbsd-tdep.h: Likewise.
3612 * ppcobsd-nat.c: Likewise.
3613 * ppcobsd-tdep.h: Likewise.
3614 * python/py-gdb-readline.c: Likewise.
3616 2014-08-07 Gary Benson <gbenson@redhat.com>
3618 * common/common-defs.h: Include stdarg.h.
3619 * defs.h: Do not include stdarg.h.
3620 * ada-lang.c: Likewise.
3621 * common/common-utils.h: Likewise.
3622 * guile/scm-string.c: Likewise.
3623 * guile/scm-utils.c: Likewise.
3624 * m32c-tdep.c: Likewise.
3626 2014-08-07 Gary Benson <gbenson@redhat.com>
3628 * common/common-defs.h: Include stdlib.h.
3629 * defs.h: Do not include stdlib.h.
3630 * addrmap.c: Likewise.
3631 * bcache.c: Likewise.
3632 * common/buffer.c: Likewise.
3633 * common/common-utils.c: Likewise.
3634 * cp-name-parser.y: Likewise.
3635 * go32-nat.c: Likewise.
3636 * mn10300-linux-tdep.c: Likewise.
3637 * nat/linux-osdata.c: Likewise.
3638 * tui/tui.c: Likewise.
3639 * windows-nat.c: Likewise.
3641 2014-08-07 Gary Benson <gbenson@redhat.com>
3643 * common/common-defs.h: Include stdio.h.
3644 * defs.h: Do not include stdio.h.
3645 * ada-lang.c: Likewise.
3646 * common/buffer.c: Likewise.
3647 * common/common-utils.c: Likewise.
3648 * cp-name-parser.y: Likewise.
3649 * gnu-nat.c: Likewise.
3650 * go32-nat.c: Likewise.
3651 * i386gnu-nat.c: Likewise.
3652 * proc-api.c: Likewise.
3653 * proc-events.c: Likewise.
3654 * proc-flags.c: Likewise.
3655 * proc-why.c: Likewise.
3656 * python/python-internal.h: Likewise.
3657 * target-memory.c: Likewise.
3658 * tui/tui-io.c: Likewise.
3659 * tui/tui.c: Likewise.
3661 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3663 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3664 (scan_dyntag_auxv): Same.
3666 2014-08-06 Yao Qi <yao@codesourcery.com>
3668 * amd64-linux-nat.c: Remove duplicated include
3670 * i386-linux-nat.c: Likewise.
3672 2014-08-06 Yao Qi <yao@codesourcery.com>
3674 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3675 operand" with "Special opcode" in comments.
3677 2014-08-05 Gary Benson <gbenson@redhat.com>
3679 * interps.c (initialize_interps): Remove prototype.
3680 (interpreter_initialized): Remove static global.
3681 (interp_add): Do not call initialize_interps.
3682 (initialize_interps): Remove function.
3684 2014-08-05 Gary Benson <gbenson@redhat.com>
3686 * utils.c (vwarning): Remove spurious va_end.
3688 2014-08-05 Alan Modra <amodra@gmail.com>
3690 * charset.c (convert_between_encodings): Cast result of obstack_base.
3691 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3692 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3693 (read_unwind_info): Use size_t for some locals.
3694 * jit.c (finalize_symtab): Likewise.
3695 * utils.c (hashtab_obstack_allocate): Likewise.
3696 * symmisc.c (print_objfile_statistics): Update format strings.
3698 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3700 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3701 (Changes in GDB 7.8): ... here.
3703 2014-08-04 Tom Tromey <tromey@redhat.com>
3705 * target.c (set_targetdebug): New function.
3706 (initialize_targets): Pass set_targetdebug when creating "set
3709 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3711 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3712 if detecting a variable-sized field that is not the last field.
3713 Fix struct type length computation.
3715 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3717 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3720 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3722 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3723 Remove "+ 8" offset in computation of CHAIN_VMA.
3725 2014-07-31 Doug Evans <dje@google.com>
3727 * inflow.c (child_terminal_inferior): Add comment.
3728 (child_terminal_ours_for_output): Add comment.
3729 (child_terminal_ours): Add comment.
3730 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3731 (linux_nat_terminal_ours): Add comment.
3733 2014-07-31 Gary Benson <gbenson@redhat.com>
3735 * common/btrace-common.h: Do not include defs.h or server.h.
3736 * nat/mips-linux-watch.h: Likewise.
3737 * gdb-dlfcn.h: Do not include defs.h.
3738 * tracefile.h: Likewise.
3740 2014-07-30 Roland McGrath <mcgrathr@google.com>
3742 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3744 2014-07-30 Tom Tromey <tromey@redhat.com>
3746 * bsd-kvm.c (bsd_kvm_open): Constify.
3747 * corelow.c (core_open): Constify.
3748 * ctf.c (ctf_open): Constify.
3749 * dbug-rom.c (dbug_open): Constify.
3750 * exec.c (exec_open): Constify.
3751 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3752 * microblaze-rom.c (picobug_open): Constify.
3753 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3755 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3756 * record-btrace.c (record_btrace_open): Constify.
3757 * record-full.c (record_full_core_open_1, record_full_open_1)
3758 (record_full_open): Constify.
3759 * remote-m32r-sdi.c (m32r_open): Constify.
3760 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3761 (rockhopper_open, lsi_open): Constify.
3762 * remote-sim.c (gdbsim_open): Constify.
3763 * remote.c (remote_open, extended_remote_open, remote_open_1):
3765 * target.h (struct target_ops) <to_open>: Make "arg" const.
3766 * tracefile-tfile.c (tfile_open): Constify.
3768 2014-07-30 Tom Tromey <tromey@redhat.com>
3770 * breakpoint.c (map_breakpoint_numbers): Update.
3771 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3772 (get_number_const): New function.
3773 (get_number): Rewrite using get_number_const.
3774 (init_number_or_range): Make "string" const.
3775 (number_is_in_list): Make "list" const.
3776 * cli/cli-utils.h (get_number_const): Declare.
3777 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3778 (init_number_or_range, number_is_in_list): Update.
3779 * printcmd.c (map_display_numbers): Update.
3780 * value.c (value_from_history_ref): Constify.
3781 * value.h (value_from_history_ref): Update.
3783 2014-07-30 Tom Tromey <tromey@redhat.com>
3785 * corefile.c (hook_type, call_extra_exec_file_hooks)
3786 (specify_exec_file_hook): Constify.
3787 * exec.c (exec_file_attach): Make "filename" const.
3788 * gdbcore.h (deprecated_exec_file_display_hook)
3789 (specify_exec_file_hook, exec_file_attach): Constify.
3790 * main.c (captured_main): Use catch_command_errors_const.
3792 2014-07-30 Tom Tromey <tromey@redhat.com>
3794 * target.c (open_target): New function.
3795 (add_target_with_completer, add_deprecated_target_alias): Use
3796 set_cmd_sfunc, set_cmd_context.
3797 (debug_to_open): Remove.
3798 (setup_target_debug): Update.
3800 2014-07-30 Yao Qi <yao@codesourcery.com>
3802 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3804 * parse.c (exp_iterate): Update comments.
3806 2014-07-30 Gary Benson <gbenson@redhat.com>
3808 * common/common-defs.h: New file.
3809 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3810 * defs.h: Include common-defs.h.
3811 Do not include config.h or build-gnulib/config.h.
3813 2014-07-30 Gary Benson <gbenson@redhat.com>
3815 * common/common-utils.h: Do not include config.h.
3816 * nat/linux-btrace.h: Likewise.
3818 2014-07-30 Gary Benson <gbenson@redhat.com>
3820 * btrace.c: Include defs.h.
3821 * common/ptid.c: Include defs.h or server.h as appropriate.
3822 * nat/mips-linux-watch.c: Likewise.
3824 2014-07-29 Tom Tromey <tromey@redhat.com>
3826 * target.c (target_is_pushed): Simplify.
3828 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3832 2014-07-29 Yao Qi <yao@codesourcery.com>
3835 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3837 2014-07-28 Doug Evans <xdje42@gmail.com>
3840 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3841 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3844 2014-07-28 Will Newton <will.newton@linaro.org>
3846 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3847 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3848 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3849 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3850 (THUMB2_EABI_SYSCALL): Likewise.
3851 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3853 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3854 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3856 2014-07-27 Doug Evans <xdje42@gmail.com>
3858 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3860 2014-07-27 Doug Evans <xdje42@gmail.com>
3862 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3864 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3865 Doug Evans <xdje42@gmail.com>
3868 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3869 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3870 * configure.ac: Try to use guild to compile an scm file, if it fails
3871 then disable guile support.
3872 * configure: Regenerate.
3873 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3875 (GUILE_COMPILED_FILES): New variable.
3876 (GUILE_FILES) Update.
3877 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3878 (stamp-guile): Compile scm files.
3879 * guile/guile.c (boot_guile_support): New function.
3880 (standard_throw_args_p): New function.
3881 (print_standard_throw_error, print_throw_error): New functions.
3882 (handle_boot_error): New function.
3883 (initialize_scheme_side): Rewrite to call boot_guile_support.
3884 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3885 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3887 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3888 Doug Evans <xdje42@gmail.com>
3891 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3892 * guile/lib/gdb/support.scm: New file.
3893 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3894 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3896 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3898 (%assert-type): Ditto, and renamed to assert-type.
3899 (%exception-print-style): Delete.
3901 2014-07-26 Doug Evans <xdje42@gmail.com>
3904 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3905 * configure: Regenerate.
3906 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3908 (PYTHON_FILES): New variable.
3909 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3910 (GUILE_FILES): New variable.
3911 (stamp-python, install-python, uninstall-python): Handle empty
3913 (stamp-guile, install-guile, uninstall-guile): Ditto.
3915 2014-07-26 Doug Evans <xdje42@gmail.com>
3918 * guile/lib/gdb.scm (pretty-printers): Export.
3919 (set-pretty-printers!): Export.
3920 * guile/lib/gdb/printing.scm (gdb module): Update.
3921 (prepend-pretty-printer!, append-pretty-printer!): Update.
3922 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3923 (pretty_printer_list_var): Delete.
3924 (pretty_printer_list): New static global.
3925 (gdbscm_pretty_printers): New function.
3926 (gdbscm_set_pretty_printers_x): New function.
3927 (ppscm_find_pretty_printer_from_gdb): Update.
3928 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3929 (gdbscm_initialize_pretty_printers): Update.
3931 2014-07-26 Doug Evans <xdje42@gmail.com>
3934 * configure.ac: Add check for header gc/gc.h.
3935 Add check for function setenv.
3936 * configure: Regenerate.
3937 * config.in: Regenerate.
3938 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3940 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3942 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3943 variation in gdbarch matching.
3945 2014-07-25 Tom Tromey <tromey@redhat.com>
3947 * exec.c (using_exec_ops): Remove.
3948 (exec_close_1): Update. Remove extraneous block, reindent.
3949 (add_target_sections): Use target_is_pushed.
3951 2014-07-25 Pedro Alves <palves@redhat.com>
3953 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3954 * monitor.c (monitor_create_inferior): Likewise.
3955 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3956 * remote-sim.c (gdbsim_create_inferior): Likewise.
3957 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3958 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3959 * windows-nat.c (do_initial_windows_stuff): Likewise.
3961 2014-07-25 Pedro Alves <palves@redhat.com>
3963 * NEWS: Mention signal passing and "signal" command changes.
3964 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3966 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3968 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3969 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3970 (jump_command): Adjust clear_proceed_status call.
3971 (signal_command): Warn if other thread that are resumed have
3972 signals that will be delivered. Adjust clear_proceed_status call.
3973 (until_next_command, finish_command)
3974 (proceed_after_attach_callback, attach_command_post_wait)
3975 (attach_command): Adjust clear_proceed_status call.
3976 * infrun.c (proceed_after_vfork_done): Likewise.
3977 (proceed_after_attach_callback): Adjust comment.
3978 (clear_proceed_status_thread): Clear stop_signal if not in pass
3980 (clear_proceed_status_callback): Delete.
3981 (clear_proceed_status): New 'step' parameter. Only clear the
3982 proceed status of threads the command being prepared is about to
3984 (proceed): If passed in an explicit signal, override stop_signal
3985 with it. Don't pass the last stop signal to the thread we're
3987 (init_wait_for_inferior): Adjust clear_proceed_status call.
3988 (switch_back_to_stepped_thread): Clear the signal if it should not
3990 * infrun.h (clear_proceed_status): New 'step' parameter.
3991 (user_visible_resume_ptid): Add comment.
3992 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3993 signal is in pass state.
3994 * remote.c (append_pending_thread_resumptions): Likewise.
3995 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3997 2014-07-25 Tom Tromey <tromey@redhat.com>
3999 * target.h (target_stopped_data_address)
4000 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4003 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4005 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4007 (avr_pointer_to_address): Likewise.
4009 2014-07-24 Tom Tromey <tromey@redhat.com>
4011 * monitor.c (compile_pattern): Update.
4012 * target.h (struct target_ops) <to_shortname, to_longname,
4015 2014-07-24 Tom Tromey <tromey@redhat.com>
4017 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4018 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4019 (add_info_alias, add_com): Make "doc" const.
4020 (print_doc_line): Make "str" const.
4021 (delete_cmd): Update.
4022 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4023 (print_doc_line): Update.
4024 * cli/cli-script.c (document_command): Update.
4025 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4026 (add_com, add_info, add_info_alias): Update.
4027 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4028 * python/py-cmd.c (cmdpy_destroyer): Update.
4030 2014-07-24 Tom Tromey <tromey@redhat.com>
4032 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4033 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4034 (help_cmd_list): Constify.
4035 (lookup_cmd): Update.
4036 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4038 (help_cmd_list, apropos_cmd): Update.
4039 * cli/cli-script.c (show_user): Update.
4040 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4041 * cli/cli-setshow.h (cmd_show_list): Update.
4042 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4043 (cmd_show_list): Update.
4044 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4045 * python/py-cmd.c (cmdpy_destroyer): Update.
4047 2014-07-24 Tom Tromey <tromey@redhat.com>
4049 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4050 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4052 * command.h (deprecate_cmd): Update.
4053 * maint.c (maintenance_do_deprecate): Add casts.
4055 2014-07-24 Tom Tromey <tromey@redhat.com>
4057 * cli/cli-decode.c (help_cmd): Make parameter "const".
4058 * cli/cli-decode.h (help_cmd): Update.
4060 2014-07-24 Tom Tromey <tromey@redhat.com>
4062 * stack.c (up_silently_base, down_silently_base): Make argument
4065 2014-07-24 Tom Tromey <tromey@redhat.com>
4067 * solib.c (solib_add): Make "pattern" const.
4068 * solib.h (solib_add): Update.
4070 2014-07-24 Tom Tromey <tromey@redhat.com>
4072 * remote.c (remote_serial_open, print_packet, putpkt)
4073 (putpkt_binary): Constify.
4074 * remote.h (putpkt): Update.
4076 2014-07-24 Tom Tromey <tromey@redhat.com>
4078 * monitor.c (monitor_open): Make "args" const.
4079 * monitor.h (monitor_open): Update.
4081 2014-07-24 Tom Tromey <tromey@redhat.com>
4083 * maint.c (match_bfd_flags): Make "string" const.
4084 (print_bfd_section_info): Remove casts.
4085 (print_objfile_section_info): Make "string" const.
4087 2014-07-24 Tom Tromey <tromey@redhat.com>
4089 * inf-child.c (inf_child_open_target): Make "arg" const.
4090 * inf-child.h (inf_child_open_target): Update.
4092 2014-07-24 Tom Tromey <tromey@redhat.com>
4094 * environ.c (unset_in_environ): Make "var" const.
4095 * environ.h (unset_in_environ): Update.
4097 2014-07-24 Tom Tromey <tromey@redhat.com>
4099 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4101 (scan_filename_with_cleanup): Likewise.
4102 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4103 Make arguments const.
4104 (restore_command): Update.
4106 2014-07-24 Pedro Alves <palves@redhat.com>
4108 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4110 2014-07-24 Tom Tromey <tromey@redhat.com>
4111 Gary Benson <gbenson@redhat.com>
4113 * nat/linux-ptrace.c (additional_flags): New global.
4114 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4115 additional_flags; don't check GDBSERVER.
4116 (linux_ptrace_set_additional_flags): New function.
4117 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4119 * linux-nat.c (_initialize_linux_nat): Call
4120 linux_ptrace_set_additional_flags.
4122 2014-07-24 Tom Tromey <tromey@redhat.com>
4124 * make-target-delegates (munge_type, write_debugmethod): New
4126 (debug_names): New global.
4127 ($TARGET_DEBUG_PRINTER): New global.
4128 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4130 Write debug methods. Generate init_debug_target.
4131 * target-debug.h: New file.
4132 * target-delegates.c: Rebuild.
4133 * target.c: Include target-debug.h.
4134 (debug_target): Hoist definition.
4135 (target_kill, target_get_section_table, target_memory_map)
4136 (target_flash_erase, target_flash_done, target_detach)
4137 (target_disconnect, target_wait, target_resume)
4138 (target_pass_signals, target_program_signals, target_follow_fork)
4139 (target_mourn_inferior, target_search_memory)
4140 (target_thread_address_space, target_close)
4141 (target_find_new_threads, target_core_of_thread)
4142 (target_verify_memory, target_insert_mask_watchpoint)
4143 (target_remove_mask_watchpoint): Remove targetdebug code.
4144 (debug_to_post_attach, debug_to_prepare_to_store)
4145 (debug_to_files_info, debug_to_insert_breakpoint)
4146 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4147 (debug_to_region_ok_for_hw_watchpoint)
4148 (debug_to_can_accel_watchpoint_condition)
4149 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4150 (debug_to_watchpoint_addr_within_range)
4151 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4152 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4153 (debug_to_terminal_init, debug_to_terminal_inferior)
4154 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4155 (debug_to_terminal_save_ours, debug_to_terminal_info)
4156 (debug_to_load, debug_to_post_startup_inferior)
4157 (debug_to_insert_fork_catchpoint)
4158 (debug_to_remove_fork_catchpoint)
4159 (debug_to_insert_vfork_catchpoint)
4160 (debug_to_remove_vfork_catchpoint)
4161 (debug_to_insert_exec_catchpoint)
4162 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4163 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4164 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4165 (setup_target_debug): Call init_debug_target.
4166 * target.h (TARGET_DEBUG_PRINTER): New macro.
4167 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4168 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4170 2014-07-24 Gary Benson <gbenson@redhat.com>
4172 * exceptions.h (throw_vfatal): Renamed to...
4173 (throw_vquit): New declaration.
4174 (throw_quit): Likewise.
4175 * exceptions.c (throw_vfatal): Renamed to...
4176 (throw_vquit): New function.
4177 (throw_quit): Likewise.
4178 (throw_error): Call throw_verror rather than throw_it.
4179 * utils.h (vfatal): Removed.
4181 * utils.c (vfatal): Removed.
4183 (internal_verror): Replaced call to fatal with call to throw_quit.
4184 (quit): Replaced calls to fatal with calls to throw_quit.
4186 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4188 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4191 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4193 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4194 less than zero in conditional expression.
4196 2014-07-23 Tom Tromey <tromey@redhat.com>
4198 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4199 ($INTRO_PART): Don't match whitespace.
4200 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4202 ($METHOD): Add $METHOD_TRAILER.
4204 (scan_target_h): New sub.
4205 Change main loop not to collect state.
4206 * target-delegates.c: Rebuild.
4208 2014-07-23 Gary Benson <gbenson@redhat.com>
4210 * cp-support.c (gdb_demangle): Fix build on systems without
4213 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4215 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4216 for reference entry value target data value.
4218 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4220 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4221 value_available_contents_eq.
4223 2014-07-22 Pedro Alves <palves@redhat.com>
4225 * value.c (allocate_optimized_out_value): Don't mark value as
4228 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4230 * MAINTAINERS (Write After Approval): Update my email address.
4232 2014-07-20 Doug Evans <dje@google.com>
4235 * remote.c (putpkt_binary): Add text to error message.
4237 2014-07-20 Yao Qi <yao@codesourcery.com>
4239 * eval.c: Remove "Chill" from comments.
4240 * gdbtypes.h: Likewise.
4241 * symtab.h: Likewise.
4243 2014-07-20 Yao Qi <yao@codesourcery.com>
4245 * std-operator.def: Update comments to TERNOP_SLICE.
4247 2014-07-20 Yao Qi <yao@codesourcery.com>
4249 * std-operator.def: Remove BINOP_RANGE.
4250 * breakpoint.c (watchpoint_exp_is_const): Update.
4251 * expprint.c (dump_subexp_body_standard): Likewise.
4252 * eval.c (init_array_element): Remove dead code.
4253 (evaluate_subexp_standard): Likewise.
4255 2014-07-20 Yao Qi <yao@codesourcery.com>
4257 * std-operator.def: Remove BINOP_IN.
4258 * breakpoint.c (watchpoint_exp_is_const): Update.
4259 * eval.c (evaluate_subexp_standard): Likewise.
4260 * expprint.c (dump_subexp_body_standard): Likewise.
4262 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4264 * microblaze-tdep.c (microblaze_register_names): Add
4265 the rshr and rslr register names.
4266 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4267 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4268 Use of tdesc_numbered_register. Use of
4269 microblaze_register_g_packet_guesses. Use of
4270 tdesc_use_registers. Use of set_gdbarch_register_type.
4271 (microblaze_register_g_packet_guesses): New.
4272 * microblaze-tdep.h (microblaze_reg_num): Add
4273 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4274 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4275 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4276 * features/microblaze-core.xml: New file.
4277 * features/microblaze-stack-protect.xml: New file.
4278 * features/microblaze-with-stack-protect.c: New file.
4279 * features/microblaze-with-stack-protect.xml: New file.
4280 * features/microblaze.xml: New file.
4281 * features/microblaze.c: New file.
4282 * features/Makefile (microblaze-with-stack-protect): Add
4283 microblaze-with-stack-protect microblaze and microblaze-expedite.
4284 * regformats/microblaze-with-stack-protect.dat: New file.
4285 * regformats/microblaze.dat: New file.
4286 * doc/gdb.texinfo (MicroBlaze Features): Added.
4288 2014-07-18 Tom Tromey <tromey@redhat.com>
4290 * exec.c (exec_ops): Now static.
4291 * exec.h (exec_ops): Don't declare.
4293 2014-07-18 Tom Tromey <tromey@redhat.com>
4295 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4296 to find_target_beneath.
4297 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4298 find_target_beneath.
4299 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4301 2014-07-18 Tom Tromey <tromey@redhat.com>
4304 * utils.c (quit): Use target_supports_terminal_ours.
4305 * target.h (target_supports_terminal_ours): Declare.
4306 * target.c (target_supports_delete_record): Don't check
4307 to_delete_record against NULL.
4308 (target_supports_terminal_ours): New function.
4310 2014-07-18 Tom Tromey <tromey@redhat.com>
4313 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4314 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4315 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4316 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4317 * windows-nat.c (windows_xfer_partial): Always delegate.
4318 * record-btrace.c (record_btrace_xfer_partial): Simplify
4320 (record_btrace_fetch_registers, record_btrace_store_registers)
4321 (record_btrace_prepare_to_store, record_btrace_resume)
4322 (record_btrace_wait, record_btrace_find_new_threads)
4323 (record_btrace_thread_alive): Likewise.
4324 * procfs.c (procfs_xfer_partial): Always delegate.
4325 * corelow.c (core_xfer_partial): Always delegate.
4326 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4328 2014-07-18 Tom Tromey <tromey@redhat.com>
4330 * exec.c (exec_make_note_section): Move earlier.
4332 2014-07-17 Doug Evans <dje@google.com>
4335 * maint.c (count_symtabs_and_blocks): Handle NULL
4336 current_program_space.
4337 (report_command_stats): Check global enabled flag in addition to
4338 recorded enabled flag.
4339 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4341 2014-07-16 Pedro Alves <palves@redhat.com>
4343 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4345 2014-07-16 Tom Tromey <tromey@redhat.com>
4347 * target.h (struct target_ops) <to_delete_record>: Reformat
4350 2014-07-16 Tom Tromey <tromey@redhat.com>
4352 * target-delegates.c: Rebuild.
4354 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4356 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4357 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4358 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4359 (avr_pointer_to_address): Likewise.
4360 (avr_address_class_type_flags): New function.
4361 (avr_address_class_type_flags_to_name): Likewise.
4362 (avr_address_class_name_to_type_flags): Likewise.
4363 (avr_gdbarch_init): Set address_class_type_flags,
4364 address_class_type_flags_to_name and
4365 address_class_name_to_type_flags.
4367 2014-07-15 Pedro Alves <palves@redhat.com>
4369 * linux-nat.c (kill_callback): Save errno and work with saved
4372 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4374 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4376 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4378 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4379 breakpoint support correctly.
4381 2014-07-14 Pedro Alves <palves@redhat.com>
4383 * utils.c (prompt_for_continue): Call target_terminal_ours.
4385 2014-07-14 Pedro Alves <palves@redhat.com>
4387 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4388 catch_errors. Don't re-enable stdin or notify observers where,
4390 (fetch_inferior_event_wrapper): Delete.
4392 2014-07-14 Pedro Alves <palves@redhat.com>
4395 * top.c: Include "inf-loop.h".
4396 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4398 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4400 (gdb_readline_wrapper): Store whether the target is async, and
4403 2014-07-14 Pedro Alves <palves@redhat.com>
4406 * top.c (gdb_readline_wrapper_line): Tweak comment.
4407 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4408 the input handler callback.
4410 2014-07-14 Pedro Alves <palves@redhat.com>
4413 * main.c: Include event-top.h.
4414 (handle_command_errors): New function.
4415 (catch_command_errors, catch_command_errors_const): Use it.
4417 2014-07-14 Pedro Alves <palves@redhat.com>
4419 * exceptions.c (catch_command_errors, catch_command_errors_const):
4421 * exceptions.h (catch_command_errors_ftype)
4422 (catch_command_errors_const_ftype): Moved to main.c.
4423 (catch_command_errors, catch_command_errors_const): Delete
4425 * main.c (catch_command_errors_ftype)
4426 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4427 (catch_command_errors, catch_command_errors_const)): Moved here
4428 from exceptions.c and make static.
4430 2014-07-14 Pedro Alves <palves@redhat.com>
4432 * exceptions.c (print_any_exception): Delete.
4433 (catch_exceptions_with_msg): Use exception_print instead of
4434 print_any_exception.
4435 (catch_errors): Use exception_fprintf instead of
4436 print_any_exception.
4437 (catch_command_errors, catch_command_errors_const): Use
4438 exception_print instead of print_any_exception.
4440 2014-07-14 Pedro Alves <palves@redhat.com>
4442 * infcall.c (run_inferior_call): Set 'sync_execution' while
4443 running the inferior call.
4445 2014-07-14 Pedro Alves <palves@redhat.com>
4447 * value.c (value_contents_equal): Delete function.
4448 * value.h (value_contents_equal): Delete declaration.
4450 2014-07-14 Tom Tromey <tromey@redhat.com>
4453 * gdbtypes.c (is_dynamic_type_internal): New function, from
4455 (is_dynamic_type): Rewrite.
4456 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4457 (resolve_dynamic_struct): Likewise.
4458 (resolve_dynamic_type_internal): New function, from
4459 resolve_dynamic_type.
4460 (resolve_dynamic_type): Rewrite.
4462 2014-07-14 Tom Tromey <tromey@redhat.com>
4464 * target.c (target_require_runnable): Also check record_stratum.
4467 2014-07-11 Yao Qi <yao@codesourcery.com>
4469 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4470 thumb_instruction_restores_sp return true.
4472 2014-07-11 Yao Qi <yao@codesourcery.com>
4474 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4475 (thumb_in_function_epilogue_p): Call
4476 thumb_instruction_restores_sp.
4478 2014-07-11 Yao Qi <yao@codesourcery.com>
4480 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4482 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4484 2014-07-11 Gary Benson <gbenson@redhat.com>
4486 * amd64-linux-nat.c (gdbcore.h): Remove include.
4487 (regset.h): Likewise.
4488 (nat/linux-btrace.h): Likewise.
4489 (btrace.h): Likewise.
4490 (gdb_assert.h): Likewise.
4491 (string.h): Likewise.
4492 (sys/uio.h): Likewise.
4493 (sys/debugreg.h): Likewise.
4494 (sys/syscall.h): Likewise.
4495 (sys/procfs.h): Likewise.
4496 (sys/user.h): Likewise.
4497 (asm/ptrace.h): Likewise.
4498 (i386-nat.h): Likewise.
4499 * i386-linux-nat.c (i386-nat.h): Likewise.
4500 (regset.h): Likewise.
4501 (target.h): Likewise.
4502 (linux-nat.h): Likewise.
4503 (nat/linux-btrace.h): Likewise.
4504 (btrace.h): Likewise.
4505 (gdb_assert.h): Likewise.
4506 (string.h): Likewise.
4507 (sys/uio.h): Likewise.
4508 (sys/user.h): Likewise.
4509 (sys/procfs.h): Likewise.
4510 (sys/reg.h): Likewise.
4511 (sys/debugreg.h): Likewise.
4512 (ORIG_EAX): Remove definition.
4514 2014-07-11 Gary Benson <gbenson@redhat.com>
4516 * i386-linux-nat.h: New file.
4517 * x86-linux-nat.h: Likewise.
4518 * x86-linux-nat.c: Likewise.
4519 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4520 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4521 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4522 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4523 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4524 (PTRACE_SETREGSET): Likewise.
4525 (arch_lwp_info): Now in x86-linux-nat.c.
4526 (have_ptrace_getregset): Now in x86-linux-nat.h.
4527 (x86_linux_dr_get): Now in x86-linux-nat.c.
4528 (x86_linux_dr_set): Likewise.
4529 (x86_linux_dr_get_addr): Likewise.
4530 (x86_linux_dr_get_control): Likewise.
4531 (x86_linux_dr_get_status): Likewise.
4532 (update_debug_registers_callback): Likewise.
4533 (x86_linux_dr_set_control): Likewise.
4534 (x86_linux_dr_set_addr): Likewise.
4535 (x86_linux_prepare_to_resume): Likewise.
4536 (x86_linux_new_thread): Likewise.
4537 (x86_linux_new_fork): Likewise.
4538 (x86_linux_get_thread_area): Likewise.
4539 (super_post_startup_inferior): Likewise.
4540 (x86_linux_child_post_startup_inferior): Likewise.
4541 (AMD64_LINUX_USER64_CS): Likewise.
4542 (AMD64_LINUX_X32_DS): Likewise.
4543 (x86_linux_read_description): Likewise.
4544 (x86_linux_enable_btrace): Likewise.
4545 (x86_linux_disable_btrace): Likewise.
4546 (x86_linux_teardown_btrace): Likewise.
4547 (x86_linux_read_btrace): Likewise.
4548 (x86_linux_create_target): Likewise.
4549 (x86_linux_add_target): Likewise.
4550 * i386-linux-nat.c (x86-linux-nat.h): New include.
4551 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4552 (PTRACE_SETREGSET): Likewise.
4553 (arch_lwp_info): Now in x86-linux-nat.c.
4554 (have_ptrace_getregset): Now in x86-linux-nat.h.
4555 (x86_linux_dr_get): Now in x86-linux-nat.c.
4556 (x86_linux_dr_set): Likewise.
4557 (x86_linux_dr_get_addr): Likewise.
4558 (x86_linux_dr_get_control): Likewise.
4559 (x86_linux_dr_get_status): Likewise.
4560 (update_debug_registers_callback): Likewise.
4561 (x86_linux_dr_set_control): Likewise.
4562 (x86_linux_dr_set_addr): Likewise.
4563 (x86_linux_prepare_to_resume): Likewise.
4564 (x86_linux_new_thread): Likewise.
4565 (x86_linux_new_fork): Likewise.
4566 (x86_linux_get_thread_area): Likewise.
4567 (super_post_startup_inferior): Likewise.
4568 (x86_linux_child_post_startup_inferior): Likewise.
4569 (AMD64_LINUX_USER64_CS): Likewise.
4570 (AMD64_LINUX_X32_DS): Likewise.
4571 (x86_linux_read_description): Likewise.
4572 (x86_linux_enable_btrace): Likewise.
4573 (x86_linux_disable_btrace): Likewise.
4574 (x86_linux_teardown_btrace): Likewise.
4575 (x86_linux_read_btrace): Likewise.
4576 (x86_linux_create_target): Likewise.
4577 (x86_linux_add_target): Likewise.
4579 2014-07-11 Gary Benson <gbenson@redhat.com>
4581 * amd64-linux-nat.c: Comment and whitespace changes.
4582 * i386-linux-nat.c: Comment and whitespace changes.
4584 2014-07-11 Gary Benson <gbenson@redhat.com>
4586 * amd64-linux-nat.c (x86_linux_create_target): New function.
4587 (x86_linux_add_target): Likewise.
4588 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4589 * i386-linux-nat.c (x86_linux_create_target): New function.
4590 (x86_linux_add_target): Likewise.
4591 (_initialize_i386_linux_nat): Delegate to the above new functions.
4593 2014-07-11 Gary Benson <gbenson@redhat.com>
4595 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4596 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4597 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4598 (ps_get_thread_area): Delegate to the above.
4600 2014-07-11 Gary Benson <gbenson@redhat.com>
4602 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4603 x86_linux_read_description. All uses updated. amd64-specific
4604 code conditionalized. Conditionalized i386-specific code added.
4605 Redundant cast removed.
4606 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4607 x86_linux_read_description. All uses updated. i386-specific
4608 code conditionalized. Conditionalized amd64-specific code added.
4609 One sizeof replaced with the actual type it is describing.
4611 2014-07-11 Gary Benson <gbenson@redhat.com>
4613 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4614 x86_linux_dr_get. All uses updated.
4615 (amd64_linux_dr_set): Renamed to
4616 x86_linux_dr_set. All uses updated.
4617 (amd64_linux_dr_get_addr): Renamed to
4618 x86_linux_dr_get_addr. All uses updated.
4619 (amd64_linux_dr_get_control): Renamed to
4620 x86_linux_dr_get_control. All uses updated.
4621 (amd64_linux_dr_get_status): Renamed to
4622 x86_linux_dr_get_status. All uses updated.
4623 (amd64_linux_dr_set_control): Renamed to
4624 x86_linux_dr_set_control. All uses updated.
4625 (amd64_linux_dr_set_addr): Renamed to
4626 x86_linux_dr_set_addr. All uses updated.
4627 (amd64_linux_prepare_to_resume): Renamed to
4628 x86_linux_prepare_to_resume. All uses updated.
4629 (amd64_linux_new_thread): Renamed to
4630 x86_linux_new_thread. All uses updated.
4631 (amd64_linux_new_fork): Renamed to
4632 x86_linux_new_fork. All uses updated.
4633 (amd64_linux_child_post_startup_inferior): Renamed to
4634 x86_linux_child_post_startup_inferior. All uses updated.
4635 (amd64_linux_enable_btrace): Renamed to
4636 x86_linux_enable_btrace. All uses updated.
4637 (amd64_linux_disable_btrace): Renamed to
4638 x86_linux_disable_btrace. All uses updated.
4639 (amd64_linux_teardown_btrace): Renamed to
4640 x86_linux_teardown_btrace. All uses updated.
4641 (amd64_linux_read_btrace): Renamed to
4642 x86_linux_read_btrace. All uses updated.
4643 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4644 x86_linux_dr_get. All uses updated.
4645 (i386_linux_dr_set): Renamed to
4646 x86_linux_dr_set. All uses updated.
4647 (i386_linux_dr_get_addr): Renamed to
4648 x86_linux_dr_get_addr. All uses updated.
4649 (i386_linux_dr_get_control): Renamed to
4650 x86_linux_dr_get_control. All uses updated.
4651 (i386_linux_dr_get_status): Renamed to
4652 x86_linux_dr_get_status. All uses updated.
4653 (i386_linux_dr_set_control): Renamed to
4654 x86_linux_dr_set_control. All uses updated.
4655 (i386_linux_dr_set_addr): Renamed to
4656 x86_linux_dr_set_addr. All uses updated.
4657 (i386_linux_prepare_to_resume): Renamed to
4658 x86_linux_prepare_to_resume. All uses updated.
4659 (i386_linux_new_thread): Renamed to
4660 x86_linux_new_thread. All uses updated.
4661 (i386_linux_new_fork): Renamed to
4662 x86_linux_new_fork. All uses updated.
4663 (i386_linux_child_post_startup_inferior): Renamed to
4664 x86_linux_child_post_startup_inferior. All uses updated.
4665 (i386_linux_enable_btrace): Renamed to
4666 x86_linux_enable_btrace. All uses updated.
4667 (i386_linux_disable_btrace): Renamed to
4668 x86_linux_disable_btrace. All uses updated.
4669 (i386_linux_teardown_btrace): Renamed to
4670 x86_linux_teardown_btrace. All uses updated.
4671 (i386_linux_read_btrace): Renamed to
4672 x86_linux_read_btrace. All uses updated.
4674 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4676 * remote.c (extended_remote_post_attach): New function.
4677 (init_extended_remote_ops): Install it as to_post_attach method.
4679 2014-07-09 Pedro Alves <palves@redhat.com>
4681 * infcmd.c (attach_command_post_wait): Don't call
4682 target_terminal_inferior here.
4683 (attach_command): Call it here instead.
4685 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4687 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4689 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4690 from varobj.c, with additional checks.
4691 (c_varobj_ops): Fill in is_path_expr_parent field.
4692 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4693 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4695 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4697 (varobj_default_is_path_expr_parent): New function.
4698 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4699 (varobj_default_is_path_expr_parent): Declare new function.
4701 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4703 * infcmd.c (finish_backward): Turn internal error into normal error.
4705 2014-07-07 Pedro Alves <palves@redhat.com>
4708 * remote.c (async_handle_remote_sigint)
4709 (async_handle_remote_sigint_twice): Call
4710 gdb_call_async_signal_handler instead of
4711 mark_async_signal_handler.
4713 2014-07-07 Tom Tromey <tromey@redhat.com>
4715 * target-delegates.c: Rebuild.
4716 * target.c (target_info_record): Remove.
4717 * record.c (info_record_command): Unconditionally call
4719 * target.h (struct target_ops) <to_info_record>: Use
4720 TARGET_DEFAULT_IGNORE.
4721 (target_info_record): Remove.
4723 2014-07-07 Tom Tromey <tromey@redhat.com>
4725 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4726 TARGET_DEFAULT_NORETURN.
4727 * target.c (generic_tls_error): New function.
4728 (target_translate_tls_address): Don't search target stack.
4729 * target-delegates.c: Rebuild.
4730 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4732 * linux-thread-db.c (thread_db_get_thread_local_address):
4733 Unconditionally call beneath target.
4735 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4737 * cli/cli-logging.c (pop_output_files): Assign targerr to
4740 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4742 * MAINTAINERS (Write After Approval): Update my email address.
4744 2014-07-02 Gary Benson <gbenson@redhat.com>
4746 * proc-service.c (ps_xfer_memory): Update comment.
4747 (ps_pstop): Remove unused function.
4748 (ps_pcontinue): Likewise.
4749 (ps_lstop): Likewise.
4750 (ps_lcontinue): Likewise.
4751 (ps_lgetxregsize): Likewise.
4752 (ps_lgetxregs): Likewise.
4753 (ps_lsetxregs): Likewise.
4754 (ps_plog): Likewise.
4755 (ps_ptread): Likewise.
4756 (ps_ptwrite): Likewise.
4758 2014-07-01 Mark Wielaard <mjw@redhat.com>
4760 * dwarf2read.c (add_array_cv_type): New function.
4761 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4762 (read_tag_volatile_type): Likewise.
4764 2014-07-01 Tom Tromey <tromey@redhat.com>
4766 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4767 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4768 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4769 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4770 * command.h (cmd_cfunc_ftype): Move earlier.
4771 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4772 (add_com, add_info): Use cmd_cfunc_ftype.
4774 2014-06-30 Tom Tromey <tromey@redhat.com>
4776 * symtab.c (operator_chars): Make parameters and return type
4778 (file_matches): Make "files" const.
4779 (struct search_symbols_data) <files>: Now const.
4780 (search_symbols): Make "regexp" and "files" parameters const.
4782 (symtab_symbol_info): Remove cast.
4783 (rbreak_command): Update.
4784 * symtab.h (search_symbols): Update.
4786 2014-06-27 Yao Qi <yao@codesourcery.com>
4788 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4789 Change parameter type to 'struct thread_info *'. Caller
4791 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4793 * dummy-frame.c (struct dummy_frame_id): New.
4794 (dummy_frame_id_eq): New function.
4795 (struct dummy_frame) <id>: Change its type to 'struct
4797 (dummy_frame_push): Add parameter ptid and save it in
4799 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4801 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4803 (lookup_dummy_frame): Change parameter type to 'struct
4804 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4805 instead of frame_id_eq.
4806 (dummy_frame_pop): Add parameter ptid. Callers updated.
4807 Update comments. Compose dummy_frame_id and pass it to
4809 (dummy_frame_discard): Add parameter ptid.
4810 (dummy_frame_sniffer): Compose dummy_frame_id and call
4811 dummy_frame_id_eq instead of frame_id_eq.
4812 (fprint_dummy_frames): Print ptid.
4813 * dummy-frame.h: Remove comments.
4814 (dummy_frame_push): Add ptid in declaration.
4815 (dummy_frame_pop, dummy_frame_discard): Likewise.
4817 2014-06-26 Tom Tromey <tromey@redhat.com>
4819 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4820 * command.h (error_no_arg): Update.
4822 2014-06-26 Tom Tromey <tromey@redhat.com>
4824 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4825 (do_show_command): Make "arg" const.
4826 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4828 2014-06-26 Tom Tromey <tromey@redhat.com>
4830 * record-full.c (record_full_get_bookmark): Make "args" const.
4831 (record_full_goto_bookmark): Make "raw_bookmark" const.
4832 * record.c (record_goto): New function.
4833 (cmd_record_goto): Use it. Now static.
4834 * record.h (record_goto): Declare.
4835 (cmd_record_goto): Remove declaration.
4836 * target-delegates.c: Rebuild.
4837 * target.h (struct target_ops) <to_get_bookmark,
4838 to_goto_bookmark>: Make parameter const.
4840 2014-06-26 Tom Tromey <tromey@redhat.com>
4842 * defs.h (generic_load): Update.
4843 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4844 * monitor.c (monitor_load): Make "args" const.
4845 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4846 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4848 (mips_load): Make "file" const.
4849 * remote-sim.c (gdbsim_load): Make "args" const.
4850 * remote.c (remote_load): Make "name" const.
4851 * symfile.c (generic_load): Make "args" const.
4852 * target-delegates.c: Rebuild.
4853 * target.c (target_load): Make "arg" const.
4854 (debug_to_load): Make "args" const.
4855 * target.h (struct target_ops) <to_load>: Make parameter const.
4856 (target_load): Update.
4858 2014-06-26 Tom Tromey <tromey@redhat.com>
4861 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4862 (dwarf2_physname, read_partial_die)
4863 (guess_partial_die_structure_name, fixup_partial_die)
4864 (guess_full_die_structure_name, anonymous_struct_prefix)
4865 (dwarf2_name): Use per-BFD obstack.
4867 2014-06-26 Yao Qi <yao@codesourcery.com>
4869 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4870 dummyframe and this_id into inner block below.
4872 2014-06-26 Yao Qi <yao@codesourcery.com>
4874 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4875 with "signal_pass[0]" in the initialization of signal_pass.
4877 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4879 * record-btrace.c (record_btrace_generating_corefile)
4880 (record_btrace_prepare_to_generate_core)
4881 (record_btrace_done_generating_core): New.
4882 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4883 (record_btrace_store_registers, record_btrace_prepare_to_store):
4884 Forward request when generating a core file.
4885 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4886 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4887 to_done_generating_core.
4889 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4891 * target.h (target_ops) <to_prepare_to_generate_core>
4892 <to_done_generating_core>: New.
4893 (target_prepare_to_generate_core, target_done_generating_core): New.
4894 * target.c (target_prepare_to_generate_core)
4895 (target_done_generating_core): New.
4896 * target-delegates.c: Regenerate.
4897 * gcore.c: (write_gcore_file): Rename to ...
4898 (write_gcore_file_1): ...this.
4899 (write_gcore_file): Call target_prepare_to_generate_core
4900 and target_done_generating_core.
4902 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4904 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4905 * gcore.c (write_gcore_file): Free memory returned from
4906 make_corefile_notes.
4907 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4908 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4910 2014-06-24 Yao Qi <yao@codesourcery.com>
4912 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4913 (arm_linux_init_abi): Set skip_trampoline_code with
4914 gdbarch_skip_trampoline_code instead of
4915 find_solib_trampoline_target.
4917 2014-06-24 Yao Qi <yao@codesourcery.com>
4919 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4920 arm_skip_bx_reg returns non-zero.
4922 2014-06-24 Yao Qi <yao@codesourcery.com>
4924 * arm-tdep.c (arm_skip_bx_reg): New function.
4925 (arm_skip_stub): Call arm_skip_bx_reg.
4927 2014-06-23 Don Breazeal <donb@codesourcery.com>
4929 * MAINTAINERS: Add myself as write-after-approval maintainer.
4931 2014-06-23 Pedro Alves <palves@redhat.com>
4933 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4934 DR_CONTROL before setting DR0..DR3.
4935 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4936 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4937 bits of DR_CONTROL related to the debug register slot being
4938 disabled. If all slots are vacant, clear local slowdown as well,
4939 and assert DR_CONTROL is 0.
4941 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4943 * python/lib/gdb/command/xmethods.py
4944 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4945 current progspace only if the string "progspace" matches LOCUS_RE.
4947 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4949 Fix --with-system-readline with readline-6.3 patch 5.
4950 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4951 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4954 2014-06-20 Tom Tromey <tromey@redhat.com>
4956 * dwarf2read.c (dw2_get_real_path): Use correct type in
4958 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4960 2014-06-20 Gary Benson <gbenson@redhat.com>
4962 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4963 * common/glibc_thread_db.h: Likewise.
4964 * common/i386-cpuid.h: Likewise.
4965 * common/i386-gcc-cpuid.h: Likewise.
4966 * common/linux-btrace.h: Likewise.
4967 * common/linux-osdata.h: Likewise.
4968 * common/linux-procfs.h: Likewise.
4969 * common/linux-ptrace.h: Likewise.
4970 * common/mips-linux-watch.h: Likewise.
4971 * common/linux-btrace.c: Moved to nat.
4972 * common/linux-osdata.c: Likewise.
4973 * common/linux-procfs.c: Likewise.
4974 * common/linux-ptrace.c: Likewise.
4975 * common/mips-linux-watch.c: Likewise.
4976 * nat/gdb_thread_db.h: Moved from common.
4977 * nat/glibc_thread_db.h: Likewise.
4978 * nat/i386-cpuid.h: Likewise.
4979 * nat/i386-gcc-cpuid.h: Likewise.
4980 * nat/linux-btrace.c: Likewise.
4981 * nat/linux-btrace.h: Likewise.
4982 * nat/linux-osdata.c: Likewise.
4983 * nat/linux-osdata.h: Likewise.
4984 * nat/linux-procfs.c: Likewise.
4985 * nat/linux-procfs.h: Likewise.
4986 * nat/linux-ptrace.c: Likewise.
4987 * nat/linux-ptrace.h: Likewise.
4988 * nat/mips-linux-watch.c: Likewise.
4989 * nat/mips-linux-watch.h: Likewise.
4990 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4991 (object file files): Reordered.
4992 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4993 of glibc_thread_db.h.
4995 2014-06-20 Gary Benson <gbenson@redhat.com>
4997 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4998 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4999 (i386_dr_low): Likewise.
5000 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5001 (i386_dr_low_set_addr): Likewise.
5002 (i386_dr_low_get_addr): Likewise.
5003 (i386_dr_low_can_set_control): Likewise.
5004 (i386_dr_low_set_control): Likewise.
5005 (i386_dr_low_get_control): Likewise.
5006 (i386_dr_low_get_status): Likewise.
5007 (i386_get_debug_register_length): Likewise.
5008 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5009 (i386_dr_low): Likewise.
5010 * nat/i386-dregs.c (i386-low.h): Remove include.
5011 (i386-nat.h): Likewise.
5012 (nat/i386-dregs.h): New include.
5013 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5014 (i386_dr_low_set_addr): Likewise.
5015 (i386_dr_low_get_addr): Likewise.
5016 (i386_dr_low_can_set_control): Likewise.
5017 (i386_dr_low_set_control): Likewise.
5018 (i386_dr_low_get_control): Likewise.
5019 (i386_dr_low_get_status): Likewise.
5020 (i386_get_debug_register_length): Likewise.
5021 (debug_hw_points): Likewise.
5023 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5025 * Makefile.in (SFILES): Add d-exp.y.
5026 (YYFILES): Add d-exp.c.
5027 (YYOBJ): Add d-exp.o.
5028 (local-maintainer-clean): Delete d-exp.c.
5029 * d-exp.y: New file.
5030 * d-lang.h (d_parse): New declaration.
5031 (d_error): New declaration.
5032 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5033 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5034 PREC_ORDER operators.
5035 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5037 2014-06-19 Yao Qi <yao@codesourcery.com>
5039 * gdbthread.h (any_running): Remove the declaration.
5040 * thread.c (any_running): Remove.
5042 2014-06-19 Yao Qi <yao@codesourcery.com>
5044 * gdbthread.h (struct thread_info) <state>: Change its type to
5045 'enum thread_state'. Update comments.
5047 2014-06-19 Pedro Alves <palves@redhat.com>
5049 * gdbthread.h (ALL_THREADS): Delete.
5050 (ALL_NON_EXITED_THREADS): New macro.
5051 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5052 instead of ALL_THREADS.
5053 * infrun.c (find_thread_needs_step_over)
5054 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5055 instead of ALL_THREADS.
5056 * record-btrace.c (record_btrace_open)
5057 (record_btrace_stop_recording, record_btrace_close)
5058 (record_btrace_is_replaying, record_btrace_resume)
5059 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5060 * remote.c (append_pending_thread_resumptions): Likewise.
5061 * thread.c (thread_apply_all_command): Likewise.
5063 2014-06-19 Gary Benson <gbenson@redhat.com>
5065 * i386-nat.c (i386_stopped_by_watchpoint):
5066 Use i386_dr_stopped_by_watchpoint.
5067 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5068 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5070 2014-06-19 Gary Benson <gbenson@redhat.com>
5072 * nat/i386-dregs.c: New file.
5073 * Makefile.in (i386-dregs.o): New rule.
5074 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5075 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5076 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5077 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5078 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5079 * config/i386/go32.mh (NATDEPFILES): Likewise.
5080 * config/i386/linux.mh (NATDEPFILES): Likewise.
5081 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5082 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5083 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5084 * i386-nat.h (debug_hw_points): New declaration.
5085 * i386-nat.c (breakpoint.h): Remove include.
5086 (command.h): Likewise.
5087 (target.h): Likewise.
5088 (gdb_assert.h): Likewise.
5089 (debug_hw_points): Made nonstatic.
5090 (debug_printf): Now in i386-dregs.c.
5091 (TARGET_HAS_DR_LEN_8): Likewise.
5092 (DR_CONTROL_SHIFT): Likewise.
5093 (DR_CONTROL_SIZE): Likewise.
5094 (DR_RW_EXECUTE): Likewise.
5095 (DR_RW_WRITE): Likewise.
5096 (DR_RW_READ): Likewise.
5097 (DR_RW_IORW): Likewise.
5098 (DR_LEN_1): Likewise.
5099 (DR_LEN_2): Likewise.
5100 (DR_LEN_4): Likewise.
5101 (DR_LEN_8): Likewise.
5102 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5103 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5104 (DR_ENABLE_SIZE): Likewise.
5105 (DR_LOCAL_SLOWDOWN): Likewise.
5106 (DR_GLOBAL_SLOWDOWN): Likewise.
5107 (DR_CONTROL_RESERVED): Likewise.
5108 (I386_DR_CONTROL_MASK): Likewise.
5109 (I386_DR_VACANT): Likewise.
5110 (I386_DR_LOCAL_ENABLE): Likewise.
5111 (I386_DR_GLOBAL_ENABLE): Likewise.
5112 (I386_DR_DISABLE): Likewise.
5113 (I386_DR_SET_RW_LEN): Likewise.
5114 (I386_DR_GET_RW_LEN): Likewise.
5115 (I386_DR_WATCH_HIT): Likewise.
5116 (i386_wp_op_t): Likewise.
5117 (i386_show_dr): Likewise.
5118 (i386_length_and_rw_bits): Likewise.
5119 (i386_insert_aligned_watchpoint): Likewise.
5120 (i386_remove_aligned_watchpoint): Likewise.
5121 (i386_handle_nonaligned_watchpoint): Likewise.
5122 (i386_update_inferior_debug_regs): Likewise.
5123 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5124 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5125 (i386_region_ok_for_watchpoint):
5126 Use i386_dr_region_ok_for_watchpoint.
5127 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5129 2014-06-19 Gary Benson <gbenson@redhat.com>
5131 * i386-nat.c (i386_insert_hw_breakpoint): Use
5132 i386_insert_watchpoint.
5133 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5135 2014-06-19 Gary Benson <gbenson@redhat.com>
5137 * i386-nat.c (i386_dr_show): Renamed to
5138 i386_show_dr and made static. All uses updated.
5139 (i386_dr_length_and_rw_bits): Renamed to
5140 i386_length_and_rw_bits and made static.
5142 (i386_dr_insert_aligned_watchpoint): Renamed to
5143 i386_insert_aligned_watchpoint and made static.
5145 (i386_dr_remove_aligned_watchpoint): Renamed to
5146 i386_remove_aligned_watchpoint and made static.
5148 (i386_dr_update_inferior_debug_regs): Renamed to
5149 i386_update_inferior_debug_regs and made static.
5151 * nat/i386-dregs.h (i386_dr_show): Removed.
5152 (i386_dr_length_and_rw_bits): Likewise.
5153 (i386_dr_insert_aligned_watchpoint): Likewise.
5154 (i386_dr_remove_aligned_watchpoint): Likewise.
5155 (i386_dr_update_inferior_debug_regs): Likewise.
5157 2014-06-19 Gary Benson <gbenson@redhat.com>
5159 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5160 * configure: Regenerate.
5161 * config.in: Likewise.
5162 * main.c (signal.h): New include.
5163 (setup_alternate_signal_stack): New function.
5164 (captured_main): Call the above.
5165 * cp-support.c (signal.h): New include.
5166 (catch_demangler_crashes): New flag.
5167 (SIGJMP_BUF): New define.
5168 (SIGSETJMP): Likewise.
5169 (SIGLONGJMP): Likewise.
5170 (gdb_demangle_jmp_buf): New static global.
5171 (gdb_demangle_attempt_core_dump): Likewise.
5172 (gdb_demangle_signal_handler): New function.
5173 (gdb_demangle): If catch_demangler_crashes is set, install the
5174 above signal handler before calling bfd_demangle, and restore
5175 the original signal handler afterwards. Display the offending
5176 symbol and call demangler_warning the first time a segmentation
5178 (_initialize_cp_support): New maint set/show command.
5180 2014-06-19 Gary Benson <gbenson@redhat.com>
5182 * utils.h (resource_limit_kind): New enum.
5183 (can_dump_core): New declaration.
5184 (warn_cant_dump_core): Likewise.
5185 (dump_core): Likewise.
5186 * utils.c (dump_core): Made nonstatic. Added new
5187 parameter "limit_kind".
5188 (can_dump_core): Made nonstatic. Moved printing code to...
5189 (warn_cant_dump_core): New function.
5190 (can_dump_core_warn): Likewise.
5191 (internal_vproblem): Replace calls to can_dump_core with
5192 calls to can_dump_core_warn. Supply new argument to each.
5194 2014-06-19 Gary Benson <gbenson@redhat.com>
5196 * utils.h (demangler_vwarning): New declaration.
5197 (demangler_warning): Likewise.
5198 * utils.c (struct internal_problem)
5199 <user_settable_should_quit>: New field.
5200 <user_settable_should_dump_core>: Likewise
5201 (internal_error_problem): Add values for above new fields.
5202 (internal_warning_problem): Likewise.
5203 (demangler_warning_problem): New static global.
5204 (demangler_vwarning): New function.
5205 (demangler_warning): Likewise.
5206 (add_internal_problem_command): Selectively add commands.
5207 (_initialize_utils): New internal problem command.
5208 * maint.c (maintenance_demangler_warning): New function.
5209 (_initialize_maint_cmds): New command.
5211 2014-06-18 Tom Tromey <tromey@redhat.com>
5213 * f-valprint.c (info_common_command_for_block): Update.
5214 * symtab.h (struct general_symbol_info) <common_block>: Now
5217 2014-06-18 Tom Tromey <tromey@redhat.com>
5219 * symtab.h (struct symtab) <blockvector>: Now const.
5220 * ada-lang.c (ada_add_global_exceptions): Update.
5221 * buildsym.c (augment_type_symtab): Update.
5222 * dwarf2read.c (dw2_lookup_symbol): Update.
5223 * jit.c (finalize_symtab): Update.
5224 * jv-lang.c (add_class_symtab_symbol): Update.
5225 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5227 * objfiles.c (objfile_relocate1): Update.
5228 * psymtab.c (lookup_symbol_aux_psymtabs)
5229 (maintenance_check_psymtabs): Update.
5230 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5232 * spu-tdep.c (spu_catch_start): Update.
5233 * symmisc.c (dump_symtab_1): Update.
5234 * symtab.c (lookup_global_symbol_from_objfile)
5235 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5236 (basic_lookup_transparent_type_quick)
5237 (basic_lookup_transparent_type, find_pc_sect_symtab)
5238 (find_pc_sect_line, search_symbols): Update.
5239 * block.c (find_block_in_blockvector): Make "bl" const.
5240 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5242 (blockvector_contains_pc): Make "bv" const.
5243 (block_for_pc_sect): Update.
5244 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5245 (blockvector_contains_pc): Update.
5246 * breakpoint.c (resolve_sal_pc): Update.
5247 * inline-frame.c (block_starting_point_at): Update.
5249 2014-06-18 Tom Tromey <tromey@redhat.com>
5251 * completer.c (complete_line): Make "line_buffer" const.
5252 * completer.h (complete_line): Update.
5254 2014-06-18 Tom Tromey <tromey@redhat.com>
5256 * symtab.c (add_macro_name): Remove unneeded cast.
5258 2014-06-18 Tom Tromey <tromey@redhat.com>
5260 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5261 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5263 2014-06-18 Tom Tromey <tromey@redhat.com>
5265 * probe.c (info_probes_for_ops): Make "arg" const.
5266 * probe.h (info_probes_for_ops): Update.
5268 2014-06-18 Tom Tromey <tromey@redhat.com>
5270 * varobj.c (varobj_create): Update.
5271 * valops.c (value_of_this): Update.
5272 * tracepoint.c (add_local_symbols, scope_info): Update.
5273 * symtab.h (struct general_symbol_info) <block>: Now const.
5274 * symtab.c (skip_prologue_sal)
5275 (default_make_symbol_completion_list_break_on)
5276 (skip_prologue_using_sal): Update.
5277 * stack.h (iterate_over_block_locals)
5278 (iterate_over_block_local_vars): Update.
5279 * stack.c (print_frame_args): Update.
5280 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5282 (get_selected_block): Make return type const.
5283 * python/py-frame.c (frapy_block): Update.
5284 * python/py-block.c (gdbpy_block_for_pc): Update.
5285 * p-exp.y (%union) <bval>: Now const.
5286 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5287 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5288 * m2-exp.y (%union) <bval>: Now const.
5289 * linespec.c (get_current_search_block): Make return type const.
5290 (create_sals_line_offset, find_label_symbols): Update.
5291 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5293 (block_starting_point_at): Make "block" const.
5294 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5295 (check_exception_resume): Update.
5296 * guile/scm-frame.c (gdbscm_frame_block): Update.
5297 * guile/scm-block.c (gdbscm_lookup_block): Update.
5298 * frame.h (get_frame_block): Update.
5299 (get_selected_block): Make return type const.
5300 * frame.c (frame_id_inner): Update.
5301 * f-valprint.c (info_common_command_for_block)
5302 (info_common_command): Update.
5303 * dwarf2loc.c (dwarf2_find_location_expression)
5304 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5305 (locexpr_describe_location_piece): Update.
5306 * c-exp.y (%union) <bval>: Now const.
5307 * breakpoint.c (resolve_sal_pc): Update.
5308 * blockframe.c (get_frame_block):Make return type const.
5309 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5310 (block_innermost_frame): Update.
5311 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5312 (block_for_pc, block_for_pc_sect): Update.
5313 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5315 (block_for_pc_sect, block_for_pc): Make return type const.
5316 * ax-gdb.c (gen_expr): Update.
5317 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5318 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5319 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5320 (ada_read_var_value): Update.
5321 * ada-exp.y (struct name_info) <block>: Now const.
5323 (block_lookup): Constify.
5325 2014-06-18 Gary Benson <gbenson@redhat.com>
5327 * nat/i386-dregs.h: New file.
5328 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5329 * i386-nat.h (i386-dregs.h): New include.
5330 (DR_FIRSTADDR): Now in i386-dregs.h.
5331 (DR_LASTADDR): Likewise.
5332 (DR_NADDR): Likewise.
5333 (DR_STATUS): Likewise.
5334 (DR_CONTROL): Likewise.
5335 (i386_debug_reg_state): Likewise.
5336 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5338 2014-06-18 Don Breazeal <donb@codesourcery.com>
5340 * breakpoint.c (set_longjmp_breakpoint): Call
5341 momentary_breakpoint_from_master with additional argument.
5342 (set_longjmp_breakpoint_for_call_dummy): Call
5343 momentary_breakpoint_from_master with additional argument.
5344 (set_std_terminate_breakpoint): Call
5345 momentary_breakpoint_from_master with additional argument.
5346 (momentary_breakpoint_from_master): Add argument to function
5347 definition and use it to initialize structure member flag.
5348 (clone_momentary_breakpoint): Call
5349 momentary_breakpoint_from_master with additional argument.
5350 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5351 member flags set in momentary_breakpoint_from_master.
5353 2014-06-18 Gary Benson <gbenson@redhat.com>
5355 * i386-nat.c (i386_show_dr): Renamed to
5356 i386_dr_show and made nonstatic. All uses updated.
5357 (i386_length_and_rw_bits): Renamed to
5358 i386_dr_length_and_rw_bits and made nonstatic.
5360 (i386_insert_aligned_watchpoint): Renamed to
5361 i386_dr_insert_aligned_watchpoint and made nonstatic.
5363 (i386_remove_aligned_watchpoint): Renamed to
5364 i386_dr_remove_aligned_watchpoint and made nonstatic.
5366 (i386_update_inferior_debug_regs): Renamed to
5367 i386_dr_update_inferior_debug_regs and made nonstatic.
5370 2014-06-18 Gary Benson <gbenson@redhat.com>
5372 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5373 (i386_dr_low_can_set_control): Likewise.
5374 (i386_dr_low_set_addr): Likewise.
5375 (i386_dr_low_set_control): Likewise.
5376 (i386_dr_low_get_addr): Likewise.
5377 (i386_dr_low_get_status): Likewise.
5378 (i386_dr_low_get_control): Likewise.
5379 (i386_insert_aligned_watchpoint): Use new macros.
5380 (i386_update_inferior_debug_regs): Likewise.
5381 (i386_stopped_data_address): Likewise.
5383 2014-06-18 Gary Benson <gbenson@redhat.com>
5385 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5386 New parameter. All uses updated.
5388 2014-06-18 Gary Benson <gbenson@redhat.com>
5390 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5393 2014-06-18 Gary Benson <gbenson@redhat.com>
5395 * i386-nat.c (debug_printf): New macro.
5396 (i386_get_debug_register_length): Likewise.
5397 (TARGET_HAS_DR_LEN_8): Use above macro.
5398 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5399 and printf_unfiltered. Use phex to format values.
5401 2014-06-18 Gary Benson <gbenson@redhat.com>
5403 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5406 2014-06-18 Gary Benson <gbenson@redhat.com>
5408 * i386-nat.c: Comment changes.
5410 2014-06-18 Gary Benson <gbenson@redhat.com>
5412 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5414 2014-06-18 Gary Benson <gbenson@redhat.com>
5416 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5417 (i386_insert_aligned_watchpoint): Likewise.
5418 (i386_remove_aligned_watchpoint): Likewise.
5419 (i386_handle_nonaligned_watchpoint): Likewise.
5421 2014-06-18 Gary Benson <gbenson@redhat.com>
5423 * i386-nat.c: Whitespace changes.
5425 2014-06-17 Samuel Bronson <naesten@gmail.com>
5427 * MAINTAINERS: Update Roland McGrath's email address.
5428 Thanks to Sergio Durigan Junior for pointing out that he left
5429 Red Hat a while ago, and giving me a current address.
5431 2014-06-17 Tom Tromey <tromey@redhat.com>
5433 * utils.h (savestring): Remove declaration.
5435 2014-06-17 Tom Tromey <tromey@redhat.com>
5437 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5439 2014-06-16 Keith Seitz <keiths@redhat.com>
5442 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5443 to update the varobj if inferior_ptid is null_ptid.
5445 2014-06-16 Tom Tromey <tromey@redhat.com>
5447 * target.h (struct target_ops) <to_info_proc>: Make parameter
5449 (target_info_proc): Update.
5450 * target.c (target_info_proc): Make "args" const.
5451 * procfs.c (procfs_info_proc): Update.
5452 * linux-tdep.c (linux_info_proc): Update.
5453 (linux_core_info_proc_mappings): Make "args" const.
5454 (linux_core_info_proc): Update.
5455 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5456 * gdbarch.c: Rebuild.
5457 * gdbarch.h: Rebuild.
5458 * corelow.c (core_info_proc): Update.
5460 2014-06-16 Tom Tromey <tromey@redhat.com>
5462 * target.h (struct target_ops) <to_disconnect>: Make parameter
5464 (target_disconnect): Update.
5465 * target.c (target_disconnect): Make "args" const.
5466 * target-delegates.c: Rebuild.
5467 * remote.c (remote_disconnect): Update.
5468 * record.h (record_disconnect): Update.
5469 * record.c (record_disconnect): Update.
5470 * inf-child.c (inf_child_disconnect): Update.
5472 2014-06-16 Tom Tromey <tromey@redhat.com>
5474 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5475 * target.c (debug_to_rcmd, default_rcmd): Update.
5476 * target-delegates.c: Rebuild.
5477 * remote.c (remote_rcmd): Update.
5478 * monitor.c (monitor_rcmd): Update.
5480 2014-06-16 Pedro Alves <palves@redhat.com>
5482 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5483 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5484 have OBJF_SHARED set.
5485 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5486 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5487 instead of OBJF_USERLOADED.
5488 * objfiles.h (OBJF_SHARED): Update comment.
5489 (userloaded_objfile_contains_address_p): Rename to ...
5490 (shared_objfile_contains_address_p): ... this, and update
5492 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5494 (remove_symbol_file_command): Skip objfiles that don't have
5497 2014-06-16 Tom Tromey <tromey@redhat.com>
5499 * minsyms.h (prim_record_minimal_symbol)
5500 (prim_record_minimal_symbol_and_info): Update comments.
5502 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5504 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5505 or --without-guile, according to how GDB was built.
5507 2014-06-13 Tom Tromey <tromey@redhat.com>
5509 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5511 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5513 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5515 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5516 help_list.Pass all_commands, not -1, to help_list.
5517 * cli/cli-dump.c (dump_command, append_command)
5518 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5519 (binary_dump_command, binary_append_command): Pass all_commands,
5520 not -1, to help_list.
5521 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5523 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5525 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5527 * top.c (set_history): Pass all_commands, not -1, to help_list.
5528 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5529 all_commands, not -1, to help_list.
5530 * symfile.c (overlay_command): Pass all_commands, not -1, to
5532 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5534 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5536 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5538 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5539 not -1, to help_list.
5540 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5541 not -1, to help_list.
5542 * maint.c (maintenance_command, maintenance_info_command)
5543 (maintenance_print_command, maintenance_set_cmd): Pass
5544 all_commands, not -1, to help_list.
5545 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5547 * language.c (set_check): Pass all_commands, not -1, to help_list.
5548 * infcmd.c (unset_command): Pass all_commands, not -1, to
5550 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5552 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5554 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5556 * breakpoint.c (save_command): Pass all_commands, not -1, to
5558 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5559 all_commands, not -1, to help_list.
5561 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5563 * regcache.c (struct register_to_invalidate): New structure.
5564 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5566 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5568 2014-06-12 Yao Qi <yao@codesourcery.com>
5570 * varobj.c (varobj_get_num_children): Call
5571 varobj_is_dynamic_p.
5572 (varobj_list_children): Likewise.
5573 (varobj_update): Likewise. Update comments.
5575 2014-06-12 Yao Qi <yao@codesourcery.com>
5577 * varobj.c (varobj_pretty_printed_p): Rename to ...
5578 (varobj_is_dynamic_p): ... this. New function.
5579 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5580 (varobj_is_dynamic_p): Declare.
5581 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5582 (mi_print_value_p, varobj_update_one): Likewise.
5584 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5585 Yao Qi <yao@codesourcery.com>
5587 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5588 (varobj_get_iterator): Wrap up code for pretty-printer by
5589 "#if HAVE_PYTHON" and "#endif".
5590 (update_dynamic_varobj_children): Likewise.
5592 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5593 Yao Qi <yao@codesourcery.com>
5595 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5596 gdb_python_initialized is false. Move some code from varobj.c.
5597 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5598 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5599 (struct varobj_item): Moved to varobj-iter.h".
5600 (varobj_clear_saved_item): New function.
5601 (update_dynamic_varobj_children): Move python-related code to
5603 (free_variable): Call varobj_clear_saved_item and
5606 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5607 Yao Qi <yao@codesourcery.com>
5609 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5610 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5611 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5612 (py-varobj.o): New rule.
5613 * python/py-varobj.c: New file.
5614 * python/python-internal.h (py_varobj_get_iterator): Declare.
5615 * varobj-iter.h: New file.
5616 * varobj.c: Include "varobj-iter.h"
5617 (struct varobj) <child_iter>: Change its type from "PyObject *"
5618 to "struct varobj_iter *".
5619 <saved_item>: Likewise.
5620 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5621 [HAVE_PYTHON] (varobj_get_iterator): New function.
5622 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5623 python-specific code to python/py-varobj.c.
5624 (install_visualizer): Call varobj_iter_delete instead of
5626 * varobj.h (varobj_ensure_python_env): Declare.
5628 2014-06-12 Yao Qi <yao@codesourcery.com>
5630 * varobj.c (struct varobj_item): New structure.
5631 (create_child_with_value): Update declaration.
5632 (varobj_add_child): Replace arguments 'name' and 'value' with
5633 'item'. All callers updated.
5634 (install_dynamic_child): Likewise.
5635 (update_dynamic_varobj_children): Likewise.
5636 (varobj_add_child): Likewise.
5637 (create_child_with_value): Likewise.
5639 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5641 * NEWS: Create a new section for the next release branch.
5642 Rename the section of the current branch, now that it has
5645 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5647 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5648 * version.in: Bump version to 7.8.50.DATE-cvs.
5650 2014-06-11 Pedro Alves <palves@redhat.com>
5653 * ser-mingw.c (net_windows_socket_check_pending): New function.
5654 (net_windows_select_thread): Ignore spurious wakeups. Use
5655 net_windows_socket_check_pending.
5656 (net_windows_wait_handle): Check for pending events with
5657 ioctlsocket, through net_windows_socket_check_pending, instead of
5658 checking the socket's event.
5660 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5662 * python/python-internal.h (gdb_PyObject_GetAttrString)
5663 (gdb_PyObject_HasAttrString): New inline function definitions.
5664 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5665 char * of the second argument to PyObject_GetAttrString.
5667 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5669 * serial.c (serial_write): Fix index of character to be printed
5670 in call to serial_logchar when serial debug traces are enabled.
5672 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5674 * gdbtypes (resolve_dynamic_range): Add function description.
5676 2014-06-09 Pedro Alves <palves@redhat.com>
5678 * linux-nat.c (linux_child_follow_fork): Initialize status with
5679 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5680 inner block. Only pass the signal to PTRACE_DETACH if in pass
5683 2014-06-09 Gary Benson <gbenson@redhat.com>
5685 * common/signals.c (gdb_signal_from_host): Reorder to separate
5686 the always-available ANSI-standard signals from the signals that
5688 (do_gdb_signal_to_host): Likewise.
5689 * proc-events.c (signal_table): Likewise.
5691 2014-06-08 Hui Zhu <hui@codesourcery.com>
5693 * common/linux-ptrace.c (linux_disable_event_reporting): New
5695 * common/linux-ptrace.h (linux_disable_event_reporting): New
5697 * linux-nat.c (linux_child_follow_fork): Do a single step before
5700 2014-06-07 Keith Seitz <keiths@redhat.com>
5704 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5705 from symbol_matches_domain in symtab.c. All local callers
5706 of symbol_matches_domain updated.
5707 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5708 search STRUCT_DOMAIN.
5709 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5710 independently. standard_lookup will do that automatically.
5711 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5712 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5713 (cp_lookup_symbol_in_namespace): Likewise.
5714 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5715 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5716 may return a STRUCT_DOMAIN match.
5717 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5718 * cp-support.c: Include language.h.
5719 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5721 * psymtab.c (match_partial_symbol): Compare the requested
5722 domain with the symbol's domain directly.
5723 (lookup_partial_symbol): Likewise.
5724 * symtab.c (lookup_symbol_in_language): Explain when/why
5725 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5726 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5727 appropriate languages.
5728 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5729 and moved to ada-lang.c
5730 (lookup_block_symbol): Explain that this function only returns
5731 symbol matching the requested DOMAIN.
5732 Compare the requested domain with the symbol's domain directly.
5733 (iterate_over_symbols): Compare the requested domain with the
5734 symbol's domain directly.
5735 * symtab.h (symbol_matches_domain): Remove.
5737 2014-06-06 Doug Evans <xdje42@gmail.com>
5739 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5740 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5741 (gdbscm_guile_version_is_at_least): Declare.
5742 (gdbscm_scm_string_to_int): Declare.
5743 * guile/guile.c (gdbscm_guile_major_version): New global.
5744 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5745 (guile_datadir): New static global.
5746 (gdbscm_guile_data_directory): New function.
5747 (initialize_scheme_side): Update.
5748 (misc_guile_functions): Add guile-data-directory.
5749 (initialize_gdb_module): Fetch guile version number.
5750 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5751 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5752 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5753 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5755 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5756 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5757 * guile/scm-value.c (gdbscm_value_to_string): Only call
5758 scm_port_conversion_strategy if Guile version >= 2.0.6.
5760 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5762 * main.c (print_gdb_help): Add -q and --silent.
5764 2014-06-06 Gary Benson <gbenson@redhat.com>
5766 * common/signals.c: Remove preprocessor conditionals for
5767 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5768 SIGSEGV and SIGTERM.
5769 * proc-events.c: Likewise.
5771 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5773 * symfile.c (symfile_free_objfile): Remove restriction to
5775 * symfile-mem.c (symbol_file_add_from_memory): Call
5776 add_target_sections_of_objfile.
5778 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5780 * guile/scm-value.c (gdbscm_history_append_x): Use
5781 'vlscm_get_value_smob_arg_unsafe' instead of
5782 'vlscm_scm_to_value'.
5784 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5787 * utils.c (printchar): Don't escape at all if quoter is NUL.
5788 Update function documentation to clarify effect of parameter
5790 * remote.c (escape_buffer): Pass '\\' as the quoter to
5791 fputstrn_unfiltered.
5792 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5793 generate the output.
5794 (mi_solib_unloaded): Same.
5796 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5798 * development.sh: Delete.
5799 * Makefile.in (config.status): Adjust dependency on development.sh.
5800 * configure.ac: Adjust development.sh source call.
5801 * configure: Regenerate.
5803 2014-06-04 Doug Evans <xdje42@gmail.com>
5805 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5806 is_scheme_bkpt, spec.
5807 (bpscm_make_breakpoint_smob): Initialize new members.
5808 (gdbscm_create_breakpoint_x): Split into two ...
5809 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5810 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5811 (scheme_function breakpoint_functions): Update.
5812 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5813 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5814 register-breakpoint!.
5816 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5819 * mem-break.c (z_type_supported): Return zero if
5820 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5822 2014-06-04 Tom Tromey <tromey@redhat.com>
5824 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5825 value_from_contents_and_address_unresolved.
5826 (ada_template_to_fixed_record_type_1): Likewise.
5827 (ada_which_variant_applies): Likewise.
5828 * value.h (value_from_contents_and_address_unresolved): Declare.
5829 * value.c (value_from_contents_and_address_unresolved): New
5831 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5832 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5833 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5835 2014-06-04 Tom Tromey <tromey@redhat.com>
5837 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5839 2014-06-04 Tom Tromey <tromey@redhat.com>
5841 * procfs.c (procfs_attach): Make "args" const.
5842 * windows-nat.c (windows_attach): Make "args" const.
5843 * nto-procfs.c (procfs_attach): Make "args" const.
5844 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5845 * go32-nat.c (go32_attach): Make "args" const.
5846 * gnu-nat.c (gnu_attach): Make "args" const.
5847 * darwin-nat.c (darwin_attach): Make "args" const.
5848 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5849 * linux-nat.c (linux_nat_attach): Make "args" const.
5850 * remote.c (extended_remote_attach_1, extended_remote_attach):
5852 * target.h (struct target_ops) <to_attach>: Make "args" const.
5853 (find_default_attach): Likewise.
5854 * utils.c (parse_pid_to_attach): Make "args" const.
5855 * utils.h (parse_pid_to_attach): Update.
5857 2014-06-04 Tom Tromey <tromey@redhat.com>
5859 * target-delegates.c: Rebuild.
5860 * target.c (default_thread_address_space): New function.
5861 (target_thread_address_space): Simplify.
5862 * target.h (struct target_ops) <to_thread_address_space>: Add
5863 TARGET_DEFAULT_FUNC.
5865 2014-06-04 Doug Evans <xdje42@gmail.com>
5867 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5869 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5871 * record-btrace.c: Include event-loop.h and inf-loop.h.
5872 (record_btrace_resume_exec_dir)
5873 (record_btrace_async_inferior_event_handler)
5874 (record_btrace_handle_async_inferior_event): New.
5875 (record_btrace_open): Create async event handler.
5876 (record_btrace_close): Delete async event handler.
5877 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5878 Mark async event handler.
5879 (record_btrace_execution_direction): New.
5880 (init_record_btrace_ops): Initialize to_execution_direction.
5882 2014-06-03 Doug Evans <xdje42@gmail.com>
5884 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5885 (gdbscm_make_parameter): Ditto.
5887 2014-06-03 Doug Evans <dje@google.com>
5889 * exec.c (exec_close_1): Call clear_section_table instead of
5890 resize_section_table.
5891 (clear_section_table): New function.
5892 (resize_section_table): Make static. Rename arg num_added to
5894 * exec.h (clear_section_table): Declare.
5895 (resize_section_table): Delete.
5896 * progspace.c (release_program_space): Call clear_section_table
5897 instead of resize_section_table.
5899 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5901 * NEWS (Python Scripting): Add entry about the new xmethods
5904 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5906 * python/py-xmethods.c: New file.
5907 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5908 (objfpy_dealloc): XDECREF on the new xmethods field.
5909 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5911 (objfpy_get_xmethods): New function.
5912 (objfile_getset): New entry 'xmethods'.
5913 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5914 (pspy_dealloc): XDECREF on the new xmethods field.
5915 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5917 (pspy_get_xmethods): New function.
5918 (pspace_getset): New entry 'xmethods'.
5919 * python/python-internal.h: Add declarations for new functions.
5920 * python/python.c (_initialize_python): Invoke
5921 gdbpy_initialize_xmethods.
5922 * python/lib/gdb/__init__.py (xmethods): New
5924 * python/lib/gdb/xmethod.py: New file.
5925 * python/lib/gdb/command/xmethods.py: New file.
5927 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5929 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5930 best match method returned by find_overload_match is an xmethod.
5931 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5932 the best matching operator returned by find_overload_match is an
5934 * valops.c: #include "extension.h".
5935 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5936 Return void. The list of matching source methods is returned in
5937 "fn_list" and a vector of matching debug method workers is
5938 returned in "xm_worker_vec". Update all callers.
5939 (value_find_oload_method_list): Likewise.
5940 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5941 non-NULL, then the index of the best matching method in this
5942 vector is returned. Update all callers.
5943 (find_overload_match): Include xmethods while performing overload
5946 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5948 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5949 * extension-priv.h (struct extension_language_ops): Add the
5951 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5952 get_matching_xmethod_workers, get_xmethod_argtypes,
5953 invoke_xmethod, free_xmethod_worker,
5954 free_xmethod_worker_vec): New functions.
5955 * extension.h: #include "common/vec.h".
5956 New function declarations.
5957 (struct xmethod_worker): New struct.
5958 (VEC (xmethod_worker_ptr)): New vector type.
5959 (xmethod_worker_ptr): New typedef.
5960 (xmethod_worker_vec): Likewise.
5961 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5963 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5964 (struct builtin_type): New field "xmethod".
5965 * valarith.c (value_ptradd): Assert that the value argument is not
5967 * valops.c (value_must_coerce_to_target): Return 0 for
5968 lval_xcallable values.
5969 * value.c (struct value): New field XM_WORKER in the field
5971 (value_address, value_raw_address): Return 0 for lval_xcallable
5973 (set_value_address): Assert that the value is not an
5975 (value_free): Free the associated xmethod worker when freeing
5976 lval_xcallable values.
5977 (set_value_component_location): Assert that the WHOLE value is not
5979 (value_of_xmethod, call_xmethod): New functions.
5980 * value.h: Declare "struct xmethod_worker".
5981 Declare new functions value_of_xmethod, call_xmethod.
5983 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5984 Pedro Alves <palves@redhat.com>
5986 PR breakpoints/17000
5987 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5988 New function, extracted from software_breakpoint_inserted_here_p.
5989 (software_breakpoint_inserted_here_p): Replace factored out code
5990 by call to find_non_raw_software_breakpoint_inserted_here.
5991 (bp_target_info_copy_insertion_state): New function.
5992 (bkpt_insert_location): Handle the case of a single-step
5993 breakpoint already inserted at the same address.
5994 (bkpt_remove_location): Handle the case of a single-step
5995 breakpoint still inserted at the same address.
5996 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5997 breakpoint already inserted at the same address.
5998 (deprecated_remove_raw_breakpoint): Handle the case of a
5999 non-raw breakpoint still inserted at the same address.
6000 (find_single_step_breakpoint): New function, extracted from
6001 single_step_breakpoint_inserted_here_p.
6002 (find_single_step_breakpoint): New function,
6003 factored out from single_step_breakpoint_inserted_here_p.
6004 (single_step_breakpoint_inserted_here_p): Reimplement.
6006 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6008 Pushed by Joel Brobecker <brobecker@adacore.com>
6009 * source.c (show_substitute_path_command): Fix display of matching
6012 2014-06-03 Gary Benson <gbenson@redhat.com>
6014 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6016 2014-06-02 Doug Evans <xdje42@gmail.com>
6018 Add parameter support for Guile.
6019 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6020 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6021 (scm-param.o): New rule.
6022 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6023 (gdbscm_misc_error): Declare.
6024 (gdbscm_canonicalize_command_name): Declare.
6025 (gdbscm_scm_to_host_string): Declare.
6026 (gdbscm_scm_from_host_string): Declare.
6027 (gdbscm_initialize_parameters): Declare.
6028 * guile/guile.c (initialize_gdb_module): Call
6029 gdbscm_initialize_parameters.
6030 * guile/lib/gdb.scm: Export parameter symbols.
6031 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6032 cmdscm_canonicalize_name and made public. All callers updated.
6033 * guile/scm-exception.c (gdbscm_misc_error): New function.
6034 * guile/scm-param.c: New file.
6035 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6036 (gdbscm_scm_to_host_string): New function.
6037 (gdbscm_scm_from_host_string): New function.
6038 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6040 2014-06-02 Doug Evans <xdje42@gmail.com>
6042 Add command support for Guile.
6043 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6044 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6045 (scm-cmd.o): New rule.
6046 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6047 (gdbscm_user_error_p): Declare.
6048 (gdbscm_parse_command_name): Declare.
6049 (gdbscm_valid_command_class_p): Declare.
6050 (gdbscm_initialize_commands): Declare.
6051 * guile/guile.c (initialize_gdb_module): Call
6052 gdbscm_initialize_commands.
6053 * guile/lib/gdb.scm: Export command symbols.
6054 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6055 (throw-user-error): New function.
6056 * guile/scm-cmd.c: New file.
6057 * guile/scm-exception.c (user_error_symbol): New static global.
6058 (gdbscm_user_error_p): New function.
6059 (gdbscm_initialize_exceptions): Set user_error_symbol.
6060 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6062 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6064 * top.c (command_loop): Handle comments here...
6065 (command_line_input): ... not here.
6067 2014-06-02 Doug Evans <xdje42@gmail.com>
6069 Add progspace support for Guile.
6070 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6071 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6072 (scm-progspace.o): New rule.
6073 * guile/guile-internal.h (pspace_smob): New typedef.
6074 (psscm_pspace_smob_pretty_printers): Declare.
6075 (psscm_pspace_smob_from_pspace): Declare.
6076 (psscm_scm_from_pspace): Declare.
6077 * guile/guile.c (initialize_gdb_module): Call
6078 gdbscm_initialize_pspaces.
6079 * guile/lib/gdb.scm: Export progspace symbols.
6080 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6082 (append-pretty-printer!): Ditto.
6083 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6085 * guile/scm-progspace.c: New file.
6087 2014-06-03 Alan Modra <amodra@gmail.com>
6089 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6090 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6092 2014-06-02 Doug Evans <dje@google.com>
6094 Add support for skeletonless type units.
6095 * dwarf2read.c (struct dwarf2_per_objfile): New member
6096 n_allocated_type_units.
6097 (struct dwarf2_per_objfile) <tu_stats>: New member
6098 nr_all_type_units_reallocs.
6099 (create_signatured_type_table_from_index): Initialize
6100 n_allocated_type_units
6101 (create_all_type_units): Ditto.
6102 (add_type_unit): Move up in file. New arg slot.
6103 All callers updated. Increase space for all_type_units more
6105 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6106 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6107 (lookup_dwp_signatured_type): Ditto.
6108 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6109 All callers updated.
6110 (build_type_psymtabs_1): Leave type_unit_groups as
6111 NULL if no TUs present.
6112 (print_tu_stats): New function.
6113 (process_skeletonless_type_unit): New function.
6114 (process_dwo_file_for_skeletonless_type_units): New
6116 (process_skeletonless_type_units): New function.
6117 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6118 Call print tu_stats if debugging enabled.
6120 2014-06-02 Pedro Alves <palves@redhat.com>
6122 * breakpoint.c (build_target_command_list): Don't build a command
6123 list if we have any duplicate location that isn't a dprintf.
6125 2014-06-02 Pedro Alves <palves@redhat.com>
6127 * breakpoint.c (dprintf_breakpoint_hit): New function.
6128 (initialize_breakpoint_ops): Install it as dprintf's
6129 breakpoint_hit method.
6131 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6133 * source.c (substitute_path_rule_matches): Simplify using
6134 filename_ncmp instead of FILENAME_CMP.
6136 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6138 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6140 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6142 * configure.ac: When Guile is available, check for the
6143 availability of 'scm_new_smob'.
6144 * configure, config.h.in: Regenerate.
6145 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6148 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6150 * frame.c (struct frame_info): Add stop_string field.
6151 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6152 (get_prev_frame_always): Old content moved into
6153 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6154 TRY_CATCH, handle MEMORY_ERROR exceptions.
6155 (frame_stop_reason_string): New function definition.
6156 * frame.h (unwind_stop_reason_to_string): Extend comment to
6157 mention frame_stop_reason_string.
6158 (frame_stop_reason_string): New function declaration.
6159 * stack.c (frame_info): Switch to frame_stop_reason_string.
6160 (backtrace_command_1): Switch to frame_stop_reason_string.
6161 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6162 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6163 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6165 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6167 * frame.c (frame_stop_reason_string): Rename to ...
6168 (unwind_stop_reason_to_string): this.
6169 * frame.h (frame_stop_reason_string): Rename to ...
6170 (unwind_stop_reason_to_string): this.
6171 * stack.c (frame_info): Update call to frame_stop_reason_string.
6172 (backtrace_command_1): Likewise.
6173 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6174 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6176 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6178 * frame.c (remove_prev_frame): New function.
6179 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6182 2014-05-29 Pedro Alves <palves@redhat.com>
6184 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6185 and make it const. When a single-step decays to a continue,
6186 clear 'step', not 'hw_step'. Pass whether the caller wanted
6187 to step to user_visible_resume_ptid, not what we ask the
6190 2014-05-29 Pedro Alves <palves@redhat.com>
6192 * infrun.c (process_event_stop_test, handle_step_into_function)
6193 (handle_step_into_function_backward): Adjust.
6194 Don't set the even thread's stop_step and call stop_waiting before
6195 calling end_stepping_range. Instead do that ...
6196 (end_stepping_range): ... here. Take an ecs pointer parameter.
6198 2014-05-29 Pedro Alves <palves@redhat.com>
6200 * infrun.c (stop_stepping): Rename to ...
6201 (stop_waiting): ... this.
6202 (proceed): Update comment.
6203 (process_event_stop_test, handle_inferior_event)
6204 (handle_signal_stop, handle_step_into_function)
6205 (handle_step_into_function_backward): Update.
6207 2014-05-29 Pedro Alves <palves@redhat.com>
6209 * infcall.c (run_inferior_call): Don't check whether the current
6210 thread is running after the proceed call.
6212 2014-05-29 Pedro Alves <palves@redhat.com>
6213 Tom Tromey <tromey@redhat.com>
6215 * NEWS: Mention "maint set target-async", "set mi-async", and that
6216 background execution commands are now always available.
6217 * target.h (target_async_permitted): Update comment.
6218 * target.c (target_async_permitted, target_async_permitted_1):
6220 (set_target_async_command): Rename to ...
6221 (maint_set_target_async_command): ... this.
6222 (show_target_async_command): Rename to ...
6223 (maint_show_target_async_command): ... this.
6224 (_initialize_target): Adjust.
6225 * infcmd.c (prepare_execution_command): Make extern.
6226 * inferior.h (prepare_execution_command): Declare.
6227 * infrun.c (set_observer_mode): Leave target async alone.
6228 * mi/mi-interp.c (mi_interpreter_init): Install
6229 mi_on_sync_execution_done as sync_execution_done observer.
6230 (mi_on_sync_execution_done): New function.
6231 (mi_execute_command_input_handler): Don't print the prompt if we
6232 just started a synchronous command with an async target.
6233 (mi_on_resume): Check sync_execution before printing prompt.
6234 * mi/mi-main.h (mi_async_p): Declare.
6235 * mi/mi-main.c: Include gdbcmd.h.
6236 (mi_async_p): New function.
6237 (mi_async, mi_async_1): New globals.
6238 (set_mi_async_command, show_mi_async_command, mi_async): New
6240 (exec_continue): Call prepare_execution_command.
6241 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6242 (mi_execute_async_cli_command): Use mi_async_p.
6243 (_initialize_mi_main): Install "set mi-async". Make
6244 "target-async" a deprecated alias.
6246 2014-05-29 Pedro Alves <palves@redhat.com>
6248 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6249 (_initialize_cli_interp): Adjust.
6250 * event-loop.c: Include "observer.h".
6251 (start_event_loop): Notify 'command_error' observers instead of
6252 calling display_gdb_prompt. Remove FIXME comment.
6253 * event-top.c (display_gdb_prompt): Remove call into the
6255 * inf-loop.c: Include "observer.h".
6256 (inferior_event_handler): Notify 'command_error' observers instead
6257 of calling display_gdb_prompt.
6258 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6259 observers instead of calling display_gdb_prompt.
6260 * interps.c (interp_set): Don't call display_gdb_prompt.
6261 (current_interp_display_prompt_p): Delete.
6262 * interps.h (interp_prompt_p): Delete declaration.
6263 (interp_prompt_p_ftype): Delete.
6264 (struct interp_procs) <prompt_proc_p>: Delete field.
6265 (current_interp_display_prompt_p): Delete declaration.
6266 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6267 (_initialize_mi_interp): Adjust.
6268 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6269 'command_error' observers.
6270 (tui_on_sync_execution_done, tui_on_command_error): New
6272 (tui_display_prompt_p): Delete.
6273 (_initialize_tui_interp): Adjust.
6275 2014-05-29 Pedro Alves <palves@redhat.com>
6278 * cli/cli-interp.c: Include infrun.h and observer.h.
6279 (cli_uiout, cli_interp): New globals.
6280 (cli_on_signal_received, cli_on_end_stepping_range)
6281 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6283 (cli_interpreter_init): Install them as 'end_stepping_range',
6284 'signal_received' 'signal_exited', 'exited' and 'no_history'
6286 (_initialize_cli_interp): Remove cli_interp local.
6287 * infrun.c (handle_inferior_event): Call the several stop reason
6288 observers instead of printing the stop reason directly.
6289 (end_stepping_range): New function.
6290 (print_end_stepping_range_reason, print_signal_exited_reason)
6291 (print_exited_reason, print_signal_received_reason)
6292 (print_no_history_reason): Make static, and add an uiout
6293 parameter. Print to that instead of to CURRENT_UIOUT.
6294 * infrun.h (print_end_stepping_range_reason)
6295 (print_signal_exited_reason, print_exited_reason)
6296 (print_signal_received_reason print_no_history_reason): New
6298 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6300 <cli_uiout>: New field.
6301 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6302 uiout for CLI output. Install 'signal_received',
6303 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6305 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6306 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6307 (mi_on_no_history): New functions.
6308 (ui_out_free_cleanup): Delete function.
6309 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6310 instead use the one already stored in the MI interpreter data.
6311 (mi_ui_out): Adjust.
6312 * tui/tui-interp.c: Include infrun.h and observer.h.
6313 (tui_interp): New global.
6314 (tui_on_signal_received, tui_on_end_stepping_range)
6315 (tui_on_signal_exited, tui_on_exited)
6316 (tui_on_no_history): New functions.
6317 (tui_init): Install them as 'end_stepping_range',
6318 'signal_received' 'signal_exited', 'exited' and 'no_history'
6320 (_initialize_tui_interp): Delete tui_interp local.
6322 2014-05-29 Pedro Alves <palves@redhat.com>
6325 * linux-nat.c (linux_nat_resume_callback): Rename the second
6326 parameter to 'except'. Skip LP if it points to EXCEPT.
6327 (linux_nat_resume): Don't mark the event lwp as not stopped
6328 before resuming sibling lwps. Instead ask
6329 linux_nat_resume_callback to skip the event lwp. Mark it as not
6330 stopped after actually resuming it.
6331 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6333 (wait_lwp): Mark the lwp as stopped here.
6334 (stop_wait_callback): Mark the lwp as not stopped right after
6335 resuming it. Don't mark lwps as stopped here.
6336 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6337 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6339 2014-05-29 Pedro Alves <palves@redhat.com>
6342 * infrun.c (resume): Determine how much to resume depending on
6343 whether the caller wanted a step, not whether we can hardware step
6344 the target. Mark all threads that we intend to run as running,
6345 unless we're calling an inferior function.
6346 (normal_stop): If the thread is running an infcall, don't finish
6348 * target.c (target_resume): Don't mark threads as running here.
6350 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6352 * serial.c (_initialize_serial): Remove support for
6353 the "set remotebaud" and "show remotebaud" commands.
6354 * NEWS: Add entry documenting the removal of that command.
6356 2014-05-28 Yao Qi <yao@codesourcery.com>
6358 * charset.c: Fix typo in comments.
6360 2014-05-27 Gary Benson <gbenson@redhat.com>
6362 * utils.c (internal_vproblem): Prompt for a bug report.
6364 2014-05-26 Andy Wingo <wingo@igalia.com>
6366 * guile/scm-arch.c (arscm_mark_arch_smob):
6367 * guile/scm-block.c (bkscm_mark_block_smob)
6368 (bkscm_mark_block_syms_progress_smob):
6369 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6370 * guile/scm-exception.c (exscm_mark_exception_smob):
6371 * guile/scm-frame.c (frscm_mark_frame_smob):
6372 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6373 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6374 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6375 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6376 (ppscm_mark_pretty_printer_worker_smob):
6377 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6378 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6379 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6380 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6382 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6385 2014-05-26 Andy Wingo <wingo@igalia.com>
6386 Doug Evans <xdje42@gmail.com>
6388 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6389 empty_base_class. All uses updated.
6390 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6391 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6393 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6394 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6395 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6396 (gdbscm_gsmob_has_property_p, add_property_name)
6397 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6398 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6399 (gdb-object-has-property?, gdb-object-properties): Remove.
6400 (gdb-object-kind): Renamed from gsmob-kind.
6402 2014-05-26 Andy Wingo <wingo@igalia.com>
6404 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6405 * configure: Regenerate.
6407 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6409 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6411 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6413 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6414 (replay_memory_access_read_only, replay_memory_access_read_write)
6415 (replay_memory_access_types, replay_memory_access)
6416 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6417 (cmd_set_record_btrace, cmd_show_record_btrace)
6418 (cmd_show_replay_memory_access): New.
6419 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6420 (record_btrace_remove_breakpoint): Replace
6421 record_btrace_allow_memory_access with replay_memory_access.
6422 (_initialize_record_btrace): Add commands.
6423 * NEWS: Announce it.
6425 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6427 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6429 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6431 * MAINTAINERS (Write After Approval): Move self back from
6434 2014-05-22 Pedro Alves <palves@redhat.com>
6436 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6437 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6438 (disable_randomization, enum exec_direction_kind)
6439 (execution_direction, stop_registers, start_remote)
6440 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6441 (wait_for_inferior, normal_stop, get_last_target_status)
6442 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6443 (insert_step_resume_breakpoint_at_sal)
6444 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6445 (set_step_info, print_stop_event, signal_stop_state)
6446 (signal_print_state, signal_pass_state, signal_stop_update)
6447 (signal_print_update, signal_pass_update)
6448 (update_signals_program_target, clear_exit_convenience_vars)
6449 (displaced_step_dump_bytes, update_observer_mode)
6450 (signal_catch_update, gdb_signal_from_command): Move
6452 * infrun.h: ... to this new file.
6453 * amd64-tdep.c: Include infrun.h.
6454 * annotate.c: Include infrun.h.
6455 * arch-utils.c: Include infrun.h.
6456 * arm-linux-tdep.c: Include infrun.h.
6457 * arm-tdep.c: Include infrun.h.
6458 * break-catch-sig.c: Include infrun.h.
6459 * breakpoint.c: Include infrun.h.
6460 * common/agent.c: Include infrun.h instead of inferior.h.
6461 * corelow.c: Include infrun.h.
6462 * event-top.c: Include infrun.h.
6463 * go32-nat.c: Include infrun.h.
6464 * i386-tdep.c: Include infrun.h.
6465 * inf-loop.c: Include infrun.h.
6466 * infcall.c: Include infrun.h.
6467 * infcmd.c: Include infrun.h.
6468 * infrun.c: Include infrun.h.
6469 * linux-fork.c: Include infrun.h.
6470 * linux-nat.c: Include infrun.h.
6471 * linux-thread-db.c: Include infrun.h.
6472 * monitor.c: Include infrun.h.
6473 * nto-tdep.c: Include infrun.h.
6474 * procfs.c: Include infrun.h.
6475 * record-btrace.c: Include infrun.h.
6476 * record-full.c: Include infrun.h.
6477 * remote-m32r-sdi.c: Include infrun.h.
6478 * remote-mips.c: Include infrun.h.
6479 * remote-notif.c: Include infrun.h.
6480 * remote-sim.c: Include infrun.h.
6481 * remote.c: Include infrun.h.
6482 * reverse.c: Include infrun.h.
6483 * rs6000-tdep.c: Include infrun.h.
6484 * s390-linux-tdep.c: Include infrun.h.
6485 * solib-irix.c: Include infrun.h.
6486 * solib-osf.c: Include infrun.h.
6487 * solib-svr4.c: Include infrun.h.
6488 * target.c: Include infrun.h.
6489 * top.c: Include infrun.h.
6490 * windows-nat.c: Include infrun.h.
6491 * mi/mi-interp.c: Include infrun.h.
6492 * mi/mi-main.c: Include infrun.h.
6493 * python/py-threadevent.c: Include infrun.h.
6495 2014-05-22 Pedro Alves <palves@redhat.com>
6497 * infrun.c (handle_inferior_event): Store the exit code for
6498 --return-child-result here, instead of ...
6499 (print_exited_reason): ... here.
6501 2014-05-21 Pedro Alves <palves@redhat.com>
6504 * gdbthread.h (struct thread_control_state): New field
6506 * infrun.c (follow_fork): Copy the new thread control field to the
6508 (clear_proceed_status_thread): Clear the new thread control field.
6509 (proceed): Set the new thread control field.
6510 * interps.h (command_interp): Declare.
6511 * interps.c (command_interpreter): New global.
6512 (command_interp): New function.
6513 (interp_exec): Set `command_interpreter' while here.
6514 * cli-out.c (cli_uiout_dtor): New function.
6515 (cli_ui_out_impl): Install it.
6516 * mi/mi-interp.c: Include cli-out.h.
6517 (mi_cmd_interpreter_exec): Add comment.
6518 (restore_current_uiout_cleanup): New function.
6519 (ui_out_free_cleanup): New function.
6520 (mi_on_normal_stop): If finishing an execution command started by
6521 a CLI command, or any kind of breakpoint-like event triggered,
6522 print the stop event to the output (CLI) stream.
6523 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6525 2014-05-21 Pedro Alves <palves@redhat.com>
6527 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6528 current source line having changed.
6529 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6530 * infrun.c (normal_stop): Adjust call to
6531 set_current_sal_from_frame.
6532 * source.c (clear_lines_listed_range): New function.
6533 (set_current_source_symtab_and_line, identify_source_line): Clear
6534 the lines listed range.
6535 (line_info): Handle the first "info line" after the current source
6536 line having changed.
6537 * stack.c (print_stack_frame): Remove center handling.
6538 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6541 2014-05-21 Pedro Alves <palves@redhat.com>
6543 * inf-child.c (inf_child_mourn_inferior): New function.
6544 * inf-child.h (inf_child_mourn_inferior): New declaration.
6545 * darwin-nat.c (darwin_mourn_inferior): Use
6546 inf_child_mourn_inferior.
6547 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6548 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6549 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6550 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6551 * windows-nat.c (windows_mourn_inferior): Likewise.
6553 2014-05-21 Doug Evans <xdje42@gmail.com>
6555 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6557 2014-05-21 Doug Evans <xdje42@gmail.com>
6559 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6560 (gdbscm_out_of_range_error): Ditto.
6561 (gdbscm_memory_error): Ditto.
6562 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6563 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6564 (gdbscm_out_of_range_error): Update.
6565 (gdbscm_memory_error): Update.
6566 (gdbscm_scm_to_target_string_unsafe): Delete.
6568 2014-05-21 Pedro Alves <palves@redhat.com>
6570 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6572 (inf_child_open_target): New function.
6573 (inf_child_open): Use inf_child_open_target to push the target
6574 instead of erroring out.
6575 (inf_child_disconnect, inf_child_close)
6576 (inf_child_maybe_unpush_target): New functions.
6577 (inf_child_target): Install inf_child_disconnect and
6578 inf_child_close. Store a pointer to the returned object.
6579 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6581 * target.c (auto_connect_native_target): New global.
6582 (show_default_run_target): New function.
6583 (find_default_run_target): Return NULL if automatically connecting
6584 to the native target is disabled.
6585 (_initialize_target): Install set/show auto-connect-native-target.
6586 * NEWS: Mention "set auto-connect-native-target", and "target
6588 * linux-nat.c (super_close): New global.
6589 (linux_nat_close): Call super_close.
6590 (linux_nat_add_target): Store a pointer to the base class's
6592 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6593 inf_child_maybe_unpush.
6594 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6596 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6597 the inferior. Use inf_child_maybe_unpush_target.
6598 (inf_ttrace_attach): Don't push the target if it is already
6600 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6601 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6602 after mourning the inferior. Use inf_child_maybe_unpush_target.
6603 (darwin_attach_pid): Don't push the target if it is already
6605 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6606 mourning the inferior. Use inf_child_maybe_unpush_target.
6607 (gnu_detach): Use inf_child_maybe_unpush_target.
6608 * go32-nat.c (go32_create_inferior): Don't push the target if it
6610 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6611 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6612 (procfs_open): Rename to ...
6613 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6614 comments. Can target_preopen before changing node. Call
6615 inf_child_open_target to push the target explicitly.
6616 (procfs_attach): Don't push the target if it is already pushed.
6617 (procfs_detach): Use inf_child_maybe_unpush_target.
6618 (procfs_create_inferior): Don't push the target if it is already
6620 (nto_native_ops): New global.
6621 (procfs_open): Reimplement.
6622 (procfs_native_open): New function.
6623 (init_procfs_targets): Install procfs_native_open as to_open of
6624 "target native". Store a pointer to the "native" target in
6626 * procfs.c (procfs_attach): Don't push the target if it is already
6628 (procfs_detach): Use inf_child_maybe_unpush_target.
6629 (procfs_mourn_inferior): Only unpush the target after mourning the
6630 inferior. Use inf_child_maybe_unpush_target.
6631 (procfs_init_inferior): Don't push the target if it is already
6633 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6634 if it is already pushed.
6636 2014-05-21 Pedro Alves <palves@redhat.com>
6638 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6639 and "procfs" targets are now called "native" instead.
6641 2014-05-21 Pedro Alves <palves@redhat.com>
6643 * go32-nat.c (go32_open): Delete.
6644 (go32_target): Don't override the to_open method.
6646 2014-05-21 Pedro Alves <palves@redhat.com>
6648 * nto-procfs.c (procfs_can_run): New function.
6649 (nto_procfs_ops): New global.
6650 (init_procfs_targets): New, based on procfs_target. Install
6651 "target native" in addition to "target procfs".
6652 (_initialize_procfs): Call init_procfs_targets instead of adding
6655 2014-05-21 Pedro Alves <palves@redhat.com>
6657 * windows-nat.c (windows_target): Don't override to_shortname,
6658 to_longname or to_doc.
6660 2014-05-21 Pedro Alves <palves@redhat.com>
6662 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6665 2014-05-21 Pedro Alves <palves@redhat.com>
6667 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6668 to_shortname, to_longname or to_doc.
6670 2014-05-21 Pedro Alves <palves@redhat.com>
6672 * go32-nat.c (go32_target): Don't override to_shortname,
6673 to_longname or to_doc.
6675 2014-05-21 Pedro Alves <palves@redhat.com>
6677 * inf-child.c (inf_child_open): Remove mention of "child".
6678 (inf_child_target): Rename target to "native" instead of "child".
6680 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6682 * Makefile.in (SFILES): Delete "regset.c".
6683 (COMMON_OBS): Delete "regset.o".
6685 * regset.h (regset_alloc): Delete prototype.
6687 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6689 * sparc-linux-tdep.c (sparc32_linux_gregset)
6690 (sparc32_linux_fpregset): New static regset structures.
6691 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6692 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6694 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6695 (sparc64_linux_fpregset): New static regset structures.
6696 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6697 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6698 New static regset structures.
6699 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6700 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6701 New static regset structures.
6702 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6703 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6704 New static regset structures.
6705 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6706 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6707 New static regset structures.
6708 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6710 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6712 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6713 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6714 register maps ("regmaps") from "*regset" to "*regmap". Do this
6715 for all regmap types and variables.
6716 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6717 (sparc32_linux_supply_core_gregset)
6718 (sparc32_linux_collect_core_gregset)
6719 (sparc32_linux_supply_core_fpregset)
6720 (sparc32_linux_collect_core_fpregset): Likewise.
6721 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6722 (sparc_gregmap, sparc_fpregmap): ... these.
6723 (sparc_supply_gregset, sparc_collect_gregset)
6724 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6725 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6726 (_initialize_sparc_nat): Rename regmaps.
6727 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6728 (sparc_gregmap, sparc_fpregmap): ... these.
6729 (sparc_supply_gregset, sparc_collect_gregset)
6730 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6731 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6733 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6734 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6736 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6738 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6739 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6740 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6742 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6743 (sparc32_bsd_fpregset): Rename to...
6744 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6745 (sparc32_bsd_fpregmap): ... these.
6746 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6747 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6748 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6749 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6750 (struct sparc_gregmap, struct sparc_fpregmap)
6751 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6752 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6753 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6754 (sparc32_supply_regset, sparc32_collect_gregset)
6755 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6757 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6758 (sparc64_linux_ptrace_gregmap): ... this.
6759 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6760 (_initialize_sparc64_linux_nat): Rename regmaps.
6761 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6762 (sparc64_linux_core_gregmap): ... this.
6763 (sparc64_linux_supply_core_gregset)
6764 (sparc64_linux_collect_core_gregset)
6765 (sparc64_linux_supply_core_fpregset)
6766 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6767 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6768 (sparc64_sol2_fpregset): Rename to...
6769 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6770 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6771 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6773 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6774 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6775 (sparc64_bsd_fpregset): Rename to...
6776 (struct sparc_gregmap, sparc64_sol2_gregmap)
6777 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6778 (sparc64_bsd_fpregmap): ... these.
6779 (sparc64_supply_gregset, sparc64_collect_gregset)
6780 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6782 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6783 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6784 (sparc64fbsd_gregmap): ... this.
6785 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6786 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6788 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6789 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6790 (sparc64nbsd_collect_fpregset): Likewise.
6791 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6792 (sparc64nbsd_gregmap): ... this.
6793 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6795 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6796 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6797 (sparc64obsd_gregmap): ... this.
6798 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6800 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6801 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6802 (sparc32nbsd_gregmap): ... this.
6803 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6806 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6808 * score-tdep.c (score7_linux_gregset): New static regset
6810 (score7_linux_regset_from_core_section): Remove dynamic regset
6812 (score_gdbarch_init): Drop allocation of tdep structure.
6813 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6815 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6817 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6819 (am33_regset_from_core_section): Remove dynamic regset
6822 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6824 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6825 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6827 (mips_linux_regset_from_core_section): Remove dynamic regset
6829 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6830 'gregset64', 'fpregset', and 'fpregset64'.
6831 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6832 deleted tdep fields.
6834 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6836 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6838 (amd64_regset_from_core_section): Remove dynamic regset
6840 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6842 (amd64obsd_regset_from_core_section): Remove dynamic regset
6844 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6846 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6847 x86-common regset supply function.
6848 * i386-tdep.c (i386_collect_gregset): Make static.
6849 (i386_gregset): New global regset structure.
6850 (i386_fpregset, i386_xstateregset): New static regset structures.
6851 (i386_regset_from_core_section): Remove dynamic regset
6853 (i386_gdbarch_init): Remove initialization of tdep fields
6854 'gregset', 'fpregset', and 'xstateregset'.
6855 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6856 'fpregset', and 'xstateregset'.
6857 (i386_collect_gregset): Remove prototype.
6858 (i386_gregset): New declaration.
6859 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6861 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6864 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6866 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6867 (arm_linux_vfpregset): New static regset structures.
6868 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6870 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6871 and 'vfpregset' fields.
6873 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6875 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6876 (aarch64_linux_fpregset): New static regset structures.
6877 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6878 of regset structures.
6879 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6882 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6884 * regset.h (struct regset): Remove gdbarch field.
6885 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6886 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6887 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6889 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6890 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6891 (ppc32_linux_vsxregset): Likewise.
6892 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6893 via the regcache instead of the regset.
6894 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6895 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6896 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6897 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6900 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6902 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6903 Constify structures.
6904 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6905 (alphanbsd_aout_gregset): Likewise.
6906 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6907 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6909 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6910 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6912 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6913 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6914 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6915 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6916 * m88k-tdep.c (m88k_gregset): Likewise.
6917 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6918 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6919 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6920 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6921 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6922 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6923 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6924 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6925 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6927 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6928 * sh-tdep.h (sh_corefile_gregset): Likewise.
6929 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6930 * vax-tdep.c (vax_gregset): Likewise.
6932 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6934 Fix TLS access for -static -pthread.
6935 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6936 (try_thread_db_load_1): Initialize it.
6937 (thread_db_get_thread_local_address): Call it if LM is zero.
6938 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6939 * target.h (struct target_ops) (to_get_thread_local_address): Add
6940 load_module_addr comment.
6942 2014-05-21 Pedro Alves <palves@redhat.com>
6944 * dcache.c (dcache_read_memory_partial): If reading the cache line
6945 fails, fallback to reading just the memory the caller wanted.
6947 2014-05-20 Doug Evans <dje@google.com>
6949 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6950 instead of get_current_arch.
6952 2014-05-20 Pedro Alves <palves@redhat.com>
6954 * NEWS: Mention that compare-sections now works with all targets.
6956 * remote.c (PACKET_qCRC): New enum value.
6957 (remote_verify_memory): Don't send qCRC if the target has no
6958 execution. Use packet_support/packet_ok. If the target doesn't
6959 support the qCRC packet, fallback to a deep memory copy.
6960 (compare_sections_command): Say "target image" instead of "remote
6962 (_initialize_remote): Add PACKET_qCRC to the list of config
6963 packets that have no associated command. Extend comment.
6964 * target.c (simple_verify_memory, default_verify_memory): New
6966 * target.h (struct target_ops) <to_verify_memory>: Default to
6967 default_verify_memory.
6968 (simple_verify_memory): New declaration.
6969 * target-delegates.c: Regenerate.
6971 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6973 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6975 2014-05-20 Hui Zhu <hui@codesourcery.com>
6976 Yao Qi <yao@codesourcery.com>
6979 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6980 and change address of sp and pc.
6982 2014-05-19 Tom Tromey <tromey@redhat.com>
6984 * gdbtypes.c (rank_function): Use XNEWVEC.
6985 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6987 2014-05-19 Doug Evans <dje@google.com>
6989 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6990 build_type_unit_groups and moved closer to only caller. Remove
6991 arguments. All references updated. Remove outdated .gdb_index
6993 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6994 build_type_psymtabs_1.
6996 2014-05-19 Doug Evans <dje@google.com>
6998 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6999 n_type_unit_groups, all_type_unit_groups. All uses removed.
7000 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7001 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7002 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7003 (add_type_unit_group_to_table): Delete.
7005 2014-05-19 Doug Evans <dje@google.com>
7007 * eval.c (evaluate_subexp_standard): Add some comments.
7009 2014-05-17 Doug Evans <xdje42@gmail.com>
7011 * progspace.c (remove_program_space): Delete, unused.
7012 * progspace.h (remove_program_space): Ditto.
7014 2014-05-17 Doug Evans <xdje42@gmail.com>
7016 * inferior.c (prune_inferiors): Fix comment.
7017 (remove_inferior_command): Call prune_program_spaces.
7019 2014-05-16 Doug Evans <dje@google.com>
7021 New command line option -D.
7023 * main.c (set_gdb_data_directory): New function.
7024 (captured_main): Recognize -D. Flag error for --data-directory "".
7025 Call set_gdb_data_directory.
7026 (print_gdb_help): Print --data-directory, -D.
7027 * main.h (set_gdb_data_directory): Declare.
7028 * top.c (staged_gdb_datadir): New static global.
7029 (set_gdb_datadir): Call set_gdb_data_directory
7030 (show_gdb_datadir): New function.
7031 (init_main): Update init of data-directory parameter.
7033 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7035 Import the "dirfd" gnulib module.
7036 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7037 * gnulib/aclocal.m4: Update.
7038 * gnulib/config.in: Update.
7039 * gnulib/configure: Update.
7040 * gnulib/import/Makefile.am: Update.
7041 * gnulib/import/Makefile.in: Update.
7042 * gnulib/import/dirfd.c: New.
7043 * gnulib/import/m4/dirfd.m4: New.
7044 * gnulib/import/m4/gnulib-cache.m4: Update.
7045 * gnulib/import/m4/gnulib-comp.m4: Update.
7047 2014-05-16 Pierre Muller <muller@sourceware.org>
7048 Yao Qi <yao@codesourcery.com>
7050 * valprint.c (print_wchar): Move the code on checking whether
7051 W is a printable wide char to the default branch of switch
7052 statement below. Call wchar_printable instead of gdb_iswprint.
7054 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7056 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7057 ldr.w and ldrd instructions.
7059 2014-05-15 Doug Evans <dje@google.com>
7061 * dwarf2read.c (read_structure_type): Delete outdated comments.
7063 2014-05-14 Tom Tromey <tromey@redhat.com>
7065 * macrocmd.c (print_macro_definition): Reindent.
7067 2014-05-13 Doug Evans <xdje42@gmail.com>
7069 * python/py-cmd.c (cmdpy_completer): Add comment.
7070 (completers): Make const.
7072 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7074 * infrun.c (resume): Remove should_resume (unused). Move up
7075 declaration of resume_ptid.
7077 2014-05-13 Tom Tromey <tromey@redhat.com>
7079 * language.h (unop_type_check): Remove.
7080 (binop_type_check): Don't declare.
7082 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7084 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7085 call to regcache_raw_collect.
7087 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7089 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7090 mi_console->quote as the quoting character.
7092 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7094 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7096 2014-04-29 Tom Tromey <tromey@redhat.com>
7098 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7099 "show debug varobj".
7101 2014-05-07 Kyle McMartin <kyle@redhat.com>
7103 Pushed by Joel Brobecker <brobecker@adacore.com>.
7104 * aarch64-tdep.c (aarch64_software_single_step): New function.
7105 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7106 with aarch64_software_single_step.
7108 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7112 2014-05-05 Keith Seitz <keiths@redhat.com>
7114 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7115 variable or history value is successfully parsed.
7117 2014-05-05 Yao Qi <yao@codesourcery.com>
7118 Pedro Alves <palves@redhat.com>
7120 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7121 address of blocks that intersects the requested range. Trim
7122 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7124 * ctf.c (ctf_xfer_partial): Likewise.
7126 2014-05-05 Yao Qi <yao@codesourcery.com>
7128 * printcmd.c (display_command): Remove the check to
7129 target_has_execution.
7131 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7133 * ppcobsd-nat.c: Include "obsd-nat.h".
7134 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7136 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7138 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7140 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7141 and 16-bit signed and unsigned arguments. Update comment.
7142 (stap_parse_probe_arguments): Extend code to handle such
7143 arguments. Use warning instead of complaint to notify about
7144 unrecognized bitness.
7146 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7148 PR breakpoints/16889
7149 * stap-probe.c (stap_parse_probe_arguments): Simplify
7150 check for non-prefixed probes (i.e., probes whose
7151 arguments do not start with "N@"). Always set the
7152 argument type to a sane value.
7154 2014-05-01 David Taylor <dtaylor@emc.com>
7156 * remote.c (compare_sections_command): Add -r option to compare
7157 all loadable read-only sections.
7159 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7161 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7162 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7164 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7165 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7166 Remove unused CORE_ADDR argument. Update all callers.
7168 2014-04-29 Pedro Alves <palves@redhat.com>
7170 * remote.c (struct packet_config) <detect>: Extend comment.
7171 (add_packet_config_cmd): Don't set the config's detect or support
7173 (init_all_packet_configs): Also initialize the config's 'detect'
7175 (reset_all_packet_configs_support): New function.
7176 (remote_open_1): Call reset_all_packet_configs_support instead of
7177 init_all_packet_configs.
7178 (_initialize_remote): Initialize all packet configs. Assert that
7179 all packets have an associated command, except a few known
7182 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7184 * dwarf2read.c (read_subrange_type): Handle dynamic
7185 DW_AT_lower_bound attributes.
7187 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7189 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7190 dynamic bounds before computing its upper bound.
7191 (ada_discrete_type_low_bound): Same as above with the lower bound.
7193 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7195 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7196 range types. Adjust the array handling implementation to
7197 take advantage of this change.
7198 (resolve_dynamic_range): New function, mostly extracted from
7199 resolve_dynamic_bounds.
7200 (resolve_dynamic_array): New function, mostly extracted from
7201 resolve_dynamic_bounds.
7202 (resolve_dynamic_bounds): Delete.
7203 (resolve_dynamic_type): Reimplement. Add handling of
7204 TYPE_CODE_RANGE types.
7206 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7208 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7209 handling of parallel ___XA types.
7211 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7213 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7214 unnecessary second call to static_unwrap_type.
7216 2014-04-27 Hui Zhu <hui@codesourcery.com>
7218 * stack.c (print_frame_info): Call do_gdb_disassembly with
7219 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7221 2014-04-26 Doug Evans <xdje42@gmail.com>
7223 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7225 2014-04-25 Pedro Alves <palves@redhat.com>
7228 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7229 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7230 and newline from built string.
7231 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7232 (linux_ptrace_attach_fail_reason): ... this.
7233 * linux-nat.c (linux_nat_attach): Adjust to use
7234 linux_ptrace_attach_fail_reason.
7236 2014-04-25 Pedro Alves <palves@redhat.com>
7238 * remote.c (struct remote_state): Remove multi_process_aware,
7239 non_stop_aware, cond_tracepoints, cond_breakpoints,
7240 breakpoint_commands, fast_tracepoints, static_tracepoints,
7241 install_in_trace, disconnected_tracing,
7242 enable_disable_tracepoints, string_tracing, and
7243 augmented_libraries_svr4_read fields.
7244 (remote_multi_process_p): Move further below in the file.
7245 (struct packet_config): Add comments.
7246 (update_packet_config): Delete function.
7247 (show_packet_config_cmd): Use packet_config_support.
7248 (add_packet_config_cmd): Use NULL as set callback.
7249 (packet_ok): "set remote foo-packet"-style commands no longer
7250 change config->supported -- adjust.
7251 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7252 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7253 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7254 (PACKET_QNonStop, PACKET_multiprocess_feature)
7255 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7256 (PACKET_DisconnectedTracing_feature)
7257 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7258 (set_remote_protocol_packet_cmd): Delete function.
7259 (packet_config_support, packet_support): New functions.
7260 (set_remote_protocol_Z_packet_cmd): Don't call
7261 update_packet_config.
7262 (remote_query_attached, remote_pass_signals)
7263 (remote_program_signals, remote_threads_info)
7264 (remote_threads_extra_info, remote_start_remote): Use
7266 (remote_start_remote): Use packet_config_support and
7268 (init_all_packet_configs): Set all packets to unknown support,
7269 instead of calling update_packet_config.
7270 (remote_check_symbols): Use packet_support.
7271 (remote_supported_packet): Unconditionally set the packet config's
7273 (remote_multi_process_feature, remote_non_stop_feature)
7274 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7275 (remote_breakpoint_commands_feature)
7276 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7277 (remote_install_in_trace_feature)
7278 (remote_disconnected_tracing_feature)
7279 (remote_enable_disable_tracepoint_feature)
7280 (remote_string_tracing_feature)
7281 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7282 (remote_protocol_features): Adjust to use remote_supported_packet
7283 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7284 "ConditionalTracepoints", "ConditionalBreakpoints",
7285 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7286 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7287 "EnableDisableTracepoints", and "tracenz".
7288 (remote_query_supported): Use packet_support.
7289 (remote_open_1): Adjust.
7290 (extended_remote_attach_1): Use packet_support. Switch on the
7291 result of packet_ok instead of checking whether the packet ended
7293 (remote_vcont_resume): Use packet_support.
7294 (remote_resume, remote_stop_ns, fetch_register_using_p)
7295 (remote_prepare_to_store, store_register_using_P)
7296 (check_binary_download, remote_write_bytes): Use packet_support.
7297 (remote_vkill): Use packet_support. Switch on the result of
7298 packet_ok instead of checking whether the packet ended up
7300 (extended_remote_supports_disable_randomization): Use
7302 (extended_remote_run): Switch on the result of packet_ok instead
7303 of checking whether the packet ended up disabled.
7304 (remote_insert_breakpoint, remote_remove_breakpoint)
7305 (remote_insert_watchpoint, remote_remove_watchpoint)
7306 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7308 (remote_search_memory): Use packet_config_support.
7309 (remote_get_thread_local_address, remote_get_tib_address)
7310 (remote_hostio_send_command, remote_can_execute_reverse): Use
7312 (remote_supports_cond_tracepoints)
7313 (remote_supports_cond_breakpoints)
7314 (remote_supports_fast_tracepoints)
7315 (remote_supports_static_tracepoints)
7316 (remote_supports_install_in_trace)
7317 (remote_supports_enable_disable_tracepoint)
7318 (remote_supports_string_tracing)
7319 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7320 the packet config says the feature is enabled or disabled.
7321 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7322 (remote_get_trace_status): Use packet_support.
7323 (remote_set_disconnected_tracing): Adjust to check whether the
7324 feature is enabled with packet_support.
7325 (remote_set_trace_buffer_size, remote_use_agent)
7326 (remote_can_use_agent, remote_supports_btrace): Use
7328 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7329 Use packet_config_support.
7330 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7331 the packet config says the feature is enabled or disabled.
7332 (set_range_stepping): Use packet_support.
7334 2014-04-25 Tom Tromey <tromey@redhat.com>
7336 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7339 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7341 * NEWS: Mention support for C99 variable length arrays.
7343 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7345 * ada-lang.c (standard_exc): Expand introductory comment.
7347 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7348 Walfred Tedeschi <walfred.tedeschi@intel.com>
7350 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7352 (amd64_linux_read_description): Add code to handle AVX512 xstate
7353 mask and return respective tdesc.
7354 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7355 and features/i386/x32-avx512-linux.c.
7356 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7357 (amd64_linux_core_read_description): Add code to handle AVX512
7358 xstate mask and return respective tdesc.
7359 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7360 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7362 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7363 (tdesc_amd64_avx512_linux): New prototype.
7364 (tdesc_x32_avx512_linux): Likewise.
7365 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7366 features/i386/x32-avx512.c.
7367 (amd64_ymm_avx512_names): New register names for pseudo
7369 (amd64_ymmh_avx512_names): New register names for raw registers
7371 (amd64_k_names): New register names for K registers.
7372 (amd64_zmmh_names): New register names for ZMM raw registers.
7373 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7374 (amd64_xmm_avx512_names): New register names for XMM16-31
7376 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7378 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7379 if feature is present.
7380 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7381 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7382 (AMD64_NUM_REGS): Adjust to new number of registers.
7383 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7384 registers supplied via XSTATE by AVX512 registers.
7385 (i386_linux_read_description): Add case for AVX512.
7386 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7387 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7388 (i386_linux_core_read_description): Add case for AVX512.
7389 (i386_linux_init_abi): Install supported register note section
7391 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7393 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7394 registers to be number of zmm7h + 1.
7395 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7396 * i386-tdep.c: Include features/i386/i386-avx512.c.
7397 (i386_zmm_names): Add ZMM pseudo register names array.
7398 (i386_zmmh_names): Add ZMM raw register names array.
7399 (i386_k_names): Add K raw register names array.
7400 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7401 registers. AVX512 has 16 more ZMM registers than there are YMM
7403 (i386_zmmh_regnum_p): Add function to look up register number of
7405 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7406 (i386_k_regnum_p): Likewise for K raw registers.
7407 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7408 registers added by AVX512.
7409 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7410 registers added by AVX512.
7411 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7413 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7414 (i386_pseudo_register_name): Add ZMM pseudo registers.
7415 (i386_zmm_type): Construct and return vector registers type for ZMM
7417 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7418 ZMM0-31 pseudo registers and K registers.
7419 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7420 and YMM16-31 registers from register cache.
7421 (i386_pseudo_register_write): Add code to write K, ZMM and
7423 (i386_register_reggroup_p): Add code to include/exclude AVX512
7424 registers in/from respective register groups.
7425 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7426 registers if feature is present in xcr0.
7427 (i386_gdbarch_init): Add code to initialize AVX512 feature
7428 variables in tdep structure, wire in pseudo registers and call
7429 initialize_tdesc_i386_avx512.
7430 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7432 (i386_regnum): Add AVX512 registers.
7433 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7434 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7435 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7436 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7438 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7439 (i386_ymm_avx512_regnum_p): Likewise.
7440 (i386_k_regnum_p): Likewise.
7441 (i386_zmm_regnum_p): Likewise.
7442 (i386_zmmh_regnum_p): Likewise.
7443 * i387-tdep.c : Update year in copyright notice.
7444 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7446 (XSAVE_YMM_AVX512_ADDR): New macro.
7447 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7449 (XSAVE_XMM_AVX512_ADDR): New macro.
7450 (xsave_avx512_k_offset): New table for K register offsets in
7452 (XSAVE_AVX512_K_ADDR): New macro.
7453 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7455 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7456 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7458 (i387_collect_xsave): Add code to collect AVX512 registers from
7460 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7461 of XMM16-31 registers.
7462 (I387_NUM_K_REGS): New define for number of K registers.
7463 (I387_K0_REGNUM): New define for K0 register number.
7464 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7465 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7466 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7468 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7469 (I387_XMM16_REGNUM): New define for XMM16 register number.
7470 (I387_YMM0_REGNUM): New define for YMM0 register number.
7471 (I387_KEND_REGNUM): New define for last K register number.
7472 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7473 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7475 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7477 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7479 * features/Makefile: Add AVX512 related files.
7480 * features/i386/32bit-avx512.xml: New file.
7481 * features/i386/64bit-avx512.xml: Likewise.
7482 * features/i386/amd64-avx512-linux.c: Likewise.
7483 * features/i386/amd64-avx512-linux.xml: Likewise.
7484 * features/i386/amd64-avx512.c: Likewise.
7485 * features/i386/amd64-avx512.xml: Likewise.
7486 * features/i386/i386-avx512-linux.c: Likewise.
7487 * features/i386/i386-avx512-linux.xml: Likewise.
7488 * features/i386/i386-avx512.c: Likewise.
7489 * features/i386/i386-avx512.xml: Likewise.
7490 * features/i386/x32-avx512-linux.c: Likewise.
7491 * features/i386/x32-avx512-linux.xml: Likewise.
7492 * features/i386/x32-avx512.c: Likewise.
7493 * features/i386/x32-avx512.xml: Likewise.
7494 * regformats/i386/amd64-avx512-linux.dat: New file.
7495 * regformats/i386/amd64-avx512.dat: Likewise.
7496 * regformats/i386/i386-avx512-linux.dat: Likewise.
7497 * regformats/i386/i386-avx512.dat: Likewise.
7498 * regformats/i386/x32-avx512-linux.dat: Likewise.
7499 * regformats/i386/x32-avx512.dat: Likewise.
7500 * NEWS: Add note about new support for AVX512.
7503 2014-04-23 Pedro Alves <palves@redhat.com>
7505 * breakpoint.c (insert_bp_location): Tolerate errors if the
7506 breakpoint is set in a user-loaded objfile.
7507 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7508 location is marked shlib_disabled. If the breakpoint is set in a
7509 user-loaded objfile is a GDB-side memory breakpoint, validate it
7510 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7511 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7513 * mem-break.c (memory_validate_breakpoint): New function.
7514 * objfiles.c (userloaded_objfile_contains_address_p): New
7516 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7517 * target.h (memory_validate_breakpoint): New declaration.
7519 2014-04-23 Pedro Alves <palves@redhat.com>
7521 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7522 the breakpoint is set in a shared library, only suppress
7523 errors for software breakpoints, not hardware breakpoints.
7525 2014-04-22 Pedro Alves <palves@redhat.com>
7527 * infrun.c (schedlock_applies): New function, factored out from
7528 find_thread_needs_step_over.
7529 (find_thread_needs_step_over): Use it.
7530 (switch_back_to_stepped_thread): Always clear trap_expected if the
7531 step over is finished. Return early if scheduler locking applies.
7532 Look for the stepping thread and a potential step-over thread with
7534 (currently_stepping_or_nexting_callback): Delete.
7536 2014-04-22 Nick Clifton <nickc@redhat.com>
7538 * NEWS: Mention that ARM sim now supports tracing.
7540 2014-04-22 Yao Qi <yao@codesourcery.com>
7542 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7544 * tracefile.c (tracefile_fetch_registers): ... it. New
7546 * tracefile.h (tracefile_fetch_registers): Declare.
7547 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7548 tracefile_fetch_registers.
7550 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7553 * windows-nat.c (thread_rec): Don't display a warning when
7554 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7555 fails for any reason, set th->suspended to -1, so that we don't
7556 try to resume such a thread. Also, don't return NULL in these
7557 cases, to avoid completely ruin the session due to "PC register is
7558 not available" error.
7559 (do_windows_fetch_inferior_registers): Check errors in
7560 GetThreadContext call.
7561 (windows_continue): Accept an additional argument KILLED; if not
7562 zero, ignore errors in the SetThreadContext call, since the
7563 inferior was killed and is shutting down.
7564 (windows_resume, get_windows_debug_event)
7565 (windows_create_inferior, windows_mourn_inferior)
7566 (windows_kill_inferior): All callers of windows_continue changed
7567 to adjust to its new calling sequence.
7569 2014-04-19 Yao Qi <yao@codesourcery.com>
7571 * ctf.c (ctf_open): Call post_create_inferior.
7573 2014-04-19 Yao Qi <yao@codesourcery.com>
7575 * ctf.c (handle_id): New static variable.
7576 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7577 value. Get the declaration of event "register" and get length
7578 of field "contents".
7580 2014-04-19 Yao Qi <yao@codesourcery.com>
7582 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7584 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7586 * valops.c (oload_method_static): Remove unnecessary argument
7587 METHOD. Update all callers.
7589 2014-04-18 Pedro alves <palves@redhat.com>
7590 Tom Tromey <tromey@redhat.com>
7593 * frame.c (get_prev_frame_1): Rename to ...
7594 (get_prev_frame_always): ... this, and make extern. Adjust.
7595 (skip_artificial_frames): Use get_prev_frame_always.
7596 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7597 (get_frame_unwind_stop_reason): Adjust to rename.
7598 * frame.h (get_prev_frame_always): Declare.
7599 * inline-frame.c: Include frame.h.
7600 (inline_frame_this_id): Use get_prev_frame_always.
7602 2014-04-18 Tristan Gingold <gingold@adacore.com>
7604 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7605 code by using bfd_mach_o_get_base_address.
7607 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7609 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7610 (spu_ax_pseudo_register_collect): New function.
7611 (spu_ax_pseudo_register_push_stack): Likewise.
7612 (spu_dwarf_reg_to_regnum): Likewise.
7613 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7615 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7617 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7618 Replace FRAME argument with FRAME_ID.
7619 * gdbarch.c, gdbarch.h: Regenerate.
7620 * findvar.c (default_value_from_register): Add GDBARCH argument;
7621 replace FRAME by FRAME_ID. No longer call get_frame_id.
7622 (value_from_register): Update call to gdbarch_value_from_register.
7623 * value.h (default_value_from_register): Update prototype.
7624 * s390-linux-tdep.c (s390_value_from_register): Update interface
7625 and call to default_value_from_register.
7626 * spu-tdep.c (spu_value_from_register): Likewise.
7628 * findvar.c (address_from_register): Remove TYPE argument.
7629 Do not call value_from_register; use gdbarch_value_from_register
7630 with null_frame_id instead.
7631 * value.h (address_from_register): Update prototype.
7632 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7633 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7634 address_from_register interface change.
7636 2014-04-17 Yao Qi <yao@codesourcery.com>
7638 * gdbtypes.h: Update comments to link to types and macros'
7641 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7643 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7645 2014-04-16 Keith Seitz <keiths@redhat.com>
7648 * dwarf2read.c (skip_one_die): Check that all relative-offset
7649 sibling DIEs fall within range of the current reader's buffer.
7650 (read_partial_die): Likewise.
7652 2014-04-16 Keith Seitz <keiths@redhat.com>
7655 * cp-namespace.c (lookup_symbol_file): If the type name of
7656 `this' is NULL, return immediately.
7658 2014-04-14 Keith Seitz <keiths@redhat.com>
7661 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7662 from symbol_matches_domain in symtab.c. All local callers
7663 of symbol_matches_domain updated.
7664 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7665 search STRUCT_DOMAIN.
7666 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7667 independently. standard_lookup will do that automatically.
7668 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7669 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7670 (cp_lookup_symbol_in_namespace): Likewise.
7671 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7672 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7673 may return a STRUCT_DOMAIN match.
7674 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7675 * cp-support.c: Include language.h.
7676 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7678 * psymtab.c (match_partial_symbol): Compare the requested
7679 domain with the symbol's domain directly.
7680 (lookup_partial_symbol): Likewise.
7681 * symtab.c (lookup_symbol_in_language): Explain when/why
7682 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7683 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7684 appropriate languages.
7685 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7686 and moved to ada-lang.c
7687 (lookup_block_symbol): Explain that this function only returns
7688 symbol matching the requested DOMAIN.
7689 Compare the requested domain with the symbol's domain directly.
7690 (iterate_over_symbols): Compare the requested domain with the
7691 symbol's domain directly.
7692 * symtab.h (symbol_matches_domain): Remove.
7694 2014-04-14 Tom Tromey <tromey@redhat.com>
7697 * c-exp.y (type_aggregate_p): New function.
7698 (qualified_name, classify_inner_name): Use it.
7699 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7700 and TYPE_TARGET_TYPE of an enum type.
7701 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7703 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7704 handle TYPE_DECLARED_CLASS.
7705 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7707 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7708 * valops.c (enum_constant_from_type): New function.
7709 (value_aggregate_elt): Use it.
7710 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7713 2014-04-14 Tom Tromey <tromey@redhat.com>
7715 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7716 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7718 * value.h (value_aggregate_elt): Update.
7720 2014-04-14 Tom Tromey <tromey@redhat.com>
7722 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7724 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7726 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7727 (evaluate_subexp_standard): Pass noside argument.
7728 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7729 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7730 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7731 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7732 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7734 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7736 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7737 points to a constant blob.
7739 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7741 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7742 property and store it as the high bound and flag the range accordingly.
7743 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7744 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7745 * gdbtypes.h (enum range_flags): New enum.
7746 (struct range_bounds): Add flags member.
7748 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7750 * c-typeprint.c (c_type_print_varspec_suffix): Added
7751 check for not yet resolved high bound. If unresolved, print
7752 "variable length" string to the console instead of random
7755 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7757 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7759 (ada_template_to_fixed_record_type_1): Likewise.
7760 (ada_to_fixed_type_1): Likewise.
7761 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7762 (cp_print_value): Likewise.
7763 * d-valprint.c (dynamic_array_type): Likewise.
7764 * findvar.c (address_of_variable): Likewise.
7765 * jv-valprint.c (java_value_print): Likewise.
7766 * valops.c (value_ind): Likewise.
7767 * value.c (coerce_ref): Likewise.
7769 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7771 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7772 value and retrieve the dynamic type size.
7774 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7776 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7777 passed to sizeof is dynamic evaluate the argument to compute the length.
7779 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7780 Joel Brobecker <brobecker@adacore.com>
7782 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7783 (dwarf2_evaluate_property): New function.
7784 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7785 * dwarf2read.c (attr_to_dynamic_prop): New function.
7786 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7788 * gdbtypes.c: Include dwarf2loc.h.
7789 (is_dynamic_type): New function.
7790 (resolve_dynamic_type): New function.
7791 (resolve_dynamic_bounds): New function.
7792 (get_type_length): New function.
7793 (check_typedef): Use get_type_length to compute type length.
7794 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7795 (TYPE_LOW_BOUND_KIND): New macro.
7796 (is_dynamic_type): New function prototype.
7797 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7798 to resolve dynamic properties of the type. Update comment.
7799 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7801 2014-04-14 Richard Henderson <rth@redhat.com>
7803 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7805 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7806 Doug Evans <xdje42@gmail.com>
7808 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7809 dereference TYPE_CODE_REF values.
7811 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7813 Revert the following changes due to regressions:
7815 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7816 (dwarf2_evaluate_property): New function.
7817 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7818 * dwarf2read.c (attr_to_dynamic_prop): New function.
7819 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7821 * gdbtypes.c: Include dwarf2loc.h.
7822 (is_dynamic_type): New function.
7823 (resolve_dynamic_type): New function.
7824 (resolve_dynamic_bounds): New function.
7825 (get_type_length): New function.
7826 (check_typedef): Use get_type_length to compute type length.
7827 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7828 (TYPE_LOW_BOUND_KIND): New macro.
7829 (is_dynamic_type): New function prototype.
7830 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7831 to resolve dynamic properties of the type. Update comment.
7832 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7834 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7835 passed to sizeof is dynamic evaluate the argument to compute the length.
7837 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7838 value and retrieve the dynamic type size.
7840 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7841 (ada_template_to_fixed_record_type_1): Likewise.
7842 (ada_to_fixed_type_1): Likewise.
7843 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7844 (cp_print_value): Likewise.
7845 * d-valprint.c (dynamic_array_type): Likewise.
7846 * eval.c (evaluate_subexp_with_coercion): Likewise.
7847 * findvar.c (address_of_variable): Likewise.
7848 * jv-valprint.c (java_value_print): Likewise.
7849 * valops.c (value_ind): Likewise.
7850 * value.c (coerce_ref): Likewise.
7852 * c-typeprint.c (c_type_print_varspec_suffix): Added
7853 check for not yet resolved high bound. If unresolved, print
7854 "variable length" string to the console instead of random
7857 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7858 property and store it as the high bound and flag the range accordingly.
7859 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7860 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7861 * gdbtypes.h (enum range_flags): New enum.
7862 (struct range_bounds): Add flags member.
7864 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7865 points to a constant blob.
7867 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7868 (evaluate_subexp_standard): Pass noside argument.
7869 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7870 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7871 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7872 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7873 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7875 2014-04-11 Keith Seitz <keiths@redhat.com>
7878 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7879 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7882 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7884 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7885 (evaluate_subexp_standard): Pass noside argument.
7886 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7887 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7888 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7889 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7890 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7892 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7894 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7895 points to a constant blob.
7897 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7899 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7900 property and store it as the high bound and flag the range accordingly.
7901 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7902 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7903 * gdbtypes.h (enum range_flags): New enum.
7904 (struct range_bounds): Add flags member.
7906 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7908 * c-typeprint.c (c_type_print_varspec_suffix): Added
7909 check for not yet resolved high bound. If unresolved, print
7910 "variable length" string to the console instead of random
7913 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7915 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7916 (ada_template_to_fixed_record_type_1): Likewise.
7917 (ada_to_fixed_type_1): Likewise.
7918 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7919 (cp_print_value): Likewise.
7920 * d-valprint.c (dynamic_array_type): Likewise.
7921 * eval.c (evaluate_subexp_with_coercion): Likewise.
7922 * findvar.c (address_of_variable): Likewise.
7923 * jv-valprint.c (java_value_print): Likewise.
7924 * valops.c (value_ind): Likewise.
7925 * value.c (coerce_ref): Likewise.
7927 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7929 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7930 value and retrieve the dynamic type size.
7932 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7934 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7935 passed to sizeof is dynamic evaluate the argument to compute the length.
7937 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7939 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7940 (dwarf2_evaluate_property): New function.
7941 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7942 * dwarf2read.c (attr_to_dynamic_prop): New function.
7943 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7945 * gdbtypes.c: Include dwarf2loc.h.
7946 (is_dynamic_type): New function.
7947 (resolve_dynamic_type): New function.
7948 (resolve_dynamic_bounds): New function.
7949 (get_type_length): New function.
7950 (check_typedef): Use get_type_length to compute type length.
7951 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7952 (TYPE_LOW_BOUND_KIND): New macro.
7953 (is_dynamic_type): New function prototype.
7954 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7955 to resolve dynamic properties of the type. Update comment.
7956 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7958 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7960 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7961 declaring high/low bounds and change uses accordingly. Call
7962 create_range_type instead of create_static_range_type.
7963 * gdbtypes.c (create_range_type): New function.
7964 (create_range_type): Convert bounds into struct bound_prop and pass
7965 them to create_range_type.
7966 * gdbtypes.h (struct bound_prop): New struct.
7967 (create_range_type): New function prototype.
7968 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7969 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7970 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7972 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7974 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7976 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7977 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7978 * ada-lang.c: All uses of create_range_type updated.
7979 * coffread.c: All uses of create_range_type updated.
7980 * dwarf2read.c: All uses of create_range_type updated.
7981 * f-exp.y: All uses of create_range_type updated.
7982 * m2-valprint.c: All uses of create_range_type updated.
7983 * mdebugread.c: All uses of create_range_type updated.
7984 * stabsread.c: All uses of create_range_type updated.
7985 * valops.c: All uses of create_range_type updated.
7986 * valprint.c: All uses of create_range_type updated.
7988 2014-04-10 Pedro Alves <palves@redhat.com>
7990 * breakpoint.c (single_step_breakpoints)
7991 (single_step_gdbarch): Move up in the file.
7992 (one_breakpoint_xfer_memory): New function, factored out from ...
7993 (breakpoint_xfer_memory): ... here. Also process single-step
7996 2014-04-09 Tristan Gingold <gingold@adacore.com>
7998 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8000 (darwin_decode_exception_message): Free port only after use.
8002 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8004 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8005 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8006 when setting the size of call_length.
8008 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8010 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8011 dereference TYPE_CODE_REF values.
8013 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8015 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8016 end of warning message.
8018 2014-04-03 Doug Evans <dje@google.com>
8020 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8021 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8023 2014-04-02 Alan Modra <amodra@gmail.com>
8025 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8026 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8027 (struct symbol_file_add_from_memory_args): Add size field.
8028 (find_vdso_size): New function.
8029 (add_vsyscall_page): Attempt to find vdso size.
8031 2014-04-01 Doug Evans <dje@google.com>
8033 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8035 2014-04-01 Tristan Gingold <gingold@adacore.com>
8037 * darwin-nat.c (darwin_encode_reply): Add prototype.
8038 (darwin_decode_exception_message): Reply to unknown inferiors.
8039 (darwin_decode_message): Handle message by id. Ignore message
8040 to unknown inferior.
8041 (darwin_wait): Discard unknown messages, add debug trace.
8043 2014-03-31 Doug Evans <dje@google.com>
8045 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8048 2014-03-31 Doug Evans <dje@google.com>
8050 New option "set print symbol-loading".
8052 * solib.c (solib_read_symbols): Only print symbol loading messages
8054 (solib_add): If symbol loading is in "brief" mode, notify user
8055 symbols are being loaded.
8056 (reload_shared_libraries_1): Ditto.
8057 * symfile.c (print_symbol_loading_off): New static global.
8058 (print_symbol_loading_brief): New static global.
8059 (print_symbol_loading_full): New static global.
8060 (print_symbol_loading_enums): New static global.
8061 (print_symbol_loading): New static global.
8062 (print_symbol_loading_p): New function.
8063 (symbol_file_add_with_addrs): Only print symbol loading messages
8065 (_initialize_symfile): Register "print symbol-loading" set/show
8067 * symfile.h (print_symbol_loading_p): Declare.
8069 2014-03-30 Doug Evans <xdje42@gmail.com>
8071 * infrun.c (set_last_target_status): New function.
8072 (handle_inferior_event): Call it.
8074 2014-03-30 Doug Evans <xdje42@gmail.com>
8076 * inferior.h (enum stop_kind): Improve comment.
8078 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8080 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8081 a reference, strip the reference layer before calling
8082 the lang_ops value_has_mutated callback.
8084 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8086 Remove some globals from our parser.
8087 * language.c (unk_lang_parser): Add "struct parser_state"
8089 * language.h (struct language_defn) <la_parser>: Likewise.
8090 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8091 (initialize_expout): Add "struct parser_state" argument.
8092 Rewrite function to use the parser state.
8093 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8094 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8095 write_exp_elt_longcst, write_exp_elt_dblcst,
8096 write_exp_elt_decfloatcst, write_exp_elt_type,
8097 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8098 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8099 write_dollar_variable): Likewise.
8100 (parse_exp_in_context_1): Use parser state.
8101 (insert_type_address_space): Add "struct parser_state" argument.
8103 (increase_expout_size): New function.
8104 * parser-defs.h: Forward declare "struct language_defn" and
8105 "struct parser_state".
8106 (expout, expout_size, expout_ptr): Remove extern declarations.
8107 (parse_gdbarch, parse_language): Rewrite macro declarations to
8108 accept the parser state.
8109 (struct parser_state): New struct.
8110 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8111 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8112 write_exp_elt_decfloatcst, write_exp_elt_type,
8113 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8114 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8115 write_exp_msymbol, write_dollar_variable,
8116 mark_struct_expression, insert_type_address_space): Add "struct
8117 parser_state" argument.
8118 (increase_expout_size): New function.
8119 * utils.c (do_clear_parser_state): New function.
8120 (make_cleanup_clear_parser_state): Likewise.
8121 * utils.h (make_cleanup_clear_parser_state): New function
8123 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8124 Update calls to write_exp* in order to pass the parser state.
8125 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8126 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8127 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8128 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8129 * stap-probe.c (stap_parse_register_operand): Likewise.
8130 (stap_parse_single_operand): Likewise.
8131 (stap_parse_argument_1): Likewise.
8132 (stap_parse_argument): Use parser state.
8133 * stap-probe.h: Include "parser-defs.h".
8134 (struct stap_parse_info) <pstate>: New field.
8135 * c-exp.y (parse_type): Rewrite to use parser state.
8136 (yyparse): Redefine to c_parse_internal.
8137 (pstate): New global variable.
8138 (parse_number): Add "struct parser_state" argument.
8139 (write_destructor_name): Likewise.
8140 (type_exp): Update calls to write_exp* and similars in order to
8142 (exp1, exp, variable, qualified_name, space_identifier,
8143 typename, typebase): Likewise.
8144 (write_destructor_name, parse_number, lex_one_token,
8145 classify_name, classify_inner_name, c_parse): Add "struct
8146 parser_state" argument. Update function to use parser state.
8147 * c-lang.h: Forward declare "struct parser_state".
8148 (c_parse): Add "struct parser_state" argument.
8149 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8150 (yyparse): Redefine macro to ada_parse_internal.
8151 (pstate): New variable.
8152 (write_int, write_object_renaming, write_var_or_type,
8153 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8154 type_int, type_long, type_long_long, type_float, type_double,
8155 type_long_double, type_char, type_boolean, type_system_address):
8156 Add "struct parser_state" argument.
8157 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8158 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8159 var_or_type, aggregate, aggregate_component_list,
8160 positional_list, others, component_group,
8161 component_associations): Update calls to write_exp* and similar
8162 functions in order to use parser state.
8163 (ada_parse, write_var_from_sym, write_int,
8164 write_exp_op_with_string, write_object_renaming,
8165 find_primitive_type, write_selectors, write_ambiguous_var,
8166 write_var_or_type, write_name_assoc, type_int, type_long,
8167 type_long_long, type_float, type_double, type_long_double,
8168 type_char, type_boolean, type_system_address): Add "struct
8169 parser_state" argument. Adjust function to use parser state.
8170 * ada-lang.c (parse): Likewise.
8171 * ada-lang.h: Forward declare "struct parser_state".
8172 (ada_parse): Add "struct parser_state" argument.
8173 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8174 calls to both functions.
8175 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8177 (yyparse): Redefine macro to f_parse_internal.
8178 (pstate): New variable.
8179 (parse_number): Add "struct parser_state" argument.
8180 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8181 and similars in order to use parser state.
8182 (parse_number): Adjust code to use parser state.
8184 (f_parse): New function.
8185 * f-lang.h: Forward declare "struct parser_state".
8186 (f_parse): Add "struct parser_state" argument.
8187 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8189 (yyparse): Redefine macro for java_parse_internal.
8190 (pstate): New variable.
8191 (push_expression_name, push_expression_name, insert_exp): Add
8192 "struct parser_state" argument.
8193 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8194 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8195 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8196 PostIncrementExpression, PostDecrementExpression,
8197 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8198 UnaryExpressionNotPlusMinus, CastExpression,
8199 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8200 RelationalExpression, EqualityExpression, AndExpression,
8201 ExclusiveOrExpression, InclusiveOrExpression,
8202 ConditionalAndExpression, ConditionalOrExpression,
8203 ConditionalExpression, Assignment, LeftHandSide): Update
8204 calls to write_exp* and similars in order to use parser state.
8205 (parse_number): Ajust code to use parser state.
8207 (java_parse): New function.
8208 (push_variable): Add "struct parser_state" argument. Adjust
8209 code to user parser state.
8210 (push_fieldnames, push_qualified_expression_name,
8211 push_expression_name, insert_exp): Likewise.
8212 * jv-lang.h: Forward declare "struct parser_state".
8213 (java_parse): Add "struct parser_state" argument.
8214 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8216 (yyparse): Redefine macro to m2_parse_internal.
8217 (pstate): New variable.
8218 (type_exp, exp, fblock, variable, type): Update calls to
8219 write_exp* and similars to use parser state.
8221 (m2_parse): New function.
8222 * m2-lang.h: Forward declare "struct parser_state".
8223 (m2_parse): Add "struct parser_state" argument.
8224 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8225 * objc-lang.h: Forward declare "struct parser_state".
8226 (end_msglist): Add "struct parser_state" argument.
8227 * p-exp.y (parse_type): Rewrite macro to use parser state.
8228 (yyparse): Redefine macro to pascal_parse_internal.
8229 (pstate): New variable.
8230 (parse_number): Add "struct parser_state" argument.
8231 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8232 write_exp* and similars in order to use parser state.
8233 (parse_number, yylex): Adjust code to use parser state.
8234 (pascal_parse): New function.
8235 * p-lang.h: Forward declare "struct parser_state".
8236 (pascal_parse): Add "struct parser_state" argument.
8237 * go-exp.y (parse_type): Rewrite macro to use parser state.
8238 (yyparse): Redefine macro to go_parse_internal.
8239 (pstate): New variable.
8240 (parse_number): Add "struct parser_state" argument.
8241 (type_exp, exp1, exp, variable, type): Update calls to
8242 write_exp* and similars in order to use parser state.
8243 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8244 to use parser state.
8245 (go_parse): Likewise.
8246 * go-lang.h: Forward declare "struct parser_state".
8247 (go_parse): Add "struct parser_state" argument.
8249 2014-03-27 Doug Evans <dje@google.com>
8251 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8253 2014-03-27 Doug Evans <dje@google.com>
8255 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8256 Remove argument abbrev_section. All callers updated.
8258 2014-03-27 Doug Evans <dje@google.com>
8260 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8261 addr_base, ranges_base.
8263 2014-03-26 Keith Seitz <keiths@redhat.com>
8265 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8266 types, not VAR_DOMAIN.
8268 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8270 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8272 * features/nios2-linux.c: Regenerated.
8273 * features/nios2.c: Regenerated.
8275 2014-03-25 Pedro Alves <palves@redhat.com>
8277 * cli/cli-script.c (script_from_file): Force the interpreter to
8280 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8282 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8283 small stack allocation.
8285 2014-03-24 Tristan Gingold <gingold@adacore.com>
8287 * darwin-nat.c (exc_server): Remove unused prototype.
8288 (darwin_dump_message): Correctly display data on x86_64.
8289 (darwin_encode_reply): Fix style.
8290 Add comments and fix indentation.
8292 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8294 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8296 2014-03-22 Doug Evans <xdje42@gmail.com>
8298 * infcmd.c: Whitespace fixes.
8299 (interrupt_command): Merge two function comments into one.
8301 2014-03-22 Doug Evans <xdje42@gmail.com>
8303 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8306 2014-03-22 Yao Qi <yao@codesourcery.com>
8308 * remote.c (target_read_live_memory): Remove.
8309 (memory_xfer_live_readonly_partial): Rename it to
8310 remote_xfer_live_readonly_partial. Remove argument 'object'.
8311 All callers updated. Call remote_read_bytes_1
8312 instead of target_read_live_memory.
8313 * tracepoint.c (set_traceframe_number): Remove.
8314 (make_cleanup_restore_traceframe_number): Likewise .
8315 * tracepoint.h (set_traceframe_number): Remove declaration.
8316 (make_cleanup_restore_traceframe_number): Likewise.
8318 2014-03-22 Yao Qi <yao@codesourcery.com>
8320 * remote.c (remote_read_bytes): Move code on reading from the
8322 (remote_read_bytes_1): ... here. New function.
8324 2014-03-22 Yao Qi <yao@codesourcery.com>
8326 * ctf.c (ctf_xfer_partial): Check the return value of
8327 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8328 return TARGET_XFER_UNAVAILABLE.
8329 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8330 * target.c (target_read_live_memory): Move it to remote.c.
8331 (memory_xfer_live_readonly_partial): Likewise.
8332 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8333 * remote.c (target_read_live_memory): Moved from target.c.
8334 (memory_xfer_live_readonly_partial): Likewise.
8335 (remote_read_bytes): Factored out from
8336 memory_xfer_partial_1.
8338 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8340 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8343 2014-03-21 Pedro Alves <palves@redhat.com>
8345 * infrun.c (normal_stop): Extend comment.
8347 2014-03-21 Hui Zhu <hui@codesourcery.com>
8348 Pedro Alves <palves@redhat.com>
8350 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8352 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8353 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8354 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8356 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8358 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8359 `z' formatted output modifier.
8361 2014-03-20 Tom Tromey <tromey@redhat.com>
8362 Sergio Durigan Junior <sergiodj@redhat.com>
8364 * probe.c (parse_probes): Turn assert into an ordinary error.
8365 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8366 exceptions when parsing probes. Rearrange the code for clarity.
8368 2014-03-20 Tom Tromey <tromey@redhat.com>
8371 * top.c (execute_command): Only dispatch events if the command
8374 2014-03-20 Tom Tromey <tromey@redhat.com>
8377 * infcall.c: Include event-top.h.
8378 (run_inferior_call): Call async_disable_stdin if needed.
8380 2014-03-20 Pedro Alves <palves@redhat.com>
8382 * infrun.c (prepare_to_proceed): Delete.
8383 (thread_still_needs_step_over): New function.
8384 (find_thread_needs_step_over): New function.
8385 (proceed): If the current thread needs a step-over, set its
8386 steping_over_breakpoint flag. Adjust to use
8387 find_thread_needs_step_over instead of prepare_to_proceed.
8388 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8389 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8391 (switch_back_to_stepped_thread): Step over breakpoints of all
8392 threads not the stepping thread, before switching back to the
8395 2014-03-20 Pedro Alves <palves@redhat.com>
8397 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8399 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8400 * infrun.c (saved_singlestep_ptid)
8401 (stepping_past_singlestep_breakpoint): Delete.
8402 (resume): Remove stepping_past_singlestep_breakpoint handling.
8403 (proceed): Store the prev_pc of the stepping thread too.
8404 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8406 (enum infwait_states): Delete infwait_thread_hop_state.
8407 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8409 (handle_inferior_event): Adjust.
8410 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8411 handling and the thread-hop code. Before removing single-step
8412 breakpoints, check whether the thread hit a single-step breakpoint
8413 of another thread. If it did, the trap is not a random signal.
8414 (switch_back_to_stepped_thread): If the event thread hit a
8415 single-step breakpoint, unblock it before switching to the
8416 stepping thread. Handle the case of the stepped thread having
8418 (keep_going): Handle the case of the current thread moving past a
8419 single-step breakpoint.
8421 2014-03-20 Pedro Alves <palves@redhat.com>
8424 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8425 are being stepped over.
8426 (breakpoint_address_match): Make extern.
8427 * breakpoint.h (breakpoint_address_match): New declaration.
8428 * inferior.h (stepping_past_instruction_at): New declaration.
8429 * infrun.c (struct step_over_info): New type.
8430 (step_over_info): New global.
8431 (set_step_over_info, clear_step_over_info)
8432 (stepping_past_instruction_at): New functions.
8433 (handle_inferior_event): Clear the step-over info when
8434 trap_expected is cleared.
8435 (resume): Remove now stale comment.
8436 (clear_proceed_status): Clear step-over info.
8437 (proceed): Adjust step-over handling to set or clear the step-over
8438 info instead of removing all breakpoints.
8439 (handle_signal_stop): When setting up a thread-hop, don't remove
8441 (stop_stepping): Clear step-over info.
8442 (keep_going): Adjust step-over handling to set or clear step-over
8443 info and then always inserting breakpoints, instead of removing
8444 all breakpoints when stepping over one.
8446 2014-03-20 Pedro Alves <palves@redhat.com>
8448 * infrun.c (previous_inferior_ptid): Adjust comment.
8449 (deferred_step_ptid): Delete.
8450 (infrun_thread_ptid_changed, prepare_to_proceed)
8451 (init_wait_for_inferior): Adjust.
8452 (handle_signal_stop): Delete deferred_step_ptid handling.
8454 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8457 * defs.h (sync_quit_force_run): New declaration.
8458 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8459 * event-top.c (async_sigterm_handler): New declaration.
8460 (async_sigterm_token): New variable.
8461 (async_init_signals): Create also async_sigterm_token.
8462 (async_sigterm_handler): New function.
8463 (sync_quit_force_run): New variable.
8464 (handle_sigterm): Replace quit_force call by other calls.
8465 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8467 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8469 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8470 offset into SPE pseudo registers.
8472 2014-03-18 Pedro Alves <palves@redhat.com>
8475 * inferior.h (print_stop_event): Declare.
8476 * infrun.c (print_stop_event): New, factored out from ...
8477 (normal_stop): ... this.
8478 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8479 of bpstat_print/print_stack_frame.
8481 2014-03-17 Tom Tromey <tromey@redhat.com>
8483 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8485 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8487 * ada-lang.c (decode_constrained_packed_array): Perform a
8488 minimal coercion for reference with coerce_ref instead of
8491 2014-03-17 Tristan Gingold <gingold@adacore.com>
8493 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8494 (darwin_solib_create_inferior_hook): Emit a warning if version
8497 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8499 * python/py-value.c (get_field_flag): Cast flag_name argument to
8500 PyObject_GetAttrString to support Python 2.4.
8502 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8504 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8505 (Global Maintainers): Remove Jan Kratochvil.
8507 2014-03-14 Pedro Alves <palves@redhat.com>
8509 * inferior.h (terminal_ours_for_output): Rename to ...
8510 (child_terminal_ours_for_output): ... this.
8511 (terminal_save_ours): Rename to ...
8512 (child_terminal_save_ours): ... this.
8513 (terminal_ours): Rename to ...
8514 (child_terminal_ours): ... this.
8515 (terminal_inferior): Rename to ...
8516 (child_terminal_inferior): ... this.
8517 (terminal_init_inferior): Rename to ...
8518 (child_terminal_init_inferior): ... this.
8519 (terminal_init_inferior_with_pgrp): Rename to ...
8520 (child_terminal_init_inferior_with_pgrp): ... this.
8521 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8522 (child_terminal_init_with_pgrp): ... this.
8523 (terminal_save_ours): Rename to ...
8524 (child_terminal_save_ours): ... this.
8525 (terminal_init_inferior): Rename to ...
8526 (child_terminal_init): ... this. Adjust.
8527 (terminal_inferior): Rename to ...
8528 (child_terminal_inferior): ... this.
8529 (terminal_ours_for_output): Rename to ...
8530 (child_terminal_ours_for_output): ... this. Adjust.
8531 (terminal_ours): Rename to ...
8532 (child_terminal_ours): ... this.
8533 (terminal_ours_1): Rename to ...
8534 (child_terminal_ours_1): ... this. Adjust.
8535 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8536 * windows-nat.c (do_initial_windows_stuff): Adjust.
8537 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8538 (gnu_terminal_init): ... this. Adjust.
8539 (gnu_target): Adjust.
8540 * inf-child.c (inf_child_target): Adjust.
8542 2014-03-13 Doug Evans <xdje42@gmail.com>
8545 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8548 2014-03-13 Doug Evans <xdje42@gmail.com>
8550 * value.c (record_latest_value): Call release_value_or_incref
8551 instead of release_value.
8553 2014-03-13 Pedro Alves <palves@redhat.com>
8555 * procfs.c (procfs_target): Don't override to_shortname,
8556 to_longname or to_doc.
8558 2014-03-13 Pedro Alves <palves@redhat.com>
8560 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8561 Unix in user visible strings.
8563 2014-03-12 Stan Shebs <stan@codesourcery.com>
8565 * gdbtypes.h: Annotate comments for Doxygen, add a page
8566 block comment with some general info.
8568 2014-03-12 Pedro Alves <palves@redhat.com>
8570 * infcmd.c (prepare_execution_command): New function, factored out
8571 from several execution commands.
8572 (run_command_1, continue_command, step_1, jump_command)
8573 (signal_command, until_command, advance_command, finish_command)
8574 (attach_command): Use prepare_execution_command.
8576 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8578 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8581 (struct arm_linux_thread_points): Removed.
8582 (struct arm_linux_process_info): New.
8583 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8584 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8585 (arm_linux_find_breakpoints_by_tid): Removed.
8586 (struct arch_lwp_info): New.
8587 (arm_linux_find_process_pid): New functions.
8588 (arm_linux_add_process): New functions.
8589 (arm_linux_process_info_get): New functions.
8590 (arm_linux_forget_process): New function.
8591 (arm_linux_get_debug_reg_state): New function.
8592 (struct update_registers_data): New.
8593 (update_registers_callback): New function.
8594 (arm_linux_insert_hw_breakpoint1): Updated.
8595 (arm_linux_remove_hw_breakpoint1): Updated.
8596 (arm_linux_insert_hw_breakpoint): Updated.
8597 (arm_linux_remove_hw_breakpoint): Updated.
8598 (arm_linux_insert_watchpoint): Updated.
8599 (arm_linux_remove_watchpoint): Updated.
8600 (arm_linux_new_thread): Updated.
8601 (arm_linux_prepare_to_resume): New function.
8602 (arm_linux_new_fork): New function.
8603 (_initialize_arm_linux_nat): Updated.
8605 2014-03-12 Pedro Alves <palves@redhat.com>
8607 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8609 2014-03-12 Tom Tromey <tromey@redhat.com>
8611 * inf-child.c (return_zero): New function.
8612 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8613 * aix-thread.c (aix_thread_inferior_created): New function.
8614 (aix_thread_attach): Remove.
8615 (init_aix_thread_ops): Don't set to_attach.
8616 (_initialize_aix_thread): Register inferior_created observer.
8617 * corelow.c (init_core_ops): Don't set to_attach or
8619 * exec.c (init_exec_ops): Don't set to_attach or
8621 * infcmd.c (run_command_1): Use find_run_target. Make direct
8623 (attach_command): Use find_attach_target. Make direct target
8625 * record-btrace.c (init_record_btrace_ops): Don't set
8627 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8629 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8630 set to_create_inferior.
8631 * target.c (complete_target_initialization): Add assertion.
8632 (target_create_inferior): Remove.
8633 (find_default_attach, find_default_create_inferior): Remove.
8634 (find_attach_target, find_run_target): New functions.
8635 (find_default_is_async_p, find_default_can_async_p)
8636 (target_supports_non_stop, target_attach): Remove.
8637 (init_dummy_target): Don't set to_create_inferior or
8638 to_supports_non_stop.
8639 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8640 TARGET_DEFAULT_FUNC.
8641 <to_create_inferior>: Add comment.
8642 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8643 TARGET_DEFAULT_RETURN.
8644 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8645 (find_attach_target, find_run_target): Declare.
8646 (target_create_inferior): Remove.
8647 (target_has_execution_1): Update comment.
8648 (target_supports_non_stop): Remove.
8649 * target-delegates.c: Rebuild.
8651 2014-03-12 Pedro Alves <palves@redhat.com>
8653 * inf-child.h: Update comment to not mention Unix.
8655 2014-03-12 Pedro Alves <palves@redhat.com>
8657 * inf-child.c: Update top comment to not mention Unix. Add
8658 generic comment describing how this target is meant to be used.
8659 (inf_child_post_attach, inf_child_post_startup_inferior)
8660 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8663 2014-03-12 Pedro Alves <palves@redhat.com>
8665 * nto-procfs.c: Include inf-child.h.
8666 (procfs_ops): Delete global.
8667 (procfs_can_run): Delete method.
8668 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8669 target pointer instead of referencing procfs_ops.
8670 (procfs_prepare_to_store): Delete.
8671 (init_procfs_ops): Delete function.
8672 (procfs_target): New function, based on init_procfs_ops, but
8673 inherit inf_child_target.
8674 (_initialize_procfs): Use procfs_target.
8676 2014-03-12 Pedro Alves <palves@redhat.com>
8678 * windows-nat.c: Include inf-child.h.
8679 (windows_ops): Delete global.
8680 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8682 (init_windows_ops): Delete function.
8683 (windows_target): New function, based on init_windows_ops, but
8684 inherit inf_child_target.
8685 (_initialize_windows_nat): Use windows_target. Install x86
8686 specific target methods here.
8688 2014-03-10 Doug Evans <xdje42@gmail.com>
8690 * guile/guile.c (call_initialize_gdb_module): New function.
8691 (initialize_guile): Replace call to scm_init_guile with call to
8694 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8696 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8697 in call to TYPE_CODE macro.
8699 2014-03-10 Jerome Guitton <guitton@adacore.com>
8701 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8702 Resolve tagged types to full view.
8704 2014-03-10 Hui Zhu <hui@codesourcery.com>
8706 * target.h (target_insert_breakpoint): Remove "hardware" from its
8709 2014-03-07 Doug Evans <dje@google.com>
8711 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8713 2014-03-07 Doug Evans <dje@google.com>
8715 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8716 Remove unused local comp_dir_attr. Assert exactly one of
8717 stub_comp_unit_die, stub_comp_dir is non-NULL.
8719 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8721 * target.h (complete_target_initialization, add_target):
8724 2014-03-07 Pedro Alves <palves@redhat.com>
8726 * go32-nat.c: Include inf-child.h.
8727 (go32_ops): Delete global.
8728 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8730 (go32_create_inferior): Push the passed in target pointer instead
8731 of referencing go32_ops.
8732 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8733 (go32_target): New function, based on init_go32_ops, but inherit
8735 (_initialize_go32_nat): Use go32_target. Move parts of
8738 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8740 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8741 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8742 SYMBOL_VALUE_ADDRESS.
8743 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8745 2014-03-06 Yao Qi <yao@codesourcery.com>
8747 * breakpoint.c (get_tracepoint_by_number): Remove argument
8748 optional_p. All callers updated. Adjust comments. Update
8750 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8752 2014-03-06 Yao Qi <yao@codesourcery.com>
8754 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8755 early if get_number returns zero. Use 'p' instead of 'args'.
8757 2014-03-06 Yao Qi <yao@codesourcery.com>
8759 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8762 2014-03-06 Yao Qi <yao@codesourcery.com>
8764 PR breakpoints/16508
8765 * tracepoint.c (check_trace_running): New function.
8766 (trace_find_command): Move code to check_trace_running and
8767 call check_trace_running.
8768 (trace_find_pc_command): Likewise.
8769 (trace_find_tracepoint_command): Likewise.
8770 (trace_find_line_command): Likewise.
8771 (trace_find_range_command): Likewise.
8772 * tracepoint.h (check_trace_running): Likewise.
8773 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8775 2014-03-06 Yao Qi <yao@codesourcery.com>
8777 * target.h (struct target_ops) <to_traceframe_info>: Use
8778 TARGET_DEFAULT_NORETURN (tcomplain ()).
8779 * target-delegates.c: Regenerated.
8781 2014-03-05 Pedro Alves <palves@redhat.com>
8784 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8785 void. Update comment.
8786 (dcache_xfer_memory): Delete.
8787 (dcache_read_memory_partial): New, based on the read bits of
8789 (dcache_update): Add status parameter. Use ULONGEST for len, and
8790 adjust. Discard cache lines if the reason for the update was
8792 * dcache.h (dcache_xfer_memory): Delete declaration.
8793 (dcache_read_memory_partial): New declaration.
8794 (dcache_update): Update prototype.
8795 * target.c (raw_memory_xfer_partial): Update the dcache here.
8796 (memory_xfer_partial_1): Don't handle dcache writes here.
8798 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8800 * remote-sim.c (gdbsim_load): Add const to prog.
8802 2014-03-03 Tom Tromey <tromey@redhat.com>
8804 * elfread.c (probe_key): Change to bfd_data.
8805 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8806 now per-BFD, not per-objfile.
8807 * stap-probe.c (stap_probe_destroy): Update comment.
8808 (handle_stap_probe): Allocate on the per-BFD obstack.
8810 2014-03-03 Tom Tromey <tromey@redhat.com>
8812 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8813 * breakpoint.c (create_longjmp_master_breakpoint): Use
8815 (add_location_to_breakpoint, bkpt_probe_insert_location)
8816 (bkpt_probe_remove_location): Update.
8817 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8818 * elfread.c (elf_symfile_relocate_probe): Remove.
8819 (elf_probe_fns): Update.
8820 (insert_exception_resume_breakpoint): Change type of "probe"
8821 parameter to bound_probe.
8822 (check_exception_resume): Update.
8823 * objfiles.c (objfile_relocate1): Don't relocate probes.
8824 * probe.c (bound_probe_s): New typedef.
8825 (parse_probes): Use get_probe_address. Set sal's objfile.
8826 (find_probe_by_pc): Return a bound_probe.
8827 (collect_probes): Return a VEC(bound_probe_s).
8828 (compare_probes): Update.
8829 (gen_ui_out_table_header_info): Change type of "probes"
8831 (info_probes_for_ops): Update.
8832 (get_probe_address): New function.
8833 (probe_safe_evaluate_at_pc): Update.
8834 * probe.h (struct probe_ops) <get_probe_address>: New field.
8835 <set_semaphore, clear_semaphore>: Add objfile parameter.
8836 (struct probe) <objfile>: Remove field.
8838 <address>: Update comment.
8839 (struct bound_probe): New.
8840 (find_probe_by_pc): Return a bound_probe.
8841 (get_probe_address): Declare.
8842 * solib-svr4.c (struct probe_and_action) <address>: New field.
8843 (hash_probe_and_action, equal_probe_and_action): Update.
8844 (register_solib_event_probe): Add address parameter.
8845 (solib_event_probe_at): Update.
8846 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8848 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8849 (stap_get_probe_address): New function.
8850 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8851 (compile_probe_arg): Update.
8852 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8854 (handle_stap_probe): Don't relocate the probe.
8855 (stap_relocate): Remove.
8856 (stap_gen_info_probes_table_values): Update.
8857 (stap_probe_ops): Remove stap_relocate.
8858 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8859 (debug_sym_probe_fns): Update.
8860 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8861 * symtab.c (init_sal): Use memset.
8862 * symtab.h (struct symtab_and_line) <objfile>: New field.
8863 * tracepoint.c (start_tracing, stop_tracing): Update.
8865 2014-03-03 Tom Tromey <tromey@redhat.com>
8867 * probe.h (parse_probes, find_probe_by_pc)
8868 (find_probes_in_objfile): Fix comments.
8870 2014-03-02 Doug Evans <xdje42@gmail.com>
8872 * infrun.c (handle_signal_stop): Replace test for
8873 TARGET_WAITKIND_STOPPED with an assert.
8875 2014-03-02 Doug Evans <xdje42@gmail.com>
8877 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8879 2014-03-02 Doug Evans <xdje42@gmail.com>
8881 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8883 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8885 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8887 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8889 * i386obsd-nat.c: Include "obsd-nat.h".
8890 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8892 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8894 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8896 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8898 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8900 * mips64obsd-nat.c: Include "obsd-nath".
8901 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8903 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8905 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8907 * amd64obsd-nat.c: Include "obsd-nat,h.
8908 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8910 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8912 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8914 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8915 (find_overload_match): Update call to find_oload_champ.
8916 (find_oload_champ_namespace_loop): Likewise
8918 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8920 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8922 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8923 * config/sparc/obsd64.mh: New file.
8924 * sparc64obsd-nat.c: New file.
8926 * obsd-nat.h: New file.
8927 * obsd-nat.c: New file.
8928 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8929 (ALLDEPFILES): Add obsd-nat.c.
8931 2014-02-28 Tom Tromey <tromey@redhat.com>
8933 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8934 * cli-out.h (cli_ui_out_impl): Now const.
8935 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8936 * ui-out.c (struct ui_out) <impl>: Now const.
8937 (default_ui_out_impl): Now const.
8938 (ui_out_new): Make 'impl' parameter const.
8939 * ui-out.h (ui_out_new): Update.
8941 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8943 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8945 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8947 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8949 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8951 Additional PR 8882 fix.
8952 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8954 2014-02-27 Pedro Alves <palves@redhat.com>
8956 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8959 2014-02-27 Pedro Alves <palves@redhat.com>
8962 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8963 * nat/linux-waitpid.c: Include string.h.
8964 (status_to_str): Moved here and made extern.
8965 * nat/linux-waitpid.h (status_to_str): New declaration.
8967 2014-02-27 Hui Zhu <hui@codesourcery.com>
8970 * infrun.c (ptid_match): Move ...
8971 * common/ptid.c (ptid_match): ... here.
8972 * inferior.h (ptid_match): Move ...
8973 * common/ptid.h (ptid_match): ... here.
8975 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8977 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8978 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8981 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8983 * obsd-tdep.c (obsd_auxv_parse): New function.
8984 (obsd_init_abi): Set auxv_parse.
8986 * gdbarch.sh (auxv_parse): New.
8987 * gdbarch.h: Regenerated.
8988 * gdbarch.c: Regenerated.
8989 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8991 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8993 * guile/scm-value.c (gdbscm_history_append_x): New function.
8994 (value_functions): Add it.
8996 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8998 * dwarf2read.c (attr_value_as_address): New function.
8999 (dwarf2_find_base_address, read_call_site_scope): Use
9000 attr_value_as_address in place of DW_ADDR.
9001 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9002 the low and high addresses. Slight rework of the handling
9003 of the high pc being a constant form, and limit it to
9004 DWARF verson 4 or higher.
9005 (dwarf2_record_block_ranges): Likewise.
9006 (read_partial_die): Likewise.
9007 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9009 2014-02-26 Tom Tromey <tromey@redhat.com>
9011 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9013 2014-02-26 Tom Tromey <tromey@redhat.com>
9015 * elfread.c (elf_read_minimal_symbols): Return early if
9016 minimal symbols have already been read. Add "ei" parameter.
9017 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9018 * minsyms.c (prim_record_minimal_symbol_full): Update.
9019 * objfiles.h (struct objstats) <n_minsyms>: Move...
9020 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9021 * symmisc.c (print_objfile_statistics): Update.
9023 2014-02-26 Tom Tromey <tromey@redhat.com>
9025 * elfread.c (elf_read_minimal_symbols): New function, from
9027 (elf_symfile_read): Call it.
9029 2014-02-26 Tom Tromey <tromey@redhat.com>
9031 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9032 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9033 (lookup_minimal_symbol_solib_trampoline)
9034 (lookup_minimal_symbol_by_pc_section_1)
9035 (lookup_minimal_symbol_and_objfile): Update.
9036 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9037 Don't allocate a minimal symbol if minsyms have already been read.
9038 (build_minimal_symbol_hash_tables): Update.
9039 (install_minimal_symbols): Do nothing if minsyms already read.
9040 Use the per-BFD obstack.
9041 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9042 * objfiles.c (allocate_objfile): Call
9043 terminate_minimal_symbol_table later.
9044 (have_minimal_symbols): Update.
9045 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9046 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9047 Move from struct objfile.
9048 <minsyms_read>: New field.
9049 (struct objfile) <msymbols, minimal_symbol_count,
9050 msymbol_hash, msymbol_demangled_hash>: Move.
9051 (ALL_OBJFILE_MSYMBOLS): Update.
9052 * symfile.c (read_symbols): Set minsyms_read.
9053 (reread_symbols): Update.
9054 * symmisc.c (dump_objfile, dump_msymbols): Update.
9056 2014-02-26 Tom Tromey <tromey@redhat.com>
9058 * minsyms.c (msymbols_sort): Remove.
9059 * minsyms.h (msymbols_sort): Remove.
9060 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9061 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9062 * elfread.c (elf_symtab_read): Don't add section offsets.
9063 * xcoffread.c (record_minimal_symbol): Don't add section offset
9064 to minimal symbol address.
9065 * somread.c (text_offset, data_offset): Remove.
9066 (som_symtab_read): Don't add section offsets to minimal symbol
9068 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9069 Don't add section offsets to minimal symbols.
9070 * coffread.c (coff_symtab_read): Don't add section offsets
9071 to minimal symbol addresses.
9072 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9073 to minimal symbol addresses.
9074 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9075 section offset to minimal symbol addresses.
9076 * mdebugread.c (parse_partial_symbols): Don't add section
9077 offset to minimal symbol addresses.
9078 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9079 offset to minimal symbol addresses.
9081 2014-02-26 Tom Tromey <tromey@redhat.com>
9083 * ada-lang.c (ada_main_name): Update.
9084 (ada_add_standard_exceptions): Update.
9085 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9086 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9087 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9088 * auxv.c (ld_so_xfer_auxv): Update.
9089 * avr-tdep.c (avr_scan_prologue): Update.
9090 * ax-gdb.c (gen_var_ref): Update.
9091 * blockframe.c (get_pc_function_start)
9092 (find_pc_partial_function_gnu_ifunc): Update.
9093 * breakpoint.c (create_overlay_event_breakpoint)
9094 (create_longjmp_master_breakpoint)
9095 (create_std_terminate_master_breakpoint)
9096 (create_exception_master_breakpoint): Update.
9097 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9098 * c-valprint.c (c_val_print): Update.
9099 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9100 * common/agent.c (agent_look_up_symbols): Update.
9101 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9102 * dwarf2loc.c (call_site_to_target_addr): Update.
9103 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9104 * elfread.c (elf_gnu_ifunc_record_cache)
9105 (elf_gnu_ifunc_resolve_by_got): Update.
9106 * findvar.c (default_read_var_value): Update.
9107 * frame.c (inside_main_func): Update.
9108 * frv-tdep.c (frv_frame_this_id): Update.
9109 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9110 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9112 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9113 (hppa_hpux_find_dummy_bpaddr): Update.
9114 * hppa-tdep.c (hppa_symbol_address): Update.
9115 * infcmd.c (until_next_command): Update.
9116 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9118 * linespec.c (minsym_found, add_minsym): Update.
9119 * linux-nat.c (get_signo): Update.
9120 * linux-thread-db.c (inferior_has_bug): Update.
9121 * m32c-tdep.c (m32c_return_value)
9122 (m32c_m16c_address_to_pointer): Update.
9123 * m32r-tdep.c (m32r_frame_this_id): Update.
9124 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9125 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9126 * maint.c (maintenance_translate_address): Update.
9127 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9128 (frob_address): New function.
9129 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9130 frob_address. Rename parameter to "pc_in".
9131 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9133 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9135 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9136 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9137 * objc-lang.c (find_objc_msgsend): Update.
9138 * objfiles.c (objfile_relocate1): Update.
9139 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9140 * p-valprint.c (pascal_val_print): Update.
9141 * parse.c (write_exp_msymbol): Update.
9142 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9143 (ppc_elfv2_skip_entrypoint): Update.
9144 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9145 * printcmd.c (build_address_symbolic, msym_info)
9146 (address_info): Update.
9147 * proc-service.c (ps_pglobal_lookup): Update.
9148 * psymtab.c (find_pc_sect_psymtab_closer)
9149 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9150 Change msymbol parameter to bound_minimal_symbol.
9151 * ravenscar-thread.c (get_running_thread_id): Update.
9152 * remote.c (remote_check_symbols): Update.
9153 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9155 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9156 * solib-dsbt.c (lm_base): Update.
9157 * solib-frv.c (lm_base, main_got): Update.
9158 * solib-irix.c (locate_base): Update.
9159 * solib-som.c (som_solib_create_inferior_hook)
9160 (link_map_start): Update.
9161 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9162 * solib-svr4.c (elf_locate_base, enable_break): Update.
9163 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9164 (flush_ea_cache): Update.
9165 * stabsread.c (define_symbol, scan_file_globals): Update.
9166 * stack.c (find_frame_funname): Update.
9167 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9168 (debug_qf_find_pc_sect_symtab): Update.
9169 * symfile.c (simple_read_overlay_table)
9170 (simple_overlay_update): Update.
9171 * symfile.h (struct quick_symbol_functions)
9172 <find_pc_sect_symtab>: Change type of msymbol to
9173 bound_minimal_symbol.
9174 * symmisc.c (dump_msymbols): Update.
9175 * symtab.c (find_pc_sect_symtab_via_partial)
9176 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9177 (search_symbols, print_msymbol_info): Update.
9178 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9179 (MSYMBOL_VALUE_ADDRESS): Redefine.
9180 (BMSYMBOL_VALUE_ADDRESS): New macro.
9181 * tracepoint.c (scope_info): Update.
9182 * tui/tui-disasm.c (tui_find_disassembly_address)
9183 (tui_get_begin_asm_address): Update.
9184 * valops.c (find_function_in_inferior): Update.
9185 * value.c (value_static_field, value_fn_field): Update.
9187 2014-02-26 Tom Tromey <tromey@redhat.com>
9189 * ada-lang.c (ada_update_initial_language): Update.
9190 (ada_main_name, ada_has_this_exception_support): Update.
9191 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9192 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9193 * arm-tdep.c (arm_skip_stub): Update.
9194 * auxv.c (ld_so_xfer_auxv): Update.
9195 * avr-tdep.c (avr_scan_prologue): Update.
9196 * ax-gdb.c (gen_var_ref): Update.
9197 * breakpoint.c (struct breakpoint_objfile_data)
9198 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9199 type to bound_minimal_symbol.
9200 (create_overlay_event_breakpoint)
9201 (create_longjmp_master_breakpoint)
9202 (create_std_terminate_master_breakpoint)
9203 (create_exception_master_breakpoint): Update.
9204 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9205 * c-exp.y (classify_name): Update.
9206 * coffread.c (coff_symfile_read): Update.
9207 * common/agent.c (agent_look_up_symbols): Update.
9208 * d-lang.c (d_main_name): Update.
9209 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9210 * dec-thread.c (enable_dec_thread): Update.
9211 * dwarf2loc.c (call_site_to_target_addr): Update.
9212 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9213 * eval.c (evaluate_subexp_standard): Update.
9214 * findvar.c (struct minsym_lookup_data) <result>: Change type
9215 to bound_minimal_symbol.
9217 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9218 * frame.c (inside_main_func): Update.
9219 * frv-tdep.c (frv_frame_this_id): Update.
9220 * gcore.c (call_target_sbrk): Update.
9221 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9222 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9224 * go-lang.c (go_main_name): Update.
9225 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9226 (hppa_hpux_find_import_stub_for_addr): Update.
9227 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9228 Update. Change return type.
9229 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9231 * jit.c (jit_breakpoint_re_set_internal): Update.
9232 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9234 * linux-nat.c (get_signo): Update.
9235 * linux-thread-db.c (inferior_has_bug): Update
9236 * m32c-tdep.c (m32c_return_value)
9237 (m32c_m16c_address_to_pointer): Update.
9238 * m32r-tdep.c (m32r_frame_this_id): Update.
9239 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9240 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9241 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9242 lookup_minimal_symbol. Change return type.
9243 (lookup_minimal_symbol): Remove.
9244 (lookup_bound_minimal_symbol): Update.
9245 (lookup_minimal_symbol_text): Change return type.
9246 (lookup_minimal_symbol_solib_trampoline): Change return type.
9247 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9248 (lookup_minimal_symbol_solib_trampoline): Change return type.
9249 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9250 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9251 (value_nsstring, find_imps): Update.
9252 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9253 * p-lang.c (pascal_main_name): Update.
9254 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9255 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9256 * proc-service.c (ps_pglobal_lookup): Update.
9257 * ravenscar-thread.c (get_running_thread_msymbol): Change
9259 (has_ravenscar_runtime, get_running_thread_id): Update.
9260 * remote.c (remote_check_symbols): Update.
9261 * sol-thread.c (ps_pglobal_lookup): Update.
9262 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9263 * solib-dsbt.c (lm_base): Update.
9264 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9266 * solib-irix.c (locate_base): Update.
9267 * solib-som.c (som_solib_create_inferior_hook)
9268 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9270 * solib-spu.c (spu_enable_break): Update.
9271 * solib-svr4.c (elf_locate_base, enable_break): Update.
9272 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9273 (flush_ea_cache): Update.
9274 * stabsread.c (define_symbol): Update.
9275 * symfile.c (simple_read_overlay_table): Update.
9276 * symtab.c (find_pc_sect_line): Update.
9277 * tracepoint.c (scope_info): Update.
9278 * tui-disasm.c (tui_get_begin_asm_address): Update.
9279 * value.c (value_static_field): Update.
9281 2014-02-26 Tom Tromey <tromey@redhat.com>
9283 * minsyms.c (prim_record_minimal_symbol_full): Use
9284 SET_MSYMBOL_VALUE_ADDRESS.
9285 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9286 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9287 SET_MSYMBOL_VALUE_ADDRESS.
9288 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9289 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9291 2014-02-26 Tom Tromey <tromey@redhat.com>
9293 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9294 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9295 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9296 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9297 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9298 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9299 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9300 * ada-lang.c (ada_main_name): Update.
9301 (ada_lookup_simple_minsym): Update.
9302 (ada_make_symbol_completion_list): Update.
9303 (ada_add_standard_exceptions): Update.
9304 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9305 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9306 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9307 * arm-tdep.c (skip_prologue_function): Update.
9308 (arm_skip_stack_protector, arm_skip_stub): Update.
9309 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9310 (arm_wince_skip_main_prologue): Update.
9311 * auxv.c (ld_so_xfer_auxv): Update.
9312 * avr-tdep.c (avr_scan_prologue): Update.
9313 * ax-gdb.c (gen_var_ref): Update.
9314 * block.c (call_site_for_pc): Update.
9315 * blockframe.c (get_pc_function_start): Update.
9316 (find_pc_partial_function_gnu_ifunc): Update.
9317 * breakpoint.c (create_overlay_event_breakpoint): Update.
9318 (create_longjmp_master_breakpoint): Update.
9319 (create_std_terminate_master_breakpoint): Update.
9320 (create_exception_master_breakpoint): Update.
9321 (resolve_sal_pc): Update.
9322 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9323 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9325 * c-valprint.c (c_val_print): Update.
9326 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9327 * coffread.c (coff_symfile_read): Update.
9328 * common/agent.c (agent_look_up_symbols): Update.
9329 * dbxread.c (find_stab_function_addr): Update.
9330 (end_psymtab): Update.
9331 * dwarf2loc.c (call_site_to_target_addr): Update.
9332 (func_verify_no_selftailcall): Update.
9333 (tailcall_dump): Update.
9334 (call_site_find_chain_1): Update.
9335 (dwarf_expr_reg_to_entry_parameter): Update.
9336 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9337 (elf_gnu_ifunc_resolve_by_got): Update.
9338 * f-valprint.c (info_common_command): Update.
9339 * findvar.c (read_var_value): Update.
9340 * frame.c (get_prev_frame_1): Update.
9341 (inside_main_func): Update.
9342 * frv-tdep.c (frv_skip_main_prologue): Update.
9343 (frv_frame_this_id): Update.
9344 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9345 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9346 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9347 (gnuv3_skip_trampoline): Update.
9348 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9349 (hppa64_hpux_in_solib_call_trampoline): Update.
9350 (hppa_hpux_skip_trampoline_code): Update.
9351 (hppa64_hpux_search_dummy_call_sequence): Update.
9352 (hppa_hpux_find_import_stub_for_addr): Update.
9353 (hppa_hpux_find_dummy_bpaddr): Update.
9354 * hppa-tdep.c (hppa_symbol_address)
9355 (hppa_lookup_stub_minimal_symbol): Update.
9356 * i386-tdep.c (i386_skip_main_prologue): Update.
9357 (i386_pe_skip_trampoline_code): Update.
9358 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9359 * infcall.c (get_function_name): Update.
9360 * infcmd.c (until_next_command): Update.
9361 * jit.c (jit_breakpoint_re_set_internal): Update.
9362 (jit_inferior_init): Update.
9363 * linespec.c (minsym_found): Update.
9364 (add_minsym): Update.
9365 * linux-fork.c (info_checkpoints_command): Update.
9366 * linux-nat.c (get_signo): Update.
9367 * linux-thread-db.c (inferior_has_bug): Update.
9368 * m32c-tdep.c (m32c_return_value): Update.
9369 (m32c_m16c_address_to_pointer): Update.
9370 (m32c_m16c_pointer_to_address): Update.
9371 * m32r-tdep.c (m32r_frame_this_id): Update.
9372 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9373 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9374 * maint.c (maintenance_translate_address): Update.
9375 * minsyms.c (add_minsym_to_hash_table): Update.
9376 (add_minsym_to_demangled_hash_table): Update.
9377 (msymbol_objfile): Update.
9378 (lookup_minimal_symbol): Update.
9379 (iterate_over_minimal_symbols): Update.
9380 (lookup_minimal_symbol_text): Update.
9381 (lookup_minimal_symbol_by_pc_name): Update.
9382 (lookup_minimal_symbol_solib_trampoline): Update.
9383 (lookup_minimal_symbol_by_pc_section_1): Update.
9384 (lookup_minimal_symbol_and_objfile): Update.
9385 (prim_record_minimal_symbol_full): Update.
9386 (compare_minimal_symbols): Update.
9387 (compact_minimal_symbols): Update.
9388 (build_minimal_symbol_hash_tables): Update.
9389 (install_minimal_symbols): Update.
9390 (terminate_minimal_symbol_table): Update.
9391 (find_solib_trampoline_target): Update.
9392 (minimal_symbol_upper_bound): Update.
9393 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9394 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9395 (mips_skip_pic_trampoline_code): Update.
9396 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9397 * objc-lang.c (selectors_info): Update.
9398 (classes_info): Update.
9399 (find_methods): Update.
9400 (find_imps): Update.
9401 (find_objc_msgsend): Update.
9402 * objfiles.c (objfile_relocate1): Update.
9403 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9404 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9405 * p-valprint.c (pascal_val_print): Update.
9406 * parse.c (write_exp_msymbol): Update.
9407 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9408 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9409 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9410 * printcmd.c (build_address_symbolic): Update.
9412 (address_info): Update.
9413 * proc-service.c (ps_pglobal_lookup): Update.
9414 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9415 (find_pc_sect_psymtab): Update.
9416 * python/py-framefilter.c (py_print_frame): Update.
9417 * ravenscar-thread.c (get_running_thread_id): Update.
9418 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9420 * remote.c (remote_check_symbols): Update.
9421 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9422 (rs6000_skip_trampoline_code): Update.
9423 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9424 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9425 * solib-dsbt.c (lm_base): Update.
9426 * solib-frv.c (lm_base): Update.
9428 * solib-irix.c (locate_base): Update.
9429 * solib-som.c (som_solib_create_inferior_hook): Update.
9430 (som_solib_desire_dynamic_linker_symbols): Update.
9431 (link_map_start): Update.
9432 * solib-spu.c (spu_enable_break): Update.
9433 (ocl_enable_break): Update.
9434 * solib-svr4.c (elf_locate_base): Update.
9435 (enable_break): Update.
9436 * spu-tdep.c (spu_get_overlay_table): Update.
9437 (spu_catch_start): Update.
9438 (flush_ea_cache): Update.
9439 * stabsread.c (define_symbol): Update.
9440 (scan_file_globals): Update.
9441 * stack.c (find_frame_funname): Update.
9442 (frame_info): Update.
9443 * symfile.c (simple_read_overlay_table): Update.
9444 (simple_overlay_update): Update.
9445 * symmisc.c (dump_msymbols): Update.
9446 * symtab.c (fixup_section): Update.
9447 (find_pc_sect_line): Update.
9448 (skip_prologue_sal): Update.
9449 (search_symbols): Update.
9450 (print_msymbol_info): Update.
9451 (rbreak_command): Update.
9452 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9453 (completion_list_objc_symbol): Update.
9454 (default_make_symbol_completion_list_break_on): Update.
9455 * tracepoint.c (scope_info): Update.
9456 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9457 (tui_get_begin_asm_address): Update.
9458 * valops.c (find_function_in_inferior): Update.
9459 * value.c (value_static_field): Update.
9460 (value_fn_field): Update.
9462 2014-02-26 Tom Tromey <tromey@redhat.com>
9464 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9465 bound minimal symbols. Move code that knows about minsym
9467 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9469 * minsyms.h (minimal_symbol_upper_bound): Declare.
9470 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9471 minimal_symbol_upper_bound.
9473 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9475 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9476 Use the type's name if its basic type does not have a tag.
9478 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9480 * dwarf2read.c (read_subrange_type): Add comment.
9482 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9484 * dwarf2read.c (update_enumeration_type_from_children): New
9485 function, mostly extracted from process_structure_scope.
9486 (read_enumeration_type): Call update_enumeration_type_from_children.
9487 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9488 and flag_flag_enum fields.
9490 2014-02-26 Pedro Alves <palves@redhat.com>
9492 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9493 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9494 to_xfer_partial method.
9496 2014-02-26 Pedro Alves <palves@redhat.com>
9498 * target.c (complete_target_initialization): Don't install
9499 default_xfer_partial as to_xfer_partial hook.
9501 (update_current_target): Don't INHERIT nor de_fault
9502 deprecated_xfer_memory. Delete de_fault macro.
9503 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9504 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9505 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9508 2014-02-26 Pedro Alves <palves@redhat.com>
9510 * go32-nat.c (my_write_child): New function.
9511 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9512 (go32_xfer_partial): New function.
9513 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9514 Instead install a to_xfer_partial hook.
9516 2014-02-26 Pedro Alves <palves@redhat.com>
9518 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9519 to_xfer_partial helper. Rewrite.
9520 (procfs_xfer_partial): New function.
9521 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9522 Install a to_xfer_partial hook.
9524 2014-02-26 Pedro Alves <palves@redhat.com>
9526 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9527 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9528 (m32r_xfer_partial): New function.
9529 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9530 Install a to_xfer_partial hook.
9532 2014-02-26 Pedro Alves <palves@redhat.com>
9534 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9536 (mips_xfer_partial): New function.
9537 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9538 hook. Install a to_xfer_partial hook.
9540 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9542 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9543 * gdbtypes.c (create_array_type_with_stride): New function,
9544 renaming create_array_type, but with an added parameter
9545 called "bit_stride".
9546 (create_array_type): Re-implement using
9547 create_array_type_with_stride.
9548 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9549 and DW_AT_bit_stride attributes.
9551 2014-02-26 Pedro Alves <palves@redhat.com>
9553 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9554 task-specific breakpoints.
9556 2014-02-25 Pedro Alves <palves@redhat.com>
9558 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9559 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9561 2014-02-25 Stan Shebs <stan@codesourcery.com>
9563 * defs.h: Annotate comments for Doxygen.
9565 2014-02-25 Tom Tromey <tromey@redhat.com>
9567 * target.h (target_ignore): Don't declare.
9568 * target.c (target_ignore): Remove.
9570 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9573 * auto-load.c (auto_load_objfile_script_1): Change filename to
9576 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9578 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9579 documentation. Adjust prototype to match the target_ops
9580 to_xfer_partial method. Adjust implementation accordingly.
9582 2014-02-25 Hui Zhu <hui@codesourcery.com>
9584 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9587 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9589 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9590 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9591 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9592 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9593 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9594 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9595 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9596 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9598 (rl78_register_type): Use a data pointer type for SP and
9599 new pseudo registers mentioned above. Use a 16 bit integer
9600 type for all other register pairs.
9601 (rl78_register_name, rl78_g10_register_name): Update for
9602 new pseudo registers.
9603 (rl78_pseudo_register_read): Likewise.
9604 (rl78_pseudo_register_write): Likewise.
9605 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9606 to the newly added pseudo registers.
9608 2014-02-24 Doug Evans <dje@google.com>
9610 * value.c (record_latest_value): Fix comment.
9611 * printcmd.c (print_command_1): Remove code to handle -1 return from
9612 record_latest_value.
9614 2014-02-24 Pedro Alves <palves@redhat.com>
9616 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9617 deprecated_xfer_memory hook.
9618 (procfs_xfer_partial): Call procfs_xfer_memory instead
9619 of the deprecated_xfer_memory target hook.
9620 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9623 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9625 * windows-nat.c (windows_xfer_shared_libraries): Return
9626 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9627 requested object is TARGET_OBJECT_LIBRARIES.
9629 2014-02-24 Yao Qi <yao@codesourcery.com>
9631 * target.h (enum target_xfer_status)
9632 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9633 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9635 * corefile.c (memory_error_message): User updated.
9636 * exec.c (section_table_read_available_memory): Likewise.
9637 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9638 * target.c (target_xfer_status_to_string): Likewise.
9639 (raw_memory_xfer_partial): Likewise.
9640 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9641 * valops.c (read_value_memory): Likewise.
9642 * exec.h: Update comments.
9644 2014-02-24 Yao Qi <yao@codesourcery.com>
9646 * target.c (target_xfer_status_to_string): Rename argument err
9648 * target.h (target_xfer_status_to_string): Update declaration.
9649 Replace target_xfer_error_to_string with
9650 target_xfer_status_to_string in comment.
9652 2014-02-24 Yao Qi <yao@codesourcery.com>
9654 * mips-linux-nat.c (super_close): Update its type.
9655 (mips_linux_close): Pass 'self' to super_close.
9657 2014-02-24 Yao Qi <yao@codesourcery.com>
9659 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9660 * corefile.c (read_memory): Adjusted.
9661 * target.c (target_write_with_progress): Adjusted.
9663 2014-02-23 Yao Qi <yao@codesourcery.com>
9667 2013-10-25 Yao Qi <yao@codesourcery.com>
9669 * remote.c (remote_traceframe_info): Return early if
9670 traceframe is not selected.
9672 2013-07-19 Yao Qi <yao@codesourcery.com>
9674 * target.c (update_current_target): Change the default action
9675 of 'to_traceframe_info' from tcomplain to return_zero.
9676 * target.h (struct target_ops) <to_traceframe_info>: Add more
9679 2014-02-23 Yao Qi <yao@codesourcery.com>
9681 * valops.c (read_value_memory): Rewrite it. Call
9682 target_xfer_partial in a loop.
9683 * exec.h (section_table_available_memory): Remove declaration.
9684 Move comments to ...
9685 * exec.c (section_table_available_memory): ... here. Make it
9688 2014-02-23 Yao Qi <yao@codesourcery.com>
9690 * exec.c (section_table_read_available_memory): New function.
9691 * exec.h (section_table_read_available_memory): Declare.
9692 * ctf.c (ctf_xfer_partial): Call
9693 section_table_read_available_memory.
9694 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9696 2014-02-23 Yao Qi <yao@codesourcery.com>
9698 * ctf.c (ctf_xfer_partial): Move code to ...
9699 * exec.c (exec_read_partial_read_only): ... it. New function.
9700 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9701 * tracefile.c: Include "exec.h".
9702 * exec.h (exec_read_partial_read_only): Declare.
9704 2014-02-23 Yao Qi <yao@codesourcery.com>
9706 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9707 (tfile_has_memory): Remove.
9708 (init_tfile_ops): Don't set fields to_has_all_memory and
9709 to_has_memory of tfile_ops.
9710 * tracefile.c (tracefile_has_all_memory): New function.
9711 (tracefile_has_memory): New function.
9712 (init_tracefile_ops): Initialize fields to_has_all_memory and
9713 to_has_memory of 'ops'.
9715 2014-02-23 Yao Qi <yao@codesourcery.com>
9717 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9718 (ctf_thread_alive, ctf_get_trace_status): Remove.
9719 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9721 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9722 (tfile_has_stack, tfile_has_registers): Remove.
9723 (tfile_thread_alive): Remove.
9724 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9726 * tracefile.c (tracefile_has_stack): New function.
9727 (tracefile_has_registers): New function.
9728 (tracefile_thread_alive): New function.
9729 (tracefile_get_trace_status): New function.
9730 (init_tracefile_ops): New function.
9731 * tracefile.h (init_tracefile_ops): Declare.
9733 2014-02-23 Yao Qi <yao@codesourcery.com>
9735 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9736 (O_LARGEFILE): Likewise.
9737 (tfile_ops): Likewise.
9738 (TRACE_HEADER_SIZE): Likewise.
9739 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9740 (cur_data_size): Likewise.
9741 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9742 (tfile_close, tfile_files_info): Likewise.
9743 (tfile_get_trace_status): Likewise.
9744 (tfile_get_tracepoint_status): Likewise.
9745 (tfile_get_traceframe_address): Likewise.
9746 (tfile_trace_find, match_blocktype): Likewise.
9747 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9748 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9749 (tfile_get_trace_state_variable_value): Likewise.
9750 (tfile_has_all_memory, tfile_has_memory): Likewise.
9751 (tfile_has_stack, tfile_has_registers): Likewise.
9752 (tfile_thread_alive, build_traceframe_info): Likewise.
9753 (tfile_traceframe_info, init_tfile_ops): Likewise.
9754 (_initialize_tracepoint): Don't call init_tfile_ops
9755 and add_target_with_completer.
9756 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9757 exec.h, completer.h and filenames.h.
9758 (_initialize_tracefile_tfile): New function.
9760 2014-02-23 Yao Qi <yao@codesourcery.com>
9762 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9764 (HFILES_NO_SRCDIR): Add tracefile.h.
9765 * ctf.c: Include "tracefile.h".
9766 * tracefile.h: New file.
9767 * tracefile.c: New file
9768 * tracefile-tfile.c: New file.
9769 * tracepoint.c: Include "tracefile.h".
9770 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9771 (stop_reason_names): Add const.
9772 (trace_file_writer_xfree): Move it to tracefile.c.
9773 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9774 (trace_save_ctf): Likewise.
9775 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9776 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9777 (tfile_write_header, tfile_write_regblock_type): Likewise.
9778 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9779 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9780 (tfile_write_raw_data, tfile_end): Likewise.
9781 (tfile_trace_file_writer_new): Likewise.
9782 (free_uploaded_tp): Make it extern.
9783 (free_uploaded_tsv): Make it extern.
9784 (_initialize_tracepoint): Move code to register command 'tsave'
9786 * tracepoint.h (stop_reason_names): Declare.
9787 (struct trace_frame_write_ops): Move it to tracefile.h.
9788 (struct trace_file_write_ops): Likewise.
9789 (struct trace_file_writer): Likewise.
9790 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9792 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9795 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9797 (get_cores_used_by_process): New parameter num_cores, use it.
9798 (linux_xfer_osdata_processes): Pass num_cores to it.
9799 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9802 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9804 * target.c (memory_xfer_partial): Fix length arg in call to
9805 breakpoint_xfer_memory.
9807 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9810 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9811 number comes after the + or - signs. Adjust length of register
9812 name to be extracted.
9814 2014-02-20 Tom Tromey <tromey@redhat.com>
9816 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9817 (ada_varobj_ops): Mark "extern".
9819 2014-02-20 Tom Tromey <tromey@redhat.com>
9821 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9823 2014-02-20 Doug Evans <xdje42@gmail.com>
9825 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9826 All callers updated.
9827 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9828 All callers updated.
9829 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9830 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9832 2014-02-20 lin zuojian <manjian2006@gmail.com>
9833 Joel Brobecker <brobecker@adacore.com>
9834 Doug Evans <xdje42@gmail.com>
9837 * dwarf2read.c (struct die_info): New member in_process.
9838 (reset_die_in_process): New function.
9839 (process_die): Set it at the start, reset when returning.
9840 (inherit_abstract_dies): Only call process_die if origin_child_die
9841 not already being processed.
9843 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9845 * windows-nat.c (handle_unload_dll): Add function documentation.
9846 (do_initial_windows_stuff): Add comment explaining why we wait
9847 until after inferior initialization has finished before
9848 processing all DLLs.
9850 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9852 * windows-nat.c (get_module_name): Delete.
9853 (windows_get_exec_module_filename): New function, mostly
9854 inspired from get_module_name.
9855 (windows_pid_to_exec_file): Replace call to get_module_name
9856 by call to windows_get_exec_module_filename.
9858 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9860 * windows-nat.c (handle_load_dll): Rewrite this function's
9861 introductory comment. Remove code using get_module_name
9862 to get the DLL's name.
9864 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9866 * windows-nat.c (get_windows_debug_event): Ignore
9867 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9868 if windows_initialization_done == 0.
9869 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9870 Adjust implementation to always load all DLLs.
9871 (do_initial_windows_stuff): Replace call to
9872 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9874 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9876 * windows-nat.c (_initialize_windows_nat): Deprecate the
9877 "dll-symbols" command. Turn the "add-shared-symbol-files"
9878 and "assf" aliases into commands, and deprecate them as well.
9879 * NEWS: Add entry explaining that "dll-symbols" and its two
9880 aliases are now deprecated.
9882 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9884 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9885 new-line in debug string. Remove trailing spaces.
9887 2014-02-19 Stan Shebs <stan@codesourcery.com>
9889 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9891 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9893 * NEWS: Add entry for the new feature
9894 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9897 2014-02-19 Stan Shebs <stan@codesourcery.com>
9899 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9901 2014-02-19 Pedro Alves <palves@redhat.com>
9903 * common/ptid.h (struct ptid): Mention that process_stratum
9904 targets should prefer ptid.lwp.
9906 2014-02-19 Pedro Alves <palves@redhat.com>
9908 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9909 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9910 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9911 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9912 store remote thread ids rather than ptid.tid.
9913 (_initialize_remote): Adjust.
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9917 * target.c (target_get_unwinder): Rewrite.
9918 (target_get_tailcall_unwinder): Rewrite.
9919 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9920 (record_btrace_to_get_tailcall_unwinder): New function.
9921 (init_record_btrace_ops): Update.
9922 * target.h (struct target_ops) <to_get_unwinder,
9923 to_get_tailcall_unwinder>: Now function pointers. Use
9924 TARGET_DEFAULT_RETURN.
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9928 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9930 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9934 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9936 * target-delegates.c: Rebuild.
9937 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9938 TARGET_DEFAULT_FUNC.
9939 * target.c (default_target_decr_pc_after_break): Rename from
9940 forward_target_decr_pc_after_break. Simplify.
9941 (target_decr_pc_after_break): Rely on delegation.
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9945 * target.c (update_current_target): Do not INHERIT to_doc or
9946 to_magic. Do not de_fault to_open or to_close.
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9950 * gcore.h (objfile_find_memory_regions): Declare.
9951 * gcore.c (objfile_find_memory_regions): No longer static. Add
9953 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9954 * exec.c: Include gcore.h.
9955 (exec_set_find_memory_regions): Remove.
9956 (exec_find_memory_regions): Remove.
9957 (exec_do_find_memory_regions): Remove.
9958 (init_exec_ops): Update.
9959 * defs.h (exec_set_find_memory_regions): Remove.
9961 2014-02-19 Tom Tromey <tromey@redhat.com>
9963 * target-delegates.c: Rebuild.
9964 * target.h (struct target_ops) <to_extra_thread_info,
9965 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9966 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9967 not 0, in TARGET_DEFAULT_RETURN.
9969 2014-02-19 Tom Tromey <tromey@redhat.com>
9971 * target.c (complete_target_initialization): Remove casts. Use
9972 return_zero_has_execution.
9973 (return_zero): Add "ignore" argument.
9974 (return_zero_has_execution): New function.
9975 (init_dummy_target): Remove casts. Use
9976 return_zero_has_execution.
9978 2014-02-19 Tom Tromey <tromey@redhat.com>
9980 * target.c (update_current_target): Update comments. Do not
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9985 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9987 * corelow.c (core_read_description): Delegate when needed.
9988 * remote.c (remote_read_description): Delegate when needed.
9989 * target-delegates.c: Rebuild.
9990 * target.c (target_read_description): Rewrite.
9991 * target.h (struct target_ops) <to_read_description>: Update
9992 comment. Use TARGET_DEFAULT_RETURN.
9994 2014-02-19 Tom Tromey <tromey@redhat.com>
9996 * target-delegates.c: Rebuild.
9997 * target.c (update_current_target): Don't inherit or default
9999 (find_default_run_target): Check against delegate_can_run.
10000 * target.h (struct target_ops) <to_can_run>: Use
10001 TARGET_DEFAULT_RETURN.
10003 2014-02-19 Tom Tromey <tromey@redhat.com>
10005 * target-delegates.c: Rebuild.
10006 * target.c (target_disconnect): Unconditionally delegate.
10007 * target.h (struct target_ops) <to_disconnect>: Use
10008 TARGET_DEFAULT_NORETURN.
10010 2014-02-19 Tom Tromey <tromey@redhat.com>
10012 * record.c (record_stop): Unconditionally delegate.
10013 * target-delegates.c: Rebuild.
10014 * target.c (target_stop_recording): Unconditionally delegate.
10015 * target.h (struct target_ops) <to_stop_recording>: Use
10016 TARGET_DEFAULT_IGNORE.
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10020 * target-delegates.c: Rebuild.
10021 * target.c (target_enable_btrace): Unconditionally delegate.
10022 * target.h (struct target_ops) <to_enable_btrace>: Use
10023 TARGET_DEFAULT_NORETURN.
10025 2014-02-19 Tom Tromey <tromey@redhat.com>
10027 * target-delegates.c: Rebuild.
10028 * target.c (target_read_btrace): Unconditionally delegate.
10029 * target.h (struct target_ops) <to_read_btrace>: Use
10030 TARGET_DEFAULT_NORETURN.
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10034 * target-delegates.c: Rebuild.
10035 * target.c (target_teardown_btrace): Unconditionally delegate.
10036 * target.h (struct target_ops) <to_teardown_btrace>: Use
10037 TARGET_DEFAULT_NORETURN.
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10041 * target-delegates.c: Rebuild.
10042 * target.c (target_disable_btrace): Unconditionally delegate.
10043 * target.h (struct target_ops) <to_disable_btrace>: Use
10044 TARGET_DEFAULT_NORETURN.
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10048 * target-delegates.c: Rebuild.
10049 * target.c (default_search_memory): New function.
10050 (simple_search_memory): Update comment.
10051 (target_search_memory): Unconditionally delegate.
10052 * target.h (struct target_ops) <to_search_memory>: Use
10053 TARGET_DEFAULT_FUNC.
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10057 * auxv.c (default_auxv_parse): No longer static.
10058 (target_auxv_parse): Unconditionally delegate.
10059 * auxv.h (default_auxv_parse): Declare.
10060 * target-delegates.c: Rebuild.
10061 * target.c: Include auxv.h.
10062 * target.h (struct target_ops) <to_auxv_parse>: Use
10063 TARGET_DEFAULT_FUNC.
10065 2014-02-19 Tom Tromey <tromey@redhat.com>
10067 * target-delegates.c: Rebuild.
10068 * target.c (target_memory_map): Unconditionally delegate.
10069 * target.h (struct target_ops) <to_memory_map>: Use
10070 TARGET_DEFAULT_RETURN.
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10074 * target-delegates.c: Rebuild.
10075 * target.c (target_thread_alive): Unconditionally delegate.
10076 * target.h (struct target_ops) <to_thread_alive>: Use
10077 TARGET_DEFAULT_RETURN.
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10081 * target-delegates.c: Rebuild.
10082 * target.c (target_save_record): Unconditionally delegate.
10083 * target.h (struct target_ops) <to_save_record>: Use
10084 TARGET_DEFAULT_NORETURN.
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target-delegates.c: Rebuild.
10089 * target.c (target_delete_record): Unconditionally delegate.
10090 * target.h (struct target_ops) <to_delete_record>: Use
10091 TARGET_DEFAULT_NORETURN.
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10095 * target-delegates.c: Rebuild.
10096 * target.c (target_record_is_replaying): Unconditionally
10098 * target.h (struct target_ops) <to_record_is_replaying>: Use
10099 TARGET_DEFAULT_RETURN.
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10103 * target-delegates.c: Rebuild.
10104 * target.c (target_goto_record_begin): Unconditionally delegate.
10105 * target.h (struct target_ops) <to_goto_record_begin>: Use
10106 TARGET_DEFAULT_NORETURN.
10108 2014-02-19 Tom Tromey <tromey@redhat.com>
10110 * target-delegates.c: Rebuild.
10111 * target.c (target_goto_record_end): Unconditionally delegate.
10112 * target.h (struct target_ops) <to_goto_record_end>: Use
10113 TARGET_DEFAULT_NORETURN.
10115 2014-02-19 Tom Tromey <tromey@redhat.com>
10117 * target-delegates.c: Rebuild.
10118 * target.c (target_goto_record): Unconditionally delegate.
10119 * target.h (struct target_ops) <to_goto_record>: Use
10120 TARGET_DEFAULT_NORETURN.
10122 2014-02-19 Tom Tromey <tromey@redhat.com>
10124 * target-delegates.c: Rebuild.
10125 * target.c (target_insn_history): Unconditionally delegate.
10126 * target.h (struct target_ops) <to_insn_history>: Use
10127 TARGET_DEFAULT_NORETURN.
10129 2014-02-19 Tom Tromey <tromey@redhat.com>
10131 * target-delegates.c: Rebuild.
10132 * target.c (target_insn_history_from): Unconditionally delegate.
10133 * target.h (struct target_ops) <to_insn_history_from>: Use
10134 TARGET_DEFAULT_NORETURN.
10136 2014-02-19 Tom Tromey <tromey@redhat.com>
10138 * target-delegates.c: Rebuild.
10139 * target.c (target_insn_history_range): Unconditionally delegate.
10140 * target.h (struct target_ops) <to_insn_history_range>: Use
10141 TARGET_DEFAULT_NORETURN.
10143 2014-02-19 Tom Tromey <tromey@redhat.com>
10145 * target-delegates.c: Rebuild.
10146 * target.c (target_call_history): Unconditionally delegate.
10147 * target.h (struct target_ops) <to_call_history>: Use
10148 TARGET_DEFAULT_NORETURN.
10150 2014-02-19 Tom Tromey <tromey@redhat.com>
10152 * target-delegates.c: Rebuild.
10153 * target.c (target_call_history_from): Unconditionally delegate.
10154 * target.h (struct target_ops) <to_call_history_from>: Use
10155 TARGET_DEFAULT_NORETURN.
10157 2014-02-19 Tom Tromey <tromey@redhat.com>
10159 * target-delegates.c: Rebuild.
10160 * target.c (target_call_history_range): Unconditionally delegate.
10161 * target.h (struct target_ops) <to_call_history_range>: Use
10162 TARGET_DEFAULT_NORETURN.
10164 2014-02-19 Tom Tromey <tromey@redhat.com>
10166 * target-delegates.c: Rebuild.
10167 * target.c (target_verify_memory): Unconditionally delegate.
10168 * target.h (struct target_ops) <to_verify_memory>: Use
10169 TARGET_DEFAULT_NORETURN.
10171 2014-02-19 Tom Tromey <tromey@redhat.com>
10173 * target-delegates.c: Rebuild.
10174 * target.c (target_core_of_thread): Unconditionally delegate.
10175 * target.h (struct target_ops) <to_core_of_thread>: Use
10176 TARGET_DEFAULT_RETURN.
10178 2014-02-19 Tom Tromey <tromey@redhat.com>
10180 * target-delegates.c: Rebuild.
10181 * target.c (target_flash_done): Unconditionally delegate.
10182 * target.h (struct target_ops) <to_flash_done>: Use
10183 TARGET_DEFAULT_NORETURN.
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10187 * target-delegates.c: Rebuild.
10188 * target.c (target_flash_erase): Unconditionally delegate.
10189 * target.h (struct target_ops) <to_flash_erase>: Use
10190 TARGET_DEFAULT_NORETURN.
10192 2014-02-19 Tom Tromey <tromey@redhat.com>
10194 * target-delegates.c: Rebuild.
10195 * target.c (target_get_section_table): Unconditionally delegate.
10196 * target.h (struct target_ops) <to_get_section_table>: Use
10197 TARGET_DEFAULT_RETURN.
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10201 * target-delegates.c: Rebuild.
10202 * target.c (target_pid_to_str): Unconditionally delegate.
10203 (init_dummy_target): Don't initialize to_pid_to_str.
10204 (default_pid_to_str): Rename from dummy_pid_to_str.
10205 * target.h (struct target_ops) <to_pid_to_str>: Use
10206 TARGET_DEFAULT_FUNC.
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10210 * target-delegates.c: Rebuild.
10211 * target.c (target_find_new_threads): Unconditionally delegate.
10212 * target.h (struct target_ops) <to_find_new_threads>: Use
10213 TARGET_DEFAULT_RETURN.
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10217 * target-delegates.c: Rebuild.
10218 * target.c (target_program_signals): Unconditionally delegate.
10219 * target.h (struct target_ops) <to_program_signals>: Use
10220 TARGET_DEFAULT_IGNORE.
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10224 * target-delegates.c: Rebuild.
10225 * target.c (target_pass_signals): Unconditionally delegate.
10226 * target.h (struct target_ops) <to_pass_signals>: Use
10227 TARGET_DEFAULT_IGNORE.
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10231 * target-delegates.c: Rebuild.
10232 * target.c (default_mourn_inferior): New function.
10233 (target_mourn_inferior): Unconditionally delegate.
10234 * target.h (struct target_ops) <to_mourn_inferior>: Use
10235 TARGET_DEFAULT_FUNC.
10237 2014-02-19 Tom Tromey <tromey@redhat.com>
10239 * target-delegates.c: Rebuild.
10240 * target.c (default_follow_fork): New function.
10241 (target_follow_fork): Unconditionally delegate.
10242 * target.h (struct target_ops) <to_follow_fork>: Use
10243 TARGET_DEFAULT_FUNC.
10245 2014-02-19 Tom Tromey <tromey@redhat.com>
10247 * target-delegates.c: Rebuild.
10248 * target.c (target_kill): Unconditionally delegate.
10249 * target.h (struct target_ops) <to_kill>: Use
10250 TARGET_DEFAULT_NORETURN.
10252 2014-02-19 Tom Tromey <tromey@redhat.com>
10254 * target-delegates.c: Rebuild.
10255 * target.c (target_masked_watch_num_registers): Unconditionally
10257 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10258 Use TARGET_DEFAULT_RETURN.
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10262 * target-delegates.c: Rebuild.
10263 * target.c (target_remove_mask_watchpoint): Unconditionally
10265 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10266 TARGET_DEFAULT_RETURN.
10268 2014-02-19 Tom Tromey <tromey@redhat.com>
10270 * target-delegates.c: Rebuild.
10271 * target.c (target_insert_mask_watchpoint): Unconditionally
10273 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10274 TARGET_DEFAULT_RETURN.
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10278 * target-delegates.c: Rebuild.
10279 * target.c (target_ranged_break_num_registers): Unconditionally
10281 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10282 Use TARGET_DEFAULT_RETURN.
10284 2014-02-19 Tom Tromey <tromey@redhat.com>
10286 * target-delegates.c: Rebuild.
10287 * target.c (target_fetch_registers): Unconditionally delegate.
10288 * target.h (struct target_ops) <to_fetch_registers>: Use
10289 TARGET_DEFAULT_NORETURN.
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10293 * target-delegates.c: Rebuild.
10294 * target.c (update_current_target): Don't inherit or default
10296 * target.h (struct target_ops) <to_stop>: Use
10297 TARGET_DEFAULT_IGNORE.
10299 2014-02-19 Tom Tromey <tromey@redhat.com>
10301 * target-delegates.c: Rebuild.
10302 * target.c (update_current_target): Don't inherit or default
10303 to_can_run_breakpoint_commands.
10304 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10305 Use TARGET_DEFAULT_RETURN.
10307 2014-02-19 Tom Tromey <tromey@redhat.com>
10309 * target-delegates.c: Rebuild.
10310 * target.c (update_current_target): Don't inherit or default
10311 to_supports_evaluation_of_breakpoint_conditions.
10312 * target.h (struct target_ops)
10313 <to_supports_evaluation_of_breakpoint_conditions>: Use
10314 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_augmented_libraries_svr4_read.
10321 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10322 Use TARGET_DEFAULT_RETURN.
10324 2014-02-19 Tom Tromey <tromey@redhat.com>
10326 * target-delegates.c: Rebuild.
10327 * target.c (update_current_target): Don't inherit or default
10329 * target.h (struct target_ops) <to_can_use_agent>: Use
10330 TARGET_DEFAULT_RETURN.
10332 2014-02-19 Tom Tromey <tromey@redhat.com>
10334 * target-delegates.c: Rebuild.
10335 * target.c (update_current_target): Don't inherit or default
10337 * target.h (struct target_ops) <to_use_agent>: Use
10338 TARGET_DEFAULT_NORETURN.
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10342 * target-delegates.c: Rebuild.
10343 * target.c (update_current_target): Don't inherit or default
10344 to_traceframe_info.
10345 (return_null): Remove.
10346 * target.h (struct target_ops) <to_traceframe_info>: Use
10347 TARGET_DEFAULT_RETURN.
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10353 to_static_tracepoint_markers_by_strid.
10354 * target.h (struct target_ops)
10355 <to_static_tracepoint_markers_by_strid>: Use
10356 TARGET_DEFAULT_NORETURN.
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_marker_at.
10363 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10364 Use TARGET_DEFAULT_RETURN.
10366 2014-02-19 Tom Tromey <tromey@redhat.com>
10368 * target-delegates.c: Rebuild.
10369 * target.c (update_current_target): Don't inherit or default
10370 to_set_permissions.
10371 * target.h (struct target_ops) <to_set_permissions>: Use
10372 TARGET_DEFAULT_IGNORE.
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10376 * target-delegates.c: Rebuild.
10377 * target.c (update_current_target): Don't inherit or default
10378 to_get_tib_address.
10379 * target.h (struct target_ops) <to_get_tib_address>: Use
10380 TARGET_DEFAULT_NORETURN.
10382 2014-02-19 Tom Tromey <tromey@redhat.com>
10384 * target-delegates.c: Rebuild.
10385 * target.c (update_current_target): Don't inherit or default
10386 to_set_trace_notes.
10387 * target.h (struct target_ops) <to_set_trace_notes>: Use
10388 TARGET_DEFAULT_RETURN.
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10392 * target-delegates.c: Rebuild.
10393 * target.c (update_current_target): Don't initialize
10394 to_set_trace_buffer_size.
10395 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10396 TARGET_DEFAULT_IGNORE.
10398 2014-02-19 Tom Tromey <tromey@redhat.com>
10400 * target-delegates.c: Rebuild.
10401 * target.c (update_current_target): Don't inherit or default
10402 to_set_circular_trace_buffer.
10403 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10404 TARGET_DEFAULT_IGNORE.
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10408 * target-delegates.c: Rebuild.
10409 * target.c (update_current_target): Don't inherit or default
10410 to_set_disconnected_tracing.
10411 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10412 TARGET_DEFAULT_IGNORE.
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10416 * target-delegates.c: Rebuild.
10417 * target.c (update_current_target): Don't inherit or default
10418 to_get_min_fast_tracepoint_insn_len.
10419 (return_minus_one): Remove.
10420 * target.h (struct target_ops)
10421 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_raw_trace_data.
10428 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10429 TARGET_DEFAULT_NORETURN.
10431 2014-02-19 Tom Tromey <tromey@redhat.com>
10433 * target-delegates.c: Rebuild.
10434 * target.c (update_current_target): Don't inherit or default
10435 to_upload_trace_state_variables.
10436 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10437 Use TARGET_DEFAULT_RETURN.
10439 2014-02-19 Tom Tromey <tromey@redhat.com>
10441 * target-delegates.c: Rebuild.
10442 * target.c (update_current_target): Don't inherit or default
10443 to_upload_tracepoints.
10444 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10445 TARGET_DEFAULT_RETURN.
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10449 * target-delegates.c: Rebuild.
10450 * target.c (update_current_target): Don't inherit or default
10451 to_save_trace_data.
10452 * target.h (struct target_ops) <to_save_trace_data>: Use
10453 TARGET_DEFAULT_NORETURN.
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10457 * target-delegates.c: Rebuild.
10458 * target.c (update_current_target): Don't inherit or default
10459 to_get_trace_state_variable_value.
10460 * target.h (struct target_ops)
10461 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10463 2014-02-19 Tom Tromey <tromey@redhat.com>
10465 * target-delegates.c: Rebuild.
10466 * target.c (update_current_target): Don't inherit or default
10468 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10470 2014-02-19 Tom Tromey <tromey@redhat.com>
10472 * target-delegates.c: Rebuild.
10473 * target.c (update_current_target): Don't inherit or default
10475 * target.h (struct target_ops) <to_trace_stop>: Use
10476 TARGET_DEFAULT_NORETURN.
10478 2014-02-19 Tom Tromey <tromey@redhat.com>
10480 * target-delegates.c: Rebuild.
10481 * target.c (update_current_target): Don't inherit or default
10482 to_get_tracepoint_status.
10483 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10484 TARGET_DEFAULT_NORETURN.
10486 2014-02-19 Tom Tromey <tromey@redhat.com>
10488 * target-delegates.c: Rebuild.
10489 * target.c (update_current_target): Don't inherit or default
10490 to_get_trace_status.
10491 * target.h (struct target_ops) <to_get_trace_status>: Use
10492 TARGET_DEFAULT_RETURN.
10494 2014-02-19 Tom Tromey <tromey@redhat.com>
10496 * target-delegates.c: Rebuild.
10497 * target.c (update_current_target): Don't inherit or default
10499 * target.h (struct target_ops) <to_trace_start>: Use
10500 TARGET_DEFAULT_NORETURN.
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10504 * target-delegates.c: Rebuild.
10505 * target.c (update_current_target): Don't inherit or default
10506 to_trace_set_readonly_regions.
10507 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10508 Use TARGET_DEFAULT_NORETURN.
10510 2014-02-19 Tom Tromey <tromey@redhat.com>
10512 * target-delegates.c: Rebuild.
10513 * target.c (update_current_target): Don't inherit or default
10514 to_disable_tracepoint.
10515 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10516 TARGET_DEFAULT_NORETURN.
10518 2014-02-19 Tom Tromey <tromey@redhat.com>
10520 * target-delegates.c: Rebuild.
10521 * target.c (update_current_target): Don't inherit or default
10522 to_enable_tracepoint.
10523 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10524 TARGET_DEFAULT_NORETURN.
10526 2014-02-19 Tom Tromey <tromey@redhat.com>
10528 * target-delegates.c: Rebuild.
10529 * target.c (update_current_target): Don't inherit or default
10530 to_download_trace_state_variable.
10531 * target.h (struct target_ops) <to_download_trace_state_variable>:
10532 Use TARGET_DEFAULT_NORETURN.
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10536 * target-delegates.c: Rebuild.
10537 * target.c (update_current_target): Don't inherit or default
10538 to_can_download_tracepoint.
10539 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10540 TARGET_DEFAULT_RETURN.
10542 2014-02-19 Tom Tromey <tromey@redhat.com>
10544 * target-delegates.c: Rebuild.
10545 * target.c (update_current_target): Don't inherit or default
10546 to_download_tracepoint.
10547 * target.h (struct target_ops) <to_download_tracepoint>: Use
10548 TARGET_DEFAULT_NORETURN.
10550 2014-02-19 Tom Tromey <tromey@redhat.com>
10552 * target-delegates.c: Rebuild.
10553 * target.c (update_current_target): Don't inherit or default
10555 * target.h (struct target_ops) <to_trace_init>: Use
10556 TARGET_DEFAULT_RETURN.
10558 2014-02-19 Tom Tromey <tromey@redhat.com>
10560 * target-delegates.c: Rebuild.
10561 * target.c (update_current_target): Don't inherit or default
10562 to_supports_string_tracing.
10563 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10564 TARGET_DEFAULT_RETURN.
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10568 * target-delegates.c: Rebuild.
10569 * target.c (update_current_target): Don't inherit or default
10570 to_supports_enable_disable_tracepoint.
10571 * target.h (struct target_ops)
10572 <to_supports_enable_disable_tracepoint>: 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_multi_process.
10580 * target.h (struct target_ops) <to_supports_multi_process>: Use
10581 TARGET_DEFAULT_RETURN.
10583 2014-02-19 Tom Tromey <tromey@redhat.com>
10585 * target-delegates.c: Rebuild.
10586 * target.c (update_current_target): Don't inherit or default
10587 to_get_ada_task_ptid.
10588 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10589 TARGET_DEFAULT_FUNC.
10591 2014-02-19 Tom Tromey <tromey@redhat.com>
10593 * target-delegates.c: Rebuild.
10594 * target.c (update_current_target): Don't inherit or default
10595 to_thread_architecture.
10596 * target.h (struct target_ops) <to_thread_architecture>: Use
10597 TARGET_DEFAULT_FUNC.
10599 2014-02-19 Tom Tromey <tromey@redhat.com>
10601 * target-delegates.c: Rebuild.
10602 * target.c (update_current_target): Don't inherit or default
10603 to_execution_direction.
10604 * target.h (struct target_ops) <to_execution_direction>: Use
10605 TARGET_DEFAULT_FUNC.
10607 2014-02-19 Tom Tromey <tromey@redhat.com>
10609 * target-delegates.c: Rebuild.
10610 * target.c (update_current_target): Don't inherit or default
10611 to_can_execute_reverse.
10612 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10613 TARGET_DEFAULT_RETURN.
10614 (target_can_execute_reverse): Unconditionally delegate.
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
10621 (dummy_goto_bookmark): Remove.
10622 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10623 * target.h (struct target_ops) <to_goto_bookmark>: Use
10624 TARGET_DEFAULT_NORETURN.
10626 2014-02-19 Tom Tromey <tromey@redhat.com>
10628 * target-delegates.c: Rebuild.
10629 * target.c (update_current_target): Don't inherit or default
10631 (dummy_get_bookmark): Remove.
10632 (init_dummy_target): Don't inherit or default to_get_bookmark.
10633 * target.h (struct target_ops) <to_get_bookmark>: Use
10634 TARGET_DEFAULT_NORETURN
10636 2014-02-19 Tom Tromey <tromey@redhat.com>
10638 * target-delegates.c: Rebuild.
10639 * target.c (update_current_target): Don't inherit or default
10640 to_make_corefile_notes.
10641 (init_dummy_target): Don't initialize to_make_corefile_notes.
10642 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10643 TARGET_DEFAULT_FUNC.
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_find_memory_regions.
10650 (init_dummy_target): Don't initialize to_find_memory_regions.
10651 * target.h (struct target_ops) <to_find_memory_regions>: 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
10659 * target.h (struct target_ops) <to_log_command>: Use
10660 TARGET_DEFAULT_IGNORE.
10661 (target_log_command): Unconditionally delegate.
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10665 * target-delegates.c: Rebuild.
10666 * target.c (update_current_target): Don't inherit or default
10667 to_pid_to_exec_file.
10668 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10669 TARGET_DEFAULT_RETURN.
10671 2014-02-19 Tom Tromey <tromey@redhat.com>
10673 * target-delegates.c: Rebuild.
10674 * target.c (update_current_target): Don't inherit or default
10676 (target_thread_name): Unconditionally delegate.
10677 * target.h (struct target_ops) <to_thread_name>: 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
10684 to_extra_thread_info.
10685 * target.h (struct target_ops) <to_extra_thread_info>: Use
10686 TARGET_DEFAULT_RETURN.
10688 2014-02-19 Tom Tromey <tromey@redhat.com>
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't inherit or default
10693 * target.h (struct target_ops) <to_has_exited>: Use
10694 TARGET_DEFAULT_RETURN..
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10698 * target-delegates.c: Rebuild.
10699 * target.c (update_current_target): Don't inherit or default
10700 to_set_syscall_catchpoint.
10701 (return_one): Remove.
10702 * target.h (struct target_ops) <to_set_syscall_catchpoint>: 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_insert_exec_catchpoint.
10710 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10711 TARGET_DEFAULT_RETURN.
10713 2014-01-08 Tom Tromey <tromey@redhat.com>
10715 * target-delegates.c: Rebuild.
10716 * target.c (update_current_target): Don't inherit or default
10717 to_insert_exec_catchpoint.
10718 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10719 TARGET_DEFAULT_RETURN.
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10723 * target-delegates.c: Rebuild.
10724 * target.c (update_current_target): Don't inherit or default
10725 to_remove_vfork_catchpoint.
10726 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10727 TARGET_DEFAULT_RETURN.
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10731 * target-delegates.c: Rebuild.
10732 * target.c (update_current_target): Don't inherit or default
10733 to_insert_vfork_catchpoint.
10734 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10735 TARGET_DEFAULT_RETURN.
10737 2014-02-19 Tom Tromey <tromey@redhat.com>
10739 * target-delegates.c: Rebuild.
10740 * target.c (update_current_target): Don't inherit or default
10741 to_remove_fork_catchpoint.
10742 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10743 TARGET_DEFAULT_RETURN.
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * target-delegates.c: Rebuild.
10748 * target.c (update_current_target): Don't inherit or default
10749 to_insert_fork_catchpoint.
10750 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10751 TARGET_DEFAULT_RETURN.
10753 2014-02-19 Tom Tromey <tromey@redhat.com>
10755 * target-delegates.c: Rebuild.
10756 * target.c (update_current_target): Don't inherit or default
10757 to_post_startup_inferior.
10758 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10759 TARGET_DEFAULT_IGNORE.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target-delegates.c: Rebuild.
10764 * target.c (update_current_target): Don't inherit or default
10766 * target.h (struct target_ops) <to_load>: Use
10767 TARGET_DEFAULT_NORETURN.
10769 2014-02-19 Tom Tromey <tromey@redhat.com>
10771 * target-delegates.c: Rebuild.
10772 * target.c (update_current_target): Don't inherit or default
10774 * target.h (struct target_ops) <to_terminal_info>: Use
10775 TARGET_DEFAULT_FUNC.
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10779 * target-delegates.c: Rebuild.
10780 * target.c (update_current_target): Don't inherit or default
10781 to_terminal_save_ours.
10782 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10783 TARGET_DEFAULT_IGNORE.
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10787 * target-delegates.c: Rebuild.
10788 * target.c (update_current_target): Don't inherit or default
10790 * target.h (struct target_ops) <to_terminal_ours>: Use
10791 TARGET_DEFAULT_IGNORE.
10793 2014-02-19 Tom Tromey <tromey@redhat.com>
10795 * target-delegates.c: Rebuild.
10796 * target.c (update_current_target): Don't inherit or default
10797 to_terminal_ours_for_output.
10798 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10799 TARGET_DEFAULT_IGNORE.
10801 2014-02-19 Tom Tromey <tromey@redhat.com>
10803 * target-delegates.c: Rebuild.
10804 * target.c (update_current_target): Don't inherit or default
10805 to_terminal_inferior.
10806 * target.h (struct target_ops) <to_terminal_inferior>: Use
10807 TARGET_DEFAULT_IGNORE.
10809 2014-02-19 Tom Tromey <tromey@redhat.com>
10811 * target-delegates.c: Rebuild.
10812 * target.c (update_current_target): Don't inherit or default
10814 * target.h (struct target_ops) <to_terminal_init>: Use
10815 TARGET_DEFAULT_IGNORE.
10817 2014-02-19 Tom Tromey <tromey@redhat.com>
10819 * target-delegates.c: Rebuild.
10820 * target.c (update_current_target): Don't inherit or default
10821 to_can_accel_watchpoint_condition.
10822 * target.h (struct target_ops)
10823 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10825 2014-02-19 Tom Tromey <tromey@redhat.com>
10827 * target-delegates.c: Rebuild.
10828 * target.c (update_current_target): Don't inherit or default
10829 to_region_ok_for_hw_watchpoint.
10830 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10831 Use TARGET_DEFAULT_FUNC.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target-delegates.c: Rebuild.
10836 * target.c (update_current_target): Don't inherit or default
10837 to_watchpoint_addr_within_range.
10838 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10839 Use TARGET_DEFAULT_FUNC.
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10843 * target-delegates.c: Rebuild.
10844 * target.c (update_current_target): Don't inherit or default
10845 to_remove_watchpoint.
10846 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10847 TARGET_DEFAULT_NORETURN.
10849 2014-02-19 Tom Tromey <tromey@redhat.com>
10851 * target-delegates.c: Rebuild.
10852 * target.c (update_current_target): Don't inherit or default
10853 to_insert_watchpoint.
10854 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10855 TARGET_DEFAULT_RETURN.
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10859 * target-delegates.c: Rebuild.
10860 * target.c (update_current_target): Don't inherit or default
10861 to_remove_hw_breakpoint.
10862 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10863 TARGET_DEFAULT_RETURN.
10865 2014-02-19 Tom Tromey <tromey@redhat.com>
10867 * target-delegates.c: Rebuild.
10868 * target.c (update_current_target): Don't inherit or default
10869 to_insert_hw_breakpoint.
10870 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10871 TARGET_DEFAULT_RETURN.
10873 2014-02-19 Tom Tromey <tromey@redhat.com>
10875 * target-delegates.c: Rebuild.
10876 * target.c (update_current_target): Don't inherit or default
10877 to_can_use_hw_breakpoint.
10878 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10879 TARGET_DEFAULT_RETURN.
10881 2014-02-19 Tom Tromey <tromey@redhat.com>
10883 * target-delegates.c: Rebuild.
10884 * target.c (update_current_target): Don't inherit or default
10886 * target.h (struct target_ops) <to_files_info>: Use
10887 TARGET_DEFAULT_IGNORE.
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10891 * target-delegates.c: Rebuild.
10892 * target.c (update_current_target): Don't inherit or default
10894 * target.h (struct target_ops) <to_store>: Use
10895 TARGET_DEFAULT_NORETURN.
10897 2014-02-19 Tom Tromey <tromey@redhat.com>
10899 * target-delegates.c: Rebuild.
10900 * target.c (update_current_target): Don't inherit or default
10902 * target.h (struct target_ops) <to_post_attach>: Use
10903 TARGET_DEFAULT_IGNORE.
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target-delegates.c: Rebuild.
10908 * target.c (update_current_target): Don't inherit or default
10910 (default_rcmd): New function.
10911 (do_monitor_command): Unconditionally delegate.
10912 * target.h (struct target_ops) <to_rmcd>: Use
10913 TARGET_DEFAULT_FUNC.
10915 2014-02-19 Tom Tromey <tromey@redhat.com>
10917 * target-delegates.c: Rebuild.
10918 * target.c (init_dummy_target): Don't initialize to_attach.
10919 (target_attach): Unconditionally delegate.
10920 * target.h (struct target_ops) <to_attach>: Use
10921 TARGET_DEFAULT_FUNC.
10923 2014-02-19 Tom Tromey <tromey@redhat.com>
10925 * target-delegates.c: Rebuild.
10926 * target.c (target_detach): Unconditionally delegate.
10927 (init_dummy_target): Don't initialize to_detach.
10928 * target.h (struct target_ops) <to_detach>: Use
10929 TARGET_DEFAULT_IGNORE.
10931 2014-02-19 Tom Tromey <tromey@redhat.com>
10933 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10935 (target_augmented_libraries_svr4_read): Add argument.
10936 * target.c (update_current_target): Update.
10937 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target.h (struct target_ops) <to_call_history_range>: Add
10944 * target.c (target_call_history_range): Add argument.
10945 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10947 (record_btrace_call_history_from): Update.
10949 2014-02-19 Tom Tromey <tromey@redhat.com>
10951 * target.h (struct target_ops) <to_call_history_from>: Add
10953 * target.c (target_call_history_from): Add argument.
10954 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10957 2014-02-19 Tom Tromey <tromey@redhat.com>
10959 * target.h (struct target_ops) <to_call_history>: Add argument.
10960 * target.c (target_call_history): Add argument.
10961 * record-btrace.c (record_btrace_call_history): Add 'self'
10964 2014-02-19 Tom Tromey <tromey@redhat.com>
10966 * target.h (struct target_ops) <to_insn_history_range>: Add
10968 * target.c (target_insn_history_range): Add argument.
10969 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10971 (record_btrace_insn_history_from): Update.
10973 2014-02-19 Tom Tromey <tromey@redhat.com>
10975 * target.h (struct target_ops) <to_insn_history_from>: Add
10977 * target.c (target_insn_history_from): Add argument.
10978 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10981 2014-02-19 Tom Tromey <tromey@redhat.com>
10983 * target.h (struct target_ops) <to_insn_history>: Add argument.
10984 * target.c (target_insn_history): Add argument.
10985 * record-btrace.c (record_btrace_insn_history): Add 'self'
10988 2014-02-19 Tom Tromey <tromey@redhat.com>
10990 * target.h (struct target_ops) <to_goto_record>: Add argument.
10991 * target.c (target_goto_record): Add argument.
10992 * record-full.c (record_full_goto): Add 'self' argument.
10993 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10997 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10998 * target.c (target_goto_record_end): Add argument.
10999 * record-full.c (record_full_goto_end): Add 'self' argument.
11000 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11002 2014-02-19 Tom Tromey <tromey@redhat.com>
11004 * target.h (struct target_ops) <to_goto_record_begin>: Add
11006 * target.c (target_goto_record_begin): Add argument.
11007 * record-full.c (record_full_goto_begin): Add 'self' argument.
11008 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11013 * target.h (struct target_ops) <to_record_is_replaying>: Add
11015 * target.c (target_record_is_replaying): Add argument.
11016 * record-full.c (record_full_is_replaying): Add 'self' argument.
11017 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11019 (record_btrace_xfer_partial, record_btrace_store_registers)
11020 (record_btrace_prepare_to_store, record_btrace_resume)
11021 (record_btrace_wait, record_btrace_decr_pc_after_break)
11022 (record_btrace_find_new_threads, record_btrace_thread_alive):
11025 2014-02-19 Tom Tromey <tromey@redhat.com>
11027 * target.h (struct target_ops) <to_delete_record>: Add argument.
11028 * target.c (target_delete_record): Add argument.
11029 * record-full.c (record_full_delete): Add 'self' argument.
11031 2014-02-19 Tom Tromey <tromey@redhat.com>
11033 * target.h (struct target_ops) <to_save_record>: Add argument.
11034 * target.c (target_save_record): Add argument.
11035 * record-full.c (record_full_save): Add 'self' argument.
11036 (record_full_save): Add 'self' argument.
11038 2014-02-19 Tom Tromey <tromey@redhat.com>
11040 * target.h (struct target_ops) <to_info_record>: Add argument.
11041 * target.c (target_info_record): Add argument.
11042 * record.c (info_record_command): Add argument.
11043 * record-full.c (record_full_info): Add 'self' argument.
11044 * record-btrace.c (record_btrace_info): Add 'self' argument.
11046 2014-02-19 Tom Tromey <tromey@redhat.com>
11048 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11049 * target.c (target_stop_recording): Add argument.
11050 * record.c (record_stop): Add argument.
11051 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11054 2014-02-19 Tom Tromey <tromey@redhat.com>
11056 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11057 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11058 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11060 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11061 (_initialize_amd64_linux_nat): Use it.
11062 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11063 (_initialize_i386_linux_nat): Use it.
11065 2014-02-19 Tom Tromey <tromey@redhat.com>
11067 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11068 * target.c (target_teardown_btrace): Add argument.
11069 * remote.c (remote_teardown_btrace): Add 'self' argument.
11070 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11072 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11077 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11078 * target.c (target_disable_btrace): Add argument.
11079 * remote.c (remote_disable_btrace): Add 'self' argument.
11080 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11082 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11087 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11088 * target.c (target_enable_btrace): Add argument.
11089 * remote.c (remote_enable_btrace): Add 'self' argument.
11090 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11092 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11095 2014-02-19 Tom Tromey <tromey@redhat.com>
11097 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11098 (target_can_use_agent): Add argument.
11099 * target.c (update_current_target): Update.
11100 * remote.c (remote_can_use_agent): Add 'self' argument.
11101 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11103 2014-02-19 Tom Tromey <tromey@redhat.com>
11105 * target.h (struct target_ops) <to_use_agent>: Add argument.
11106 (target_use_agent): Add argument.
11107 * target.c (update_current_target): Update.
11108 * remote.c (remote_use_agent): Add 'self' argument.
11109 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11111 2014-02-19 Tom Tromey <tromey@redhat.com>
11113 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11114 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11115 (target_traceframe_info): Add argument.
11116 * target.c (update_current_target): Update.
11117 * remote.c (remote_traceframe_info): Add 'self' argument.
11118 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11120 2014-02-19 Tom Tromey <tromey@redhat.com>
11122 * target.h (target_static_tracepoint_markers_by_strid): Add
11124 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11126 * target.c (update_current_target): Update.
11127 * remote.c (struct target_ops)
11128 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11129 * linux-nat.c (struct target_ops)
11130 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11134 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11136 (target_static_tracepoint_marker_at): Add argument.
11137 * target.c (update_current_target): Update.
11138 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11143 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11144 (target_set_permissions): Add argument.
11145 * target.c (update_current_target): Update.
11146 * remote.c (remote_set_permissions): Add 'self' argument.
11147 (remote_start_remote): Update.
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11151 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11152 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11153 (target_get_tib_address): Add argument.
11154 * target.c (update_current_target): Update.
11155 * remote.c (remote_get_tib_address): Add 'self' argument.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11160 (target_set_trace_notes): Add argument.
11161 * target.c (update_current_target): Update.
11162 * remote.c (remote_set_trace_notes): Add 'self' argument.
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11168 (target_set_trace_buffer_size): Add argument.
11169 * target.c (update_current_target): Update.
11170 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11174 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11176 (target_set_circular_trace_buffer): Add argument.
11177 * target.c (update_current_target): Update.
11178 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11185 (target_set_disconnected_tracing): Add argument.
11186 * target.c (update_current_target): Update.
11187 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11191 * target.h (struct target_ops)
11192 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11193 (target_get_min_fast_tracepoint_insn_len): Add argument.
11194 * target.c (update_current_target): Update.
11195 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11200 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11202 (target_get_raw_trace_data): Add argument.
11203 * target.c (update_current_target): Update.
11204 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11208 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11210 (target_upload_trace_state_variables): Add argument.
11211 * target.c (update_current_target): Update.
11212 * remote.c (remote_upload_trace_state_variables): Add 'self'
11214 (remote_start_remote): Update.
11216 2014-02-19 Tom Tromey <tromey@redhat.com>
11218 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11220 (target_upload_tracepoints): Add argument.
11221 * target.c (update_current_target): Update.
11222 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11223 (remote_start_remote): Update.
11225 2014-02-19 Tom Tromey <tromey@redhat.com>
11227 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11228 (target_save_trace_data): Add argument.
11229 * target.c (update_current_target): Update.
11230 * remote.c (remote_save_trace_data): Add 'self' argument.
11232 2014-02-19 Tom Tromey <tromey@redhat.com>
11234 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11236 * target.h (struct target_ops)
11237 <to_get_trace_state_variable_value>: Add argument.
11238 (target_get_trace_state_variable_value): Add argument.
11239 * target.c (update_current_target): Update.
11240 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11242 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11244 2014-02-19 Tom Tromey <tromey@redhat.com>
11246 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11247 * target.h (struct target_ops) <to_trace_find>: Add argument.
11248 (target_trace_find): Add argument.
11249 * target.c (update_current_target): Update.
11250 * remote.c (remote_trace_find): Add 'self' argument.
11251 * ctf.c (ctf_trace_find): Add 'self' argument.
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11256 (target_trace_stop): Add argument.
11257 * target.c (update_current_target): Update.
11258 * remote.c (remote_trace_stop): Add 'self' argument.
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11262 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11263 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11265 (target_get_tracepoint_status): Add argument.
11266 * target.c (update_current_target): Update.
11267 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11271 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11272 * target.h (struct target_ops) <to_get_trace_status>: Add
11274 (target_get_trace_status): Add argument.
11275 * target.c (update_current_target): Update.
11276 * remote.c (remote_get_trace_status): Add 'self' argument.
11277 (remote_start_remote, remote_can_download_tracepoint): Update.
11278 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11280 2014-02-19 Tom Tromey <tromey@redhat.com>
11282 * target.h (struct target_ops) <to_trace_start>: Add argument.
11283 (target_trace_start): Add argument.
11284 * target.c (update_current_target): Update.
11285 * remote.c (remote_trace_start): Add 'self' argument.
11287 2014-02-19 Tom Tromey <tromey@redhat.com>
11289 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11291 (target_trace_set_readonly_regions): Add argument.
11292 * target.c (update_current_target): Update.
11293 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11300 (target_disable_tracepoint): Add argument.
11301 * target.c (update_current_target): Update.
11302 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11306 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11308 (target_enable_tracepoint): Add argument.
11309 * target.c (update_current_target): Update.
11310 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11314 * target.h (struct target_ops) <to_download_trace_state_variable>:
11316 (target_download_trace_state_variable): Add argument.
11317 * target.c (update_current_target): Update.
11318 * remote.c (remote_download_trace_state_variable): Add 'self'
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11323 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11325 (target_can_download_tracepoint): Add argument.
11326 * target.c (update_current_target): Update.
11327 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11331 * target.h (struct target_ops) <to_download_tracepoint>: Add
11333 (target_download_tracepoint): Add argument.
11334 * target.c (update_current_target): Update.
11335 * remote.c (remote_download_tracepoint): Add 'self' argument.
11337 2014-02-19 Tom Tromey <tromey@redhat.com>
11339 * target.h (struct target_ops) <to_trace_init>: Add argument.
11340 (target_trace_init): Add argument.
11341 * target.c (update_current_target): Update.
11342 * remote.c (remote_trace_init): Add 'self' argument.
11344 2014-02-19 Tom Tromey <tromey@redhat.com>
11346 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11347 * target.c (target_fileio_readlink): Add argument.
11348 * remote.c (remote_hostio_readlink): Add 'self' argument.
11349 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11353 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11354 * target.c (target_fileio_unlink): Add argument.
11355 * remote.c (remote_hostio_unlink): Add 'self' argument.
11356 (remote_file_delete): Update.
11357 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11361 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11362 * target.c (target_fileio_close): Add argument.
11363 * remote.c (remote_hostio_close): Add 'self' argument.
11364 (remote_hostio_close_cleanup): Update.
11365 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11367 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11369 2014-02-19 Tom Tromey <tromey@redhat.com>
11371 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11372 * target.c (target_fileio_pread): Add argument.
11373 * remote.c (remote_hostio_pread): Add 'self' argument.
11374 (remote_bfd_iovec_pread, remote_file_get): Update.
11375 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11377 2014-02-19 Tom Tromey <tromey@redhat.com>
11379 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11380 * target.c (target_fileio_pwrite): Add argument.
11381 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11382 (remote_file_put): Update.
11383 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11387 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11388 * target.c (target_fileio_open): Add argument.
11389 * remote.c (remote_hostio_open): Add 'self' argument.
11390 (remote_bfd_iovec_open): Add 'self' argument.
11391 (remote_file_put): Add 'self' argument.
11392 (remote_file_get): Add 'self' argument.
11393 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11395 2014-02-19 Tom Tromey <tromey@redhat.com>
11397 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11399 (target_can_run_breakpoint_commands): Add argument.
11400 * target.c (update_current_target): Update.
11401 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11403 (remote_insert_breakpoint): Add 'self' argument.
11404 (remote_insert_hw_breakpoint): Add 'self' argument.
11405 (remote_can_run_breakpoint_commands): Add 'self' argument.
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11409 * target.h (struct target_ops)
11410 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11411 (target_supports_evaluation_of_breakpoint_conditions): Add
11413 * target.c (update_current_target): Update.
11414 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11416 (remote_insert_breakpoint): Add 'self' argument.
11417 (remote_insert_hw_breakpoint): Add 'self' argument.
11418 (remote_supports_cond_breakpoints): Add 'self' argument.
11420 2014-02-19 Tom Tromey <tromey@redhat.com>
11422 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11424 (target_supports_string_tracing): Add argument.
11425 * target.c (update_current_target): Update.
11426 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11428 2014-02-19 Tom Tromey <tromey@redhat.com>
11430 * target.h (struct target_ops)
11431 <to_supports_disable_randomization>: Add argument.
11432 * target.c (find_default_supports_disable_randomization): Add
11434 (target_supports_disable_randomization): Add argument.
11435 (find_default_supports_disable_randomization): Add 'self'
11437 * remote.c (extended_remote_supports_disable_randomization): Add
11439 (remote_supports_disable_randomization): Add 'self' argument.
11440 (extended_remote_create_inferior): Update.
11441 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11444 2014-02-19 Tom Tromey <tromey@redhat.com>
11446 * target.h (struct target_ops)
11447 <to_supports_enable_disable_tracepoint>: Add argument.
11448 (target_supports_enable_disable_tracepoint): Add argument.
11449 * target.c (update_current_target): Update.
11450 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11455 * target.h (struct target_ops) <to_supports_multi_process>: Add
11457 (target_supports_multi_process): Add argument.
11458 * target.c (update_current_target): Update.
11459 * remote.c (remote_supports_multi_process): Add 'self' argument.
11460 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11462 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11467 * target.h (struct target_ops) <to_execution_direction>: Add
11469 (target_execution_direction): Add argument.
11470 * target.c (default_execution_direction): Add 'self' argument.
11471 * record-full.c (record_full_execution_direction): Add 'self'
11474 2014-02-19 Tom Tromey <tromey@redhat.com>
11476 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11478 (target_can_execute_reverse): Add argument.
11479 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11480 * record-full.c (record_full_can_execute_reverse): Add 'self'
11482 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11485 2014-02-19 Tom Tromey <tromey@redhat.com>
11487 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11488 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11490 (target_get_ada_task_ptid): Add argument.
11491 * target.c (update_current_target): Update.
11492 (default_get_ada_task_ptid): Add 'self' argument.
11493 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11494 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11495 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11497 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11499 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11501 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11503 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11504 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11507 2014-02-19 Tom Tromey <tromey@redhat.com>
11509 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11510 (target_goto_bookmark): Add argument.
11511 * target.c (dummy_goto_bookmark): Add 'self' argument.
11512 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11517 (target_get_bookmark): Add argument.
11518 * target.c (dummy_get_bookmark): Add 'self' argument.
11519 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11521 2014-02-19 Tom Tromey <tromey@redhat.com>
11523 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11525 (target_make_corefile_notes): Add argument.
11526 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11527 * procfs.c (procfs_make_note_section): Add 'self' argument.
11528 (procfs_make_note_section): Add 'self' argument.
11529 (procfs_make_note_section): Add 'self' argument.
11530 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11532 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11533 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11534 * exec.c (exec_make_note_section): Add 'self' argument.
11535 (exec_make_note_section): Add 'self' argument.
11537 2014-02-19 Tom Tromey <tromey@redhat.com>
11539 * target.h (struct target_ops) <to_find_memory_regions>: Add
11541 (target_find_memory_regions): Add argument.
11542 * target.c (dummy_find_memory_regions): Add 'self' argument.
11543 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11544 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11545 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11546 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11547 * exec. (exec_do_find_memory_regions): New global.
11548 (exec_set_find_memory_regions): Rewrite.
11549 (exec_find_memory_regions): New function.
11550 (init_exec_ops): Use exec_find_memory_regions.
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11554 * target.h (struct target_ops) <to_supports_non_stop>: Add
11556 * target.c (find_default_supports_non_stop): Add argument.
11557 (target_supports_non_stop): Add argument.
11558 (find_default_supports_non_stop): Add 'self' argument.
11559 * remote.c (remote_supports_non_stop): Add 'self' argument.
11560 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11562 2014-02-19 Tom Tromey <tromey@redhat.com>
11564 * target.h (struct target_ops) <to_log_command>: Add argument.
11565 (target_log_command): Add argument.
11566 * serial.h (serial_log_command): Add 'self' argument.
11567 * serial.c (serial_log_command): Add 'self' argument.
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11571 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11572 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11574 (target_pid_to_exec_file): Add argument.
11575 * target.c (debug_to_pid_to_exec_file): Add argument.
11576 (update_current_target): Update.
11577 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11578 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11579 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11580 (linux_handle_extended_wait): Update.
11581 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11582 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11583 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11584 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11588 * target.h (struct target_ops) <to_rcmd>: Add argument.
11589 (target_rcmd): Add argument.
11590 * target.c (debug_to_rcmd): Add argument.
11591 (update_current_target, do_monitor_command): Update.
11592 * remote.c (remote_rcmd): Add 'self' argument.
11593 * monitor.c (monitor_rcmd): Add 'self' argument.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * windows-nat.c (windows_stop): Add 'self' argument.
11598 * target.h (struct target_ops) <to_stop>: Add argument.
11599 * target.c (target_stop): Add argument.
11600 (debug_to_stop): Add argument.
11601 (update_current_target): Update.
11602 * remote.c (remote_stop): Add 'self' argument.
11603 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11604 (gdbsim_cntrl_c): Update.
11605 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11606 * procfs.c (procfs_stop): Add 'self' argument.
11607 * nto-procfs.c (procfs_stop): Add 'self' argument.
11608 * monitor.c (monitor_stop): Add 'self' argument.
11609 (monitor_open): Update.
11610 * linux-nat.c (linux_nat_stop): Add argument.
11611 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11612 * gnu-nat.c (gnu_stop): Add 'self' argument.
11613 * darwin-nat.c (darwin_stop): Add 'self' argument.
11615 2014-02-19 Tom Tromey <tromey@redhat.com>
11617 * target.h (struct target_ops) <to_thread_name>: Add argument.
11618 * target.c (target_thread_name): Add argument.
11619 (update_current_target): Update.
11620 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11622 2014-02-19 Tom Tromey <tromey@redhat.com>
11624 * target.h (struct target_ops) <to_extra_thread_info>: Add
11626 (target_extra_thread_info): Add argument.
11627 * target.c (update_current_target): Update.
11628 * remote.c (remote_threads_extra_info): Add 'self' argument.
11629 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11631 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11632 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11633 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11635 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11637 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11639 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11642 2014-02-19 Tom Tromey <tromey@redhat.com>
11644 * target.h (struct target_ops) <to_program_signals>: Add argument.
11645 * target.c (target_program_signals): Add argument.
11646 * remote.c (remote_program_signals): Add 'self' argument.
11648 2014-02-19 Tom Tromey <tromey@redhat.com>
11650 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11651 * target.c (target_pass_signals): Add argument.
11652 * remote.c (remote_pass_signals): Add 'self' argument.
11653 (remote_start_remote): Update.
11654 * procfs.c (procfs_pass_signals): Add 'self' argument.
11655 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11656 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11657 (linux_nat_create_inferior, linux_nat_attach): Update.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * windows-nat.c (windows_can_run): Add 'self' argument.
11662 * target.h (struct target_ops) <to_can_run>: Add argument.
11663 (target_can_run): Add argument.
11664 * target.c (debug_to_can_run): Add argument.
11665 (update_current_target): Update.
11666 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11667 * inf-child.c (inf_child_can_run): Add 'self' argument.
11668 * go32-nat.c (go32_can_run): Add 'self' argument.
11670 2014-02-19 Tom Tromey <tromey@redhat.com>
11672 * target.h (struct target_ops) <to_has_exited>: Add argument.
11673 (target_has_exited): Add argument.
11674 * target.c (debug_to_has_exited): Add argument.
11675 (update_current_target): Update.
11677 2014-02-19 Tom Tromey <tromey@redhat.com>
11679 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11681 (target_set_syscall_catchpoint): Add argument.
11682 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11684 * target.c (update_current_target): Update.
11686 2014-02-19 Tom Tromey <tromey@redhat.com>
11688 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11690 (target_remove_exec_catchpoint): Add argument.
11691 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11692 (update_current_target): Update.
11693 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11696 2014-02-19 Tom Tromey <tromey@redhat.com>
11698 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11700 (target_insert_exec_catchpoint): Add argument.
11701 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11702 (update_current_target): Update.
11703 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11706 2014-02-19 Tom Tromey <tromey@redhat.com>
11708 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11710 (target_remove_vfork_catchpoint): Add argument.
11711 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11712 (update_current_target): Update.
11713 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11716 2014-02-19 Tom Tromey <tromey@redhat.com>
11718 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11720 (target_insert_vfork_catchpoint): Add argument.
11721 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11722 (update_current_target): Update.
11723 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11726 2014-02-19 Tom Tromey <tromey@redhat.com>
11728 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11730 (target_remove_fork_catchpoint): Add argument.
11731 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11732 (update_current_target): Update.
11733 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11736 2014-02-19 Tom Tromey <tromey@redhat.com>
11738 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11740 (target_insert_fork_catchpoint): Add argument.
11741 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11742 (update_current_target): Update.
11743 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11746 2014-02-19 Tom Tromey <tromey@redhat.com>
11748 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11750 (target_post_startup_inferior): Add argument.
11751 * target.c (debug_to_post_startup_inferior): Add argument.
11752 (update_current_target): Update.
11753 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11755 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11757 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11759 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11761 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11763 (super_post_startup_inferior): Likewise.
11764 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11766 (super_post_startup_inferior): Likewise.
11767 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11768 Add 'self' argument.
11769 (super_post_startup_inferior): Likewise.
11771 2014-02-19 Tom Tromey <tromey@redhat.com>
11773 * target.h (struct target_ops) <to_load>: Add argument.
11774 * target.c (target_load): Add argument.
11775 (debug_to_load): Add argument.
11776 (update_current_target): Update.
11777 * remote.c (remote_load): Add 'self' argument.
11778 * remote-sim.c (gdbsim_load): Add 'self' argument.
11779 * remote-mips.c (mips_load): Add 'self' argument.
11780 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11781 * monitor.c (monitor_load): Add 'self' argument.
11782 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11784 2014-02-19 Tom Tromey <tromey@redhat.com>
11786 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11787 (target_terminal_info): Add argument.
11788 * target.c (debug_to_terminal_info): Add argument.
11789 (default_terminal_info): Likewise.
11790 * inflow.c (child_terminal_info): Add 'self' argument.
11791 * inferior.h (child_terminal_info): Add 'self' argument.
11792 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11794 2014-02-19 Tom Tromey <tromey@redhat.com>
11796 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11798 (target_terminal_save_ours): Add argument.
11799 * target.c (debug_to_terminal_save_ours): Add argument.
11800 (update_current_target): Update.
11801 * inflow.c (terminal_save_ours): Add 'self' argument.
11802 * inferior.h (terminal_save_ours): Add 'self' argument.
11804 2014-02-19 Tom Tromey <tromey@redhat.com>
11806 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11807 (target_terminal_ours): Add argument.
11808 * target.c (debug_to_terminal_ours): Add argument.
11809 (update_current_target): Update.
11810 * remote.c (remote_terminal_ours): Add 'self' argument.
11811 (remote_close): Update.
11812 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11813 * inflow.c (terminal_ours): Add 'self' argument.
11814 * inferior.h (terminal_ours): Add 'self' argument.
11815 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11817 2014-02-19 Pedro Alves <palves@redhat.com>
11818 Tom Tromey <tromey@redhat.com>
11820 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11822 (target_terminal_ours_for_output): Add argument.
11823 * target.c (debug_to_terminal_ours_for_output): Add argument.
11824 (update_current_target): Update.
11825 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11826 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11827 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11831 * target.h (struct target_ops) <to_terminal_inferior>: Add
11833 * target.c (target_terminal_inferior): Add argument.
11834 (update_current_target): Update.
11835 * remote.c (remote_terminal_inferior): Add 'self' argument.
11836 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11837 * inflow.c (terminal_inferior): Add 'self' argument.
11838 * inferior.h (terminal_inferior): Add 'self' argument.
11839 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11840 (go32_terminal_inferior): Add 'self' argument.
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11844 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11845 (target_terminal_init): Add argument.
11846 * target.c (debug_to_terminal_init): Add argument.
11847 (update_current_target): Update.
11848 * inflow.c (terminal_init_inferior): Add 'self' argument.
11849 * inferior.h (terminal_init_inferior): Add 'self' argument.
11850 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11851 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * target.h (struct target_ops)
11856 <to_can_accel_watchpoint_condition>: Add argument.
11857 (target_can_accel_watchpoint_condition): Add argument.
11858 * target.c (debug_to_can_accel_watchpoint_condition): Add
11860 (update_current_target): Update.
11861 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11864 2014-02-19 Tom Tromey <tromey@redhat.com>
11866 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11868 (target_region_ok_for_hw_watchpoint): Add argument.
11869 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11870 (default_region_ok_for_hw_watchpoint): Add argument.
11871 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11872 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11874 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11876 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11878 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11880 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11882 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11884 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11885 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11887 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11888 Add 'self' argument.
11890 2014-02-19 Tom Tromey <tromey@redhat.com>
11892 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11894 (target_insert_watchpoint): Add argument.
11895 * target.c (debug_to_insert_watchpoint): Add argument.
11896 (update_current_target): Update.
11897 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11898 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11899 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11900 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11901 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11902 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11904 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11905 (procfs_insert_hw_watchpoint): Add 'self' argument.
11906 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11908 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11910 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11912 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11913 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11915 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11920 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11922 (target_remove_watchpoint): Add argument.
11923 * target.c (debug_to_remove_watchpoint): Add argument.
11924 (update_current_target): Update.
11925 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11926 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11927 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11928 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11929 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11930 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11932 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11933 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11935 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11937 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11939 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11940 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11942 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11945 2014-02-19 Tom Tromey <tromey@redhat.com>
11947 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11949 (target_remove_hw_breakpoint): Add argument.
11950 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11951 (update_current_target): Update.
11952 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11953 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11955 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11956 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11958 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11961 2014-02-19 Tom Tromey <tromey@redhat.com>
11963 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11965 (target_insert_hw_breakpoint): Add argument.
11966 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11967 (update_current_target): Update.
11968 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11969 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11971 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11972 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11973 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11975 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11978 2014-02-19 Tom Tromey <tromey@redhat.com>
11980 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11982 (target_can_use_hardware_watchpoint): Add argument.
11983 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11984 (update_current_target): Update.
11985 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11987 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11989 * remote.c (remote_check_watch_resources): Add 'self' argument.
11990 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11991 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11993 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11994 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11996 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11998 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12000 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12002 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12004 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12006 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12007 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12009 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12014 * target.h (struct target_ops) <to_post_attach>: Add argument.
12015 (target_post_attach): Add argument.
12016 * target.c (debug_to_post_attach): Add argument.
12017 (update_current_target): Update.
12018 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12019 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12020 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12021 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12022 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12024 2014-02-19 Tom Tromey <tromey@redhat.com>
12026 * windows-nat.c (windows_close): Add 'self' argument.
12027 * tracepoint.c (tfile_close): Add 'self' argument.
12028 * target.h (struct target_ops) <to_close>: Add argument.
12029 * target.c (target_close): Add argument.
12030 (update_current_target): Update.
12031 * remote.c (remote_close): Add 'self' argument.
12032 * remote-sim.c (gdbsim_close): Add 'self' argument.
12033 * remote-mips.c (mips_close): Add 'self' argument.
12034 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12035 * record-full.c (record_full_close): Add 'self' argument.
12036 * record-btrace.c (record_btrace_close): Add 'self' argument.
12037 * monitor.h (monitor_close): Add 'self' argument.
12038 * monitor.c (monitor_close): Add 'self' argument.
12039 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12040 * linux-nat.c (linux_nat_close): Add argument.
12041 * go32-nat.c (go32_close): Add 'self' argument.
12042 * exec.c (exec_close_1): Add 'self' argument.
12043 * ctf.c (ctf_close): Add 'self' argument.
12044 * corelow.c (core_close): Add 'self' argument.
12045 (core_close_cleanup): Update.
12046 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12047 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12051 * remote.c (remote_load): New function.
12052 (init_remote_ops): Use it.
12054 2014-02-19 Tom Tromey <tromey@redhat.com>
12056 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12058 * common/linux-btrace.h (linux_supports_btrace): Update.
12059 * remote.c (remote_supports_btrace): Add "self" argument.
12060 * target-delegates.c: Rebuild.
12061 * target.c (target_supports_btrace): Remove.
12062 * target.h (struct target_ops) <to_supports_btrace>: Add
12063 target_ops argument.
12064 (target_supports_btrace): New define.
12066 2014-02-19 Tom Tromey <tromey@redhat.com>
12068 * record-full.c (record_full_beneath_to_resume_ops)
12069 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12070 (record_full_beneath_to_wait)
12071 (record_full_beneath_to_store_registers_ops)
12072 (record_full_beneath_to_store_registers)
12073 (record_full_beneath_to_xfer_partial_ops)
12074 (record_full_beneath_to_xfer_partial)
12075 (record_full_beneath_to_insert_breakpoint_ops)
12076 (record_full_beneath_to_insert_breakpoint)
12077 (record_full_beneath_to_remove_breakpoint_ops)
12078 (record_full_beneath_to_remove_breakpoint)
12079 (record_full_beneath_to_stopped_by_watchpoint)
12080 (record_full_beneath_to_stopped_data_address)
12081 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12082 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12083 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12084 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12085 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12086 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12087 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12088 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12089 (record_full_resume, record_full_wait_1)
12090 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12091 (record_full_store_registers, record_full_xfer_partial)
12092 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12093 (record_full_async, record_full_core_xfer_partial): Use target
12095 * target-delegates.c: Rebuild.
12096 * target.c (current_xfer_partial): Remove.
12097 (update_current_target): Do not INHERIT or de_fault
12098 to_insert_breakpoint, to_remove_breakpoint,
12099 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12100 to_is_async_p, to_async. Do not set to_xfer_partial field.
12101 (default_xfer_partial): Simplify.
12102 (current_xfer_partial): Remove.
12103 (target_wait, target_resume): Simplify.
12104 (find_default_can_async_p, find_default_is_async_p): Update.
12105 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12106 to_xfer_partial, to_stopped_by_watchpoint,
12107 to_stopped_data_address.
12108 (target_store_registers): Simplify.
12109 (forward_target_remove_breakpoint)
12110 (forward_target_insert_breakpoint): Remove.
12111 (target_remove_breakpoint, target_insert_breakpoint)
12112 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12113 * target.h (struct target_ops) <to_resume, to_wait,
12114 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12115 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12116 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12118 (forward_target_remove_breakpoint)
12119 (forward_target_insert_breakpoint): Remove.
12120 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12122 (record_btrace_insert_breakpoint): Delegate directly.
12124 2014-02-19 Tom Tromey <tromey@redhat.com>
12127 * target-delegates.c: New file.
12128 * target.c: Include target-delegates.c.
12129 (init_dummy_target): Call install_dummy_methods.
12130 (complete_target_initialization): Call install_delegators.
12131 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12132 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12133 * make-target-delegates: New file.
12135 2014-02-19 Tom Tromey <tromey@redhat.com>
12137 * record.c (find_record_target): Use find_target_at.
12138 * target.c (find_target_at): New function.
12139 * target.h (find_target_at): Declare.
12141 2014-02-19 Tom Tromey <tromey@redhat.com>
12143 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12144 Add 'ops' argument.
12145 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12147 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12148 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12150 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12152 * linux-nat.c (save_sigtrap): Update.
12153 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12154 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12155 (linux_nat_close): Update.
12156 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12158 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12160 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12161 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12162 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12163 (tmp_to_async): Add 'ops' argument.
12164 (record_full_stopped_by_watchpoint, record_full_async)
12165 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12167 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12168 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12169 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12170 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12171 (remote_is_async_p, remote_async): Add 'ops' argument.
12172 (remote_stopped_data_address): Update.
12173 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12174 * target.c (update_current_target)
12175 (find_default_can_async_p, find_default_is_async_p): Update.
12176 (init_dummy_target): Update.
12177 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12178 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12179 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12180 (target_can_async_p, target_is_async_p, target_async)
12181 (target_stopped_by_watchpoint): Update.
12183 2014-02-19 Yao Qi <yao@codesourcery.com>
12186 * gdbarch.sh: Remove startup_gdbarch.
12187 * gdbarch.c: Regenerated.
12188 * gdbarch.h: Likewise.
12190 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12192 * rl78-tdep.c (rl78_g10_register_name): New function.
12193 (rl78_return_value): Add g10 support.
12194 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12197 2014-02-17 Doug Evans <xdje42@gmail.com>
12199 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12200 (SUBDIR_GUILE_SRCS): Ditto.
12201 (scm-gsmob.o): Ditto.
12203 2014-02-17 Yao Qi <yao@codesourcery.com>
12205 * gnu-nat.c (ILL_RPC): Declare defined function.
12207 2014-02-17 Yao Qi <yao@codesourcery.com>
12209 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12210 mach_msg_type_number_t.
12211 (gnu_write_inferior): Likewise.
12213 2014-02-17 Yao Qi <yao@codesourcery.com>
12215 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12217 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12218 (inf_validate_procs, inf_signal): Likewise.
12219 (S_exception_raise_request): Likewise.
12220 (do_mach_notify_dead_name): Likewise.
12221 (steal_exc_port): Likewise.
12222 (gnu_read_inferior): Change 'copy_count''s type to
12223 mach_msg_type_number_t.
12224 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12227 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12229 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12230 flag. Adjust all users; in particular...
12231 (gnu_wait): ..., don't decrement its value in here...
12232 (gnu_create_inferior): ..., and instead set the flag in here,
12233 around the startup_inferior call, and call that one with
12234 START_INFERIOR_TRAPS_EXPECTED.
12236 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12237 (ILL_RPC): ... new macro.
12238 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12239 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12240 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12241 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12242 functions with ILL_RPC macro.
12243 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12244 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12245 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12246 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12247 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12248 (S_proc_getlogin_reply, S_proc_getsid_reply)
12249 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12250 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12251 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12252 (S_proc_getnports_reply, S_proc_is_important_reply)
12253 (S_proc_get_code_reply): New stub functions, generated with
12256 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12257 collected the type check structures.
12259 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12261 2014-02-14 Doug Evans <dje@google.com>
12263 * target.c (target_write_partial): Fix result type.
12265 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12267 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12268 the proper offsets to access fpregset_t.
12270 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12272 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12273 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12274 * h8300-tdep.c (setmachinelist): Remove global.
12275 * hppa-tdep.c (hppa_sigtramp): Remove global.
12276 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12277 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12278 * ravenscar-thread.c (update_target_observer): Remove global.
12279 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12281 2014-02-12 Tom Tromey <tromey@redhat.com>
12283 * common/rsp-low.c: Update comments.
12284 * common/rsp-low.h: Update comments.
12286 2014-02-12 Tom Tromey <tromey@redhat.com>
12288 * common/rsp-low.c (convert_ascii_to_int): Remove.
12289 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12291 2014-02-12 Tom Tromey <tromey@redhat.com>
12293 * common/rsp-low.h (unhexify): Don't declare.
12294 * common/rsp-low.c (unhexify): Remove.
12296 2014-02-12 Tom Tromey <tromey@redhat.com>
12298 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12299 * common/rsp-low.c (convert_int_to_ascii): Remove.
12301 2014-02-12 Tom Tromey <tromey@redhat.com>
12303 * common/rsp-low.h (hexify): Don't declare.
12304 * common/rsp-low.c (hexify): Remove.
12306 2014-02-12 Tom Tromey <tromey@redhat.com>
12308 * common/rsp-low.c (hexify): Never take strlen of argument.
12310 2014-02-12 Tom Tromey <tromey@redhat.com>
12312 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12313 * remote.c (extended_remote_run, remote_rcmd)
12314 (remote_download_trace_state_variable, remote_save_trace_data)
12315 (remote_set_trace_notes): Update.
12316 * tracepoint.c (encode_source_string, tfile_write_status)
12317 (tfile_write_uploaded_tsv): Update.
12319 2014-02-12 Tom Tromey <tromey@redhat.com>
12321 * tracepoint.c: Include rsp-low.h.
12322 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12323 * remote.c: Include rsp-low.h.
12324 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12325 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12326 (remote_unescape_input): Move to common/rsp-low.c.
12327 * common/rsp-low.h: New file.
12328 * common/rsp-low.c: New file.
12329 * Makefile.in (SFILES): Add common/rsp-low.c.
12330 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12331 (COMMON_OBS): Add rsp-low.o.
12332 (rsp-low.o): New target.
12334 2014-02-12 Tom Tromey <tromey@redhat.com>
12336 * utils.h: Include print-utils.h.
12337 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12338 (int_string, core_addr_to_string, core_addr_to_string_nz)
12339 (hex_string, hex_string_custom): Don't declare.
12340 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12341 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12342 (hex_string_custom, int_string, core_addr_to_string)
12343 (core_addr_to_string_nz, host_address_to_string): Move to
12344 common/print-utils.c.
12345 * common/print-utils.h: New file.
12346 * common/print-utils.c: New file
12347 * Makefile.in (SFILES): Add common/print-utils.c.
12348 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12349 (COMMON_OBS): Add print-utils.o.
12350 (print-utils.o): New target.
12352 2014-02-12 Tom Tromey <tromey@redhat.com>
12354 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12356 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12358 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12360 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12362 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12363 if a PT_IO ptrace request returns sucessfully but indicates that 0
12364 bytes were transferred.
12366 2014-02-12 Pedro Alves <palves@redhat.com>
12367 Kevin Buettner <kevinb@redhat.com>
12369 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12370 TYPE_INSTANCE_FLAG_CODE_SPACE.
12372 2014-02-12 Pedro Alves <palves@redhat.com>
12374 * h8300-tdep.c (pseudo_from_raw_register)
12375 (raw_from_pseudo_register): New functions.
12376 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12379 2014-02-12 Pedro Alves <palves@redhat.com>
12381 * h8300-tdep.c (h8300_register_sim_regno): New function.
12382 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12383 gdbarch_register_sim_regno hook.
12385 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12387 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12389 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12391 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12393 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12395 * obsd-tdep.h (obsd_init_abi): New prototype.
12396 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12397 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12398 (obsd_init_abi): New functions.
12399 * i386obsd-tdep.c: Include "obsd-tdep.h".
12400 (i386obsd_init_abi): Call obsd_init_abi.
12401 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12402 (amd64obsd_init_abi): Call obsd_init_abi.
12403 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12404 obsd-tdep.c to gdb_target_obs.
12406 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12408 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12409 double float arguments to 16-byte in the argument slots.
12411 2014-02-11 Doug Evans <xdje42@gmail.com>
12413 * configure.ac: Don't crash if pkg-config is not found and guile
12414 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12416 * configure: Regenerate.
12418 2014-02-11 Yao Qi <yao@codesourcery.com>
12420 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12421 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12422 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12423 * gnu-nat.c (gnu_xfer_memory): Likewise.
12424 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12425 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12426 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12427 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12429 2014-02-11 Yao Qi <yao@codesourcery.com>
12431 * target.h (enum target_xfer_error): Rename to ...
12432 (enum target_xfer_status): ... it. New. All users updated.
12433 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12435 (TARGET_XFER_STATUS_ERROR_P): New macro.
12436 (target_xfer_error_to_string): Remove declaration.
12437 (target_xfer_status_to_string): Declare.
12438 (target_xfer_partial_ftype): Adjust it.
12439 (struct target_ops) <to_xfer_partial>: Return
12440 target_xfer_status. Add argument xfered_len. Update
12442 * target.c (target_xfer_error_to_string): Rename to ...
12443 (target_xfer_status_to_string): ... it. New. All callers
12445 (target_read_live_memory): Likewise. Call target_xfer_partial
12446 instead of target_read.
12447 (memory_xfer_live_readonly_partial): Return
12448 target_xfer_status. Add argument xfered_len.
12449 (raw_memory_xfer_partial): Likewise.
12450 (memory_xfer_partial_1): Likewise.
12451 (memory_xfer_partial): Likewise.
12452 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12453 properly. Update debug message.
12454 (default_xfer_partial, current_xfer_partial): Likewise.
12455 (target_write_partial): Likewise.
12456 (target_read_partial): Likewise. All callers updated.
12457 (read_whatever_is_readable): Likewise.
12458 (target_write_with_progress): Likewise.
12459 (target_read_alloc_1): Likewise.
12461 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12462 * auxv.c (procfs_xfer_auxv): Likewise.
12463 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12464 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12465 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12466 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12467 * corefile.c (read_memory): Adjust.
12468 * corelow.c (core_xfer_partial): Likewise.
12469 * ctf.c (ctf_xfer_partial): Likewise.
12470 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12472 (darwin_xfer_partial): Likewise.
12473 * exec.c (section_table_xfer_memory_partial): Likewise. All
12475 (exec_xfer_partial): Likewise.
12476 * exec.h (section_table_xfer_memory_partial): Update
12478 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12480 (gnu_xfer_partial): Likewise.
12481 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12482 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12483 (ia64_hpux_xfer_solib_got): Likewise.
12484 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12485 type of 'partial_len' to ULONGEST.
12486 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12487 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12488 (linux_nat_xfer_partial): Likewise.
12489 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12490 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12491 * monitor.c (monitor_xfer_memory): Likewise.
12492 (monitor_xfer_partial): Likewise.
12493 * procfs.c (procfs_xfer_partial): Likewise.
12494 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12495 * record-full.c (record_full_xfer_partial): Likewise.
12496 (record_full_core_xfer_partial): Likewise.
12497 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12498 (gdbsim_xfer_partial): Likewise.
12499 * remote.c (remote_write_bytes_aux): Likewise. All callers
12501 (remote_write_bytes, remote_read_bytes): Likewise. All
12503 (remote_flash_erase): Likewise. All callers updated.
12504 (remote_write_qxfer): Likewise. All callers updated.
12505 (remote_read_qxfer): Likewise. All callers updated.
12506 (remote_xfer_partial): Likewise.
12507 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12508 (rs6000_xfer_shared_libraries): Likewise.
12509 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12510 (sol_thread_xfer_partial): Likewise.
12511 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12512 (sparc_xfer_partial): Likewise.
12513 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12515 (spu_xfer_partial): Likewise.
12516 * spu-multiarch.c (spu_xfer_partial): Likewise.
12517 * tracepoint.c (tfile_xfer_partial): Likewise.
12518 * windows-nat.c (windows_xfer_memory): Likewise.
12519 (windows_xfer_shared_libraries): Likewise.
12520 (windows_xfer_partial): Likewise.
12521 * valprint.c: Replace 'target_xfer_error' with
12522 'target_xfer_status' in comments.
12524 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12526 Checked in by Joel Brobecker <brobecker@adacore.com>.
12527 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12529 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12531 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12532 function parameters.
12534 2014-02-10 Will Newton <will.newton@linaro.org>
12536 * elfread.c (elf_rel_plt_read): Look for a .got section if
12537 looking up .got.plt fails.
12538 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12539 on address passed to elf_gnu_ifunc_record_cache.
12540 (elf_gnu_ifunc_resolve_addr): Likewise.
12541 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12543 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12545 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12546 (X_RETTURN): New macro.
12547 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12549 * sparc64-tdep.c (sparc64_init_abi): Hook
12550 sparc_in_function_epilogue_p.
12552 2014-02-10 Gary Benson <gbenson@redhat.com>
12554 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12555 Rename name_matcher to symbol_matcher.
12557 2014-02-10 Gary Benson <gbenson@redhat.com>
12559 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12560 Use expand_symtabs_file_matcher_ftype and
12561 expand_symtabs_symbol_matcher_ftype.
12563 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12565 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12566 (struct ada_symbol_cache): New.
12567 (ada_free_symbol_cache): Forward declare.
12568 (struct ada_pspace_data): New.
12569 (ada_pspace_data_handle): New static global.
12570 (get_ada_pspace_data, ada_pspace_data_cleanup)
12571 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12572 (cache_space, cache): Delete, now folded inside struct
12574 (ada_get_symbol_cache): New function.
12575 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12577 (_initialize_ada_language): Remove initialization of cache_space.
12578 Move call to observer_attach_inferior_exit up, grouping it
12579 with the other observer registrations inside this function.
12580 Rename command to be more general. Add call to
12581 register_program_space_data_with_cleanup.
12583 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12585 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12586 ada_new_objfile_observer.
12587 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12588 (_initialize_tasks): Update uses of ada_new_objfile_observer
12589 and ada_tasks_normal_stop_observer.
12591 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12593 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12594 returned by the 'Length attribute to integer.
12596 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12598 * ada-lang.c (_initialize_ada_language): Initialize
12599 cache_space obstack.
12601 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12603 * ada-lang.c (HASH_SIZE): New macro.
12604 (struct cache_entry): New type.
12605 (cache_space, cache): New static globals.
12606 (ada_clear_symbol_cache, find_entry): New functions.
12607 (lookup_cached_symbol, cache_symbol): Implement.
12608 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12609 (_initialize_ada_language): Attach ada_new_objfile_observer
12610 and ada_free_objfile_observer.
12612 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12614 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12615 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12616 struct block * parameter.
12617 (ada_lookup_symbol_list_worker): Constify local variable "block".
12618 Remove cast which is no longer necessary.
12620 2014-02-10 Doug Evans <xdje42@gmail.com>
12622 Add Guile as an extension language.
12623 * NEWS: Mention Guile scripting.
12624 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12625 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12626 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12627 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12628 (CLIBS): Add GUILE_LIBS.
12629 (install-guile): New rule.
12630 (guile.o): New rule.
12631 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12632 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12633 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12634 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12635 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12636 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12637 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12638 * configure.ac: New option --with-guile.
12639 * configure: Regenerate.
12640 * config.in: Regenerate.
12641 * auto-load.c: Remove #include "python/python.h". Add #include
12642 "gdb/section-scripts.h".
12643 (source_section_scripts): Handle Guile scripts.
12644 (_initialize_auto_load): Add name of Guile objfile script to
12645 scripts-directory help text.
12646 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12647 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12648 (struct breakpoint): New member scm_bp_object.
12649 * defs.h (enum command_control_type): New value guile_control.
12650 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12652 (show_user): Update comment.
12653 (_initialize_cli_cmds): Update help text for "show user". Update help
12654 text for max-user-call-depth.
12655 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12657 (multi_line_command_p): Add guile_control.
12658 (print_command_lines): Handle guile_control.
12659 (execute_control_command, recurse_read_control_structure): Ditto.
12660 (process_next_line): Recognize "guile" commands.
12661 * disasm.c (gdb_disassemble_info): Make non-static.
12662 * disasm.h: #include "dis-asm.h".
12663 (struct gdbarch): Add forward decl.
12664 (gdb_disassemble_info): Declare.
12665 * extension.c: #include "guile/guile.h".
12666 (extension_languages): Add guile.
12667 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12668 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12669 * gdbtypes.c (get_unsigned_type_max): New function.
12670 (get_signed_type_minmax): New function.
12671 * gdbtypes.h (get_unsigned_type_max): Declare.
12672 (get_signed_type_minmax): Declare.
12673 * guile/README: New file.
12674 * guile/guile-internal.h: New file.
12675 * guile/guile.c: New file.
12676 * guile/guile.h: New file.
12677 * guile/scm-arch.c: New file.
12678 * guile/scm-auto-load.c: New file.
12679 * guile/scm-block.c: New file.
12680 * guile/scm-breakpoint.c: New file.
12681 * guile/scm-disasm.c: New file.
12682 * guile/scm-exception.c: New file.
12683 * guile/scm-frame.c: New file.
12684 * guile/scm-gsmob.c: New file.
12685 * guile/scm-iterator.c: New file.
12686 * guile/scm-lazy-string.c: New file.
12687 * guile/scm-math.c: New file.
12688 * guile/scm-objfile.c: New file.
12689 * guile/scm-ports.c: New file.
12690 * guile/scm-pretty-print.c: New file.
12691 * guile/scm-safe-call.c: New file.
12692 * guile/scm-string.c: New file.
12693 * guile/scm-symbol.c: New file.
12694 * guile/scm-symtab.c: New file.
12695 * guile/scm-type.c: New file.
12696 * guile/scm-utils.c: New file.
12697 * guile/scm-value.c: New file.
12698 * guile/lib/gdb.scm: New file.
12699 * guile/lib/gdb/boot.scm: New file.
12700 * guile/lib/gdb/experimental.scm: New file.
12701 * guile/lib/gdb/init.scm: New file.
12702 * guile/lib/gdb/iterator.scm: New file.
12703 * guile/lib/gdb/printing.scm: New file.
12704 * guile/lib/gdb/types.scm: New file.
12705 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12706 (VPATH): Add $(GUILE_SRCDIR).
12707 (GUILE_DIR): New variable.
12708 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12709 (all): Add stamp-guile dependency.
12710 (stamp-guile): New rule.
12711 (clean-guile, install-guile, uninstall-guile): New rules.
12712 (install-only): Add install-guile dependency.
12713 (uninstall): Add uninstall-guile dependency.
12714 (clean): Add clean-guile dependency.
12716 2014-02-09 Doug Evans <xdje42@gmail.com>
12718 Revert this patch (which I approved, mea culpa).
12720 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12722 * Makefile.in (all-lib): Remove.
12723 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12725 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12727 Fix Python stack corruption.
12728 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12731 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12733 * Makefile.in (all-lib): Remove.
12734 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12736 2014-02-07 Doug Evans <dje@google.com>
12738 * extension-priv.h (extension_language_script_ops): Add comment.
12739 (extension_language_ops): Add comment.
12740 (active_ext_lang_state): Fix typo in comment.
12742 2014-02-07 Pedro Alves <palves@redhat.com>
12744 PR breakpoints/16292
12745 * infrun.c (handle_signal_stop) <signal arrives while stepping
12746 over a breakpoint>: Switch back to the stepping thread.
12748 2014-02-07 Yao Qi <yao@codesourcery.com>
12750 * target.c (target_xfer_partial): Return zero if LEN is zero.
12752 2014-02-07 Yao Qi <yao@codesourcery.com>
12754 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12755 (ld_so_xfer_auxv): Likewise.
12756 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12757 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12758 * corelow.c (core_xfer_partial): Likewise.
12759 * ctf.c (ctf_xfer_partial): Likewise.
12760 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12761 (darwin_xfer_partial): Likewise.
12762 * exec.c (exec_xfer_partial): Likewise.
12763 * gnu-nat.c (gnu_xfer_partial): Likewise.
12764 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12765 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12766 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12767 * linux-nat.c (linux_xfer_siginfo): Likewise.
12768 (linux_proc_xfer_spu): Likewise.
12769 * procfs.c (procfs_xfer_partial): Likewise.
12770 * record-full.c (record_full_xfer_partial): Likewise.
12771 (record_full_core_xfer_partial): Likewise.
12772 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12773 * remote.c (remote_write_qxfer): Likewise.
12774 (remote_write_qxfer, remote_read_qxfer): Likewise.
12775 (remote_xfer_partial): Likewise.
12776 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12777 (rs6000_xfer_shared_libraries): Likewise.
12778 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12779 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12780 (spu_xfer_partial): Likewise.
12781 * target.c (memory_xfer_partial_1): Likewise.
12782 * tracepoint.c (tfile_xfer_partial): Likewise.
12783 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12784 (windows_xfer_partial): Likewise.
12786 2014-02-07 Yao Qi <yao@codesourcery.com>
12788 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12790 (core_xfer_shared_libraries_aix): Likewise.
12791 * gdbarch.c, gdbarch.h: Regenerated.
12792 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12793 ULONGEST. Change 'len_avail' type to ULONGEST.
12794 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12795 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12797 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12799 2014-02-07 Yao Qi <yao@codesourcery.com>
12801 * corefile.c (memory_error): Get 'exception' from ERR and pass
12802 'exception' to throw_error.
12804 2014-02-06 Doug Evans <xdje42@gmail.com>
12806 * configure.ac (libpython checking): Remove all but python.o from
12807 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12808 * configure: Regenerate.
12810 * Makefile.in (SFILES): Add extension.c.
12811 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12812 (COMMON_OBS): Add extension.o.
12813 * extension.h: New file.
12814 * extension-priv.h: New file.
12815 * extension.c: New file.
12817 * python/python-internal.h: #include "extension.h".
12818 (gdbpy_auto_load_enabled): Declare.
12819 (gdbpy_apply_val_pretty_printer): Declare.
12820 (gdbpy_apply_frame_filter): Declare.
12821 (gdbpy_preserve_values): Declare.
12822 (gdbpy_breakpoint_cond_says_stop): Declare.
12823 (gdbpy_breakpoint_has_cond): Declare.
12824 (void source_python_script_for_objfile): Delete.
12825 * python/python.c: #include "extension-priv.h".
12826 Delete inclusion of "observer.h".
12827 (extension_language_python): Moved here and renamed from
12828 script_language_python in py-auto-load.c.
12829 Redefined to be of type extension_language_defn.
12830 (python_extension_script_ops): New global.
12831 (python_extension_ops): New global.
12832 (struct python_env): New member previous_active.
12833 (restore_python_env): Call restore_active_ext_lang.
12834 (ensure_python_env): Call set_active_ext_lang.
12835 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12837 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12839 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12841 (gdbpy_eval_from_control_command): Renamed from
12842 eval_python_from_control_command, made static. New arg extlang.
12843 (gdbpy_source_script) Renamed from source_python_script, made static.
12845 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12846 result to int. New arg extlang.
12847 (gdbpy_source_objfile_script): Renamed from
12848 source_python_script_for_objfile, made static. New arg extlang.
12849 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12850 static. New args extlang, extlang_printers. Change result type to
12852 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12853 static. New arg extlang. Rename arg printers to extlang_printers
12854 and change type to ext_lang_type_printers *.
12855 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12856 static. Replace argument arg with extlang, extlang_printers.
12857 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12858 (!HAVE_PYTHON, source_python_script): Delete.
12859 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12860 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12861 (!HAVE_PYTHON, start_type_printers): Delete.
12862 (!HAVE_PYTHON, apply_type_printers): Delete.
12863 (!HAVE_PYTHON, free_type_printers): Delete.
12864 (_initialize_python): Delete call to observer_attach_before_prompt.
12865 (finalize_python): Set/restore active extension language.
12866 (gdbpy_finish_initialization) Renamed from
12867 finish_python_initialization, made static. New arg extlang.
12868 (gdbpy_initialized): New function.
12869 * python/python.h: #include "extension.h". Delete #include
12870 "value.h", "mi/mi-cmds.h".
12871 (extension_language_python): Declare.
12872 (GDBPY_AUTO_FILE_NAME): Delete.
12873 (enum py_bt_status): Moved to extension.h and renamed to
12874 ext_lang_bt_status.
12875 (enum frame_filter_flags): Moved to extension.h.
12876 (enum py_frame_args): Moved to extension.h and renamed to
12877 ext_lang_frame_args.
12878 (finish_python_initialization): Delete.
12879 (eval_python_from_control_command): Delete.
12880 (source_python_script): Delete.
12881 (apply_val_pretty_printer): Delete.
12882 (apply_frame_filter): Delete.
12883 (preserve_python_values): Delete.
12884 (gdbpy_script_language_defn): Delete.
12885 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12886 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12888 * auto-load.c: #include "extension.h".
12889 (GDB_AUTO_FILE_NAME): Delete.
12890 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12891 (script_language_gdb): Delete, moved to extension.c and renamed to
12892 extension_language_gdb.
12893 (source_gdb_script_for_objfile): Delete.
12894 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12895 (loaded_script): Change type of language member to
12896 struct extension_language_defn *.
12897 (init_loaded_scripts_info): Initialize
12898 unsupported_script_warning_printed.
12899 (maybe_add_script): Make static. Change type of language arg to
12900 struct extension_language_defn *.
12901 (clear_section_scripts): Reset unsupported_script_warning_printed.
12902 (auto_load_objfile_script_1): Rewrite to use extension language API.
12903 (auto_load_objfile_script): Make public. Remove support-compiled-in
12904 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12905 (source_section_scripts): Rewrite to use extension language API.
12906 (load_auto_scripts_for_objfile): Rewrite to use
12907 auto_load_scripts_for_objfile.
12908 (collect_matching_scripts_data): Change type of language member to
12909 struct extension_language_defn *.
12910 (auto_load_info_scripts): Change type of language arg to
12911 struct extension_language_defn *.
12912 (unsupported_script_warning_print): New function.
12913 (script_not_found_warning_print): Make static.
12914 (_initialize_auto_load): Rewrite construction of scripts-directory
12916 * auto-load.h (struct objfile): Add forward decl.
12917 (struct script_language): Delete.
12918 (struct auto_load_pspace_info): Add forward decl.
12919 (struct extension_language_defn): Add forward decl.
12920 (maybe_add_script): Delete.
12921 (auto_load_objfile_script): Declare.
12922 (script_not_found_warning_print): Delete.
12923 (auto_load_info_scripts): Update prototype.
12924 (auto_load_gdb_scripts_enabled): Declare.
12925 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12926 auto_load_python_scripts_enabled and made public.
12927 (script_language_python): Delete, moved to python.c.
12928 (gdbpy_script_language_defn): Delete.
12929 (info_auto_load_python_scripts): Update to use
12930 extension_language_python.
12932 * breakpoint.c (condition_command): Replace call to
12933 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12934 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12935 with call to breakpoint_ext_lang_cond_says_stop.
12936 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12937 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12938 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12939 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12941 (local_setattro): Print name of extension language with existing
12944 * valprint.c (val_print, value_print): Update to call
12945 apply_ext_lang_val_pretty_printer.
12946 * cp-valprint.c (cp_print_value): Update call to
12947 apply_ext_lang_val_pretty_printer.
12948 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12949 (gdbpy_apply_val_pretty_printer): Renamed from
12950 apply_val_pretty_printer. New arg extlang.
12951 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12953 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12954 extension language API.
12955 * cli/cli-script.c (execute_control_command): Update to call
12956 eval_ext_lang_from_control_command.
12958 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12959 enum ext_lang_bt_status values. Update call to
12960 apply_ext_lang_frame_filter.
12961 (mi_cmd_stack_list_locals): Ditto.
12962 (mi_cmd_stack_list_args): Ditto.
12963 (mi_cmd_stack_list_variables): Ditto.
12964 * mi/mi-main.c: Delete #include "python/python-internal.h".
12965 Add #include "extension.h".
12966 (mi_cmd_list_features): Replace reference to python internal variable
12967 gdb_python_initialized with call to ext_lang_initialized_p.
12969 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12970 Update to use enum ext_lang_frame_args. Update to call
12971 apply_ext_lang_frame_filter.
12972 * python/py-framefilter.c (extract_sym): Update to use enum
12973 ext_lang_bt_status.
12974 (extract_value, py_print_type, py_print_value): Ditto.
12975 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12976 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12977 (py_print_frame): Ditto.
12978 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12979 New arg extlang. Update to use enum ext_lang_bt_status.
12981 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12982 finish_python_initialization. Replace with call to
12983 finish_ext_lang_initialization.
12985 * typeprint.c (do_free_global_table): Update to call
12986 free_ext_lang_type_printers.
12987 (create_global_typedef_table): Update to call
12988 start_ext_lang_type_printers.
12989 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12990 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12991 (type_print_options): Change type of global_printers from "void *"
12992 to "struct ext_lang_type_printers *".
12994 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12995 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12996 (gdbpy_preserve_values): Renamed from preserve_python_values.
12998 (!HAVE_PYTHON, preserve_python_values): Delete.
13000 * utils.c (quit_flag): Delete, moved to extension.c.
13001 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13004 * eval.c: Delete #include "python/python.h".
13005 * main.c: Delete #include "python/python.h".
13007 * defs.h: Update comment.
13009 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13013 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13015 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13018 2014-02-05 Yao Qi <yao@codesourcery.com>
13020 * remote.c (remote_pass_signals): Remove local 'buf' and use
13022 (remote_program_signals): Likewise.
13024 2014-02-05 Yao Qi <yao@codesourcery.com>
13026 * ctf.c: Include "inferior.h" and "gdbthread.h".
13027 (CTF_PID): A new macro.
13028 (ctf_open): Call inferior_appeared and add_thread_silent.
13029 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13030 (ctf_thread_alive): New function.
13031 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13033 2014-02-05 Yao Qi <yao@codesourcery.com>
13037 2013-05-24 Yao Qi <yao@codesourcery.com>
13039 * tracepoint.c (TFILE_PID): Remove.
13040 (tfile_open): Don't add thread and inferior.
13041 (tfile_close): Don't set 'inferior_ptid'. Don't call
13042 exit_inferior_silent.
13043 (tfile_thread_alive): Remove.
13044 (init_tfile_ops): Don't set field 'to_thread_alive' of
13047 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13049 * remote.c (remote_start_remote): Call remote_check_symbols even
13050 if only symbol-file (not file) has been given.
13052 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13054 * gdbarch.sh (skip_entrypoint): New callback.
13055 * gdbarch.c, gdbarch.h: Regenerate.
13056 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13057 * infrun.c (fill_in_stop_func): Likewise.
13058 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13059 (ppc_elfv2_elf_make_msymbol_special): New function.
13060 (ppc_elfv2_skip_entrypoint): Likewise.
13061 (ppc_linux_init_abi): Install them for ELFv2.
13063 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13065 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13066 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13067 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13068 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13069 structures returned in GPRs.
13071 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13073 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13074 offset to the stack parameter list for the ELFv2 ABI.
13076 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13078 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13079 set_gdbarch_convert_from_func_ptr_addr and
13080 set_gdbarch_elf_make_msymbol_special for ELFv1.
13081 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13082 function descriptors on ELFv1.
13083 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13084 set up r12 at function entry.
13086 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13088 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13089 (struct gdbarch_tdep): New member elf_abi.
13091 * rs6000-tdep.c: Include "elf/ppc64.h".
13092 (rs6000_gdbarch_init): Detect ELF ABI version.
13094 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13096 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13097 within a register pair holding a DFP 128-bit value on little-endian.
13098 (ppc64_sysv_abi_return_value_base): Likewise.
13099 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13100 (dfp_pseudo_register_write): Likewise.
13102 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13104 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13105 offset on little-endian when passing _Decimal32.
13106 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13108 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13110 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13111 of the overlapped FP register within the VSX register on little-
13113 (efpr_pseudo_register_write): Likewise.
13115 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13117 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13118 offset on little-endian when passing small structures.
13120 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13122 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13123 (struct ppc64_sysv_argpos): New data structure.
13124 (ppc64_sysv_abi_push_float): Remove.
13125 (ppc64_sysv_abi_push_val): New function.
13126 (ppc64_sysv_abi_push_integer): Likewise.
13127 (ppc64_sysv_abi_push_freg): Likewise.
13128 (ppc64_sysv_abi_push_vreg): Likewise.
13129 (ppc64_sysv_abi_push_param): Likewise.
13130 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13131 (ppc64_sysv_abi_return_value_base): New function.
13132 (ppc64_sysv_abi_return_value): Refactor to use it.
13134 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13136 * NEWS: Document new target powerpc64le-*-linux*.
13138 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13140 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13141 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13143 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13144 register set used in ELF core dumps. Add floating-point register set.
13146 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13148 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13149 dwarf2_to_gdb[] table using symbolic constants. Adjust
13150 penultimate entry from number representing the PC register
13151 to symbolic constant representing the MDR register. Add
13152 constant for the PC register to the end of the table.
13154 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13156 * bsd-kvm.c: Include <sys/param.h>
13158 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13160 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13162 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13164 * ada-lang.h (clear_ada_sym_cache): Delete.
13166 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13168 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13170 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13172 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13173 the sigreturn register save area only if the syscall is
13176 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13178 * valops.c (value_slice): Minor reformatting.
13180 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13182 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13184 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13186 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13187 New static globals.
13188 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13189 (ada_ignore_descriptive_types_p): New static global.
13190 (find_parallel_type_by_descriptive_type): Return immediately
13191 if ada_ignore_descriptive_types_p is set.
13192 (_initialize_ada_language): Register new commands "maintenance
13193 set ada", "maintenance show ada", "maintenance set ada
13194 ignore-descriptive-types" and "maintenance show ada
13195 ignore-descriptive-types".
13196 * NEWS: Add entry for new "maint ada set/show
13197 ignore-descriptive-types" commands.
13199 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13201 * record-btrace.c (record_btrace_close): Call btrace_teardown
13204 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13206 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13209 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13211 * ada-typeprint (type_is_full_subrange_of_target_type):
13213 (print_range): Add parameter bounds_prefered_p. If not set,
13214 try printing range types using the name of their base type.
13215 (print_range_type): Add parameter bounds_prefered_p.
13216 Use it in call to print_range.
13217 (print_array_type, ada_print_type): Update calls to print_range
13218 and print_range_type.
13220 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13222 * ada-typeprint.c (print_array_type, print_choices, print_range)
13223 (print_range_bound, print_dynamic_range_bound, print_range_type):
13224 Remove declaration.
13226 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13228 * ada-typeprint.c (print_range): Add missing empty line
13229 after local declaration.
13231 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13233 * ada-valprint.c (print_optional_low_bound): Get index_type's
13234 target type for as long as it is a TYPE_CODE_RANGE.
13236 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13238 * procfs.c (procfs_make_note_section): Remove assertion and
13239 associated comment.
13241 2014-01-24 Yao Qi <yao@codesourcery.com>
13243 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13244 * corelow.c (get_core_siginfo): Likewise.
13246 2014-01-24 Yao Qi <yao@codesourcery.com>
13248 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13249 ULONGEST. Don't check 'len' is negative.
13250 (remote_write_bytes): Change type of 'len' to ULONGEST.
13252 2014-01-23 Tom Tromey <tromey@redhat.com>
13255 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13256 Handle exception from frame.block.
13257 (FrameVars.fetch_frame_locals): Likewise.
13259 2014-01-23 Tom Tromey <tromey@redhat.com>
13262 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13263 on a NULL pointer. Move "goto error" to correct place.
13265 2014-01-23 Tom Tromey <tromey@redhat.com>
13268 * python/py-framefilter.c (apply_frame_filter): Call
13269 ensure_python_env after computing gdbarch.
13271 2014-01-23 Yao Qi <yao@codesourcery.com>
13273 * target.c (raw_memory_xfer_partial): Change argument type
13274 from void * to gdb_byte *.
13275 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13277 2014-01-22 Doug Evans <dje@google.com>
13279 New gdbserver option --debug-format=timestamp.
13280 * NEWS: Mention it.
13282 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13284 * syscalls/s390x-linux.xml: New file.
13285 * syscalls/s390-linux.xml: New file.
13286 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13287 (XML_SYSCALL_FILENAME_S390X): Likewise.
13288 (op_svc): New enum value for SVC opcode.
13289 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13290 (s390_linux_get_syscall_number): New function.
13291 (s390_gdbarch_init): Register '*get_syscall_number' and the
13292 syscall xml file name.
13293 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13294 "s390-linux.xml" and "s390x-linux.xml".
13295 * NEWS: Announce new feature.
13297 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13299 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13301 2014-01-22 Pedro Alves <palves@redhat.com>
13303 * xtensa-config.c: Include defs.h.
13305 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13307 * common/common-utils.h: Add "ARI:" comment beside __func__
13310 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13312 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13313 documentation a bit.
13315 2014-01-21 Roland McGrath <mcgrathr@google.com>
13317 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13318 * configure: Regenerate.
13319 * aclocal.m4: Regenerate.
13320 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13321 New substituted variables.
13322 (install-strip): New target.
13323 (INSTALL_SCRIPT): New substituted variable.
13324 (FLAGS_TO_PASS): Add it.
13325 (install-only): Use $(INSTALL_SCRIPT) rather than
13326 $(INSTALL_PROGRAM) for gcore.
13328 2014-01-20 Tom Tromey <tromey@redhat.com>
13330 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13333 2014-01-20 Tom Tromey <tromey@redhat.com>
13335 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13336 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13337 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13338 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13339 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13340 (struct cmd_list_element) <flags>: Remove.
13341 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13342 doc_allocated>: New fields.
13343 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13345 * maint.c (maintenance_do_deprecate): Update.
13346 * top.c (execute_command): Update.
13348 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13350 * xtensa-linux-nat.c: Include asm/ptrace.h.
13352 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13354 * Makefile.in (SFILES): Add d-support.c.
13355 (COMMON_OBS): Add d-support.o.
13356 * d-lang.h (d_parse_symbol): Add comment, now defined in
13358 * d-lang.c (parse_call_convention)
13359 (parse_attributes, parse_function_types)
13360 (parse_function_args, parse_type, parse_identifier)
13361 (call_convention_p, d_parse_symbol): Move functions to ...
13362 * d-support.c: ... New file.
13364 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13366 * d-lang.h (d_parse_symbol): Add declaration.
13367 * d-lang.c (extract_identifiers)
13368 (extract_type_info): Remove functions.
13369 (parse_call_convention, parse_attributes)
13370 (parse_function_types, parse_function_args)
13371 (parse_type, parse_identifier, call_convention_p)
13372 (d_parse_symbol): New functions.
13373 (d_demangle): Use d_parse_symbol to demangle D symbols.
13375 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13377 * d-lang.h (struct builtin_d_type): New data type.
13378 (builtin_d_type): Add declaration.
13379 * d-lang.c (d_language_arch_info, build_d_types)
13380 (builtin_d_type): New functions.
13381 (enum d_primitive_types): New data type.
13382 (d_language_defn): Change c_language_arch_info to
13383 d_language_arch_info.
13384 (d_type_data): New static variable.
13385 (_initialize_d_language): Initialize d_type_data.
13387 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13389 * d-lang.h (d_main_name): Add declaration.
13390 * d-lang.c (d_main_name): New function.
13391 * symtab.c (find_main_name): Add call to d_main_name.
13393 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13395 * d-lang.c (d_language_defn): Change macro_expansion_c to
13396 macro_expansion_no.
13398 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13400 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13402 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13404 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13405 gdb_exception" declaration.
13406 * remote.c (getpkt_or_notif_sane): Likewise.
13408 2014-01-17 Doug Evans <dje@google.com>
13410 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13411 function, contents of dirnames_to_char_ptr_vec_append moved here.
13412 (delim_string_to_char_ptr_vec): New function.
13413 (dirnames_to_char_ptr_vec_append): Rewrite.
13414 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13416 2014-01-17 Doug Evans <dje@google.com>
13418 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13420 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13421 #include "common-utils.h".
13422 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13423 * common/vec.h (VEC_ASSERT_PASS): Update.
13424 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13425 (MACH_CHECK_ERROR): Update.
13427 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13429 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13431 * gdbarch.h: Regenerate.
13433 2014-01-16 Tom Tromey <tromey@redhat.com>
13435 * value.c (struct value) <regnum>: Move earlier.
13437 2014-01-16 Tom Tromey <tromey@redhat.com>
13439 * remote.c (extended_remote_create_inferior): Rename from
13440 extended_remote_create_inferior_1. Add "ops" argument. Remove
13441 old implementation.
13443 2014-01-16 Pedro Alves <palves@redhat.com>
13445 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13446 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13449 2014-01-16 Doug Evans <dje@google.com>
13451 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13453 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13455 * btrace.h (btrace_thread_flag): New.
13456 (struct btrace_thread_info) <flags>: New.
13457 * record-btrace.c (record_btrace_resume_thread)
13458 (record_btrace_find_thread_to_move, btrace_step_no_history)
13459 (btrace_step_stopped, record_btrace_start_replaying)
13460 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13461 (record_btrace_find_resume_thread): New.
13462 (record_btrace_resume, record_btrace_wait): Extend.
13463 (record_btrace_can_execute_reverse): New.
13464 (record_btrace_open): Fail in non-stop mode.
13465 (record_btrace_set_replay): Split into this, ...
13466 (record_btrace_stop_replaying): ... this, ...
13467 (record_btrace_clear_histories): ... and this.
13468 (init_record_btrace_ops): Init to_can_execute_reverse.
13469 * NEWS: Announce it.
13471 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13473 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13474 (forward_target_decr_pc_after_break)
13475 (target_decr_pc_after_break): New.
13476 * target.c (forward_target_decr_pc_after_break)
13477 (target_decr_pc_after_break): New.
13478 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13479 instead of gdbarch_decr_pc_after_break.
13480 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13481 instead of gdbarch_decr_pc_after_break.
13482 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13483 instead of gdbarch_decr_pc_after_break.
13484 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13485 instead of gdbarch_decr_pc_after_break.
13486 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13487 instead of gdbarch_decr_pc_after_break.
13488 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13489 instead of gdbarch_decr_pc_after_break.
13491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13493 * btrace.c: Include regcache.h.
13494 (btrace_add_pc): New.
13495 (btrace_enable): Call btrace_add_pc.
13496 (btrace_is_empty): New.
13497 * btrace.h (btrace_is_empty): New.
13498 * record-btrace.c (require_btrace, record_btrace_info): Call
13501 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13503 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13504 Support delta reads.
13505 (linux_disable_btrace): Change return type.
13506 * common/linux-btrace.h (linux_read_btrace): Change parameters
13507 and return type to allow error reporting. Update users.
13508 (linux_disable_btrace): Change return type. Update users.
13509 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13511 (btrace_error): New.
13512 (btrace_block) <begin>: Comment on BEGIN == 0.
13513 * btrace.c (btrace_compute_ftrace): Start from the end of
13515 (btrace_stitch_trace, btrace_clear_history): New.
13516 (btrace_fetch): Read delta trace, return if replaying.
13517 (btrace_clear): Move clear history code to btrace_clear_history.
13518 (parse_xml_btrace): Throw an error if parsing failed.
13519 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13520 and return type to allow error reporting.
13521 (target_read_btrace): Change parameters and return type to allow
13523 * target.c (target_read_btrace): Update.
13524 * remote.c (remote_read_btrace): Support delta reads. Pass
13526 * NEWS: Announce it.
13528 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13530 * record.h (record_btrace_frame_unwind)
13531 (record_btrace_tailcall_frame_unwind): New declarations.
13532 * dwarf2-frame: Include record.h
13533 (dwarf2_frame_cfa): Throw an error for btrace frames.
13534 * record-btrace.c: Include hashtab.h.
13535 (btrace_get_bfun_name): New.
13536 (btrace_call_history): Call btrace_get_bfun_name.
13537 (struct btrace_frame_cache): New.
13539 (bfcache_hash, bfcache_eq, bfcache_new): New.
13540 (btrace_get_frame_function): New.
13541 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13542 (record_btrace_frame_this_id): Compute own id.
13543 (record_btrace_frame_prev_register): Provide PC, throw_error
13544 for all other registers.
13545 (record_btrace_frame_sniffer): Detect btrace frames.
13546 (record_btrace_tailcall_frame_sniffer): New.
13547 (record_btrace_frame_dealloc_cache): New.
13548 (record_btrace_frame_unwind): Add new functions.
13549 (record_btrace_tailcall_frame_unwind): New.
13550 (_initialize_record_btrace): Allocate cache.
13551 * btrace.c (btrace_clear): Call reinit_frame_cache.
13552 * NEWS: Announce it.
13554 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13556 * record-btrace.c (record_btrace_set_replay)
13557 (record_btrace_goto_begin, record_btrace_goto_end)
13558 (record_btrace_goto): New.
13559 (init_record_btrace_ops): Initialize them.
13560 * NEWS: Announce it.
13562 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13564 * record-btrace.c (record_btrace_find_new_threads)
13565 (record_btrace_thread_alive): New.
13566 (init_record_btrace_ops): Initialize to_find_new_threads and
13569 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13571 * record-btrace.c (record_btrace_resume): New.
13572 (record_btrace_wait): New.
13573 (init_record_btrace_ops): Initialize to_wait and to_resume.
13575 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13577 * record-btrace.c (record_btrace_xfer_partial)
13578 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13579 (record_btrace_allow_memory_access): New.
13580 (init_record_btrace_ops): Initialize new methods.
13581 * target.c (raw_memory_xfer_partial): Bail out if target reports
13582 that this memory is not available.
13584 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13586 * target.h (target_ops) <to_insert_breakpoint>
13587 <to_remove_breakpoint>: Add target_ops parameter.
13588 (forward_target_insert_breakpoint): New.
13589 (forward_target_remove_breakpoint): New.
13590 (memory_remove_breakpoint, memory_insert_breakpoint):
13591 Add target_ops parameter.
13592 * target.c (target_insert_breakpoint): Split into this and ...
13593 (forward_target_insert_breakpoint): ... this.
13594 (target_remove_breakpoint): Split into this and ...
13595 (forward_target_remove_breakpoint): ... this.
13596 (debug_to_insert_breakpoint): Add target_ops parameter.
13597 Call forward_target_insert_breakpoint.
13598 (debug_to_remove_breakpoint): Add target_ops parameter.
13599 Call forward_target_remove_breakpoint.
13600 (update_current_target): Do not inherit or default to_insert_breakpoint
13601 and to_remove_breakpoint.
13602 * corelow.c (ignore): Add target_ops parameter.
13603 * exec.c (ignore): Add target_ops parameter.
13604 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13605 Add target_ops parameter.
13606 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13607 Add target_ops parameter.
13608 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13609 Add target_ops parameter.
13610 * record-full.c (record_full_beneath_to_insert_breakpoint)
13611 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13612 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13613 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13614 (record_full_core_remove_breakpoint): Add target_ops parameter.
13616 (record_full_beneath_to_insert_breakpoint_ops)
13617 (record_full_beneath_to_remove_breakpoint_ops)
13618 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13619 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13620 tmp_to_remove_breakpoint_ops,
13621 record_full_beneath_to_insert_breakpoint_ops, and
13622 record_full_beneath_to_remove_breakpoint_ops.
13623 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13624 (m32r_remove_breakpoint): Add target_ops parameter.
13625 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13626 Add target_ops parameter.
13627 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13628 Add target_ops parameter.
13630 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13631 Markus Metzger <markus.t.metzger@intel.com>
13633 * record-btrace.c: Include frame-unwind.h.
13634 (record_btrace_frame_unwind_stop_reason)
13635 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13636 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13638 (init_record_btrace_ops): Install it.
13640 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13642 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13645 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13647 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13650 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13652 * frame-unwind.c: Include target.h.
13653 (frame_unwind_try_unwinder): New function with code from ...
13654 (frame_unwind_find_by_frame): ... here. New variable
13655 unwinder_from_target, call also target_get_unwinder)
13656 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13657 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13658 * target.h (struct target_ops): New fields to_get_unwinder and
13659 to_get_tailcall_unwinder.
13660 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13662 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13664 * record-btrace.c (record_btrace_fetch_registers)
13665 (record_btrace_store_registers)
13666 (record_btrace_to_prepare_to_store): New.
13667 (init_record_btrace_ops): Add the above.
13669 2014-01-16 Tom Tromey <tromey@redhat.com>
13671 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13672 * target.h (struct target_ops) <to_prepare_to_store>: Add
13674 (target_prepare_to_store): Add argument.
13675 * target.c (debug_to_prepare_to_store): Add argument.
13676 (update_current_target): Update.
13677 * remote.c (remote_prepare_to_store): Add 'self' argument.
13678 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13679 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13680 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13681 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13683 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13684 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13685 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13686 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13687 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13689 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13691 * btrace.h (replay) <replay>: New.
13692 (btrace_is_replaying): New.
13693 * btrace.c (btrace_clear): Free replay iterator.
13694 (btrace_is_replaying): New.
13695 * record-btrace.c (record_btrace_is_replaying): New.
13696 (record_btrace_info): Print insn number if replaying.
13697 (record_btrace_insn_history): Start at replay position.
13698 (record_btrace_call_history): Start at replay position.
13699 (init_record_btrace_ops): Init to_record_is_replaying.
13701 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13703 * record-btrace.c (record_btrace_insn_history_range): Include
13705 (record_btrace_insn_history_from): Adjust range.
13706 (record_btrace_call_history_range): Include
13708 (record_btrace_call_history_from): Adjust range.
13709 * NEWS: Announce changes.
13711 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13713 * record.h (enum record_print_flag)
13714 <record_print_indent_calls>: New.
13715 * record.c (get_call_history_modifiers): Recognize /c modifier.
13716 (_initialize_record): Document /c modifier.
13717 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13718 Reorder fields. Optionally indent the function name. Update
13720 * NEWS: Announce changes.
13722 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13724 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13726 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13728 * btrace.c (ftrace_new_function): Start counting at one.
13729 * record-btrace.c (record_btrace_info): Adjust number of calls
13731 * NEWS: Announce it.
13733 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13735 * record-btrace.c (btrace_call_history_insn_range): Print
13736 insn range as [begin, end].
13738 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13740 * btrace.h (struct btrace_func_link): New.
13741 (enum btrace_function_flag): New.
13742 (struct btrace_inst): Rename to ...
13743 (struct btrace_insn): ...this. Update all users.
13744 (struct btrace_func) <ibegin, iend>: Remove.
13745 (struct btrace_func_link): New.
13746 (struct btrace_func): Rename to ...
13747 (struct btrace_function): ...this. Update all users.
13748 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13749 (number, level, flags>: New.
13750 (struct btrace_insn_iterator): Rename to ...
13751 (struct btrace_insn_history): ...this.
13753 (struct btrace_insn_iterator, btrace_call_iterator): New.
13754 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13755 (struct btrace_target_info) <begin, end, level>
13756 <insn_history, call_history>: New.
13757 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13758 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13759 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13760 (btrace_call_number, btrace_call_begin, btrace_call_end)
13761 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13762 (btrace_find_function_by_number, btrace_set_insn_history)
13763 (btrace_set_call_history): New.
13764 * btrace.c (btrace_init_insn_iterator)
13765 (btrace_init_func_iterator, compute_itrace): Remove.
13766 (ftrace_print_function_name, ftrace_print_filename)
13767 (ftrace_skip_file): Change
13768 parameter to const.
13769 (ftrace_init_func): Remove.
13770 (ftrace_debug): Use new btrace_function fields.
13771 (ftrace_function_switched): Also consider gaining and
13772 losing symbol information).
13773 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13774 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13775 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13777 (ftrace_new_function): Move. Remove debug print.
13778 (ftrace_update_lines, ftrace_update_insns): New.
13779 (ftrace_update_function): Check for call, ret, and jump.
13780 (compute_ftrace): Renamed to ...
13781 (btrace_compute_ftrace): ...this. Rewritten to compute call
13783 (btrace_fetch, btrace_clear): Updated.
13784 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13785 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13786 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13787 (btrace_call_number, btrace_call_begin, btrace_call_end)
13788 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13789 (btrace_find_function_by_number, btrace_set_insn_history)
13790 (btrace_set_call_history): New.
13791 * record-btrace.c (require_btrace): Use new btrace thread
13793 (record_btrace_info, btrace_insn_history)
13794 (record_btrace_insn_history, record_btrace_insn_history_range):
13795 Use new btrace thread info fields and new iterator.
13796 (btrace_func_history_src_line): Rename to ...
13797 (btrace_call_history_src_line): ...this. Use new btrace
13798 thread info fields.
13799 (btrace_func_history): Rename to ...
13800 (btrace_call_history): ...this. Use new btrace thread info
13801 fields and new iterator.
13802 (record_btrace_call_history, record_btrace_call_history_range):
13803 Use new btrace thread info fields and new iterator.
13805 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13807 * frame.h (frame_id_build_unavailable_stack_special): New.
13808 * frame.c (frame_id_build_unavailable_stack_special): New.
13810 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13812 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13813 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13814 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13816 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13817 (i386_insn_is_jump, i386_jmp_p): New.
13818 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13819 insn_is_jump to gdbarch.
13820 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13821 * gdbarch.h: Regenerated.
13822 * gdbarch.c: Regenerated.
13823 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13824 (default_insn_is_jump): New.
13825 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13826 (default_insn_is_jump): New.
13828 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13830 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13832 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13833 (btrace_read_type) <btrace_read_new>: Change to ...
13834 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13836 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13838 * common/linux-btrace.c (linux_read_btrace): Free trace from
13839 previous iteration.
13841 2014-01-15 Doug Evans <dje@google.com>
13843 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13846 2014-01-15 Tom Tromey <tromey@redhat.com>
13848 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13849 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13850 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13851 (set_objfile_main_name): New function.
13852 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13853 language_of_main>: New fields.
13854 (set_objfile_main_name): Declare.
13855 * symtab.c (find_main_name): Loop over objfiles to find the main
13857 (set_main_name): Now static.
13858 (get_main_info): Add comment.
13859 * symtab.h (set_main_name): Don't declare.
13861 2014-01-15 Tom Tromey <tromey@redhat.com>
13863 * symtab.c (main_progspace_key): New global.
13864 (struct main_info): New.
13865 (name_of_main, language_of_main): Remove.
13866 (get_main_info, main_info_cleanup): New function.
13867 (set_main_name, main_name, main_language): Use get_main_info.
13868 (_initialize_symtab): Initialize main_progspace_key.
13870 2014-01-15 Tom Tromey <tromey@redhat.com>
13872 * dbxread.c (process_one_symbol): Update.
13873 * dwarf2read.c (read_partial_die): Update.
13874 * symfile.c (set_initial_language): Call main_language.
13875 * symtab.c (language_of_main): Now static.
13876 (set_main_name): Add 'lang' parameter.
13877 (find_main_name): Update.
13878 (main_language): New function.
13879 (symtab_observer_executable_changed): Update.
13880 * symtab.h (set_main_name): Update.
13881 (language_of_main): Remove.
13882 (main_language): Declare.
13884 2014-01-15 Tom Tromey <tromey@redhat.com>
13886 * symfile.c (init_entry_point_info): Use new "initialized" field.
13888 * objfiles.h (struct entry_point) <initialized>: New field.
13889 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13890 (struct objfile) <ei>: ...here. Remove.
13891 * objfiles.c (entry_point_address_query): Update.
13893 2014-01-15 Tom Tromey <tromey@redhat.com>
13895 * objfiles.c (entry_point_address_query): Relocate entry point
13897 (objfile_relocate1): Do not relocate entry point address.
13898 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13899 <the_bfd_section_index>: New field.
13900 * symfile.c (init_entry_point_info): Find the entry point's
13903 2014-01-15 Tom Tromey <tromey@redhat.com>
13905 * solib-frv.c (enable_break): Use entry_point_address_query.
13907 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13909 * NEWS: Add note on improved process record-replay on
13910 arm*-linux* targets.
13912 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13914 * arm-tdep.c (enum arm_record_result): New enum.
13915 (arm_record_unsupported_insn): New function.
13916 (arm_record_coproc_data_proc): Removed.
13917 (thumb2_record_ld_st_multiple): New function.
13918 (thumb2_record_ld_st_dual_ex_tbb): New function.
13919 (thumb2_record_data_proc_sreg_mimm): New function.
13920 (thumb2_record_ps_dest_generic): New function.
13921 (thumb2_record_branch_misc_cntrl): New function.
13922 (thumb2_record_str_single_data): New function.
13923 (thumb2_record_ld_mem_hints): New function.
13924 (thumb2_record_ld_word): New function.
13925 (thumb2_record_lmul_lmla_div): New function.
13926 (thumb2_record_decode_insn_handler): New function.
13927 (decode_insn): Add thumb32 instruction handlers.
13929 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13931 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13932 (struct arm_linux_record_tdep): Declare.
13933 (arm_canonicalize_syscall): New function.
13934 (arm_all_but_pc_registers_record): New function.
13935 (arm_linux_syscall_record): New function.
13936 (arm_linux_init_abi): Add syscall recording constructs.
13937 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13938 decoding. (arm_record_coproc_data_proc): Update arm syscall
13940 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13941 <arm_syscall_record>: New field.
13942 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13945 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13947 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13948 register for push instruction recording.
13950 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13952 * arm-tdep.c (thumb_record_misc): Update to correct logical
13953 error while recording ldm, ldmia and pop instructions.
13955 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13957 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13959 2014-01-15 Pedro Alves <palves@redhat.com>
13961 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13962 (go32_resume, go32_fetch_registers, store_register)
13963 (go32_store_registers, go32_prepare_to_store)
13964 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13965 (go32_create_inferior, go32_can_run, go32_terminal_init)
13966 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13969 2014-01-15 Tom Tromey <tromey@redhat.com>
13971 * target.h (async_callback_ftype): New typedef.
13972 (struct target_ops) <to_async>: Use it.
13974 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13976 * python/py-value.c (get_field_type): Remove unnecessary curly
13977 braces for single-statement if block.
13979 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13981 * python/py-type.c (convert_field): Add missing empty line
13982 after declarations.
13984 2014-01-14 Doug Evans <dje@google.com>
13986 * symfile.h (expand_symtabs_matching): Renamed from
13987 expand_partial_symbol_names. Update prototype.
13988 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13989 * symfile.c (expand_symtabs_matching): Renamed from
13990 expand_partial_symbol_names. New args file_matcher, kind.
13991 Rename arg fun to symbol_matcher.
13992 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13993 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13994 ada_expand_partial_symbol_name.
13995 (ada_make_symbol_completion_list): Update to call
13996 expand_symtabs_matching.
13997 (ada_add_global_exceptions): Call expand_symtabs_matching.
13998 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13999 call map_symbol_filenames.
14000 * symtab.c (sources_info): Update to call map_symbol_filenames.
14001 (search_symbols): Call expand_symtabs_matching.
14002 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14003 (default_make_symbol_completion_list_break_on): Update to call
14004 expand_symtabs_matching.
14005 (make_source_files_completion_list): Update to call
14006 map_symbol_filenames.
14008 2014-01-14 Doug Evans <dje@google.com>
14010 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14011 (expand_symtabs_symbol_matcher_ftype): New typedef.
14012 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14013 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14014 * symfile.c (expand_partial_symbol_names): Update to use
14015 expand_symtabs_symbol_matcher_ftype.
14016 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14017 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14018 Arg name_matcher renamed to symbol_matcher.
14019 * psymtab.c (recursively_search_psymtabs): Update to use
14020 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14022 (expand_symtabs_matching_via_partial): Update to use
14023 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14024 Arg name_matcher renamed to symbol_matcher.
14026 2014-01-14 Doug Evans <dje@google.com>
14028 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14029 (map_partial_symbol_filenames): Ditto.
14030 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14031 (map_partial_symbol_filenames): Ditto.
14032 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14033 (map_partial_symbol_filenames): Ditto.
14034 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14035 (map_partial_symbol_filenames): Ditto.
14036 * symtab.c: Delete #include "psymtab.h".
14038 2014-01-14 Pedro Alves <palves@redhat.com>
14039 Tom Tromey <tromey@redhat.com>
14041 * infrun.c (use_displaced_stepping): Use find_record_target
14042 instead of RECORD_IS_USED.
14043 (adjust_pc_after_break): Use record_full_is_used instead of
14045 * record-btrace.c (record_btrace_open): Call record_preopen
14046 instead of checking RECORD_IS_USED.
14047 * record-full.c (record_full_shortname)
14048 (record_full_core_shortname): New globals.
14049 (record_full_is_used): New function.
14050 (find_full_open): Call record_preopen instead of checking
14052 (init_record_full_ops): Set the target's shortname to
14053 record_full_shortname.
14054 (init_record_full_core_ops): Set the target's shortname to
14055 record_full_core_shortname.
14056 * record-full.h (record_full_is_used): Declare.
14057 * record.c (find_record_target): Make extern.
14058 (record_preopen): New function.
14059 * record.h (RECORD_IS_USED): Delete macro.
14060 (find_record_target, record_preopen): Declare functions.
14062 2014-01-14 Yao Qi <yao@codesourcery.com>
14064 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14065 'len''s type to ULONGEST.
14066 (core_xfer_shared_libraries_aix): Likewise.
14067 * gdbarch.c, gdbarch.h: Regenerated.
14068 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14069 Change type of 'len' to ULONGEST.
14070 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14071 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14073 2014-01-14 Yao Qi <yao@codesourcery.com>
14075 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14076 type of 'len' to ULONGEST.
14077 (linux_xfer_osdata_processgroups): Likewise.
14078 (linux_xfer_osdata_threads): Likewise.
14079 (linux_xfer_osdata_fds): Likewise.
14080 (linux_xfer_osdata_isockets): Likewise.
14081 (linux_xfer_osdata_shm): Likewise.
14082 (linux_xfer_osdata_sem): Likewise.
14083 (linux_xfer_osdata_msg): Likewise.
14084 (linux_common_xfer_osdata): Likewise.
14085 (struct osdata_type) <getter>: Likewise.
14086 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14089 2014-01-14 Yao Qi <yao@codesourcery.com>
14091 * target.h (target_xfer_partial_ftype): Update.
14092 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14094 * aix-thread.c (aix_thread_xfer_partial): Change type of
14095 argument 'len' to ULONGEST.
14096 * auxv.c (procfs_xfer_auxv): Likewise.
14097 (ld_so_xfer_auxv): Likewise.
14098 (memory_xfer_auxv): Likewise.
14099 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14100 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14101 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14102 * corelow.c (core_xfer_partial): Likewise.
14103 * ctf.c (ctf_xfer_partial): Likewise.
14104 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14106 (darwin_read_dyld_info): Likewise.
14107 (darwin_xfer_partial): Likewise.
14108 * exec.c (section_table_xfer_memory_partial): Likewise.
14109 (exec_xfer_partial): Likewise.
14110 * exec.h (section_table_xfer_memory_partial): Update
14112 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14113 instead of plongest.
14114 (gnu_xfer_partial): Likewise.
14115 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14116 (ia64_hpux_xfer_solib_got): Likewise.
14117 (ia64_hpux_xfer_partial): Likewise.
14118 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14119 * inf-ptrace.c (inf_ptrace_xfer_partial):
14120 * inf-ttrace.c (inf_ttrace_xfer_partial):
14121 * linux-nat.c (linux_xfer_siginfo): Likewise.
14122 (linux_nat_xfer_partial): Likewise.
14123 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14124 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14125 * monitor.c (monitor_xfer_memory): Likewise.
14126 (monitor_xfer_partial): Likewise.
14127 * procfs.c (procfs_xfer_partial): Likewise.
14128 * record-full.c (record_full_xfer_partial): Likewise.
14129 (record_full_core_xfer_partial): Likewise.
14130 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14131 instead of plongest.
14132 (gdbsim_xfer_partial): Likewise.
14133 * remote.c (remote_xfer_partial): Likewise.
14134 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14135 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14137 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14138 (rs6000_xfer_shared_libraries): Likewise.
14139 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14140 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14141 (sparc_xfer_partial): Likewise.
14142 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14143 (spu_xfer_partial): Likewise.
14144 * spu-multiarch.c (spu_xfer_partial): Likewise.
14145 * target.c (target_read_live_memory): Likewise.
14146 (memory_xfer_live_readonly_partial): Likewise.
14147 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14148 (target_xfer_partial, default_xfer_partial): Likewise.
14149 (current_xfer_partial): Likewise.
14150 * tracepoint.c (tfile_xfer_partial): Likewise.
14151 * windows-nat.c (windows_xfer_memory): Likewise. Call
14152 pulongest instead of plongest.
14153 (windows_xfer_partial): Likewise.
14154 (windows_xfer_shared_libraries): Likewise.
14156 2014-01-14 Yao Qi <yao@codesourcery.com>
14158 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14159 target_xfer_partial_ftype.
14161 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14165 * valops.c (value_struct_elt_bitpos): New function
14166 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14167 object to 'None' if the field name is an empty string ("").
14168 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14169 attribute to look for a field when 'name' is 'None'.
14170 (get_field_type): New function
14172 2014-01-13 Doug Evans <dje@google.com>
14175 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14176 (try_open_dwop_file): Ditto.
14177 * gdb_bfd.c: #include "vec.h".
14178 (bfdp): New typedef.
14179 (struct gdb_bfd_data): New member included_bfds.
14180 (gdb_bfd_unref): Unref all included bfds.
14181 (gdb_bfd_record_inclusion): New function.
14182 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14184 2014-01-13 Tom Tromey <tromey@redhat.com>
14186 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14188 2014-01-13 Tom Tromey <tromey@redhat.com>
14190 * defs.h (use_windows): Remove.
14191 * gdb.c (main): Update.
14192 * main.c (captured_main, gdb_main): Update.
14193 * main.h (struct captured_main_args) <use_windows>: Remove.
14194 * top.c (use_windows): Remove.
14196 2014-01-13 Tom Tromey <tromey@redhat.com>
14198 * defs.h (deprecated_flush_hook): Remove.
14200 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14203 * linux-thread-db.c (try_thread_db_load): Add parameter
14204 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14205 (try_thread_db_load_from_pdir_1): Move it there from here.
14206 (try_thread_db_load_from_sdir): Update caller.
14207 (try_thread_db_load_from_dir): Move it there from here.
14209 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14211 * regformats/regdat.sh: Always rewrite the register file.
14213 2014-01-13 Pedro Alves <palves@redhat.com>
14215 * Makefile.in (CHECK_HEADERS): New variable.
14216 (check-headers:): New rule.
14218 2014-01-13 Tom Tromey <tromey@redhat.com>
14220 * cli/cli-setshow.c (do_set_command): Update.
14221 * defs.h (deprecated_set_hook): Remove.
14222 * top.c (deprecated_set_hook): Remove.
14224 2014-01-13 Pedro Alves <palves@redhat.com>
14226 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14227 the tracepoint if the PC is a pseudo-register.
14229 2014-01-13 Tom Tromey <tromey@redhat.com>
14231 * defs.h (XCALLOC): Remove.
14232 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14233 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14234 * dwarf2loc.c (allocate_piece_closure): Likewise.
14235 * elfread.c (elf_symfile_segments): Likewise.
14236 (elf_symfile_segments): Likewise.
14237 * gdbtypes.c (copy_type_recursive): Likewise.
14238 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14239 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14240 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14242 * mt-tdep.c (mt_gdbarch_init): Likewise.
14243 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14245 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14246 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14247 * registry.c (registry_alloc_data): Likewise.
14248 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14249 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14250 * serial.c (serial_fdopen_ops): Likewise.
14251 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14253 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14254 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14257 2014-01-13 Tom Tromey <tromey@redhat.com>
14259 * defs.h (XMALLOC): Remove.
14260 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14261 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14262 * cli-out.c (struct ui_out *): Likewise.
14263 * cli/cli-dump.c (add_dump_command): Likewise.
14264 (add_dump_command): Likewise.
14265 * complaints.c (get_complaints): Likewise.
14266 (find_complaint): Likewise.
14267 * dwarf2-frame.c (execute_cfa_program): Likewise.
14268 * dwarf2read.c (abbrev_table_read_table): Likewise.
14269 * gdbarch.sh: Likewise.
14270 * gdbarch.c: Rebuild.
14271 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14272 * interps.c (interp_new): Likewise.
14273 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14274 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14275 * mi/mi-console.c (mi_console_file_new): Likewise.
14276 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14277 * mi/mi-out.c (mi_out_new): Likewise.
14278 * mi/mi-parse.c (mi_parse): Likewise.
14279 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14280 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14281 * observer.c (xalloc_observer_list_node): Likewise.
14282 * regcache.c (regcache_xmalloc_1): Likewise.
14283 * reggroups.c (reggroup_new): Likewise.
14284 (_initialize_reggroup): Likewise.
14285 * registry.c (register_data_with_cleanup): Likewise.
14286 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14287 * ser-base.c (serial_ttystate): Likewise.
14288 * ser-mingw.c (make_pipe_state): Likewise.
14289 * ser-pipe.c (pipe_open): Likewise.
14290 * serial.c (serial_open): Likewise.
14291 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14292 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14293 (tui_alloc_win_info): Likewise.
14294 (tui_add_content_elements): Likewise.
14295 * tui/tui-file.c (tui_file_new): Likewise.
14296 * tui/tui-out.c (tui_out_new): Likewise.
14297 * ui-file.c (mem_file_new): Likewise.
14298 * ui-out.c (push_level): Likewise.
14299 (make_cleanup_ui_out_end): Likewise.
14300 (append_header_to_list): Likewise.
14301 (ui_out_new): Likewise.
14302 * user-regs.c (user_reg_add_builtin): Likewise.
14304 2014-01-13 Tom Tromey <tromey@redhat.com>
14306 * defs.h (XZALLOC): Remove.
14307 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14308 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14309 (get_ada_tasks_inferior_data): Likewise.
14310 * auto-load.c (get_auto_load_pspace_data): Likewise.
14311 * auxv.c (get_auxv_inferior_data): Likewise.
14312 * bfd-target.c (target_bfd_reopen): Likewise.
14313 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14314 (deprecated_insert_raw_breakpoint): Likewise.
14315 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14316 * corelow.c (core_open): Likewise.
14317 * darwin-nat.c (darwin_check_new_threads): Likewise.
14318 (darwin_attach_pid): Likewise.
14319 * dummy-frame.c (dummy_frame_push): Likewise.
14320 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14321 * dwarf2loc.c (allocate_piece_closure): Likewise.
14322 * elfread.c (elf_symfile_segments): Likewise.
14323 * eval.c (ptrmath_type_p): Likewise.
14324 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14325 * gdbtypes.c (alloc_type_arch): Likewise.
14326 (alloc_type_instance): Likewise.
14327 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14328 * inf-child.c (inf_child_can_use_agent): Likewise.
14329 * inflow.c (get_inflow_inferior_data): Likewise.
14330 * infrun.c (save_infcall_suspend_state): Likewise.
14331 * jit.c (jit_reader_load): Likewise.
14332 (get_jit_objfile_data): Likewise.
14333 (get_jit_program_space_data): Likewise.
14334 (jit_object_open_impl): Likewise.
14335 (jit_symtab_open_impl): Likewise.
14336 (jit_block_open_impl): Likewise.
14337 (jit_frame_sniffer): Likewise.
14338 * linux-fork.c (add_fork): Likewise.
14339 * maint.c (make_command_stats_cleanup): Likewise.
14340 * objfiles.c (get_objfile_pspace_data): Likewise.
14341 * opencl-lang.c (struct lval_closure): Likewise.
14342 * osdata.c (osdata_start_osdata): Likewise.
14343 * progspace.c (new_address_space): Likewise.
14344 (add_program_space): Likewise.
14345 * remote-sim.c (get_sim_inferior_data): Likewise.
14346 * sh-tdep.c (sh_gdbarch_init): Likewise.
14347 * skip.c (Ignore): Likewise.
14348 (skip_delete_command): Likewise.
14349 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14350 (library_list_start_library): Likewise.
14351 (solib_aix_current_sos): Likewise.
14352 * solib-darwin.c (get_darwin_info): Likewise.
14353 (darwin_current_sos): Likewise.
14354 * solib-dsbt.c (get_dsbt_info): Likewise.
14355 * solib-ia64-hpux.c (new_so_list): Likewise.
14356 (ia64_hpux_get_solib_linkage_addr): Likewise.
14357 * solib-spu.c (append_ocl_sos): Likewise.
14358 (spu_current_sos): Likewise.
14359 * solib-svr4.c (get_svr4_info): Likewise.
14360 (svr4_keep_data_in_core): Likewise.
14361 (library_list_start_library): Likewise.
14362 (svr4_default_sos): Likewise.
14363 (svr4_read_so_list): Likewise.
14364 * solib-target.c (library_list_start_library): Likewise.
14365 (solib_target_current_sos): Likewise.
14366 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14367 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14368 * symfile.c (default_symfile_segments): Likewise.
14369 * target-descriptions.c (tdesc_data_init): Likewise.
14370 (tdesc_create_reg): Likewise.
14371 (struct tdesc_type *): Likewise.
14372 (tdesc_create_vector): Likewise.
14373 (tdesc_set_struct_size): Likewise.
14374 (struct tdesc_type *): Likewise.
14375 (tdesc_free_feature): Likewise.
14376 (tdesc_create_feature): Likewise.
14377 * windows-nat.c (windows_add_thread): Likewise.
14378 (windows_make_so): Likewise.
14379 * xml-support.c (gdb_xml_body_text): Likewise.
14380 (gdb_xml_create_parser_and_cleanup): Likewise.
14381 (xml_process_xincludes): Likewise.
14382 * xml-syscall.c (allocate_syscalls_info): Likewise.
14383 (syscall_create_syscall_desc): Likewise.
14385 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14387 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14388 function, with code from i386_stap_parse_special_token.
14389 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14390 (i386_stap_parse_special_token): Move code to the two functions
14391 above; simplify it.
14393 2014-01-09 Pedro Alves <palves@redhat.com>
14394 Hui Zhu <hui@codesourcery.com>
14397 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14398 bp_err_string. Don't mark the location shlib_disabled if the
14399 error thrown wasn't a generic or memory error. Catch errors
14400 thrown while inserting breakpoints in overlayed code. Output
14401 error message of software breakpoints.
14402 * remote.c (remote_insert_breakpoint): If this breakpoint has
14403 target-side commands but this stub doesn't support Z0 packets,
14404 throw NOT_SUPPORTED_ERROR error.
14405 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14406 * target.h (target_insert_breakpoint): Extend comment.
14407 (target_insert_hw_breakpoint): Add comment.
14409 2014-01-08 Pedro Alves <palves@redhat.com>
14411 * remote.c (remote_add_thread): Add threads silently if starting
14413 (remote_notice_new_inferior): If in all-stop, and starting up,
14414 don't call notice_new_inferior.
14415 (get_current_thread): New function, factored out from ...
14416 (add_current_inferior_and_thread): ... this. Adjust.
14417 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14418 found any thread, then select the remote's current thread as GDB's
14419 current thread too.
14421 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14423 * NEWS: Create a new section for the next release branch.
14424 Rename the section of the current branch, now that it has
14427 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14429 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14430 * version.in: Bump version to 7.7.50.DATE-cvs.
14432 2014-01-08 Yao Qi <yao@codesourcery.com>
14434 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14435 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14436 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14438 2014-01-08 Yao Qi <yao@codesourcery.com>
14440 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14441 return value of bfd_get_filename to symbol_file_add_from_bfd.
14443 2014-01-08 Pierre Muller <muller@sourceware.org>
14446 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14447 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14448 to prim_record_mininal_symbol_and_info.
14449 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14450 in call to prim_record_minimal_symbol_and_info.
14451 (read_pe_exported_syms): Set index field of section_data.
14453 2014-01-07 Andrew Pinski <apinski@cavium.com>
14455 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14456 * features/aarch64.c: Regenerate.
14458 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14460 * target.c (return_null): Define.
14461 (update_current_target): Use it instead of return_zero for
14462 functions that return a pointer.
14464 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14466 * source.c (add_path): Fix check for duplicated paths in the previously
14469 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14471 * ada-lang.c: Remove duplicated include statements.
14472 * alphabsd-nat.c: Ditto.
14473 * amd64-darwin-tdep.c: Ditto.
14474 * amd64fbsd-nat.c: Ditto.
14475 * auto-load.c: Ditto.
14477 * breakpoint.c: Ditto.
14478 * dbxread.c: Ditto.
14479 * fork-child.c: Ditto.
14480 * gdb_usleep.c: Ditto.
14481 * i386-darwin-tdep.c: Ditto.
14482 * i386fbsd-nat.c: Ditto.
14484 * inferior.c: Ditto.
14485 * jv-lang.c: Ditto.
14486 * linux-nat.c: Ditto.
14487 * linux-tdep.c: Ditto.
14488 * m68kbsd-nat.c: Ditto.
14489 * m68klinux-nat.c: Ditto.
14490 * microblaze-tdep.c: Ditto.
14491 * mips-linux-tdep.c: Ditto.
14492 * mn10300-tdep.c: Ditto.
14493 * nto-tdep.c: Ditto.
14494 * opencl-lang.c: Ditto.
14496 * printcmd.c: Ditto.
14497 * regcache.c: Ditto.
14498 * remote-m32r-sdi.c: Ditto.
14500 * symfile.c: Ditto.
14502 * tilegx-linux-nat.c: Ditto.
14503 * tilegx-tdep.c: Ditto.
14504 * tracepoint.c: Ditto.
14506 * vaxbsd-nat.c: Ditto.
14507 * windows-nat.c: Ditto.
14508 * xtensa-tdep.c: Ditto.
14510 2014-01-07 Yao Qi <yao@codesourcery.com>
14512 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14514 2014-01-07 Yao Qi <yao@codesourcery.com>
14515 Joel Brobecker <brobecker@adacore.com>
14517 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14518 (pdc_write_regs): Likewise.
14519 (fetch_regs_kernel_thread): Likewise.
14520 (store_regs_kernel_thread): Likewise.
14522 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14524 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14525 tagged type objects to their actual type.
14527 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14529 * ada-valprint.c (print_field_values): Add "language" parameter.
14530 Update calls to print_field_values and print_variant_part.
14531 Pass new parameter "language" in call to val_print instead
14532 of "current_language". Replace call to ada_val_print by call
14534 (print_variant_part): Add "language" parameter.
14535 (ada_val_print_struct_union): Update call to print_field_values.
14537 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14539 * ada-valprint.c (ui_memcpy): Delete.
14540 (ada_print_floating): Update documentation. Add empty line
14541 between between function documentation and implementation.
14542 Delete variable "buffer". Use ui_file_xstrdup in place of
14543 ui_file_put. Minor adjustments following this change.
14545 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14547 * ada-valprint.c (ada_val_print_string): New function,
14548 extracted from ada_val_print_array.
14549 (ada_val_print_array): Replace extracted code by call
14550 to ada_val_print_string followed by a return. Move
14551 "else" branch to the function's top block.
14553 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14555 * ada-valprint.c (ada_val_print_array): Move implementation
14556 down. Rename parameter "offset" and "val" into "offset_aligned"
14557 and "original_value" respectively. Add parameter "offset".
14559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14561 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14562 re-organizing the code. Change the "???" message printed
14563 when target type is a TYPE_CODE_UNDEF into
14564 "<ref to undefined type>".
14566 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14568 * ada-valprint.c (print_record): Delete, implementation inlined...
14569 (ada_val_print_struct_union): ... here. Remove call to
14570 ada_check_typedef in inlined implementation.
14572 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14574 * ada-valprint.c (ada_val_print_gnat_array): New function,
14575 extracted from ada_val_print_1;
14576 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14577 (ada_val_print_flt, ada_val_print_struct_union)
14578 (ada_val_print_ref): Likewise.
14579 (ada_val_print_1): Delete variables i and elttype.
14580 Replace extracted-out code by call to corresponding
14583 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14585 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14587 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14589 * ada-valprint.c (ada_val_print_1): Replace calls to
14590 ada_val_print_1 by calls to val_print.
14592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14594 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14595 Update calls to self accordingly. Replace calls to c_val_print
14596 by calls to val_print.
14598 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14600 * ada-valprint.c (print_record): Delete declaration.
14601 (adjust_type_signedness, ada_val_print_1): Likewise.
14602 (ada_val_print): Move function implementation down.
14603 (print_variant_part, print_field_values, print_record):
14604 Move function implementation up.
14606 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14608 * python/py-type.c (typy_get_name): New function.
14609 (type_object_getset): Add entry for attribute "name".
14610 * NEWS: Add entry mentioning this new attribute.
14612 2014-01-07 Yao Qi <yao@codesourcery.com>
14614 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14617 2014-01-07 Yao Qi <yao@codesourcery.com>
14619 * gnu-nat.c (info_port_rights): Add qualifier const to
14622 2014-01-07 Yao Qi <yao@codesourcery.com>
14624 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14626 2014-01-07 Yao Qi <yao@codesourcery.com>
14628 * gnu-nat.c (make_inf) Update declaration.
14629 (make_inf): Make it static.
14630 (inf_set_traced): Likewise.
14631 (inf_port_to_thread, inf_task_died_status): Likewise.
14633 2014-01-07 Yao Qi <yao@codesourcery.com>
14635 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14637 2014-01-07 Yao Qi <yao@codesourcery.com>
14639 * gnu-nat.c (_initialize_gnu_nat): Declare.
14641 2014-01-07 Yao Qi <yao@codesourcery.com>
14643 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14645 (struct gdbarch_info) <byte_order>: Change type to
14647 <byte_order_for_code>: Likewise.
14648 * gdbarch.c, gdbarch.h: Regenerated.
14650 2014-01-06 Sasha Smundak <asmundak@google.com>
14652 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14654 2014-01-06 Tom Tromey <tromey@redhat.com>
14656 * doublest.c (convert_doublest_to_floatformat): Use const, not
14658 * somread.c (som_symtab_read): Likewise.
14660 2014-01-07 Hui Zhu <hui@codesourcery.com>
14662 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14663 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14664 (gdb_bfd_fopen): Ditto.
14665 (gdb_bfd_openr): Ditto.
14666 (gdb_bfd_openw): Ditto.
14667 (gdb_bfd_openr_iovec): Ditto.
14668 (gdb_bfd_fdopenr): Ditto.
14669 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14670 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14672 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14674 * symfile-mem.c (symbol_file_add_from_memory): Removed
14675 gdb_bfd_stash_filename.
14677 2014-01-03 Doug Evans <dje@google.com>
14679 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14682 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14684 Update year range in copyright notice of all files.
14686 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14688 * top.c (print_gdb_version): Set copyright year to 2014.
14690 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14692 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14694 For older changes see ChangeLog-2013.
14700 version-control: never