1 2014-10-29 Pedro Alves <palves@redhat.com>
3 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
6 2014-10-29 Pedro Alves <palves@redhat.com>
10 * tui/tui-interp.c (tui_is_toplevel): Delete global.
11 (tui_allowed_p): Delete function.
12 * tui/tui.c: Include "interps.h".
13 (tui_enable): Don't use tui_allowed_p. Error out here with
14 detailed error messages if the TUI is the top level interpreter,
15 or if output is not a terminal. Use newterm instead of initscr,
16 and error out if initializing the terminal fails. Also error out if
17 the terminal doesn't support cursor addressing.
18 * tui/tui.h (tui_allowed_p): Delete declaration.
20 2014-10-29 Joel Brobecker <brobecker@adacore.com>
22 * arm-tdep.c (arm_skip_stack_protector): Return early if
23 address loaded by first "ldr" instruction does not have
24 a corresponding minimal symbol. Update comment.
26 2014-10-29 Yao Qi <yao@codesourcery.com>
28 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
29 loaded address correctly of ldr instruction.
31 2014-10-28 Pedro Alves <palves@redhat.com>
34 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
36 * infrun.c (resume) <stepping breakpoint instruction>: Set the
37 thread's stepped_breakpoint field. Skip if reverse debugging.
39 (init_thread_stepping_state, handle_signal_stop): Clear the
40 thread's stepped_breakpoint field.
42 2014-10-27 Pedro Alves <palves@redhat.com>
44 * remote.c (remote_thread_alive): New, factored out from ...
45 (remote_thread_alive): ... this.
46 (remote_update_thread_list): Bail out before deleting threads if
47 the target returned an empty list, and, the current thread has a
50 2014-10-27 Pedro Alves <palves@redhat.com>
52 * infrun.c (handle_signal_stop): Also skip handlers when a random
53 signal arrives while handling a "stepi" or a "nexti". Set the
54 thread's 'step_after_step_resume_breakpoint' flag.
56 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
58 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
59 (arm_record_ld_st_imm_offset): Reimplement to cover all
60 load/store cases for ARM opcode 010.
61 (arm_record_ld_st_multiple): Reimplement to cover all
62 load/store cases for ARM opcode 100.
64 2014-10-26 Doug Evans <xdje42@gmail.com>
66 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
68 2014-10-26 Doug Evans <xdje42@gmail.com>
70 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
71 parameter "kind" to "block_index".
72 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
74 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
76 2014-10-26 Doug Evans <xdje42@gmail.com>
78 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
80 2014-10-26 Doug Evans <xdje42@gmail.com>
82 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
85 2014-10-26 Doug Evans <xdje42@gmail.com>
87 * parser-defs.h (block_found): Move decl from here ...
88 * symtab.h (block_found): ... to here.
90 2014-10-26 Doug Evans <xdje42@gmail.com>
92 * symtab.h (struct field_of_this_result): Fix typo in comment.
93 (lookup_symbol_in_language): Move function comment here.
94 (lookup_symbol): Improve function comment.
95 (basic_lookup_symbol_nonlocal): Ditto.
96 (lookup_symbol_static, lookup_symbol_global): Ditto.
97 (lookup_symbol_aux_block): Ditto.
98 (lookup_language_this): Add function comment.
99 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
101 (lookup_block_symbol): Improve function comment.
102 (lookup_struct): Fix capitalization in function comment.
103 (lookup_transparent_type): Add function comment.
104 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
105 Improve function comment.
106 (lookup_objfile_from_block): Add function comment.
107 * symtab.c (lookup_symbol_in_language): Update function comment.
108 (lookup_symbol, lookup_language_this): Ditto.
109 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
110 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
111 (basic_lookup_symbol_nonlocal): Ditto.
112 (lookup_symbol_static, lookup_symbol_global): Ditto.
113 (lookup_transparent_type, lookup_block_symbol): Ditto.
115 2014-10-25 Doug Evans <xdje42@gmail.com>
117 * symtab.c (types_info): Delete forward decl.
118 (functions_info, variables_info, sources_info): Ditto.
119 (_initialize_symtab): Rewrite forward decl to use
120 initialize_file_ftype.
122 2014-10-25 Doug Evans <xdje42@gmail.com>
124 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
126 2014-10-25 Doug Evans <xdje42@gmail.com>
128 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
129 of local var child_die.
131 2014-10-24 Don Breazeal <donb@codesourcery.com>
133 * infrun.c (follow_fork_inferior): Update fork message printing
134 to use target_terminal_ours_for_output instead of
135 target_terminal_ours, to use _() for all format strings, to print
136 "vfork" instead of "fork" for vforks, and to add a detach message.
137 (handle_vfork_child_exec_or_exit): Update message printing to use
138 target_terminal_ours_for_output instead of target_terminal_ours, to
139 use _() for all format strings, and to fix some formatting.
141 2014-10-24 Pedro Alves <palves@redhat.com>
143 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
144 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
145 * config/vax/vax.mh: Delete.
146 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
147 obsolete configurations section.
148 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
149 * vax-nat.c: Delete file.
151 2014-10-24 Pedro Alves <palves@redhat.com>
153 * NEWS (Removed targets): Add OS/arch column.
155 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
157 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
158 on the arg type of a constructor only if it is of reference type.
160 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
162 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
163 accessors and constants from nios2 opcodes update.
164 (nios2_get_next_pc): Likewise.
166 2014-10-19 Doug Evans <xdje42@gmail.com>
168 * gdbthread.h (set_running): Fix comment.
169 (set_executing, finish_thread_state): Fix comment.
171 2014-10-18 Doug Evans <xdje42@gmail.com>
173 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
175 2014-10-17 Doug Evans <dje@google.com>
177 * NEWS: Mention new event gdb.clear_objfiles.
178 * python/py-event.h (emit_clear_objfiles_event): Clear
179 * python/py-events.h (events_object): New member clear_objfiles.
180 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
182 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
183 emit clear_objfiles event.
184 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
186 (emit_clear_objfiles_event): New function.
187 (clear_objfiles): New event.
188 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
190 * python/python.c (_initialize_python): Call
191 gdbpy_initialize_clear_objfiles_event.
193 2014-10-17 Doug Evans <dje@google.com>
195 * NEWS: Mention new gdb.Objfile.progspace attribute.
196 * python/py-objfile.c (objfpy_get_progspace): New function.
197 (objfile_getset): New entry for "progspace".
199 2014-10-17 Pedro Alves <palves@redhat.com>
202 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
203 returns a copy of the input.
204 (run_command_1, continue_command, step_1, jump_command)
205 (signal_command, until_command, advance_command, finish_command)
206 (attach_command): Adjust and install a cleanup to free the
209 2014-10-17 Pedro Alves <palves@redhat.com>
212 * infcmd.c (continue_1): If continuing all threads in the
213 foreground, make sure the inferior's terminal settings are put in
216 2014-10-17 Pedro Alves <palves@redhat.com>
219 * annotate.c (annotate_breakpoints_invalid): Use
220 target_terminal_our_for_output instead of target_terminal_ours.
221 Give back the terminal to the target.
222 (annotate_frames_invalid): Likewise.
224 2014-10-17 Pedro Alves <palves@redhat.com>
226 * target.c (enum terminal_state): New enum.
227 (terminal_state): New global.
228 (target_terminal_init): New function.
229 (target_terminal_inferior): Skip if inferior already owns the
231 (target_terminal_ours, target_terminal_ours_for_output): New
233 * target.h (target_terminal_init): Convert to function prototype.
234 (target_terminal_ours_for_output): Convert to function prototype
236 (target_terminal_ours): Convert to function prototype and tweak
238 * windows-nat.c (do_initial_windows_stuff): Call
239 target_terminal_init instead of child_terminal_init_with_pgrp.
241 2014-10-17 Pedro Alves <palves@redhat.com>
243 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
244 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
245 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
247 * NEWS: Mention that support for alpha*-*-osf* has been removed.
248 * ada-lang.h [__alpha__ && __osf__]
249 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
250 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
251 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
253 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
255 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
256 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
257 * configure: Regenerate.
258 * configure.ac: Remove references to osf.
259 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
260 section. Remove all other references to osf.
261 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
262 Remove all other references to osf.
263 * dec-thread.c: Delete file.
264 * defs.h (GDB_OSABI_OSF1): Delete.
265 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
267 * osabi.c (gdb_osabi_names): Delete "OSF/1".
268 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
270 (unconditionally_kill_inferior)
271 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
272 * solib-osf.c: Delete file.
274 2014-10-17 Pedro Alves <palves@redhat.com>
276 * remote.c (clear_threads_listing_context): Move higher up, out of
277 the HAVE_LIBEXPAT guard.
279 2014-10-16 Tristan Gingold <gingold@adacore.com>
281 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
282 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
285 2014-10-15 Pedro Alves <palves@redhat.com>
287 * dec-thread.c (dec_thread_count_gdb_threads)
288 (dec_thread_add_gdb_thread): Delete.
289 (dec_thread_update_thread_list): Delete.
290 (dec_thread_find_new_threads): Rename to ...
291 (dec_thread_update_thread_list): ... this. Delete GDB-size
292 threads that are no longer found in dec_thread_list.
293 (resync_thread_list): Delete.
294 (dec_thread_wait): Call dec_thread_update_thread_list instead of
297 2014-10-15 Pedro Alves <palves@redhat.com>
299 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
300 * remote.c (remote_update_thread_list): Skip calling prune_threads
301 if any thread listing method is supported, and instead walk over
302 the set of remote threads listed, deleting those that are not
303 found in GDB's thread list.
305 2014-10-15 Pedro Alves <palves@redhat.com>
307 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
308 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
309 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
310 (bsd_uthread_target): Adjust.
311 * corelow.c (core_open): Adjust.
312 * dec-thread.c (dec_thread_find_new_threads): Update comment.
313 (dec_thread_update_thread_list): New function.
314 (init_dec_thread_ops): Adjust.
315 * gdbthread.h (prune_threads): New declaration.
316 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
317 (thread_db_update_thread_list): ... this. Call prune_threads.
318 (init_thread_db_ops): Adjust.
319 * nto-procfs.c (procfs_find_new_threads): Rename to ...
320 (procfs_update_thread_list): ... this. Call prune_threads.
321 (procfs_attach, procfs_create_inferior, init_procfs_targets):
323 * obsd-nat.c (obsd_find_new_threads): Rename to ...
324 (obsd_update_thread_list): ... this. Call prune_threads.
325 (obsd_add_target): Adjust.
326 * procfs.c (procfs_target): Adjust.
327 (procfs_notice_thread): Update comment.
328 (procfs_find_new_threads): Rename to ...
329 (procfs_update_thread_list): ... this. Call prune_threads.
330 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
332 (ravenscar_wait): Adjust.
333 (ravenscar_find_new_threads): Rename to ...
334 (ravenscar_update_thread_list): ... this. Call prune_threads.
335 (init_ravenscar_thread_ops): Adjust.
336 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
337 (record_btrace_update_thread_list): ... this. Adjust comment.
338 (init_record_btrace_ops): Adjust.
339 * remote.c (remote_threads_info): Rename to ...
340 (remote_update_thread_list): ... this. Call prune_threads.
341 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
343 * sol-thread.c (check_for_thread_db): Adjust.
344 (sol_find_new_threads_callback): Rename to ...
345 (sol_update_thread_list_callback): ... this.
346 (sol_find_new_threads): Rename to ...
347 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
348 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
349 * target-delegates.c: Regenerate.
350 * target.c (target_find_new_threads): Rename to ...
351 (target_update_thread_list): ... this.
352 * target.h (struct target_ops): Rename to_find_new_threads field
353 to to_update_thread_list.
354 (target_find_new_threads): Rename to ...
355 (target_update_thread_list): ... this.
356 * thread.c (prune_threads): Make extern.
357 (update_thread_list): Adjust.
359 2014-10-15 Pedro Alves <palves@redhat.com>
361 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
362 Add describing comment. Return -1 if the qL packet is not
364 (struct thread_item, thread_item_t): Move higher up in
365 the file. Add comments.
366 (struct threads_parsing_context): Move higher up in
367 the file, add comments, and remote to ...
368 (struct threads_listing_context): ... this.
369 (remote_newthread_step): Don't add the thread to GDB's thread
370 database here. Instead push it to the thread_listing_context
372 (remote_find_new_threads): Rename to ...
373 (remote_get_threads_with_ql): ... this. Add target_ops and
374 targets_listing_context parameters. Pass down context.
375 (start_thread): Adjust.
376 (clear_threads_parsing_context): Rename to ...
377 (clear_threads_listing_context): ... this.
378 (remote_get_threads_with_qxfer): New, with parts salvaged from old
380 (remote_get_threads_with_qthreadinfo): Ditto.
381 (remote_threads_info): Reimplement.
383 2014-10-15 Pedro Alves <palves@redhat.com>
385 * infrun.c (resume): Don't force displaced-stepping for all
386 single-steps on software single-stepping archs.
388 2014-10-15 Pedro Alves <palves@redhat.com>
390 * breakpoint.c (single_step_breakpoints): Delete global.
391 (insert_single_step_breakpoint): Adjust to store the breakpoint
392 pointer in the current thread.
393 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
394 (cancel_single_step_breakpoints): Delete functions.
395 (breakpoint_has_location_inserted_here): Make extern.
396 (single_step_breakpoint_inserted_here_p): Adjust to walk the
398 * breakpoint.h (breakpoint_has_location_inserted_here): New
400 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
401 (cancel_single_step_breakpoints): Remove declarations.
402 * gdbthread.h (struct thread_control_state)
403 <single_step_breakpoints>: New field.
404 (delete_single_step_breakpoints)
405 (thread_has_single_step_breakpoints_set)
406 (thread_has_single_step_breakpoint_here): New declarations.
407 * infrun.c (follow_exec): Also clear the single-step breakpoints.
408 (singlestep_breakpoints_inserted_p, singlestep_ptid)
409 (singlestep_pc): Delete globals.
410 (infrun_thread_ptid_changed): Remove references to removed
412 (resume_cleanups): Delete the current thread's single-step
414 (maybe_software_singlestep): Remove references to removed globals.
415 (resume): Adjust to use thread_has_single_step_breakpoints_set and
416 delete_single_step_breakpoints.
417 (init_wait_for_inferior): Remove references to removed globals.
418 (delete_thread_infrun_breakpoints): Delete the thread's
419 single-step breakpoints too.
420 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
421 single-step breakpoints here.
422 (delete_stopped_threads_single_step_breakpoints): New function.
423 (adjust_pc_after_break): Adjust to use
424 thread_has_single_step_breakpoints_set.
425 (handle_inferior_event): Remove references to removed globals.
426 Use delete_stopped_threads_single_step_breakpoints.
427 (handle_signal_stop): Adjust to per-thread single-step
428 breakpoints. Swap test order to do cheaper tests first.
429 (switch_back_to_stepped_thread): Extend debug output. Remove
430 references to removed globals.
431 * record-full.c (record_full_wait_1): Adjust to per-thread
432 single-step breakpoints.
433 * thread.c (delete_single_step_breakpoints)
434 (thread_has_single_step_breakpoints_set)
435 (thread_has_single_step_breakpoint_here): New functions.
436 (clear_thread_inferior_resources): Also delete the thread's
437 single-step breakpoints.
439 2014-10-15 Pedro Alves <palves@redhat.com>
441 * thread.c (delete_thread_breakpoint): New function.
442 (delete_step_resume_breakpoint)
443 (delete_exception_resume_breakpoint): Use it.
444 (delete_at_next_stop): New function.
445 (clear_thread_inferior_resources): Use delete_at_next_stop.
447 2014-10-15 Pedro Alves <palves@redhat.com>
449 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
450 (breakpoint_inserted_here_p): ... here. Remove special case for
451 software single-step breakpoints.
452 (find_non_raw_software_breakpoint_inserted_here): Inline ...
453 (software_breakpoint_inserted_here_p): ... here. Remove special
454 case for software single-step breakpoints.
455 (bp_target_info_copy_insertion_state)
456 (deprecated_insert_raw_breakpoint)
457 (deprecated_remove_raw_breakpoint): Delete functions.
458 * breakpoint.h (deprecated_insert_raw_breakpoint)
459 (deprecated_remove_raw_breakpoint): Remove declarations.
461 2014-10-15 Pedro Alves <palves@redhat.com>
464 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
465 Delete array globals.
466 (single_step_breakpoints): New global.
467 (breakpoint_xfer_memory): Remove special handling for single-step
469 (update_breakpoints_after_exec): Delete bp_single_step
471 (detach_breakpoints): Remove special handling for single-step
473 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
474 (bpstat_stop_status): Add comment.
475 (bpstat_what, bptype_string, print_one_breakpoint_location)
476 (adjust_breakpoint_address, init_bp_location): Handle
478 (new_single_step_breakpoint): New function.
479 (set_momentary_breakpoint, bkpt_remove_location): Remove special
480 handling for single-step breakpoints.
481 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
482 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
484 (detach_single_step_breakpoints, find_single_step_breakpoint):
486 (breakpoint_has_location_inserted_here): New function.
487 (single_step_breakpoint_inserted_here_p): Rewrite.
488 * breakpoint.h: Remove FIXME.
489 (enum bptype) <bp_single_step>: New enum value.
490 (insert_single_step_breakpoint): Update comment.
491 * infrun.c (resume_cleanups)
492 (delete_step_thread_step_resume_breakpoint): Remove single-step
494 (fetch_inferior_event): Install a cleanup that removes infrun
496 (switch_back_to_stepped_thread) <expect thread advanced also>:
497 Clear step-over info.
499 2014-10-15 Pedro Alves <palves@redhat.com>
501 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
502 (delete_thread_infrun_breakpoints): New function, with parts
503 salvaged from delete_step_resume_breakpoint_callback.
504 (delete_step_thread_step_resume_breakpoint): Delete.
505 (for_each_just_stopped_thread_callback_func): New typedef.
506 (for_each_just_stopped_thread): New function.
507 (delete_just_stopped_threads_infrun_breakpoints): New function.
508 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
509 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
511 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
513 2014-10-15 Pedro Alves <palves@redhat.com>
515 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
516 trying to step past a non-steppable watchpoint.
517 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
519 * infrun.c (struct step_over_info): Add new field
520 'nonsteppable_watchpoint_p' and adjust comments.
521 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
523 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
524 (stepping_past_nonsteppable_watchpoint): New function.
525 (step_over_info_valid_p): Also return true if stepping past a
526 nonsteppable watchpoint.
527 (proceed): Adjust call to set_step_over_info. Remove reference to
529 (init_wait_for_inferior): Remove reference to init_infwait_state.
530 (waiton_ptid): Delete global.
531 (struct execution_control_state)
532 <stepped_after_stopped_by_watchpoint>: Delete field.
533 (wait_for_inferior, fetch_inferior_event): Always pass
534 minus_one_ptid to target_wait.
535 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
537 (init_infwait_state): Delete function.
538 (handle_inferior_event): Remove infwait_state handling.
539 (handle_signal_stop) <watchpoints handling>: Adjust after
540 stepped_after_stopped_by_watchpoint removal. Don't remove
541 breakpoints here nor set infwait_state. Set the thread's
542 stepping_over_watchpoint flag, and call keep_going instead.
543 (keep_going): Handle stepping_over_watchpoint. Adjust
544 set_step_over_info calls.
545 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
548 2014-10-15 Pedro Alves <palves@redhat.com>
550 * infrun.c (step_over_info_valid_p): New function.
551 (resume): Use step_over_info_valid_p instead of checking the
552 threads's trap_expected flag.
554 2014-10-15 Doug Evans <dje@google.com>
555 Walfred Tedeschi <walfred.tedeschi@intel.com>
558 * python/lib/gdb/__init__.py (packages): Add "printer".
559 * python/lib/gdb/command/bound_registers.py: Moved to ...
560 * python/lib/gdb/printer/bound_registers.py: ... here.
561 Add printer to global set of builtin printers. Rename printer from
562 "bound" to "mpx_bound128".
563 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
564 registered as global "builtin" printer.
565 (add_builtin_pretty_printer): New function.
566 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
567 gdb/printer/__init__.py.
569 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
571 * Makefile.in (SFILES): Remove d-support.c.
572 (COMMON_OBS): Remove d-support.o.
573 * d-lang.h (d_parse_symbol): Remove declaration.
574 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
575 * d-support.c: Remove file.
577 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
579 * gdb/infrun.c (process_event_stop_test): Apply
580 gdbarch_addr_bits_remove to longjmp resume address.
582 2014-10-15 Pedro Alves <palves@redhat.com>
584 * regformats/microblaze.dat: Delete file.
586 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
588 * features/Makefile (microblaze-expedite): Replace pc with rpc.
589 * regformats/microblaze-with-stack-protect.dat: Regenerate.
591 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
593 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
596 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
600 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
603 2014-10-14 Joel Brobecker <brobecker@adacore.com>
605 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
606 of the case where the second operand is a pointer.
607 <BINOP_SUB>: Likewise.
609 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
611 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
612 only if it is not NULL.
613 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
614 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
615 (struct probe_ops) <clear_semaphore>: Likewise.
616 * tracepoint.c (start_tracing): Call set_semaphore only if it is
618 (stop_tracing): Likewise, for clear_semaphore.
620 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
622 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
623 using language_c, instead of current_language.
625 2014-10-13 Doug Evans <dje@google.com>
627 * python/py-objfile.c (objfpy_initialize): New function.
628 (objfpy_new, objfile_to_objfile_object): Call it.
629 * python/py-progspace.c (pspy_initialize): New function.
630 (pspy_new, pspace_to_pspace_object): Call it.
632 2014-10-13 Miroslav Franc <mfranc@redhat.com>
633 Jan Kratochvil <jan.kratochvil@redhat.com>
635 Fix "save breakpoints" for "catch" command.
636 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
639 2014-10-12 Miroslav Franc <mfranc@redhat.com>
641 Fix "save breakpoints" for "disable $bpnum" command.
642 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
644 2014-10-10 Pedro Alves <palves@redhat.com>
646 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
647 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
648 (HFILES_NO_SRCDIR): Remove solib-irix.h.
649 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
651 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
652 * configure.ac: Remove references to IRIX.
653 * configure.host: Add *-*-irix* to the obsolete hosts section.
654 Remove all other references to irix.
655 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
658 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
660 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
661 isn't valid, release the tdesc arch data and return NULL.
663 2014-10-10 Pedro Alves <palves@redhat.com>
665 * linux-tdep.c: Include observer.h.
666 (linux_inferior_data): New global.
667 (struct linux_info): New structure.
668 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
669 (get_linux_inferior_data): New functions.
670 (linux_vsyscall_range): Rename to ...
671 (linux_vsyscall_range_raw): ... this.
672 (linux_vsyscall_range): New function; handles caching.
673 (_initialize_linux_tdep): Register linux_inferior_data. Install
674 inferior_exit and inferior_appeared observers.
676 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
677 Pedro Alves <palves@redhat.com>
680 * solib-svr4.c (svr4_read_so_list): Rename to ...
681 (svr4_current_sos_1): ... this and change the function comment.
682 (svr4_current_sos): New function.
684 2014-10-10 Pedro Alves <palves@redhat.com>
686 * arch-utils.c (default_vsyscall_range): New function.
687 * arch-utils.h (default_vsyscall_range): New declaration.
688 * gdbarch.sh (vsyscall_range): New hook.
689 * gdbarch.h, gdbarch.c: Regenerate.
690 * linux-tdep.c (linux_vsyscall_range): New function.
691 (linux_init_abi): Install linux_vsyscall_range as
692 vsyscall_range gdbarch hook.
693 * memrange.c (address_in_mem_range): New function.
694 * memrange.h (address_in_mem_range): New declaration.
695 * symfile-mem.c (find_vdso_size): Delete function.
696 (add_vsyscall_page): Use gdbarch_vsyscall_range.
698 2014-10-10 Pedro Alves <palves@redhat.com>
700 * infrun.c (normal_stop): Fix typo in comment.
702 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
705 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
706 typo when using logical AND to determine instruction type.
708 2014-10-09 Yao Qi <yao@codesourcery.com>
710 * infrun.c (handle_signal_stop): Remove local variable
713 2014-10-08 Stan Shebs <stan@codesourcery.com>
715 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
717 2014-10-08 Gary Benson <gbenson@redhat.com>
719 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
721 2014-10-08 Gary Benson <gbenson@redhat.com>
723 * common/common-defs.h: Include common-exceptions.h.
724 * exceptions.h: Do not include common-exceptions.h.
726 2014-10-08 Gary Benson <gbenson@redhat.com>
728 * common/common-defs.h: Include cleanups.h.
729 * common/common-exceptions.c: Do not include cleanups.h.
732 2014-10-08 Gary Benson <gbenson@redhat.com>
734 * ada-lang.c: Do not include exceptions.h.
735 * ada-valprint.c: Likewise.
736 * amd64-tdep.c: Likewise.
737 * auto-load.c: Likewise.
739 * break-catch-throw.c: Likewise.
740 * breakpoint.c: Likewise.
741 * btrace.c: Likewise.
742 * c-lang.c: Likewise.
743 * cli/cli-cmds.c: Likewise.
744 * cli/cli-interp.c: Likewise.
745 * cli/cli-script.c: Likewise.
746 * completer.c: Likewise.
747 * corefile.c: Likewise.
748 * corelow.c: Likewise.
749 * cp-abi.c: Likewise.
750 * cp-support.c: Likewise.
751 * cp-valprint.c: Likewise.
752 * darwin-nat.c: Likewise.
753 * dwarf2-frame-tailcall.c: Likewise.
754 * dwarf2-frame.c: Likewise.
755 * dwarf2loc.c: Likewise.
756 * dwarf2read.c: Likewise.
758 * event-loop.c: Likewise.
759 * event-top.c: Likewise.
760 * f-valprint.c: Likewise.
761 * frame-unwind.c: Likewise.
763 * gdbtypes.c: Likewise.
764 * gnu-v2-abi.c: Likewise.
765 * gnu-v3-abi.c: Likewise.
766 * guile/scm-auto-load.c: Likewise.
767 * guile/scm-breakpoint.c: Likewise.
768 * guile/scm-cmd.c: Likewise.
769 * guile/scm-frame.c: Likewise.
770 * guile/scm-lazy-string.c: Likewise.
771 * guile/scm-param.c: Likewise.
772 * guile/scm-symbol.c: Likewise.
773 * guile/scm-type.c: Likewise.
774 * hppa-hpux-tdep.c: Likewise.
775 * i386-tdep.c: Likewise.
776 * inf-loop.c: Likewise.
777 * infcall.c: Likewise.
778 * infcmd.c: Likewise.
779 * infrun.c: Likewise.
780 * interps.c: Likewise.
781 * interps.h: Likewise.
783 * linespec.c: Likewise.
784 * linux-nat.c: Likewise.
785 * linux-thread-db.c: Likewise.
786 * m32r-rom.c: Likewise.
788 * memory-map.c: Likewise.
789 * mi/mi-cmd-break.c: Likewise.
790 * mi/mi-cmd-stack.c: Likewise.
791 * mi/mi-interp.c: Likewise.
792 * mi/mi-main.c: Likewise.
793 * monitor.c: Likewise.
794 * nto-procfs.c: Likewise.
795 * objc-lang.c: Likewise.
796 * p-valprint.c: Likewise.
798 * ppc-linux-tdep.c: Likewise.
799 * printcmd.c: Likewise.
801 * python/py-auto-load.c: Likewise.
802 * python/py-breakpoint.c: Likewise.
803 * python/py-cmd.c: Likewise.
804 * python/py-finishbreakpoint.c: Likewise.
805 * python/py-frame.c: Likewise.
806 * python/py-framefilter.c: Likewise.
807 * python/py-function.c: Likewise.
808 * python/py-gdb-readline.c: Likewise.
809 * python/py-inferior.c: Likewise.
810 * python/py-infthread.c: Likewise.
811 * python/py-lazy-string.c: Likewise.
812 * python/py-linetable.c: Likewise.
813 * python/py-param.c: Likewise.
814 * python/py-prettyprint.c: Likewise.
815 * python/py-symbol.c: Likewise.
816 * python/py-type.c: Likewise.
817 * python/py-value.c: Likewise.
818 * python/python-internal.h: Likewise.
819 * python/python.c: Likewise.
820 * record-btrace.c: Likewise.
821 * record-full.c: Likewise.
822 * regcache.c: Likewise.
823 * remote-fileio.c: Likewise.
824 * remote-mips.c: Likewise.
825 * remote.c: Likewise.
826 * rs6000-aix-tdep.c: Likewise.
827 * rs6000-nat.c: Likewise.
829 * solib-darwin.c: Likewise.
830 * solib-dsbt.c: Likewise.
831 * solib-frv.c: Likewise.
832 * solib-ia64-hpux.c: Likewise.
833 * solib-spu.c: Likewise.
834 * solib-svr4.c: Likewise.
836 * spu-tdep.c: Likewise.
838 * stap-probe.c: Likewise.
839 * symfile-mem.c: Likewise.
840 * symmisc.c: Likewise.
841 * target.c: Likewise.
842 * thread.c: Likewise.
844 * tracepoint.c: Likewise.
845 * tui/tui-interp.c: Likewise.
846 * typeprint.c: Likewise.
848 * valarith.c: Likewise.
849 * valops.c: Likewise.
850 * valprint.c: Likewise.
852 * varobj.c: Likewise.
853 * windows-nat.c: Likewise.
854 * xml-support.c: Likewise.
856 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
858 * mips-tdep.c (add_offset_16): Rewrite to implement what the
860 (extended_mips16_next_pc): Update accordingly.
862 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
864 * mips-tdep.c (mips16_instruction_is_compact_branch): New
866 (micromips_instruction_is_compact_branch): Likewise.
867 (mips16_scan_prologue): Terminate scanning upon seeing a branch
868 or a compact jump, reaching a jump delay slot, or seeing a
869 second non-prologue instruction.
870 (micromips_scan_prologue): Also terminate scanning upon seeing a
871 compact branch or jump, or reaching a branch or jump delay slot.
872 (mips32_scan_prologue): Terminate scanning upon reaching a branch
873 or jump delay slot, or seeing a second non-prologue instruction.
874 (mips32_instruction_has_delay_slot): Retain instruction
875 examination code only, update arguments accordingly and move
876 instruction fetch pieces to...
877 (mips32_insn_at_pc_has_delay_slot): ... this new function.
878 (micromips_instruction_has_delay_slot): Likewise and to...
879 (micromips_insn_at_pc_has_delay_slot): ... this new function.
880 (mips16_instruction_has_delay_slot): Likewise and to...
881 (mips16_insn_at_pc_has_delay_slot): ... this new function.
882 (mips_single_step_through_delay): Update accordingly.
883 (mips_adjust_breakpoint_address): Likewise.
885 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
887 * mips-tdep.c (micromips_instruction_has_delay_slot): When
888 !mustbe32 also return 1 for 32-bit instructions.
889 (mips16_instruction_has_delay_slot): Likewise. Add an
892 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
894 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
897 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
899 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
901 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
902 for the breakpoint's address. Don't preinitialize `placed_size'.
903 (insert_bp_location): Set `reqstd_address' rather than
905 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
906 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
908 (bkpt_remove_location): Likewise.
909 (deprecated_insert_raw_breakpoint): Likewise.
910 (deprecated_remove_raw_breakpoint): Likewise.
911 (find_single_step_breakpoint): Likewise.
912 * mem-break.c (default_memory_insert_breakpoint): Use
913 `reqstd_address' for the breakpoint's address. Don't set
914 `placed_address' or `placed_size' if breakpoint contents couldn't
915 have been determined.
916 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
917 the breakpoint's address.
918 (remote_insert_hw_breakpoint): Likewise. Don't set
919 `placed_address' or `placed_size' if breakpoint couldn't have been
921 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
922 `reqstd_address' for the breakpoint's address.
923 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
924 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
925 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
926 * microblaze-linux-tdep.c
927 (microblaze_linux_memory_remove_breakpoint): Likewise.
928 * monitor.c (monitor_insert_breakpoint): Likewise.
929 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
930 (procfs_insert_hw_breakpoint): Likewise.
931 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
932 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
933 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
934 * remote-mips.c (mips_insert_breakpoint): Likewise.
935 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
937 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
939 * valops.c (value_assign): Check for bit field assignments
940 before calling architecture-specific register value
941 conversion functions.
943 2014-10-03 Pierre Muller <muller@sourceware.org>
945 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
947 2014-10-02 Pedro Alves <palves@redhat.com>
949 * breakpoint.c (breakpoints_should_be_inserted_now): Use
950 threads_are_executing.
951 * breakpoint.h (breakpoints_should_be_inserted_now): Add
953 * gdbthread.h (threads_are_executing): Declare.
954 (handle_signal_stop) <random signals>: Don't print about the
955 signal here if stopping.
956 (end_stepping_range): Don't notify observers here.
957 (normal_stop): Update the thread list. If stopped by a random
958 signal or a stepping range ended, notify observers.
959 * thread.c (threads_executing): New global.
960 (init_thread_list): Clear 'threads_executing'.
961 (set_executing): Set or clear 'threads_executing'.
962 (threads_are_executing): New function.
963 (update_threads_executing): New function.
964 (update_thread_list): Use it.
966 2014-10-02 Pedro Alves <palves@redhat.com>
969 * breakpoint.c (update_breakpoints_after_exec): Don't create
970 overlay, longjmp, std terminate nor exception breakpoints here.
972 2014-10-02 Pedro Alves <palves@redhat.com>
974 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
976 * inferior.c (find_inferior_for_program_space): Give preference to
977 the current inferior.
978 * inferior.h (find_inferior_for_program_space): Update comment.
979 * progspace.c (switch_to_program_space_and_thread): Prefer the
980 current inferior if it's bound to the program space requested. If
981 the inferior found doesn't have a PID yet, don't bother looking up
983 * progspace.h (switch_to_program_space_and_thread): Adjust
985 * thread.c (any_thread_of_process, any_live_thread_of_process):
986 Give preference to the current thread.
988 2014-10-01 Pedro Alves <palves@redhat.com>
990 * breakpoint.c (insert_bp_location): Error out if inserting a
991 software breakpoint at a read-only address.
992 * target.c (memory_xfer_check_region): New function, factored out
994 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
996 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
997 against the memory region attributes.
999 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1001 * NEWS: Announce new exit-code field in -list-thread-groups
1003 * inferior.c (exit_inferior_1): Don't clear exit code.
1004 (inferior_appeared): Clear exit code.
1005 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1008 2014-10-01 Pedro Alves <palves@redhat.com>
1010 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1011 GENERATED" along with emacs/vi read-only markers.
1012 * regformats/aarch64.dat: Regenerate.
1013 * regformats/arm-with-iwmmxt.dat: Regenerate.
1014 * regformats/arm-with-neon.dat: Regenerate.
1015 * regformats/arm-with-vfpv2.dat: Regenerate.
1016 * regformats/arm-with-vfpv3.dat: Regenerate.
1017 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1018 * regformats/i386/amd64-avx.dat: Regenerate.
1019 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1020 * regformats/i386/amd64-avx512.dat: Regenerate.
1021 * regformats/i386/amd64-linux.dat: Regenerate.
1022 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1023 * regformats/i386/amd64-mpx.dat: Regenerate.
1024 * regformats/i386/amd64.dat: Regenerate.
1025 * regformats/i386/i386-avx-linux.dat: Regenerate.
1026 * regformats/i386/i386-avx.dat: Regenerate.
1027 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1028 * regformats/i386/i386-avx512.dat: Regenerate.
1029 * regformats/i386/i386-linux.dat: Regenerate.
1030 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1031 * regformats/i386/i386-mmx.dat: Regenerate.
1032 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1033 * regformats/i386/i386-mpx.dat: Regenerate.
1034 * regformats/i386/i386.dat: Regenerate.
1035 * regformats/i386/x32-avx-linux.dat: Regenerate.
1036 * regformats/i386/x32-avx.dat: Regenerate.
1037 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1038 * regformats/i386/x32-avx512.dat: Regenerate.
1039 * regformats/i386/x32-linux.dat: Regenerate.
1040 * regformats/i386/x32.dat: Regenerate.
1041 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1042 * regformats/mips-dsp-linux.dat: Regenerate.
1043 * regformats/mips-linux.dat: Regenerate.
1044 * regformats/mips64-dsp-linux.dat: Regenerate.
1045 * regformats/mips64-linux.dat: Regenerate.
1046 * regformats/nios2-linux.dat: Regenerate.
1047 * regformats/rs6000/powerpc-32.dat: Regenerate.
1048 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1049 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1050 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1051 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1052 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1053 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1054 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1055 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1056 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1057 * regformats/s390-linux32.dat: Regenerate.
1058 * regformats/s390-linux32v1.dat: Regenerate.
1059 * regformats/s390-linux32v2.dat: Regenerate.
1060 * regformats/s390-linux64.dat: Regenerate.
1061 * regformats/s390-linux64v1.dat: Regenerate.
1062 * regformats/s390-linux64v2.dat: Regenerate.
1063 * regformats/s390-te-linux64.dat: Regenerate.
1064 * regformats/s390x-linux64.dat: Regenerate.
1065 * regformats/s390x-linux64v1.dat: Regenerate.
1066 * regformats/s390x-linux64v2.dat: Regenerate.
1067 * regformats/s390x-te-linux64.dat: Regenerate.
1068 * regformats/tic6x-c62x-linux.dat: Regenerate.
1069 * regformats/tic6x-c62x.dat: Regenerate.
1070 * regformats/tic6x-c64x-linux.dat: Regenerate.
1071 * regformats/tic6x-c64x.dat: Regenerate.
1072 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1073 * regformats/tic6x-c64xp.dat: Regenerate.
1075 2014-10-01 Pedro Alves <palves@redhat.com>
1077 * features/Makefile: Update comments.
1078 (XMLTOC): List all xml files we build C files from.
1079 (clean-cfiles): New rule.
1081 2014-10-01 Pedro Alves <palves@redhat.com>
1083 * features/i386/amd64-avx512-linux.c: Regenerate.
1084 * features/i386/amd64-avx512.c: Regenerate.
1085 * features/i386/x32-avx512-linux.c: Regenerate.
1086 * features/i386/x32-avx512.c: Regenerate.
1088 2014-10-01 Pedro Alves <palves@redhat.com>
1090 * features/Makefile (WHICH): Remove arm-with-m,
1091 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1093 2014-10-01 Pedro Alves <palves@redhat.com>
1095 * features/Makefile (clean): New rule.
1097 2014-10-01 Pedro Alves <palves@redhat.com>
1099 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1100 (zmm14h): Add missing end quotes.
1102 2014-10-01 Pedro Alves <palves@redhat.com>
1104 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1105 * features/aarch64.c: Regenerate.
1107 2014-09-30 Don Breazeal <donb@codesourcery.com>
1109 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1110 code so as to work with follow_fork_inferior.
1111 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1112 (inf_ttrace_create_inferior): Remove reference to
1113 inf_ttrace_vfork_ppid.
1114 (inf_ttrace_attach): Ditto.
1115 (inf_ttrace_detach): Ditto.
1116 (inf_ttrace_kill): Use current_inferior instead of
1117 inf_ttrace_vfork_ppid.
1118 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1119 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1120 inferior away from the parent.
1121 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1123 (follow_fork_inferior): New function.
1124 (follow_inferior_reset_breakpoints): Make function static.
1125 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1126 * linux-nat.c (linux_child_follow_fork): Move target-independent
1127 code to infrun.c:follow_fork_inferior.
1129 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1131 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1132 * gdbarch.c: Regenerate.
1133 * gdbarch.h: Likewise.
1134 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1135 gdbarch method 'regset_from_core_section'.
1136 (get_core_register_section): Remove handling for the case that
1137 regset == NULL and regset_from_core_section is defined.
1138 (get_core_registers): Drop check for deleted method.
1139 * procfs.c (procfs_do_thread_registers): Adjust comment.
1141 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1143 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1144 (linux_nat_make_corefile_notes): Remove.
1145 (linux_target_install_ops): Do not set target method
1146 'make_corefile_notes'.
1147 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1149 (linux_corefile_thread_callback): Instead of args->collect, call
1150 linux_collect_thread_registers.
1151 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1152 NULL unless there is a regset iterator.
1153 (linux_make_corefile_notes_1): Remove.
1154 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1155 by linux_make_corefile_notes.
1156 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1158 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1160 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1161 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1163 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1165 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1167 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1168 (xtensa_iterate_over_regset_sections): New.
1169 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1171 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1173 * vax-tdep.c (vax_regset_from_core_section): Remove.
1174 (vax_iterate_over_regset_sections): New.
1175 (vax_gdbarch_init): Adjust gdbarch initialization.
1177 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1179 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1180 (tilegx_regset_from_core_section): Remove.
1181 (tilegx_iterate_over_regset_sections): New.
1182 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1184 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1186 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1187 (sparc_iterate_over_regset_sections): New.
1188 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1189 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1191 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1192 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1193 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1194 target method 'make_corefile_notes'.
1196 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1198 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1199 'sizeof_gregset' and 'sizeof_fpregset'.
1200 * sh-tdep.c (sh_regset_from_core_section): Remove.
1201 (sh_iterate_over_regset_sections): New.
1202 (sh_gdbarch_init): Adjust gdbarch initialization.
1203 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1205 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1208 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1210 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1211 (score7_linux_iterate_over_regset_sections): New.
1212 (score_gdbarch_init): Adjust gdbarch initialization.
1214 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1216 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1218 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1219 method 'make_corefile_notes'.
1220 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1221 (ppcfbsd_regset_from_core_section): Remove.
1222 (ppcfbsd_iterate_over_regset_sections): New.
1223 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1225 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1226 (ppcnbsd_iterate_over_regset_sections): New.
1227 (ppcnbsd_init_abi): Adjust.
1228 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1229 (ppcobsd_iterate_over_regset_sections): New.
1230 (ppcobsd_init_abi): Adjust.
1231 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1232 (rs6000_aix_iterate_over_regset_sections): New.
1233 (rs6000_aix_init_osabi): Adjust.
1235 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1237 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1238 (nios2_regset_from_core_section): Remove.
1239 (nios2_iterate_over_regset_sections): New.
1240 (nios2_linux_init_abi): Adjust gdbarch initialization.
1242 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1244 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1245 (am33_iterate_over_regset_sections): New.
1246 (am33_linux_init_osabi): Adjust gdbarch initialization.
1248 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1250 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1251 (mips_linux_iterate_over_regset_sections): New.
1252 (mips_linux_init_abi): Adjust gdbarch initialization.
1253 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1254 (mips64obsd_iterate_over_regset_sections): New.
1255 (mips64obsd_init_abi): Adjust.
1256 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1257 (mipsnbsd_iterate_over_regset_sections): New.
1258 (mipsnbsd_init_abi): Adjust.
1260 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1262 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1263 (m88k_iterate_over_regset_sections): New.
1264 (m88k_gdbarch_init): Adjust gdbarch initialization.
1266 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1268 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1269 (ia64_linux_iterate_over_regset_sections): New.
1270 (ia64_linux_init_abi): Adjust gdbarch initialization.
1272 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1274 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1275 (m68kbsd_iterate_over_regset_sections): New.
1276 (m68kbsd_init_abi): Adjust gdbarch initialization.
1277 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1278 (m68k_linux_iterate_over_regset_sections): New.
1279 (m68k_linux_init_abi): Adjust gdbarch initialization.
1281 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1283 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1284 (m32r_linux_regset_from_core_section): Remove.
1285 (m32r_linux_iterate_over_regset_sections): New.
1286 (m32r_linux_init_abi): Adjust gdbarch initialization.
1288 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1290 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1291 (amd64obsd_iterate_over_regset_sections): New.
1292 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1293 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1295 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1296 regset_from_core_section initialization.
1297 * i386-tdep.c (i386_regset_from_core_section): Remove.
1298 (i386_iterate_over_regset_sections): New.
1299 (i386_gdbarch_init): Adjust gdbarch initialization.
1300 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1301 (i386_iterate_over_regset_sections): New prototype.
1302 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1304 (i386obsd_aout_iterate_over_regset_sections): New.
1305 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1306 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1308 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1309 (amd64fbsd_init_abi): Call fbsd_init_abi.
1310 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1311 (i386fbsd4_init_abi): Call fbsd_init_abi.
1312 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1313 target method 'make_corefile_notes'.
1314 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1316 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1318 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1319 (hppa_hpux_iterate_over_regset_sections): New.
1320 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1321 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1322 (hppa_linux_iterate_over_regset_sections): New.
1323 (hppa_linux_init_abi): Adjust.
1324 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1325 (hppanbsd_iterate_over_regset_sections): New.
1326 (hppanbsd_init_abi): Adjust.
1327 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1328 (hppaobsd_iterate_over_regset_sections): New.
1329 (hppaobsd_init_abi): Adjust.
1331 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1333 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1334 (frv_linux_iterate_over_regset_sections): New.
1335 (frv_linux_init_abi): Adjust gdbarch initialization.
1337 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1339 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1340 (armbsd_iterate_over_regset_sections): New prototype.
1341 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1342 (armbsd_iterate_over_regset_sections): New.
1343 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1346 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1348 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1349 (alpha_linux_iterate_over_regset_sections): New.
1350 (alpha_linux_init_abi): Adjust gdbarch initialization.
1351 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1353 (alphanbsd_iterate_over_regset_sections): New prototype.
1355 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1357 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1359 (aarch64_linux_iterate_over_regset_sections): New.
1360 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1362 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1364 * fbsd-tdep.c: New file.
1365 * fbsd-tdep.h: New file.
1366 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1367 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1368 (ALLDEPFILES): Add fbsd-tdep.c.
1370 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1372 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1374 * gdbarch.h: Regenerate.
1375 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1377 (get_core_register_section): Add parameter 'regset' and use it, if
1378 set. Add parameter 'min_size' and verify the bfd section size
1380 (get_core_registers_cb): Add parameter 'regset' and pass it to
1381 get_core_register section. For the "standard" register sections
1382 ".reg" and ".reg2", set an appropriate default for human_name.
1383 (get_core_registers): Don't abort when the gdbarch has an iterator
1384 but no regset_from_core_section. Add NULL/0 for parameters
1385 'regset'/'min_size' in calls to get_core_register_section.
1386 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1387 'regset' and use it instead of calling the
1388 regset_from_core_section gdbarch method.
1389 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1390 * i386-tdep.c (i386_supply_xstateregset)
1391 (i386_collect_xstateregset, i386_xstateregset): Moved to
1393 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1395 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1396 core file support only if the regset iterator hasn't been set.
1397 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1398 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1399 Moved from i386-tdep.c and renamed to *_linux*.
1400 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1401 each callback invocation. Allow any .reg-xstate size when reading
1403 * amd64-tdep.c (amd64_supply_xstateregset)
1404 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1406 (amd64_regset_from_core_section): Remove.
1407 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1408 install an amd64-specific regset_from_core_section gdbarch method.
1409 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1410 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1411 Moved from amd64-tdep.c and renamed to *_linux*.
1412 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1413 to each callback invocation. Allow any .reg-xstate size when
1414 reading from a core file.
1415 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1416 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1417 each callback invocation.
1418 (arm_linux_init_abi): No longer set the regset_from_core_section
1420 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1421 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1422 each callback invocation.
1423 (ppc_linux_init_abi): No longer set the regset_from_core_section
1425 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1426 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1427 (s390_regset_from_core_section): Remove.
1428 (s390_iterate_over_regset_sections): Add regset parameter to each
1429 callback invocation.
1430 (s390_gdbarch_init): No longer set the regset_from_core_section
1431 gdbarch method. Drop initialization of deleted tdep fields.
1433 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1435 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1436 (amd64_linux_iterate_over_regset_sections): New.
1437 (amd64_linux_init_abi_common): Don't install the regset section
1438 list, but the new iterator in gdbarch.
1439 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1440 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1441 (arm_linux_iterate_over_regset_sections): ...here. New function.
1442 (arm_linux_init_abi): Set iterator instead of section list.
1443 * corelow.c (get_core_registers_cb): New function, logic moved
1445 (get_core_registers): ...loop body here. Use new iterator method
1446 instead of walking through the regset section list.
1447 * gdbarch.sh: Remove 'core_regset_sections'. New method
1448 'iterate_over_regset_sections'. New typedef
1449 'iterate_over_regset_sections_cb'.
1450 * gdbarch.c: Regenerate.
1451 * gdbarch.h: Likewise.
1452 * i386-linux-tdep.c (i386_linux_regset_sections)
1453 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1455 (i386_linux_iterate_over_regset_sections): New.
1456 (i386_linux_init_abi): Don't choose a regset section list, but
1457 install new iterator in gdbarch.
1458 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1459 (linux_collect_regset_section_cb): New function, logic moved
1461 (linux_collect_thread_registers): ...loop body here. Use iterator
1462 method instead of walking through list.
1463 (linux_make_corefile_notes_1): Check for presence of iterator
1464 method instead of regset section list.
1465 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1466 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1467 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1468 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1469 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1470 (ppc_linux_init_abi): Don't choose from above regset section
1471 lists, but install new iterator in gdbarch.
1472 * regset.h (struct core_regset_section): Remove.
1473 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1474 have_linux_v1, have_linux_v2, and have_tdb.
1475 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1476 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1477 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1478 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1479 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1480 (s390_iterate_over_regset_sections): ...here. New function. Use
1482 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1483 regset section lists, but install new iterator.
1485 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1487 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1489 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1491 * progspace.c (print_program_space): Don't prune program spaces
1492 before printing them.
1494 2014-09-25 Pedro Alves <palves@redhat.com>
1496 * infrun.c (user_visible_resume_ptid): Don't check
1497 singlestep_breakpoints_inserted_p.
1499 2014-09-25 Pedro Alves <palves@redhat.com>
1501 * breakpoint.c (should_be_inserted): Add debug output.
1503 2014-09-25 Pedro Alves <palves@redhat.com>
1505 * infrun.c (stepping_past_instruction_at)
1506 (clear_exit_convenience_vars): Point at infrun.h instead of
1508 (handle_signal_stop): Fix typo.
1510 2014-09-24 Yao Qi <yao@codesourcery.com>
1512 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1515 2014-09-22 Gary Benson <gbenson@redhat.com>
1517 * target.c (target_stop): Updated comment.
1519 2014-09-22 Gary Benson <gbenson@redhat.com>
1521 * target/target.h (target_stop_ptid): Renamed as...
1522 (target_stop_and_wait): New function. Updated comment.
1524 (target_continue_ptid): Renamed as...
1525 (target_continue_no_signal): New function. Updated comment.
1528 2014-09-22 Pedro Alves <palves@redhat.com>
1530 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1532 * breakpoint.c (enum ugll_insert_mode): New enum.
1533 (always_inserted_mode): Now a plain boolean.
1534 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1535 (breakpoints_always_inserted_mode): Delete.
1536 (breakpoints_should_be_inserted_now): New function.
1537 (insert_breakpoints): Pass UGLL_INSERT to
1538 update_global_location_list instead of calling
1539 insert_breakpoint_locations manually.
1540 (create_solib_event_breakpoint_1): New, factored out from ...
1541 (create_solib_event_breakpoint): ... this.
1542 (create_and_insert_solib_event_breakpoint): Use
1543 create_solib_event_breakpoint_1 instead of calling
1544 insert_breakpoint_locations manually.
1545 (update_global_location_list): Change parameter type from boolean
1546 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1547 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1548 (update_global_location_list_nothrow): Change parameter type from
1549 boolean to enum ugll_insert_mode.
1550 (_initialize_breakpoint): "breakpoint always-inserted" option is
1551 now a boolean command. Update help text.
1552 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1553 (breakpoints_should_be_inserted_now): New declaration.
1554 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1555 Remove breakpoints_always_inserted_mode check.
1556 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1557 * remote.c (remote_start_remote): Likewise.
1559 2014-09-22 Pedro Alves <palves@redhat.com>
1561 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1562 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1563 Instead, pass UGLL_INSERT to update_global_location_list.
1564 (update_global_location_list): Change parameter type from boolean
1565 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1566 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1567 (create_solib_event_breakpoint_1): New, factored out from ...
1568 (create_solib_event_breakpoint): ... this.
1569 (create_and_insert_solib_event_breakpoint): Use
1570 create_solib_event_breakpoint_1 instead of calling
1571 insert_breakpoint_locations manually.
1572 (update_global_location_list): Handle UGLL_INSERT.
1574 2014-09-22 Pedro Alves <palves@redhat.com>
1576 * breakpoint.c (enum ugll_insert_mode): New enum.
1577 (update_global_location_list)
1578 (update_global_location_list_nothrow): Change parameter type from
1579 boolean to enum ugll_insert_mode. All callers adjusted.
1581 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1583 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1584 SystemTap support in GDB.
1586 2014-09-19 Don Breazeal <donb@codesourcery.com>
1588 * linux-nat.c (linux_handle_extended_wait): Call
1589 linux_ptrace_get_extended_event.
1590 (wait_lwp): Call linux_is_extended_waitstatus.
1591 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1592 and linux_is_extended_waitstatus.
1593 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1594 linux_ptrace_get_extended_event.
1595 (linux_ptrace_get_extended_event): New function.
1596 (linux_is_extended_waitstatus): New function.
1597 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1598 (linux_is_extended_waitstatus): New declarations.
1600 2014-09-19 Yao Qi <yao@codesourcery.com>
1602 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1603 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1604 comments. Callers update.
1605 (dwarf_decode_lines): Likewise.
1606 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1607 comments. Skip the line table if 'lowpc' is greater than
1608 'address'. Don't check
1609 dwarf2_per_objfile->has_section_at_zero.
1611 2014-09-18 Doug Evans <dje@google.com>
1613 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1614 * python/py-symtab.c (stpy_get_producer): New function.
1615 (symtab_object_getset): Add "producer" attribute.
1617 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1620 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1621 (do_captured_read_memory_integer): Remove.
1622 (safe_read_memory_integer): Use target_read_memory directly instead
1623 of catching errors in do_captured_read_memory_integer.
1625 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1627 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1630 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1632 * objc-lang.c (find_implementation_from_class): Remove dead code.
1634 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1637 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1638 "fprintf_unfiltered (gdb_stdlog...)".
1640 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1642 PR breakpoints/12526
1643 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1645 * breakpoint.c (watch_command_1): Use these fields to retain
1646 bitfield information.
1647 (extract_bitfield_from_watchpoint_value): New function.
1648 (watchpoint_check): Use it.
1649 (update_watchpoint): Use it. Optimize the address and length of a
1650 HW watchpoint pointing to a bitfield.
1651 * value.h (unpack_value_bitfield): New prototype.
1652 * value.c (unpack_value_bitfield): Make extern.
1654 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1656 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1658 * gnu-nat.c (inf_threads): New function.
1659 * gnu-nat.h (inf_threads_ftype): New typedef.
1660 (inf_threads): New declaration.
1661 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1662 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1663 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1664 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1665 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1666 (i386_gnu_dr_get_control): New functions.
1667 (reg_addr): New structure.
1668 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1669 i386 debugging register hooks.
1670 * NEWS: Mention this.
1672 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1674 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1675 vector data transfer instructions.
1676 (arm_record_coproc_data_proc): Updated.
1678 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1680 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1681 arm_record_exreg_ld_st_insn.
1682 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1685 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1687 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1688 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1689 processing instructions.
1691 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1693 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1694 for advance SIMD struct ld/st insn.
1695 (thumb2_record_decode_insn_handler): Replace stub handler with
1696 thumb2_record_asimd_struct_ld_st.
1698 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1700 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1701 for asimd, vfp and coprocessor insns.
1702 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1703 and coprocessor insns.
1704 (thumb2_record_coproc_insn): New function.
1705 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1707 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1710 2014-09-13 Doug Evans <xdje42@gmail.com>
1712 * NEWS: Mention new "queue-signal" command.
1713 * infcmd.c (queue_signal_command): New function.
1714 (_initialize_infcmd): Add new queue-signal command.
1716 2014-09-13 Doug Evans <xdje42@gmail.com>
1718 * linux-nat.c (wait_lwp): Add debugging printf.
1719 (linux_nat_wait_1): Ditto.
1721 2014-09-12 Pedro Alves <palves@redhat.com>
1723 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1724 (create_and_insert_solib_event_breakpoint): New functions.
1725 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1726 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1727 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1728 (remove_dbx_link_breakpoint): Delete function.
1729 (insert_dbx_link_bpt_in_file): Use
1730 create_and_insert_solib_event_breakpoint instead of
1731 deprecated_insert_raw_breakpoint.
1732 (procfs_wait): Don't check whether we hit __dbx_link here.
1733 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1735 * solib-irix.c (base_breakpoint): Delete global.
1736 (disable_break): Delete function.
1737 (enable_break): Use create_solib_event_breakpoint
1738 instead of deprecated_insert_raw_breakpoint.
1739 (irix_solib_handle_event): New function.
1740 (irix_solib_create_inferior_hook): Don't run the target or disable
1741 the mapping-complete breakpoint here.
1742 (_initialize_irix_solib): Install irix_solib_handle_event as
1743 so_ops->handle_event hook.
1745 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1746 Ulrich Weigand <uweigand@de.ibm.com>
1749 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1750 instead of read_memory_unsigned_integer.
1752 2014-09-12 Gary Benson <gbenson@redhat.com>
1754 * nat/linux-waitpid.c: Include common-defs.h.
1755 [GDBSERVER]: Add FIXME comment.
1756 [!GDBSERVER]: Don't include defs.h or signal.h.
1757 (linux_debug) [!GDBSERVER]: Remove empty block.
1759 2014-09-12 Gary Benson <gbenson@redhat.com>
1761 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1762 Don't include defs.h or server.h.
1764 2014-09-12 Gary Benson <gbenson@redhat.com>
1766 * nat/linux-btrace.c: Include common-defs.h.
1767 Don't include defs.h, server.h or gdbthread.h.
1768 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1770 2014-09-12 Gary Benson <gbenson@redhat.com>
1772 * common/agent.c: Include common-defs.h.
1773 Don't include defs.h or server.h.
1774 * common/buffer.c: Likewise.
1775 * common/common-debug.c: Likewise.
1776 * common/common-utils.c: Likewise.
1777 * common/errors.c: Likewise.
1778 * common/filestuff.c: Likewise.
1779 * common/format.c: Likewise.
1780 * common/gdb_vecs.c: Likewise.
1781 * common/print-utils.c: Likewise.
1782 * common/ptid.c: Likewise.
1783 * common/rsp-low.c: Likewise.
1784 * common/signals.c: Likewise.
1785 * common/vec.c: Likewise.
1786 * common/xml-utils.c: Likewise.
1787 * nat/linux-osdata.c: Likewise.
1788 * nat/linux-procfs.c: Likewise.
1789 * nat/linux-ptrace.c: Likewise.
1790 * nat/mips-linux-watch.c: Likewise.
1791 * target/waitstatus.c: Likewise.
1793 2014-09-12 Tom Tromey <tromey@redhat.com>
1794 Gary Benson <gbenson@redhat.com>
1796 * common/common-regcache.h: New file.
1797 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1798 * regcache.h: Include common-regcache.h.
1799 (regcache_read_pc): Don't declare.
1800 * regcache.c (get_thread_regcache_for_ptid): New function.
1801 * nat/linux-btrace.c: Don't include regcache.h.
1802 Include common-regcache.h.
1803 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1805 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1807 * regcache.h (struct regset): Declare.
1809 2014-09-11 Pedro Alves <palves@redhat.com>
1812 * main.c: Include "infrun.h".
1813 (catch_command_errors, catch_command_errors_const): Wait for the
1814 foreground command to complete.
1815 * top.c (maybe_wait_sync_command_done): New function, factored out
1817 (maybe_wait_sync_command_done): ... here.
1818 * top.h (maybe_wait_sync_command_done): New declaration.
1820 2014-09-11 Tom Tromey <tromey@redhat.com>
1821 Gary Benson <gbenson@redhat.com>
1823 * common/symbol.h: New file.
1824 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1825 * minsyms.c (find_minimal_symbol_address): New function.
1826 * common/agent.c: Include common/symbol.h.
1827 [!GDBSERVER]: Don't include objfiles.h.
1828 (agent_look_up_symbols): Use find_minimal_symbol_address.
1830 2014-09-11 Gary Benson <gbenson@redhat.com>
1832 * target/target.h (target_stop_ptid, target_continue_ptid):
1834 * target.c (target_stop_ptid, target_continue_ptid): New
1836 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1837 (agent_run_command): Always use target_stop_ptid and
1838 target_continue_ptid.
1840 2014-09-11 Tom Tromey <tromey@redhat.com>
1841 Gary Benson <gbenson@redhat.com>
1843 * target/target.h: New file.
1844 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1845 * target.h: Include target/target.h.
1846 (target_read_memory, target_write_memory): Don't declare.
1847 * target.c (target_read_uint32): New function.
1848 * common/agent.c: Include target/target.h.
1849 [!GDBSERVER]: Don't include target.h.
1850 (helper_thread_id): Type changed to uint32_t.
1851 (agent_get_helper_thread_id): Use target_read_uint32.
1852 (agent_run_command): Always use target_read_memory and
1853 target_write_memory.
1854 (agent_capability): Type changed to uint32_t.
1855 (agent_capability_check): Use target_read_uint32.
1857 2014-09-11 Gary Benson <gbenson@redhat.com>
1859 * common/common-debug.h (show_debug_regs): Declare.
1860 * common/common-debug.c (show_debug_regs): Define.
1861 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1862 all uses with show_debug_regs. Replace all uses that considered
1863 debug_hw_points as a multi-value integer with straight boolean
1865 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1866 with show_debug_regs.
1867 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1868 all uses with show_debug_regs.
1869 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1870 uses with show_debug_regs.
1872 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1874 * findvar.c (address_from_register): Handle targets requiring
1875 a special conversion routine even for plain pointer types.
1877 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1879 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1880 (store_register): Do not call exec_one_dummy_insn.
1882 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1884 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1885 dereference it first. Use value_enclosing_type instead of
1887 (ada_array_length): Likewise.
1889 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1891 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1892 Adjust function implementation and documentation accordingly.
1893 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1894 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1895 Update call to ada_value_ptr_subscript.
1897 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1899 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1900 instead of VAL's type.
1902 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1904 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1906 2014-09-09 Doug Evans <xdje42@gmail.com>
1909 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1910 last parameter to pkg-config, not first.
1911 * configure.ac: Pass --with-guile provided pkg-config path to
1912 GDB_GUILE_PROGRAM_NAMES.
1913 * configure: Regenerate.
1915 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1917 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1920 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1922 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1923 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1924 the list of sections determining GDB_OSABI_IRIX.
1926 2014-09-09 James Hogan <james.hogan@imgtec.com>
1928 * MAINTAINERS (Write After Approval): Add "James Hogan".
1930 2014-09-09 James Hogan <james.hogan@imgtec.com>
1932 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1934 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1936 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1938 2014-09-08 Doug Evans <xdje42@gmail.com>
1941 * guile.c: #include <signal.h>.
1942 (_initialize_guile): Block SIGCHLD while initializing Guile.
1944 Replaces the following, which is reverted.
1946 2014-07-26 Doug Evans <xdje42@gmail.com>
1949 * configure.ac: Add check for header gc/gc.h.
1950 Add check for function setenv.
1951 * configure: Regenerate.
1952 * config.in: Regenerate.
1953 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1955 2014-09-08 Doug Evans <xdje42@gmail.com>
1957 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1958 with named constant. Fix style of pointer comparison.
1959 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1961 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1964 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1965 decide whether we display the command on "show user".
1966 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1967 printing command name.
1968 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1969 * cli/cli-decode.c (cli_user_command_p): Create helper function
1970 to verify whether cmd_list_element is a user-defined command.
1972 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1975 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1976 Fix goto out of TRY_CATCH.
1978 2014-09-06 Doug Evans <xdje42@gmail.com>
1979 Tom Tromey <tromey@redhat.com>
1982 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1983 $_any_caller_matches.
1984 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1985 * python/lib/gdb/function/caller_is.py: New file.
1987 2014-09-06 Doug Evans <xdje42@gmail.com>
1989 * infcmd.c (program_info): Fix typo.
1991 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1994 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1995 'number'. New variable 'has_digit'. Rewrite code to deal with
1996 subexpressions on SDT probes.
1998 2014-09-04 Pedro Alves <palves@redhat.com>
2000 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2001 the input is only one character long.
2003 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2006 * f-valprint.c (f_val_print): Specify the correct print option to
2007 use when printing integer values.
2009 2014-09-04 Gary Benson <gbenson@redhat.com>
2011 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2012 Remove code to cope with LWPs wrapped as PIDs.
2013 Add assertions to ensure no wrapped LWPs are passed.
2015 2014-09-04 Pedro Alves <palves@redhat.com>
2017 * value.c (value_ranges_copy_adjusted): New function, factored out
2019 (value_contents_copy_raw): ... here.
2020 (unpack_value_bits_as_long_1): Rename back to ...
2021 (unpack_bits_as_long): ... this. Remove 'original_value' and
2022 'result' parameters. Change return type to LONGEST.
2023 (unpack_value_bits_as_long): Delete.
2024 (unpack_value_field_as_long_1): Delete.
2025 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2026 (unpack_value_bitfield): New function.
2027 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2028 (value_fetch_lazy): Use unpack_value_bitfield.
2029 * value.h (unpack_value_bits_as_long): Delete declaration.
2031 2014-09-03 Sasha Smundak <asmundak@google.com>
2033 * python/py-frame.c (frapy_read_register): New function.
2035 2014-09-03 James Hogan <james.hogan@imgtec.com>
2037 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2038 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2040 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2043 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2045 (add_cmd): Set "completer_handle_brkchars" to NULL.
2046 * cli/cli-decode.h (struct cmd_list_element)
2047 <completer_handle_brkchars>: New field.
2048 * command.h (completer_ftype_void): New typedef.
2049 (set_cmd_completer_handle_brkchars): New prototype.
2050 * completer.c (set_gdb_completion_word_break_characters): New
2052 (complete_line_internal): Call "completer_handle_brkchars"
2053 callback from command.
2054 * completer.h: Include "command.h".
2055 (set_gdb_completion_word_break_characters): New prototype.
2056 * python/py-cmd.c (cmdpy_completer_helper): New function.
2057 (cmdpy_completer_handle_brkchars): New function.
2058 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2059 (cmdpy_init): Set completer_handle_brkchars to
2060 cmdpy_completer_handle_brkchars.
2062 2014-09-03 Gary Benson <gbenson@redhat.com>
2064 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2065 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2066 Loop conditions changed to equivalent form.
2067 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2068 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2069 ALL_DEBUG_ADDRESS_REGISTERS.
2071 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2073 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2076 2014-09-02 Doug Evans <dje@google.com>
2078 * typeprint.c (find_global_typedef): Fix comment.
2080 2014-09-02 Gary Benson <gbenson@redhat.com>
2082 * i386-nat.h: Renamed as...
2083 * x86-nat.h: New file. All type, function and variable name
2084 prefixes changed from "i386_" to "x86_". All references updated.
2085 * i386-nat.c: Renamed as...
2086 * x86-nat.c: New file. All type, function and variable name
2087 prefixes changed from "i386_" to "x86_". All references updated.
2088 * common/i386-xstate.h: Renamed as...
2089 * common/x86-xstate.h: New file. All type, function and variable
2090 name prefixes changed from "i386_" to "x86_". All references
2092 * nat/i386-cpuid.h: Renamed as...
2093 * nat/x86-cpuid.h: New file. All type, function and variable name
2094 prefixes changed from "i386_" to "x86_". All references updated.
2095 * nat/i386-gcc-cpuid.h: Renamed as...
2096 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2097 name prefixes changed from "i386_" to "x86_". All references
2099 * nat/i386-dregs.h: Renamed as...
2100 * nat/x86-dregs.h: New file. All type, function and variable name
2101 prefixes changed from "i386_" to "x86_". All references updated.
2102 * nat/i386-dregs.c: Renamed as...
2103 * nat/x86-dregs.c: New file. All type, function and variable name
2104 prefixes changed from "i386_" to "x86_". All references updated.
2106 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2108 * varobj.c (_initialize_varobj): Move to the end of file.
2110 2014-08-29 Gary Benson <gbenson@redhat.com>
2112 * common/common-exceptions.h: New file.
2113 * common/common-exceptions.c: Likewise.
2114 * Makefile.in (SFILES): Add common/common-exceptions.c.
2115 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2116 (COMMON_OBS): Add common-exceptions.o.
2117 (common-exceptions.o): New rule.
2118 * exceptions.h (common-exceptions.h): Include.
2119 (gdb_setjmp.h): Do not include.
2120 (return_reason): Moved to common-exceptions.h.
2121 (enum return_reason): Likewise.
2122 (RETURN_MASK): Likewise.
2123 (typedef return_mask): Likewise.
2124 (enum errors): Likewise.
2125 (struct gdb_exception): Likewise.
2126 (exceptions_state_mc_init): Likewise.
2127 (exceptions_state_mc_action_iter): Likewise.
2128 (exceptions_state_mc_action_iter_1): Likewise.
2129 (TRY_CATCH): Likewise.
2130 (throw_exception): Likewise.
2131 (throw_verror): Likewise.
2132 (throw_vquit): Likewise.
2133 (throw_error): Likewise.
2134 (throw_quit): Likewise.
2135 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2136 (enum catcher_action): Likewise.
2137 (struct catcher): Likewise.
2138 (current_catcher): Likewise.
2139 (catcher_list_size): Likewise.
2140 (exceptions_state_mc_init): Likewise.
2141 (catcher_pop): Likewise.
2142 (exceptions_state_mc): Likewise.
2143 (exceptions_state_mc_action_iter): Likewise.
2144 (exceptions_state_mc_action_iter_1): Likewise.
2145 (throw_exception): Likewise.
2146 (exception_messages): Likewise.
2147 (exception_messages_size): Likewise.
2148 (throw_it): Likewise.
2149 (throw_verror): Likewise.
2150 (throw_vquit): Likewise.
2151 (throw_error): Likewise.
2152 (throw_quit): Likewise.
2153 (prepare_to_throw_exception): New function.
2155 2014-08-29 Gary Benson <gbenson@redhat.com>
2157 * common/gdb_setjmp.h: New file.
2158 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2159 * configure.ac: Move sigsetjmp check...
2160 * common/common.m4: ...here.
2161 * configure: Regenerate.
2162 * cp-support.c (SIGJMP_BUF): Delete.
2163 (SIGSETJMP): Likewise.
2164 (SIGLONGJMP): Likewise.
2165 * exceptions.h (gdb_setjmp.h): Include.
2166 (setjmp.h): Do not include.
2167 (EXCEPTIONS_SIGJMP_BUF): Delete.
2168 (EXCEPTIONS_SIGSETJMP): Likewise.
2169 (EXCEPTIONS_SIGLONGJMP): Likewise.
2170 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2172 * exceptions.c: Likewise.
2174 2014-08-29 Gary Benson <gbenson@redhat.com>
2176 * cleanups.h: Moved to...
2177 * common/cleanups.h: New file.
2178 * cleanups.c: Moved to...
2179 * common/cleanups.c: New file. Include common-defs.h and
2180 cleanups.h. Do not include defs.h.
2181 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2182 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2183 (cleanups.o): New rule.
2185 2014-08-29 Gary Benson <gbenson@redhat.com>
2187 * common/errors.h (internal_warning): New declaration.
2188 (internal_vwarning): Likewise.
2189 * common/errors.c (internal_warning): New function.
2190 * utils.h (internal_warning): Don't declare.
2191 (internal_vwarning): Likewise.
2192 * utils.c (internal_warning): Removed.
2194 2014-08-29 Gary Benson <gbenson@redhat.com>
2196 * main.c (captured_main): Use warning during startup.
2197 Prefix startup warning messages with command name.
2199 2014-08-29 Gary Benson <gbenson@redhat.com>
2201 * main.c (captured_main): Handle usage errors with error.
2203 2014-08-29 Gary Benson <gbenson@redhat.com>
2205 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2206 exit pair with a call to error. Wrap the message with _().
2208 2014-08-29 Gary Benson <gbenson@redhat.com>
2210 * main.c (captured_main): Replace a fprintf/exit
2211 pair with a call to error. Wrap the message with _().
2213 2014-08-29 Gary Benson <gbenson@redhat.com>
2215 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2216 pairs with calls to error. Wrap the message with _().
2218 2014-08-29 Gary Benson <gbenson@redhat.com>
2220 * utils.c (vwarning): Protect calls to target_terminal_ours
2223 2014-08-29 Gary Benson <gbenson@redhat.com>
2225 * exceptions.c (print_flush): Protect calls to
2226 target_terminal_ours and wrap_here.
2228 2014-08-29 Gary Benson <gbenson@redhat.com>
2230 * utils.h (filtered_printing_initialized): New declaration.
2231 * utils.c (abort_with_message): New function.
2232 (internal_vproblem): Use abort_with_message for first level
2233 recursive internal problems, and if gdb_stderr is not set up.
2234 Protect calls to target_terminal_ours, begin_line and query.
2236 2014-08-28 Doug Evans <dje@google.com>
2238 * symtab.c (in_prologue): Move definition to better spot.
2239 (skip_prologue_using_sal): Ditto.
2241 2014-08-28 Doug Evans <dje@google.com>
2243 * symtab.c (find_function_start_sal): Move definition to better spot.
2245 2014-08-28 Yao Qi <yao@codesourcery.com>
2247 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2248 found_stack_adjust in forward scan. Remove condition check
2249 on found_stack_adjust which is always true. Indent the code.
2251 2014-08-28 Yao Qi <yao@codesourcery.com>
2253 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2254 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2255 (dwarf_decode_lines): Remove argument
2256 want_line_info. Remove condition check on want_line_info.
2259 2014-08-27 Doug Evans <dje@google.com>
2261 * dwarf2read.c (dwarf_record_line): Fix typo.
2263 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2265 * target.h (struct target_ops::to_terminal_save_ours): Remove
2267 (target_terminal_save_ours): Remove macro.
2268 * target-delegates.c: Regenerate.
2269 * inf-child.c (inf_child_target): Don't set the nonexistent
2270 field to_terminal_save_ours.
2271 * inferior.h (child_terminal_save_ours): Remove declaration.
2272 * terminal.h (gdb_save_tty_state): New declaration.
2273 * inflow.c (child_terminal_save_ours): Rename to ...
2274 (gdb_save_tty_state): ... this.
2275 * tui/tui.c: Include terminal.h.
2276 (tui_enable): Use gdb_save_tty_state instead of
2277 target_terminal_save_ours.
2278 (tui_disable): Likewise.
2280 2014-08-25 Doug Evans <dje@google.com>
2282 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2283 Pass NULL instead of 0 for context pointer.
2285 2014-08-25 Yao Qi <yao@codesourcery.com>
2287 * dwarf2read.c: Fix grammatical error.
2289 2014-08-24 Yao Qi <yao@codesourcery.com>
2291 * dwarf2read.c (scan_partial_symbols): Update comments.
2292 Rename argument 'need_pc' with 'set_addrmap'.
2293 (add_partial_namespace): Rename argument 'need_pc' with
2295 (add_partial_module): Likewise.
2296 (add_partial_subprogram): Likewise. Update comments.
2297 (dwarf2_name): Fix typo.
2299 2014-08-22 Doug Evans <dje@google.com>
2302 * dwarf2read.c (dwarf_record_line_p): New function.
2303 (dwarf_decode_lines_1): Ignore subsequent line number entries
2304 for the same line if any entry had a non-zero discriminator.
2306 2014-08-22 Doug Evans <dje@google.com>
2308 * buildsym.h (record_line_ftype): New typedef.
2309 (record_line): Use it.
2310 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2311 (dwarf_decode_lines_1): Call them.
2313 2014-08-22 Yao Qi <yao@codesourcery.com>
2315 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2316 (ctf_end): Remove code.
2318 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2320 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2321 (linux_make_corefile_notes): call update_thread_list, protected against
2324 2014-08-21 Pedro Alves <palves@redhat.com>
2326 * infcmd.c (attach_command): Remove comment.
2328 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2330 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2331 unsigned LONGEST to ULONGEST.
2333 2014-08-20 Pedro Alves <palves@redhat.com>
2335 * Makefile.in (check-read1): New rule.
2337 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2339 * value.c (value_from_contents_and_address): Strip resolved_type's
2340 typedef layers before checking its TYPE_DATA_LOCATION.
2342 2014-08-20 Pedro Alves <palves@redhat.com>
2344 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2346 2014-08-20 Yao Qi <yao@codesourcery.com>
2348 * amd64-tdep.c (amd64_classify): Add a blank line after the
2349 example. Move "*/" to a new line.
2350 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2351 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2352 * dwarf2read.c (psymtab_include_file_name): Likewise.
2354 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2355 Pedro Alves <palves@redhat.com>
2359 * ada-lang.c (coerce_unspec_val_to_type): Use
2360 value_contents_copy_raw.
2361 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2362 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2363 * cp-valprint.c (cp_print_value_fields): Let the common printing
2364 code handle optimized out values.
2365 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2366 * d-valprint.c (dynamic_array_type): Use
2367 value_bits_any_optimized_out.
2368 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2369 check_any_valid fields.
2370 (check_pieced_value_bits): Delete and inline ...
2371 (check_pieced_synthetic_pointer): ... here.
2372 (check_pieced_value_validity): Delete.
2373 (check_pieced_value_invalid): Delete.
2374 (pieced_value_funcs): Remove check_validity and check_any_valid
2376 (read_pieced_value): Use mark_value_bits_optimized_out.
2377 (write_pieced_value): Switch to use
2378 mark_value_bytes_optimized_out.
2379 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2380 of assuming the whole value is optimized out.
2381 * findvar.c (read_frame_register_value): Remove special handling
2382 of optimized out registers.
2383 (value_from_register): Use mark_value_bytes_optimized_out.
2384 * frame-unwind.c (frame_unwind_got_optimized): Use
2385 mark_value_bytes_optimized_out.
2386 * jv-valprint.c (java_value_print): Adjust.
2387 (java_print_value_fields): Let the common printing code handle
2388 optimized out values.
2389 * mips-tdep.c (mips_print_register): Remove special handling of
2390 optimized out registers.
2391 * opencl-lang.c (lval_func_check_validity): Delete.
2392 (lval_func_check_any_valid): Delete.
2393 (opencl_value_funcs): Remove check_validity and check_any_valid
2395 * p-valprint.c (pascal_object_print_value_fields): Let the common
2396 printing code handle optimized out values.
2397 * stack.c (read_frame_arg): Remove special handling of optimized
2398 out values. Fetch both VAL and ENTRYVAL before comparing
2399 contents. Adjust to value_available_contents_eq rename.
2400 * valprint.c (valprint_check_validity)
2401 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2402 (val_print_array_elements): Adjust.
2403 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2404 (value_bits_any_optimized_out): New function.
2405 (value_entirely_covered_by_range_vector): New function, factored
2406 out from value_entirely_unavailable.
2407 (value_entirely_unavailable): Reimplement.
2408 (value_entirely_optimized_out): New function.
2409 (insert_into_bit_range_vector): New function, factored out from
2410 mark_value_bits_unavailable.
2411 (mark_value_bits_unavailable): Reimplement.
2412 (struct ranges_and_idx): New struct.
2413 (find_first_range_overlap_and_match): New function, factored out
2414 from value_available_contents_bits_eq.
2415 (value_available_contents_bits_eq): Rename to ...
2416 (value_contents_bits_eq): ... this. Check both unavailable
2417 contents and optimized out contents.
2418 (value_available_contents_eq): Rename to ...
2419 (value_contents_eq): ... this.
2420 (allocate_value_lazy): Remove reference to the old optimized_out
2422 (allocate_optimized_out_value): Use
2423 mark_value_bytes_optimized_out.
2424 (require_not_optimized_out): Adjust to check whether the
2425 optimized_out vec is empty.
2426 (ranges_copy_adjusted): New function, factored out from
2427 value_contents_copy_raw.
2428 (value_contents_copy_raw): Also copy the optimized out ranges.
2429 Assert the destination ranges aren't optimized out.
2430 (value_contents_copy): Update comment, remove call to
2431 require_not_optimized_out.
2432 (value_contents_equal): Adjust to check whether the optimized_out
2434 (set_value_optimized_out, value_optimized_out_const): Delete.
2435 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2437 (value_entirely_optimized_out, value_bits_valid): Delete.
2438 (value_copy): Take a VEC copy of the 'optimized_out' field.
2439 (value_primitive_field): Remove special handling of optimized out.
2440 (value_fetch_lazy): Assert that lazy values have no unavailable
2441 regions. Use value_bits_any_optimized_out. Remove some special
2442 handling for optimized out values.
2443 * value.h: Add intro comment about <optimized out> and
2445 (struct lval_funcs): Remove check_validity and check_any_valid
2447 (set_value_optimized_out, value_optimized_out_const): Remove.
2448 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2450 (value_bits_any_optimized_out): New declaration.
2451 (value_bits_valid): Delete declaration.
2452 (value_available_contents_eq): Rename to ...
2453 (value_contents_eq): ... this, and extend comments.
2455 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2457 Fix -fsanitize=address on unreadable inferior strings.
2458 * valprint.c (val_print_string): Fix access before BUFFER.
2460 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2462 * target.c (target_struct_size): Remove.
2463 (target_struct_allocsize): Remove.
2464 (DEFAULT_ALLOCSIZE): Remove.
2465 (target_ops_p): New typedef.
2466 (DEF_VEC_P (target_ops_p)): New vector type.
2467 (target_structs): Change type to VEC (target_ops_p).
2468 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2469 (find_default_run_target): Rewrite for loop following changes to
2472 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2474 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2475 Adjust code accordingly. Adjust function description comment.
2477 2014-08-19 Yao Qi <yao@codesourcery.com>
2479 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2482 2014-08-19 Alan Modra <amodra@gmail.com>
2484 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2485 * config.in: Regenerate.
2486 * configure: Regenerate.
2488 2014-08-19 Tom Tromey <tromey@redhat.com>
2489 Gary Benson <gbenson@redhat.com>
2491 * common/common-debug.h: New file.
2492 * common/common-debug.c: Likewise.
2493 * debug.c: Likewise.
2494 * Makefile.in (SFILES): Add common/common-debug.c.
2495 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2496 (COMMON_OBS): Add common-debug.o and debug.o.
2497 (common-debug.o): New rule.
2498 * common/common-defs.h: Include common-debug.h.
2499 * common/agent.c (debug_agent_printf): New function.
2500 (DEBUG_AGENT): Redefine.
2501 * nat/i386-dregs.c (debug_printf): Undefine.
2503 2014-08-19 Gary Benson <gbenson@redhat.com>
2505 * common/common-defs.h: Include print-utils.h.
2506 * utils.h: Do not include print-utils.h.
2508 2014-08-19 Tom Tromey <tromey@redhat.com>
2509 Gary Benson <gbenson@redhat.com>
2511 * common/common-types.h: New file.
2512 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2513 * common/common-defs.h: Include common-types.h.
2514 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2517 2014-08-19 Tom Tromey <tromey@redhat.com>
2518 Gary Benson <gbenson@redhat.com>
2520 * common/errors.h: New file.
2521 * common/errors.c: Likewise.
2522 * Makefile.in (SFILES): Add common/errors.c.
2523 (HFILES_NO_SRCDIR): Add common/errors.h.
2524 (COMMON_OBS): Add errors.o.
2525 (errors.o): New rule.
2526 * common/common-defs.h: Include errors.h.
2527 * utils.h (perror_with_name, error, verror, warning, vwarning):
2529 * common/common-utils.h: (malloc_failure, internal_error):
2532 2014-08-19 Gary Benson <gbenson@redhat.com>
2534 * utils.c (internal_vproblem): Always print the message.
2536 2014-08-18 Doug Evans <dje@google.com>
2538 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2540 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2542 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2543 Return 0 if TYPE is dynamic.
2544 (print_range): Add handling of dynamic ranges.
2546 2014-08-18 Keven Boell <keven.boell@intel.com>
2547 Joel Brobecker <brobecker@adacore.com>
2549 * gdbtypes.h (struct main_type): Add field "data_location".
2550 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2551 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2552 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2553 a dynamic data location.
2554 (resolve_dynamic_type): Add DW_AT_data_location handling.
2555 (copy_recursive, copy_type): Copy the data_location information
2557 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2558 * value.c (value_from_contents_and_address): Add
2559 DW_AT_data_location handling.
2561 2014-08-18 Keven Boell <keven.boell@intel.com>
2562 Joel Brobecker <brobecker@adacore.com>
2564 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2565 field "get_object_address".
2566 * dwarf2expr.c (execute_stack_op): Add handling for
2567 DW_OP_push_object_address.
2568 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2569 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2570 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2571 (dwarf_expr_get_obj_addr): New function.
2572 (dwarf_expr_ctx_funcs): Add get_object_address field.
2573 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2574 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2575 (dwarf2_evaluate_property): Add parameter "address". Use it.
2576 (needs_get_obj_addr): New function.
2577 (needs_frame_ctx_funcs): Add get_object_address field.
2578 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2579 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2580 (resolve_dynamic_array): Likewise.
2582 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2584 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2585 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2586 fixed value for records and unions for which some GNAT encodings
2589 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2591 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2592 rewrite to avoid "else if" and "else" constructs. Should be
2593 a no-op in practice.
2595 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2597 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2600 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2603 * eval.c: Update all calls to find_overload_match.
2604 * valarith.c: Likewise.
2605 (value_user_defined_cpp_op, value_user_defined_op): New
2606 argument NOSIDE. Update all callers.
2607 * valops.c (find_overload_match): New argument NOSIDE.
2608 * value.h (find_overload_match): Update signature.
2610 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2612 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2613 'items' methods instead of 'iteritems' method on dictionaries.
2615 2014-08-15 Doug Evans <dje@google.com>
2617 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2620 2014-08-15 Doug Evans <dje@google.com>
2622 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2624 2014-08-15 Doug Evans <dje@google.com>
2626 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2628 2014-08-15 Doug Evans <dje@google.com>
2630 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2633 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2635 * dcache.h: Include target.h, to avoid compile time warnings.
2637 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2639 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2640 frame_info" partial declaration.
2641 * gdbarch.h: Regenerate.
2643 2014-08-15 Yao Qi <yao@codesourcery.com>
2645 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2646 Add parameter 'decode_for_pst_p'. Callers update.
2648 2014-08-13 Yao Qi <yao@codesourcery.com>
2651 * configure.ac: Use local variable 'pos'.
2652 * configure: Regenerated.
2654 2014-08-11 Doug Evans <dje@google.com>
2656 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2657 message, it is redundant with "Reading symbols from ..." message.
2659 2014-08-10 Doug Evans <xdje42@gmail.com>
2661 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2663 2014-08-09 Yao Qi <yao@codesourcery.com>
2666 * remote.c (remote_xfer_partial): Remove dead code.
2668 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2670 * ia64-linux-tdep.c: Include "regset.h".
2671 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2672 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2673 (ia64_linux_supply_fpregset): New function.
2674 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2675 (ia64_linux_regset_from_core_section): New function.
2676 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2679 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2681 * m68klinux-tdep.c: Include "regset.h".
2682 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2683 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2684 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2685 (m68k_linux_regset_from_core_section): New function.
2686 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2689 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2691 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2692 function. Move logic to...
2693 (tilegx_linux_regmap): ... this new register map.
2694 (tilegx_linux_regset): Refer to register map, replace supply
2695 method by regcache_supply_regset, and add collect method.
2696 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2697 TILEGX_FIRST_EASY_REGNUM.
2699 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2701 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2702 that calls regcache_supply_regset and handles the EPC register
2703 separately. Move main logic to...
2704 (score7_linux_gregmap): ... this new register map.
2705 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2706 (score7_linux_gregset): Refer to register map. Add collect method.
2707 (score7_linux_regset_from_core_section): Replace
2708 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2709 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2710 (struct regset): Delete unused forward declaraction.
2711 (struct pt_regs): Delete structure definition.
2712 (elf_gregset_t): Delete typedef.
2714 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2716 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2717 (nios2_core_regset): Add collect method.
2719 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2721 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2722 platform-independent and don't write to read-only input buffer.
2723 (m32r_linux_collect_gregset): New function.
2724 (m32r_linux_gregset): Add collect method.
2726 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2728 * hppa-linux-tdep.c (greg_map): Rename to...
2729 (hppa_linux_gregmap): ... this. Also convert to
2730 regcache_map_entry format.
2731 (hppa_linux_supply_regset): Delete function.
2732 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2733 (hppa_linux_fpregmap): ... this new register map.
2734 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2735 register map, replace supply method by regcache_supply_regset, and
2736 add collect method regcache_collect_regset.
2738 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2740 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2741 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2742 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2743 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2744 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2745 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2746 (frv_linux_supply_gregset): Replace main logic by call to
2747 regcache_supply_regset, but keep clearing gr32-gr63.
2748 (frv_linux_supply_fpregset): Delete function.
2749 (frv_linux_gregset): Refer to appropriate register map and add
2750 regcache_collect_regset as the collect method.
2751 (frv_linux_fpregset): Likewise. Also exchange the supply method
2752 by regcache_supply_regset.
2754 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2756 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2757 by call to alpha_supply_int_regs.
2758 (alpha_linux_collect_gregset): New function.
2759 (alpha_linux_supply_fpregset): Replace logic by call to
2760 alpha_supply_fp_regs.
2761 (alpha_linux_collect_fpregset): New function.
2762 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2764 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2766 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2767 by call to regcache_collect_regset.
2768 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2769 instead of aarch64_linux_supply_gregset/_fpregset.
2770 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2771 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2772 header file instead.
2773 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2774 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2775 functions. Move logic to ...
2776 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2778 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2779 refer to new register maps, replace *_regset_from_core by
2780 regcache_supply_regset, and also use regcache_collect_regset.
2781 * aarch64-linux-tdep.h: Include "regset.h".
2782 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2784 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2785 macros, moved from C source file.
2786 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2787 variable declarations.
2789 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2791 * s390-linux-nat.c: Include "regset.h".
2792 (regmap_gregset): Delete macro.
2793 (s390_64_regmap_gregset): New register map for
2794 regcache_supply/_collect_regset.
2795 (s390_64_gregset): New regset.
2796 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2797 (regmap_fpregset): Delete macro.
2798 (s390_native_supply, s390_native_collect): Delete functions.
2799 (supply_gregset, fill_gregset): Replace s390-specific regmap
2800 handling by a call to regcache_supply/_collect_regset.
2801 (supply_fpregset, fill_fpregset): Call regcache_supply/
2802 _collect_regset instead of s390_native_supply/_collect.
2803 (fetch_regset, store_regset): Likewise. Also change the last
2804 parameter to a regset instead of a regmap.
2805 (s390_linux_fetch_inferior_registers)
2806 (390_linux_store_inferior_registers): Adjust last parameter in
2807 calls to fetch_regset and store_regset.
2808 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2809 (s390_gregmap): ... this. Also make static const and convert to
2810 regcache_map_entry format.
2811 (s390x_regmap_gregset): Delete.
2812 (s390_regmap_fpregset): Rename to...
2813 (s390_fpregmap): ... this. Make static const and convert to
2814 regcache_map_entry format.
2815 (s390_regmap_upper, s390_regmap_last_break)
2816 (s390x_regmap_last_break, s390_regmap_system_call)
2817 (s390_regmap_tdb): Likewise.
2818 (s390_supply_regset, s390_collect_regset): Remove functions.
2819 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2821 (s390_gregset, s390_fpregset, s390_upper_regset)
2822 (s390_last_break_regset, s390x_last_break_regset)
2823 (s390_system_call_regset, s390_tdb_regset): Make global and
2824 replace s390_supply/_collect_regset by regcache_supply/
2826 (s390x_gregset): Delete.
2827 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2828 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2829 (s390_regmap_fpregset, s390_regmap_last_break)
2830 (s390x_regmap_last_break, s390_regmap_system_call)
2831 (s390_regmap_tdb): Delete global variable declarations.
2832 (s390_gregset, s390_fpregset, s390_last_break_regset)
2833 (s390x_last_break_regset, s390_system_call_regset)
2834 (s390_tdb_regset): New global variable declarations.
2836 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2838 * regcache.c: Include "regset.h".
2839 (regcache_transfer_regset): New local function.
2840 (regcache_supply_regset, regcache_collect_regset): New functions.
2841 * regcache.h (struct regcache_map_entry): New structure.
2842 (REGCACHE_MAP_SKIP): New enum value.
2843 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2845 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2847 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2848 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2849 (ppc_linux_collect_gregset ): Likewise.
2850 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2851 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2852 (ppc_collect_vrregset): Likewise.
2853 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2856 2014-08-07 Yao Qi <yao@codesourcery.com>
2858 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2859 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2860 * remote.c (remote_read_bytes): Likewise.
2862 2014-08-07 Yao Qi <yao@codesourcery.com>
2864 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2866 2014-08-07 Yao Qi <yao@codesourcery.com>
2869 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2870 TARGET_XFER_OK instead of 0.
2872 2014-08-07 Gary Benson <gbenson@redhat.com>
2874 * common/common-defs.h: Include errno.h.
2875 * defs.h: Do not include errno.h.
2876 * ada-typeprint.c: Likewise.
2877 * c-typeprint.c: Likewise.
2878 * core-regset.c: Likewise.
2879 * corefile.c: Likewise.
2880 * corelow.c: Likewise.
2881 * event-loop.c: Likewise.
2882 * f-typeprint.c: Likewise.
2883 * gnu-nat.c: Likewise.
2884 * go32-nat.c: Likewise.
2885 * i386gnu-nat.c: Likewise.
2886 * m2-typeprint.c: Likewise.
2887 * nat/linux-btrace.c: Likewise.
2888 * p-typeprint.c: Likewise.
2889 * procfs.c: Likewise.
2890 * remote-sim.c: Likewise.
2891 * rs6000-nat.c: Likewise.
2892 * target.c: Likewise.
2893 * typeprint.c: Likewise.
2894 * ui-file.c: Likewise.
2895 * valops.c: Likewise.
2896 * valprint.c: Likewise.
2898 2014-08-07 Gary Benson <gbenson@redhat.com>
2900 * common/common-defs.h: Include string.h.
2901 * aarch64-tdep.c: Do not include string.h.
2902 * ada-exp.y: Likewise.
2903 * ada-lang.c: Likewise.
2904 * ada-lex.l: Likewise.
2905 * ada-typeprint.c: Likewise.
2906 * ada-valprint.c: Likewise.
2907 * aix-thread.c: Likewise.
2908 * alpha-linux-tdep.c: Likewise.
2909 * alpha-mdebug-tdep.c: Likewise.
2910 * alpha-nat.c: Likewise.
2911 * alpha-osf1-tdep.c: Likewise.
2912 * alpha-tdep.c: Likewise.
2913 * alphanbsd-tdep.c: Likewise.
2914 * amd64-dicos-tdep.c: Likewise.
2915 * amd64-linux-tdep.c: Likewise.
2916 * amd64-nat.c: Likewise.
2917 * amd64-sol2-tdep.c: Likewise.
2918 * amd64fbsd-tdep.c: Likewise.
2919 * amd64obsd-tdep.c: Likewise.
2920 * arch-utils.c: Likewise.
2921 * arm-linux-nat.c: Likewise.
2922 * arm-linux-tdep.c: Likewise.
2923 * arm-tdep.c: Likewise.
2924 * arm-wince-tdep.c: Likewise.
2925 * armbsd-tdep.c: Likewise.
2926 * armnbsd-nat.c: Likewise.
2927 * armnbsd-tdep.c: Likewise.
2928 * armobsd-tdep.c: Likewise.
2929 * avr-tdep.c: Likewise.
2930 * ax-gdb.c: Likewise.
2931 * ax-general.c: Likewise.
2932 * bcache.c: Likewise.
2933 * bfin-tdep.c: Likewise.
2934 * breakpoint.c: Likewise.
2935 * build-id.c: Likewise.
2936 * buildsym.c: Likewise.
2937 * c-exp.y: Likewise.
2938 * c-lang.c: Likewise.
2939 * c-typeprint.c: Likewise.
2940 * c-valprint.c: Likewise.
2941 * charset.c: Likewise.
2942 * cli-out.c: Likewise.
2943 * cli/cli-cmds.c: Likewise.
2944 * cli/cli-decode.c: Likewise.
2945 * cli/cli-dump.c: Likewise.
2946 * cli/cli-interp.c: Likewise.
2947 * cli/cli-logging.c: Likewise.
2948 * cli/cli-script.c: Likewise.
2949 * cli/cli-setshow.c: Likewise.
2950 * cli/cli-utils.c: Likewise.
2951 * coffread.c: Likewise.
2952 * common/agent.c: Likewise.
2953 * common/buffer.c: Likewise.
2954 * common/buffer.h: Likewise.
2955 * common/common-utils.c: Likewise.
2956 * common/filestuff.c: Likewise.
2957 * common/filestuff.c: Likewise.
2958 * common/format.c: Likewise.
2959 * common/print-utils.c: Likewise.
2960 * common/rsp-low.c: Likewise.
2961 * common/signals.c: Likewise.
2962 * common/vec.h: Likewise.
2963 * common/xml-utils.c: Likewise.
2964 * core-regset.c: Likewise.
2965 * corefile.c: Likewise.
2966 * corelow.c: Likewise.
2967 * cp-abi.c: Likewise.
2968 * cp-name-parser.y: Likewise.
2969 * cp-support.c: Likewise.
2970 * cp-valprint.c: Likewise.
2971 * cris-tdep.c: Likewise.
2972 * d-exp.y: Likewise.
2973 * darwin-nat.c: Likewise.
2974 * dbxread.c: Likewise.
2975 * dcache.c: Likewise.
2976 * demangle.c: Likewise.
2977 * dicos-tdep.c: Likewise.
2978 * disasm.c: Likewise.
2979 * doublest.c: Likewise.
2980 * dsrec.c: Likewise.
2981 * dummy-frame.c: Likewise.
2982 * dwarf2-frame.c: Likewise.
2983 * dwarf2loc.c: Likewise.
2984 * dwarf2read.c: Likewise.
2985 * elfread.c: Likewise.
2986 * environ.c: Likewise.
2988 * event-loop.c: Likewise.
2989 * exceptions.c: Likewise.
2991 * expprint.c: Likewise.
2992 * f-exp.y: Likewise.
2993 * f-lang.c: Likewise.
2994 * f-typeprint.c: Likewise.
2995 * f-valprint.c: Likewise.
2996 * fbsd-nat.c: Likewise.
2997 * findcmd.c: Likewise.
2998 * findvar.c: Likewise.
2999 * fork-child.c: Likewise.
3000 * frame.c: Likewise.
3001 * frv-linux-tdep.c: Likewise.
3002 * frv-tdep.c: Likewise.
3004 * gdb_bfd.c: Likewise.
3005 * gdbarch.c: Likewise.
3006 * gdbarch.sh: Likewise.
3007 * gdbtypes.c: Likewise.
3008 * gnu-nat.c: Likewise.
3009 * gnu-v2-abi.c: Likewise.
3010 * gnu-v3-abi.c: Likewise.
3011 * go-exp.y: Likewise.
3012 * go-lang.c: Likewise.
3013 * go32-nat.c: Likewise.
3014 * guile/guile.c: Likewise.
3015 * guile/scm-auto-load.c: Likewise.
3016 * hppa-hpux-tdep.c: Likewise.
3017 * hppa-linux-nat.c: Likewise.
3018 * hppanbsd-tdep.c: Likewise.
3019 * hppaobsd-tdep.c: Likewise.
3020 * i386-cygwin-tdep.c: Likewise.
3021 * i386-dicos-tdep.c: Likewise.
3022 * i386-linux-tdep.c: Likewise.
3023 * i386-nto-tdep.c: Likewise.
3024 * i386-sol2-tdep.c: Likewise.
3025 * i386-tdep.c: Likewise.
3026 * i386bsd-tdep.c: Likewise.
3027 * i386gnu-nat.c: Likewise.
3028 * i386nbsd-tdep.c: Likewise.
3029 * i386obsd-tdep.c: Likewise.
3030 * i387-tdep.c: Likewise.
3031 * ia64-libunwind-tdep.c: Likewise.
3032 * ia64-linux-nat.c: Likewise.
3033 * inf-child.c: Likewise.
3034 * inf-ptrace.c: Likewise.
3035 * inf-ttrace.c: Likewise.
3036 * infcall.c: Likewise.
3037 * infcmd.c: Likewise.
3038 * inflow.c: Likewise.
3039 * infrun.c: Likewise.
3040 * interps.c: Likewise.
3041 * iq2000-tdep.c: Likewise.
3042 * irix5-nat.c: Likewise.
3043 * jv-exp.y: Likewise.
3044 * jv-lang.c: Likewise.
3045 * jv-typeprint.c: Likewise.
3046 * jv-valprint.c: Likewise.
3047 * language.c: Likewise.
3048 * linux-fork.c: Likewise.
3049 * linux-nat.c: Likewise.
3050 * lm32-tdep.c: Likewise.
3051 * m2-exp.y: Likewise.
3052 * m2-typeprint.c: Likewise.
3053 * m32c-tdep.c: Likewise.
3054 * m32r-linux-nat.c: Likewise.
3055 * m32r-linux-tdep.c: Likewise.
3056 * m32r-rom.c: Likewise.
3057 * m32r-tdep.c: Likewise.
3058 * m68hc11-tdep.c: Likewise.
3059 * m68k-tdep.c: Likewise.
3060 * m68kbsd-tdep.c: Likewise.
3061 * m68klinux-nat.c: Likewise.
3062 * m68klinux-tdep.c: Likewise.
3063 * m88k-tdep.c: Likewise.
3064 * machoread.c: Likewise.
3065 * macrocmd.c: Likewise.
3067 * mdebugread.c: Likewise.
3068 * mem-break.c: Likewise.
3069 * memattr.c: Likewise.
3070 * memory-map.c: Likewise.
3071 * mep-tdep.c: Likewise.
3072 * mi/mi-cmd-break.c: Likewise.
3073 * mi/mi-cmd-disas.c: Likewise.
3074 * mi/mi-cmd-env.c: Likewise.
3075 * mi/mi-cmd-stack.c: Likewise.
3076 * mi/mi-cmd-var.c: Likewise.
3077 * mi/mi-cmds.c: Likewise.
3078 * mi/mi-console.c: Likewise.
3079 * mi/mi-getopt.c: Likewise.
3080 * mi/mi-interp.c: Likewise.
3081 * mi/mi-main.c: Likewise.
3082 * mi/mi-parse.c: Likewise.
3083 * microblaze-rom.c: Likewise.
3084 * microblaze-tdep.c: Likewise.
3085 * mingw-hdep.c: Likewise.
3086 * minidebug.c: Likewise.
3087 * minsyms.c: Likewise.
3088 * mips-irix-tdep.c: Likewise.
3089 * mips-linux-tdep.c: Likewise.
3090 * mips-tdep.c: Likewise.
3091 * mips64obsd-tdep.c: Likewise.
3092 * mipsnbsd-tdep.c: Likewise.
3093 * mipsread.c: Likewise.
3094 * mn10300-linux-tdep.c: Likewise.
3095 * mn10300-tdep.c: Likewise.
3096 * monitor.c: Likewise.
3097 * moxie-tdep.c: Likewise.
3098 * mt-tdep.c: Likewise.
3099 * nat/linux-btrace.c: Likewise.
3100 * nat/linux-osdata.c: Likewise.
3101 * nat/linux-procfs.c: Likewise.
3102 * nat/linux-ptrace.c: Likewise.
3103 * nat/linux-waitpid.c: Likewise.
3104 * nbsd-tdep.c: Likewise.
3105 * nios2-linux-tdep.c: Likewise.
3106 * nto-procfs.c: Likewise.
3107 * nto-tdep.c: Likewise.
3108 * objc-lang.c: Likewise.
3109 * objfiles.c: Likewise.
3110 * opencl-lang.c: Likewise.
3111 * osabi.c: Likewise.
3112 * osdata.c: Likewise.
3113 * p-exp.y: Likewise.
3114 * p-lang.c: Likewise.
3115 * p-typeprint.c: Likewise.
3116 * parse.c: Likewise.
3117 * posix-hdep.c: Likewise.
3118 * ppc-linux-nat.c: Likewise.
3119 * ppc-sysv-tdep.c: Likewise.
3120 * ppcfbsd-tdep.c: Likewise.
3121 * ppcnbsd-tdep.c: Likewise.
3122 * ppcobsd-tdep.c: Likewise.
3123 * printcmd.c: Likewise.
3124 * procfs.c: Likewise.
3125 * prologue-value.c: Likewise.
3126 * python/py-auto-load.c: Likewise.
3127 * python/py-gdb-readline.c: Likewise.
3128 * ravenscar-thread.c: Likewise.
3129 * regcache.c: Likewise.
3130 * registry.c: Likewise.
3131 * remote-fileio.c: Likewise.
3132 * remote-m32r-sdi.c: Likewise.
3133 * remote-mips.c: Likewise.
3134 * remote-notif.c: Likewise.
3135 * remote-sim.c: Likewise.
3136 * remote.c: Likewise.
3137 * reverse.c: Likewise.
3138 * rs6000-aix-tdep.c: Likewise.
3139 * ser-base.c: Likewise.
3140 * ser-go32.c: Likewise.
3141 * ser-mingw.c: Likewise.
3142 * ser-pipe.c: Likewise.
3143 * ser-tcp.c: Likewise.
3144 * ser-unix.c: Likewise.
3145 * serial.c: Likewise.
3146 * sh-tdep.c: Likewise.
3147 * sh64-tdep.c: Likewise.
3148 * shnbsd-tdep.c: Likewise.
3150 * sol-thread.c: Likewise.
3151 * solib-dsbt.c: Likewise.
3152 * solib-frv.c: Likewise.
3153 * solib-osf.c: Likewise.
3154 * solib-som.c: Likewise.
3155 * solib-spu.c: Likewise.
3156 * solib-target.c: Likewise.
3157 * solib.c: Likewise.
3158 * somread.c: Likewise.
3159 * source.c: Likewise.
3160 * sparc-nat.c: Likewise.
3161 * sparc-sol2-tdep.c: Likewise.
3162 * sparc-tdep.c: Likewise.
3163 * sparc64-tdep.c: Likewise.
3164 * sparc64fbsd-tdep.c: Likewise.
3165 * sparc64nbsd-tdep.c: Likewise.
3166 * sparcnbsd-tdep.c: Likewise.
3167 * spu-linux-nat.c: Likewise.
3168 * spu-multiarch.c: Likewise.
3169 * spu-tdep.c: Likewise.
3170 * stabsread.c: Likewise.
3171 * stack.c: Likewise.
3172 * std-regs.c: Likewise.
3173 * symfile.c: Likewise.
3174 * symmisc.c: Likewise.
3175 * symtab.c: Likewise.
3176 * target.c: Likewise.
3177 * thread.c: Likewise.
3178 * tilegx-linux-nat.c: Likewise.
3179 * tilegx-tdep.c: Likewise.
3181 * tracepoint.c: Likewise.
3182 * tui/tui-command.c: Likewise.
3183 * tui/tui-data.c: Likewise.
3184 * tui/tui-disasm.c: Likewise.
3185 * tui/tui-file.c: Likewise.
3186 * tui/tui-layout.c: Likewise.
3187 * tui/tui-out.c: Likewise.
3188 * tui/tui-regs.c: Likewise.
3189 * tui/tui-source.c: Likewise.
3190 * tui/tui-stack.c: Likewise.
3191 * tui/tui-win.c: Likewise.
3192 * tui/tui-windata.c: Likewise.
3193 * tui/tui-winsource.c: Likewise.
3194 * typeprint.c: Likewise.
3195 * ui-file.c: Likewise.
3196 * ui-out.c: Likewise.
3197 * user-regs.c: Likewise.
3198 * utils.c: Likewise.
3199 * v850-tdep.c: Likewise.
3200 * valarith.c: Likewise.
3201 * valops.c: Likewise.
3202 * valprint.c: Likewise.
3203 * value.c: Likewise.
3204 * varobj.c: Likewise.
3205 * vax-tdep.c: Likewise.
3206 * vaxnbsd-tdep.c: Likewise.
3207 * vaxobsd-tdep.c: Likewise.
3208 * windows-nat.c: Likewise.
3209 * xcoffread.c: Likewise.
3210 * xml-support.c: Likewise.
3211 * xstormy16-tdep.c: Likewise.
3212 * xtensa-linux-nat.c: Likewise.
3214 2014-08-07 Gary Benson <gbenson@redhat.com>
3216 * common/common-defs.h: Include gdb_assert.h.
3217 * aarch64-tdep.c: Do not include gdb_assert.h.
3218 * addrmap.c: Likewise.
3219 * aix-thread.c: Likewise.
3220 * alpha-linux-tdep.c: Likewise.
3221 * alpha-mdebug-tdep.c: Likewise.
3222 * alphanbsd-tdep.c: Likewise.
3223 * amd64-nat.c: Likewise.
3224 * amd64-tdep.c: Likewise.
3225 * amd64bsd-nat.c: Likewise.
3226 * amd64fbsd-nat.c: Likewise.
3227 * amd64fbsd-tdep.c: Likewise.
3228 * amd64nbsd-nat.c: Likewise.
3229 * amd64nbsd-tdep.c: Likewise.
3230 * amd64obsd-nat.c: Likewise.
3231 * amd64obsd-tdep.c: Likewise.
3232 * arch-utils.c: Likewise.
3233 * arm-tdep.c: Likewise.
3234 * armbsd-tdep.c: Likewise.
3236 * bcache.c: Likewise.
3237 * bfin-tdep.c: Likewise.
3238 * blockframe.c: Likewise.
3239 * breakpoint.c: Likewise.
3240 * bsd-kvm.c: Likewise.
3241 * bsd-uthread.c: Likewise.
3242 * buildsym.c: Likewise.
3243 * c-exp.y: Likewise.
3244 * c-lang.c: Likewise.
3245 * charset.c: Likewise.
3246 * cleanups.c: Likewise.
3247 * cli-out.c: Likewise.
3248 * cli/cli-decode.c: Likewise.
3249 * cli/cli-dump.c: Likewise.
3250 * cli/cli-logging.c: Likewise.
3251 * cli/cli-script.c: Likewise.
3252 * cli/cli-utils.c: Likewise.
3253 * coffread.c: Likewise.
3254 * common/common-utils.c: Likewise.
3255 * common/queue.h: Likewise.
3256 * common/signals.c: Likewise.
3257 * common/vec.h: Likewise.
3258 * complaints.c: Likewise.
3259 * completer.c: Likewise.
3260 * corelow.c: Likewise.
3261 * cp-abi.c: Likewise.
3262 * cp-name-parser.y: Likewise.
3263 * cp-namespace.c: Likewise.
3264 * cp-support.c: Likewise.
3265 * cris-tdep.c: Likewise.
3266 * dbxread.c: Likewise.
3267 * dictionary.c: Likewise.
3268 * doublest.c: Likewise.
3269 * dsrec.c: Likewise.
3270 * dummy-frame.c: Likewise.
3271 * dwarf2-frame-tailcall.c: Likewise.
3272 * dwarf2-frame.c: Likewise.
3273 * dwarf2expr.c: Likewise.
3274 * dwarf2loc.c: Likewise.
3275 * dwarf2read.c: Likewise.
3277 * event-loop.c: Likewise.
3278 * exceptions.c: Likewise.
3279 * expprint.c: Likewise.
3280 * f-valprint.c: Likewise.
3281 * fbsd-nat.c: Likewise.
3282 * findvar.c: Likewise.
3283 * frame-unwind.c: Likewise.
3284 * frame.c: Likewise.
3285 * frv-tdep.c: Likewise.
3286 * gcore.c: Likewise.
3287 * gdb-dlfcn.c: Likewise.
3288 * gdb_bfd.c: Likewise.
3289 * gdbarch.c: Likewise.
3290 * gdbarch.sh: Likewise.
3291 * gdbtypes.c: Likewise.
3292 * gnu-nat.c: Likewise.
3293 * gnu-v3-abi.c: Likewise.
3294 * go-lang.c: Likewise.
3295 * guile/scm-exception.c: Likewise.
3296 * guile/scm-gsmob.c: Likewise.
3297 * guile/scm-lazy-string.c: Likewise.
3298 * guile/scm-math.c: Likewise.
3299 * guile/scm-pretty-print.c: Likewise.
3300 * guile/scm-safe-call.c: Likewise.
3301 * guile/scm-utils.c: Likewise.
3302 * guile/scm-value.c: Likewise.
3303 * h8300-tdep.c: Likewise.
3304 * hppa-hpux-nat.c: Likewise.
3305 * hppa-tdep.c: Likewise.
3306 * hppanbsd-tdep.c: Likewise.
3307 * hppaobsd-tdep.c: Likewise.
3308 * i386-darwin-nat.c: Likewise.
3309 * i386-darwin-tdep.c: Likewise.
3310 * i386-nto-tdep.c: Likewise.
3311 * i386-tdep.c: Likewise.
3312 * i386bsd-nat.c: Likewise.
3313 * i386fbsd-tdep.c: Likewise.
3314 * i386gnu-nat.c: Likewise.
3315 * i386nbsd-tdep.c: Likewise.
3316 * i386obsd-tdep.c: Likewise.
3317 * i387-tdep.c: Likewise.
3318 * ia64-libunwind-tdep.c: Likewise.
3319 * ia64-tdep.c: Likewise.
3320 * inf-ptrace.c: Likewise.
3321 * inf-ttrace.c: Likewise.
3322 * infcall.c: Likewise.
3323 * infcmd.c: Likewise.
3324 * infrun.c: Likewise.
3325 * inline-frame.c: Likewise.
3326 * interps.c: Likewise.
3327 * jv-lang.c: Likewise.
3328 * jv-typeprint.c: Likewise.
3329 * linux-fork.c: Likewise.
3330 * linux-nat.c: Likewise.
3331 * linux-thread-db.c: Likewise.
3332 * m32c-tdep.c: Likewise.
3333 * m32r-linux-nat.c: Likewise.
3334 * m32r-tdep.c: Likewise.
3335 * m68k-tdep.c: Likewise.
3336 * m68kbsd-nat.c: Likewise.
3337 * m68kbsd-tdep.c: Likewise.
3338 * m88k-tdep.c: Likewise.
3339 * machoread.c: Likewise.
3340 * macroexp.c: Likewise.
3341 * macrotab.c: Likewise.
3342 * maint.c: Likewise.
3343 * mdebugread.c: Likewise.
3344 * memory-map.c: Likewise.
3345 * mep-tdep.c: Likewise.
3346 * mi/mi-common.c: Likewise.
3347 * microblaze-tdep.c: Likewise.
3348 * mingw-hdep.c: Likewise.
3349 * mips-linux-nat.c: Likewise.
3350 * mips-linux-tdep.c: Likewise.
3351 * mips-tdep.c: Likewise.
3352 * mips64obsd-tdep.c: Likewise.
3353 * mipsnbsd-tdep.c: Likewise.
3354 * mn10300-linux-tdep.c: Likewise.
3355 * mn10300-tdep.c: Likewise.
3356 * moxie-tdep.c: Likewise.
3357 * mt-tdep.c: Likewise.
3358 * nat/linux-btrace.c: Likewise.
3359 * nat/linux-osdata.c: Likewise.
3360 * nat/linux-ptrace.c: Likewise.
3361 * nat/mips-linux-watch.c: Likewise.
3362 * nios2-linux-tdep.c: Likewise.
3363 * nios2-tdep.c: Likewise.
3364 * objc-lang.c: Likewise.
3365 * objfiles.c: Likewise.
3366 * obsd-nat.c: Likewise.
3367 * opencl-lang.c: Likewise.
3368 * osabi.c: Likewise.
3369 * parse.c: Likewise.
3370 * ppc-linux-nat.c: Likewise.
3371 * ppc-sysv-tdep.c: Likewise.
3372 * ppcfbsd-nat.c: Likewise.
3373 * ppcfbsd-tdep.c: Likewise.
3374 * ppcnbsd-nat.c: Likewise.
3375 * ppcnbsd-tdep.c: Likewise.
3376 * ppcobsd-nat.c: Likewise.
3377 * ppcobsd-tdep.c: Likewise.
3378 * printcmd.c: Likewise.
3379 * procfs.c: Likewise.
3380 * prologue-value.c: Likewise.
3381 * psymtab.c: Likewise.
3382 * python/py-lazy-string.c: Likewise.
3383 * python/py-value.c: Likewise.
3384 * regcache.c: Likewise.
3385 * reggroups.c: Likewise.
3386 * registry.c: Likewise.
3387 * remote-sim.c: Likewise.
3388 * remote.c: Likewise.
3389 * rs6000-aix-tdep.c: Likewise.
3390 * rs6000-tdep.c: Likewise.
3391 * s390-linux-tdep.c: Likewise.
3392 * score-tdep.c: Likewise.
3393 * ser-base.c: Likewise.
3394 * ser-mingw.c: Likewise.
3395 * sh-tdep.c: Likewise.
3396 * sh64-tdep.c: Likewise.
3397 * solib-darwin.c: Likewise.
3398 * solib-spu.c: Likewise.
3399 * solib-svr4.c: Likewise.
3400 * source.c: Likewise.
3401 * sparc-nat.c: Likewise.
3402 * sparc-sol2-tdep.c: Likewise.
3403 * sparc-tdep.c: Likewise.
3404 * sparc64-sol2-tdep.c: Likewise.
3405 * sparc64-tdep.c: Likewise.
3406 * sparc64fbsd-tdep.c: Likewise.
3407 * sparc64nbsd-tdep.c: Likewise.
3408 * sparc64obsd-tdep.c: Likewise.
3409 * sparcnbsd-tdep.c: Likewise.
3410 * sparcobsd-tdep.c: Likewise.
3411 * spu-multiarch.c: Likewise.
3412 * spu-tdep.c: Likewise.
3413 * stabsread.c: Likewise.
3414 * stack.c: Likewise.
3415 * symfile.c: Likewise.
3416 * symtab.c: Likewise.
3417 * target-descriptions.c: Likewise.
3418 * target-memory.c: Likewise.
3419 * target.c: Likewise.
3420 * tic6x-linux-tdep.c: Likewise.
3421 * tic6x-tdep.c: Likewise.
3422 * tilegx-linux-nat.c: Likewise.
3423 * tilegx-tdep.c: Likewise.
3425 * tramp-frame.c: Likewise.
3426 * tui/tui-out.c: Likewise.
3427 * tui/tui-winsource.c: Likewise.
3428 * ui-out.c: Likewise.
3429 * user-regs.c: Likewise.
3430 * utils.c: Likewise.
3431 * v850-tdep.c: Likewise.
3432 * valops.c: Likewise.
3433 * value.c: Likewise.
3434 * varobj.c: Likewise.
3435 * vax-nat.c: Likewise.
3436 * xml-syscall.c: Likewise.
3437 * xml-tdesc.c: Likewise.
3438 * xstormy16-tdep.c: Likewise.
3439 * xtensa-linux-nat.c: Likewise.
3440 * xtensa-tdep.c: Likewise.
3442 2014-08-07 Gary Benson <gbenson@redhat.com>
3444 * common/common-defs.h: Include common-utils.h.
3445 * defs.h: Do not include common-utils.h.
3446 * common/gdb_assert.h: Likewise.
3447 * darwin-nat.h: Likewise.
3448 * nat/linux-btrace.c: Likewise.
3449 * target/waitstatus.h: Likewise.
3451 2014-08-07 Gary Benson <gbenson@redhat.com>
3453 * common/common-defs.h: Include ptid.h.
3454 * defs.h: Do not include ptid.h.
3455 * inferior.h: Likewise.
3456 * infrun.h: Likewise.
3457 * nat/linux-btrace.h: Likewise.
3458 * nat/linux-osdata.h: Likewise.
3459 * target/waitstatus.h: Likewise.
3461 2014-08-07 Gary Benson <gbenson@redhat.com>
3463 * common/common-defs.h: Include gdb_locale.h.
3464 * defs.h: Do not include gdb_locale.h.
3466 2014-08-07 Gary Benson <gbenson@redhat.com>
3468 * common/common-defs.h: Include gdb/signals.h.
3469 * defs.h: Do not include gdb/signals.h.
3471 2014-08-07 Gary Benson <gbenson@redhat.com>
3473 * common/common-defs.h: Include pathmax.h.
3474 * defs.h: Do not include pathmax.h.
3476 2014-08-07 Gary Benson <gbenson@redhat.com>
3478 * common/common-defs.h: Include libiberty.h.
3479 * defs.h: Do not include libiberty.h.
3480 * common/queue.h: Likewise.
3481 * cp-name-parser.y: Likewise.
3482 * mi/mi-cmd-catch.c: Likewise.
3483 * python/python.c: Likewise.
3485 2014-08-07 Gary Benson <gbenson@redhat.com>
3487 * common/common-defs.h: Include ansidecl.h.
3488 * defs.h: Do not include ansidecl.h.
3489 * common/buffer.h: Likewise.
3490 * common/common-utils.h: Likewise.
3492 2014-08-07 Gary Benson <gbenson@redhat.com>
3494 * common/common-defs.h: Include stddef.h.
3495 * defs.h: Do not include stddef.h.
3496 * common/common-utils.h: Likewise.
3497 * amd64fbsd-nat.c: Likewise.
3498 * bcache.c: Likewise.
3499 * charset.c: Likewise.
3500 * common/buffer.h: Likewise.
3501 * common/vec.h: Likewise.
3502 * i386bsd-nat.c: Likewise.
3503 * nat/linux-btrace.h: Likewise.
3504 * ppcfbsd-nat.c: Likewise.
3505 * ppcnbsd-tdep.h: Likewise.
3506 * ppcobsd-nat.c: Likewise.
3507 * ppcobsd-tdep.h: Likewise.
3508 * python/py-gdb-readline.c: Likewise.
3510 2014-08-07 Gary Benson <gbenson@redhat.com>
3512 * common/common-defs.h: Include stdarg.h.
3513 * defs.h: Do not include stdarg.h.
3514 * ada-lang.c: Likewise.
3515 * common/common-utils.h: Likewise.
3516 * guile/scm-string.c: Likewise.
3517 * guile/scm-utils.c: Likewise.
3518 * m32c-tdep.c: Likewise.
3520 2014-08-07 Gary Benson <gbenson@redhat.com>
3522 * common/common-defs.h: Include stdlib.h.
3523 * defs.h: Do not include stdlib.h.
3524 * addrmap.c: Likewise.
3525 * bcache.c: Likewise.
3526 * common/buffer.c: Likewise.
3527 * common/common-utils.c: Likewise.
3528 * cp-name-parser.y: Likewise.
3529 * go32-nat.c: Likewise.
3530 * mn10300-linux-tdep.c: Likewise.
3531 * nat/linux-osdata.c: Likewise.
3532 * tui/tui.c: Likewise.
3533 * windows-nat.c: Likewise.
3535 2014-08-07 Gary Benson <gbenson@redhat.com>
3537 * common/common-defs.h: Include stdio.h.
3538 * defs.h: Do not include stdio.h.
3539 * ada-lang.c: Likewise.
3540 * common/buffer.c: Likewise.
3541 * common/common-utils.c: Likewise.
3542 * cp-name-parser.y: Likewise.
3543 * gnu-nat.c: Likewise.
3544 * go32-nat.c: Likewise.
3545 * i386gnu-nat.c: Likewise.
3546 * proc-api.c: Likewise.
3547 * proc-events.c: Likewise.
3548 * proc-flags.c: Likewise.
3549 * proc-why.c: Likewise.
3550 * python/python-internal.h: Likewise.
3551 * target-memory.c: Likewise.
3552 * tui/tui-io.c: Likewise.
3553 * tui/tui.c: Likewise.
3555 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3557 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3558 (scan_dyntag_auxv): Same.
3560 2014-08-06 Yao Qi <yao@codesourcery.com>
3562 * amd64-linux-nat.c: Remove duplicated include
3564 * i386-linux-nat.c: Likewise.
3566 2014-08-06 Yao Qi <yao@codesourcery.com>
3568 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3569 operand" with "Special opcode" in comments.
3571 2014-08-05 Gary Benson <gbenson@redhat.com>
3573 * interps.c (initialize_interps): Remove prototype.
3574 (interpreter_initialized): Remove static global.
3575 (interp_add): Do not call initialize_interps.
3576 (initialize_interps): Remove function.
3578 2014-08-05 Gary Benson <gbenson@redhat.com>
3580 * utils.c (vwarning): Remove spurious va_end.
3582 2014-08-05 Alan Modra <amodra@gmail.com>
3584 * charset.c (convert_between_encodings): Cast result of obstack_base.
3585 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3586 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3587 (read_unwind_info): Use size_t for some locals.
3588 * jit.c (finalize_symtab): Likewise.
3589 * utils.c (hashtab_obstack_allocate): Likewise.
3590 * symmisc.c (print_objfile_statistics): Update format strings.
3592 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3594 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3595 (Changes in GDB 7.8): ... here.
3597 2014-08-04 Tom Tromey <tromey@redhat.com>
3599 * target.c (set_targetdebug): New function.
3600 (initialize_targets): Pass set_targetdebug when creating "set
3603 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3605 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3606 if detecting a variable-sized field that is not the last field.
3607 Fix struct type length computation.
3609 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3611 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3614 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3616 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3617 Remove "+ 8" offset in computation of CHAIN_VMA.
3619 2014-07-31 Doug Evans <dje@google.com>
3621 * inflow.c (child_terminal_inferior): Add comment.
3622 (child_terminal_ours_for_output): Add comment.
3623 (child_terminal_ours): Add comment.
3624 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3625 (linux_nat_terminal_ours): Add comment.
3627 2014-07-31 Gary Benson <gbenson@redhat.com>
3629 * common/btrace-common.h: Do not include defs.h or server.h.
3630 * nat/mips-linux-watch.h: Likewise.
3631 * gdb-dlfcn.h: Do not include defs.h.
3632 * tracefile.h: Likewise.
3634 2014-07-30 Roland McGrath <mcgrathr@google.com>
3636 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3638 2014-07-30 Tom Tromey <tromey@redhat.com>
3640 * bsd-kvm.c (bsd_kvm_open): Constify.
3641 * corelow.c (core_open): Constify.
3642 * ctf.c (ctf_open): Constify.
3643 * dbug-rom.c (dbug_open): Constify.
3644 * exec.c (exec_open): Constify.
3645 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3646 * microblaze-rom.c (picobug_open): Constify.
3647 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3649 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3650 * record-btrace.c (record_btrace_open): Constify.
3651 * record-full.c (record_full_core_open_1, record_full_open_1)
3652 (record_full_open): Constify.
3653 * remote-m32r-sdi.c (m32r_open): Constify.
3654 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3655 (rockhopper_open, lsi_open): Constify.
3656 * remote-sim.c (gdbsim_open): Constify.
3657 * remote.c (remote_open, extended_remote_open, remote_open_1):
3659 * target.h (struct target_ops) <to_open>: Make "arg" const.
3660 * tracefile-tfile.c (tfile_open): Constify.
3662 2014-07-30 Tom Tromey <tromey@redhat.com>
3664 * breakpoint.c (map_breakpoint_numbers): Update.
3665 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3666 (get_number_const): New function.
3667 (get_number): Rewrite using get_number_const.
3668 (init_number_or_range): Make "string" const.
3669 (number_is_in_list): Make "list" const.
3670 * cli/cli-utils.h (get_number_const): Declare.
3671 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3672 (init_number_or_range, number_is_in_list): Update.
3673 * printcmd.c (map_display_numbers): Update.
3674 * value.c (value_from_history_ref): Constify.
3675 * value.h (value_from_history_ref): Update.
3677 2014-07-30 Tom Tromey <tromey@redhat.com>
3679 * corefile.c (hook_type, call_extra_exec_file_hooks)
3680 (specify_exec_file_hook): Constify.
3681 * exec.c (exec_file_attach): Make "filename" const.
3682 * gdbcore.h (deprecated_exec_file_display_hook)
3683 (specify_exec_file_hook, exec_file_attach): Constify.
3684 * main.c (captured_main): Use catch_command_errors_const.
3686 2014-07-30 Tom Tromey <tromey@redhat.com>
3688 * target.c (open_target): New function.
3689 (add_target_with_completer, add_deprecated_target_alias): Use
3690 set_cmd_sfunc, set_cmd_context.
3691 (debug_to_open): Remove.
3692 (setup_target_debug): Update.
3694 2014-07-30 Yao Qi <yao@codesourcery.com>
3696 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3698 * parse.c (exp_iterate): Update comments.
3700 2014-07-30 Gary Benson <gbenson@redhat.com>
3702 * common/common-defs.h: New file.
3703 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3704 * defs.h: Include common-defs.h.
3705 Do not include config.h or build-gnulib/config.h.
3707 2014-07-30 Gary Benson <gbenson@redhat.com>
3709 * common/common-utils.h: Do not include config.h.
3710 * nat/linux-btrace.h: Likewise.
3712 2014-07-30 Gary Benson <gbenson@redhat.com>
3714 * btrace.c: Include defs.h.
3715 * common/ptid.c: Include defs.h or server.h as appropriate.
3716 * nat/mips-linux-watch.c: Likewise.
3718 2014-07-29 Tom Tromey <tromey@redhat.com>
3720 * target.c (target_is_pushed): Simplify.
3722 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3726 2014-07-29 Yao Qi <yao@codesourcery.com>
3729 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3731 2014-07-28 Doug Evans <xdje42@gmail.com>
3734 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3735 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3738 2014-07-28 Will Newton <will.newton@linaro.org>
3740 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3741 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3742 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3743 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3744 (THUMB2_EABI_SYSCALL): Likewise.
3745 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3747 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3748 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3750 2014-07-27 Doug Evans <xdje42@gmail.com>
3752 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3754 2014-07-27 Doug Evans <xdje42@gmail.com>
3756 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3758 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3759 Doug Evans <xdje42@gmail.com>
3762 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3763 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3764 * configure.ac: Try to use guild to compile an scm file, if it fails
3765 then disable guile support.
3766 * configure: Regenerate.
3767 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3769 (GUILE_COMPILED_FILES): New variable.
3770 (GUILE_FILES) Update.
3771 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3772 (stamp-guile): Compile scm files.
3773 * guile/guile.c (boot_guile_support): New function.
3774 (standard_throw_args_p): New function.
3775 (print_standard_throw_error, print_throw_error): New functions.
3776 (handle_boot_error): New function.
3777 (initialize_scheme_side): Rewrite to call boot_guile_support.
3778 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3779 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3781 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3782 Doug Evans <xdje42@gmail.com>
3785 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3786 * guile/lib/gdb/support.scm: New file.
3787 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3788 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3790 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3792 (%assert-type): Ditto, and renamed to assert-type.
3793 (%exception-print-style): Delete.
3795 2014-07-26 Doug Evans <xdje42@gmail.com>
3798 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3799 * configure: Regenerate.
3800 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3802 (PYTHON_FILES): New variable.
3803 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3804 (GUILE_FILES): New variable.
3805 (stamp-python, install-python, uninstall-python): Handle empty
3807 (stamp-guile, install-guile, uninstall-guile): Ditto.
3809 2014-07-26 Doug Evans <xdje42@gmail.com>
3812 * guile/lib/gdb.scm (pretty-printers): Export.
3813 (set-pretty-printers!): Export.
3814 * guile/lib/gdb/printing.scm (gdb module): Update.
3815 (prepend-pretty-printer!, append-pretty-printer!): Update.
3816 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3817 (pretty_printer_list_var): Delete.
3818 (pretty_printer_list): New static global.
3819 (gdbscm_pretty_printers): New function.
3820 (gdbscm_set_pretty_printers_x): New function.
3821 (ppscm_find_pretty_printer_from_gdb): Update.
3822 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3823 (gdbscm_initialize_pretty_printers): Update.
3825 2014-07-26 Doug Evans <xdje42@gmail.com>
3828 * configure.ac: Add check for header gc/gc.h.
3829 Add check for function setenv.
3830 * configure: Regenerate.
3831 * config.in: Regenerate.
3832 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3834 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3836 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3837 variation in gdbarch matching.
3839 2014-07-25 Tom Tromey <tromey@redhat.com>
3841 * exec.c (using_exec_ops): Remove.
3842 (exec_close_1): Update. Remove extraneous block, reindent.
3843 (add_target_sections): Use target_is_pushed.
3845 2014-07-25 Pedro Alves <palves@redhat.com>
3847 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3848 * monitor.c (monitor_create_inferior): Likewise.
3849 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3850 * remote-sim.c (gdbsim_create_inferior): Likewise.
3851 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3852 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3853 * windows-nat.c (do_initial_windows_stuff): Likewise.
3855 2014-07-25 Pedro Alves <palves@redhat.com>
3857 * NEWS: Mention signal passing and "signal" command changes.
3858 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3860 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3862 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3863 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3864 (jump_command): Adjust clear_proceed_status call.
3865 (signal_command): Warn if other thread that are resumed have
3866 signals that will be delivered. Adjust clear_proceed_status call.
3867 (until_next_command, finish_command)
3868 (proceed_after_attach_callback, attach_command_post_wait)
3869 (attach_command): Adjust clear_proceed_status call.
3870 * infrun.c (proceed_after_vfork_done): Likewise.
3871 (proceed_after_attach_callback): Adjust comment.
3872 (clear_proceed_status_thread): Clear stop_signal if not in pass
3874 (clear_proceed_status_callback): Delete.
3875 (clear_proceed_status): New 'step' parameter. Only clear the
3876 proceed status of threads the command being prepared is about to
3878 (proceed): If passed in an explicit signal, override stop_signal
3879 with it. Don't pass the last stop signal to the thread we're
3881 (init_wait_for_inferior): Adjust clear_proceed_status call.
3882 (switch_back_to_stepped_thread): Clear the signal if it should not
3884 * infrun.h (clear_proceed_status): New 'step' parameter.
3885 (user_visible_resume_ptid): Add comment.
3886 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3887 signal is in pass state.
3888 * remote.c (append_pending_thread_resumptions): Likewise.
3889 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3891 2014-07-25 Tom Tromey <tromey@redhat.com>
3893 * target.h (target_stopped_data_address)
3894 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3897 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3899 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3901 (avr_pointer_to_address): Likewise.
3903 2014-07-24 Tom Tromey <tromey@redhat.com>
3905 * monitor.c (compile_pattern): Update.
3906 * target.h (struct target_ops) <to_shortname, to_longname,
3909 2014-07-24 Tom Tromey <tromey@redhat.com>
3911 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3912 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3913 (add_info_alias, add_com): Make "doc" const.
3914 (print_doc_line): Make "str" const.
3915 (delete_cmd): Update.
3916 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3917 (print_doc_line): Update.
3918 * cli/cli-script.c (document_command): Update.
3919 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3920 (add_com, add_info, add_info_alias): Update.
3921 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3922 * python/py-cmd.c (cmdpy_destroyer): Update.
3924 2014-07-24 Tom Tromey <tromey@redhat.com>
3926 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3927 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3928 (help_cmd_list): Constify.
3929 (lookup_cmd): Update.
3930 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3932 (help_cmd_list, apropos_cmd): Update.
3933 * cli/cli-script.c (show_user): Update.
3934 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3935 * cli/cli-setshow.h (cmd_show_list): Update.
3936 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3937 (cmd_show_list): Update.
3938 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3939 * python/py-cmd.c (cmdpy_destroyer): Update.
3941 2014-07-24 Tom Tromey <tromey@redhat.com>
3943 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3944 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3946 * command.h (deprecate_cmd): Update.
3947 * maint.c (maintenance_do_deprecate): Add casts.
3949 2014-07-24 Tom Tromey <tromey@redhat.com>
3951 * cli/cli-decode.c (help_cmd): Make parameter "const".
3952 * cli/cli-decode.h (help_cmd): Update.
3954 2014-07-24 Tom Tromey <tromey@redhat.com>
3956 * stack.c (up_silently_base, down_silently_base): Make argument
3959 2014-07-24 Tom Tromey <tromey@redhat.com>
3961 * solib.c (solib_add): Make "pattern" const.
3962 * solib.h (solib_add): Update.
3964 2014-07-24 Tom Tromey <tromey@redhat.com>
3966 * remote.c (remote_serial_open, print_packet, putpkt)
3967 (putpkt_binary): Constify.
3968 * remote.h (putpkt): Update.
3970 2014-07-24 Tom Tromey <tromey@redhat.com>
3972 * monitor.c (monitor_open): Make "args" const.
3973 * monitor.h (monitor_open): Update.
3975 2014-07-24 Tom Tromey <tromey@redhat.com>
3977 * maint.c (match_bfd_flags): Make "string" const.
3978 (print_bfd_section_info): Remove casts.
3979 (print_objfile_section_info): Make "string" const.
3981 2014-07-24 Tom Tromey <tromey@redhat.com>
3983 * inf-child.c (inf_child_open_target): Make "arg" const.
3984 * inf-child.h (inf_child_open_target): Update.
3986 2014-07-24 Tom Tromey <tromey@redhat.com>
3988 * environ.c (unset_in_environ): Make "var" const.
3989 * environ.h (unset_in_environ): Update.
3991 2014-07-24 Tom Tromey <tromey@redhat.com>
3993 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3995 (scan_filename_with_cleanup): Likewise.
3996 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3997 Make arguments const.
3998 (restore_command): Update.
4000 2014-07-24 Pedro Alves <palves@redhat.com>
4002 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4004 2014-07-24 Tom Tromey <tromey@redhat.com>
4005 Gary Benson <gbenson@redhat.com>
4007 * nat/linux-ptrace.c (additional_flags): New global.
4008 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4009 additional_flags; don't check GDBSERVER.
4010 (linux_ptrace_set_additional_flags): New function.
4011 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4013 * linux-nat.c (_initialize_linux_nat): Call
4014 linux_ptrace_set_additional_flags.
4016 2014-07-24 Tom Tromey <tromey@redhat.com>
4018 * make-target-delegates (munge_type, write_debugmethod): New
4020 (debug_names): New global.
4021 ($TARGET_DEBUG_PRINTER): New global.
4022 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4024 Write debug methods. Generate init_debug_target.
4025 * target-debug.h: New file.
4026 * target-delegates.c: Rebuild.
4027 * target.c: Include target-debug.h.
4028 (debug_target): Hoist definition.
4029 (target_kill, target_get_section_table, target_memory_map)
4030 (target_flash_erase, target_flash_done, target_detach)
4031 (target_disconnect, target_wait, target_resume)
4032 (target_pass_signals, target_program_signals, target_follow_fork)
4033 (target_mourn_inferior, target_search_memory)
4034 (target_thread_address_space, target_close)
4035 (target_find_new_threads, target_core_of_thread)
4036 (target_verify_memory, target_insert_mask_watchpoint)
4037 (target_remove_mask_watchpoint): Remove targetdebug code.
4038 (debug_to_post_attach, debug_to_prepare_to_store)
4039 (debug_to_files_info, debug_to_insert_breakpoint)
4040 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4041 (debug_to_region_ok_for_hw_watchpoint)
4042 (debug_to_can_accel_watchpoint_condition)
4043 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4044 (debug_to_watchpoint_addr_within_range)
4045 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4046 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4047 (debug_to_terminal_init, debug_to_terminal_inferior)
4048 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4049 (debug_to_terminal_save_ours, debug_to_terminal_info)
4050 (debug_to_load, debug_to_post_startup_inferior)
4051 (debug_to_insert_fork_catchpoint)
4052 (debug_to_remove_fork_catchpoint)
4053 (debug_to_insert_vfork_catchpoint)
4054 (debug_to_remove_vfork_catchpoint)
4055 (debug_to_insert_exec_catchpoint)
4056 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4057 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4058 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4059 (setup_target_debug): Call init_debug_target.
4060 * target.h (TARGET_DEBUG_PRINTER): New macro.
4061 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4062 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4064 2014-07-24 Gary Benson <gbenson@redhat.com>
4066 * exceptions.h (throw_vfatal): Renamed to...
4067 (throw_vquit): New declaration.
4068 (throw_quit): Likewise.
4069 * exceptions.c (throw_vfatal): Renamed to...
4070 (throw_vquit): New function.
4071 (throw_quit): Likewise.
4072 (throw_error): Call throw_verror rather than throw_it.
4073 * utils.h (vfatal): Removed.
4075 * utils.c (vfatal): Removed.
4077 (internal_verror): Replaced call to fatal with call to throw_quit.
4078 (quit): Replaced calls to fatal with calls to throw_quit.
4080 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4082 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4085 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4087 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4088 less than zero in conditional expression.
4090 2014-07-23 Tom Tromey <tromey@redhat.com>
4092 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4093 ($INTRO_PART): Don't match whitespace.
4094 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4096 ($METHOD): Add $METHOD_TRAILER.
4098 (scan_target_h): New sub.
4099 Change main loop not to collect state.
4100 * target-delegates.c: Rebuild.
4102 2014-07-23 Gary Benson <gbenson@redhat.com>
4104 * cp-support.c (gdb_demangle): Fix build on systems without
4107 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4109 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4110 for reference entry value target data value.
4112 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4114 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4115 value_available_contents_eq.
4117 2014-07-22 Pedro Alves <palves@redhat.com>
4119 * value.c (allocate_optimized_out_value): Don't mark value as
4122 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4124 * MAINTAINERS (Write After Approval): Update my email address.
4126 2014-07-20 Doug Evans <dje@google.com>
4129 * remote.c (putpkt_binary): Add text to error message.
4131 2014-07-20 Yao Qi <yao@codesourcery.com>
4133 * eval.c: Remove "Chill" from comments.
4134 * gdbtypes.h: Likewise.
4135 * symtab.h: Likewise.
4137 2014-07-20 Yao Qi <yao@codesourcery.com>
4139 * std-operator.def: Update comments to TERNOP_SLICE.
4141 2014-07-20 Yao Qi <yao@codesourcery.com>
4143 * std-operator.def: Remove BINOP_RANGE.
4144 * breakpoint.c (watchpoint_exp_is_const): Update.
4145 * expprint.c (dump_subexp_body_standard): Likewise.
4146 * eval.c (init_array_element): Remove dead code.
4147 (evaluate_subexp_standard): Likewise.
4149 2014-07-20 Yao Qi <yao@codesourcery.com>
4151 * std-operator.def: Remove BINOP_IN.
4152 * breakpoint.c (watchpoint_exp_is_const): Update.
4153 * eval.c (evaluate_subexp_standard): Likewise.
4154 * expprint.c (dump_subexp_body_standard): Likewise.
4156 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4158 * microblaze-tdep.c (microblaze_register_names): Add
4159 the rshr and rslr register names.
4160 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4161 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4162 Use of tdesc_numbered_register. Use of
4163 microblaze_register_g_packet_guesses. Use of
4164 tdesc_use_registers. Use of set_gdbarch_register_type.
4165 (microblaze_register_g_packet_guesses): New.
4166 * microblaze-tdep.h (microblaze_reg_num): Add
4167 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4168 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4169 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4170 * features/microblaze-core.xml: New file.
4171 * features/microblaze-stack-protect.xml: New file.
4172 * features/microblaze-with-stack-protect.c: New file.
4173 * features/microblaze-with-stack-protect.xml: New file.
4174 * features/microblaze.xml: New file.
4175 * features/microblaze.c: New file.
4176 * features/Makefile (microblaze-with-stack-protect): Add
4177 microblaze-with-stack-protect microblaze and microblaze-expedite.
4178 * regformats/microblaze-with-stack-protect.dat: New file.
4179 * regformats/microblaze.dat: New file.
4180 * doc/gdb.texinfo (MicroBlaze Features): Added.
4182 2014-07-18 Tom Tromey <tromey@redhat.com>
4184 * exec.c (exec_ops): Now static.
4185 * exec.h (exec_ops): Don't declare.
4187 2014-07-18 Tom Tromey <tromey@redhat.com>
4189 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4190 to find_target_beneath.
4191 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4192 find_target_beneath.
4193 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4195 2014-07-18 Tom Tromey <tromey@redhat.com>
4198 * utils.c (quit): Use target_supports_terminal_ours.
4199 * target.h (target_supports_terminal_ours): Declare.
4200 * target.c (target_supports_delete_record): Don't check
4201 to_delete_record against NULL.
4202 (target_supports_terminal_ours): New function.
4204 2014-07-18 Tom Tromey <tromey@redhat.com>
4207 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4208 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4209 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4210 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4211 * windows-nat.c (windows_xfer_partial): Always delegate.
4212 * record-btrace.c (record_btrace_xfer_partial): Simplify
4214 (record_btrace_fetch_registers, record_btrace_store_registers)
4215 (record_btrace_prepare_to_store, record_btrace_resume)
4216 (record_btrace_wait, record_btrace_find_new_threads)
4217 (record_btrace_thread_alive): Likewise.
4218 * procfs.c (procfs_xfer_partial): Always delegate.
4219 * corelow.c (core_xfer_partial): Always delegate.
4220 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4222 2014-07-18 Tom Tromey <tromey@redhat.com>
4224 * exec.c (exec_make_note_section): Move earlier.
4226 2014-07-17 Doug Evans <dje@google.com>
4229 * maint.c (count_symtabs_and_blocks): Handle NULL
4230 current_program_space.
4231 (report_command_stats): Check global enabled flag in addition to
4232 recorded enabled flag.
4233 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4235 2014-07-16 Pedro Alves <palves@redhat.com>
4237 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4239 2014-07-16 Tom Tromey <tromey@redhat.com>
4241 * target.h (struct target_ops) <to_delete_record>: Reformat
4244 2014-07-16 Tom Tromey <tromey@redhat.com>
4246 * target-delegates.c: Rebuild.
4248 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4250 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4251 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4252 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4253 (avr_pointer_to_address): Likewise.
4254 (avr_address_class_type_flags): New function.
4255 (avr_address_class_type_flags_to_name): Likewise.
4256 (avr_address_class_name_to_type_flags): Likewise.
4257 (avr_gdbarch_init): Set address_class_type_flags,
4258 address_class_type_flags_to_name and
4259 address_class_name_to_type_flags.
4261 2014-07-15 Pedro Alves <palves@redhat.com>
4263 * linux-nat.c (kill_callback): Save errno and work with saved
4266 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4268 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4270 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4272 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4273 breakpoint support correctly.
4275 2014-07-14 Pedro Alves <palves@redhat.com>
4277 * utils.c (prompt_for_continue): Call target_terminal_ours.
4279 2014-07-14 Pedro Alves <palves@redhat.com>
4281 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4282 catch_errors. Don't re-enable stdin or notify observers where,
4284 (fetch_inferior_event_wrapper): Delete.
4286 2014-07-14 Pedro Alves <palves@redhat.com>
4289 * top.c: Include "inf-loop.h".
4290 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4292 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4294 (gdb_readline_wrapper): Store whether the target is async, and
4297 2014-07-14 Pedro Alves <palves@redhat.com>
4300 * top.c (gdb_readline_wrapper_line): Tweak comment.
4301 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4302 the input handler callback.
4304 2014-07-14 Pedro Alves <palves@redhat.com>
4307 * main.c: Include event-top.h.
4308 (handle_command_errors): New function.
4309 (catch_command_errors, catch_command_errors_const): Use it.
4311 2014-07-14 Pedro Alves <palves@redhat.com>
4313 * exceptions.c (catch_command_errors, catch_command_errors_const):
4315 * exceptions.h (catch_command_errors_ftype)
4316 (catch_command_errors_const_ftype): Moved to main.c.
4317 (catch_command_errors, catch_command_errors_const): Delete
4319 * main.c (catch_command_errors_ftype)
4320 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4321 (catch_command_errors, catch_command_errors_const)): Moved here
4322 from exceptions.c and make static.
4324 2014-07-14 Pedro Alves <palves@redhat.com>
4326 * exceptions.c (print_any_exception): Delete.
4327 (catch_exceptions_with_msg): Use exception_print instead of
4328 print_any_exception.
4329 (catch_errors): Use exception_fprintf instead of
4330 print_any_exception.
4331 (catch_command_errors, catch_command_errors_const): Use
4332 exception_print instead of print_any_exception.
4334 2014-07-14 Pedro Alves <palves@redhat.com>
4336 * infcall.c (run_inferior_call): Set 'sync_execution' while
4337 running the inferior call.
4339 2014-07-14 Pedro Alves <palves@redhat.com>
4341 * value.c (value_contents_equal): Delete function.
4342 * value.h (value_contents_equal): Delete declaration.
4344 2014-07-14 Tom Tromey <tromey@redhat.com>
4347 * gdbtypes.c (is_dynamic_type_internal): New function, from
4349 (is_dynamic_type): Rewrite.
4350 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4351 (resolve_dynamic_struct): Likewise.
4352 (resolve_dynamic_type_internal): New function, from
4353 resolve_dynamic_type.
4354 (resolve_dynamic_type): Rewrite.
4356 2014-07-14 Tom Tromey <tromey@redhat.com>
4358 * target.c (target_require_runnable): Also check record_stratum.
4361 2014-07-11 Yao Qi <yao@codesourcery.com>
4363 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4364 thumb_instruction_restores_sp return true.
4366 2014-07-11 Yao Qi <yao@codesourcery.com>
4368 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4369 (thumb_in_function_epilogue_p): Call
4370 thumb_instruction_restores_sp.
4372 2014-07-11 Yao Qi <yao@codesourcery.com>
4374 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4376 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4378 2014-07-11 Gary Benson <gbenson@redhat.com>
4380 * amd64-linux-nat.c (gdbcore.h): Remove include.
4381 (regset.h): Likewise.
4382 (nat/linux-btrace.h): Likewise.
4383 (btrace.h): Likewise.
4384 (gdb_assert.h): Likewise.
4385 (string.h): Likewise.
4386 (sys/uio.h): Likewise.
4387 (sys/debugreg.h): Likewise.
4388 (sys/syscall.h): Likewise.
4389 (sys/procfs.h): Likewise.
4390 (sys/user.h): Likewise.
4391 (asm/ptrace.h): Likewise.
4392 (i386-nat.h): Likewise.
4393 * i386-linux-nat.c (i386-nat.h): Likewise.
4394 (regset.h): Likewise.
4395 (target.h): Likewise.
4396 (linux-nat.h): Likewise.
4397 (nat/linux-btrace.h): Likewise.
4398 (btrace.h): Likewise.
4399 (gdb_assert.h): Likewise.
4400 (string.h): Likewise.
4401 (sys/uio.h): Likewise.
4402 (sys/user.h): Likewise.
4403 (sys/procfs.h): Likewise.
4404 (sys/reg.h): Likewise.
4405 (sys/debugreg.h): Likewise.
4406 (ORIG_EAX): Remove definition.
4408 2014-07-11 Gary Benson <gbenson@redhat.com>
4410 * i386-linux-nat.h: New file.
4411 * x86-linux-nat.h: Likewise.
4412 * x86-linux-nat.c: Likewise.
4413 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4414 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4415 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4416 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4417 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4418 (PTRACE_SETREGSET): Likewise.
4419 (arch_lwp_info): Now in x86-linux-nat.c.
4420 (have_ptrace_getregset): Now in x86-linux-nat.h.
4421 (x86_linux_dr_get): Now in x86-linux-nat.c.
4422 (x86_linux_dr_set): Likewise.
4423 (x86_linux_dr_get_addr): Likewise.
4424 (x86_linux_dr_get_control): Likewise.
4425 (x86_linux_dr_get_status): Likewise.
4426 (update_debug_registers_callback): Likewise.
4427 (x86_linux_dr_set_control): Likewise.
4428 (x86_linux_dr_set_addr): Likewise.
4429 (x86_linux_prepare_to_resume): Likewise.
4430 (x86_linux_new_thread): Likewise.
4431 (x86_linux_new_fork): Likewise.
4432 (x86_linux_get_thread_area): Likewise.
4433 (super_post_startup_inferior): Likewise.
4434 (x86_linux_child_post_startup_inferior): Likewise.
4435 (AMD64_LINUX_USER64_CS): Likewise.
4436 (AMD64_LINUX_X32_DS): Likewise.
4437 (x86_linux_read_description): Likewise.
4438 (x86_linux_enable_btrace): Likewise.
4439 (x86_linux_disable_btrace): Likewise.
4440 (x86_linux_teardown_btrace): Likewise.
4441 (x86_linux_read_btrace): Likewise.
4442 (x86_linux_create_target): Likewise.
4443 (x86_linux_add_target): Likewise.
4444 * i386-linux-nat.c (x86-linux-nat.h): New include.
4445 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4446 (PTRACE_SETREGSET): Likewise.
4447 (arch_lwp_info): Now in x86-linux-nat.c.
4448 (have_ptrace_getregset): Now in x86-linux-nat.h.
4449 (x86_linux_dr_get): Now in x86-linux-nat.c.
4450 (x86_linux_dr_set): Likewise.
4451 (x86_linux_dr_get_addr): Likewise.
4452 (x86_linux_dr_get_control): Likewise.
4453 (x86_linux_dr_get_status): Likewise.
4454 (update_debug_registers_callback): Likewise.
4455 (x86_linux_dr_set_control): Likewise.
4456 (x86_linux_dr_set_addr): Likewise.
4457 (x86_linux_prepare_to_resume): Likewise.
4458 (x86_linux_new_thread): Likewise.
4459 (x86_linux_new_fork): Likewise.
4460 (x86_linux_get_thread_area): Likewise.
4461 (super_post_startup_inferior): Likewise.
4462 (x86_linux_child_post_startup_inferior): Likewise.
4463 (AMD64_LINUX_USER64_CS): Likewise.
4464 (AMD64_LINUX_X32_DS): Likewise.
4465 (x86_linux_read_description): Likewise.
4466 (x86_linux_enable_btrace): Likewise.
4467 (x86_linux_disable_btrace): Likewise.
4468 (x86_linux_teardown_btrace): Likewise.
4469 (x86_linux_read_btrace): Likewise.
4470 (x86_linux_create_target): Likewise.
4471 (x86_linux_add_target): Likewise.
4473 2014-07-11 Gary Benson <gbenson@redhat.com>
4475 * amd64-linux-nat.c: Comment and whitespace changes.
4476 * i386-linux-nat.c: Comment and whitespace changes.
4478 2014-07-11 Gary Benson <gbenson@redhat.com>
4480 * amd64-linux-nat.c (x86_linux_create_target): New function.
4481 (x86_linux_add_target): Likewise.
4482 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4483 * i386-linux-nat.c (x86_linux_create_target): New function.
4484 (x86_linux_add_target): Likewise.
4485 (_initialize_i386_linux_nat): Delegate to the above new functions.
4487 2014-07-11 Gary Benson <gbenson@redhat.com>
4489 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4490 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4491 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4492 (ps_get_thread_area): Delegate to the above.
4494 2014-07-11 Gary Benson <gbenson@redhat.com>
4496 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4497 x86_linux_read_description. All uses updated. amd64-specific
4498 code conditionalized. Conditionalized i386-specific code added.
4499 Redundant cast removed.
4500 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4501 x86_linux_read_description. All uses updated. i386-specific
4502 code conditionalized. Conditionalized amd64-specific code added.
4503 One sizeof replaced with the actual type it is describing.
4505 2014-07-11 Gary Benson <gbenson@redhat.com>
4507 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4508 x86_linux_dr_get. All uses updated.
4509 (amd64_linux_dr_set): Renamed to
4510 x86_linux_dr_set. All uses updated.
4511 (amd64_linux_dr_get_addr): Renamed to
4512 x86_linux_dr_get_addr. All uses updated.
4513 (amd64_linux_dr_get_control): Renamed to
4514 x86_linux_dr_get_control. All uses updated.
4515 (amd64_linux_dr_get_status): Renamed to
4516 x86_linux_dr_get_status. All uses updated.
4517 (amd64_linux_dr_set_control): Renamed to
4518 x86_linux_dr_set_control. All uses updated.
4519 (amd64_linux_dr_set_addr): Renamed to
4520 x86_linux_dr_set_addr. All uses updated.
4521 (amd64_linux_prepare_to_resume): Renamed to
4522 x86_linux_prepare_to_resume. All uses updated.
4523 (amd64_linux_new_thread): Renamed to
4524 x86_linux_new_thread. All uses updated.
4525 (amd64_linux_new_fork): Renamed to
4526 x86_linux_new_fork. All uses updated.
4527 (amd64_linux_child_post_startup_inferior): Renamed to
4528 x86_linux_child_post_startup_inferior. All uses updated.
4529 (amd64_linux_enable_btrace): Renamed to
4530 x86_linux_enable_btrace. All uses updated.
4531 (amd64_linux_disable_btrace): Renamed to
4532 x86_linux_disable_btrace. All uses updated.
4533 (amd64_linux_teardown_btrace): Renamed to
4534 x86_linux_teardown_btrace. All uses updated.
4535 (amd64_linux_read_btrace): Renamed to
4536 x86_linux_read_btrace. All uses updated.
4537 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4538 x86_linux_dr_get. All uses updated.
4539 (i386_linux_dr_set): Renamed to
4540 x86_linux_dr_set. All uses updated.
4541 (i386_linux_dr_get_addr): Renamed to
4542 x86_linux_dr_get_addr. All uses updated.
4543 (i386_linux_dr_get_control): Renamed to
4544 x86_linux_dr_get_control. All uses updated.
4545 (i386_linux_dr_get_status): Renamed to
4546 x86_linux_dr_get_status. All uses updated.
4547 (i386_linux_dr_set_control): Renamed to
4548 x86_linux_dr_set_control. All uses updated.
4549 (i386_linux_dr_set_addr): Renamed to
4550 x86_linux_dr_set_addr. All uses updated.
4551 (i386_linux_prepare_to_resume): Renamed to
4552 x86_linux_prepare_to_resume. All uses updated.
4553 (i386_linux_new_thread): Renamed to
4554 x86_linux_new_thread. All uses updated.
4555 (i386_linux_new_fork): Renamed to
4556 x86_linux_new_fork. All uses updated.
4557 (i386_linux_child_post_startup_inferior): Renamed to
4558 x86_linux_child_post_startup_inferior. All uses updated.
4559 (i386_linux_enable_btrace): Renamed to
4560 x86_linux_enable_btrace. All uses updated.
4561 (i386_linux_disable_btrace): Renamed to
4562 x86_linux_disable_btrace. All uses updated.
4563 (i386_linux_teardown_btrace): Renamed to
4564 x86_linux_teardown_btrace. All uses updated.
4565 (i386_linux_read_btrace): Renamed to
4566 x86_linux_read_btrace. All uses updated.
4568 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4570 * remote.c (extended_remote_post_attach): New function.
4571 (init_extended_remote_ops): Install it as to_post_attach method.
4573 2014-07-09 Pedro Alves <palves@redhat.com>
4575 * infcmd.c (attach_command_post_wait): Don't call
4576 target_terminal_inferior here.
4577 (attach_command): Call it here instead.
4579 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4581 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4583 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4584 from varobj.c, with additional checks.
4585 (c_varobj_ops): Fill in is_path_expr_parent field.
4586 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4587 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4589 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4591 (varobj_default_is_path_expr_parent): New function.
4592 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4593 (varobj_default_is_path_expr_parent): Declare new function.
4595 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4597 * infcmd.c (finish_backward): Turn internal error into normal error.
4599 2014-07-07 Pedro Alves <palves@redhat.com>
4602 * remote.c (async_handle_remote_sigint)
4603 (async_handle_remote_sigint_twice): Call
4604 gdb_call_async_signal_handler instead of
4605 mark_async_signal_handler.
4607 2014-07-07 Tom Tromey <tromey@redhat.com>
4609 * target-delegates.c: Rebuild.
4610 * target.c (target_info_record): Remove.
4611 * record.c (info_record_command): Unconditionally call
4613 * target.h (struct target_ops) <to_info_record>: Use
4614 TARGET_DEFAULT_IGNORE.
4615 (target_info_record): Remove.
4617 2014-07-07 Tom Tromey <tromey@redhat.com>
4619 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4620 TARGET_DEFAULT_NORETURN.
4621 * target.c (generic_tls_error): New function.
4622 (target_translate_tls_address): Don't search target stack.
4623 * target-delegates.c: Rebuild.
4624 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4626 * linux-thread-db.c (thread_db_get_thread_local_address):
4627 Unconditionally call beneath target.
4629 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4631 * cli/cli-logging.c (pop_output_files): Assign targerr to
4634 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4636 * MAINTAINERS (Write After Approval): Update my email address.
4638 2014-07-02 Gary Benson <gbenson@redhat.com>
4640 * proc-service.c (ps_xfer_memory): Update comment.
4641 (ps_pstop): Remove unused function.
4642 (ps_pcontinue): Likewise.
4643 (ps_lstop): Likewise.
4644 (ps_lcontinue): Likewise.
4645 (ps_lgetxregsize): Likewise.
4646 (ps_lgetxregs): Likewise.
4647 (ps_lsetxregs): Likewise.
4648 (ps_plog): Likewise.
4649 (ps_ptread): Likewise.
4650 (ps_ptwrite): Likewise.
4652 2014-07-01 Mark Wielaard <mjw@redhat.com>
4654 * dwarf2read.c (add_array_cv_type): New function.
4655 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4656 (read_tag_volatile_type): Likewise.
4658 2014-07-01 Tom Tromey <tromey@redhat.com>
4660 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4661 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4662 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4663 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4664 * command.h (cmd_cfunc_ftype): Move earlier.
4665 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4666 (add_com, add_info): Use cmd_cfunc_ftype.
4668 2014-06-30 Tom Tromey <tromey@redhat.com>
4670 * symtab.c (operator_chars): Make parameters and return type
4672 (file_matches): Make "files" const.
4673 (struct search_symbols_data) <files>: Now const.
4674 (search_symbols): Make "regexp" and "files" parameters const.
4676 (symtab_symbol_info): Remove cast.
4677 (rbreak_command): Update.
4678 * symtab.h (search_symbols): Update.
4680 2014-06-27 Yao Qi <yao@codesourcery.com>
4682 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4683 Change parameter type to 'struct thread_info *'. Caller
4685 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4687 * dummy-frame.c (struct dummy_frame_id): New.
4688 (dummy_frame_id_eq): New function.
4689 (struct dummy_frame) <id>: Change its type to 'struct
4691 (dummy_frame_push): Add parameter ptid and save it in
4693 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4695 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4697 (lookup_dummy_frame): Change parameter type to 'struct
4698 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4699 instead of frame_id_eq.
4700 (dummy_frame_pop): Add parameter ptid. Callers updated.
4701 Update comments. Compose dummy_frame_id and pass it to
4703 (dummy_frame_discard): Add parameter ptid.
4704 (dummy_frame_sniffer): Compose dummy_frame_id and call
4705 dummy_frame_id_eq instead of frame_id_eq.
4706 (fprint_dummy_frames): Print ptid.
4707 * dummy-frame.h: Remove comments.
4708 (dummy_frame_push): Add ptid in declaration.
4709 (dummy_frame_pop, dummy_frame_discard): Likewise.
4711 2014-06-26 Tom Tromey <tromey@redhat.com>
4713 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4714 * command.h (error_no_arg): Update.
4716 2014-06-26 Tom Tromey <tromey@redhat.com>
4718 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4719 (do_show_command): Make "arg" const.
4720 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4722 2014-06-26 Tom Tromey <tromey@redhat.com>
4724 * record-full.c (record_full_get_bookmark): Make "args" const.
4725 (record_full_goto_bookmark): Make "raw_bookmark" const.
4726 * record.c (record_goto): New function.
4727 (cmd_record_goto): Use it. Now static.
4728 * record.h (record_goto): Declare.
4729 (cmd_record_goto): Remove declaration.
4730 * target-delegates.c: Rebuild.
4731 * target.h (struct target_ops) <to_get_bookmark,
4732 to_goto_bookmark>: Make parameter const.
4734 2014-06-26 Tom Tromey <tromey@redhat.com>
4736 * defs.h (generic_load): Update.
4737 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4738 * monitor.c (monitor_load): Make "args" const.
4739 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4740 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4742 (mips_load): Make "file" const.
4743 * remote-sim.c (gdbsim_load): Make "args" const.
4744 * remote.c (remote_load): Make "name" const.
4745 * symfile.c (generic_load): Make "args" const.
4746 * target-delegates.c: Rebuild.
4747 * target.c (target_load): Make "arg" const.
4748 (debug_to_load): Make "args" const.
4749 * target.h (struct target_ops) <to_load>: Make parameter const.
4750 (target_load): Update.
4752 2014-06-26 Tom Tromey <tromey@redhat.com>
4755 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4756 (dwarf2_physname, read_partial_die)
4757 (guess_partial_die_structure_name, fixup_partial_die)
4758 (guess_full_die_structure_name, anonymous_struct_prefix)
4759 (dwarf2_name): Use per-BFD obstack.
4761 2014-06-26 Yao Qi <yao@codesourcery.com>
4763 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4764 dummyframe and this_id into inner block below.
4766 2014-06-26 Yao Qi <yao@codesourcery.com>
4768 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4769 with "signal_pass[0]" in the initialization of signal_pass.
4771 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4773 * record-btrace.c (record_btrace_generating_corefile)
4774 (record_btrace_prepare_to_generate_core)
4775 (record_btrace_done_generating_core): New.
4776 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4777 (record_btrace_store_registers, record_btrace_prepare_to_store):
4778 Forward request when generating a core file.
4779 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4780 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4781 to_done_generating_core.
4783 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4785 * target.h (target_ops) <to_prepare_to_generate_core>
4786 <to_done_generating_core>: New.
4787 (target_prepare_to_generate_core, target_done_generating_core): New.
4788 * target.c (target_prepare_to_generate_core)
4789 (target_done_generating_core): New.
4790 * target-delegates.c: Regenerate.
4791 * gcore.c: (write_gcore_file): Rename to ...
4792 (write_gcore_file_1): ...this.
4793 (write_gcore_file): Call target_prepare_to_generate_core
4794 and target_done_generating_core.
4796 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4798 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4799 * gcore.c (write_gcore_file): Free memory returned from
4800 make_corefile_notes.
4801 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4802 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4804 2014-06-24 Yao Qi <yao@codesourcery.com>
4806 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4807 (arm_linux_init_abi): Set skip_trampoline_code with
4808 gdbarch_skip_trampoline_code instead of
4809 find_solib_trampoline_target.
4811 2014-06-24 Yao Qi <yao@codesourcery.com>
4813 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4814 arm_skip_bx_reg returns non-zero.
4816 2014-06-24 Yao Qi <yao@codesourcery.com>
4818 * arm-tdep.c (arm_skip_bx_reg): New function.
4819 (arm_skip_stub): Call arm_skip_bx_reg.
4821 2014-06-23 Don Breazeal <donb@codesourcery.com>
4823 * MAINTAINERS: Add myself as write-after-approval maintainer.
4825 2014-06-23 Pedro Alves <palves@redhat.com>
4827 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4828 DR_CONTROL before setting DR0..DR3.
4829 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4830 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4831 bits of DR_CONTROL related to the debug register slot being
4832 disabled. If all slots are vacant, clear local slowdown as well,
4833 and assert DR_CONTROL is 0.
4835 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4837 * python/lib/gdb/command/xmethods.py
4838 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4839 current progspace only if the string "progspace" matches LOCUS_RE.
4841 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4843 Fix --with-system-readline with readline-6.3 patch 5.
4844 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4845 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4848 2014-06-20 Tom Tromey <tromey@redhat.com>
4850 * dwarf2read.c (dw2_get_real_path): Use correct type in
4852 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4854 2014-06-20 Gary Benson <gbenson@redhat.com>
4856 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4857 * common/glibc_thread_db.h: Likewise.
4858 * common/i386-cpuid.h: Likewise.
4859 * common/i386-gcc-cpuid.h: Likewise.
4860 * common/linux-btrace.h: Likewise.
4861 * common/linux-osdata.h: Likewise.
4862 * common/linux-procfs.h: Likewise.
4863 * common/linux-ptrace.h: Likewise.
4864 * common/mips-linux-watch.h: Likewise.
4865 * common/linux-btrace.c: Moved to nat.
4866 * common/linux-osdata.c: Likewise.
4867 * common/linux-procfs.c: Likewise.
4868 * common/linux-ptrace.c: Likewise.
4869 * common/mips-linux-watch.c: Likewise.
4870 * nat/gdb_thread_db.h: Moved from common.
4871 * nat/glibc_thread_db.h: Likewise.
4872 * nat/i386-cpuid.h: Likewise.
4873 * nat/i386-gcc-cpuid.h: Likewise.
4874 * nat/linux-btrace.c: Likewise.
4875 * nat/linux-btrace.h: Likewise.
4876 * nat/linux-osdata.c: Likewise.
4877 * nat/linux-osdata.h: Likewise.
4878 * nat/linux-procfs.c: Likewise.
4879 * nat/linux-procfs.h: Likewise.
4880 * nat/linux-ptrace.c: Likewise.
4881 * nat/linux-ptrace.h: Likewise.
4882 * nat/mips-linux-watch.c: Likewise.
4883 * nat/mips-linux-watch.h: Likewise.
4884 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4885 (object file files): Reordered.
4886 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4887 of glibc_thread_db.h.
4889 2014-06-20 Gary Benson <gbenson@redhat.com>
4891 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4892 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4893 (i386_dr_low): Likewise.
4894 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4895 (i386_dr_low_set_addr): Likewise.
4896 (i386_dr_low_get_addr): Likewise.
4897 (i386_dr_low_can_set_control): Likewise.
4898 (i386_dr_low_set_control): Likewise.
4899 (i386_dr_low_get_control): Likewise.
4900 (i386_dr_low_get_status): Likewise.
4901 (i386_get_debug_register_length): Likewise.
4902 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4903 (i386_dr_low): Likewise.
4904 * nat/i386-dregs.c (i386-low.h): Remove include.
4905 (i386-nat.h): Likewise.
4906 (nat/i386-dregs.h): New include.
4907 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4908 (i386_dr_low_set_addr): Likewise.
4909 (i386_dr_low_get_addr): Likewise.
4910 (i386_dr_low_can_set_control): Likewise.
4911 (i386_dr_low_set_control): Likewise.
4912 (i386_dr_low_get_control): Likewise.
4913 (i386_dr_low_get_status): Likewise.
4914 (i386_get_debug_register_length): Likewise.
4915 (debug_hw_points): Likewise.
4917 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4919 * Makefile.in (SFILES): Add d-exp.y.
4920 (YYFILES): Add d-exp.c.
4921 (YYOBJ): Add d-exp.o.
4922 (local-maintainer-clean): Delete d-exp.c.
4923 * d-exp.y: New file.
4924 * d-lang.h (d_parse): New declaration.
4925 (d_error): New declaration.
4926 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4927 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4928 PREC_ORDER operators.
4929 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4931 2014-06-19 Yao Qi <yao@codesourcery.com>
4933 * gdbthread.h (any_running): Remove the declaration.
4934 * thread.c (any_running): Remove.
4936 2014-06-19 Yao Qi <yao@codesourcery.com>
4938 * gdbthread.h (struct thread_info) <state>: Change its type to
4939 'enum thread_state'. Update comments.
4941 2014-06-19 Pedro Alves <palves@redhat.com>
4943 * gdbthread.h (ALL_THREADS): Delete.
4944 (ALL_NON_EXITED_THREADS): New macro.
4945 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4946 instead of ALL_THREADS.
4947 * infrun.c (find_thread_needs_step_over)
4948 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4949 instead of ALL_THREADS.
4950 * record-btrace.c (record_btrace_open)
4951 (record_btrace_stop_recording, record_btrace_close)
4952 (record_btrace_is_replaying, record_btrace_resume)
4953 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4954 * remote.c (append_pending_thread_resumptions): Likewise.
4955 * thread.c (thread_apply_all_command): Likewise.
4957 2014-06-19 Gary Benson <gbenson@redhat.com>
4959 * i386-nat.c (i386_stopped_by_watchpoint):
4960 Use i386_dr_stopped_by_watchpoint.
4961 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4962 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4964 2014-06-19 Gary Benson <gbenson@redhat.com>
4966 * nat/i386-dregs.c: New file.
4967 * Makefile.in (i386-dregs.o): New rule.
4968 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4969 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4970 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4971 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4972 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4973 * config/i386/go32.mh (NATDEPFILES): Likewise.
4974 * config/i386/linux.mh (NATDEPFILES): Likewise.
4975 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4976 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4977 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4978 * i386-nat.h (debug_hw_points): New declaration.
4979 * i386-nat.c (breakpoint.h): Remove include.
4980 (command.h): Likewise.
4981 (target.h): Likewise.
4982 (gdb_assert.h): Likewise.
4983 (debug_hw_points): Made nonstatic.
4984 (debug_printf): Now in i386-dregs.c.
4985 (TARGET_HAS_DR_LEN_8): Likewise.
4986 (DR_CONTROL_SHIFT): Likewise.
4987 (DR_CONTROL_SIZE): Likewise.
4988 (DR_RW_EXECUTE): Likewise.
4989 (DR_RW_WRITE): Likewise.
4990 (DR_RW_READ): Likewise.
4991 (DR_RW_IORW): Likewise.
4992 (DR_LEN_1): Likewise.
4993 (DR_LEN_2): Likewise.
4994 (DR_LEN_4): Likewise.
4995 (DR_LEN_8): Likewise.
4996 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4997 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4998 (DR_ENABLE_SIZE): Likewise.
4999 (DR_LOCAL_SLOWDOWN): Likewise.
5000 (DR_GLOBAL_SLOWDOWN): Likewise.
5001 (DR_CONTROL_RESERVED): Likewise.
5002 (I386_DR_CONTROL_MASK): Likewise.
5003 (I386_DR_VACANT): Likewise.
5004 (I386_DR_LOCAL_ENABLE): Likewise.
5005 (I386_DR_GLOBAL_ENABLE): Likewise.
5006 (I386_DR_DISABLE): Likewise.
5007 (I386_DR_SET_RW_LEN): Likewise.
5008 (I386_DR_GET_RW_LEN): Likewise.
5009 (I386_DR_WATCH_HIT): Likewise.
5010 (i386_wp_op_t): Likewise.
5011 (i386_show_dr): Likewise.
5012 (i386_length_and_rw_bits): Likewise.
5013 (i386_insert_aligned_watchpoint): Likewise.
5014 (i386_remove_aligned_watchpoint): Likewise.
5015 (i386_handle_nonaligned_watchpoint): Likewise.
5016 (i386_update_inferior_debug_regs): Likewise.
5017 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5018 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5019 (i386_region_ok_for_watchpoint):
5020 Use i386_dr_region_ok_for_watchpoint.
5021 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5023 2014-06-19 Gary Benson <gbenson@redhat.com>
5025 * i386-nat.c (i386_insert_hw_breakpoint): Use
5026 i386_insert_watchpoint.
5027 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5029 2014-06-19 Gary Benson <gbenson@redhat.com>
5031 * i386-nat.c (i386_dr_show): Renamed to
5032 i386_show_dr and made static. All uses updated.
5033 (i386_dr_length_and_rw_bits): Renamed to
5034 i386_length_and_rw_bits and made static.
5036 (i386_dr_insert_aligned_watchpoint): Renamed to
5037 i386_insert_aligned_watchpoint and made static.
5039 (i386_dr_remove_aligned_watchpoint): Renamed to
5040 i386_remove_aligned_watchpoint and made static.
5042 (i386_dr_update_inferior_debug_regs): Renamed to
5043 i386_update_inferior_debug_regs and made static.
5045 * nat/i386-dregs.h (i386_dr_show): Removed.
5046 (i386_dr_length_and_rw_bits): Likewise.
5047 (i386_dr_insert_aligned_watchpoint): Likewise.
5048 (i386_dr_remove_aligned_watchpoint): Likewise.
5049 (i386_dr_update_inferior_debug_regs): Likewise.
5051 2014-06-19 Gary Benson <gbenson@redhat.com>
5053 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5054 * configure: Regenerate.
5055 * config.in: Likewise.
5056 * main.c (signal.h): New include.
5057 (setup_alternate_signal_stack): New function.
5058 (captured_main): Call the above.
5059 * cp-support.c (signal.h): New include.
5060 (catch_demangler_crashes): New flag.
5061 (SIGJMP_BUF): New define.
5062 (SIGSETJMP): Likewise.
5063 (SIGLONGJMP): Likewise.
5064 (gdb_demangle_jmp_buf): New static global.
5065 (gdb_demangle_attempt_core_dump): Likewise.
5066 (gdb_demangle_signal_handler): New function.
5067 (gdb_demangle): If catch_demangler_crashes is set, install the
5068 above signal handler before calling bfd_demangle, and restore
5069 the original signal handler afterwards. Display the offending
5070 symbol and call demangler_warning the first time a segmentation
5072 (_initialize_cp_support): New maint set/show command.
5074 2014-06-19 Gary Benson <gbenson@redhat.com>
5076 * utils.h (resource_limit_kind): New enum.
5077 (can_dump_core): New declaration.
5078 (warn_cant_dump_core): Likewise.
5079 (dump_core): Likewise.
5080 * utils.c (dump_core): Made nonstatic. Added new
5081 parameter "limit_kind".
5082 (can_dump_core): Made nonstatic. Moved printing code to...
5083 (warn_cant_dump_core): New function.
5084 (can_dump_core_warn): Likewise.
5085 (internal_vproblem): Replace calls to can_dump_core with
5086 calls to can_dump_core_warn. Supply new argument to each.
5088 2014-06-19 Gary Benson <gbenson@redhat.com>
5090 * utils.h (demangler_vwarning): New declaration.
5091 (demangler_warning): Likewise.
5092 * utils.c (struct internal_problem)
5093 <user_settable_should_quit>: New field.
5094 <user_settable_should_dump_core>: Likewise
5095 (internal_error_problem): Add values for above new fields.
5096 (internal_warning_problem): Likewise.
5097 (demangler_warning_problem): New static global.
5098 (demangler_vwarning): New function.
5099 (demangler_warning): Likewise.
5100 (add_internal_problem_command): Selectively add commands.
5101 (_initialize_utils): New internal problem command.
5102 * maint.c (maintenance_demangler_warning): New function.
5103 (_initialize_maint_cmds): New command.
5105 2014-06-18 Tom Tromey <tromey@redhat.com>
5107 * f-valprint.c (info_common_command_for_block): Update.
5108 * symtab.h (struct general_symbol_info) <common_block>: Now
5111 2014-06-18 Tom Tromey <tromey@redhat.com>
5113 * symtab.h (struct symtab) <blockvector>: Now const.
5114 * ada-lang.c (ada_add_global_exceptions): Update.
5115 * buildsym.c (augment_type_symtab): Update.
5116 * dwarf2read.c (dw2_lookup_symbol): Update.
5117 * jit.c (finalize_symtab): Update.
5118 * jv-lang.c (add_class_symtab_symbol): Update.
5119 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5121 * objfiles.c (objfile_relocate1): Update.
5122 * psymtab.c (lookup_symbol_aux_psymtabs)
5123 (maintenance_check_psymtabs): Update.
5124 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5126 * spu-tdep.c (spu_catch_start): Update.
5127 * symmisc.c (dump_symtab_1): Update.
5128 * symtab.c (lookup_global_symbol_from_objfile)
5129 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5130 (basic_lookup_transparent_type_quick)
5131 (basic_lookup_transparent_type, find_pc_sect_symtab)
5132 (find_pc_sect_line, search_symbols): Update.
5133 * block.c (find_block_in_blockvector): Make "bl" const.
5134 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5136 (blockvector_contains_pc): Make "bv" const.
5137 (block_for_pc_sect): Update.
5138 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5139 (blockvector_contains_pc): Update.
5140 * breakpoint.c (resolve_sal_pc): Update.
5141 * inline-frame.c (block_starting_point_at): Update.
5143 2014-06-18 Tom Tromey <tromey@redhat.com>
5145 * completer.c (complete_line): Make "line_buffer" const.
5146 * completer.h (complete_line): Update.
5148 2014-06-18 Tom Tromey <tromey@redhat.com>
5150 * symtab.c (add_macro_name): Remove unneeded cast.
5152 2014-06-18 Tom Tromey <tromey@redhat.com>
5154 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5155 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5157 2014-06-18 Tom Tromey <tromey@redhat.com>
5159 * probe.c (info_probes_for_ops): Make "arg" const.
5160 * probe.h (info_probes_for_ops): Update.
5162 2014-06-18 Tom Tromey <tromey@redhat.com>
5164 * varobj.c (varobj_create): Update.
5165 * valops.c (value_of_this): Update.
5166 * tracepoint.c (add_local_symbols, scope_info): Update.
5167 * symtab.h (struct general_symbol_info) <block>: Now const.
5168 * symtab.c (skip_prologue_sal)
5169 (default_make_symbol_completion_list_break_on)
5170 (skip_prologue_using_sal): Update.
5171 * stack.h (iterate_over_block_locals)
5172 (iterate_over_block_local_vars): Update.
5173 * stack.c (print_frame_args): Update.
5174 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5176 (get_selected_block): Make return type const.
5177 * python/py-frame.c (frapy_block): Update.
5178 * python/py-block.c (gdbpy_block_for_pc): Update.
5179 * p-exp.y (%union) <bval>: Now const.
5180 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5181 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5182 * m2-exp.y (%union) <bval>: Now const.
5183 * linespec.c (get_current_search_block): Make return type const.
5184 (create_sals_line_offset, find_label_symbols): Update.
5185 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5187 (block_starting_point_at): Make "block" const.
5188 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5189 (check_exception_resume): Update.
5190 * guile/scm-frame.c (gdbscm_frame_block): Update.
5191 * guile/scm-block.c (gdbscm_lookup_block): Update.
5192 * frame.h (get_frame_block): Update.
5193 (get_selected_block): Make return type const.
5194 * frame.c (frame_id_inner): Update.
5195 * f-valprint.c (info_common_command_for_block)
5196 (info_common_command): Update.
5197 * dwarf2loc.c (dwarf2_find_location_expression)
5198 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5199 (locexpr_describe_location_piece): Update.
5200 * c-exp.y (%union) <bval>: Now const.
5201 * breakpoint.c (resolve_sal_pc): Update.
5202 * blockframe.c (get_frame_block):Make return type const.
5203 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5204 (block_innermost_frame): Update.
5205 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5206 (block_for_pc, block_for_pc_sect): Update.
5207 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5209 (block_for_pc_sect, block_for_pc): Make return type const.
5210 * ax-gdb.c (gen_expr): Update.
5211 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5212 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5213 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5214 (ada_read_var_value): Update.
5215 * ada-exp.y (struct name_info) <block>: Now const.
5217 (block_lookup): Constify.
5219 2014-06-18 Gary Benson <gbenson@redhat.com>
5221 * nat/i386-dregs.h: New file.
5222 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5223 * i386-nat.h (i386-dregs.h): New include.
5224 (DR_FIRSTADDR): Now in i386-dregs.h.
5225 (DR_LASTADDR): Likewise.
5226 (DR_NADDR): Likewise.
5227 (DR_STATUS): Likewise.
5228 (DR_CONTROL): Likewise.
5229 (i386_debug_reg_state): Likewise.
5230 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5232 2014-06-18 Don Breazeal <donb@codesourcery.com>
5234 * breakpoint.c (set_longjmp_breakpoint): Call
5235 momentary_breakpoint_from_master with additional argument.
5236 (set_longjmp_breakpoint_for_call_dummy): Call
5237 momentary_breakpoint_from_master with additional argument.
5238 (set_std_terminate_breakpoint): Call
5239 momentary_breakpoint_from_master with additional argument.
5240 (momentary_breakpoint_from_master): Add argument to function
5241 definition and use it to initialize structure member flag.
5242 (clone_momentary_breakpoint): Call
5243 momentary_breakpoint_from_master with additional argument.
5244 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5245 member flags set in momentary_breakpoint_from_master.
5247 2014-06-18 Gary Benson <gbenson@redhat.com>
5249 * i386-nat.c (i386_show_dr): Renamed to
5250 i386_dr_show and made nonstatic. All uses updated.
5251 (i386_length_and_rw_bits): Renamed to
5252 i386_dr_length_and_rw_bits and made nonstatic.
5254 (i386_insert_aligned_watchpoint): Renamed to
5255 i386_dr_insert_aligned_watchpoint and made nonstatic.
5257 (i386_remove_aligned_watchpoint): Renamed to
5258 i386_dr_remove_aligned_watchpoint and made nonstatic.
5260 (i386_update_inferior_debug_regs): Renamed to
5261 i386_dr_update_inferior_debug_regs and made nonstatic.
5264 2014-06-18 Gary Benson <gbenson@redhat.com>
5266 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5267 (i386_dr_low_can_set_control): Likewise.
5268 (i386_dr_low_set_addr): Likewise.
5269 (i386_dr_low_set_control): Likewise.
5270 (i386_dr_low_get_addr): Likewise.
5271 (i386_dr_low_get_status): Likewise.
5272 (i386_dr_low_get_control): Likewise.
5273 (i386_insert_aligned_watchpoint): Use new macros.
5274 (i386_update_inferior_debug_regs): Likewise.
5275 (i386_stopped_data_address): Likewise.
5277 2014-06-18 Gary Benson <gbenson@redhat.com>
5279 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5280 New parameter. All uses updated.
5282 2014-06-18 Gary Benson <gbenson@redhat.com>
5284 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5287 2014-06-18 Gary Benson <gbenson@redhat.com>
5289 * i386-nat.c (debug_printf): New macro.
5290 (i386_get_debug_register_length): Likewise.
5291 (TARGET_HAS_DR_LEN_8): Use above macro.
5292 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5293 and printf_unfiltered. Use phex to format values.
5295 2014-06-18 Gary Benson <gbenson@redhat.com>
5297 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5300 2014-06-18 Gary Benson <gbenson@redhat.com>
5302 * i386-nat.c: Comment changes.
5304 2014-06-18 Gary Benson <gbenson@redhat.com>
5306 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5308 2014-06-18 Gary Benson <gbenson@redhat.com>
5310 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5311 (i386_insert_aligned_watchpoint): Likewise.
5312 (i386_remove_aligned_watchpoint): Likewise.
5313 (i386_handle_nonaligned_watchpoint): Likewise.
5315 2014-06-18 Gary Benson <gbenson@redhat.com>
5317 * i386-nat.c: Whitespace changes.
5319 2014-06-17 Samuel Bronson <naesten@gmail.com>
5321 * MAINTAINERS: Update Roland McGrath's email address.
5322 Thanks to Sergio Durigan Junior for pointing out that he left
5323 Red Hat a while ago, and giving me a current address.
5325 2014-06-17 Tom Tromey <tromey@redhat.com>
5327 * utils.h (savestring): Remove declaration.
5329 2014-06-17 Tom Tromey <tromey@redhat.com>
5331 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5333 2014-06-16 Keith Seitz <keiths@redhat.com>
5336 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5337 to update the varobj if inferior_ptid is null_ptid.
5339 2014-06-16 Tom Tromey <tromey@redhat.com>
5341 * target.h (struct target_ops) <to_info_proc>: Make parameter
5343 (target_info_proc): Update.
5344 * target.c (target_info_proc): Make "args" const.
5345 * procfs.c (procfs_info_proc): Update.
5346 * linux-tdep.c (linux_info_proc): Update.
5347 (linux_core_info_proc_mappings): Make "args" const.
5348 (linux_core_info_proc): Update.
5349 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5350 * gdbarch.c: Rebuild.
5351 * gdbarch.h: Rebuild.
5352 * corelow.c (core_info_proc): Update.
5354 2014-06-16 Tom Tromey <tromey@redhat.com>
5356 * target.h (struct target_ops) <to_disconnect>: Make parameter
5358 (target_disconnect): Update.
5359 * target.c (target_disconnect): Make "args" const.
5360 * target-delegates.c: Rebuild.
5361 * remote.c (remote_disconnect): Update.
5362 * record.h (record_disconnect): Update.
5363 * record.c (record_disconnect): Update.
5364 * inf-child.c (inf_child_disconnect): Update.
5366 2014-06-16 Tom Tromey <tromey@redhat.com>
5368 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5369 * target.c (debug_to_rcmd, default_rcmd): Update.
5370 * target-delegates.c: Rebuild.
5371 * remote.c (remote_rcmd): Update.
5372 * monitor.c (monitor_rcmd): Update.
5374 2014-06-16 Pedro Alves <palves@redhat.com>
5376 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5377 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5378 have OBJF_SHARED set.
5379 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5380 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5381 instead of OBJF_USERLOADED.
5382 * objfiles.h (OBJF_SHARED): Update comment.
5383 (userloaded_objfile_contains_address_p): Rename to ...
5384 (shared_objfile_contains_address_p): ... this, and update
5386 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5388 (remove_symbol_file_command): Skip objfiles that don't have
5391 2014-06-16 Tom Tromey <tromey@redhat.com>
5393 * minsyms.h (prim_record_minimal_symbol)
5394 (prim_record_minimal_symbol_and_info): Update comments.
5396 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5398 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5399 or --without-guile, according to how GDB was built.
5401 2014-06-13 Tom Tromey <tromey@redhat.com>
5403 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5405 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5407 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5409 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5410 help_list.Pass all_commands, not -1, to help_list.
5411 * cli/cli-dump.c (dump_command, append_command)
5412 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5413 (binary_dump_command, binary_append_command): Pass all_commands,
5414 not -1, to help_list.
5415 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5417 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5419 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5421 * top.c (set_history): Pass all_commands, not -1, to help_list.
5422 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5423 all_commands, not -1, to help_list.
5424 * symfile.c (overlay_command): Pass all_commands, not -1, to
5426 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5428 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5430 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5432 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5433 not -1, to help_list.
5434 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5435 not -1, to help_list.
5436 * maint.c (maintenance_command, maintenance_info_command)
5437 (maintenance_print_command, maintenance_set_cmd): Pass
5438 all_commands, not -1, to help_list.
5439 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5441 * language.c (set_check): Pass all_commands, not -1, to help_list.
5442 * infcmd.c (unset_command): Pass all_commands, not -1, to
5444 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5446 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5448 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5450 * breakpoint.c (save_command): Pass all_commands, not -1, to
5452 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5453 all_commands, not -1, to help_list.
5455 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5457 * regcache.c (struct register_to_invalidate): New structure.
5458 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5460 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5462 2014-06-12 Yao Qi <yao@codesourcery.com>
5464 * varobj.c (varobj_get_num_children): Call
5465 varobj_is_dynamic_p.
5466 (varobj_list_children): Likewise.
5467 (varobj_update): Likewise. Update comments.
5469 2014-06-12 Yao Qi <yao@codesourcery.com>
5471 * varobj.c (varobj_pretty_printed_p): Rename to ...
5472 (varobj_is_dynamic_p): ... this. New function.
5473 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5474 (varobj_is_dynamic_p): Declare.
5475 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5476 (mi_print_value_p, varobj_update_one): Likewise.
5478 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5479 Yao Qi <yao@codesourcery.com>
5481 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5482 (varobj_get_iterator): Wrap up code for pretty-printer by
5483 "#if HAVE_PYTHON" and "#endif".
5484 (update_dynamic_varobj_children): Likewise.
5486 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5487 Yao Qi <yao@codesourcery.com>
5489 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5490 gdb_python_initialized is false. Move some code from varobj.c.
5491 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5492 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5493 (struct varobj_item): Moved to varobj-iter.h".
5494 (varobj_clear_saved_item): New function.
5495 (update_dynamic_varobj_children): Move python-related code to
5497 (free_variable): Call varobj_clear_saved_item and
5500 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5501 Yao Qi <yao@codesourcery.com>
5503 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5504 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5505 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5506 (py-varobj.o): New rule.
5507 * python/py-varobj.c: New file.
5508 * python/python-internal.h (py_varobj_get_iterator): Declare.
5509 * varobj-iter.h: New file.
5510 * varobj.c: Include "varobj-iter.h"
5511 (struct varobj) <child_iter>: Change its type from "PyObject *"
5512 to "struct varobj_iter *".
5513 <saved_item>: Likewise.
5514 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5515 [HAVE_PYTHON] (varobj_get_iterator): New function.
5516 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5517 python-specific code to python/py-varobj.c.
5518 (install_visualizer): Call varobj_iter_delete instead of
5520 * varobj.h (varobj_ensure_python_env): Declare.
5522 2014-06-12 Yao Qi <yao@codesourcery.com>
5524 * varobj.c (struct varobj_item): New structure.
5525 (create_child_with_value): Update declaration.
5526 (varobj_add_child): Replace arguments 'name' and 'value' with
5527 'item'. All callers updated.
5528 (install_dynamic_child): Likewise.
5529 (update_dynamic_varobj_children): Likewise.
5530 (varobj_add_child): Likewise.
5531 (create_child_with_value): Likewise.
5533 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5535 * NEWS: Create a new section for the next release branch.
5536 Rename the section of the current branch, now that it has
5539 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5541 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5542 * version.in: Bump version to 7.8.50.DATE-cvs.
5544 2014-06-11 Pedro Alves <palves@redhat.com>
5547 * ser-mingw.c (net_windows_socket_check_pending): New function.
5548 (net_windows_select_thread): Ignore spurious wakeups. Use
5549 net_windows_socket_check_pending.
5550 (net_windows_wait_handle): Check for pending events with
5551 ioctlsocket, through net_windows_socket_check_pending, instead of
5552 checking the socket's event.
5554 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5556 * python/python-internal.h (gdb_PyObject_GetAttrString)
5557 (gdb_PyObject_HasAttrString): New inline function definitions.
5558 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5559 char * of the second argument to PyObject_GetAttrString.
5561 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5563 * serial.c (serial_write): Fix index of character to be printed
5564 in call to serial_logchar when serial debug traces are enabled.
5566 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5568 * gdbtypes (resolve_dynamic_range): Add function description.
5570 2014-06-09 Pedro Alves <palves@redhat.com>
5572 * linux-nat.c (linux_child_follow_fork): Initialize status with
5573 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5574 inner block. Only pass the signal to PTRACE_DETACH if in pass
5577 2014-06-09 Gary Benson <gbenson@redhat.com>
5579 * common/signals.c (gdb_signal_from_host): Reorder to separate
5580 the always-available ANSI-standard signals from the signals that
5582 (do_gdb_signal_to_host): Likewise.
5583 * proc-events.c (signal_table): Likewise.
5585 2014-06-08 Hui Zhu <hui@codesourcery.com>
5587 * common/linux-ptrace.c (linux_disable_event_reporting): New
5589 * common/linux-ptrace.h (linux_disable_event_reporting): New
5591 * linux-nat.c (linux_child_follow_fork): Do a single step before
5594 2014-06-07 Keith Seitz <keiths@redhat.com>
5598 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5599 from symbol_matches_domain in symtab.c. All local callers
5600 of symbol_matches_domain updated.
5601 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5602 search STRUCT_DOMAIN.
5603 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5604 independently. standard_lookup will do that automatically.
5605 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5606 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5607 (cp_lookup_symbol_in_namespace): Likewise.
5608 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5609 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5610 may return a STRUCT_DOMAIN match.
5611 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5612 * cp-support.c: Include language.h.
5613 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5615 * psymtab.c (match_partial_symbol): Compare the requested
5616 domain with the symbol's domain directly.
5617 (lookup_partial_symbol): Likewise.
5618 * symtab.c (lookup_symbol_in_language): Explain when/why
5619 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5620 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5621 appropriate languages.
5622 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5623 and moved to ada-lang.c
5624 (lookup_block_symbol): Explain that this function only returns
5625 symbol matching the requested DOMAIN.
5626 Compare the requested domain with the symbol's domain directly.
5627 (iterate_over_symbols): Compare the requested domain with the
5628 symbol's domain directly.
5629 * symtab.h (symbol_matches_domain): Remove.
5631 2014-06-06 Doug Evans <xdje42@gmail.com>
5633 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5634 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5635 (gdbscm_guile_version_is_at_least): Declare.
5636 (gdbscm_scm_string_to_int): Declare.
5637 * guile/guile.c (gdbscm_guile_major_version): New global.
5638 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5639 (guile_datadir): New static global.
5640 (gdbscm_guile_data_directory): New function.
5641 (initialize_scheme_side): Update.
5642 (misc_guile_functions): Add guile-data-directory.
5643 (initialize_gdb_module): Fetch guile version number.
5644 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5645 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5646 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5647 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5649 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5650 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5651 * guile/scm-value.c (gdbscm_value_to_string): Only call
5652 scm_port_conversion_strategy if Guile version >= 2.0.6.
5654 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5656 * main.c (print_gdb_help): Add -q and --silent.
5658 2014-06-06 Gary Benson <gbenson@redhat.com>
5660 * common/signals.c: Remove preprocessor conditionals for
5661 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5662 SIGSEGV and SIGTERM.
5663 * proc-events.c: Likewise.
5665 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5667 * symfile.c (symfile_free_objfile): Remove restriction to
5669 * symfile-mem.c (symbol_file_add_from_memory): Call
5670 add_target_sections_of_objfile.
5672 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5674 * guile/scm-value.c (gdbscm_history_append_x): Use
5675 'vlscm_get_value_smob_arg_unsafe' instead of
5676 'vlscm_scm_to_value'.
5678 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5681 * utils.c (printchar): Don't escape at all if quoter is NUL.
5682 Update function documentation to clarify effect of parameter
5684 * remote.c (escape_buffer): Pass '\\' as the quoter to
5685 fputstrn_unfiltered.
5686 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5687 generate the output.
5688 (mi_solib_unloaded): Same.
5690 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5692 * development.sh: Delete.
5693 * Makefile.in (config.status): Adjust dependency on development.sh.
5694 * configure.ac: Adjust development.sh source call.
5695 * configure: Regenerate.
5697 2014-06-04 Doug Evans <xdje42@gmail.com>
5699 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5700 is_scheme_bkpt, spec.
5701 (bpscm_make_breakpoint_smob): Initialize new members.
5702 (gdbscm_create_breakpoint_x): Split into two ...
5703 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5704 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5705 (scheme_function breakpoint_functions): Update.
5706 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5707 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5708 register-breakpoint!.
5710 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5713 * mem-break.c (z_type_supported): Return zero if
5714 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5716 2014-06-04 Tom Tromey <tromey@redhat.com>
5718 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5719 value_from_contents_and_address_unresolved.
5720 (ada_template_to_fixed_record_type_1): Likewise.
5721 (ada_which_variant_applies): Likewise.
5722 * value.h (value_from_contents_and_address_unresolved): Declare.
5723 * value.c (value_from_contents_and_address_unresolved): New
5725 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5726 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5727 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5729 2014-06-04 Tom Tromey <tromey@redhat.com>
5731 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5733 2014-06-04 Tom Tromey <tromey@redhat.com>
5735 * procfs.c (procfs_attach): Make "args" const.
5736 * windows-nat.c (windows_attach): Make "args" const.
5737 * nto-procfs.c (procfs_attach): Make "args" const.
5738 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5739 * go32-nat.c (go32_attach): Make "args" const.
5740 * gnu-nat.c (gnu_attach): Make "args" const.
5741 * darwin-nat.c (darwin_attach): Make "args" const.
5742 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5743 * linux-nat.c (linux_nat_attach): Make "args" const.
5744 * remote.c (extended_remote_attach_1, extended_remote_attach):
5746 * target.h (struct target_ops) <to_attach>: Make "args" const.
5747 (find_default_attach): Likewise.
5748 * utils.c (parse_pid_to_attach): Make "args" const.
5749 * utils.h (parse_pid_to_attach): Update.
5751 2014-06-04 Tom Tromey <tromey@redhat.com>
5753 * target-delegates.c: Rebuild.
5754 * target.c (default_thread_address_space): New function.
5755 (target_thread_address_space): Simplify.
5756 * target.h (struct target_ops) <to_thread_address_space>: Add
5757 TARGET_DEFAULT_FUNC.
5759 2014-06-04 Doug Evans <xdje42@gmail.com>
5761 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5763 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5765 * record-btrace.c: Include event-loop.h and inf-loop.h.
5766 (record_btrace_resume_exec_dir)
5767 (record_btrace_async_inferior_event_handler)
5768 (record_btrace_handle_async_inferior_event): New.
5769 (record_btrace_open): Create async event handler.
5770 (record_btrace_close): Delete async event handler.
5771 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5772 Mark async event handler.
5773 (record_btrace_execution_direction): New.
5774 (init_record_btrace_ops): Initialize to_execution_direction.
5776 2014-06-03 Doug Evans <xdje42@gmail.com>
5778 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5779 (gdbscm_make_parameter): Ditto.
5781 2014-06-03 Doug Evans <dje@google.com>
5783 * exec.c (exec_close_1): Call clear_section_table instead of
5784 resize_section_table.
5785 (clear_section_table): New function.
5786 (resize_section_table): Make static. Rename arg num_added to
5788 * exec.h (clear_section_table): Declare.
5789 (resize_section_table): Delete.
5790 * progspace.c (release_program_space): Call clear_section_table
5791 instead of resize_section_table.
5793 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5795 * NEWS (Python Scripting): Add entry about the new xmethods
5798 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5800 * python/py-xmethods.c: New file.
5801 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5802 (objfpy_dealloc): XDECREF on the new xmethods field.
5803 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5805 (objfpy_get_xmethods): New function.
5806 (objfile_getset): New entry 'xmethods'.
5807 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5808 (pspy_dealloc): XDECREF on the new xmethods field.
5809 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5811 (pspy_get_xmethods): New function.
5812 (pspace_getset): New entry 'xmethods'.
5813 * python/python-internal.h: Add declarations for new functions.
5814 * python/python.c (_initialize_python): Invoke
5815 gdbpy_initialize_xmethods.
5816 * python/lib/gdb/__init__.py (xmethods): New
5818 * python/lib/gdb/xmethod.py: New file.
5819 * python/lib/gdb/command/xmethods.py: New file.
5821 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5823 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5824 best match method returned by find_overload_match is an xmethod.
5825 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5826 the best matching operator returned by find_overload_match is an
5828 * valops.c: #include "extension.h".
5829 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5830 Return void. The list of matching source methods is returned in
5831 "fn_list" and a vector of matching debug method workers is
5832 returned in "xm_worker_vec". Update all callers.
5833 (value_find_oload_method_list): Likewise.
5834 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5835 non-NULL, then the index of the best matching method in this
5836 vector is returned. Update all callers.
5837 (find_overload_match): Include xmethods while performing overload
5840 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5842 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5843 * extension-priv.h (struct extension_language_ops): Add the
5845 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5846 get_matching_xmethod_workers, get_xmethod_argtypes,
5847 invoke_xmethod, free_xmethod_worker,
5848 free_xmethod_worker_vec): New functions.
5849 * extension.h: #include "common/vec.h".
5850 New function declarations.
5851 (struct xmethod_worker): New struct.
5852 (VEC (xmethod_worker_ptr)): New vector type.
5853 (xmethod_worker_ptr): New typedef.
5854 (xmethod_worker_vec): Likewise.
5855 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5857 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5858 (struct builtin_type): New field "xmethod".
5859 * valarith.c (value_ptradd): Assert that the value argument is not
5861 * valops.c (value_must_coerce_to_target): Return 0 for
5862 lval_xcallable values.
5863 * value.c (struct value): New field XM_WORKER in the field
5865 (value_address, value_raw_address): Return 0 for lval_xcallable
5867 (set_value_address): Assert that the value is not an
5869 (value_free): Free the associated xmethod worker when freeing
5870 lval_xcallable values.
5871 (set_value_component_location): Assert that the WHOLE value is not
5873 (value_of_xmethod, call_xmethod): New functions.
5874 * value.h: Declare "struct xmethod_worker".
5875 Declare new functions value_of_xmethod, call_xmethod.
5877 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5878 Pedro Alves <palves@redhat.com>
5880 PR breakpoints/17000
5881 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5882 New function, extracted from software_breakpoint_inserted_here_p.
5883 (software_breakpoint_inserted_here_p): Replace factored out code
5884 by call to find_non_raw_software_breakpoint_inserted_here.
5885 (bp_target_info_copy_insertion_state): New function.
5886 (bkpt_insert_location): Handle the case of a single-step
5887 breakpoint already inserted at the same address.
5888 (bkpt_remove_location): Handle the case of a single-step
5889 breakpoint still inserted at the same address.
5890 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5891 breakpoint already inserted at the same address.
5892 (deprecated_remove_raw_breakpoint): Handle the case of a
5893 non-raw breakpoint still inserted at the same address.
5894 (find_single_step_breakpoint): New function, extracted from
5895 single_step_breakpoint_inserted_here_p.
5896 (find_single_step_breakpoint): New function,
5897 factored out from single_step_breakpoint_inserted_here_p.
5898 (single_step_breakpoint_inserted_here_p): Reimplement.
5900 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5902 Pushed by Joel Brobecker <brobecker@adacore.com>
5903 * source.c (show_substitute_path_command): Fix display of matching
5906 2014-06-03 Gary Benson <gbenson@redhat.com>
5908 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5910 2014-06-02 Doug Evans <xdje42@gmail.com>
5912 Add parameter support for Guile.
5913 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5914 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5915 (scm-param.o): New rule.
5916 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5917 (gdbscm_misc_error): Declare.
5918 (gdbscm_canonicalize_command_name): Declare.
5919 (gdbscm_scm_to_host_string): Declare.
5920 (gdbscm_scm_from_host_string): Declare.
5921 (gdbscm_initialize_parameters): Declare.
5922 * guile/guile.c (initialize_gdb_module): Call
5923 gdbscm_initialize_parameters.
5924 * guile/lib/gdb.scm: Export parameter symbols.
5925 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5926 cmdscm_canonicalize_name and made public. All callers updated.
5927 * guile/scm-exception.c (gdbscm_misc_error): New function.
5928 * guile/scm-param.c: New file.
5929 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5930 (gdbscm_scm_to_host_string): New function.
5931 (gdbscm_scm_from_host_string): New function.
5932 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5934 2014-06-02 Doug Evans <xdje42@gmail.com>
5936 Add command support for Guile.
5937 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5938 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5939 (scm-cmd.o): New rule.
5940 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5941 (gdbscm_user_error_p): Declare.
5942 (gdbscm_parse_command_name): Declare.
5943 (gdbscm_valid_command_class_p): Declare.
5944 (gdbscm_initialize_commands): Declare.
5945 * guile/guile.c (initialize_gdb_module): Call
5946 gdbscm_initialize_commands.
5947 * guile/lib/gdb.scm: Export command symbols.
5948 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5949 (throw-user-error): New function.
5950 * guile/scm-cmd.c: New file.
5951 * guile/scm-exception.c (user_error_symbol): New static global.
5952 (gdbscm_user_error_p): New function.
5953 (gdbscm_initialize_exceptions): Set user_error_symbol.
5954 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5956 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5958 * top.c (command_loop): Handle comments here...
5959 (command_line_input): ... not here.
5961 2014-06-02 Doug Evans <xdje42@gmail.com>
5963 Add progspace support for Guile.
5964 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5965 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5966 (scm-progspace.o): New rule.
5967 * guile/guile-internal.h (pspace_smob): New typedef.
5968 (psscm_pspace_smob_pretty_printers): Declare.
5969 (psscm_pspace_smob_from_pspace): Declare.
5970 (psscm_scm_from_pspace): Declare.
5971 * guile/guile.c (initialize_gdb_module): Call
5972 gdbscm_initialize_pspaces.
5973 * guile/lib/gdb.scm: Export progspace symbols.
5974 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5976 (append-pretty-printer!): Ditto.
5977 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5979 * guile/scm-progspace.c: New file.
5981 2014-06-03 Alan Modra <amodra@gmail.com>
5983 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5984 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5986 2014-06-02 Doug Evans <dje@google.com>
5988 Add support for skeletonless type units.
5989 * dwarf2read.c (struct dwarf2_per_objfile): New member
5990 n_allocated_type_units.
5991 (struct dwarf2_per_objfile) <tu_stats>: New member
5992 nr_all_type_units_reallocs.
5993 (create_signatured_type_table_from_index): Initialize
5994 n_allocated_type_units
5995 (create_all_type_units): Ditto.
5996 (add_type_unit): Move up in file. New arg slot.
5997 All callers updated. Increase space for all_type_units more
5999 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6000 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6001 (lookup_dwp_signatured_type): Ditto.
6002 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6003 All callers updated.
6004 (build_type_psymtabs_1): Leave type_unit_groups as
6005 NULL if no TUs present.
6006 (print_tu_stats): New function.
6007 (process_skeletonless_type_unit): New function.
6008 (process_dwo_file_for_skeletonless_type_units): New
6010 (process_skeletonless_type_units): New function.
6011 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6012 Call print tu_stats if debugging enabled.
6014 2014-06-02 Pedro Alves <palves@redhat.com>
6016 * breakpoint.c (build_target_command_list): Don't build a command
6017 list if we have any duplicate location that isn't a dprintf.
6019 2014-06-02 Pedro Alves <palves@redhat.com>
6021 * breakpoint.c (dprintf_breakpoint_hit): New function.
6022 (initialize_breakpoint_ops): Install it as dprintf's
6023 breakpoint_hit method.
6025 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6027 * source.c (substitute_path_rule_matches): Simplify using
6028 filename_ncmp instead of FILENAME_CMP.
6030 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6032 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6034 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6036 * configure.ac: When Guile is available, check for the
6037 availability of 'scm_new_smob'.
6038 * configure, config.h.in: Regenerate.
6039 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6042 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6044 * frame.c (struct frame_info): Add stop_string field.
6045 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6046 (get_prev_frame_always): Old content moved into
6047 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6048 TRY_CATCH, handle MEMORY_ERROR exceptions.
6049 (frame_stop_reason_string): New function definition.
6050 * frame.h (unwind_stop_reason_to_string): Extend comment to
6051 mention frame_stop_reason_string.
6052 (frame_stop_reason_string): New function declaration.
6053 * stack.c (frame_info): Switch to frame_stop_reason_string.
6054 (backtrace_command_1): Switch to frame_stop_reason_string.
6055 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6056 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6057 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6059 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6061 * frame.c (frame_stop_reason_string): Rename to ...
6062 (unwind_stop_reason_to_string): this.
6063 * frame.h (frame_stop_reason_string): Rename to ...
6064 (unwind_stop_reason_to_string): this.
6065 * stack.c (frame_info): Update call to frame_stop_reason_string.
6066 (backtrace_command_1): Likewise.
6067 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6068 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6070 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6072 * frame.c (remove_prev_frame): New function.
6073 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6076 2014-05-29 Pedro Alves <palves@redhat.com>
6078 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6079 and make it const. When a single-step decays to a continue,
6080 clear 'step', not 'hw_step'. Pass whether the caller wanted
6081 to step to user_visible_resume_ptid, not what we ask the
6084 2014-05-29 Pedro Alves <palves@redhat.com>
6086 * infrun.c (process_event_stop_test, handle_step_into_function)
6087 (handle_step_into_function_backward): Adjust.
6088 Don't set the even thread's stop_step and call stop_waiting before
6089 calling end_stepping_range. Instead do that ...
6090 (end_stepping_range): ... here. Take an ecs pointer parameter.
6092 2014-05-29 Pedro Alves <palves@redhat.com>
6094 * infrun.c (stop_stepping): Rename to ...
6095 (stop_waiting): ... this.
6096 (proceed): Update comment.
6097 (process_event_stop_test, handle_inferior_event)
6098 (handle_signal_stop, handle_step_into_function)
6099 (handle_step_into_function_backward): Update.
6101 2014-05-29 Pedro Alves <palves@redhat.com>
6103 * infcall.c (run_inferior_call): Don't check whether the current
6104 thread is running after the proceed call.
6106 2014-05-29 Pedro Alves <palves@redhat.com>
6107 Tom Tromey <tromey@redhat.com>
6109 * NEWS: Mention "maint set target-async", "set mi-async", and that
6110 background execution commands are now always available.
6111 * target.h (target_async_permitted): Update comment.
6112 * target.c (target_async_permitted, target_async_permitted_1):
6114 (set_target_async_command): Rename to ...
6115 (maint_set_target_async_command): ... this.
6116 (show_target_async_command): Rename to ...
6117 (maint_show_target_async_command): ... this.
6118 (_initialize_target): Adjust.
6119 * infcmd.c (prepare_execution_command): Make extern.
6120 * inferior.h (prepare_execution_command): Declare.
6121 * infrun.c (set_observer_mode): Leave target async alone.
6122 * mi/mi-interp.c (mi_interpreter_init): Install
6123 mi_on_sync_execution_done as sync_execution_done observer.
6124 (mi_on_sync_execution_done): New function.
6125 (mi_execute_command_input_handler): Don't print the prompt if we
6126 just started a synchronous command with an async target.
6127 (mi_on_resume): Check sync_execution before printing prompt.
6128 * mi/mi-main.h (mi_async_p): Declare.
6129 * mi/mi-main.c: Include gdbcmd.h.
6130 (mi_async_p): New function.
6131 (mi_async, mi_async_1): New globals.
6132 (set_mi_async_command, show_mi_async_command, mi_async): New
6134 (exec_continue): Call prepare_execution_command.
6135 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6136 (mi_execute_async_cli_command): Use mi_async_p.
6137 (_initialize_mi_main): Install "set mi-async". Make
6138 "target-async" a deprecated alias.
6140 2014-05-29 Pedro Alves <palves@redhat.com>
6142 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6143 (_initialize_cli_interp): Adjust.
6144 * event-loop.c: Include "observer.h".
6145 (start_event_loop): Notify 'command_error' observers instead of
6146 calling display_gdb_prompt. Remove FIXME comment.
6147 * event-top.c (display_gdb_prompt): Remove call into the
6149 * inf-loop.c: Include "observer.h".
6150 (inferior_event_handler): Notify 'command_error' observers instead
6151 of calling display_gdb_prompt.
6152 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6153 observers instead of calling display_gdb_prompt.
6154 * interps.c (interp_set): Don't call display_gdb_prompt.
6155 (current_interp_display_prompt_p): Delete.
6156 * interps.h (interp_prompt_p): Delete declaration.
6157 (interp_prompt_p_ftype): Delete.
6158 (struct interp_procs) <prompt_proc_p>: Delete field.
6159 (current_interp_display_prompt_p): Delete declaration.
6160 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6161 (_initialize_mi_interp): Adjust.
6162 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6163 'command_error' observers.
6164 (tui_on_sync_execution_done, tui_on_command_error): New
6166 (tui_display_prompt_p): Delete.
6167 (_initialize_tui_interp): Adjust.
6169 2014-05-29 Pedro Alves <palves@redhat.com>
6172 * cli/cli-interp.c: Include infrun.h and observer.h.
6173 (cli_uiout, cli_interp): New globals.
6174 (cli_on_signal_received, cli_on_end_stepping_range)
6175 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6177 (cli_interpreter_init): Install them as 'end_stepping_range',
6178 'signal_received' 'signal_exited', 'exited' and 'no_history'
6180 (_initialize_cli_interp): Remove cli_interp local.
6181 * infrun.c (handle_inferior_event): Call the several stop reason
6182 observers instead of printing the stop reason directly.
6183 (end_stepping_range): New function.
6184 (print_end_stepping_range_reason, print_signal_exited_reason)
6185 (print_exited_reason, print_signal_received_reason)
6186 (print_no_history_reason): Make static, and add an uiout
6187 parameter. Print to that instead of to CURRENT_UIOUT.
6188 * infrun.h (print_end_stepping_range_reason)
6189 (print_signal_exited_reason, print_exited_reason)
6190 (print_signal_received_reason print_no_history_reason): New
6192 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6194 <cli_uiout>: New field.
6195 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6196 uiout for CLI output. Install 'signal_received',
6197 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6199 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6200 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6201 (mi_on_no_history): New functions.
6202 (ui_out_free_cleanup): Delete function.
6203 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6204 instead use the one already stored in the MI interpreter data.
6205 (mi_ui_out): Adjust.
6206 * tui/tui-interp.c: Include infrun.h and observer.h.
6207 (tui_interp): New global.
6208 (tui_on_signal_received, tui_on_end_stepping_range)
6209 (tui_on_signal_exited, tui_on_exited)
6210 (tui_on_no_history): New functions.
6211 (tui_init): Install them as 'end_stepping_range',
6212 'signal_received' 'signal_exited', 'exited' and 'no_history'
6214 (_initialize_tui_interp): Delete tui_interp local.
6216 2014-05-29 Pedro Alves <palves@redhat.com>
6219 * linux-nat.c (linux_nat_resume_callback): Rename the second
6220 parameter to 'except'. Skip LP if it points to EXCEPT.
6221 (linux_nat_resume): Don't mark the event lwp as not stopped
6222 before resuming sibling lwps. Instead ask
6223 linux_nat_resume_callback to skip the event lwp. Mark it as not
6224 stopped after actually resuming it.
6225 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6227 (wait_lwp): Mark the lwp as stopped here.
6228 (stop_wait_callback): Mark the lwp as not stopped right after
6229 resuming it. Don't mark lwps as stopped here.
6230 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6231 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6233 2014-05-29 Pedro Alves <palves@redhat.com>
6236 * infrun.c (resume): Determine how much to resume depending on
6237 whether the caller wanted a step, not whether we can hardware step
6238 the target. Mark all threads that we intend to run as running,
6239 unless we're calling an inferior function.
6240 (normal_stop): If the thread is running an infcall, don't finish
6242 * target.c (target_resume): Don't mark threads as running here.
6244 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6246 * serial.c (_initialize_serial): Remove support for
6247 the "set remotebaud" and "show remotebaud" commands.
6248 * NEWS: Add entry documenting the removal of that command.
6250 2014-05-28 Yao Qi <yao@codesourcery.com>
6252 * charset.c: Fix typo in comments.
6254 2014-05-27 Gary Benson <gbenson@redhat.com>
6256 * utils.c (internal_vproblem): Prompt for a bug report.
6258 2014-05-26 Andy Wingo <wingo@igalia.com>
6260 * guile/scm-arch.c (arscm_mark_arch_smob):
6261 * guile/scm-block.c (bkscm_mark_block_smob)
6262 (bkscm_mark_block_syms_progress_smob):
6263 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6264 * guile/scm-exception.c (exscm_mark_exception_smob):
6265 * guile/scm-frame.c (frscm_mark_frame_smob):
6266 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6267 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6268 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6269 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6270 (ppscm_mark_pretty_printer_worker_smob):
6271 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6272 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6273 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6274 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6276 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6279 2014-05-26 Andy Wingo <wingo@igalia.com>
6280 Doug Evans <xdje42@gmail.com>
6282 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6283 empty_base_class. All uses updated.
6284 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6285 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6287 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6288 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6289 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6290 (gdbscm_gsmob_has_property_p, add_property_name)
6291 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6292 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6293 (gdb-object-has-property?, gdb-object-properties): Remove.
6294 (gdb-object-kind): Renamed from gsmob-kind.
6296 2014-05-26 Andy Wingo <wingo@igalia.com>
6298 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6299 * configure: Regenerate.
6301 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6303 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6305 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6307 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6308 (replay_memory_access_read_only, replay_memory_access_read_write)
6309 (replay_memory_access_types, replay_memory_access)
6310 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6311 (cmd_set_record_btrace, cmd_show_record_btrace)
6312 (cmd_show_replay_memory_access): New.
6313 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6314 (record_btrace_remove_breakpoint): Replace
6315 record_btrace_allow_memory_access with replay_memory_access.
6316 (_initialize_record_btrace): Add commands.
6317 * NEWS: Announce it.
6319 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6321 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6323 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6325 * MAINTAINERS (Write After Approval): Move self back from
6328 2014-05-22 Pedro Alves <palves@redhat.com>
6330 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6331 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6332 (disable_randomization, enum exec_direction_kind)
6333 (execution_direction, stop_registers, start_remote)
6334 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6335 (wait_for_inferior, normal_stop, get_last_target_status)
6336 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6337 (insert_step_resume_breakpoint_at_sal)
6338 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6339 (set_step_info, print_stop_event, signal_stop_state)
6340 (signal_print_state, signal_pass_state, signal_stop_update)
6341 (signal_print_update, signal_pass_update)
6342 (update_signals_program_target, clear_exit_convenience_vars)
6343 (displaced_step_dump_bytes, update_observer_mode)
6344 (signal_catch_update, gdb_signal_from_command): Move
6346 * infrun.h: ... to this new file.
6347 * amd64-tdep.c: Include infrun.h.
6348 * annotate.c: Include infrun.h.
6349 * arch-utils.c: Include infrun.h.
6350 * arm-linux-tdep.c: Include infrun.h.
6351 * arm-tdep.c: Include infrun.h.
6352 * break-catch-sig.c: Include infrun.h.
6353 * breakpoint.c: Include infrun.h.
6354 * common/agent.c: Include infrun.h instead of inferior.h.
6355 * corelow.c: Include infrun.h.
6356 * event-top.c: Include infrun.h.
6357 * go32-nat.c: Include infrun.h.
6358 * i386-tdep.c: Include infrun.h.
6359 * inf-loop.c: Include infrun.h.
6360 * infcall.c: Include infrun.h.
6361 * infcmd.c: Include infrun.h.
6362 * infrun.c: Include infrun.h.
6363 * linux-fork.c: Include infrun.h.
6364 * linux-nat.c: Include infrun.h.
6365 * linux-thread-db.c: Include infrun.h.
6366 * monitor.c: Include infrun.h.
6367 * nto-tdep.c: Include infrun.h.
6368 * procfs.c: Include infrun.h.
6369 * record-btrace.c: Include infrun.h.
6370 * record-full.c: Include infrun.h.
6371 * remote-m32r-sdi.c: Include infrun.h.
6372 * remote-mips.c: Include infrun.h.
6373 * remote-notif.c: Include infrun.h.
6374 * remote-sim.c: Include infrun.h.
6375 * remote.c: Include infrun.h.
6376 * reverse.c: Include infrun.h.
6377 * rs6000-tdep.c: Include infrun.h.
6378 * s390-linux-tdep.c: Include infrun.h.
6379 * solib-irix.c: Include infrun.h.
6380 * solib-osf.c: Include infrun.h.
6381 * solib-svr4.c: Include infrun.h.
6382 * target.c: Include infrun.h.
6383 * top.c: Include infrun.h.
6384 * windows-nat.c: Include infrun.h.
6385 * mi/mi-interp.c: Include infrun.h.
6386 * mi/mi-main.c: Include infrun.h.
6387 * python/py-threadevent.c: Include infrun.h.
6389 2014-05-22 Pedro Alves <palves@redhat.com>
6391 * infrun.c (handle_inferior_event): Store the exit code for
6392 --return-child-result here, instead of ...
6393 (print_exited_reason): ... here.
6395 2014-05-21 Pedro Alves <palves@redhat.com>
6398 * gdbthread.h (struct thread_control_state): New field
6400 * infrun.c (follow_fork): Copy the new thread control field to the
6402 (clear_proceed_status_thread): Clear the new thread control field.
6403 (proceed): Set the new thread control field.
6404 * interps.h (command_interp): Declare.
6405 * interps.c (command_interpreter): New global.
6406 (command_interp): New function.
6407 (interp_exec): Set `command_interpreter' while here.
6408 * cli-out.c (cli_uiout_dtor): New function.
6409 (cli_ui_out_impl): Install it.
6410 * mi/mi-interp.c: Include cli-out.h.
6411 (mi_cmd_interpreter_exec): Add comment.
6412 (restore_current_uiout_cleanup): New function.
6413 (ui_out_free_cleanup): New function.
6414 (mi_on_normal_stop): If finishing an execution command started by
6415 a CLI command, or any kind of breakpoint-like event triggered,
6416 print the stop event to the output (CLI) stream.
6417 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6419 2014-05-21 Pedro Alves <palves@redhat.com>
6421 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6422 current source line having changed.
6423 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6424 * infrun.c (normal_stop): Adjust call to
6425 set_current_sal_from_frame.
6426 * source.c (clear_lines_listed_range): New function.
6427 (set_current_source_symtab_and_line, identify_source_line): Clear
6428 the lines listed range.
6429 (line_info): Handle the first "info line" after the current source
6430 line having changed.
6431 * stack.c (print_stack_frame): Remove center handling.
6432 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6435 2014-05-21 Pedro Alves <palves@redhat.com>
6437 * inf-child.c (inf_child_mourn_inferior): New function.
6438 * inf-child.h (inf_child_mourn_inferior): New declaration.
6439 * darwin-nat.c (darwin_mourn_inferior): Use
6440 inf_child_mourn_inferior.
6441 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6442 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6443 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6444 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6445 * windows-nat.c (windows_mourn_inferior): Likewise.
6447 2014-05-21 Doug Evans <xdje42@gmail.com>
6449 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6451 2014-05-21 Doug Evans <xdje42@gmail.com>
6453 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6454 (gdbscm_out_of_range_error): Ditto.
6455 (gdbscm_memory_error): Ditto.
6456 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6457 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6458 (gdbscm_out_of_range_error): Update.
6459 (gdbscm_memory_error): Update.
6460 (gdbscm_scm_to_target_string_unsafe): Delete.
6462 2014-05-21 Pedro Alves <palves@redhat.com>
6464 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6466 (inf_child_open_target): New function.
6467 (inf_child_open): Use inf_child_open_target to push the target
6468 instead of erroring out.
6469 (inf_child_disconnect, inf_child_close)
6470 (inf_child_maybe_unpush_target): New functions.
6471 (inf_child_target): Install inf_child_disconnect and
6472 inf_child_close. Store a pointer to the returned object.
6473 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6475 * target.c (auto_connect_native_target): New global.
6476 (show_default_run_target): New function.
6477 (find_default_run_target): Return NULL if automatically connecting
6478 to the native target is disabled.
6479 (_initialize_target): Install set/show auto-connect-native-target.
6480 * NEWS: Mention "set auto-connect-native-target", and "target
6482 * linux-nat.c (super_close): New global.
6483 (linux_nat_close): Call super_close.
6484 (linux_nat_add_target): Store a pointer to the base class's
6486 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6487 inf_child_maybe_unpush.
6488 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6490 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6491 the inferior. Use inf_child_maybe_unpush_target.
6492 (inf_ttrace_attach): Don't push the target if it is already
6494 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6495 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6496 after mourning the inferior. Use inf_child_maybe_unpush_target.
6497 (darwin_attach_pid): Don't push the target if it is already
6499 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6500 mourning the inferior. Use inf_child_maybe_unpush_target.
6501 (gnu_detach): Use inf_child_maybe_unpush_target.
6502 * go32-nat.c (go32_create_inferior): Don't push the target if it
6504 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6505 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6506 (procfs_open): Rename to ...
6507 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6508 comments. Can target_preopen before changing node. Call
6509 inf_child_open_target to push the target explicitly.
6510 (procfs_attach): Don't push the target if it is already pushed.
6511 (procfs_detach): Use inf_child_maybe_unpush_target.
6512 (procfs_create_inferior): Don't push the target if it is already
6514 (nto_native_ops): New global.
6515 (procfs_open): Reimplement.
6516 (procfs_native_open): New function.
6517 (init_procfs_targets): Install procfs_native_open as to_open of
6518 "target native". Store a pointer to the "native" target in
6520 * procfs.c (procfs_attach): Don't push the target if it is already
6522 (procfs_detach): Use inf_child_maybe_unpush_target.
6523 (procfs_mourn_inferior): Only unpush the target after mourning the
6524 inferior. Use inf_child_maybe_unpush_target.
6525 (procfs_init_inferior): Don't push the target if it is already
6527 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6528 if it is already pushed.
6530 2014-05-21 Pedro Alves <palves@redhat.com>
6532 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6533 and "procfs" targets are now called "native" instead.
6535 2014-05-21 Pedro Alves <palves@redhat.com>
6537 * go32-nat.c (go32_open): Delete.
6538 (go32_target): Don't override the to_open method.
6540 2014-05-21 Pedro Alves <palves@redhat.com>
6542 * nto-procfs.c (procfs_can_run): New function.
6543 (nto_procfs_ops): New global.
6544 (init_procfs_targets): New, based on procfs_target. Install
6545 "target native" in addition to "target procfs".
6546 (_initialize_procfs): Call init_procfs_targets instead of adding
6549 2014-05-21 Pedro Alves <palves@redhat.com>
6551 * windows-nat.c (windows_target): Don't override to_shortname,
6552 to_longname or to_doc.
6554 2014-05-21 Pedro Alves <palves@redhat.com>
6556 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6559 2014-05-21 Pedro Alves <palves@redhat.com>
6561 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6562 to_shortname, to_longname or to_doc.
6564 2014-05-21 Pedro Alves <palves@redhat.com>
6566 * go32-nat.c (go32_target): Don't override to_shortname,
6567 to_longname or to_doc.
6569 2014-05-21 Pedro Alves <palves@redhat.com>
6571 * inf-child.c (inf_child_open): Remove mention of "child".
6572 (inf_child_target): Rename target to "native" instead of "child".
6574 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6576 * Makefile.in (SFILES): Delete "regset.c".
6577 (COMMON_OBS): Delete "regset.o".
6579 * regset.h (regset_alloc): Delete prototype.
6581 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6583 * sparc-linux-tdep.c (sparc32_linux_gregset)
6584 (sparc32_linux_fpregset): New static regset structures.
6585 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6586 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6588 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6589 (sparc64_linux_fpregset): New static regset structures.
6590 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6591 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6592 New static regset structures.
6593 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6594 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6595 New static regset structures.
6596 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6597 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6598 New static regset structures.
6599 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6600 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6601 New static regset structures.
6602 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6604 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6606 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6607 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6608 register maps ("regmaps") from "*regset" to "*regmap". Do this
6609 for all regmap types and variables.
6610 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6611 (sparc32_linux_supply_core_gregset)
6612 (sparc32_linux_collect_core_gregset)
6613 (sparc32_linux_supply_core_fpregset)
6614 (sparc32_linux_collect_core_fpregset): Likewise.
6615 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6616 (sparc_gregmap, sparc_fpregmap): ... these.
6617 (sparc_supply_gregset, sparc_collect_gregset)
6618 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6619 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6620 (_initialize_sparc_nat): Rename regmaps.
6621 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6622 (sparc_gregmap, sparc_fpregmap): ... these.
6623 (sparc_supply_gregset, sparc_collect_gregset)
6624 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6625 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6627 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6628 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6630 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6632 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6633 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6634 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6636 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6637 (sparc32_bsd_fpregset): Rename to...
6638 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6639 (sparc32_bsd_fpregmap): ... these.
6640 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6641 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6642 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6643 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6644 (struct sparc_gregmap, struct sparc_fpregmap)
6645 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6646 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6647 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6648 (sparc32_supply_regset, sparc32_collect_gregset)
6649 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6651 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6652 (sparc64_linux_ptrace_gregmap): ... this.
6653 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6654 (_initialize_sparc64_linux_nat): Rename regmaps.
6655 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6656 (sparc64_linux_core_gregmap): ... this.
6657 (sparc64_linux_supply_core_gregset)
6658 (sparc64_linux_collect_core_gregset)
6659 (sparc64_linux_supply_core_fpregset)
6660 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6661 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6662 (sparc64_sol2_fpregset): Rename to...
6663 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6664 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6665 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6667 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6668 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6669 (sparc64_bsd_fpregset): Rename to...
6670 (struct sparc_gregmap, sparc64_sol2_gregmap)
6671 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6672 (sparc64_bsd_fpregmap): ... these.
6673 (sparc64_supply_gregset, sparc64_collect_gregset)
6674 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6676 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6677 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6678 (sparc64fbsd_gregmap): ... this.
6679 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6680 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6682 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6683 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6684 (sparc64nbsd_collect_fpregset): Likewise.
6685 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6686 (sparc64nbsd_gregmap): ... this.
6687 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6689 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6690 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6691 (sparc64obsd_gregmap): ... this.
6692 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6694 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6695 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6696 (sparc32nbsd_gregmap): ... this.
6697 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6700 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6702 * score-tdep.c (score7_linux_gregset): New static regset
6704 (score7_linux_regset_from_core_section): Remove dynamic regset
6706 (score_gdbarch_init): Drop allocation of tdep structure.
6707 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6709 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6711 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6713 (am33_regset_from_core_section): Remove dynamic regset
6716 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6718 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6719 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6721 (mips_linux_regset_from_core_section): Remove dynamic regset
6723 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6724 'gregset64', 'fpregset', and 'fpregset64'.
6725 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6726 deleted tdep fields.
6728 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6730 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6732 (amd64_regset_from_core_section): Remove dynamic regset
6734 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6736 (amd64obsd_regset_from_core_section): Remove dynamic regset
6738 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6740 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6741 x86-common regset supply function.
6742 * i386-tdep.c (i386_collect_gregset): Make static.
6743 (i386_gregset): New global regset structure.
6744 (i386_fpregset, i386_xstateregset): New static regset structures.
6745 (i386_regset_from_core_section): Remove dynamic regset
6747 (i386_gdbarch_init): Remove initialization of tdep fields
6748 'gregset', 'fpregset', and 'xstateregset'.
6749 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6750 'fpregset', and 'xstateregset'.
6751 (i386_collect_gregset): Remove prototype.
6752 (i386_gregset): New declaration.
6753 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6755 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6758 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6760 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6761 (arm_linux_vfpregset): New static regset structures.
6762 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6764 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6765 and 'vfpregset' fields.
6767 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6769 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6770 (aarch64_linux_fpregset): New static regset structures.
6771 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6772 of regset structures.
6773 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6776 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6778 * regset.h (struct regset): Remove gdbarch field.
6779 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6780 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6781 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6783 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6784 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6785 (ppc32_linux_vsxregset): Likewise.
6786 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6787 via the regcache instead of the regset.
6788 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6789 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6790 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6791 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6794 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6796 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6797 Constify structures.
6798 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6799 (alphanbsd_aout_gregset): Likewise.
6800 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6801 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6803 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6804 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6806 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6807 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6808 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6809 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6810 * m88k-tdep.c (m88k_gregset): Likewise.
6811 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6812 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6813 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6814 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6815 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6816 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6817 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6818 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6819 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6821 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6822 * sh-tdep.h (sh_corefile_gregset): Likewise.
6823 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6824 * vax-tdep.c (vax_gregset): Likewise.
6826 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6828 Fix TLS access for -static -pthread.
6829 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6830 (try_thread_db_load_1): Initialize it.
6831 (thread_db_get_thread_local_address): Call it if LM is zero.
6832 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6833 * target.h (struct target_ops) (to_get_thread_local_address): Add
6834 load_module_addr comment.
6836 2014-05-21 Pedro Alves <palves@redhat.com>
6838 * dcache.c (dcache_read_memory_partial): If reading the cache line
6839 fails, fallback to reading just the memory the caller wanted.
6841 2014-05-20 Doug Evans <dje@google.com>
6843 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6844 instead of get_current_arch.
6846 2014-05-20 Pedro Alves <palves@redhat.com>
6848 * NEWS: Mention that compare-sections now works with all targets.
6850 * remote.c (PACKET_qCRC): New enum value.
6851 (remote_verify_memory): Don't send qCRC if the target has no
6852 execution. Use packet_support/packet_ok. If the target doesn't
6853 support the qCRC packet, fallback to a deep memory copy.
6854 (compare_sections_command): Say "target image" instead of "remote
6856 (_initialize_remote): Add PACKET_qCRC to the list of config
6857 packets that have no associated command. Extend comment.
6858 * target.c (simple_verify_memory, default_verify_memory): New
6860 * target.h (struct target_ops) <to_verify_memory>: Default to
6861 default_verify_memory.
6862 (simple_verify_memory): New declaration.
6863 * target-delegates.c: Regenerate.
6865 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6867 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6869 2014-05-20 Hui Zhu <hui@codesourcery.com>
6870 Yao Qi <yao@codesourcery.com>
6873 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6874 and change address of sp and pc.
6876 2014-05-19 Tom Tromey <tromey@redhat.com>
6878 * gdbtypes.c (rank_function): Use XNEWVEC.
6879 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6881 2014-05-19 Doug Evans <dje@google.com>
6883 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6884 build_type_unit_groups and moved closer to only caller. Remove
6885 arguments. All references updated. Remove outdated .gdb_index
6887 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6888 build_type_psymtabs_1.
6890 2014-05-19 Doug Evans <dje@google.com>
6892 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6893 n_type_unit_groups, all_type_unit_groups. All uses removed.
6894 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6895 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6896 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6897 (add_type_unit_group_to_table): Delete.
6899 2014-05-19 Doug Evans <dje@google.com>
6901 * eval.c (evaluate_subexp_standard): Add some comments.
6903 2014-05-17 Doug Evans <xdje42@gmail.com>
6905 * progspace.c (remove_program_space): Delete, unused.
6906 * progspace.h (remove_program_space): Ditto.
6908 2014-05-17 Doug Evans <xdje42@gmail.com>
6910 * inferior.c (prune_inferiors): Fix comment.
6911 (remove_inferior_command): Call prune_program_spaces.
6913 2014-05-16 Doug Evans <dje@google.com>
6915 New command line option -D.
6917 * main.c (set_gdb_data_directory): New function.
6918 (captured_main): Recognize -D. Flag error for --data-directory "".
6919 Call set_gdb_data_directory.
6920 (print_gdb_help): Print --data-directory, -D.
6921 * main.h (set_gdb_data_directory): Declare.
6922 * top.c (staged_gdb_datadir): New static global.
6923 (set_gdb_datadir): Call set_gdb_data_directory
6924 (show_gdb_datadir): New function.
6925 (init_main): Update init of data-directory parameter.
6927 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6929 Import the "dirfd" gnulib module.
6930 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6931 * gnulib/aclocal.m4: Update.
6932 * gnulib/config.in: Update.
6933 * gnulib/configure: Update.
6934 * gnulib/import/Makefile.am: Update.
6935 * gnulib/import/Makefile.in: Update.
6936 * gnulib/import/dirfd.c: New.
6937 * gnulib/import/m4/dirfd.m4: New.
6938 * gnulib/import/m4/gnulib-cache.m4: Update.
6939 * gnulib/import/m4/gnulib-comp.m4: Update.
6941 2014-05-16 Pierre Muller <muller@sourceware.org>
6942 Yao Qi <yao@codesourcery.com>
6944 * valprint.c (print_wchar): Move the code on checking whether
6945 W is a printable wide char to the default branch of switch
6946 statement below. Call wchar_printable instead of gdb_iswprint.
6948 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6950 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6951 ldr.w and ldrd instructions.
6953 2014-05-15 Doug Evans <dje@google.com>
6955 * dwarf2read.c (read_structure_type): Delete outdated comments.
6957 2014-05-14 Tom Tromey <tromey@redhat.com>
6959 * macrocmd.c (print_macro_definition): Reindent.
6961 2014-05-13 Doug Evans <xdje42@gmail.com>
6963 * python/py-cmd.c (cmdpy_completer): Add comment.
6964 (completers): Make const.
6966 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6968 * infrun.c (resume): Remove should_resume (unused). Move up
6969 declaration of resume_ptid.
6971 2014-05-13 Tom Tromey <tromey@redhat.com>
6973 * language.h (unop_type_check): Remove.
6974 (binop_type_check): Don't declare.
6976 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6978 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6979 call to regcache_raw_collect.
6981 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6983 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6984 mi_console->quote as the quoting character.
6986 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6988 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6990 2014-04-29 Tom Tromey <tromey@redhat.com>
6992 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6993 "show debug varobj".
6995 2014-05-07 Kyle McMartin <kyle@redhat.com>
6997 Pushed by Joel Brobecker <brobecker@adacore.com>.
6998 * aarch64-tdep.c (aarch64_software_single_step): New function.
6999 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7000 with aarch64_software_single_step.
7002 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7006 2014-05-05 Keith Seitz <keiths@redhat.com>
7008 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7009 variable or history value is successfully parsed.
7011 2014-05-05 Yao Qi <yao@codesourcery.com>
7012 Pedro Alves <palves@redhat.com>
7014 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7015 address of blocks that intersects the requested range. Trim
7016 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7018 * ctf.c (ctf_xfer_partial): Likewise.
7020 2014-05-05 Yao Qi <yao@codesourcery.com>
7022 * printcmd.c (display_command): Remove the check to
7023 target_has_execution.
7025 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7027 * ppcobsd-nat.c: Include "obsd-nat.h".
7028 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7030 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7032 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7034 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7035 and 16-bit signed and unsigned arguments. Update comment.
7036 (stap_parse_probe_arguments): Extend code to handle such
7037 arguments. Use warning instead of complaint to notify about
7038 unrecognized bitness.
7040 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7042 PR breakpoints/16889
7043 * stap-probe.c (stap_parse_probe_arguments): Simplify
7044 check for non-prefixed probes (i.e., probes whose
7045 arguments do not start with "N@"). Always set the
7046 argument type to a sane value.
7048 2014-05-01 David Taylor <dtaylor@emc.com>
7050 * remote.c (compare_sections_command): Add -r option to compare
7051 all loadable read-only sections.
7053 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7055 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7056 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7058 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7059 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7060 Remove unused CORE_ADDR argument. Update all callers.
7062 2014-04-29 Pedro Alves <palves@redhat.com>
7064 * remote.c (struct packet_config) <detect>: Extend comment.
7065 (add_packet_config_cmd): Don't set the config's detect or support
7067 (init_all_packet_configs): Also initialize the config's 'detect'
7069 (reset_all_packet_configs_support): New function.
7070 (remote_open_1): Call reset_all_packet_configs_support instead of
7071 init_all_packet_configs.
7072 (_initialize_remote): Initialize all packet configs. Assert that
7073 all packets have an associated command, except a few known
7076 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7078 * dwarf2read.c (read_subrange_type): Handle dynamic
7079 DW_AT_lower_bound attributes.
7081 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7083 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7084 dynamic bounds before computing its upper bound.
7085 (ada_discrete_type_low_bound): Same as above with the lower bound.
7087 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7089 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7090 range types. Adjust the array handling implementation to
7091 take advantage of this change.
7092 (resolve_dynamic_range): New function, mostly extracted from
7093 resolve_dynamic_bounds.
7094 (resolve_dynamic_array): New function, mostly extracted from
7095 resolve_dynamic_bounds.
7096 (resolve_dynamic_bounds): Delete.
7097 (resolve_dynamic_type): Reimplement. Add handling of
7098 TYPE_CODE_RANGE types.
7100 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7102 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7103 handling of parallel ___XA types.
7105 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7107 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7108 unnecessary second call to static_unwrap_type.
7110 2014-04-27 Hui Zhu <hui@codesourcery.com>
7112 * stack.c (print_frame_info): Call do_gdb_disassembly with
7113 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7115 2014-04-26 Doug Evans <xdje42@gmail.com>
7117 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7119 2014-04-25 Pedro Alves <palves@redhat.com>
7122 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7123 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7124 and newline from built string.
7125 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7126 (linux_ptrace_attach_fail_reason): ... this.
7127 * linux-nat.c (linux_nat_attach): Adjust to use
7128 linux_ptrace_attach_fail_reason.
7130 2014-04-25 Pedro Alves <palves@redhat.com>
7132 * remote.c (struct remote_state): Remove multi_process_aware,
7133 non_stop_aware, cond_tracepoints, cond_breakpoints,
7134 breakpoint_commands, fast_tracepoints, static_tracepoints,
7135 install_in_trace, disconnected_tracing,
7136 enable_disable_tracepoints, string_tracing, and
7137 augmented_libraries_svr4_read fields.
7138 (remote_multi_process_p): Move further below in the file.
7139 (struct packet_config): Add comments.
7140 (update_packet_config): Delete function.
7141 (show_packet_config_cmd): Use packet_config_support.
7142 (add_packet_config_cmd): Use NULL as set callback.
7143 (packet_ok): "set remote foo-packet"-style commands no longer
7144 change config->supported -- adjust.
7145 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7146 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7147 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7148 (PACKET_QNonStop, PACKET_multiprocess_feature)
7149 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7150 (PACKET_DisconnectedTracing_feature)
7151 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7152 (set_remote_protocol_packet_cmd): Delete function.
7153 (packet_config_support, packet_support): New functions.
7154 (set_remote_protocol_Z_packet_cmd): Don't call
7155 update_packet_config.
7156 (remote_query_attached, remote_pass_signals)
7157 (remote_program_signals, remote_threads_info)
7158 (remote_threads_extra_info, remote_start_remote): Use
7160 (remote_start_remote): Use packet_config_support and
7162 (init_all_packet_configs): Set all packets to unknown support,
7163 instead of calling update_packet_config.
7164 (remote_check_symbols): Use packet_support.
7165 (remote_supported_packet): Unconditionally set the packet config's
7167 (remote_multi_process_feature, remote_non_stop_feature)
7168 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7169 (remote_breakpoint_commands_feature)
7170 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7171 (remote_install_in_trace_feature)
7172 (remote_disconnected_tracing_feature)
7173 (remote_enable_disable_tracepoint_feature)
7174 (remote_string_tracing_feature)
7175 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7176 (remote_protocol_features): Adjust to use remote_supported_packet
7177 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7178 "ConditionalTracepoints", "ConditionalBreakpoints",
7179 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7180 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7181 "EnableDisableTracepoints", and "tracenz".
7182 (remote_query_supported): Use packet_support.
7183 (remote_open_1): Adjust.
7184 (extended_remote_attach_1): Use packet_support. Switch on the
7185 result of packet_ok instead of checking whether the packet ended
7187 (remote_vcont_resume): Use packet_support.
7188 (remote_resume, remote_stop_ns, fetch_register_using_p)
7189 (remote_prepare_to_store, store_register_using_P)
7190 (check_binary_download, remote_write_bytes): Use packet_support.
7191 (remote_vkill): Use packet_support. Switch on the result of
7192 packet_ok instead of checking whether the packet ended up
7194 (extended_remote_supports_disable_randomization): Use
7196 (extended_remote_run): Switch on the result of packet_ok instead
7197 of checking whether the packet ended up disabled.
7198 (remote_insert_breakpoint, remote_remove_breakpoint)
7199 (remote_insert_watchpoint, remote_remove_watchpoint)
7200 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7202 (remote_search_memory): Use packet_config_support.
7203 (remote_get_thread_local_address, remote_get_tib_address)
7204 (remote_hostio_send_command, remote_can_execute_reverse): Use
7206 (remote_supports_cond_tracepoints)
7207 (remote_supports_cond_breakpoints)
7208 (remote_supports_fast_tracepoints)
7209 (remote_supports_static_tracepoints)
7210 (remote_supports_install_in_trace)
7211 (remote_supports_enable_disable_tracepoint)
7212 (remote_supports_string_tracing)
7213 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7214 the packet config says the feature is enabled or disabled.
7215 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7216 (remote_get_trace_status): Use packet_support.
7217 (remote_set_disconnected_tracing): Adjust to check whether the
7218 feature is enabled with packet_support.
7219 (remote_set_trace_buffer_size, remote_use_agent)
7220 (remote_can_use_agent, remote_supports_btrace): Use
7222 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7223 Use packet_config_support.
7224 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7225 the packet config says the feature is enabled or disabled.
7226 (set_range_stepping): Use packet_support.
7228 2014-04-25 Tom Tromey <tromey@redhat.com>
7230 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7233 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7235 * NEWS: Mention support for C99 variable length arrays.
7237 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7239 * ada-lang.c (standard_exc): Expand introductory comment.
7241 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7242 Walfred Tedeschi <walfred.tedeschi@intel.com>
7244 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7246 (amd64_linux_read_description): Add code to handle AVX512 xstate
7247 mask and return respective tdesc.
7248 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7249 and features/i386/x32-avx512-linux.c.
7250 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7251 (amd64_linux_core_read_description): Add code to handle AVX512
7252 xstate mask and return respective tdesc.
7253 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7254 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7256 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7257 (tdesc_amd64_avx512_linux): New prototype.
7258 (tdesc_x32_avx512_linux): Likewise.
7259 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7260 features/i386/x32-avx512.c.
7261 (amd64_ymm_avx512_names): New register names for pseudo
7263 (amd64_ymmh_avx512_names): New register names for raw registers
7265 (amd64_k_names): New register names for K registers.
7266 (amd64_zmmh_names): New register names for ZMM raw registers.
7267 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7268 (amd64_xmm_avx512_names): New register names for XMM16-31
7270 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7272 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7273 if feature is present.
7274 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7275 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7276 (AMD64_NUM_REGS): Adjust to new number of registers.
7277 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7278 registers supplied via XSTATE by AVX512 registers.
7279 (i386_linux_read_description): Add case for AVX512.
7280 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7281 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7282 (i386_linux_core_read_description): Add case for AVX512.
7283 (i386_linux_init_abi): Install supported register note section
7285 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7287 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7288 registers to be number of zmm7h + 1.
7289 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7290 * i386-tdep.c: Include features/i386/i386-avx512.c.
7291 (i386_zmm_names): Add ZMM pseudo register names array.
7292 (i386_zmmh_names): Add ZMM raw register names array.
7293 (i386_k_names): Add K raw register names array.
7294 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7295 registers. AVX512 has 16 more ZMM registers than there are YMM
7297 (i386_zmmh_regnum_p): Add function to look up register number of
7299 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7300 (i386_k_regnum_p): Likewise for K raw registers.
7301 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7302 registers added by AVX512.
7303 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7304 registers added by AVX512.
7305 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7307 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7308 (i386_pseudo_register_name): Add ZMM pseudo registers.
7309 (i386_zmm_type): Construct and return vector registers type for ZMM
7311 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7312 ZMM0-31 pseudo registers and K registers.
7313 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7314 and YMM16-31 registers from register cache.
7315 (i386_pseudo_register_write): Add code to write K, ZMM and
7317 (i386_register_reggroup_p): Add code to include/exclude AVX512
7318 registers in/from respective register groups.
7319 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7320 registers if feature is present in xcr0.
7321 (i386_gdbarch_init): Add code to initialize AVX512 feature
7322 variables in tdep structure, wire in pseudo registers and call
7323 initialize_tdesc_i386_avx512.
7324 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7326 (i386_regnum): Add AVX512 registers.
7327 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7328 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7329 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7330 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7332 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7333 (i386_ymm_avx512_regnum_p): Likewise.
7334 (i386_k_regnum_p): Likewise.
7335 (i386_zmm_regnum_p): Likewise.
7336 (i386_zmmh_regnum_p): Likewise.
7337 * i387-tdep.c : Update year in copyright notice.
7338 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7340 (XSAVE_YMM_AVX512_ADDR): New macro.
7341 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7343 (XSAVE_XMM_AVX512_ADDR): New macro.
7344 (xsave_avx512_k_offset): New table for K register offsets in
7346 (XSAVE_AVX512_K_ADDR): New macro.
7347 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7349 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7350 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7352 (i387_collect_xsave): Add code to collect AVX512 registers from
7354 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7355 of XMM16-31 registers.
7356 (I387_NUM_K_REGS): New define for number of K registers.
7357 (I387_K0_REGNUM): New define for K0 register number.
7358 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7359 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7360 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7362 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7363 (I387_XMM16_REGNUM): New define for XMM16 register number.
7364 (I387_YMM0_REGNUM): New define for YMM0 register number.
7365 (I387_KEND_REGNUM): New define for last K register number.
7366 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7367 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7369 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7371 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7373 * features/Makefile: Add AVX512 related files.
7374 * features/i386/32bit-avx512.xml: New file.
7375 * features/i386/64bit-avx512.xml: Likewise.
7376 * features/i386/amd64-avx512-linux.c: Likewise.
7377 * features/i386/amd64-avx512-linux.xml: Likewise.
7378 * features/i386/amd64-avx512.c: Likewise.
7379 * features/i386/amd64-avx512.xml: Likewise.
7380 * features/i386/i386-avx512-linux.c: Likewise.
7381 * features/i386/i386-avx512-linux.xml: Likewise.
7382 * features/i386/i386-avx512.c: Likewise.
7383 * features/i386/i386-avx512.xml: Likewise.
7384 * features/i386/x32-avx512-linux.c: Likewise.
7385 * features/i386/x32-avx512-linux.xml: Likewise.
7386 * features/i386/x32-avx512.c: Likewise.
7387 * features/i386/x32-avx512.xml: Likewise.
7388 * regformats/i386/amd64-avx512-linux.dat: New file.
7389 * regformats/i386/amd64-avx512.dat: Likewise.
7390 * regformats/i386/i386-avx512-linux.dat: Likewise.
7391 * regformats/i386/i386-avx512.dat: Likewise.
7392 * regformats/i386/x32-avx512-linux.dat: Likewise.
7393 * regformats/i386/x32-avx512.dat: Likewise.
7394 * NEWS: Add note about new support for AVX512.
7397 2014-04-23 Pedro Alves <palves@redhat.com>
7399 * breakpoint.c (insert_bp_location): Tolerate errors if the
7400 breakpoint is set in a user-loaded objfile.
7401 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7402 location is marked shlib_disabled. If the breakpoint is set in a
7403 user-loaded objfile is a GDB-side memory breakpoint, validate it
7404 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7405 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7407 * mem-break.c (memory_validate_breakpoint): New function.
7408 * objfiles.c (userloaded_objfile_contains_address_p): New
7410 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7411 * target.h (memory_validate_breakpoint): New declaration.
7413 2014-04-23 Pedro Alves <palves@redhat.com>
7415 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7416 the breakpoint is set in a shared library, only suppress
7417 errors for software breakpoints, not hardware breakpoints.
7419 2014-04-22 Pedro Alves <palves@redhat.com>
7421 * infrun.c (schedlock_applies): New function, factored out from
7422 find_thread_needs_step_over.
7423 (find_thread_needs_step_over): Use it.
7424 (switch_back_to_stepped_thread): Always clear trap_expected if the
7425 step over is finished. Return early if scheduler locking applies.
7426 Look for the stepping thread and a potential step-over thread with
7428 (currently_stepping_or_nexting_callback): Delete.
7430 2014-04-22 Nick Clifton <nickc@redhat.com>
7432 * NEWS: Mention that ARM sim now supports tracing.
7434 2014-04-22 Yao Qi <yao@codesourcery.com>
7436 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7438 * tracefile.c (tracefile_fetch_registers): ... it. New
7440 * tracefile.h (tracefile_fetch_registers): Declare.
7441 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7442 tracefile_fetch_registers.
7444 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7447 * windows-nat.c (thread_rec): Don't display a warning when
7448 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7449 fails for any reason, set th->suspended to -1, so that we don't
7450 try to resume such a thread. Also, don't return NULL in these
7451 cases, to avoid completely ruin the session due to "PC register is
7452 not available" error.
7453 (do_windows_fetch_inferior_registers): Check errors in
7454 GetThreadContext call.
7455 (windows_continue): Accept an additional argument KILLED; if not
7456 zero, ignore errors in the SetThreadContext call, since the
7457 inferior was killed and is shutting down.
7458 (windows_resume, get_windows_debug_event)
7459 (windows_create_inferior, windows_mourn_inferior)
7460 (windows_kill_inferior): All callers of windows_continue changed
7461 to adjust to its new calling sequence.
7463 2014-04-19 Yao Qi <yao@codesourcery.com>
7465 * ctf.c (ctf_open): Call post_create_inferior.
7467 2014-04-19 Yao Qi <yao@codesourcery.com>
7469 * ctf.c (handle_id): New static variable.
7470 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7471 value. Get the declaration of event "register" and get length
7472 of field "contents".
7474 2014-04-19 Yao Qi <yao@codesourcery.com>
7476 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7478 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7480 * valops.c (oload_method_static): Remove unnecessary argument
7481 METHOD. Update all callers.
7483 2014-04-18 Pedro alves <palves@redhat.com>
7484 Tom Tromey <tromey@redhat.com>
7487 * frame.c (get_prev_frame_1): Rename to ...
7488 (get_prev_frame_always): ... this, and make extern. Adjust.
7489 (skip_artificial_frames): Use get_prev_frame_always.
7490 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7491 (get_frame_unwind_stop_reason): Adjust to rename.
7492 * frame.h (get_prev_frame_always): Declare.
7493 * inline-frame.c: Include frame.h.
7494 (inline_frame_this_id): Use get_prev_frame_always.
7496 2014-04-18 Tristan Gingold <gingold@adacore.com>
7498 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7499 code by using bfd_mach_o_get_base_address.
7501 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7503 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7504 (spu_ax_pseudo_register_collect): New function.
7505 (spu_ax_pseudo_register_push_stack): Likewise.
7506 (spu_dwarf_reg_to_regnum): Likewise.
7507 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7509 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7511 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7512 Replace FRAME argument with FRAME_ID.
7513 * gdbarch.c, gdbarch.h: Regenerate.
7514 * findvar.c (default_value_from_register): Add GDBARCH argument;
7515 replace FRAME by FRAME_ID. No longer call get_frame_id.
7516 (value_from_register): Update call to gdbarch_value_from_register.
7517 * value.h (default_value_from_register): Update prototype.
7518 * s390-linux-tdep.c (s390_value_from_register): Update interface
7519 and call to default_value_from_register.
7520 * spu-tdep.c (spu_value_from_register): Likewise.
7522 * findvar.c (address_from_register): Remove TYPE argument.
7523 Do not call value_from_register; use gdbarch_value_from_register
7524 with null_frame_id instead.
7525 * value.h (address_from_register): Update prototype.
7526 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7527 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7528 address_from_register interface change.
7530 2014-04-17 Yao Qi <yao@codesourcery.com>
7532 * gdbtypes.h: Update comments to link to types and macros'
7535 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7537 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7539 2014-04-16 Keith Seitz <keiths@redhat.com>
7542 * dwarf2read.c (skip_one_die): Check that all relative-offset
7543 sibling DIEs fall within range of the current reader's buffer.
7544 (read_partial_die): Likewise.
7546 2014-04-16 Keith Seitz <keiths@redhat.com>
7549 * cp-namespace.c (lookup_symbol_file): If the type name of
7550 `this' is NULL, return immediately.
7552 2014-04-14 Keith Seitz <keiths@redhat.com>
7555 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7556 from symbol_matches_domain in symtab.c. All local callers
7557 of symbol_matches_domain updated.
7558 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7559 search STRUCT_DOMAIN.
7560 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7561 independently. standard_lookup will do that automatically.
7562 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7563 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7564 (cp_lookup_symbol_in_namespace): Likewise.
7565 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7566 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7567 may return a STRUCT_DOMAIN match.
7568 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7569 * cp-support.c: Include language.h.
7570 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7572 * psymtab.c (match_partial_symbol): Compare the requested
7573 domain with the symbol's domain directly.
7574 (lookup_partial_symbol): Likewise.
7575 * symtab.c (lookup_symbol_in_language): Explain when/why
7576 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7577 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7578 appropriate languages.
7579 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7580 and moved to ada-lang.c
7581 (lookup_block_symbol): Explain that this function only returns
7582 symbol matching the requested DOMAIN.
7583 Compare the requested domain with the symbol's domain directly.
7584 (iterate_over_symbols): Compare the requested domain with the
7585 symbol's domain directly.
7586 * symtab.h (symbol_matches_domain): Remove.
7588 2014-04-14 Tom Tromey <tromey@redhat.com>
7591 * c-exp.y (type_aggregate_p): New function.
7592 (qualified_name, classify_inner_name): Use it.
7593 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7594 and TYPE_TARGET_TYPE of an enum type.
7595 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7597 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7598 handle TYPE_DECLARED_CLASS.
7599 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7601 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7602 * valops.c (enum_constant_from_type): New function.
7603 (value_aggregate_elt): Use it.
7604 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7607 2014-04-14 Tom Tromey <tromey@redhat.com>
7609 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7610 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7612 * value.h (value_aggregate_elt): Update.
7614 2014-04-14 Tom Tromey <tromey@redhat.com>
7616 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7618 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7620 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7621 (evaluate_subexp_standard): Pass noside argument.
7622 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7623 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7624 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7625 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7626 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7628 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7630 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7631 points to a constant blob.
7633 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7635 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7636 property and store it as the high bound and flag the range accordingly.
7637 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7638 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7639 * gdbtypes.h (enum range_flags): New enum.
7640 (struct range_bounds): Add flags member.
7642 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7644 * c-typeprint.c (c_type_print_varspec_suffix): Added
7645 check for not yet resolved high bound. If unresolved, print
7646 "variable length" string to the console instead of random
7649 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7651 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7653 (ada_template_to_fixed_record_type_1): Likewise.
7654 (ada_to_fixed_type_1): Likewise.
7655 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7656 (cp_print_value): Likewise.
7657 * d-valprint.c (dynamic_array_type): Likewise.
7658 * findvar.c (address_of_variable): Likewise.
7659 * jv-valprint.c (java_value_print): Likewise.
7660 * valops.c (value_ind): Likewise.
7661 * value.c (coerce_ref): Likewise.
7663 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7665 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7666 value and retrieve the dynamic type size.
7668 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7670 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7671 passed to sizeof is dynamic evaluate the argument to compute the length.
7673 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7674 Joel Brobecker <brobecker@adacore.com>
7676 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7677 (dwarf2_evaluate_property): New function.
7678 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7679 * dwarf2read.c (attr_to_dynamic_prop): New function.
7680 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7682 * gdbtypes.c: Include dwarf2loc.h.
7683 (is_dynamic_type): New function.
7684 (resolve_dynamic_type): New function.
7685 (resolve_dynamic_bounds): New function.
7686 (get_type_length): New function.
7687 (check_typedef): Use get_type_length to compute type length.
7688 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7689 (TYPE_LOW_BOUND_KIND): New macro.
7690 (is_dynamic_type): New function prototype.
7691 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7692 to resolve dynamic properties of the type. Update comment.
7693 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7695 2014-04-14 Richard Henderson <rth@redhat.com>
7697 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7699 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7700 Doug Evans <xdje42@gmail.com>
7702 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7703 dereference TYPE_CODE_REF values.
7705 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7707 Revert the following changes due to regressions:
7709 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7710 (dwarf2_evaluate_property): New function.
7711 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7712 * dwarf2read.c (attr_to_dynamic_prop): New function.
7713 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7715 * gdbtypes.c: Include dwarf2loc.h.
7716 (is_dynamic_type): New function.
7717 (resolve_dynamic_type): New function.
7718 (resolve_dynamic_bounds): New function.
7719 (get_type_length): New function.
7720 (check_typedef): Use get_type_length to compute type length.
7721 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7722 (TYPE_LOW_BOUND_KIND): New macro.
7723 (is_dynamic_type): New function prototype.
7724 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7725 to resolve dynamic properties of the type. Update comment.
7726 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7728 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7729 passed to sizeof is dynamic evaluate the argument to compute the length.
7731 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7732 value and retrieve the dynamic type size.
7734 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7735 (ada_template_to_fixed_record_type_1): Likewise.
7736 (ada_to_fixed_type_1): Likewise.
7737 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7738 (cp_print_value): Likewise.
7739 * d-valprint.c (dynamic_array_type): Likewise.
7740 * eval.c (evaluate_subexp_with_coercion): Likewise.
7741 * findvar.c (address_of_variable): Likewise.
7742 * jv-valprint.c (java_value_print): Likewise.
7743 * valops.c (value_ind): Likewise.
7744 * value.c (coerce_ref): Likewise.
7746 * c-typeprint.c (c_type_print_varspec_suffix): Added
7747 check for not yet resolved high bound. If unresolved, print
7748 "variable length" string to the console instead of random
7751 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7752 property and store it as the high bound and flag the range accordingly.
7753 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7754 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7755 * gdbtypes.h (enum range_flags): New enum.
7756 (struct range_bounds): Add flags member.
7758 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7759 points to a constant blob.
7761 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7762 (evaluate_subexp_standard): Pass noside argument.
7763 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7764 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7765 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7766 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7767 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7769 2014-04-11 Keith Seitz <keiths@redhat.com>
7772 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7773 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7776 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7778 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7779 (evaluate_subexp_standard): Pass noside argument.
7780 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7781 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7782 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7783 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7784 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7786 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7788 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7789 points to a constant blob.
7791 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7793 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7794 property and store it as the high bound and flag the range accordingly.
7795 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7796 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7797 * gdbtypes.h (enum range_flags): New enum.
7798 (struct range_bounds): Add flags member.
7800 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7802 * c-typeprint.c (c_type_print_varspec_suffix): Added
7803 check for not yet resolved high bound. If unresolved, print
7804 "variable length" string to the console instead of random
7807 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7809 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7810 (ada_template_to_fixed_record_type_1): Likewise.
7811 (ada_to_fixed_type_1): Likewise.
7812 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7813 (cp_print_value): Likewise.
7814 * d-valprint.c (dynamic_array_type): Likewise.
7815 * eval.c (evaluate_subexp_with_coercion): Likewise.
7816 * findvar.c (address_of_variable): Likewise.
7817 * jv-valprint.c (java_value_print): Likewise.
7818 * valops.c (value_ind): Likewise.
7819 * value.c (coerce_ref): Likewise.
7821 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7823 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7824 value and retrieve the dynamic type size.
7826 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7828 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7829 passed to sizeof is dynamic evaluate the argument to compute the length.
7831 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7833 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7834 (dwarf2_evaluate_property): New function.
7835 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7836 * dwarf2read.c (attr_to_dynamic_prop): New function.
7837 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7839 * gdbtypes.c: Include dwarf2loc.h.
7840 (is_dynamic_type): New function.
7841 (resolve_dynamic_type): New function.
7842 (resolve_dynamic_bounds): New function.
7843 (get_type_length): New function.
7844 (check_typedef): Use get_type_length to compute type length.
7845 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7846 (TYPE_LOW_BOUND_KIND): New macro.
7847 (is_dynamic_type): New function prototype.
7848 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7849 to resolve dynamic properties of the type. Update comment.
7850 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7852 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7854 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7855 declaring high/low bounds and change uses accordingly. Call
7856 create_range_type instead of create_static_range_type.
7857 * gdbtypes.c (create_range_type): New function.
7858 (create_range_type): Convert bounds into struct bound_prop and pass
7859 them to create_range_type.
7860 * gdbtypes.h (struct bound_prop): New struct.
7861 (create_range_type): New function prototype.
7862 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7863 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7864 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7866 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7868 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7870 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7871 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7872 * ada-lang.c: All uses of create_range_type updated.
7873 * coffread.c: All uses of create_range_type updated.
7874 * dwarf2read.c: All uses of create_range_type updated.
7875 * f-exp.y: All uses of create_range_type updated.
7876 * m2-valprint.c: All uses of create_range_type updated.
7877 * mdebugread.c: All uses of create_range_type updated.
7878 * stabsread.c: All uses of create_range_type updated.
7879 * valops.c: All uses of create_range_type updated.
7880 * valprint.c: All uses of create_range_type updated.
7882 2014-04-10 Pedro Alves <palves@redhat.com>
7884 * breakpoint.c (single_step_breakpoints)
7885 (single_step_gdbarch): Move up in the file.
7886 (one_breakpoint_xfer_memory): New function, factored out from ...
7887 (breakpoint_xfer_memory): ... here. Also process single-step
7890 2014-04-09 Tristan Gingold <gingold@adacore.com>
7892 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7894 (darwin_decode_exception_message): Free port only after use.
7896 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7898 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7899 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7900 when setting the size of call_length.
7902 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7904 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7905 dereference TYPE_CODE_REF values.
7907 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7909 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7910 end of warning message.
7912 2014-04-03 Doug Evans <dje@google.com>
7914 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7915 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7917 2014-04-02 Alan Modra <amodra@gmail.com>
7919 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7920 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7921 (struct symbol_file_add_from_memory_args): Add size field.
7922 (find_vdso_size): New function.
7923 (add_vsyscall_page): Attempt to find vdso size.
7925 2014-04-01 Doug Evans <dje@google.com>
7927 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7929 2014-04-01 Tristan Gingold <gingold@adacore.com>
7931 * darwin-nat.c (darwin_encode_reply): Add prototype.
7932 (darwin_decode_exception_message): Reply to unknown inferiors.
7933 (darwin_decode_message): Handle message by id. Ignore message
7934 to unknown inferior.
7935 (darwin_wait): Discard unknown messages, add debug trace.
7937 2014-03-31 Doug Evans <dje@google.com>
7939 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7942 2014-03-31 Doug Evans <dje@google.com>
7944 New option "set print symbol-loading".
7946 * solib.c (solib_read_symbols): Only print symbol loading messages
7948 (solib_add): If symbol loading is in "brief" mode, notify user
7949 symbols are being loaded.
7950 (reload_shared_libraries_1): Ditto.
7951 * symfile.c (print_symbol_loading_off): New static global.
7952 (print_symbol_loading_brief): New static global.
7953 (print_symbol_loading_full): New static global.
7954 (print_symbol_loading_enums): New static global.
7955 (print_symbol_loading): New static global.
7956 (print_symbol_loading_p): New function.
7957 (symbol_file_add_with_addrs): Only print symbol loading messages
7959 (_initialize_symfile): Register "print symbol-loading" set/show
7961 * symfile.h (print_symbol_loading_p): Declare.
7963 2014-03-30 Doug Evans <xdje42@gmail.com>
7965 * infrun.c (set_last_target_status): New function.
7966 (handle_inferior_event): Call it.
7968 2014-03-30 Doug Evans <xdje42@gmail.com>
7970 * inferior.h (enum stop_kind): Improve comment.
7972 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7974 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7975 a reference, strip the reference layer before calling
7976 the lang_ops value_has_mutated callback.
7978 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7980 Remove some globals from our parser.
7981 * language.c (unk_lang_parser): Add "struct parser_state"
7983 * language.h (struct language_defn) <la_parser>: Likewise.
7984 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7985 (initialize_expout): Add "struct parser_state" argument.
7986 Rewrite function to use the parser state.
7987 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7988 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7989 write_exp_elt_longcst, write_exp_elt_dblcst,
7990 write_exp_elt_decfloatcst, write_exp_elt_type,
7991 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7992 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7993 write_dollar_variable): Likewise.
7994 (parse_exp_in_context_1): Use parser state.
7995 (insert_type_address_space): Add "struct parser_state" argument.
7997 (increase_expout_size): New function.
7998 * parser-defs.h: Forward declare "struct language_defn" and
7999 "struct parser_state".
8000 (expout, expout_size, expout_ptr): Remove extern declarations.
8001 (parse_gdbarch, parse_language): Rewrite macro declarations to
8002 accept the parser state.
8003 (struct parser_state): New struct.
8004 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8005 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8006 write_exp_elt_decfloatcst, write_exp_elt_type,
8007 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8008 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8009 write_exp_msymbol, write_dollar_variable,
8010 mark_struct_expression, insert_type_address_space): Add "struct
8011 parser_state" argument.
8012 (increase_expout_size): New function.
8013 * utils.c (do_clear_parser_state): New function.
8014 (make_cleanup_clear_parser_state): Likewise.
8015 * utils.h (make_cleanup_clear_parser_state): New function
8017 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8018 Update calls to write_exp* in order to pass the parser state.
8019 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8020 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8021 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8022 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8023 * stap-probe.c (stap_parse_register_operand): Likewise.
8024 (stap_parse_single_operand): Likewise.
8025 (stap_parse_argument_1): Likewise.
8026 (stap_parse_argument): Use parser state.
8027 * stap-probe.h: Include "parser-defs.h".
8028 (struct stap_parse_info) <pstate>: New field.
8029 * c-exp.y (parse_type): Rewrite to use parser state.
8030 (yyparse): Redefine to c_parse_internal.
8031 (pstate): New global variable.
8032 (parse_number): Add "struct parser_state" argument.
8033 (write_destructor_name): Likewise.
8034 (type_exp): Update calls to write_exp* and similars in order to
8036 (exp1, exp, variable, qualified_name, space_identifier,
8037 typename, typebase): Likewise.
8038 (write_destructor_name, parse_number, lex_one_token,
8039 classify_name, classify_inner_name, c_parse): Add "struct
8040 parser_state" argument. Update function to use parser state.
8041 * c-lang.h: Forward declare "struct parser_state".
8042 (c_parse): Add "struct parser_state" argument.
8043 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8044 (yyparse): Redefine macro to ada_parse_internal.
8045 (pstate): New variable.
8046 (write_int, write_object_renaming, write_var_or_type,
8047 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8048 type_int, type_long, type_long_long, type_float, type_double,
8049 type_long_double, type_char, type_boolean, type_system_address):
8050 Add "struct parser_state" argument.
8051 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8052 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8053 var_or_type, aggregate, aggregate_component_list,
8054 positional_list, others, component_group,
8055 component_associations): Update calls to write_exp* and similar
8056 functions in order to use parser state.
8057 (ada_parse, write_var_from_sym, write_int,
8058 write_exp_op_with_string, write_object_renaming,
8059 find_primitive_type, write_selectors, write_ambiguous_var,
8060 write_var_or_type, write_name_assoc, type_int, type_long,
8061 type_long_long, type_float, type_double, type_long_double,
8062 type_char, type_boolean, type_system_address): Add "struct
8063 parser_state" argument. Adjust function to use parser state.
8064 * ada-lang.c (parse): Likewise.
8065 * ada-lang.h: Forward declare "struct parser_state".
8066 (ada_parse): Add "struct parser_state" argument.
8067 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8068 calls to both functions.
8069 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8071 (yyparse): Redefine macro to f_parse_internal.
8072 (pstate): New variable.
8073 (parse_number): Add "struct parser_state" argument.
8074 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8075 and similars in order to use parser state.
8076 (parse_number): Adjust code to use parser state.
8078 (f_parse): New function.
8079 * f-lang.h: Forward declare "struct parser_state".
8080 (f_parse): Add "struct parser_state" argument.
8081 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8083 (yyparse): Redefine macro for java_parse_internal.
8084 (pstate): New variable.
8085 (push_expression_name, push_expression_name, insert_exp): Add
8086 "struct parser_state" argument.
8087 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8088 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8089 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8090 PostIncrementExpression, PostDecrementExpression,
8091 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8092 UnaryExpressionNotPlusMinus, CastExpression,
8093 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8094 RelationalExpression, EqualityExpression, AndExpression,
8095 ExclusiveOrExpression, InclusiveOrExpression,
8096 ConditionalAndExpression, ConditionalOrExpression,
8097 ConditionalExpression, Assignment, LeftHandSide): Update
8098 calls to write_exp* and similars in order to use parser state.
8099 (parse_number): Ajust code to use parser state.
8101 (java_parse): New function.
8102 (push_variable): Add "struct parser_state" argument. Adjust
8103 code to user parser state.
8104 (push_fieldnames, push_qualified_expression_name,
8105 push_expression_name, insert_exp): Likewise.
8106 * jv-lang.h: Forward declare "struct parser_state".
8107 (java_parse): Add "struct parser_state" argument.
8108 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8110 (yyparse): Redefine macro to m2_parse_internal.
8111 (pstate): New variable.
8112 (type_exp, exp, fblock, variable, type): Update calls to
8113 write_exp* and similars to use parser state.
8115 (m2_parse): New function.
8116 * m2-lang.h: Forward declare "struct parser_state".
8117 (m2_parse): Add "struct parser_state" argument.
8118 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8119 * objc-lang.h: Forward declare "struct parser_state".
8120 (end_msglist): Add "struct parser_state" argument.
8121 * p-exp.y (parse_type): Rewrite macro to use parser state.
8122 (yyparse): Redefine macro to pascal_parse_internal.
8123 (pstate): New variable.
8124 (parse_number): Add "struct parser_state" argument.
8125 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8126 write_exp* and similars in order to use parser state.
8127 (parse_number, yylex): Adjust code to use parser state.
8128 (pascal_parse): New function.
8129 * p-lang.h: Forward declare "struct parser_state".
8130 (pascal_parse): Add "struct parser_state" argument.
8131 * go-exp.y (parse_type): Rewrite macro to use parser state.
8132 (yyparse): Redefine macro to go_parse_internal.
8133 (pstate): New variable.
8134 (parse_number): Add "struct parser_state" argument.
8135 (type_exp, exp1, exp, variable, type): Update calls to
8136 write_exp* and similars in order to use parser state.
8137 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8138 to use parser state.
8139 (go_parse): Likewise.
8140 * go-lang.h: Forward declare "struct parser_state".
8141 (go_parse): Add "struct parser_state" argument.
8143 2014-03-27 Doug Evans <dje@google.com>
8145 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8147 2014-03-27 Doug Evans <dje@google.com>
8149 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8150 Remove argument abbrev_section. All callers updated.
8152 2014-03-27 Doug Evans <dje@google.com>
8154 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8155 addr_base, ranges_base.
8157 2014-03-26 Keith Seitz <keiths@redhat.com>
8159 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8160 types, not VAR_DOMAIN.
8162 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8164 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8166 * features/nios2-linux.c: Regenerated.
8167 * features/nios2.c: Regenerated.
8169 2014-03-25 Pedro Alves <palves@redhat.com>
8171 * cli/cli-script.c (script_from_file): Force the interpreter to
8174 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8176 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8177 small stack allocation.
8179 2014-03-24 Tristan Gingold <gingold@adacore.com>
8181 * darwin-nat.c (exc_server): Remove unused prototype.
8182 (darwin_dump_message): Correctly display data on x86_64.
8183 (darwin_encode_reply): Fix style.
8184 Add comments and fix indentation.
8186 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8188 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8190 2014-03-22 Doug Evans <xdje42@gmail.com>
8192 * infcmd.c: Whitespace fixes.
8193 (interrupt_command): Merge two function comments into one.
8195 2014-03-22 Doug Evans <xdje42@gmail.com>
8197 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8200 2014-03-22 Yao Qi <yao@codesourcery.com>
8202 * remote.c (target_read_live_memory): Remove.
8203 (memory_xfer_live_readonly_partial): Rename it to
8204 remote_xfer_live_readonly_partial. Remove argument 'object'.
8205 All callers updated. Call remote_read_bytes_1
8206 instead of target_read_live_memory.
8207 * tracepoint.c (set_traceframe_number): Remove.
8208 (make_cleanup_restore_traceframe_number): Likewise .
8209 * tracepoint.h (set_traceframe_number): Remove declaration.
8210 (make_cleanup_restore_traceframe_number): Likewise.
8212 2014-03-22 Yao Qi <yao@codesourcery.com>
8214 * remote.c (remote_read_bytes): Move code on reading from the
8216 (remote_read_bytes_1): ... here. New function.
8218 2014-03-22 Yao Qi <yao@codesourcery.com>
8220 * ctf.c (ctf_xfer_partial): Check the return value of
8221 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8222 return TARGET_XFER_UNAVAILABLE.
8223 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8224 * target.c (target_read_live_memory): Move it to remote.c.
8225 (memory_xfer_live_readonly_partial): Likewise.
8226 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8227 * remote.c (target_read_live_memory): Moved from target.c.
8228 (memory_xfer_live_readonly_partial): Likewise.
8229 (remote_read_bytes): Factored out from
8230 memory_xfer_partial_1.
8232 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8234 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8237 2014-03-21 Pedro Alves <palves@redhat.com>
8239 * infrun.c (normal_stop): Extend comment.
8241 2014-03-21 Hui Zhu <hui@codesourcery.com>
8242 Pedro Alves <palves@redhat.com>
8244 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8246 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8247 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8248 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8250 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8252 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8253 `z' formatted output modifier.
8255 2014-03-20 Tom Tromey <tromey@redhat.com>
8256 Sergio Durigan Junior <sergiodj@redhat.com>
8258 * probe.c (parse_probes): Turn assert into an ordinary error.
8259 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8260 exceptions when parsing probes. Rearrange the code for clarity.
8262 2014-03-20 Tom Tromey <tromey@redhat.com>
8265 * top.c (execute_command): Only dispatch events if the command
8268 2014-03-20 Tom Tromey <tromey@redhat.com>
8271 * infcall.c: Include event-top.h.
8272 (run_inferior_call): Call async_disable_stdin if needed.
8274 2014-03-20 Pedro Alves <palves@redhat.com>
8276 * infrun.c (prepare_to_proceed): Delete.
8277 (thread_still_needs_step_over): New function.
8278 (find_thread_needs_step_over): New function.
8279 (proceed): If the current thread needs a step-over, set its
8280 steping_over_breakpoint flag. Adjust to use
8281 find_thread_needs_step_over instead of prepare_to_proceed.
8282 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8283 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8285 (switch_back_to_stepped_thread): Step over breakpoints of all
8286 threads not the stepping thread, before switching back to the
8289 2014-03-20 Pedro Alves <palves@redhat.com>
8291 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8293 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8294 * infrun.c (saved_singlestep_ptid)
8295 (stepping_past_singlestep_breakpoint): Delete.
8296 (resume): Remove stepping_past_singlestep_breakpoint handling.
8297 (proceed): Store the prev_pc of the stepping thread too.
8298 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8300 (enum infwait_states): Delete infwait_thread_hop_state.
8301 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8303 (handle_inferior_event): Adjust.
8304 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8305 handling and the thread-hop code. Before removing single-step
8306 breakpoints, check whether the thread hit a single-step breakpoint
8307 of another thread. If it did, the trap is not a random signal.
8308 (switch_back_to_stepped_thread): If the event thread hit a
8309 single-step breakpoint, unblock it before switching to the
8310 stepping thread. Handle the case of the stepped thread having
8312 (keep_going): Handle the case of the current thread moving past a
8313 single-step breakpoint.
8315 2014-03-20 Pedro Alves <palves@redhat.com>
8318 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8319 are being stepped over.
8320 (breakpoint_address_match): Make extern.
8321 * breakpoint.h (breakpoint_address_match): New declaration.
8322 * inferior.h (stepping_past_instruction_at): New declaration.
8323 * infrun.c (struct step_over_info): New type.
8324 (step_over_info): New global.
8325 (set_step_over_info, clear_step_over_info)
8326 (stepping_past_instruction_at): New functions.
8327 (handle_inferior_event): Clear the step-over info when
8328 trap_expected is cleared.
8329 (resume): Remove now stale comment.
8330 (clear_proceed_status): Clear step-over info.
8331 (proceed): Adjust step-over handling to set or clear the step-over
8332 info instead of removing all breakpoints.
8333 (handle_signal_stop): When setting up a thread-hop, don't remove
8335 (stop_stepping): Clear step-over info.
8336 (keep_going): Adjust step-over handling to set or clear step-over
8337 info and then always inserting breakpoints, instead of removing
8338 all breakpoints when stepping over one.
8340 2014-03-20 Pedro Alves <palves@redhat.com>
8342 * infrun.c (previous_inferior_ptid): Adjust comment.
8343 (deferred_step_ptid): Delete.
8344 (infrun_thread_ptid_changed, prepare_to_proceed)
8345 (init_wait_for_inferior): Adjust.
8346 (handle_signal_stop): Delete deferred_step_ptid handling.
8348 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8351 * defs.h (sync_quit_force_run): New declaration.
8352 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8353 * event-top.c (async_sigterm_handler): New declaration.
8354 (async_sigterm_token): New variable.
8355 (async_init_signals): Create also async_sigterm_token.
8356 (async_sigterm_handler): New function.
8357 (sync_quit_force_run): New variable.
8358 (handle_sigterm): Replace quit_force call by other calls.
8359 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8361 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8363 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8364 offset into SPE pseudo registers.
8366 2014-03-18 Pedro Alves <palves@redhat.com>
8369 * inferior.h (print_stop_event): Declare.
8370 * infrun.c (print_stop_event): New, factored out from ...
8371 (normal_stop): ... this.
8372 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8373 of bpstat_print/print_stack_frame.
8375 2014-03-17 Tom Tromey <tromey@redhat.com>
8377 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8379 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8381 * ada-lang.c (decode_constrained_packed_array): Perform a
8382 minimal coercion for reference with coerce_ref instead of
8385 2014-03-17 Tristan Gingold <gingold@adacore.com>
8387 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8388 (darwin_solib_create_inferior_hook): Emit a warning if version
8391 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8393 * python/py-value.c (get_field_flag): Cast flag_name argument to
8394 PyObject_GetAttrString to support Python 2.4.
8396 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8398 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8399 (Global Maintainers): Remove Jan Kratochvil.
8401 2014-03-14 Pedro Alves <palves@redhat.com>
8403 * inferior.h (terminal_ours_for_output): Rename to ...
8404 (child_terminal_ours_for_output): ... this.
8405 (terminal_save_ours): Rename to ...
8406 (child_terminal_save_ours): ... this.
8407 (terminal_ours): Rename to ...
8408 (child_terminal_ours): ... this.
8409 (terminal_inferior): Rename to ...
8410 (child_terminal_inferior): ... this.
8411 (terminal_init_inferior): Rename to ...
8412 (child_terminal_init_inferior): ... this.
8413 (terminal_init_inferior_with_pgrp): Rename to ...
8414 (child_terminal_init_inferior_with_pgrp): ... this.
8415 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8416 (child_terminal_init_with_pgrp): ... this.
8417 (terminal_save_ours): Rename to ...
8418 (child_terminal_save_ours): ... this.
8419 (terminal_init_inferior): Rename to ...
8420 (child_terminal_init): ... this. Adjust.
8421 (terminal_inferior): Rename to ...
8422 (child_terminal_inferior): ... this.
8423 (terminal_ours_for_output): Rename to ...
8424 (child_terminal_ours_for_output): ... this. Adjust.
8425 (terminal_ours): Rename to ...
8426 (child_terminal_ours): ... this.
8427 (terminal_ours_1): Rename to ...
8428 (child_terminal_ours_1): ... this. Adjust.
8429 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8430 * windows-nat.c (do_initial_windows_stuff): Adjust.
8431 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8432 (gnu_terminal_init): ... this. Adjust.
8433 (gnu_target): Adjust.
8434 * inf-child.c (inf_child_target): Adjust.
8436 2014-03-13 Doug Evans <xdje42@gmail.com>
8439 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8442 2014-03-13 Doug Evans <xdje42@gmail.com>
8444 * value.c (record_latest_value): Call release_value_or_incref
8445 instead of release_value.
8447 2014-03-13 Pedro Alves <palves@redhat.com>
8449 * procfs.c (procfs_target): Don't override to_shortname,
8450 to_longname or to_doc.
8452 2014-03-13 Pedro Alves <palves@redhat.com>
8454 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8455 Unix in user visible strings.
8457 2014-03-12 Stan Shebs <stan@codesourcery.com>
8459 * gdbtypes.h: Annotate comments for Doxygen, add a page
8460 block comment with some general info.
8462 2014-03-12 Pedro Alves <palves@redhat.com>
8464 * infcmd.c (prepare_execution_command): New function, factored out
8465 from several execution commands.
8466 (run_command_1, continue_command, step_1, jump_command)
8467 (signal_command, until_command, advance_command, finish_command)
8468 (attach_command): Use prepare_execution_command.
8470 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8472 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8475 (struct arm_linux_thread_points): Removed.
8476 (struct arm_linux_process_info): New.
8477 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8478 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8479 (arm_linux_find_breakpoints_by_tid): Removed.
8480 (struct arch_lwp_info): New.
8481 (arm_linux_find_process_pid): New functions.
8482 (arm_linux_add_process): New functions.
8483 (arm_linux_process_info_get): New functions.
8484 (arm_linux_forget_process): New function.
8485 (arm_linux_get_debug_reg_state): New function.
8486 (struct update_registers_data): New.
8487 (update_registers_callback): New function.
8488 (arm_linux_insert_hw_breakpoint1): Updated.
8489 (arm_linux_remove_hw_breakpoint1): Updated.
8490 (arm_linux_insert_hw_breakpoint): Updated.
8491 (arm_linux_remove_hw_breakpoint): Updated.
8492 (arm_linux_insert_watchpoint): Updated.
8493 (arm_linux_remove_watchpoint): Updated.
8494 (arm_linux_new_thread): Updated.
8495 (arm_linux_prepare_to_resume): New function.
8496 (arm_linux_new_fork): New function.
8497 (_initialize_arm_linux_nat): Updated.
8499 2014-03-12 Pedro Alves <palves@redhat.com>
8501 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8503 2014-03-12 Tom Tromey <tromey@redhat.com>
8505 * inf-child.c (return_zero): New function.
8506 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8507 * aix-thread.c (aix_thread_inferior_created): New function.
8508 (aix_thread_attach): Remove.
8509 (init_aix_thread_ops): Don't set to_attach.
8510 (_initialize_aix_thread): Register inferior_created observer.
8511 * corelow.c (init_core_ops): Don't set to_attach or
8513 * exec.c (init_exec_ops): Don't set to_attach or
8515 * infcmd.c (run_command_1): Use find_run_target. Make direct
8517 (attach_command): Use find_attach_target. Make direct target
8519 * record-btrace.c (init_record_btrace_ops): Don't set
8521 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8523 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8524 set to_create_inferior.
8525 * target.c (complete_target_initialization): Add assertion.
8526 (target_create_inferior): Remove.
8527 (find_default_attach, find_default_create_inferior): Remove.
8528 (find_attach_target, find_run_target): New functions.
8529 (find_default_is_async_p, find_default_can_async_p)
8530 (target_supports_non_stop, target_attach): Remove.
8531 (init_dummy_target): Don't set to_create_inferior or
8532 to_supports_non_stop.
8533 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8534 TARGET_DEFAULT_FUNC.
8535 <to_create_inferior>: Add comment.
8536 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8537 TARGET_DEFAULT_RETURN.
8538 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8539 (find_attach_target, find_run_target): Declare.
8540 (target_create_inferior): Remove.
8541 (target_has_execution_1): Update comment.
8542 (target_supports_non_stop): Remove.
8543 * target-delegates.c: Rebuild.
8545 2014-03-12 Pedro Alves <palves@redhat.com>
8547 * inf-child.h: Update comment to not mention Unix.
8549 2014-03-12 Pedro Alves <palves@redhat.com>
8551 * inf-child.c: Update top comment to not mention Unix. Add
8552 generic comment describing how this target is meant to be used.
8553 (inf_child_post_attach, inf_child_post_startup_inferior)
8554 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8557 2014-03-12 Pedro Alves <palves@redhat.com>
8559 * nto-procfs.c: Include inf-child.h.
8560 (procfs_ops): Delete global.
8561 (procfs_can_run): Delete method.
8562 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8563 target pointer instead of referencing procfs_ops.
8564 (procfs_prepare_to_store): Delete.
8565 (init_procfs_ops): Delete function.
8566 (procfs_target): New function, based on init_procfs_ops, but
8567 inherit inf_child_target.
8568 (_initialize_procfs): Use procfs_target.
8570 2014-03-12 Pedro Alves <palves@redhat.com>
8572 * windows-nat.c: Include inf-child.h.
8573 (windows_ops): Delete global.
8574 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8576 (init_windows_ops): Delete function.
8577 (windows_target): New function, based on init_windows_ops, but
8578 inherit inf_child_target.
8579 (_initialize_windows_nat): Use windows_target. Install x86
8580 specific target methods here.
8582 2014-03-10 Doug Evans <xdje42@gmail.com>
8584 * guile/guile.c (call_initialize_gdb_module): New function.
8585 (initialize_guile): Replace call to scm_init_guile with call to
8588 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8590 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8591 in call to TYPE_CODE macro.
8593 2014-03-10 Jerome Guitton <guitton@adacore.com>
8595 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8596 Resolve tagged types to full view.
8598 2014-03-10 Hui Zhu <hui@codesourcery.com>
8600 * target.h (target_insert_breakpoint): Remove "hardware" from its
8603 2014-03-07 Doug Evans <dje@google.com>
8605 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8607 2014-03-07 Doug Evans <dje@google.com>
8609 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8610 Remove unused local comp_dir_attr. Assert exactly one of
8611 stub_comp_unit_die, stub_comp_dir is non-NULL.
8613 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8615 * target.h (complete_target_initialization, add_target):
8618 2014-03-07 Pedro Alves <palves@redhat.com>
8620 * go32-nat.c: Include inf-child.h.
8621 (go32_ops): Delete global.
8622 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8624 (go32_create_inferior): Push the passed in target pointer instead
8625 of referencing go32_ops.
8626 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8627 (go32_target): New function, based on init_go32_ops, but inherit
8629 (_initialize_go32_nat): Use go32_target. Move parts of
8632 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8634 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8635 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8636 SYMBOL_VALUE_ADDRESS.
8637 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8639 2014-03-06 Yao Qi <yao@codesourcery.com>
8641 * breakpoint.c (get_tracepoint_by_number): Remove argument
8642 optional_p. All callers updated. Adjust comments. Update
8644 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8646 2014-03-06 Yao Qi <yao@codesourcery.com>
8648 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8649 early if get_number returns zero. Use 'p' instead of 'args'.
8651 2014-03-06 Yao Qi <yao@codesourcery.com>
8653 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8656 2014-03-06 Yao Qi <yao@codesourcery.com>
8658 PR breakpoints/16508
8659 * tracepoint.c (check_trace_running): New function.
8660 (trace_find_command): Move code to check_trace_running and
8661 call check_trace_running.
8662 (trace_find_pc_command): Likewise.
8663 (trace_find_tracepoint_command): Likewise.
8664 (trace_find_line_command): Likewise.
8665 (trace_find_range_command): Likewise.
8666 * tracepoint.h (check_trace_running): Likewise.
8667 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8669 2014-03-06 Yao Qi <yao@codesourcery.com>
8671 * target.h (struct target_ops) <to_traceframe_info>: Use
8672 TARGET_DEFAULT_NORETURN (tcomplain ()).
8673 * target-delegates.c: Regenerated.
8675 2014-03-05 Pedro Alves <palves@redhat.com>
8678 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8679 void. Update comment.
8680 (dcache_xfer_memory): Delete.
8681 (dcache_read_memory_partial): New, based on the read bits of
8683 (dcache_update): Add status parameter. Use ULONGEST for len, and
8684 adjust. Discard cache lines if the reason for the update was
8686 * dcache.h (dcache_xfer_memory): Delete declaration.
8687 (dcache_read_memory_partial): New declaration.
8688 (dcache_update): Update prototype.
8689 * target.c (raw_memory_xfer_partial): Update the dcache here.
8690 (memory_xfer_partial_1): Don't handle dcache writes here.
8692 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8694 * remote-sim.c (gdbsim_load): Add const to prog.
8696 2014-03-03 Tom Tromey <tromey@redhat.com>
8698 * elfread.c (probe_key): Change to bfd_data.
8699 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8700 now per-BFD, not per-objfile.
8701 * stap-probe.c (stap_probe_destroy): Update comment.
8702 (handle_stap_probe): Allocate on the per-BFD obstack.
8704 2014-03-03 Tom Tromey <tromey@redhat.com>
8706 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8707 * breakpoint.c (create_longjmp_master_breakpoint): Use
8709 (add_location_to_breakpoint, bkpt_probe_insert_location)
8710 (bkpt_probe_remove_location): Update.
8711 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8712 * elfread.c (elf_symfile_relocate_probe): Remove.
8713 (elf_probe_fns): Update.
8714 (insert_exception_resume_breakpoint): Change type of "probe"
8715 parameter to bound_probe.
8716 (check_exception_resume): Update.
8717 * objfiles.c (objfile_relocate1): Don't relocate probes.
8718 * probe.c (bound_probe_s): New typedef.
8719 (parse_probes): Use get_probe_address. Set sal's objfile.
8720 (find_probe_by_pc): Return a bound_probe.
8721 (collect_probes): Return a VEC(bound_probe_s).
8722 (compare_probes): Update.
8723 (gen_ui_out_table_header_info): Change type of "probes"
8725 (info_probes_for_ops): Update.
8726 (get_probe_address): New function.
8727 (probe_safe_evaluate_at_pc): Update.
8728 * probe.h (struct probe_ops) <get_probe_address>: New field.
8729 <set_semaphore, clear_semaphore>: Add objfile parameter.
8730 (struct probe) <objfile>: Remove field.
8732 <address>: Update comment.
8733 (struct bound_probe): New.
8734 (find_probe_by_pc): Return a bound_probe.
8735 (get_probe_address): Declare.
8736 * solib-svr4.c (struct probe_and_action) <address>: New field.
8737 (hash_probe_and_action, equal_probe_and_action): Update.
8738 (register_solib_event_probe): Add address parameter.
8739 (solib_event_probe_at): Update.
8740 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8742 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8743 (stap_get_probe_address): New function.
8744 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8745 (compile_probe_arg): Update.
8746 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8748 (handle_stap_probe): Don't relocate the probe.
8749 (stap_relocate): Remove.
8750 (stap_gen_info_probes_table_values): Update.
8751 (stap_probe_ops): Remove stap_relocate.
8752 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8753 (debug_sym_probe_fns): Update.
8754 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8755 * symtab.c (init_sal): Use memset.
8756 * symtab.h (struct symtab_and_line) <objfile>: New field.
8757 * tracepoint.c (start_tracing, stop_tracing): Update.
8759 2014-03-03 Tom Tromey <tromey@redhat.com>
8761 * probe.h (parse_probes, find_probe_by_pc)
8762 (find_probes_in_objfile): Fix comments.
8764 2014-03-02 Doug Evans <xdje42@gmail.com>
8766 * infrun.c (handle_signal_stop): Replace test for
8767 TARGET_WAITKIND_STOPPED with an assert.
8769 2014-03-02 Doug Evans <xdje42@gmail.com>
8771 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8773 2014-03-02 Doug Evans <xdje42@gmail.com>
8775 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8777 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8779 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8781 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8783 * i386obsd-nat.c: Include "obsd-nat.h".
8784 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8786 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8788 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8790 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8792 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8794 * mips64obsd-nat.c: Include "obsd-nath".
8795 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8797 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8799 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8801 * amd64obsd-nat.c: Include "obsd-nat,h.
8802 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8804 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8806 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8808 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8809 (find_overload_match): Update call to find_oload_champ.
8810 (find_oload_champ_namespace_loop): Likewise
8812 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8814 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8816 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8817 * config/sparc/obsd64.mh: New file.
8818 * sparc64obsd-nat.c: New file.
8820 * obsd-nat.h: New file.
8821 * obsd-nat.c: New file.
8822 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8823 (ALLDEPFILES): Add obsd-nat.c.
8825 2014-02-28 Tom Tromey <tromey@redhat.com>
8827 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8828 * cli-out.h (cli_ui_out_impl): Now const.
8829 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8830 * ui-out.c (struct ui_out) <impl>: Now const.
8831 (default_ui_out_impl): Now const.
8832 (ui_out_new): Make 'impl' parameter const.
8833 * ui-out.h (ui_out_new): Update.
8835 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8837 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8839 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8841 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8843 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8845 Additional PR 8882 fix.
8846 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8848 2014-02-27 Pedro Alves <palves@redhat.com>
8850 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8853 2014-02-27 Pedro Alves <palves@redhat.com>
8856 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8857 * nat/linux-waitpid.c: Include string.h.
8858 (status_to_str): Moved here and made extern.
8859 * nat/linux-waitpid.h (status_to_str): New declaration.
8861 2014-02-27 Hui Zhu <hui@codesourcery.com>
8864 * infrun.c (ptid_match): Move ...
8865 * common/ptid.c (ptid_match): ... here.
8866 * inferior.h (ptid_match): Move ...
8867 * common/ptid.h (ptid_match): ... here.
8869 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8871 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8872 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8875 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8877 * obsd-tdep.c (obsd_auxv_parse): New function.
8878 (obsd_init_abi): Set auxv_parse.
8880 * gdbarch.sh (auxv_parse): New.
8881 * gdbarch.h: Regenerated.
8882 * gdbarch.c: Regenerated.
8883 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8885 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8887 * guile/scm-value.c (gdbscm_history_append_x): New function.
8888 (value_functions): Add it.
8890 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8892 * dwarf2read.c (attr_value_as_address): New function.
8893 (dwarf2_find_base_address, read_call_site_scope): Use
8894 attr_value_as_address in place of DW_ADDR.
8895 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8896 the low and high addresses. Slight rework of the handling
8897 of the high pc being a constant form, and limit it to
8898 DWARF verson 4 or higher.
8899 (dwarf2_record_block_ranges): Likewise.
8900 (read_partial_die): Likewise.
8901 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8903 2014-02-26 Tom Tromey <tromey@redhat.com>
8905 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8907 2014-02-26 Tom Tromey <tromey@redhat.com>
8909 * elfread.c (elf_read_minimal_symbols): Return early if
8910 minimal symbols have already been read. Add "ei" parameter.
8911 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8912 * minsyms.c (prim_record_minimal_symbol_full): Update.
8913 * objfiles.h (struct objstats) <n_minsyms>: Move...
8914 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8915 * symmisc.c (print_objfile_statistics): Update.
8917 2014-02-26 Tom Tromey <tromey@redhat.com>
8919 * elfread.c (elf_read_minimal_symbols): New function, from
8921 (elf_symfile_read): Call it.
8923 2014-02-26 Tom Tromey <tromey@redhat.com>
8925 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8926 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8927 (lookup_minimal_symbol_solib_trampoline)
8928 (lookup_minimal_symbol_by_pc_section_1)
8929 (lookup_minimal_symbol_and_objfile): Update.
8930 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8931 Don't allocate a minimal symbol if minsyms have already been read.
8932 (build_minimal_symbol_hash_tables): Update.
8933 (install_minimal_symbols): Do nothing if minsyms already read.
8934 Use the per-BFD obstack.
8935 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8936 * objfiles.c (allocate_objfile): Call
8937 terminate_minimal_symbol_table later.
8938 (have_minimal_symbols): Update.
8939 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8940 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8941 Move from struct objfile.
8942 <minsyms_read>: New field.
8943 (struct objfile) <msymbols, minimal_symbol_count,
8944 msymbol_hash, msymbol_demangled_hash>: Move.
8945 (ALL_OBJFILE_MSYMBOLS): Update.
8946 * symfile.c (read_symbols): Set minsyms_read.
8947 (reread_symbols): Update.
8948 * symmisc.c (dump_objfile, dump_msymbols): Update.
8950 2014-02-26 Tom Tromey <tromey@redhat.com>
8952 * minsyms.c (msymbols_sort): Remove.
8953 * minsyms.h (msymbols_sort): Remove.
8954 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8955 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8956 * elfread.c (elf_symtab_read): Don't add section offsets.
8957 * xcoffread.c (record_minimal_symbol): Don't add section offset
8958 to minimal symbol address.
8959 * somread.c (text_offset, data_offset): Remove.
8960 (som_symtab_read): Don't add section offsets to minimal symbol
8962 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8963 Don't add section offsets to minimal symbols.
8964 * coffread.c (coff_symtab_read): Don't add section offsets
8965 to minimal symbol addresses.
8966 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8967 to minimal symbol addresses.
8968 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8969 section offset to minimal symbol addresses.
8970 * mdebugread.c (parse_partial_symbols): Don't add section
8971 offset to minimal symbol addresses.
8972 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8973 offset to minimal symbol addresses.
8975 2014-02-26 Tom Tromey <tromey@redhat.com>
8977 * ada-lang.c (ada_main_name): Update.
8978 (ada_add_standard_exceptions): Update.
8979 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8980 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8981 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8982 * auxv.c (ld_so_xfer_auxv): Update.
8983 * avr-tdep.c (avr_scan_prologue): Update.
8984 * ax-gdb.c (gen_var_ref): Update.
8985 * blockframe.c (get_pc_function_start)
8986 (find_pc_partial_function_gnu_ifunc): Update.
8987 * breakpoint.c (create_overlay_event_breakpoint)
8988 (create_longjmp_master_breakpoint)
8989 (create_std_terminate_master_breakpoint)
8990 (create_exception_master_breakpoint): Update.
8991 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8992 * c-valprint.c (c_val_print): Update.
8993 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8994 * common/agent.c (agent_look_up_symbols): Update.
8995 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8996 * dwarf2loc.c (call_site_to_target_addr): Update.
8997 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8998 * elfread.c (elf_gnu_ifunc_record_cache)
8999 (elf_gnu_ifunc_resolve_by_got): Update.
9000 * findvar.c (default_read_var_value): Update.
9001 * frame.c (inside_main_func): Update.
9002 * frv-tdep.c (frv_frame_this_id): Update.
9003 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9004 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9006 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9007 (hppa_hpux_find_dummy_bpaddr): Update.
9008 * hppa-tdep.c (hppa_symbol_address): Update.
9009 * infcmd.c (until_next_command): Update.
9010 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9012 * linespec.c (minsym_found, add_minsym): Update.
9013 * linux-nat.c (get_signo): Update.
9014 * linux-thread-db.c (inferior_has_bug): Update.
9015 * m32c-tdep.c (m32c_return_value)
9016 (m32c_m16c_address_to_pointer): Update.
9017 * m32r-tdep.c (m32r_frame_this_id): Update.
9018 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9019 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9020 * maint.c (maintenance_translate_address): Update.
9021 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9022 (frob_address): New function.
9023 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9024 frob_address. Rename parameter to "pc_in".
9025 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9027 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9029 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9030 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9031 * objc-lang.c (find_objc_msgsend): Update.
9032 * objfiles.c (objfile_relocate1): Update.
9033 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9034 * p-valprint.c (pascal_val_print): Update.
9035 * parse.c (write_exp_msymbol): Update.
9036 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9037 (ppc_elfv2_skip_entrypoint): Update.
9038 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9039 * printcmd.c (build_address_symbolic, msym_info)
9040 (address_info): Update.
9041 * proc-service.c (ps_pglobal_lookup): Update.
9042 * psymtab.c (find_pc_sect_psymtab_closer)
9043 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9044 Change msymbol parameter to bound_minimal_symbol.
9045 * ravenscar-thread.c (get_running_thread_id): Update.
9046 * remote.c (remote_check_symbols): Update.
9047 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9049 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9050 * solib-dsbt.c (lm_base): Update.
9051 * solib-frv.c (lm_base, main_got): Update.
9052 * solib-irix.c (locate_base): Update.
9053 * solib-som.c (som_solib_create_inferior_hook)
9054 (link_map_start): Update.
9055 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9056 * solib-svr4.c (elf_locate_base, enable_break): Update.
9057 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9058 (flush_ea_cache): Update.
9059 * stabsread.c (define_symbol, scan_file_globals): Update.
9060 * stack.c (find_frame_funname): Update.
9061 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9062 (debug_qf_find_pc_sect_symtab): Update.
9063 * symfile.c (simple_read_overlay_table)
9064 (simple_overlay_update): Update.
9065 * symfile.h (struct quick_symbol_functions)
9066 <find_pc_sect_symtab>: Change type of msymbol to
9067 bound_minimal_symbol.
9068 * symmisc.c (dump_msymbols): Update.
9069 * symtab.c (find_pc_sect_symtab_via_partial)
9070 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9071 (search_symbols, print_msymbol_info): Update.
9072 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9073 (MSYMBOL_VALUE_ADDRESS): Redefine.
9074 (BMSYMBOL_VALUE_ADDRESS): New macro.
9075 * tracepoint.c (scope_info): Update.
9076 * tui/tui-disasm.c (tui_find_disassembly_address)
9077 (tui_get_begin_asm_address): Update.
9078 * valops.c (find_function_in_inferior): Update.
9079 * value.c (value_static_field, value_fn_field): Update.
9081 2014-02-26 Tom Tromey <tromey@redhat.com>
9083 * ada-lang.c (ada_update_initial_language): Update.
9084 (ada_main_name, ada_has_this_exception_support): 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 (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 * breakpoint.c (struct breakpoint_objfile_data)
9092 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9093 type to bound_minimal_symbol.
9094 (create_overlay_event_breakpoint)
9095 (create_longjmp_master_breakpoint)
9096 (create_std_terminate_master_breakpoint)
9097 (create_exception_master_breakpoint): Update.
9098 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9099 * c-exp.y (classify_name): Update.
9100 * coffread.c (coff_symfile_read): Update.
9101 * common/agent.c (agent_look_up_symbols): Update.
9102 * d-lang.c (d_main_name): Update.
9103 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9104 * dec-thread.c (enable_dec_thread): Update.
9105 * dwarf2loc.c (call_site_to_target_addr): Update.
9106 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9107 * eval.c (evaluate_subexp_standard): Update.
9108 * findvar.c (struct minsym_lookup_data) <result>: Change type
9109 to bound_minimal_symbol.
9111 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9112 * frame.c (inside_main_func): Update.
9113 * frv-tdep.c (frv_frame_this_id): Update.
9114 * gcore.c (call_target_sbrk): Update.
9115 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9116 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9118 * go-lang.c (go_main_name): Update.
9119 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9120 (hppa_hpux_find_import_stub_for_addr): Update.
9121 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9122 Update. Change return type.
9123 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9125 * jit.c (jit_breakpoint_re_set_internal): Update.
9126 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9128 * linux-nat.c (get_signo): Update.
9129 * linux-thread-db.c (inferior_has_bug): Update
9130 * m32c-tdep.c (m32c_return_value)
9131 (m32c_m16c_address_to_pointer): Update.
9132 * m32r-tdep.c (m32r_frame_this_id): Update.
9133 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9134 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9135 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9136 lookup_minimal_symbol. Change return type.
9137 (lookup_minimal_symbol): Remove.
9138 (lookup_bound_minimal_symbol): Update.
9139 (lookup_minimal_symbol_text): Change return type.
9140 (lookup_minimal_symbol_solib_trampoline): Change return type.
9141 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9142 (lookup_minimal_symbol_solib_trampoline): Change return type.
9143 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9144 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9145 (value_nsstring, find_imps): Update.
9146 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9147 * p-lang.c (pascal_main_name): Update.
9148 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9149 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9150 * proc-service.c (ps_pglobal_lookup): Update.
9151 * ravenscar-thread.c (get_running_thread_msymbol): Change
9153 (has_ravenscar_runtime, get_running_thread_id): Update.
9154 * remote.c (remote_check_symbols): Update.
9155 * sol-thread.c (ps_pglobal_lookup): Update.
9156 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9157 * solib-dsbt.c (lm_base): Update.
9158 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9160 * solib-irix.c (locate_base): Update.
9161 * solib-som.c (som_solib_create_inferior_hook)
9162 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9164 * solib-spu.c (spu_enable_break): Update.
9165 * solib-svr4.c (elf_locate_base, enable_break): Update.
9166 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9167 (flush_ea_cache): Update.
9168 * stabsread.c (define_symbol): Update.
9169 * symfile.c (simple_read_overlay_table): Update.
9170 * symtab.c (find_pc_sect_line): Update.
9171 * tracepoint.c (scope_info): Update.
9172 * tui-disasm.c (tui_get_begin_asm_address): Update.
9173 * value.c (value_static_field): Update.
9175 2014-02-26 Tom Tromey <tromey@redhat.com>
9177 * minsyms.c (prim_record_minimal_symbol_full): Use
9178 SET_MSYMBOL_VALUE_ADDRESS.
9179 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9180 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9181 SET_MSYMBOL_VALUE_ADDRESS.
9182 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9183 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9185 2014-02-26 Tom Tromey <tromey@redhat.com>
9187 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9188 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9189 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9190 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9191 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9192 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9193 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9194 * ada-lang.c (ada_main_name): Update.
9195 (ada_lookup_simple_minsym): Update.
9196 (ada_make_symbol_completion_list): Update.
9197 (ada_add_standard_exceptions): Update.
9198 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9199 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9200 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9201 * arm-tdep.c (skip_prologue_function): Update.
9202 (arm_skip_stack_protector, arm_skip_stub): Update.
9203 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9204 (arm_wince_skip_main_prologue): Update.
9205 * auxv.c (ld_so_xfer_auxv): Update.
9206 * avr-tdep.c (avr_scan_prologue): Update.
9207 * ax-gdb.c (gen_var_ref): Update.
9208 * block.c (call_site_for_pc): Update.
9209 * blockframe.c (get_pc_function_start): Update.
9210 (find_pc_partial_function_gnu_ifunc): Update.
9211 * breakpoint.c (create_overlay_event_breakpoint): Update.
9212 (create_longjmp_master_breakpoint): Update.
9213 (create_std_terminate_master_breakpoint): Update.
9214 (create_exception_master_breakpoint): Update.
9215 (resolve_sal_pc): Update.
9216 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9217 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9219 * c-valprint.c (c_val_print): Update.
9220 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9221 * coffread.c (coff_symfile_read): Update.
9222 * common/agent.c (agent_look_up_symbols): Update.
9223 * dbxread.c (find_stab_function_addr): Update.
9224 (end_psymtab): Update.
9225 * dwarf2loc.c (call_site_to_target_addr): Update.
9226 (func_verify_no_selftailcall): Update.
9227 (tailcall_dump): Update.
9228 (call_site_find_chain_1): Update.
9229 (dwarf_expr_reg_to_entry_parameter): Update.
9230 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9231 (elf_gnu_ifunc_resolve_by_got): Update.
9232 * f-valprint.c (info_common_command): Update.
9233 * findvar.c (read_var_value): Update.
9234 * frame.c (get_prev_frame_1): Update.
9235 (inside_main_func): Update.
9236 * frv-tdep.c (frv_skip_main_prologue): Update.
9237 (frv_frame_this_id): Update.
9238 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9239 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9240 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9241 (gnuv3_skip_trampoline): Update.
9242 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9243 (hppa64_hpux_in_solib_call_trampoline): Update.
9244 (hppa_hpux_skip_trampoline_code): Update.
9245 (hppa64_hpux_search_dummy_call_sequence): Update.
9246 (hppa_hpux_find_import_stub_for_addr): Update.
9247 (hppa_hpux_find_dummy_bpaddr): Update.
9248 * hppa-tdep.c (hppa_symbol_address)
9249 (hppa_lookup_stub_minimal_symbol): Update.
9250 * i386-tdep.c (i386_skip_main_prologue): Update.
9251 (i386_pe_skip_trampoline_code): Update.
9252 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9253 * infcall.c (get_function_name): Update.
9254 * infcmd.c (until_next_command): Update.
9255 * jit.c (jit_breakpoint_re_set_internal): Update.
9256 (jit_inferior_init): Update.
9257 * linespec.c (minsym_found): Update.
9258 (add_minsym): Update.
9259 * linux-fork.c (info_checkpoints_command): Update.
9260 * linux-nat.c (get_signo): Update.
9261 * linux-thread-db.c (inferior_has_bug): Update.
9262 * m32c-tdep.c (m32c_return_value): Update.
9263 (m32c_m16c_address_to_pointer): Update.
9264 (m32c_m16c_pointer_to_address): Update.
9265 * m32r-tdep.c (m32r_frame_this_id): Update.
9266 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9267 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9268 * maint.c (maintenance_translate_address): Update.
9269 * minsyms.c (add_minsym_to_hash_table): Update.
9270 (add_minsym_to_demangled_hash_table): Update.
9271 (msymbol_objfile): Update.
9272 (lookup_minimal_symbol): Update.
9273 (iterate_over_minimal_symbols): Update.
9274 (lookup_minimal_symbol_text): Update.
9275 (lookup_minimal_symbol_by_pc_name): Update.
9276 (lookup_minimal_symbol_solib_trampoline): Update.
9277 (lookup_minimal_symbol_by_pc_section_1): Update.
9278 (lookup_minimal_symbol_and_objfile): Update.
9279 (prim_record_minimal_symbol_full): Update.
9280 (compare_minimal_symbols): Update.
9281 (compact_minimal_symbols): Update.
9282 (build_minimal_symbol_hash_tables): Update.
9283 (install_minimal_symbols): Update.
9284 (terminate_minimal_symbol_table): Update.
9285 (find_solib_trampoline_target): Update.
9286 (minimal_symbol_upper_bound): Update.
9287 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9288 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9289 (mips_skip_pic_trampoline_code): Update.
9290 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9291 * objc-lang.c (selectors_info): Update.
9292 (classes_info): Update.
9293 (find_methods): Update.
9294 (find_imps): Update.
9295 (find_objc_msgsend): Update.
9296 * objfiles.c (objfile_relocate1): Update.
9297 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9298 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9299 * p-valprint.c (pascal_val_print): Update.
9300 * parse.c (write_exp_msymbol): Update.
9301 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9302 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9303 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9304 * printcmd.c (build_address_symbolic): Update.
9306 (address_info): Update.
9307 * proc-service.c (ps_pglobal_lookup): Update.
9308 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9309 (find_pc_sect_psymtab): Update.
9310 * python/py-framefilter.c (py_print_frame): Update.
9311 * ravenscar-thread.c (get_running_thread_id): Update.
9312 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9314 * remote.c (remote_check_symbols): Update.
9315 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9316 (rs6000_skip_trampoline_code): Update.
9317 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9318 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9319 * solib-dsbt.c (lm_base): Update.
9320 * solib-frv.c (lm_base): Update.
9322 * solib-irix.c (locate_base): Update.
9323 * solib-som.c (som_solib_create_inferior_hook): Update.
9324 (som_solib_desire_dynamic_linker_symbols): Update.
9325 (link_map_start): Update.
9326 * solib-spu.c (spu_enable_break): Update.
9327 (ocl_enable_break): Update.
9328 * solib-svr4.c (elf_locate_base): Update.
9329 (enable_break): Update.
9330 * spu-tdep.c (spu_get_overlay_table): Update.
9331 (spu_catch_start): Update.
9332 (flush_ea_cache): Update.
9333 * stabsread.c (define_symbol): Update.
9334 (scan_file_globals): Update.
9335 * stack.c (find_frame_funname): Update.
9336 (frame_info): Update.
9337 * symfile.c (simple_read_overlay_table): Update.
9338 (simple_overlay_update): Update.
9339 * symmisc.c (dump_msymbols): Update.
9340 * symtab.c (fixup_section): Update.
9341 (find_pc_sect_line): Update.
9342 (skip_prologue_sal): Update.
9343 (search_symbols): Update.
9344 (print_msymbol_info): Update.
9345 (rbreak_command): Update.
9346 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9347 (completion_list_objc_symbol): Update.
9348 (default_make_symbol_completion_list_break_on): Update.
9349 * tracepoint.c (scope_info): Update.
9350 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9351 (tui_get_begin_asm_address): Update.
9352 * valops.c (find_function_in_inferior): Update.
9353 * value.c (value_static_field): Update.
9354 (value_fn_field): Update.
9356 2014-02-26 Tom Tromey <tromey@redhat.com>
9358 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9359 bound minimal symbols. Move code that knows about minsym
9361 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9363 * minsyms.h (minimal_symbol_upper_bound): Declare.
9364 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9365 minimal_symbol_upper_bound.
9367 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9369 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9370 Use the type's name if its basic type does not have a tag.
9372 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9374 * dwarf2read.c (read_subrange_type): Add comment.
9376 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9378 * dwarf2read.c (update_enumeration_type_from_children): New
9379 function, mostly extracted from process_structure_scope.
9380 (read_enumeration_type): Call update_enumeration_type_from_children.
9381 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9382 and flag_flag_enum fields.
9384 2014-02-26 Pedro Alves <palves@redhat.com>
9386 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9387 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9388 to_xfer_partial method.
9390 2014-02-26 Pedro Alves <palves@redhat.com>
9392 * target.c (complete_target_initialization): Don't install
9393 default_xfer_partial as to_xfer_partial hook.
9395 (update_current_target): Don't INHERIT nor de_fault
9396 deprecated_xfer_memory. Delete de_fault macro.
9397 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9398 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9399 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9402 2014-02-26 Pedro Alves <palves@redhat.com>
9404 * go32-nat.c (my_write_child): New function.
9405 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9406 (go32_xfer_partial): New function.
9407 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9408 Instead install a to_xfer_partial hook.
9410 2014-02-26 Pedro Alves <palves@redhat.com>
9412 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9413 to_xfer_partial helper. Rewrite.
9414 (procfs_xfer_partial): New function.
9415 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9416 Install a to_xfer_partial hook.
9418 2014-02-26 Pedro Alves <palves@redhat.com>
9420 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9421 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9422 (m32r_xfer_partial): New function.
9423 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9424 Install a to_xfer_partial hook.
9426 2014-02-26 Pedro Alves <palves@redhat.com>
9428 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9430 (mips_xfer_partial): New function.
9431 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9432 hook. Install a to_xfer_partial hook.
9434 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9436 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9437 * gdbtypes.c (create_array_type_with_stride): New function,
9438 renaming create_array_type, but with an added parameter
9439 called "bit_stride".
9440 (create_array_type): Re-implement using
9441 create_array_type_with_stride.
9442 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9443 and DW_AT_bit_stride attributes.
9445 2014-02-26 Pedro Alves <palves@redhat.com>
9447 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9448 task-specific breakpoints.
9450 2014-02-25 Pedro Alves <palves@redhat.com>
9452 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9453 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9455 2014-02-25 Stan Shebs <stan@codesourcery.com>
9457 * defs.h: Annotate comments for Doxygen.
9459 2014-02-25 Tom Tromey <tromey@redhat.com>
9461 * target.h (target_ignore): Don't declare.
9462 * target.c (target_ignore): Remove.
9464 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9467 * auto-load.c (auto_load_objfile_script_1): Change filename to
9470 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9472 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9473 documentation. Adjust prototype to match the target_ops
9474 to_xfer_partial method. Adjust implementation accordingly.
9476 2014-02-25 Hui Zhu <hui@codesourcery.com>
9478 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9481 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9483 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9484 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9485 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9486 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9487 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9488 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9489 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9490 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9492 (rl78_register_type): Use a data pointer type for SP and
9493 new pseudo registers mentioned above. Use a 16 bit integer
9494 type for all other register pairs.
9495 (rl78_register_name, rl78_g10_register_name): Update for
9496 new pseudo registers.
9497 (rl78_pseudo_register_read): Likewise.
9498 (rl78_pseudo_register_write): Likewise.
9499 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9500 to the newly added pseudo registers.
9502 2014-02-24 Doug Evans <dje@google.com>
9504 * value.c (record_latest_value): Fix comment.
9505 * printcmd.c (print_command_1): Remove code to handle -1 return from
9506 record_latest_value.
9508 2014-02-24 Pedro Alves <palves@redhat.com>
9510 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9511 deprecated_xfer_memory hook.
9512 (procfs_xfer_partial): Call procfs_xfer_memory instead
9513 of the deprecated_xfer_memory target hook.
9514 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9517 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9519 * windows-nat.c (windows_xfer_shared_libraries): Return
9520 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9521 requested object is TARGET_OBJECT_LIBRARIES.
9523 2014-02-24 Yao Qi <yao@codesourcery.com>
9525 * target.h (enum target_xfer_status)
9526 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9527 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9529 * corefile.c (memory_error_message): User updated.
9530 * exec.c (section_table_read_available_memory): Likewise.
9531 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9532 * target.c (target_xfer_status_to_string): Likewise.
9533 (raw_memory_xfer_partial): Likewise.
9534 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9535 * valops.c (read_value_memory): Likewise.
9536 * exec.h: Update comments.
9538 2014-02-24 Yao Qi <yao@codesourcery.com>
9540 * target.c (target_xfer_status_to_string): Rename argument err
9542 * target.h (target_xfer_status_to_string): Update declaration.
9543 Replace target_xfer_error_to_string with
9544 target_xfer_status_to_string in comment.
9546 2014-02-24 Yao Qi <yao@codesourcery.com>
9548 * mips-linux-nat.c (super_close): Update its type.
9549 (mips_linux_close): Pass 'self' to super_close.
9551 2014-02-24 Yao Qi <yao@codesourcery.com>
9553 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9554 * corefile.c (read_memory): Adjusted.
9555 * target.c (target_write_with_progress): Adjusted.
9557 2014-02-23 Yao Qi <yao@codesourcery.com>
9561 2013-10-25 Yao Qi <yao@codesourcery.com>
9563 * remote.c (remote_traceframe_info): Return early if
9564 traceframe is not selected.
9566 2013-07-19 Yao Qi <yao@codesourcery.com>
9568 * target.c (update_current_target): Change the default action
9569 of 'to_traceframe_info' from tcomplain to return_zero.
9570 * target.h (struct target_ops) <to_traceframe_info>: Add more
9573 2014-02-23 Yao Qi <yao@codesourcery.com>
9575 * valops.c (read_value_memory): Rewrite it. Call
9576 target_xfer_partial in a loop.
9577 * exec.h (section_table_available_memory): Remove declaration.
9578 Move comments to ...
9579 * exec.c (section_table_available_memory): ... here. Make it
9582 2014-02-23 Yao Qi <yao@codesourcery.com>
9584 * exec.c (section_table_read_available_memory): New function.
9585 * exec.h (section_table_read_available_memory): Declare.
9586 * ctf.c (ctf_xfer_partial): Call
9587 section_table_read_available_memory.
9588 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9590 2014-02-23 Yao Qi <yao@codesourcery.com>
9592 * ctf.c (ctf_xfer_partial): Move code to ...
9593 * exec.c (exec_read_partial_read_only): ... it. New function.
9594 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9595 * tracefile.c: Include "exec.h".
9596 * exec.h (exec_read_partial_read_only): Declare.
9598 2014-02-23 Yao Qi <yao@codesourcery.com>
9600 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9601 (tfile_has_memory): Remove.
9602 (init_tfile_ops): Don't set fields to_has_all_memory and
9603 to_has_memory of tfile_ops.
9604 * tracefile.c (tracefile_has_all_memory): New function.
9605 (tracefile_has_memory): New function.
9606 (init_tracefile_ops): Initialize fields to_has_all_memory and
9607 to_has_memory of 'ops'.
9609 2014-02-23 Yao Qi <yao@codesourcery.com>
9611 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9612 (ctf_thread_alive, ctf_get_trace_status): Remove.
9613 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9615 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9616 (tfile_has_stack, tfile_has_registers): Remove.
9617 (tfile_thread_alive): Remove.
9618 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9620 * tracefile.c (tracefile_has_stack): New function.
9621 (tracefile_has_registers): New function.
9622 (tracefile_thread_alive): New function.
9623 (tracefile_get_trace_status): New function.
9624 (init_tracefile_ops): New function.
9625 * tracefile.h (init_tracefile_ops): Declare.
9627 2014-02-23 Yao Qi <yao@codesourcery.com>
9629 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9630 (O_LARGEFILE): Likewise.
9631 (tfile_ops): Likewise.
9632 (TRACE_HEADER_SIZE): Likewise.
9633 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9634 (cur_data_size): Likewise.
9635 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9636 (tfile_close, tfile_files_info): Likewise.
9637 (tfile_get_trace_status): Likewise.
9638 (tfile_get_tracepoint_status): Likewise.
9639 (tfile_get_traceframe_address): Likewise.
9640 (tfile_trace_find, match_blocktype): Likewise.
9641 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9642 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9643 (tfile_get_trace_state_variable_value): Likewise.
9644 (tfile_has_all_memory, tfile_has_memory): Likewise.
9645 (tfile_has_stack, tfile_has_registers): Likewise.
9646 (tfile_thread_alive, build_traceframe_info): Likewise.
9647 (tfile_traceframe_info, init_tfile_ops): Likewise.
9648 (_initialize_tracepoint): Don't call init_tfile_ops
9649 and add_target_with_completer.
9650 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9651 exec.h, completer.h and filenames.h.
9652 (_initialize_tracefile_tfile): New function.
9654 2014-02-23 Yao Qi <yao@codesourcery.com>
9656 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9658 (HFILES_NO_SRCDIR): Add tracefile.h.
9659 * ctf.c: Include "tracefile.h".
9660 * tracefile.h: New file.
9661 * tracefile.c: New file
9662 * tracefile-tfile.c: New file.
9663 * tracepoint.c: Include "tracefile.h".
9664 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9665 (stop_reason_names): Add const.
9666 (trace_file_writer_xfree): Move it to tracefile.c.
9667 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9668 (trace_save_ctf): Likewise.
9669 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9670 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9671 (tfile_write_header, tfile_write_regblock_type): Likewise.
9672 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9673 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9674 (tfile_write_raw_data, tfile_end): Likewise.
9675 (tfile_trace_file_writer_new): Likewise.
9676 (free_uploaded_tp): Make it extern.
9677 (free_uploaded_tsv): Make it extern.
9678 (_initialize_tracepoint): Move code to register command 'tsave'
9680 * tracepoint.h (stop_reason_names): Declare.
9681 (struct trace_frame_write_ops): Move it to tracefile.h.
9682 (struct trace_file_write_ops): Likewise.
9683 (struct trace_file_writer): Likewise.
9684 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9686 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9689 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9691 (get_cores_used_by_process): New parameter num_cores, use it.
9692 (linux_xfer_osdata_processes): Pass num_cores to it.
9693 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9696 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9698 * target.c (memory_xfer_partial): Fix length arg in call to
9699 breakpoint_xfer_memory.
9701 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9704 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9705 number comes after the + or - signs. Adjust length of register
9706 name to be extracted.
9708 2014-02-20 Tom Tromey <tromey@redhat.com>
9710 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9711 (ada_varobj_ops): Mark "extern".
9713 2014-02-20 Tom Tromey <tromey@redhat.com>
9715 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9717 2014-02-20 Doug Evans <xdje42@gmail.com>
9719 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9720 All callers updated.
9721 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9722 All callers updated.
9723 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9724 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9726 2014-02-20 lin zuojian <manjian2006@gmail.com>
9727 Joel Brobecker <brobecker@adacore.com>
9728 Doug Evans <xdje42@gmail.com>
9731 * dwarf2read.c (struct die_info): New member in_process.
9732 (reset_die_in_process): New function.
9733 (process_die): Set it at the start, reset when returning.
9734 (inherit_abstract_dies): Only call process_die if origin_child_die
9735 not already being processed.
9737 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9739 * windows-nat.c (handle_unload_dll): Add function documentation.
9740 (do_initial_windows_stuff): Add comment explaining why we wait
9741 until after inferior initialization has finished before
9742 processing all DLLs.
9744 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9746 * windows-nat.c (get_module_name): Delete.
9747 (windows_get_exec_module_filename): New function, mostly
9748 inspired from get_module_name.
9749 (windows_pid_to_exec_file): Replace call to get_module_name
9750 by call to windows_get_exec_module_filename.
9752 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9754 * windows-nat.c (handle_load_dll): Rewrite this function's
9755 introductory comment. Remove code using get_module_name
9756 to get the DLL's name.
9758 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9760 * windows-nat.c (get_windows_debug_event): Ignore
9761 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9762 if windows_initialization_done == 0.
9763 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9764 Adjust implementation to always load all DLLs.
9765 (do_initial_windows_stuff): Replace call to
9766 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9768 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9770 * windows-nat.c (_initialize_windows_nat): Deprecate the
9771 "dll-symbols" command. Turn the "add-shared-symbol-files"
9772 and "assf" aliases into commands, and deprecate them as well.
9773 * NEWS: Add entry explaining that "dll-symbols" and its two
9774 aliases are now deprecated.
9776 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9778 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9779 new-line in debug string. Remove trailing spaces.
9781 2014-02-19 Stan Shebs <stan@codesourcery.com>
9783 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9785 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9787 * NEWS: Add entry for the new feature
9788 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9791 2014-02-19 Stan Shebs <stan@codesourcery.com>
9793 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9795 2014-02-19 Pedro Alves <palves@redhat.com>
9797 * common/ptid.h (struct ptid): Mention that process_stratum
9798 targets should prefer ptid.lwp.
9800 2014-02-19 Pedro Alves <palves@redhat.com>
9802 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9803 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9804 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9805 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9806 store remote thread ids rather than ptid.tid.
9807 (_initialize_remote): Adjust.
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9811 * target.c (target_get_unwinder): Rewrite.
9812 (target_get_tailcall_unwinder): Rewrite.
9813 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9814 (record_btrace_to_get_tailcall_unwinder): New function.
9815 (init_record_btrace_ops): Update.
9816 * target.h (struct target_ops) <to_get_unwinder,
9817 to_get_tailcall_unwinder>: Now function pointers. Use
9818 TARGET_DEFAULT_RETURN.
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9822 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9824 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9826 2014-02-19 Tom Tromey <tromey@redhat.com>
9828 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9830 * target-delegates.c: Rebuild.
9831 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9832 TARGET_DEFAULT_FUNC.
9833 * target.c (default_target_decr_pc_after_break): Rename from
9834 forward_target_decr_pc_after_break. Simplify.
9835 (target_decr_pc_after_break): Rely on delegation.
9837 2014-02-19 Tom Tromey <tromey@redhat.com>
9839 * target.c (update_current_target): Do not INHERIT to_doc or
9840 to_magic. Do not de_fault to_open or to_close.
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9844 * gcore.h (objfile_find_memory_regions): Declare.
9845 * gcore.c (objfile_find_memory_regions): No longer static. Add
9847 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9848 * exec.c: Include gcore.h.
9849 (exec_set_find_memory_regions): Remove.
9850 (exec_find_memory_regions): Remove.
9851 (exec_do_find_memory_regions): Remove.
9852 (init_exec_ops): Update.
9853 * defs.h (exec_set_find_memory_regions): Remove.
9855 2014-02-19 Tom Tromey <tromey@redhat.com>
9857 * target-delegates.c: Rebuild.
9858 * target.h (struct target_ops) <to_extra_thread_info,
9859 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9860 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9861 not 0, in TARGET_DEFAULT_RETURN.
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9865 * target.c (complete_target_initialization): Remove casts. Use
9866 return_zero_has_execution.
9867 (return_zero): Add "ignore" argument.
9868 (return_zero_has_execution): New function.
9869 (init_dummy_target): Remove casts. Use
9870 return_zero_has_execution.
9872 2014-02-19 Tom Tromey <tromey@redhat.com>
9874 * target.c (update_current_target): Update comments. Do not
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9881 * corelow.c (core_read_description): Delegate when needed.
9882 * remote.c (remote_read_description): Delegate when needed.
9883 * target-delegates.c: Rebuild.
9884 * target.c (target_read_description): Rewrite.
9885 * target.h (struct target_ops) <to_read_description>: Update
9886 comment. Use TARGET_DEFAULT_RETURN.
9888 2014-02-19 Tom Tromey <tromey@redhat.com>
9890 * target-delegates.c: Rebuild.
9891 * target.c (update_current_target): Don't inherit or default
9893 (find_default_run_target): Check against delegate_can_run.
9894 * target.h (struct target_ops) <to_can_run>: Use
9895 TARGET_DEFAULT_RETURN.
9897 2014-02-19 Tom Tromey <tromey@redhat.com>
9899 * target-delegates.c: Rebuild.
9900 * target.c (target_disconnect): Unconditionally delegate.
9901 * target.h (struct target_ops) <to_disconnect>: Use
9902 TARGET_DEFAULT_NORETURN.
9904 2014-02-19 Tom Tromey <tromey@redhat.com>
9906 * record.c (record_stop): Unconditionally delegate.
9907 * target-delegates.c: Rebuild.
9908 * target.c (target_stop_recording): Unconditionally delegate.
9909 * target.h (struct target_ops) <to_stop_recording>: Use
9910 TARGET_DEFAULT_IGNORE.
9912 2014-02-19 Tom Tromey <tromey@redhat.com>
9914 * target-delegates.c: Rebuild.
9915 * target.c (target_enable_btrace): Unconditionally delegate.
9916 * target.h (struct target_ops) <to_enable_btrace>: Use
9917 TARGET_DEFAULT_NORETURN.
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9921 * target-delegates.c: Rebuild.
9922 * target.c (target_read_btrace): Unconditionally delegate.
9923 * target.h (struct target_ops) <to_read_btrace>: Use
9924 TARGET_DEFAULT_NORETURN.
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9928 * target-delegates.c: Rebuild.
9929 * target.c (target_teardown_btrace): Unconditionally delegate.
9930 * target.h (struct target_ops) <to_teardown_btrace>: Use
9931 TARGET_DEFAULT_NORETURN.
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9935 * target-delegates.c: Rebuild.
9936 * target.c (target_disable_btrace): Unconditionally delegate.
9937 * target.h (struct target_ops) <to_disable_btrace>: Use
9938 TARGET_DEFAULT_NORETURN.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * target-delegates.c: Rebuild.
9943 * target.c (default_search_memory): New function.
9944 (simple_search_memory): Update comment.
9945 (target_search_memory): Unconditionally delegate.
9946 * target.h (struct target_ops) <to_search_memory>: Use
9947 TARGET_DEFAULT_FUNC.
9949 2014-02-19 Tom Tromey <tromey@redhat.com>
9951 * auxv.c (default_auxv_parse): No longer static.
9952 (target_auxv_parse): Unconditionally delegate.
9953 * auxv.h (default_auxv_parse): Declare.
9954 * target-delegates.c: Rebuild.
9955 * target.c: Include auxv.h.
9956 * target.h (struct target_ops) <to_auxv_parse>: Use
9957 TARGET_DEFAULT_FUNC.
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9961 * target-delegates.c: Rebuild.
9962 * target.c (target_memory_map): Unconditionally delegate.
9963 * target.h (struct target_ops) <to_memory_map>: Use
9964 TARGET_DEFAULT_RETURN.
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9968 * target-delegates.c: Rebuild.
9969 * target.c (target_thread_alive): Unconditionally delegate.
9970 * target.h (struct target_ops) <to_thread_alive>: Use
9971 TARGET_DEFAULT_RETURN.
9973 2014-02-19 Tom Tromey <tromey@redhat.com>
9975 * target-delegates.c: Rebuild.
9976 * target.c (target_save_record): Unconditionally delegate.
9977 * target.h (struct target_ops) <to_save_record>: Use
9978 TARGET_DEFAULT_NORETURN.
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9982 * target-delegates.c: Rebuild.
9983 * target.c (target_delete_record): Unconditionally delegate.
9984 * target.h (struct target_ops) <to_delete_record>: Use
9985 TARGET_DEFAULT_NORETURN.
9987 2014-02-19 Tom Tromey <tromey@redhat.com>
9989 * target-delegates.c: Rebuild.
9990 * target.c (target_record_is_replaying): Unconditionally
9992 * target.h (struct target_ops) <to_record_is_replaying>: Use
9993 TARGET_DEFAULT_RETURN.
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9997 * target-delegates.c: Rebuild.
9998 * target.c (target_goto_record_begin): Unconditionally delegate.
9999 * target.h (struct target_ops) <to_goto_record_begin>: Use
10000 TARGET_DEFAULT_NORETURN.
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10004 * target-delegates.c: Rebuild.
10005 * target.c (target_goto_record_end): Unconditionally delegate.
10006 * target.h (struct target_ops) <to_goto_record_end>: Use
10007 TARGET_DEFAULT_NORETURN.
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10011 * target-delegates.c: Rebuild.
10012 * target.c (target_goto_record): Unconditionally delegate.
10013 * target.h (struct target_ops) <to_goto_record>: Use
10014 TARGET_DEFAULT_NORETURN.
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10018 * target-delegates.c: Rebuild.
10019 * target.c (target_insn_history): Unconditionally delegate.
10020 * target.h (struct target_ops) <to_insn_history>: Use
10021 TARGET_DEFAULT_NORETURN.
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * target-delegates.c: Rebuild.
10026 * target.c (target_insn_history_from): Unconditionally delegate.
10027 * target.h (struct target_ops) <to_insn_history_from>: Use
10028 TARGET_DEFAULT_NORETURN.
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10032 * target-delegates.c: Rebuild.
10033 * target.c (target_insn_history_range): Unconditionally delegate.
10034 * target.h (struct target_ops) <to_insn_history_range>: Use
10035 TARGET_DEFAULT_NORETURN.
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10039 * target-delegates.c: Rebuild.
10040 * target.c (target_call_history): Unconditionally delegate.
10041 * target.h (struct target_ops) <to_call_history>: Use
10042 TARGET_DEFAULT_NORETURN.
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * target-delegates.c: Rebuild.
10047 * target.c (target_call_history_from): Unconditionally delegate.
10048 * target.h (struct target_ops) <to_call_history_from>: Use
10049 TARGET_DEFAULT_NORETURN.
10051 2014-02-19 Tom Tromey <tromey@redhat.com>
10053 * target-delegates.c: Rebuild.
10054 * target.c (target_call_history_range): Unconditionally delegate.
10055 * target.h (struct target_ops) <to_call_history_range>: Use
10056 TARGET_DEFAULT_NORETURN.
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10060 * target-delegates.c: Rebuild.
10061 * target.c (target_verify_memory): Unconditionally delegate.
10062 * target.h (struct target_ops) <to_verify_memory>: Use
10063 TARGET_DEFAULT_NORETURN.
10065 2014-02-19 Tom Tromey <tromey@redhat.com>
10067 * target-delegates.c: Rebuild.
10068 * target.c (target_core_of_thread): Unconditionally delegate.
10069 * target.h (struct target_ops) <to_core_of_thread>: Use
10070 TARGET_DEFAULT_RETURN.
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10074 * target-delegates.c: Rebuild.
10075 * target.c (target_flash_done): Unconditionally delegate.
10076 * target.h (struct target_ops) <to_flash_done>: Use
10077 TARGET_DEFAULT_NORETURN.
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10081 * target-delegates.c: Rebuild.
10082 * target.c (target_flash_erase): Unconditionally delegate.
10083 * target.h (struct target_ops) <to_flash_erase>: Use
10084 TARGET_DEFAULT_NORETURN.
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target-delegates.c: Rebuild.
10089 * target.c (target_get_section_table): Unconditionally delegate.
10090 * target.h (struct target_ops) <to_get_section_table>: Use
10091 TARGET_DEFAULT_RETURN.
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10095 * target-delegates.c: Rebuild.
10096 * target.c (target_pid_to_str): Unconditionally delegate.
10097 (init_dummy_target): Don't initialize to_pid_to_str.
10098 (default_pid_to_str): Rename from dummy_pid_to_str.
10099 * target.h (struct target_ops) <to_pid_to_str>: Use
10100 TARGET_DEFAULT_FUNC.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target-delegates.c: Rebuild.
10105 * target.c (target_find_new_threads): Unconditionally delegate.
10106 * target.h (struct target_ops) <to_find_new_threads>: Use
10107 TARGET_DEFAULT_RETURN.
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10111 * target-delegates.c: Rebuild.
10112 * target.c (target_program_signals): Unconditionally delegate.
10113 * target.h (struct target_ops) <to_program_signals>: Use
10114 TARGET_DEFAULT_IGNORE.
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10118 * target-delegates.c: Rebuild.
10119 * target.c (target_pass_signals): Unconditionally delegate.
10120 * target.h (struct target_ops) <to_pass_signals>: Use
10121 TARGET_DEFAULT_IGNORE.
10123 2014-02-19 Tom Tromey <tromey@redhat.com>
10125 * target-delegates.c: Rebuild.
10126 * target.c (default_mourn_inferior): New function.
10127 (target_mourn_inferior): Unconditionally delegate.
10128 * target.h (struct target_ops) <to_mourn_inferior>: Use
10129 TARGET_DEFAULT_FUNC.
10131 2014-02-19 Tom Tromey <tromey@redhat.com>
10133 * target-delegates.c: Rebuild.
10134 * target.c (default_follow_fork): New function.
10135 (target_follow_fork): Unconditionally delegate.
10136 * target.h (struct target_ops) <to_follow_fork>: Use
10137 TARGET_DEFAULT_FUNC.
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10141 * target-delegates.c: Rebuild.
10142 * target.c (target_kill): Unconditionally delegate.
10143 * target.h (struct target_ops) <to_kill>: Use
10144 TARGET_DEFAULT_NORETURN.
10146 2014-02-19 Tom Tromey <tromey@redhat.com>
10148 * target-delegates.c: Rebuild.
10149 * target.c (target_masked_watch_num_registers): Unconditionally
10151 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10152 Use TARGET_DEFAULT_RETURN.
10154 2014-02-19 Tom Tromey <tromey@redhat.com>
10156 * target-delegates.c: Rebuild.
10157 * target.c (target_remove_mask_watchpoint): Unconditionally
10159 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10160 TARGET_DEFAULT_RETURN.
10162 2014-02-19 Tom Tromey <tromey@redhat.com>
10164 * target-delegates.c: Rebuild.
10165 * target.c (target_insert_mask_watchpoint): Unconditionally
10167 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10168 TARGET_DEFAULT_RETURN.
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10172 * target-delegates.c: Rebuild.
10173 * target.c (target_ranged_break_num_registers): Unconditionally
10175 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10176 Use TARGET_DEFAULT_RETURN.
10178 2014-02-19 Tom Tromey <tromey@redhat.com>
10180 * target-delegates.c: Rebuild.
10181 * target.c (target_fetch_registers): Unconditionally delegate.
10182 * target.h (struct target_ops) <to_fetch_registers>: Use
10183 TARGET_DEFAULT_NORETURN.
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10187 * target-delegates.c: Rebuild.
10188 * target.c (update_current_target): Don't inherit or default
10190 * target.h (struct target_ops) <to_stop>: Use
10191 TARGET_DEFAULT_IGNORE.
10193 2014-02-19 Tom Tromey <tromey@redhat.com>
10195 * target-delegates.c: Rebuild.
10196 * target.c (update_current_target): Don't inherit or default
10197 to_can_run_breakpoint_commands.
10198 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10199 Use TARGET_DEFAULT_RETURN.
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10203 * target-delegates.c: Rebuild.
10204 * target.c (update_current_target): Don't inherit or default
10205 to_supports_evaluation_of_breakpoint_conditions.
10206 * target.h (struct target_ops)
10207 <to_supports_evaluation_of_breakpoint_conditions>: Use
10208 TARGET_DEFAULT_RETURN.
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10212 * target-delegates.c: Rebuild.
10213 * target.c (update_current_target): Don't inherit or default
10214 to_augmented_libraries_svr4_read.
10215 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10216 Use TARGET_DEFAULT_RETURN.
10218 2014-02-19 Tom Tromey <tromey@redhat.com>
10220 * target-delegates.c: Rebuild.
10221 * target.c (update_current_target): Don't inherit or default
10223 * target.h (struct target_ops) <to_can_use_agent>: Use
10224 TARGET_DEFAULT_RETURN.
10226 2014-02-19 Tom Tromey <tromey@redhat.com>
10228 * target-delegates.c: Rebuild.
10229 * target.c (update_current_target): Don't inherit or default
10231 * target.h (struct target_ops) <to_use_agent>: Use
10232 TARGET_DEFAULT_NORETURN.
10234 2014-02-19 Tom Tromey <tromey@redhat.com>
10236 * target-delegates.c: Rebuild.
10237 * target.c (update_current_target): Don't inherit or default
10238 to_traceframe_info.
10239 (return_null): Remove.
10240 * target.h (struct target_ops) <to_traceframe_info>: Use
10241 TARGET_DEFAULT_RETURN.
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10245 * target-delegates.c: Rebuild.
10246 * target.c (update_current_target): Don't inherit or default
10247 to_static_tracepoint_markers_by_strid.
10248 * target.h (struct target_ops)
10249 <to_static_tracepoint_markers_by_strid>: Use
10250 TARGET_DEFAULT_NORETURN.
10252 2014-02-19 Tom Tromey <tromey@redhat.com>
10254 * target-delegates.c: Rebuild.
10255 * target.c (update_current_target): Don't inherit or default
10256 to_static_tracepoint_marker_at.
10257 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10258 Use TARGET_DEFAULT_RETURN.
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10262 * target-delegates.c: Rebuild.
10263 * target.c (update_current_target): Don't inherit or default
10264 to_set_permissions.
10265 * target.h (struct target_ops) <to_set_permissions>: Use
10266 TARGET_DEFAULT_IGNORE.
10268 2014-02-19 Tom Tromey <tromey@redhat.com>
10270 * target-delegates.c: Rebuild.
10271 * target.c (update_current_target): Don't inherit or default
10272 to_get_tib_address.
10273 * target.h (struct target_ops) <to_get_tib_address>: Use
10274 TARGET_DEFAULT_NORETURN.
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10278 * target-delegates.c: Rebuild.
10279 * target.c (update_current_target): Don't inherit or default
10280 to_set_trace_notes.
10281 * target.h (struct target_ops) <to_set_trace_notes>: Use
10282 TARGET_DEFAULT_RETURN.
10284 2014-02-19 Tom Tromey <tromey@redhat.com>
10286 * target-delegates.c: Rebuild.
10287 * target.c (update_current_target): Don't initialize
10288 to_set_trace_buffer_size.
10289 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10290 TARGET_DEFAULT_IGNORE.
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10294 * target-delegates.c: Rebuild.
10295 * target.c (update_current_target): Don't inherit or default
10296 to_set_circular_trace_buffer.
10297 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10298 TARGET_DEFAULT_IGNORE.
10300 2014-02-19 Tom Tromey <tromey@redhat.com>
10302 * target-delegates.c: Rebuild.
10303 * target.c (update_current_target): Don't inherit or default
10304 to_set_disconnected_tracing.
10305 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10306 TARGET_DEFAULT_IGNORE.
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10310 * target-delegates.c: Rebuild.
10311 * target.c (update_current_target): Don't inherit or default
10312 to_get_min_fast_tracepoint_insn_len.
10313 (return_minus_one): Remove.
10314 * target.h (struct target_ops)
10315 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10319 * target-delegates.c: Rebuild.
10320 * target.c (update_current_target): Don't inherit or default
10321 to_get_raw_trace_data.
10322 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10323 TARGET_DEFAULT_NORETURN.
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10327 * target-delegates.c: Rebuild.
10328 * target.c (update_current_target): Don't inherit or default
10329 to_upload_trace_state_variables.
10330 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10331 Use TARGET_DEFAULT_RETURN.
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10335 * target-delegates.c: Rebuild.
10336 * target.c (update_current_target): Don't inherit or default
10337 to_upload_tracepoints.
10338 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10339 TARGET_DEFAULT_RETURN.
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target-delegates.c: Rebuild.
10344 * target.c (update_current_target): Don't inherit or default
10345 to_save_trace_data.
10346 * target.h (struct target_ops) <to_save_trace_data>: Use
10347 TARGET_DEFAULT_NORETURN.
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10353 to_get_trace_state_variable_value.
10354 * target.h (struct target_ops)
10355 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10359 * target-delegates.c: Rebuild.
10360 * target.c (update_current_target): Don't inherit or default
10362 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10366 * target-delegates.c: Rebuild.
10367 * target.c (update_current_target): Don't inherit or default
10369 * target.h (struct target_ops) <to_trace_stop>: Use
10370 TARGET_DEFAULT_NORETURN.
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10374 * target-delegates.c: Rebuild.
10375 * target.c (update_current_target): Don't inherit or default
10376 to_get_tracepoint_status.
10377 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10378 TARGET_DEFAULT_NORETURN.
10380 2014-02-19 Tom Tromey <tromey@redhat.com>
10382 * target-delegates.c: Rebuild.
10383 * target.c (update_current_target): Don't inherit or default
10384 to_get_trace_status.
10385 * target.h (struct target_ops) <to_get_trace_status>: Use
10386 TARGET_DEFAULT_RETURN.
10388 2014-02-19 Tom Tromey <tromey@redhat.com>
10390 * target-delegates.c: Rebuild.
10391 * target.c (update_current_target): Don't inherit or default
10393 * target.h (struct target_ops) <to_trace_start>: Use
10394 TARGET_DEFAULT_NORETURN.
10396 2014-02-19 Tom Tromey <tromey@redhat.com>
10398 * target-delegates.c: Rebuild.
10399 * target.c (update_current_target): Don't inherit or default
10400 to_trace_set_readonly_regions.
10401 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10402 Use TARGET_DEFAULT_NORETURN.
10404 2014-02-19 Tom Tromey <tromey@redhat.com>
10406 * target-delegates.c: Rebuild.
10407 * target.c (update_current_target): Don't inherit or default
10408 to_disable_tracepoint.
10409 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10410 TARGET_DEFAULT_NORETURN.
10412 2014-02-19 Tom Tromey <tromey@redhat.com>
10414 * target-delegates.c: Rebuild.
10415 * target.c (update_current_target): Don't inherit or default
10416 to_enable_tracepoint.
10417 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10418 TARGET_DEFAULT_NORETURN.
10420 2014-02-19 Tom Tromey <tromey@redhat.com>
10422 * target-delegates.c: Rebuild.
10423 * target.c (update_current_target): Don't inherit or default
10424 to_download_trace_state_variable.
10425 * target.h (struct target_ops) <to_download_trace_state_variable>:
10426 Use TARGET_DEFAULT_NORETURN.
10428 2014-02-19 Tom Tromey <tromey@redhat.com>
10430 * target-delegates.c: Rebuild.
10431 * target.c (update_current_target): Don't inherit or default
10432 to_can_download_tracepoint.
10433 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10434 TARGET_DEFAULT_RETURN.
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10438 * target-delegates.c: Rebuild.
10439 * target.c (update_current_target): Don't inherit or default
10440 to_download_tracepoint.
10441 * target.h (struct target_ops) <to_download_tracepoint>: Use
10442 TARGET_DEFAULT_NORETURN.
10444 2014-02-19 Tom Tromey <tromey@redhat.com>
10446 * target-delegates.c: Rebuild.
10447 * target.c (update_current_target): Don't inherit or default
10449 * target.h (struct target_ops) <to_trace_init>: Use
10450 TARGET_DEFAULT_RETURN.
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10454 * target-delegates.c: Rebuild.
10455 * target.c (update_current_target): Don't inherit or default
10456 to_supports_string_tracing.
10457 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10458 TARGET_DEFAULT_RETURN.
10460 2014-02-19 Tom Tromey <tromey@redhat.com>
10462 * target-delegates.c: Rebuild.
10463 * target.c (update_current_target): Don't inherit or default
10464 to_supports_enable_disable_tracepoint.
10465 * target.h (struct target_ops)
10466 <to_supports_enable_disable_tracepoint>: Use
10467 TARGET_DEFAULT_RETURN.
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10471 * target-delegates.c: Rebuild.
10472 * target.c (update_current_target): Don't inherit or default
10473 to_supports_multi_process.
10474 * target.h (struct target_ops) <to_supports_multi_process>: Use
10475 TARGET_DEFAULT_RETURN.
10477 2014-02-19 Tom Tromey <tromey@redhat.com>
10479 * target-delegates.c: Rebuild.
10480 * target.c (update_current_target): Don't inherit or default
10481 to_get_ada_task_ptid.
10482 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10483 TARGET_DEFAULT_FUNC.
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10487 * target-delegates.c: Rebuild.
10488 * target.c (update_current_target): Don't inherit or default
10489 to_thread_architecture.
10490 * target.h (struct target_ops) <to_thread_architecture>: Use
10491 TARGET_DEFAULT_FUNC.
10493 2014-02-19 Tom Tromey <tromey@redhat.com>
10495 * target-delegates.c: Rebuild.
10496 * target.c (update_current_target): Don't inherit or default
10497 to_execution_direction.
10498 * target.h (struct target_ops) <to_execution_direction>: Use
10499 TARGET_DEFAULT_FUNC.
10501 2014-02-19 Tom Tromey <tromey@redhat.com>
10503 * target-delegates.c: Rebuild.
10504 * target.c (update_current_target): Don't inherit or default
10505 to_can_execute_reverse.
10506 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10507 TARGET_DEFAULT_RETURN.
10508 (target_can_execute_reverse): Unconditionally delegate.
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
10515 (dummy_goto_bookmark): Remove.
10516 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10517 * target.h (struct target_ops) <to_goto_bookmark>: Use
10518 TARGET_DEFAULT_NORETURN.
10520 2014-02-19 Tom Tromey <tromey@redhat.com>
10522 * target-delegates.c: Rebuild.
10523 * target.c (update_current_target): Don't inherit or default
10525 (dummy_get_bookmark): Remove.
10526 (init_dummy_target): Don't inherit or default to_get_bookmark.
10527 * target.h (struct target_ops) <to_get_bookmark>: Use
10528 TARGET_DEFAULT_NORETURN
10530 2014-02-19 Tom Tromey <tromey@redhat.com>
10532 * target-delegates.c: Rebuild.
10533 * target.c (update_current_target): Don't inherit or default
10534 to_make_corefile_notes.
10535 (init_dummy_target): Don't initialize to_make_corefile_notes.
10536 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10537 TARGET_DEFAULT_FUNC.
10539 2014-02-19 Tom Tromey <tromey@redhat.com>
10541 * target-delegates.c: Rebuild.
10542 * target.c (update_current_target): Don't inherit or default
10543 to_find_memory_regions.
10544 (init_dummy_target): Don't initialize to_find_memory_regions.
10545 * target.h (struct target_ops) <to_find_memory_regions>: Use
10546 TARGET_DEFAULT_FUNC.
10548 2014-02-19 Tom Tromey <tromey@redhat.com>
10550 * target-delegates.c: Rebuild.
10551 * target.c (update_current_target): Don't inherit or default
10553 * target.h (struct target_ops) <to_log_command>: Use
10554 TARGET_DEFAULT_IGNORE.
10555 (target_log_command): Unconditionally delegate.
10557 2014-02-19 Tom Tromey <tromey@redhat.com>
10559 * target-delegates.c: Rebuild.
10560 * target.c (update_current_target): Don't inherit or default
10561 to_pid_to_exec_file.
10562 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10563 TARGET_DEFAULT_RETURN.
10565 2014-02-19 Tom Tromey <tromey@redhat.com>
10567 * target-delegates.c: Rebuild.
10568 * target.c (update_current_target): Don't inherit or default
10570 (target_thread_name): Unconditionally delegate.
10571 * target.h (struct target_ops) <to_thread_name>: Use
10572 TARGET_DEFAULT_RETURN.
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10576 * target-delegates.c: Rebuild.
10577 * target.c (update_current_target): Don't inherit or default
10578 to_extra_thread_info.
10579 * target.h (struct target_ops) <to_extra_thread_info>: Use
10580 TARGET_DEFAULT_RETURN.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target-delegates.c: Rebuild.
10585 * target.c (update_current_target): Don't inherit or default
10587 * target.h (struct target_ops) <to_has_exited>: Use
10588 TARGET_DEFAULT_RETURN..
10590 2014-02-19 Tom Tromey <tromey@redhat.com>
10592 * target-delegates.c: Rebuild.
10593 * target.c (update_current_target): Don't inherit or default
10594 to_set_syscall_catchpoint.
10595 (return_one): Remove.
10596 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10597 TARGET_DEFAULT_RETURN.
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_insert_exec_catchpoint.
10604 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10605 TARGET_DEFAULT_RETURN.
10607 2014-01-08 Tom Tromey <tromey@redhat.com>
10609 * target-delegates.c: Rebuild.
10610 * target.c (update_current_target): Don't inherit or default
10611 to_insert_exec_catchpoint.
10612 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10613 TARGET_DEFAULT_RETURN.
10615 2014-02-19 Tom Tromey <tromey@redhat.com>
10617 * target-delegates.c: Rebuild.
10618 * target.c (update_current_target): Don't inherit or default
10619 to_remove_vfork_catchpoint.
10620 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10621 TARGET_DEFAULT_RETURN.
10623 2014-02-19 Tom Tromey <tromey@redhat.com>
10625 * target-delegates.c: Rebuild.
10626 * target.c (update_current_target): Don't inherit or default
10627 to_insert_vfork_catchpoint.
10628 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10629 TARGET_DEFAULT_RETURN.
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10633 * target-delegates.c: Rebuild.
10634 * target.c (update_current_target): Don't inherit or default
10635 to_remove_fork_catchpoint.
10636 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10637 TARGET_DEFAULT_RETURN.
10639 2014-02-19 Tom Tromey <tromey@redhat.com>
10641 * target-delegates.c: Rebuild.
10642 * target.c (update_current_target): Don't inherit or default
10643 to_insert_fork_catchpoint.
10644 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10645 TARGET_DEFAULT_RETURN.
10647 2014-02-19 Tom Tromey <tromey@redhat.com>
10649 * target-delegates.c: Rebuild.
10650 * target.c (update_current_target): Don't inherit or default
10651 to_post_startup_inferior.
10652 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10653 TARGET_DEFAULT_IGNORE.
10655 2014-02-19 Tom Tromey <tromey@redhat.com>
10657 * target-delegates.c: Rebuild.
10658 * target.c (update_current_target): Don't inherit or default
10660 * target.h (struct target_ops) <to_load>: Use
10661 TARGET_DEFAULT_NORETURN.
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10665 * target-delegates.c: Rebuild.
10666 * target.c (update_current_target): Don't inherit or default
10668 * target.h (struct target_ops) <to_terminal_info>: Use
10669 TARGET_DEFAULT_FUNC.
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
10675 to_terminal_save_ours.
10676 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10677 TARGET_DEFAULT_IGNORE.
10679 2014-02-19 Tom Tromey <tromey@redhat.com>
10681 * target-delegates.c: Rebuild.
10682 * target.c (update_current_target): Don't inherit or default
10684 * target.h (struct target_ops) <to_terminal_ours>: Use
10685 TARGET_DEFAULT_IGNORE.
10687 2014-02-19 Tom Tromey <tromey@redhat.com>
10689 * target-delegates.c: Rebuild.
10690 * target.c (update_current_target): Don't inherit or default
10691 to_terminal_ours_for_output.
10692 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10693 TARGET_DEFAULT_IGNORE.
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10697 * target-delegates.c: Rebuild.
10698 * target.c (update_current_target): Don't inherit or default
10699 to_terminal_inferior.
10700 * target.h (struct target_ops) <to_terminal_inferior>: Use
10701 TARGET_DEFAULT_IGNORE.
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10705 * target-delegates.c: Rebuild.
10706 * target.c (update_current_target): Don't inherit or default
10708 * target.h (struct target_ops) <to_terminal_init>: Use
10709 TARGET_DEFAULT_IGNORE.
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10713 * target-delegates.c: Rebuild.
10714 * target.c (update_current_target): Don't inherit or default
10715 to_can_accel_watchpoint_condition.
10716 * target.h (struct target_ops)
10717 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10719 2014-02-19 Tom Tromey <tromey@redhat.com>
10721 * target-delegates.c: Rebuild.
10722 * target.c (update_current_target): Don't inherit or default
10723 to_region_ok_for_hw_watchpoint.
10724 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10725 Use TARGET_DEFAULT_FUNC.
10727 2014-02-19 Tom Tromey <tromey@redhat.com>
10729 * target-delegates.c: Rebuild.
10730 * target.c (update_current_target): Don't inherit or default
10731 to_watchpoint_addr_within_range.
10732 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10733 Use TARGET_DEFAULT_FUNC.
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10737 * target-delegates.c: Rebuild.
10738 * target.c (update_current_target): Don't inherit or default
10739 to_remove_watchpoint.
10740 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10741 TARGET_DEFAULT_NORETURN.
10743 2014-02-19 Tom Tromey <tromey@redhat.com>
10745 * target-delegates.c: Rebuild.
10746 * target.c (update_current_target): Don't inherit or default
10747 to_insert_watchpoint.
10748 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10749 TARGET_DEFAULT_RETURN.
10751 2014-02-19 Tom Tromey <tromey@redhat.com>
10753 * target-delegates.c: Rebuild.
10754 * target.c (update_current_target): Don't inherit or default
10755 to_remove_hw_breakpoint.
10756 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10757 TARGET_DEFAULT_RETURN.
10759 2014-02-19 Tom Tromey <tromey@redhat.com>
10761 * target-delegates.c: Rebuild.
10762 * target.c (update_current_target): Don't inherit or default
10763 to_insert_hw_breakpoint.
10764 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10765 TARGET_DEFAULT_RETURN.
10767 2014-02-19 Tom Tromey <tromey@redhat.com>
10769 * target-delegates.c: Rebuild.
10770 * target.c (update_current_target): Don't inherit or default
10771 to_can_use_hw_breakpoint.
10772 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10773 TARGET_DEFAULT_RETURN.
10775 2014-02-19 Tom Tromey <tromey@redhat.com>
10777 * target-delegates.c: Rebuild.
10778 * target.c (update_current_target): Don't inherit or default
10780 * target.h (struct target_ops) <to_files_info>: Use
10781 TARGET_DEFAULT_IGNORE.
10783 2014-02-19 Tom Tromey <tromey@redhat.com>
10785 * target-delegates.c: Rebuild.
10786 * target.c (update_current_target): Don't inherit or default
10788 * target.h (struct target_ops) <to_store>: Use
10789 TARGET_DEFAULT_NORETURN.
10791 2014-02-19 Tom Tromey <tromey@redhat.com>
10793 * target-delegates.c: Rebuild.
10794 * target.c (update_current_target): Don't inherit or default
10796 * target.h (struct target_ops) <to_post_attach>: Use
10797 TARGET_DEFAULT_IGNORE.
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target-delegates.c: Rebuild.
10802 * target.c (update_current_target): Don't inherit or default
10804 (default_rcmd): New function.
10805 (do_monitor_command): Unconditionally delegate.
10806 * target.h (struct target_ops) <to_rmcd>: Use
10807 TARGET_DEFAULT_FUNC.
10809 2014-02-19 Tom Tromey <tromey@redhat.com>
10811 * target-delegates.c: Rebuild.
10812 * target.c (init_dummy_target): Don't initialize to_attach.
10813 (target_attach): Unconditionally delegate.
10814 * target.h (struct target_ops) <to_attach>: Use
10815 TARGET_DEFAULT_FUNC.
10817 2014-02-19 Tom Tromey <tromey@redhat.com>
10819 * target-delegates.c: Rebuild.
10820 * target.c (target_detach): Unconditionally delegate.
10821 (init_dummy_target): Don't initialize to_detach.
10822 * target.h (struct target_ops) <to_detach>: Use
10823 TARGET_DEFAULT_IGNORE.
10825 2014-02-19 Tom Tromey <tromey@redhat.com>
10827 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10829 (target_augmented_libraries_svr4_read): Add argument.
10830 * target.c (update_current_target): Update.
10831 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * target.h (struct target_ops) <to_call_history_range>: Add
10838 * target.c (target_call_history_range): Add argument.
10839 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10841 (record_btrace_call_history_from): Update.
10843 2014-02-19 Tom Tromey <tromey@redhat.com>
10845 * target.h (struct target_ops) <to_call_history_from>: Add
10847 * target.c (target_call_history_from): Add argument.
10848 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10851 2014-02-19 Tom Tromey <tromey@redhat.com>
10853 * target.h (struct target_ops) <to_call_history>: Add argument.
10854 * target.c (target_call_history): Add argument.
10855 * record-btrace.c (record_btrace_call_history): Add 'self'
10858 2014-02-19 Tom Tromey <tromey@redhat.com>
10860 * target.h (struct target_ops) <to_insn_history_range>: Add
10862 * target.c (target_insn_history_range): Add argument.
10863 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10865 (record_btrace_insn_history_from): Update.
10867 2014-02-19 Tom Tromey <tromey@redhat.com>
10869 * target.h (struct target_ops) <to_insn_history_from>: Add
10871 * target.c (target_insn_history_from): Add argument.
10872 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10877 * target.h (struct target_ops) <to_insn_history>: Add argument.
10878 * target.c (target_insn_history): Add argument.
10879 * record-btrace.c (record_btrace_insn_history): Add 'self'
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10884 * target.h (struct target_ops) <to_goto_record>: Add argument.
10885 * target.c (target_goto_record): Add argument.
10886 * record-full.c (record_full_goto): Add 'self' argument.
10887 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10891 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10892 * target.c (target_goto_record_end): Add argument.
10893 * record-full.c (record_full_goto_end): Add 'self' argument.
10894 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10898 * target.h (struct target_ops) <to_goto_record_begin>: Add
10900 * target.c (target_goto_record_begin): Add argument.
10901 * record-full.c (record_full_goto_begin): Add 'self' argument.
10902 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target.h (struct target_ops) <to_record_is_replaying>: Add
10909 * target.c (target_record_is_replaying): Add argument.
10910 * record-full.c (record_full_is_replaying): Add 'self' argument.
10911 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10913 (record_btrace_xfer_partial, record_btrace_store_registers)
10914 (record_btrace_prepare_to_store, record_btrace_resume)
10915 (record_btrace_wait, record_btrace_decr_pc_after_break)
10916 (record_btrace_find_new_threads, record_btrace_thread_alive):
10919 2014-02-19 Tom Tromey <tromey@redhat.com>
10921 * target.h (struct target_ops) <to_delete_record>: Add argument.
10922 * target.c (target_delete_record): Add argument.
10923 * record-full.c (record_full_delete): Add 'self' argument.
10925 2014-02-19 Tom Tromey <tromey@redhat.com>
10927 * target.h (struct target_ops) <to_save_record>: Add argument.
10928 * target.c (target_save_record): Add argument.
10929 * record-full.c (record_full_save): Add 'self' argument.
10930 (record_full_save): Add 'self' argument.
10932 2014-02-19 Tom Tromey <tromey@redhat.com>
10934 * target.h (struct target_ops) <to_info_record>: Add argument.
10935 * target.c (target_info_record): Add argument.
10936 * record.c (info_record_command): Add argument.
10937 * record-full.c (record_full_info): Add 'self' argument.
10938 * record-btrace.c (record_btrace_info): Add 'self' argument.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10943 * target.c (target_stop_recording): Add argument.
10944 * record.c (record_stop): Add argument.
10945 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10950 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10951 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10952 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10954 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10955 (_initialize_amd64_linux_nat): Use it.
10956 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10957 (_initialize_i386_linux_nat): Use it.
10959 2014-02-19 Tom Tromey <tromey@redhat.com>
10961 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10962 * target.c (target_teardown_btrace): Add argument.
10963 * remote.c (remote_teardown_btrace): Add 'self' argument.
10964 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10966 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10969 2014-02-19 Tom Tromey <tromey@redhat.com>
10971 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10972 * target.c (target_disable_btrace): Add argument.
10973 * remote.c (remote_disable_btrace): Add 'self' argument.
10974 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10976 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10981 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10982 * target.c (target_enable_btrace): Add argument.
10983 * remote.c (remote_enable_btrace): Add 'self' argument.
10984 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10986 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10991 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10992 (target_can_use_agent): Add argument.
10993 * target.c (update_current_target): Update.
10994 * remote.c (remote_can_use_agent): Add 'self' argument.
10995 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10997 2014-02-19 Tom Tromey <tromey@redhat.com>
10999 * target.h (struct target_ops) <to_use_agent>: Add argument.
11000 (target_use_agent): Add argument.
11001 * target.c (update_current_target): Update.
11002 * remote.c (remote_use_agent): Add 'self' argument.
11003 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11005 2014-02-19 Tom Tromey <tromey@redhat.com>
11007 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11008 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11009 (target_traceframe_info): Add argument.
11010 * target.c (update_current_target): Update.
11011 * remote.c (remote_traceframe_info): Add 'self' argument.
11012 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11014 2014-02-19 Tom Tromey <tromey@redhat.com>
11016 * target.h (target_static_tracepoint_markers_by_strid): Add
11018 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11020 * target.c (update_current_target): Update.
11021 * remote.c (struct target_ops)
11022 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11023 * linux-nat.c (struct target_ops)
11024 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11026 2014-02-19 Tom Tromey <tromey@redhat.com>
11028 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11030 (target_static_tracepoint_marker_at): Add argument.
11031 * target.c (update_current_target): Update.
11032 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11035 2014-02-19 Tom Tromey <tromey@redhat.com>
11037 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11038 (target_set_permissions): Add argument.
11039 * target.c (update_current_target): Update.
11040 * remote.c (remote_set_permissions): Add 'self' argument.
11041 (remote_start_remote): Update.
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11045 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11046 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11047 (target_get_tib_address): Add argument.
11048 * target.c (update_current_target): Update.
11049 * remote.c (remote_get_tib_address): Add 'self' argument.
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11053 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11054 (target_set_trace_notes): Add argument.
11055 * target.c (update_current_target): Update.
11056 * remote.c (remote_set_trace_notes): Add 'self' argument.
11058 2014-02-19 Tom Tromey <tromey@redhat.com>
11060 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11062 (target_set_trace_buffer_size): Add argument.
11063 * target.c (update_current_target): Update.
11064 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11066 2014-02-19 Tom Tromey <tromey@redhat.com>
11068 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11070 (target_set_circular_trace_buffer): Add argument.
11071 * target.c (update_current_target): Update.
11072 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11077 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11079 (target_set_disconnected_tracing): Add argument.
11080 * target.c (update_current_target): Update.
11081 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11085 * target.h (struct target_ops)
11086 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11087 (target_get_min_fast_tracepoint_insn_len): Add argument.
11088 * target.c (update_current_target): Update.
11089 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11092 2014-02-19 Tom Tromey <tromey@redhat.com>
11094 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11096 (target_get_raw_trace_data): Add argument.
11097 * target.c (update_current_target): Update.
11098 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11100 2014-02-19 Tom Tromey <tromey@redhat.com>
11102 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11104 (target_upload_trace_state_variables): Add argument.
11105 * target.c (update_current_target): Update.
11106 * remote.c (remote_upload_trace_state_variables): Add 'self'
11108 (remote_start_remote): Update.
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11112 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11114 (target_upload_tracepoints): Add argument.
11115 * target.c (update_current_target): Update.
11116 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11117 (remote_start_remote): Update.
11119 2014-02-19 Tom Tromey <tromey@redhat.com>
11121 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11122 (target_save_trace_data): Add argument.
11123 * target.c (update_current_target): Update.
11124 * remote.c (remote_save_trace_data): Add 'self' argument.
11126 2014-02-19 Tom Tromey <tromey@redhat.com>
11128 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11130 * target.h (struct target_ops)
11131 <to_get_trace_state_variable_value>: Add argument.
11132 (target_get_trace_state_variable_value): Add argument.
11133 * target.c (update_current_target): Update.
11134 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11136 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11138 2014-02-19 Tom Tromey <tromey@redhat.com>
11140 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11141 * target.h (struct target_ops) <to_trace_find>: Add argument.
11142 (target_trace_find): Add argument.
11143 * target.c (update_current_target): Update.
11144 * remote.c (remote_trace_find): Add 'self' argument.
11145 * ctf.c (ctf_trace_find): Add 'self' argument.
11147 2014-02-19 Tom Tromey <tromey@redhat.com>
11149 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11150 (target_trace_stop): Add argument.
11151 * target.c (update_current_target): Update.
11152 * remote.c (remote_trace_stop): Add 'self' argument.
11154 2014-02-19 Tom Tromey <tromey@redhat.com>
11156 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11157 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11159 (target_get_tracepoint_status): Add argument.
11160 * target.c (update_current_target): Update.
11161 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11163 2014-02-19 Tom Tromey <tromey@redhat.com>
11165 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11166 * target.h (struct target_ops) <to_get_trace_status>: Add
11168 (target_get_trace_status): Add argument.
11169 * target.c (update_current_target): Update.
11170 * remote.c (remote_get_trace_status): Add 'self' argument.
11171 (remote_start_remote, remote_can_download_tracepoint): Update.
11172 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11176 * target.h (struct target_ops) <to_trace_start>: Add argument.
11177 (target_trace_start): Add argument.
11178 * target.c (update_current_target): Update.
11179 * remote.c (remote_trace_start): Add 'self' argument.
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11185 (target_trace_set_readonly_regions): Add argument.
11186 * target.c (update_current_target): Update.
11187 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11190 2014-02-19 Tom Tromey <tromey@redhat.com>
11192 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11194 (target_disable_tracepoint): Add argument.
11195 * target.c (update_current_target): Update.
11196 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11200 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11202 (target_enable_tracepoint): Add argument.
11203 * target.c (update_current_target): Update.
11204 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11208 * target.h (struct target_ops) <to_download_trace_state_variable>:
11210 (target_download_trace_state_variable): Add argument.
11211 * target.c (update_current_target): Update.
11212 * remote.c (remote_download_trace_state_variable): Add 'self'
11215 2014-02-19 Tom Tromey <tromey@redhat.com>
11217 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11219 (target_can_download_tracepoint): Add argument.
11220 * target.c (update_current_target): Update.
11221 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11223 2014-02-19 Tom Tromey <tromey@redhat.com>
11225 * target.h (struct target_ops) <to_download_tracepoint>: Add
11227 (target_download_tracepoint): Add argument.
11228 * target.c (update_current_target): Update.
11229 * remote.c (remote_download_tracepoint): Add 'self' argument.
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11233 * target.h (struct target_ops) <to_trace_init>: Add argument.
11234 (target_trace_init): Add argument.
11235 * target.c (update_current_target): Update.
11236 * remote.c (remote_trace_init): Add 'self' argument.
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11241 * target.c (target_fileio_readlink): Add argument.
11242 * remote.c (remote_hostio_readlink): Add 'self' argument.
11243 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11247 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11248 * target.c (target_fileio_unlink): Add argument.
11249 * remote.c (remote_hostio_unlink): Add 'self' argument.
11250 (remote_file_delete): Update.
11251 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11256 * target.c (target_fileio_close): Add argument.
11257 * remote.c (remote_hostio_close): Add 'self' argument.
11258 (remote_hostio_close_cleanup): Update.
11259 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11261 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11263 2014-02-19 Tom Tromey <tromey@redhat.com>
11265 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11266 * target.c (target_fileio_pread): Add argument.
11267 * remote.c (remote_hostio_pread): Add 'self' argument.
11268 (remote_bfd_iovec_pread, remote_file_get): Update.
11269 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11273 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11274 * target.c (target_fileio_pwrite): Add argument.
11275 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11276 (remote_file_put): Update.
11277 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11279 2014-02-19 Tom Tromey <tromey@redhat.com>
11281 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11282 * target.c (target_fileio_open): Add argument.
11283 * remote.c (remote_hostio_open): Add 'self' argument.
11284 (remote_bfd_iovec_open): Add 'self' argument.
11285 (remote_file_put): Add 'self' argument.
11286 (remote_file_get): Add 'self' argument.
11287 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11289 2014-02-19 Tom Tromey <tromey@redhat.com>
11291 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11293 (target_can_run_breakpoint_commands): Add argument.
11294 * target.c (update_current_target): Update.
11295 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11297 (remote_insert_breakpoint): Add 'self' argument.
11298 (remote_insert_hw_breakpoint): Add 'self' argument.
11299 (remote_can_run_breakpoint_commands): Add 'self' argument.
11301 2014-02-19 Tom Tromey <tromey@redhat.com>
11303 * target.h (struct target_ops)
11304 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11305 (target_supports_evaluation_of_breakpoint_conditions): Add
11307 * target.c (update_current_target): Update.
11308 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11310 (remote_insert_breakpoint): Add 'self' argument.
11311 (remote_insert_hw_breakpoint): Add 'self' argument.
11312 (remote_supports_cond_breakpoints): Add 'self' argument.
11314 2014-02-19 Tom Tromey <tromey@redhat.com>
11316 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11318 (target_supports_string_tracing): Add argument.
11319 * target.c (update_current_target): Update.
11320 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11322 2014-02-19 Tom Tromey <tromey@redhat.com>
11324 * target.h (struct target_ops)
11325 <to_supports_disable_randomization>: Add argument.
11326 * target.c (find_default_supports_disable_randomization): Add
11328 (target_supports_disable_randomization): Add argument.
11329 (find_default_supports_disable_randomization): Add 'self'
11331 * remote.c (extended_remote_supports_disable_randomization): Add
11333 (remote_supports_disable_randomization): Add 'self' argument.
11334 (extended_remote_create_inferior): Update.
11335 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11340 * target.h (struct target_ops)
11341 <to_supports_enable_disable_tracepoint>: Add argument.
11342 (target_supports_enable_disable_tracepoint): Add argument.
11343 * target.c (update_current_target): Update.
11344 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11347 2014-02-19 Tom Tromey <tromey@redhat.com>
11349 * target.h (struct target_ops) <to_supports_multi_process>: Add
11351 (target_supports_multi_process): Add argument.
11352 * target.c (update_current_target): Update.
11353 * remote.c (remote_supports_multi_process): Add 'self' argument.
11354 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11356 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11361 * target.h (struct target_ops) <to_execution_direction>: Add
11363 (target_execution_direction): Add argument.
11364 * target.c (default_execution_direction): Add 'self' argument.
11365 * record-full.c (record_full_execution_direction): Add 'self'
11368 2014-02-19 Tom Tromey <tromey@redhat.com>
11370 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11372 (target_can_execute_reverse): Add argument.
11373 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11374 * record-full.c (record_full_can_execute_reverse): Add 'self'
11376 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11379 2014-02-19 Tom Tromey <tromey@redhat.com>
11381 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11382 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11384 (target_get_ada_task_ptid): Add argument.
11385 * target.c (update_current_target): Update.
11386 (default_get_ada_task_ptid): Add 'self' argument.
11387 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11388 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11389 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11391 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11393 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11395 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11397 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11398 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11401 2014-02-19 Tom Tromey <tromey@redhat.com>
11403 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11404 (target_goto_bookmark): Add argument.
11405 * target.c (dummy_goto_bookmark): Add 'self' argument.
11406 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11410 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11411 (target_get_bookmark): Add argument.
11412 * target.c (dummy_get_bookmark): Add 'self' argument.
11413 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11415 2014-02-19 Tom Tromey <tromey@redhat.com>
11417 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11419 (target_make_corefile_notes): Add argument.
11420 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11421 * procfs.c (procfs_make_note_section): Add 'self' argument.
11422 (procfs_make_note_section): Add 'self' argument.
11423 (procfs_make_note_section): Add 'self' argument.
11424 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11426 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11427 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11428 * exec.c (exec_make_note_section): Add 'self' argument.
11429 (exec_make_note_section): Add 'self' argument.
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11433 * target.h (struct target_ops) <to_find_memory_regions>: Add
11435 (target_find_memory_regions): Add argument.
11436 * target.c (dummy_find_memory_regions): Add 'self' argument.
11437 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11438 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11439 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11440 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11441 * exec. (exec_do_find_memory_regions): New global.
11442 (exec_set_find_memory_regions): Rewrite.
11443 (exec_find_memory_regions): New function.
11444 (init_exec_ops): Use exec_find_memory_regions.
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11448 * target.h (struct target_ops) <to_supports_non_stop>: Add
11450 * target.c (find_default_supports_non_stop): Add argument.
11451 (target_supports_non_stop): Add argument.
11452 (find_default_supports_non_stop): Add 'self' argument.
11453 * remote.c (remote_supports_non_stop): Add 'self' argument.
11454 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11458 * target.h (struct target_ops) <to_log_command>: Add argument.
11459 (target_log_command): Add argument.
11460 * serial.h (serial_log_command): Add 'self' argument.
11461 * serial.c (serial_log_command): Add 'self' argument.
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11465 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11466 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11468 (target_pid_to_exec_file): Add argument.
11469 * target.c (debug_to_pid_to_exec_file): Add argument.
11470 (update_current_target): Update.
11471 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11472 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11473 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11474 (linux_handle_extended_wait): Update.
11475 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11476 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11477 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11478 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11482 * target.h (struct target_ops) <to_rcmd>: Add argument.
11483 (target_rcmd): Add argument.
11484 * target.c (debug_to_rcmd): Add argument.
11485 (update_current_target, do_monitor_command): Update.
11486 * remote.c (remote_rcmd): Add 'self' argument.
11487 * monitor.c (monitor_rcmd): Add 'self' argument.
11489 2014-02-19 Tom Tromey <tromey@redhat.com>
11491 * windows-nat.c (windows_stop): Add 'self' argument.
11492 * target.h (struct target_ops) <to_stop>: Add argument.
11493 * target.c (target_stop): Add argument.
11494 (debug_to_stop): Add argument.
11495 (update_current_target): Update.
11496 * remote.c (remote_stop): Add 'self' argument.
11497 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11498 (gdbsim_cntrl_c): Update.
11499 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11500 * procfs.c (procfs_stop): Add 'self' argument.
11501 * nto-procfs.c (procfs_stop): Add 'self' argument.
11502 * monitor.c (monitor_stop): Add 'self' argument.
11503 (monitor_open): Update.
11504 * linux-nat.c (linux_nat_stop): Add argument.
11505 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11506 * gnu-nat.c (gnu_stop): Add 'self' argument.
11507 * darwin-nat.c (darwin_stop): Add 'self' argument.
11509 2014-02-19 Tom Tromey <tromey@redhat.com>
11511 * target.h (struct target_ops) <to_thread_name>: Add argument.
11512 * target.c (target_thread_name): Add argument.
11513 (update_current_target): Update.
11514 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11516 2014-02-19 Tom Tromey <tromey@redhat.com>
11518 * target.h (struct target_ops) <to_extra_thread_info>: Add
11520 (target_extra_thread_info): Add argument.
11521 * target.c (update_current_target): Update.
11522 * remote.c (remote_threads_extra_info): Add 'self' argument.
11523 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11525 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11526 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11527 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11529 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11531 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11533 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11536 2014-02-19 Tom Tromey <tromey@redhat.com>
11538 * target.h (struct target_ops) <to_program_signals>: Add argument.
11539 * target.c (target_program_signals): Add argument.
11540 * remote.c (remote_program_signals): Add 'self' argument.
11542 2014-02-19 Tom Tromey <tromey@redhat.com>
11544 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11545 * target.c (target_pass_signals): Add argument.
11546 * remote.c (remote_pass_signals): Add 'self' argument.
11547 (remote_start_remote): Update.
11548 * procfs.c (procfs_pass_signals): Add 'self' argument.
11549 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11550 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11551 (linux_nat_create_inferior, linux_nat_attach): Update.
11553 2014-02-19 Tom Tromey <tromey@redhat.com>
11555 * windows-nat.c (windows_can_run): Add 'self' argument.
11556 * target.h (struct target_ops) <to_can_run>: Add argument.
11557 (target_can_run): Add argument.
11558 * target.c (debug_to_can_run): Add argument.
11559 (update_current_target): Update.
11560 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11561 * inf-child.c (inf_child_can_run): Add 'self' argument.
11562 * go32-nat.c (go32_can_run): Add 'self' argument.
11564 2014-02-19 Tom Tromey <tromey@redhat.com>
11566 * target.h (struct target_ops) <to_has_exited>: Add argument.
11567 (target_has_exited): Add argument.
11568 * target.c (debug_to_has_exited): Add argument.
11569 (update_current_target): Update.
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11573 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11575 (target_set_syscall_catchpoint): Add argument.
11576 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11578 * target.c (update_current_target): Update.
11580 2014-02-19 Tom Tromey <tromey@redhat.com>
11582 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11584 (target_remove_exec_catchpoint): Add argument.
11585 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11586 (update_current_target): Update.
11587 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11590 2014-02-19 Tom Tromey <tromey@redhat.com>
11592 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11594 (target_insert_exec_catchpoint): Add argument.
11595 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11596 (update_current_target): Update.
11597 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11600 2014-02-19 Tom Tromey <tromey@redhat.com>
11602 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11604 (target_remove_vfork_catchpoint): Add argument.
11605 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11606 (update_current_target): Update.
11607 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11610 2014-02-19 Tom Tromey <tromey@redhat.com>
11612 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11614 (target_insert_vfork_catchpoint): Add argument.
11615 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11616 (update_current_target): Update.
11617 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11620 2014-02-19 Tom Tromey <tromey@redhat.com>
11622 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11624 (target_remove_fork_catchpoint): Add argument.
11625 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11626 (update_current_target): Update.
11627 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11630 2014-02-19 Tom Tromey <tromey@redhat.com>
11632 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11634 (target_insert_fork_catchpoint): Add argument.
11635 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11636 (update_current_target): Update.
11637 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11642 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11644 (target_post_startup_inferior): Add argument.
11645 * target.c (debug_to_post_startup_inferior): Add argument.
11646 (update_current_target): Update.
11647 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11649 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11651 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11653 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11655 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11657 (super_post_startup_inferior): Likewise.
11658 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11660 (super_post_startup_inferior): Likewise.
11661 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11662 Add 'self' argument.
11663 (super_post_startup_inferior): Likewise.
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target.h (struct target_ops) <to_load>: Add argument.
11668 * target.c (target_load): Add argument.
11669 (debug_to_load): Add argument.
11670 (update_current_target): Update.
11671 * remote.c (remote_load): Add 'self' argument.
11672 * remote-sim.c (gdbsim_load): Add 'self' argument.
11673 * remote-mips.c (mips_load): Add 'self' argument.
11674 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11675 * monitor.c (monitor_load): Add 'self' argument.
11676 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11678 2014-02-19 Tom Tromey <tromey@redhat.com>
11680 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11681 (target_terminal_info): Add argument.
11682 * target.c (debug_to_terminal_info): Add argument.
11683 (default_terminal_info): Likewise.
11684 * inflow.c (child_terminal_info): Add 'self' argument.
11685 * inferior.h (child_terminal_info): Add 'self' argument.
11686 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11688 2014-02-19 Tom Tromey <tromey@redhat.com>
11690 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11692 (target_terminal_save_ours): Add argument.
11693 * target.c (debug_to_terminal_save_ours): Add argument.
11694 (update_current_target): Update.
11695 * inflow.c (terminal_save_ours): Add 'self' argument.
11696 * inferior.h (terminal_save_ours): Add 'self' argument.
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11700 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11701 (target_terminal_ours): Add argument.
11702 * target.c (debug_to_terminal_ours): Add argument.
11703 (update_current_target): Update.
11704 * remote.c (remote_terminal_ours): Add 'self' argument.
11705 (remote_close): Update.
11706 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11707 * inflow.c (terminal_ours): Add 'self' argument.
11708 * inferior.h (terminal_ours): Add 'self' argument.
11709 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11711 2014-02-19 Pedro Alves <palves@redhat.com>
11712 Tom Tromey <tromey@redhat.com>
11714 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11716 (target_terminal_ours_for_output): Add argument.
11717 * target.c (debug_to_terminal_ours_for_output): Add argument.
11718 (update_current_target): Update.
11719 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11720 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11721 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11723 2014-02-19 Tom Tromey <tromey@redhat.com>
11725 * target.h (struct target_ops) <to_terminal_inferior>: Add
11727 * target.c (target_terminal_inferior): Add argument.
11728 (update_current_target): Update.
11729 * remote.c (remote_terminal_inferior): Add 'self' argument.
11730 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11731 * inflow.c (terminal_inferior): Add 'self' argument.
11732 * inferior.h (terminal_inferior): Add 'self' argument.
11733 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11734 (go32_terminal_inferior): Add 'self' argument.
11736 2014-02-19 Tom Tromey <tromey@redhat.com>
11738 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11739 (target_terminal_init): Add argument.
11740 * target.c (debug_to_terminal_init): Add argument.
11741 (update_current_target): Update.
11742 * inflow.c (terminal_init_inferior): Add 'self' argument.
11743 * inferior.h (terminal_init_inferior): Add 'self' argument.
11744 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11745 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11747 2014-02-19 Tom Tromey <tromey@redhat.com>
11749 * target.h (struct target_ops)
11750 <to_can_accel_watchpoint_condition>: Add argument.
11751 (target_can_accel_watchpoint_condition): Add argument.
11752 * target.c (debug_to_can_accel_watchpoint_condition): Add
11754 (update_current_target): Update.
11755 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11760 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11762 (target_region_ok_for_hw_watchpoint): Add argument.
11763 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11764 (default_region_ok_for_hw_watchpoint): Add argument.
11765 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11766 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11768 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11770 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11772 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11774 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11776 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11778 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11779 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11781 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11782 Add 'self' argument.
11784 2014-02-19 Tom Tromey <tromey@redhat.com>
11786 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11788 (target_insert_watchpoint): Add argument.
11789 * target.c (debug_to_insert_watchpoint): Add argument.
11790 (update_current_target): Update.
11791 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11792 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11793 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11794 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11795 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11796 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11798 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11799 (procfs_insert_hw_watchpoint): Add 'self' argument.
11800 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11802 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11804 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11806 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11807 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11809 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11814 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11816 (target_remove_watchpoint): Add argument.
11817 * target.c (debug_to_remove_watchpoint): Add argument.
11818 (update_current_target): Update.
11819 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11820 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11821 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11822 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11823 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11824 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11826 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11827 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11829 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11831 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11833 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11834 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11836 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11839 2014-02-19 Tom Tromey <tromey@redhat.com>
11841 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11843 (target_remove_hw_breakpoint): Add argument.
11844 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11845 (update_current_target): Update.
11846 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11847 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11849 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11850 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11852 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11855 2014-02-19 Tom Tromey <tromey@redhat.com>
11857 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11859 (target_insert_hw_breakpoint): Add argument.
11860 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11861 (update_current_target): Update.
11862 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11863 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11865 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11866 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11867 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11869 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11872 2014-02-19 Tom Tromey <tromey@redhat.com>
11874 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11876 (target_can_use_hardware_watchpoint): Add argument.
11877 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11878 (update_current_target): Update.
11879 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11881 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11883 * remote.c (remote_check_watch_resources): Add 'self' argument.
11884 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11885 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11887 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11888 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11890 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11892 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11894 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11896 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11898 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11900 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11901 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11903 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11906 2014-02-19 Tom Tromey <tromey@redhat.com>
11908 * target.h (struct target_ops) <to_post_attach>: Add argument.
11909 (target_post_attach): Add argument.
11910 * target.c (debug_to_post_attach): Add argument.
11911 (update_current_target): Update.
11912 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11913 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11914 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11915 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11916 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11920 * windows-nat.c (windows_close): Add 'self' argument.
11921 * tracepoint.c (tfile_close): Add 'self' argument.
11922 * target.h (struct target_ops) <to_close>: Add argument.
11923 * target.c (target_close): Add argument.
11924 (update_current_target): Update.
11925 * remote.c (remote_close): Add 'self' argument.
11926 * remote-sim.c (gdbsim_close): Add 'self' argument.
11927 * remote-mips.c (mips_close): Add 'self' argument.
11928 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11929 * record-full.c (record_full_close): Add 'self' argument.
11930 * record-btrace.c (record_btrace_close): Add 'self' argument.
11931 * monitor.h (monitor_close): Add 'self' argument.
11932 * monitor.c (monitor_close): Add 'self' argument.
11933 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11934 * linux-nat.c (linux_nat_close): Add argument.
11935 * go32-nat.c (go32_close): Add 'self' argument.
11936 * exec.c (exec_close_1): Add 'self' argument.
11937 * ctf.c (ctf_close): Add 'self' argument.
11938 * corelow.c (core_close): Add 'self' argument.
11939 (core_close_cleanup): Update.
11940 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11941 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * remote.c (remote_load): New function.
11946 (init_remote_ops): Use it.
11948 2014-02-19 Tom Tromey <tromey@redhat.com>
11950 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11952 * common/linux-btrace.h (linux_supports_btrace): Update.
11953 * remote.c (remote_supports_btrace): Add "self" argument.
11954 * target-delegates.c: Rebuild.
11955 * target.c (target_supports_btrace): Remove.
11956 * target.h (struct target_ops) <to_supports_btrace>: Add
11957 target_ops argument.
11958 (target_supports_btrace): New define.
11960 2014-02-19 Tom Tromey <tromey@redhat.com>
11962 * record-full.c (record_full_beneath_to_resume_ops)
11963 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11964 (record_full_beneath_to_wait)
11965 (record_full_beneath_to_store_registers_ops)
11966 (record_full_beneath_to_store_registers)
11967 (record_full_beneath_to_xfer_partial_ops)
11968 (record_full_beneath_to_xfer_partial)
11969 (record_full_beneath_to_insert_breakpoint_ops)
11970 (record_full_beneath_to_insert_breakpoint)
11971 (record_full_beneath_to_remove_breakpoint_ops)
11972 (record_full_beneath_to_remove_breakpoint)
11973 (record_full_beneath_to_stopped_by_watchpoint)
11974 (record_full_beneath_to_stopped_data_address)
11975 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11976 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11977 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11978 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11979 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11980 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11981 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11982 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11983 (record_full_resume, record_full_wait_1)
11984 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11985 (record_full_store_registers, record_full_xfer_partial)
11986 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11987 (record_full_async, record_full_core_xfer_partial): Use target
11989 * target-delegates.c: Rebuild.
11990 * target.c (current_xfer_partial): Remove.
11991 (update_current_target): Do not INHERIT or de_fault
11992 to_insert_breakpoint, to_remove_breakpoint,
11993 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11994 to_is_async_p, to_async. Do not set to_xfer_partial field.
11995 (default_xfer_partial): Simplify.
11996 (current_xfer_partial): Remove.
11997 (target_wait, target_resume): Simplify.
11998 (find_default_can_async_p, find_default_is_async_p): Update.
11999 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12000 to_xfer_partial, to_stopped_by_watchpoint,
12001 to_stopped_data_address.
12002 (target_store_registers): Simplify.
12003 (forward_target_remove_breakpoint)
12004 (forward_target_insert_breakpoint): Remove.
12005 (target_remove_breakpoint, target_insert_breakpoint)
12006 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12007 * target.h (struct target_ops) <to_resume, to_wait,
12008 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12009 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12010 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12012 (forward_target_remove_breakpoint)
12013 (forward_target_insert_breakpoint): Remove.
12014 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12016 (record_btrace_insert_breakpoint): Delegate directly.
12018 2014-02-19 Tom Tromey <tromey@redhat.com>
12021 * target-delegates.c: New file.
12022 * target.c: Include target-delegates.c.
12023 (init_dummy_target): Call install_dummy_methods.
12024 (complete_target_initialization): Call install_delegators.
12025 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12026 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12027 * make-target-delegates: New file.
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12031 * record.c (find_record_target): Use find_target_at.
12032 * target.c (find_target_at): New function.
12033 * target.h (find_target_at): Declare.
12035 2014-02-19 Tom Tromey <tromey@redhat.com>
12037 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12038 Add 'ops' argument.
12039 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12041 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12042 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12044 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12046 * linux-nat.c (save_sigtrap): Update.
12047 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12048 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12049 (linux_nat_close): Update.
12050 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12052 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12054 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12055 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12056 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12057 (tmp_to_async): Add 'ops' argument.
12058 (record_full_stopped_by_watchpoint, record_full_async)
12059 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12061 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12062 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12063 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12064 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12065 (remote_is_async_p, remote_async): Add 'ops' argument.
12066 (remote_stopped_data_address): Update.
12067 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12068 * target.c (update_current_target)
12069 (find_default_can_async_p, find_default_is_async_p): Update.
12070 (init_dummy_target): Update.
12071 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12072 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12073 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12074 (target_can_async_p, target_is_async_p, target_async)
12075 (target_stopped_by_watchpoint): Update.
12077 2014-02-19 Yao Qi <yao@codesourcery.com>
12080 * gdbarch.sh: Remove startup_gdbarch.
12081 * gdbarch.c: Regenerated.
12082 * gdbarch.h: Likewise.
12084 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12086 * rl78-tdep.c (rl78_g10_register_name): New function.
12087 (rl78_return_value): Add g10 support.
12088 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12091 2014-02-17 Doug Evans <xdje42@gmail.com>
12093 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12094 (SUBDIR_GUILE_SRCS): Ditto.
12095 (scm-gsmob.o): Ditto.
12097 2014-02-17 Yao Qi <yao@codesourcery.com>
12099 * gnu-nat.c (ILL_RPC): Declare defined function.
12101 2014-02-17 Yao Qi <yao@codesourcery.com>
12103 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12104 mach_msg_type_number_t.
12105 (gnu_write_inferior): Likewise.
12107 2014-02-17 Yao Qi <yao@codesourcery.com>
12109 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12111 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12112 (inf_validate_procs, inf_signal): Likewise.
12113 (S_exception_raise_request): Likewise.
12114 (do_mach_notify_dead_name): Likewise.
12115 (steal_exc_port): Likewise.
12116 (gnu_read_inferior): Change 'copy_count''s type to
12117 mach_msg_type_number_t.
12118 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12121 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12123 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12124 flag. Adjust all users; in particular...
12125 (gnu_wait): ..., don't decrement its value in here...
12126 (gnu_create_inferior): ..., and instead set the flag in here,
12127 around the startup_inferior call, and call that one with
12128 START_INFERIOR_TRAPS_EXPECTED.
12130 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12131 (ILL_RPC): ... new macro.
12132 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12133 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12134 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12135 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12136 functions with ILL_RPC macro.
12137 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12138 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12139 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12140 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12141 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12142 (S_proc_getlogin_reply, S_proc_getsid_reply)
12143 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12144 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12145 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12146 (S_proc_getnports_reply, S_proc_is_important_reply)
12147 (S_proc_get_code_reply): New stub functions, generated with
12150 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12151 collected the type check structures.
12153 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12155 2014-02-14 Doug Evans <dje@google.com>
12157 * target.c (target_write_partial): Fix result type.
12159 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12161 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12162 the proper offsets to access fpregset_t.
12164 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12166 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12167 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12168 * h8300-tdep.c (setmachinelist): Remove global.
12169 * hppa-tdep.c (hppa_sigtramp): Remove global.
12170 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12171 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12172 * ravenscar-thread.c (update_target_observer): Remove global.
12173 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12175 2014-02-12 Tom Tromey <tromey@redhat.com>
12177 * common/rsp-low.c: Update comments.
12178 * common/rsp-low.h: Update comments.
12180 2014-02-12 Tom Tromey <tromey@redhat.com>
12182 * common/rsp-low.c (convert_ascii_to_int): Remove.
12183 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12185 2014-02-12 Tom Tromey <tromey@redhat.com>
12187 * common/rsp-low.h (unhexify): Don't declare.
12188 * common/rsp-low.c (unhexify): Remove.
12190 2014-02-12 Tom Tromey <tromey@redhat.com>
12192 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12193 * common/rsp-low.c (convert_int_to_ascii): Remove.
12195 2014-02-12 Tom Tromey <tromey@redhat.com>
12197 * common/rsp-low.h (hexify): Don't declare.
12198 * common/rsp-low.c (hexify): Remove.
12200 2014-02-12 Tom Tromey <tromey@redhat.com>
12202 * common/rsp-low.c (hexify): Never take strlen of argument.
12204 2014-02-12 Tom Tromey <tromey@redhat.com>
12206 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12207 * remote.c (extended_remote_run, remote_rcmd)
12208 (remote_download_trace_state_variable, remote_save_trace_data)
12209 (remote_set_trace_notes): Update.
12210 * tracepoint.c (encode_source_string, tfile_write_status)
12211 (tfile_write_uploaded_tsv): Update.
12213 2014-02-12 Tom Tromey <tromey@redhat.com>
12215 * tracepoint.c: Include rsp-low.h.
12216 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12217 * remote.c: Include rsp-low.h.
12218 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12219 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12220 (remote_unescape_input): Move to common/rsp-low.c.
12221 * common/rsp-low.h: New file.
12222 * common/rsp-low.c: New file.
12223 * Makefile.in (SFILES): Add common/rsp-low.c.
12224 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12225 (COMMON_OBS): Add rsp-low.o.
12226 (rsp-low.o): New target.
12228 2014-02-12 Tom Tromey <tromey@redhat.com>
12230 * utils.h: Include print-utils.h.
12231 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12232 (int_string, core_addr_to_string, core_addr_to_string_nz)
12233 (hex_string, hex_string_custom): Don't declare.
12234 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12235 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12236 (hex_string_custom, int_string, core_addr_to_string)
12237 (core_addr_to_string_nz, host_address_to_string): Move to
12238 common/print-utils.c.
12239 * common/print-utils.h: New file.
12240 * common/print-utils.c: New file
12241 * Makefile.in (SFILES): Add common/print-utils.c.
12242 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12243 (COMMON_OBS): Add print-utils.o.
12244 (print-utils.o): New target.
12246 2014-02-12 Tom Tromey <tromey@redhat.com>
12248 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12250 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12252 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12254 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12256 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12257 if a PT_IO ptrace request returns sucessfully but indicates that 0
12258 bytes were transferred.
12260 2014-02-12 Pedro Alves <palves@redhat.com>
12261 Kevin Buettner <kevinb@redhat.com>
12263 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12264 TYPE_INSTANCE_FLAG_CODE_SPACE.
12266 2014-02-12 Pedro Alves <palves@redhat.com>
12268 * h8300-tdep.c (pseudo_from_raw_register)
12269 (raw_from_pseudo_register): New functions.
12270 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12273 2014-02-12 Pedro Alves <palves@redhat.com>
12275 * h8300-tdep.c (h8300_register_sim_regno): New function.
12276 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12277 gdbarch_register_sim_regno hook.
12279 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12281 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12283 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12285 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12287 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12289 * obsd-tdep.h (obsd_init_abi): New prototype.
12290 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12291 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12292 (obsd_init_abi): New functions.
12293 * i386obsd-tdep.c: Include "obsd-tdep.h".
12294 (i386obsd_init_abi): Call obsd_init_abi.
12295 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12296 (amd64obsd_init_abi): Call obsd_init_abi.
12297 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12298 obsd-tdep.c to gdb_target_obs.
12300 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12302 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12303 double float arguments to 16-byte in the argument slots.
12305 2014-02-11 Doug Evans <xdje42@gmail.com>
12307 * configure.ac: Don't crash if pkg-config is not found and guile
12308 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12310 * configure: Regenerate.
12312 2014-02-11 Yao Qi <yao@codesourcery.com>
12314 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12315 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12316 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12317 * gnu-nat.c (gnu_xfer_memory): Likewise.
12318 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12319 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12320 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12321 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12323 2014-02-11 Yao Qi <yao@codesourcery.com>
12325 * target.h (enum target_xfer_error): Rename to ...
12326 (enum target_xfer_status): ... it. New. All users updated.
12327 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12329 (TARGET_XFER_STATUS_ERROR_P): New macro.
12330 (target_xfer_error_to_string): Remove declaration.
12331 (target_xfer_status_to_string): Declare.
12332 (target_xfer_partial_ftype): Adjust it.
12333 (struct target_ops) <to_xfer_partial>: Return
12334 target_xfer_status. Add argument xfered_len. Update
12336 * target.c (target_xfer_error_to_string): Rename to ...
12337 (target_xfer_status_to_string): ... it. New. All callers
12339 (target_read_live_memory): Likewise. Call target_xfer_partial
12340 instead of target_read.
12341 (memory_xfer_live_readonly_partial): Return
12342 target_xfer_status. Add argument xfered_len.
12343 (raw_memory_xfer_partial): Likewise.
12344 (memory_xfer_partial_1): Likewise.
12345 (memory_xfer_partial): Likewise.
12346 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12347 properly. Update debug message.
12348 (default_xfer_partial, current_xfer_partial): Likewise.
12349 (target_write_partial): Likewise.
12350 (target_read_partial): Likewise. All callers updated.
12351 (read_whatever_is_readable): Likewise.
12352 (target_write_with_progress): Likewise.
12353 (target_read_alloc_1): Likewise.
12355 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12356 * auxv.c (procfs_xfer_auxv): Likewise.
12357 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12358 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12359 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12360 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12361 * corefile.c (read_memory): Adjust.
12362 * corelow.c (core_xfer_partial): Likewise.
12363 * ctf.c (ctf_xfer_partial): Likewise.
12364 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12366 (darwin_xfer_partial): Likewise.
12367 * exec.c (section_table_xfer_memory_partial): Likewise. All
12369 (exec_xfer_partial): Likewise.
12370 * exec.h (section_table_xfer_memory_partial): Update
12372 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12374 (gnu_xfer_partial): Likewise.
12375 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12376 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12377 (ia64_hpux_xfer_solib_got): Likewise.
12378 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12379 type of 'partial_len' to ULONGEST.
12380 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12381 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12382 (linux_nat_xfer_partial): Likewise.
12383 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12384 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12385 * monitor.c (monitor_xfer_memory): Likewise.
12386 (monitor_xfer_partial): Likewise.
12387 * procfs.c (procfs_xfer_partial): Likewise.
12388 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12389 * record-full.c (record_full_xfer_partial): Likewise.
12390 (record_full_core_xfer_partial): Likewise.
12391 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12392 (gdbsim_xfer_partial): Likewise.
12393 * remote.c (remote_write_bytes_aux): Likewise. All callers
12395 (remote_write_bytes, remote_read_bytes): Likewise. All
12397 (remote_flash_erase): Likewise. All callers updated.
12398 (remote_write_qxfer): Likewise. All callers updated.
12399 (remote_read_qxfer): Likewise. All callers updated.
12400 (remote_xfer_partial): Likewise.
12401 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12402 (rs6000_xfer_shared_libraries): Likewise.
12403 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12404 (sol_thread_xfer_partial): Likewise.
12405 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12406 (sparc_xfer_partial): Likewise.
12407 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12409 (spu_xfer_partial): Likewise.
12410 * spu-multiarch.c (spu_xfer_partial): Likewise.
12411 * tracepoint.c (tfile_xfer_partial): Likewise.
12412 * windows-nat.c (windows_xfer_memory): Likewise.
12413 (windows_xfer_shared_libraries): Likewise.
12414 (windows_xfer_partial): Likewise.
12415 * valprint.c: Replace 'target_xfer_error' with
12416 'target_xfer_status' in comments.
12418 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12420 Checked in by Joel Brobecker <brobecker@adacore.com>.
12421 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12423 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12425 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12426 function parameters.
12428 2014-02-10 Will Newton <will.newton@linaro.org>
12430 * elfread.c (elf_rel_plt_read): Look for a .got section if
12431 looking up .got.plt fails.
12432 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12433 on address passed to elf_gnu_ifunc_record_cache.
12434 (elf_gnu_ifunc_resolve_addr): Likewise.
12435 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12437 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12439 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12440 (X_RETTURN): New macro.
12441 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12443 * sparc64-tdep.c (sparc64_init_abi): Hook
12444 sparc_in_function_epilogue_p.
12446 2014-02-10 Gary Benson <gbenson@redhat.com>
12448 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12449 Rename name_matcher to symbol_matcher.
12451 2014-02-10 Gary Benson <gbenson@redhat.com>
12453 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12454 Use expand_symtabs_file_matcher_ftype and
12455 expand_symtabs_symbol_matcher_ftype.
12457 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12459 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12460 (struct ada_symbol_cache): New.
12461 (ada_free_symbol_cache): Forward declare.
12462 (struct ada_pspace_data): New.
12463 (ada_pspace_data_handle): New static global.
12464 (get_ada_pspace_data, ada_pspace_data_cleanup)
12465 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12466 (cache_space, cache): Delete, now folded inside struct
12468 (ada_get_symbol_cache): New function.
12469 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12471 (_initialize_ada_language): Remove initialization of cache_space.
12472 Move call to observer_attach_inferior_exit up, grouping it
12473 with the other observer registrations inside this function.
12474 Rename command to be more general. Add call to
12475 register_program_space_data_with_cleanup.
12477 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12479 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12480 ada_new_objfile_observer.
12481 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12482 (_initialize_tasks): Update uses of ada_new_objfile_observer
12483 and ada_tasks_normal_stop_observer.
12485 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12487 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12488 returned by the 'Length attribute to integer.
12490 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12492 * ada-lang.c (_initialize_ada_language): Initialize
12493 cache_space obstack.
12495 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12497 * ada-lang.c (HASH_SIZE): New macro.
12498 (struct cache_entry): New type.
12499 (cache_space, cache): New static globals.
12500 (ada_clear_symbol_cache, find_entry): New functions.
12501 (lookup_cached_symbol, cache_symbol): Implement.
12502 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12503 (_initialize_ada_language): Attach ada_new_objfile_observer
12504 and ada_free_objfile_observer.
12506 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12508 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12509 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12510 struct block * parameter.
12511 (ada_lookup_symbol_list_worker): Constify local variable "block".
12512 Remove cast which is no longer necessary.
12514 2014-02-10 Doug Evans <xdje42@gmail.com>
12516 Add Guile as an extension language.
12517 * NEWS: Mention Guile scripting.
12518 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12519 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12520 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12521 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12522 (CLIBS): Add GUILE_LIBS.
12523 (install-guile): New rule.
12524 (guile.o): New rule.
12525 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12526 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12527 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12528 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12529 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12530 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12531 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12532 * configure.ac: New option --with-guile.
12533 * configure: Regenerate.
12534 * config.in: Regenerate.
12535 * auto-load.c: Remove #include "python/python.h". Add #include
12536 "gdb/section-scripts.h".
12537 (source_section_scripts): Handle Guile scripts.
12538 (_initialize_auto_load): Add name of Guile objfile script to
12539 scripts-directory help text.
12540 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12541 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12542 (struct breakpoint): New member scm_bp_object.
12543 * defs.h (enum command_control_type): New value guile_control.
12544 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12546 (show_user): Update comment.
12547 (_initialize_cli_cmds): Update help text for "show user". Update help
12548 text for max-user-call-depth.
12549 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12551 (multi_line_command_p): Add guile_control.
12552 (print_command_lines): Handle guile_control.
12553 (execute_control_command, recurse_read_control_structure): Ditto.
12554 (process_next_line): Recognize "guile" commands.
12555 * disasm.c (gdb_disassemble_info): Make non-static.
12556 * disasm.h: #include "dis-asm.h".
12557 (struct gdbarch): Add forward decl.
12558 (gdb_disassemble_info): Declare.
12559 * extension.c: #include "guile/guile.h".
12560 (extension_languages): Add guile.
12561 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12562 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12563 * gdbtypes.c (get_unsigned_type_max): New function.
12564 (get_signed_type_minmax): New function.
12565 * gdbtypes.h (get_unsigned_type_max): Declare.
12566 (get_signed_type_minmax): Declare.
12567 * guile/README: New file.
12568 * guile/guile-internal.h: New file.
12569 * guile/guile.c: New file.
12570 * guile/guile.h: New file.
12571 * guile/scm-arch.c: New file.
12572 * guile/scm-auto-load.c: New file.
12573 * guile/scm-block.c: New file.
12574 * guile/scm-breakpoint.c: New file.
12575 * guile/scm-disasm.c: New file.
12576 * guile/scm-exception.c: New file.
12577 * guile/scm-frame.c: New file.
12578 * guile/scm-gsmob.c: New file.
12579 * guile/scm-iterator.c: New file.
12580 * guile/scm-lazy-string.c: New file.
12581 * guile/scm-math.c: New file.
12582 * guile/scm-objfile.c: New file.
12583 * guile/scm-ports.c: New file.
12584 * guile/scm-pretty-print.c: New file.
12585 * guile/scm-safe-call.c: New file.
12586 * guile/scm-string.c: New file.
12587 * guile/scm-symbol.c: New file.
12588 * guile/scm-symtab.c: New file.
12589 * guile/scm-type.c: New file.
12590 * guile/scm-utils.c: New file.
12591 * guile/scm-value.c: New file.
12592 * guile/lib/gdb.scm: New file.
12593 * guile/lib/gdb/boot.scm: New file.
12594 * guile/lib/gdb/experimental.scm: New file.
12595 * guile/lib/gdb/init.scm: New file.
12596 * guile/lib/gdb/iterator.scm: New file.
12597 * guile/lib/gdb/printing.scm: New file.
12598 * guile/lib/gdb/types.scm: New file.
12599 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12600 (VPATH): Add $(GUILE_SRCDIR).
12601 (GUILE_DIR): New variable.
12602 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12603 (all): Add stamp-guile dependency.
12604 (stamp-guile): New rule.
12605 (clean-guile, install-guile, uninstall-guile): New rules.
12606 (install-only): Add install-guile dependency.
12607 (uninstall): Add uninstall-guile dependency.
12608 (clean): Add clean-guile dependency.
12610 2014-02-09 Doug Evans <xdje42@gmail.com>
12612 Revert this patch (which I approved, mea culpa).
12614 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12616 * Makefile.in (all-lib): Remove.
12617 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12619 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12621 Fix Python stack corruption.
12622 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12625 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12627 * Makefile.in (all-lib): Remove.
12628 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12630 2014-02-07 Doug Evans <dje@google.com>
12632 * extension-priv.h (extension_language_script_ops): Add comment.
12633 (extension_language_ops): Add comment.
12634 (active_ext_lang_state): Fix typo in comment.
12636 2014-02-07 Pedro Alves <palves@redhat.com>
12638 PR breakpoints/16292
12639 * infrun.c (handle_signal_stop) <signal arrives while stepping
12640 over a breakpoint>: Switch back to the stepping thread.
12642 2014-02-07 Yao Qi <yao@codesourcery.com>
12644 * target.c (target_xfer_partial): Return zero if LEN is zero.
12646 2014-02-07 Yao Qi <yao@codesourcery.com>
12648 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12649 (ld_so_xfer_auxv): Likewise.
12650 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12651 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12652 * corelow.c (core_xfer_partial): Likewise.
12653 * ctf.c (ctf_xfer_partial): Likewise.
12654 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12655 (darwin_xfer_partial): Likewise.
12656 * exec.c (exec_xfer_partial): Likewise.
12657 * gnu-nat.c (gnu_xfer_partial): Likewise.
12658 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12659 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12660 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12661 * linux-nat.c (linux_xfer_siginfo): Likewise.
12662 (linux_proc_xfer_spu): Likewise.
12663 * procfs.c (procfs_xfer_partial): Likewise.
12664 * record-full.c (record_full_xfer_partial): Likewise.
12665 (record_full_core_xfer_partial): Likewise.
12666 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12667 * remote.c (remote_write_qxfer): Likewise.
12668 (remote_write_qxfer, remote_read_qxfer): Likewise.
12669 (remote_xfer_partial): Likewise.
12670 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12671 (rs6000_xfer_shared_libraries): Likewise.
12672 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12673 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12674 (spu_xfer_partial): Likewise.
12675 * target.c (memory_xfer_partial_1): Likewise.
12676 * tracepoint.c (tfile_xfer_partial): Likewise.
12677 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12678 (windows_xfer_partial): Likewise.
12680 2014-02-07 Yao Qi <yao@codesourcery.com>
12682 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12684 (core_xfer_shared_libraries_aix): Likewise.
12685 * gdbarch.c, gdbarch.h: Regenerated.
12686 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12687 ULONGEST. Change 'len_avail' type to ULONGEST.
12688 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12689 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12691 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12693 2014-02-07 Yao Qi <yao@codesourcery.com>
12695 * corefile.c (memory_error): Get 'exception' from ERR and pass
12696 'exception' to throw_error.
12698 2014-02-06 Doug Evans <xdje42@gmail.com>
12700 * configure.ac (libpython checking): Remove all but python.o from
12701 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12702 * configure: Regenerate.
12704 * Makefile.in (SFILES): Add extension.c.
12705 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12706 (COMMON_OBS): Add extension.o.
12707 * extension.h: New file.
12708 * extension-priv.h: New file.
12709 * extension.c: New file.
12711 * python/python-internal.h: #include "extension.h".
12712 (gdbpy_auto_load_enabled): Declare.
12713 (gdbpy_apply_val_pretty_printer): Declare.
12714 (gdbpy_apply_frame_filter): Declare.
12715 (gdbpy_preserve_values): Declare.
12716 (gdbpy_breakpoint_cond_says_stop): Declare.
12717 (gdbpy_breakpoint_has_cond): Declare.
12718 (void source_python_script_for_objfile): Delete.
12719 * python/python.c: #include "extension-priv.h".
12720 Delete inclusion of "observer.h".
12721 (extension_language_python): Moved here and renamed from
12722 script_language_python in py-auto-load.c.
12723 Redefined to be of type extension_language_defn.
12724 (python_extension_script_ops): New global.
12725 (python_extension_ops): New global.
12726 (struct python_env): New member previous_active.
12727 (restore_python_env): Call restore_active_ext_lang.
12728 (ensure_python_env): Call set_active_ext_lang.
12729 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12731 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12733 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12735 (gdbpy_eval_from_control_command): Renamed from
12736 eval_python_from_control_command, made static. New arg extlang.
12737 (gdbpy_source_script) Renamed from source_python_script, made static.
12739 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12740 result to int. New arg extlang.
12741 (gdbpy_source_objfile_script): Renamed from
12742 source_python_script_for_objfile, made static. New arg extlang.
12743 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12744 static. New args extlang, extlang_printers. Change result type to
12746 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12747 static. New arg extlang. Rename arg printers to extlang_printers
12748 and change type to ext_lang_type_printers *.
12749 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12750 static. Replace argument arg with extlang, extlang_printers.
12751 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12752 (!HAVE_PYTHON, source_python_script): Delete.
12753 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12754 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12755 (!HAVE_PYTHON, start_type_printers): Delete.
12756 (!HAVE_PYTHON, apply_type_printers): Delete.
12757 (!HAVE_PYTHON, free_type_printers): Delete.
12758 (_initialize_python): Delete call to observer_attach_before_prompt.
12759 (finalize_python): Set/restore active extension language.
12760 (gdbpy_finish_initialization) Renamed from
12761 finish_python_initialization, made static. New arg extlang.
12762 (gdbpy_initialized): New function.
12763 * python/python.h: #include "extension.h". Delete #include
12764 "value.h", "mi/mi-cmds.h".
12765 (extension_language_python): Declare.
12766 (GDBPY_AUTO_FILE_NAME): Delete.
12767 (enum py_bt_status): Moved to extension.h and renamed to
12768 ext_lang_bt_status.
12769 (enum frame_filter_flags): Moved to extension.h.
12770 (enum py_frame_args): Moved to extension.h and renamed to
12771 ext_lang_frame_args.
12772 (finish_python_initialization): Delete.
12773 (eval_python_from_control_command): Delete.
12774 (source_python_script): Delete.
12775 (apply_val_pretty_printer): Delete.
12776 (apply_frame_filter): Delete.
12777 (preserve_python_values): Delete.
12778 (gdbpy_script_language_defn): Delete.
12779 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12780 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12782 * auto-load.c: #include "extension.h".
12783 (GDB_AUTO_FILE_NAME): Delete.
12784 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12785 (script_language_gdb): Delete, moved to extension.c and renamed to
12786 extension_language_gdb.
12787 (source_gdb_script_for_objfile): Delete.
12788 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12789 (loaded_script): Change type of language member to
12790 struct extension_language_defn *.
12791 (init_loaded_scripts_info): Initialize
12792 unsupported_script_warning_printed.
12793 (maybe_add_script): Make static. Change type of language arg to
12794 struct extension_language_defn *.
12795 (clear_section_scripts): Reset unsupported_script_warning_printed.
12796 (auto_load_objfile_script_1): Rewrite to use extension language API.
12797 (auto_load_objfile_script): Make public. Remove support-compiled-in
12798 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12799 (source_section_scripts): Rewrite to use extension language API.
12800 (load_auto_scripts_for_objfile): Rewrite to use
12801 auto_load_scripts_for_objfile.
12802 (collect_matching_scripts_data): Change type of language member to
12803 struct extension_language_defn *.
12804 (auto_load_info_scripts): Change type of language arg to
12805 struct extension_language_defn *.
12806 (unsupported_script_warning_print): New function.
12807 (script_not_found_warning_print): Make static.
12808 (_initialize_auto_load): Rewrite construction of scripts-directory
12810 * auto-load.h (struct objfile): Add forward decl.
12811 (struct script_language): Delete.
12812 (struct auto_load_pspace_info): Add forward decl.
12813 (struct extension_language_defn): Add forward decl.
12814 (maybe_add_script): Delete.
12815 (auto_load_objfile_script): Declare.
12816 (script_not_found_warning_print): Delete.
12817 (auto_load_info_scripts): Update prototype.
12818 (auto_load_gdb_scripts_enabled): Declare.
12819 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12820 auto_load_python_scripts_enabled and made public.
12821 (script_language_python): Delete, moved to python.c.
12822 (gdbpy_script_language_defn): Delete.
12823 (info_auto_load_python_scripts): Update to use
12824 extension_language_python.
12826 * breakpoint.c (condition_command): Replace call to
12827 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12828 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12829 with call to breakpoint_ext_lang_cond_says_stop.
12830 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12831 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12832 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12833 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12835 (local_setattro): Print name of extension language with existing
12838 * valprint.c (val_print, value_print): Update to call
12839 apply_ext_lang_val_pretty_printer.
12840 * cp-valprint.c (cp_print_value): Update call to
12841 apply_ext_lang_val_pretty_printer.
12842 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12843 (gdbpy_apply_val_pretty_printer): Renamed from
12844 apply_val_pretty_printer. New arg extlang.
12845 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12847 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12848 extension language API.
12849 * cli/cli-script.c (execute_control_command): Update to call
12850 eval_ext_lang_from_control_command.
12852 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12853 enum ext_lang_bt_status values. Update call to
12854 apply_ext_lang_frame_filter.
12855 (mi_cmd_stack_list_locals): Ditto.
12856 (mi_cmd_stack_list_args): Ditto.
12857 (mi_cmd_stack_list_variables): Ditto.
12858 * mi/mi-main.c: Delete #include "python/python-internal.h".
12859 Add #include "extension.h".
12860 (mi_cmd_list_features): Replace reference to python internal variable
12861 gdb_python_initialized with call to ext_lang_initialized_p.
12863 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12864 Update to use enum ext_lang_frame_args. Update to call
12865 apply_ext_lang_frame_filter.
12866 * python/py-framefilter.c (extract_sym): Update to use enum
12867 ext_lang_bt_status.
12868 (extract_value, py_print_type, py_print_value): Ditto.
12869 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12870 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12871 (py_print_frame): Ditto.
12872 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12873 New arg extlang. Update to use enum ext_lang_bt_status.
12875 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12876 finish_python_initialization. Replace with call to
12877 finish_ext_lang_initialization.
12879 * typeprint.c (do_free_global_table): Update to call
12880 free_ext_lang_type_printers.
12881 (create_global_typedef_table): Update to call
12882 start_ext_lang_type_printers.
12883 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12884 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12885 (type_print_options): Change type of global_printers from "void *"
12886 to "struct ext_lang_type_printers *".
12888 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12889 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12890 (gdbpy_preserve_values): Renamed from preserve_python_values.
12892 (!HAVE_PYTHON, preserve_python_values): Delete.
12894 * utils.c (quit_flag): Delete, moved to extension.c.
12895 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12898 * eval.c: Delete #include "python/python.h".
12899 * main.c: Delete #include "python/python.h".
12901 * defs.h: Update comment.
12903 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12907 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12909 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12912 2014-02-05 Yao Qi <yao@codesourcery.com>
12914 * remote.c (remote_pass_signals): Remove local 'buf' and use
12916 (remote_program_signals): Likewise.
12918 2014-02-05 Yao Qi <yao@codesourcery.com>
12920 * ctf.c: Include "inferior.h" and "gdbthread.h".
12921 (CTF_PID): A new macro.
12922 (ctf_open): Call inferior_appeared and add_thread_silent.
12923 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12924 (ctf_thread_alive): New function.
12925 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12927 2014-02-05 Yao Qi <yao@codesourcery.com>
12931 2013-05-24 Yao Qi <yao@codesourcery.com>
12933 * tracepoint.c (TFILE_PID): Remove.
12934 (tfile_open): Don't add thread and inferior.
12935 (tfile_close): Don't set 'inferior_ptid'. Don't call
12936 exit_inferior_silent.
12937 (tfile_thread_alive): Remove.
12938 (init_tfile_ops): Don't set field 'to_thread_alive' of
12941 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12943 * remote.c (remote_start_remote): Call remote_check_symbols even
12944 if only symbol-file (not file) has been given.
12946 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12948 * gdbarch.sh (skip_entrypoint): New callback.
12949 * gdbarch.c, gdbarch.h: Regenerate.
12950 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12951 * infrun.c (fill_in_stop_func): Likewise.
12952 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12953 (ppc_elfv2_elf_make_msymbol_special): New function.
12954 (ppc_elfv2_skip_entrypoint): Likewise.
12955 (ppc_linux_init_abi): Install them for ELFv2.
12957 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12959 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12960 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12961 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12962 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12963 structures returned in GPRs.
12965 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12967 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12968 offset to the stack parameter list for the ELFv2 ABI.
12970 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12972 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12973 set_gdbarch_convert_from_func_ptr_addr and
12974 set_gdbarch_elf_make_msymbol_special for ELFv1.
12975 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12976 function descriptors on ELFv1.
12977 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12978 set up r12 at function entry.
12980 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12982 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12983 (struct gdbarch_tdep): New member elf_abi.
12985 * rs6000-tdep.c: Include "elf/ppc64.h".
12986 (rs6000_gdbarch_init): Detect ELF ABI version.
12988 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12990 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12991 within a register pair holding a DFP 128-bit value on little-endian.
12992 (ppc64_sysv_abi_return_value_base): Likewise.
12993 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12994 (dfp_pseudo_register_write): Likewise.
12996 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12998 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12999 offset on little-endian when passing _Decimal32.
13000 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13002 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13004 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13005 of the overlapped FP register within the VSX register on little-
13007 (efpr_pseudo_register_write): Likewise.
13009 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13011 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13012 offset on little-endian when passing small structures.
13014 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13016 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13017 (struct ppc64_sysv_argpos): New data structure.
13018 (ppc64_sysv_abi_push_float): Remove.
13019 (ppc64_sysv_abi_push_val): New function.
13020 (ppc64_sysv_abi_push_integer): Likewise.
13021 (ppc64_sysv_abi_push_freg): Likewise.
13022 (ppc64_sysv_abi_push_vreg): Likewise.
13023 (ppc64_sysv_abi_push_param): Likewise.
13024 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13025 (ppc64_sysv_abi_return_value_base): New function.
13026 (ppc64_sysv_abi_return_value): Refactor to use it.
13028 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13030 * NEWS: Document new target powerpc64le-*-linux*.
13032 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13034 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13035 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13037 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13038 register set used in ELF core dumps. Add floating-point register set.
13040 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13042 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13043 dwarf2_to_gdb[] table using symbolic constants. Adjust
13044 penultimate entry from number representing the PC register
13045 to symbolic constant representing the MDR register. Add
13046 constant for the PC register to the end of the table.
13048 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13050 * bsd-kvm.c: Include <sys/param.h>
13052 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13054 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13056 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13058 * ada-lang.h (clear_ada_sym_cache): Delete.
13060 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13062 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13064 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13066 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13067 the sigreturn register save area only if the syscall is
13070 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13072 * valops.c (value_slice): Minor reformatting.
13074 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13076 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13078 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13080 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13081 New static globals.
13082 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13083 (ada_ignore_descriptive_types_p): New static global.
13084 (find_parallel_type_by_descriptive_type): Return immediately
13085 if ada_ignore_descriptive_types_p is set.
13086 (_initialize_ada_language): Register new commands "maintenance
13087 set ada", "maintenance show ada", "maintenance set ada
13088 ignore-descriptive-types" and "maintenance show ada
13089 ignore-descriptive-types".
13090 * NEWS: Add entry for new "maint ada set/show
13091 ignore-descriptive-types" commands.
13093 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13095 * record-btrace.c (record_btrace_close): Call btrace_teardown
13098 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13100 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13103 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13105 * ada-typeprint (type_is_full_subrange_of_target_type):
13107 (print_range): Add parameter bounds_prefered_p. If not set,
13108 try printing range types using the name of their base type.
13109 (print_range_type): Add parameter bounds_prefered_p.
13110 Use it in call to print_range.
13111 (print_array_type, ada_print_type): Update calls to print_range
13112 and print_range_type.
13114 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13116 * ada-typeprint.c (print_array_type, print_choices, print_range)
13117 (print_range_bound, print_dynamic_range_bound, print_range_type):
13118 Remove declaration.
13120 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13122 * ada-typeprint.c (print_range): Add missing empty line
13123 after local declaration.
13125 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13127 * ada-valprint.c (print_optional_low_bound): Get index_type's
13128 target type for as long as it is a TYPE_CODE_RANGE.
13130 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13132 * procfs.c (procfs_make_note_section): Remove assertion and
13133 associated comment.
13135 2014-01-24 Yao Qi <yao@codesourcery.com>
13137 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13138 * corelow.c (get_core_siginfo): Likewise.
13140 2014-01-24 Yao Qi <yao@codesourcery.com>
13142 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13143 ULONGEST. Don't check 'len' is negative.
13144 (remote_write_bytes): Change type of 'len' to ULONGEST.
13146 2014-01-23 Tom Tromey <tromey@redhat.com>
13149 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13150 Handle exception from frame.block.
13151 (FrameVars.fetch_frame_locals): Likewise.
13153 2014-01-23 Tom Tromey <tromey@redhat.com>
13156 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13157 on a NULL pointer. Move "goto error" to correct place.
13159 2014-01-23 Tom Tromey <tromey@redhat.com>
13162 * python/py-framefilter.c (apply_frame_filter): Call
13163 ensure_python_env after computing gdbarch.
13165 2014-01-23 Yao Qi <yao@codesourcery.com>
13167 * target.c (raw_memory_xfer_partial): Change argument type
13168 from void * to gdb_byte *.
13169 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13171 2014-01-22 Doug Evans <dje@google.com>
13173 New gdbserver option --debug-format=timestamp.
13174 * NEWS: Mention it.
13176 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13178 * syscalls/s390x-linux.xml: New file.
13179 * syscalls/s390-linux.xml: New file.
13180 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13181 (XML_SYSCALL_FILENAME_S390X): Likewise.
13182 (op_svc): New enum value for SVC opcode.
13183 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13184 (s390_linux_get_syscall_number): New function.
13185 (s390_gdbarch_init): Register '*get_syscall_number' and the
13186 syscall xml file name.
13187 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13188 "s390-linux.xml" and "s390x-linux.xml".
13189 * NEWS: Announce new feature.
13191 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13193 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13195 2014-01-22 Pedro Alves <palves@redhat.com>
13197 * xtensa-config.c: Include defs.h.
13199 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13201 * common/common-utils.h: Add "ARI:" comment beside __func__
13204 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13206 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13207 documentation a bit.
13209 2014-01-21 Roland McGrath <mcgrathr@google.com>
13211 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13212 * configure: Regenerate.
13213 * aclocal.m4: Regenerate.
13214 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13215 New substituted variables.
13216 (install-strip): New target.
13217 (INSTALL_SCRIPT): New substituted variable.
13218 (FLAGS_TO_PASS): Add it.
13219 (install-only): Use $(INSTALL_SCRIPT) rather than
13220 $(INSTALL_PROGRAM) for gcore.
13222 2014-01-20 Tom Tromey <tromey@redhat.com>
13224 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13227 2014-01-20 Tom Tromey <tromey@redhat.com>
13229 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13230 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13231 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13232 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13233 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13234 (struct cmd_list_element) <flags>: Remove.
13235 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13236 doc_allocated>: New fields.
13237 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13239 * maint.c (maintenance_do_deprecate): Update.
13240 * top.c (execute_command): Update.
13242 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13244 * xtensa-linux-nat.c: Include asm/ptrace.h.
13246 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13248 * Makefile.in (SFILES): Add d-support.c.
13249 (COMMON_OBS): Add d-support.o.
13250 * d-lang.h (d_parse_symbol): Add comment, now defined in
13252 * d-lang.c (parse_call_convention)
13253 (parse_attributes, parse_function_types)
13254 (parse_function_args, parse_type, parse_identifier)
13255 (call_convention_p, d_parse_symbol): Move functions to ...
13256 * d-support.c: ... New file.
13258 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13260 * d-lang.h (d_parse_symbol): Add declaration.
13261 * d-lang.c (extract_identifiers)
13262 (extract_type_info): Remove functions.
13263 (parse_call_convention, parse_attributes)
13264 (parse_function_types, parse_function_args)
13265 (parse_type, parse_identifier, call_convention_p)
13266 (d_parse_symbol): New functions.
13267 (d_demangle): Use d_parse_symbol to demangle D symbols.
13269 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13271 * d-lang.h (struct builtin_d_type): New data type.
13272 (builtin_d_type): Add declaration.
13273 * d-lang.c (d_language_arch_info, build_d_types)
13274 (builtin_d_type): New functions.
13275 (enum d_primitive_types): New data type.
13276 (d_language_defn): Change c_language_arch_info to
13277 d_language_arch_info.
13278 (d_type_data): New static variable.
13279 (_initialize_d_language): Initialize d_type_data.
13281 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13283 * d-lang.h (d_main_name): Add declaration.
13284 * d-lang.c (d_main_name): New function.
13285 * symtab.c (find_main_name): Add call to d_main_name.
13287 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13289 * d-lang.c (d_language_defn): Change macro_expansion_c to
13290 macro_expansion_no.
13292 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13294 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13296 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13298 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13299 gdb_exception" declaration.
13300 * remote.c (getpkt_or_notif_sane): Likewise.
13302 2014-01-17 Doug Evans <dje@google.com>
13304 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13305 function, contents of dirnames_to_char_ptr_vec_append moved here.
13306 (delim_string_to_char_ptr_vec): New function.
13307 (dirnames_to_char_ptr_vec_append): Rewrite.
13308 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13310 2014-01-17 Doug Evans <dje@google.com>
13312 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13314 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13315 #include "common-utils.h".
13316 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13317 * common/vec.h (VEC_ASSERT_PASS): Update.
13318 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13319 (MACH_CHECK_ERROR): Update.
13321 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13323 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13325 * gdbarch.h: Regenerate.
13327 2014-01-16 Tom Tromey <tromey@redhat.com>
13329 * value.c (struct value) <regnum>: Move earlier.
13331 2014-01-16 Tom Tromey <tromey@redhat.com>
13333 * remote.c (extended_remote_create_inferior): Rename from
13334 extended_remote_create_inferior_1. Add "ops" argument. Remove
13335 old implementation.
13337 2014-01-16 Pedro Alves <palves@redhat.com>
13339 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13340 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13343 2014-01-16 Doug Evans <dje@google.com>
13345 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13347 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13349 * btrace.h (btrace_thread_flag): New.
13350 (struct btrace_thread_info) <flags>: New.
13351 * record-btrace.c (record_btrace_resume_thread)
13352 (record_btrace_find_thread_to_move, btrace_step_no_history)
13353 (btrace_step_stopped, record_btrace_start_replaying)
13354 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13355 (record_btrace_find_resume_thread): New.
13356 (record_btrace_resume, record_btrace_wait): Extend.
13357 (record_btrace_can_execute_reverse): New.
13358 (record_btrace_open): Fail in non-stop mode.
13359 (record_btrace_set_replay): Split into this, ...
13360 (record_btrace_stop_replaying): ... this, ...
13361 (record_btrace_clear_histories): ... and this.
13362 (init_record_btrace_ops): Init to_can_execute_reverse.
13363 * NEWS: Announce it.
13365 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13367 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13368 (forward_target_decr_pc_after_break)
13369 (target_decr_pc_after_break): New.
13370 * target.c (forward_target_decr_pc_after_break)
13371 (target_decr_pc_after_break): New.
13372 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13373 instead of gdbarch_decr_pc_after_break.
13374 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13375 instead of gdbarch_decr_pc_after_break.
13376 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13377 instead of gdbarch_decr_pc_after_break.
13378 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13379 instead of gdbarch_decr_pc_after_break.
13380 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13381 instead of gdbarch_decr_pc_after_break.
13382 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13383 instead of gdbarch_decr_pc_after_break.
13385 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13387 * btrace.c: Include regcache.h.
13388 (btrace_add_pc): New.
13389 (btrace_enable): Call btrace_add_pc.
13390 (btrace_is_empty): New.
13391 * btrace.h (btrace_is_empty): New.
13392 * record-btrace.c (require_btrace, record_btrace_info): Call
13395 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13397 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13398 Support delta reads.
13399 (linux_disable_btrace): Change return type.
13400 * common/linux-btrace.h (linux_read_btrace): Change parameters
13401 and return type to allow error reporting. Update users.
13402 (linux_disable_btrace): Change return type. Update users.
13403 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13405 (btrace_error): New.
13406 (btrace_block) <begin>: Comment on BEGIN == 0.
13407 * btrace.c (btrace_compute_ftrace): Start from the end of
13409 (btrace_stitch_trace, btrace_clear_history): New.
13410 (btrace_fetch): Read delta trace, return if replaying.
13411 (btrace_clear): Move clear history code to btrace_clear_history.
13412 (parse_xml_btrace): Throw an error if parsing failed.
13413 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13414 and return type to allow error reporting.
13415 (target_read_btrace): Change parameters and return type to allow
13417 * target.c (target_read_btrace): Update.
13418 * remote.c (remote_read_btrace): Support delta reads. Pass
13420 * NEWS: Announce it.
13422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13424 * record.h (record_btrace_frame_unwind)
13425 (record_btrace_tailcall_frame_unwind): New declarations.
13426 * dwarf2-frame: Include record.h
13427 (dwarf2_frame_cfa): Throw an error for btrace frames.
13428 * record-btrace.c: Include hashtab.h.
13429 (btrace_get_bfun_name): New.
13430 (btrace_call_history): Call btrace_get_bfun_name.
13431 (struct btrace_frame_cache): New.
13433 (bfcache_hash, bfcache_eq, bfcache_new): New.
13434 (btrace_get_frame_function): New.
13435 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13436 (record_btrace_frame_this_id): Compute own id.
13437 (record_btrace_frame_prev_register): Provide PC, throw_error
13438 for all other registers.
13439 (record_btrace_frame_sniffer): Detect btrace frames.
13440 (record_btrace_tailcall_frame_sniffer): New.
13441 (record_btrace_frame_dealloc_cache): New.
13442 (record_btrace_frame_unwind): Add new functions.
13443 (record_btrace_tailcall_frame_unwind): New.
13444 (_initialize_record_btrace): Allocate cache.
13445 * btrace.c (btrace_clear): Call reinit_frame_cache.
13446 * NEWS: Announce it.
13448 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13450 * record-btrace.c (record_btrace_set_replay)
13451 (record_btrace_goto_begin, record_btrace_goto_end)
13452 (record_btrace_goto): New.
13453 (init_record_btrace_ops): Initialize them.
13454 * NEWS: Announce it.
13456 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13458 * record-btrace.c (record_btrace_find_new_threads)
13459 (record_btrace_thread_alive): New.
13460 (init_record_btrace_ops): Initialize to_find_new_threads and
13463 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13465 * record-btrace.c (record_btrace_resume): New.
13466 (record_btrace_wait): New.
13467 (init_record_btrace_ops): Initialize to_wait and to_resume.
13469 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13471 * record-btrace.c (record_btrace_xfer_partial)
13472 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13473 (record_btrace_allow_memory_access): New.
13474 (init_record_btrace_ops): Initialize new methods.
13475 * target.c (raw_memory_xfer_partial): Bail out if target reports
13476 that this memory is not available.
13478 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13480 * target.h (target_ops) <to_insert_breakpoint>
13481 <to_remove_breakpoint>: Add target_ops parameter.
13482 (forward_target_insert_breakpoint): New.
13483 (forward_target_remove_breakpoint): New.
13484 (memory_remove_breakpoint, memory_insert_breakpoint):
13485 Add target_ops parameter.
13486 * target.c (target_insert_breakpoint): Split into this and ...
13487 (forward_target_insert_breakpoint): ... this.
13488 (target_remove_breakpoint): Split into this and ...
13489 (forward_target_remove_breakpoint): ... this.
13490 (debug_to_insert_breakpoint): Add target_ops parameter.
13491 Call forward_target_insert_breakpoint.
13492 (debug_to_remove_breakpoint): Add target_ops parameter.
13493 Call forward_target_remove_breakpoint.
13494 (update_current_target): Do not inherit or default to_insert_breakpoint
13495 and to_remove_breakpoint.
13496 * corelow.c (ignore): Add target_ops parameter.
13497 * exec.c (ignore): Add target_ops parameter.
13498 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13499 Add target_ops parameter.
13500 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13501 Add target_ops parameter.
13502 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13503 Add target_ops parameter.
13504 * record-full.c (record_full_beneath_to_insert_breakpoint)
13505 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13506 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13507 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13508 (record_full_core_remove_breakpoint): Add target_ops parameter.
13510 (record_full_beneath_to_insert_breakpoint_ops)
13511 (record_full_beneath_to_remove_breakpoint_ops)
13512 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13513 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13514 tmp_to_remove_breakpoint_ops,
13515 record_full_beneath_to_insert_breakpoint_ops, and
13516 record_full_beneath_to_remove_breakpoint_ops.
13517 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13518 (m32r_remove_breakpoint): Add target_ops parameter.
13519 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13520 Add target_ops parameter.
13521 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13522 Add target_ops parameter.
13524 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13525 Markus Metzger <markus.t.metzger@intel.com>
13527 * record-btrace.c: Include frame-unwind.h.
13528 (record_btrace_frame_unwind_stop_reason)
13529 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13530 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13532 (init_record_btrace_ops): Install it.
13534 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13536 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13539 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13541 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13544 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13546 * frame-unwind.c: Include target.h.
13547 (frame_unwind_try_unwinder): New function with code from ...
13548 (frame_unwind_find_by_frame): ... here. New variable
13549 unwinder_from_target, call also target_get_unwinder)
13550 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13551 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13552 * target.h (struct target_ops): New fields to_get_unwinder and
13553 to_get_tailcall_unwinder.
13554 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13558 * record-btrace.c (record_btrace_fetch_registers)
13559 (record_btrace_store_registers)
13560 (record_btrace_to_prepare_to_store): New.
13561 (init_record_btrace_ops): Add the above.
13563 2014-01-16 Tom Tromey <tromey@redhat.com>
13565 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13566 * target.h (struct target_ops) <to_prepare_to_store>: Add
13568 (target_prepare_to_store): Add argument.
13569 * target.c (debug_to_prepare_to_store): Add argument.
13570 (update_current_target): Update.
13571 * remote.c (remote_prepare_to_store): Add 'self' argument.
13572 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13573 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13574 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13575 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13577 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13578 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13579 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13580 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13581 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13583 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13585 * btrace.h (replay) <replay>: New.
13586 (btrace_is_replaying): New.
13587 * btrace.c (btrace_clear): Free replay iterator.
13588 (btrace_is_replaying): New.
13589 * record-btrace.c (record_btrace_is_replaying): New.
13590 (record_btrace_info): Print insn number if replaying.
13591 (record_btrace_insn_history): Start at replay position.
13592 (record_btrace_call_history): Start at replay position.
13593 (init_record_btrace_ops): Init to_record_is_replaying.
13595 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13597 * record-btrace.c (record_btrace_insn_history_range): Include
13599 (record_btrace_insn_history_from): Adjust range.
13600 (record_btrace_call_history_range): Include
13602 (record_btrace_call_history_from): Adjust range.
13603 * NEWS: Announce changes.
13605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13607 * record.h (enum record_print_flag)
13608 <record_print_indent_calls>: New.
13609 * record.c (get_call_history_modifiers): Recognize /c modifier.
13610 (_initialize_record): Document /c modifier.
13611 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13612 Reorder fields. Optionally indent the function name. Update
13614 * NEWS: Announce changes.
13616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13618 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13622 * btrace.c (ftrace_new_function): Start counting at one.
13623 * record-btrace.c (record_btrace_info): Adjust number of calls
13625 * NEWS: Announce it.
13627 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13629 * record-btrace.c (btrace_call_history_insn_range): Print
13630 insn range as [begin, end].
13632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13634 * btrace.h (struct btrace_func_link): New.
13635 (enum btrace_function_flag): New.
13636 (struct btrace_inst): Rename to ...
13637 (struct btrace_insn): ...this. Update all users.
13638 (struct btrace_func) <ibegin, iend>: Remove.
13639 (struct btrace_func_link): New.
13640 (struct btrace_func): Rename to ...
13641 (struct btrace_function): ...this. Update all users.
13642 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13643 (number, level, flags>: New.
13644 (struct btrace_insn_iterator): Rename to ...
13645 (struct btrace_insn_history): ...this.
13647 (struct btrace_insn_iterator, btrace_call_iterator): New.
13648 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13649 (struct btrace_target_info) <begin, end, level>
13650 <insn_history, call_history>: New.
13651 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13652 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13653 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13654 (btrace_call_number, btrace_call_begin, btrace_call_end)
13655 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13656 (btrace_find_function_by_number, btrace_set_insn_history)
13657 (btrace_set_call_history): New.
13658 * btrace.c (btrace_init_insn_iterator)
13659 (btrace_init_func_iterator, compute_itrace): Remove.
13660 (ftrace_print_function_name, ftrace_print_filename)
13661 (ftrace_skip_file): Change
13662 parameter to const.
13663 (ftrace_init_func): Remove.
13664 (ftrace_debug): Use new btrace_function fields.
13665 (ftrace_function_switched): Also consider gaining and
13666 losing symbol information).
13667 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13668 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13669 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13671 (ftrace_new_function): Move. Remove debug print.
13672 (ftrace_update_lines, ftrace_update_insns): New.
13673 (ftrace_update_function): Check for call, ret, and jump.
13674 (compute_ftrace): Renamed to ...
13675 (btrace_compute_ftrace): ...this. Rewritten to compute call
13677 (btrace_fetch, btrace_clear): Updated.
13678 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13679 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13680 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13681 (btrace_call_number, btrace_call_begin, btrace_call_end)
13682 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13683 (btrace_find_function_by_number, btrace_set_insn_history)
13684 (btrace_set_call_history): New.
13685 * record-btrace.c (require_btrace): Use new btrace thread
13687 (record_btrace_info, btrace_insn_history)
13688 (record_btrace_insn_history, record_btrace_insn_history_range):
13689 Use new btrace thread info fields and new iterator.
13690 (btrace_func_history_src_line): Rename to ...
13691 (btrace_call_history_src_line): ...this. Use new btrace
13692 thread info fields.
13693 (btrace_func_history): Rename to ...
13694 (btrace_call_history): ...this. Use new btrace thread info
13695 fields and new iterator.
13696 (record_btrace_call_history, record_btrace_call_history_range):
13697 Use new btrace thread info fields and new iterator.
13699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13701 * frame.h (frame_id_build_unavailable_stack_special): New.
13702 * frame.c (frame_id_build_unavailable_stack_special): New.
13704 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13706 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13707 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13708 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13710 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13711 (i386_insn_is_jump, i386_jmp_p): New.
13712 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13713 insn_is_jump to gdbarch.
13714 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13715 * gdbarch.h: Regenerated.
13716 * gdbarch.c: Regenerated.
13717 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13718 (default_insn_is_jump): New.
13719 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13720 (default_insn_is_jump): New.
13722 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13724 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13726 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13727 (btrace_read_type) <btrace_read_new>: Change to ...
13728 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13730 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13732 * common/linux-btrace.c (linux_read_btrace): Free trace from
13733 previous iteration.
13735 2014-01-15 Doug Evans <dje@google.com>
13737 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13740 2014-01-15 Tom Tromey <tromey@redhat.com>
13742 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13743 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13744 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13745 (set_objfile_main_name): New function.
13746 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13747 language_of_main>: New fields.
13748 (set_objfile_main_name): Declare.
13749 * symtab.c (find_main_name): Loop over objfiles to find the main
13751 (set_main_name): Now static.
13752 (get_main_info): Add comment.
13753 * symtab.h (set_main_name): Don't declare.
13755 2014-01-15 Tom Tromey <tromey@redhat.com>
13757 * symtab.c (main_progspace_key): New global.
13758 (struct main_info): New.
13759 (name_of_main, language_of_main): Remove.
13760 (get_main_info, main_info_cleanup): New function.
13761 (set_main_name, main_name, main_language): Use get_main_info.
13762 (_initialize_symtab): Initialize main_progspace_key.
13764 2014-01-15 Tom Tromey <tromey@redhat.com>
13766 * dbxread.c (process_one_symbol): Update.
13767 * dwarf2read.c (read_partial_die): Update.
13768 * symfile.c (set_initial_language): Call main_language.
13769 * symtab.c (language_of_main): Now static.
13770 (set_main_name): Add 'lang' parameter.
13771 (find_main_name): Update.
13772 (main_language): New function.
13773 (symtab_observer_executable_changed): Update.
13774 * symtab.h (set_main_name): Update.
13775 (language_of_main): Remove.
13776 (main_language): Declare.
13778 2014-01-15 Tom Tromey <tromey@redhat.com>
13780 * symfile.c (init_entry_point_info): Use new "initialized" field.
13782 * objfiles.h (struct entry_point) <initialized>: New field.
13783 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13784 (struct objfile) <ei>: ...here. Remove.
13785 * objfiles.c (entry_point_address_query): Update.
13787 2014-01-15 Tom Tromey <tromey@redhat.com>
13789 * objfiles.c (entry_point_address_query): Relocate entry point
13791 (objfile_relocate1): Do not relocate entry point address.
13792 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13793 <the_bfd_section_index>: New field.
13794 * symfile.c (init_entry_point_info): Find the entry point's
13797 2014-01-15 Tom Tromey <tromey@redhat.com>
13799 * solib-frv.c (enable_break): Use entry_point_address_query.
13801 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13803 * NEWS: Add note on improved process record-replay on
13804 arm*-linux* targets.
13806 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13808 * arm-tdep.c (enum arm_record_result): New enum.
13809 (arm_record_unsupported_insn): New function.
13810 (arm_record_coproc_data_proc): Removed.
13811 (thumb2_record_ld_st_multiple): New function.
13812 (thumb2_record_ld_st_dual_ex_tbb): New function.
13813 (thumb2_record_data_proc_sreg_mimm): New function.
13814 (thumb2_record_ps_dest_generic): New function.
13815 (thumb2_record_branch_misc_cntrl): New function.
13816 (thumb2_record_str_single_data): New function.
13817 (thumb2_record_ld_mem_hints): New function.
13818 (thumb2_record_ld_word): New function.
13819 (thumb2_record_lmul_lmla_div): New function.
13820 (thumb2_record_decode_insn_handler): New function.
13821 (decode_insn): Add thumb32 instruction handlers.
13823 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13825 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13826 (struct arm_linux_record_tdep): Declare.
13827 (arm_canonicalize_syscall): New function.
13828 (arm_all_but_pc_registers_record): New function.
13829 (arm_linux_syscall_record): New function.
13830 (arm_linux_init_abi): Add syscall recording constructs.
13831 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13832 decoding. (arm_record_coproc_data_proc): Update arm syscall
13834 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13835 <arm_syscall_record>: New field.
13836 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13839 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13841 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13842 register for push instruction recording.
13844 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13846 * arm-tdep.c (thumb_record_misc): Update to correct logical
13847 error while recording ldm, ldmia and pop instructions.
13849 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13851 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13853 2014-01-15 Pedro Alves <palves@redhat.com>
13855 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13856 (go32_resume, go32_fetch_registers, store_register)
13857 (go32_store_registers, go32_prepare_to_store)
13858 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13859 (go32_create_inferior, go32_can_run, go32_terminal_init)
13860 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13863 2014-01-15 Tom Tromey <tromey@redhat.com>
13865 * target.h (async_callback_ftype): New typedef.
13866 (struct target_ops) <to_async>: Use it.
13868 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13870 * python/py-value.c (get_field_type): Remove unnecessary curly
13871 braces for single-statement if block.
13873 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13875 * python/py-type.c (convert_field): Add missing empty line
13876 after declarations.
13878 2014-01-14 Doug Evans <dje@google.com>
13880 * symfile.h (expand_symtabs_matching): Renamed from
13881 expand_partial_symbol_names. Update prototype.
13882 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13883 * symfile.c (expand_symtabs_matching): Renamed from
13884 expand_partial_symbol_names. New args file_matcher, kind.
13885 Rename arg fun to symbol_matcher.
13886 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13887 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13888 ada_expand_partial_symbol_name.
13889 (ada_make_symbol_completion_list): Update to call
13890 expand_symtabs_matching.
13891 (ada_add_global_exceptions): Call expand_symtabs_matching.
13892 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13893 call map_symbol_filenames.
13894 * symtab.c (sources_info): Update to call map_symbol_filenames.
13895 (search_symbols): Call expand_symtabs_matching.
13896 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13897 (default_make_symbol_completion_list_break_on): Update to call
13898 expand_symtabs_matching.
13899 (make_source_files_completion_list): Update to call
13900 map_symbol_filenames.
13902 2014-01-14 Doug Evans <dje@google.com>
13904 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13905 (expand_symtabs_symbol_matcher_ftype): New typedef.
13906 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13907 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13908 * symfile.c (expand_partial_symbol_names): Update to use
13909 expand_symtabs_symbol_matcher_ftype.
13910 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13911 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13912 Arg name_matcher renamed to symbol_matcher.
13913 * psymtab.c (recursively_search_psymtabs): Update to use
13914 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13916 (expand_symtabs_matching_via_partial): Update to use
13917 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13918 Arg name_matcher renamed to symbol_matcher.
13920 2014-01-14 Doug Evans <dje@google.com>
13922 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13923 (map_partial_symbol_filenames): Ditto.
13924 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13925 (map_partial_symbol_filenames): Ditto.
13926 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13927 (map_partial_symbol_filenames): Ditto.
13928 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13929 (map_partial_symbol_filenames): Ditto.
13930 * symtab.c: Delete #include "psymtab.h".
13932 2014-01-14 Pedro Alves <palves@redhat.com>
13933 Tom Tromey <tromey@redhat.com>
13935 * infrun.c (use_displaced_stepping): Use find_record_target
13936 instead of RECORD_IS_USED.
13937 (adjust_pc_after_break): Use record_full_is_used instead of
13939 * record-btrace.c (record_btrace_open): Call record_preopen
13940 instead of checking RECORD_IS_USED.
13941 * record-full.c (record_full_shortname)
13942 (record_full_core_shortname): New globals.
13943 (record_full_is_used): New function.
13944 (find_full_open): Call record_preopen instead of checking
13946 (init_record_full_ops): Set the target's shortname to
13947 record_full_shortname.
13948 (init_record_full_core_ops): Set the target's shortname to
13949 record_full_core_shortname.
13950 * record-full.h (record_full_is_used): Declare.
13951 * record.c (find_record_target): Make extern.
13952 (record_preopen): New function.
13953 * record.h (RECORD_IS_USED): Delete macro.
13954 (find_record_target, record_preopen): Declare functions.
13956 2014-01-14 Yao Qi <yao@codesourcery.com>
13958 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13959 'len''s type to ULONGEST.
13960 (core_xfer_shared_libraries_aix): Likewise.
13961 * gdbarch.c, gdbarch.h: Regenerated.
13962 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13963 Change type of 'len' to ULONGEST.
13964 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13965 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13967 2014-01-14 Yao Qi <yao@codesourcery.com>
13969 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13970 type of 'len' to ULONGEST.
13971 (linux_xfer_osdata_processgroups): Likewise.
13972 (linux_xfer_osdata_threads): Likewise.
13973 (linux_xfer_osdata_fds): Likewise.
13974 (linux_xfer_osdata_isockets): Likewise.
13975 (linux_xfer_osdata_shm): Likewise.
13976 (linux_xfer_osdata_sem): Likewise.
13977 (linux_xfer_osdata_msg): Likewise.
13978 (linux_common_xfer_osdata): Likewise.
13979 (struct osdata_type) <getter>: Likewise.
13980 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13983 2014-01-14 Yao Qi <yao@codesourcery.com>
13985 * target.h (target_xfer_partial_ftype): Update.
13986 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13988 * aix-thread.c (aix_thread_xfer_partial): Change type of
13989 argument 'len' to ULONGEST.
13990 * auxv.c (procfs_xfer_auxv): Likewise.
13991 (ld_so_xfer_auxv): Likewise.
13992 (memory_xfer_auxv): Likewise.
13993 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13994 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13995 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13996 * corelow.c (core_xfer_partial): Likewise.
13997 * ctf.c (ctf_xfer_partial): Likewise.
13998 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14000 (darwin_read_dyld_info): Likewise.
14001 (darwin_xfer_partial): Likewise.
14002 * exec.c (section_table_xfer_memory_partial): Likewise.
14003 (exec_xfer_partial): Likewise.
14004 * exec.h (section_table_xfer_memory_partial): Update
14006 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14007 instead of plongest.
14008 (gnu_xfer_partial): Likewise.
14009 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14010 (ia64_hpux_xfer_solib_got): Likewise.
14011 (ia64_hpux_xfer_partial): Likewise.
14012 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14013 * inf-ptrace.c (inf_ptrace_xfer_partial):
14014 * inf-ttrace.c (inf_ttrace_xfer_partial):
14015 * linux-nat.c (linux_xfer_siginfo): Likewise.
14016 (linux_nat_xfer_partial): Likewise.
14017 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14018 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14019 * monitor.c (monitor_xfer_memory): Likewise.
14020 (monitor_xfer_partial): Likewise.
14021 * procfs.c (procfs_xfer_partial): Likewise.
14022 * record-full.c (record_full_xfer_partial): Likewise.
14023 (record_full_core_xfer_partial): Likewise.
14024 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14025 instead of plongest.
14026 (gdbsim_xfer_partial): Likewise.
14027 * remote.c (remote_xfer_partial): Likewise.
14028 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14029 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14031 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14032 (rs6000_xfer_shared_libraries): Likewise.
14033 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14034 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14035 (sparc_xfer_partial): Likewise.
14036 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14037 (spu_xfer_partial): Likewise.
14038 * spu-multiarch.c (spu_xfer_partial): Likewise.
14039 * target.c (target_read_live_memory): Likewise.
14040 (memory_xfer_live_readonly_partial): Likewise.
14041 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14042 (target_xfer_partial, default_xfer_partial): Likewise.
14043 (current_xfer_partial): Likewise.
14044 * tracepoint.c (tfile_xfer_partial): Likewise.
14045 * windows-nat.c (windows_xfer_memory): Likewise. Call
14046 pulongest instead of plongest.
14047 (windows_xfer_partial): Likewise.
14048 (windows_xfer_shared_libraries): Likewise.
14050 2014-01-14 Yao Qi <yao@codesourcery.com>
14052 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14053 target_xfer_partial_ftype.
14055 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14059 * valops.c (value_struct_elt_bitpos): New function
14060 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14061 object to 'None' if the field name is an empty string ("").
14062 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14063 attribute to look for a field when 'name' is 'None'.
14064 (get_field_type): New function
14066 2014-01-13 Doug Evans <dje@google.com>
14069 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14070 (try_open_dwop_file): Ditto.
14071 * gdb_bfd.c: #include "vec.h".
14072 (bfdp): New typedef.
14073 (struct gdb_bfd_data): New member included_bfds.
14074 (gdb_bfd_unref): Unref all included bfds.
14075 (gdb_bfd_record_inclusion): New function.
14076 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14078 2014-01-13 Tom Tromey <tromey@redhat.com>
14080 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14082 2014-01-13 Tom Tromey <tromey@redhat.com>
14084 * defs.h (use_windows): Remove.
14085 * gdb.c (main): Update.
14086 * main.c (captured_main, gdb_main): Update.
14087 * main.h (struct captured_main_args) <use_windows>: Remove.
14088 * top.c (use_windows): Remove.
14090 2014-01-13 Tom Tromey <tromey@redhat.com>
14092 * defs.h (deprecated_flush_hook): Remove.
14094 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14097 * linux-thread-db.c (try_thread_db_load): Add parameter
14098 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14099 (try_thread_db_load_from_pdir_1): Move it there from here.
14100 (try_thread_db_load_from_sdir): Update caller.
14101 (try_thread_db_load_from_dir): Move it there from here.
14103 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14105 * regformats/regdat.sh: Always rewrite the register file.
14107 2014-01-13 Pedro Alves <palves@redhat.com>
14109 * Makefile.in (CHECK_HEADERS): New variable.
14110 (check-headers:): New rule.
14112 2014-01-13 Tom Tromey <tromey@redhat.com>
14114 * cli/cli-setshow.c (do_set_command): Update.
14115 * defs.h (deprecated_set_hook): Remove.
14116 * top.c (deprecated_set_hook): Remove.
14118 2014-01-13 Pedro Alves <palves@redhat.com>
14120 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14121 the tracepoint if the PC is a pseudo-register.
14123 2014-01-13 Tom Tromey <tromey@redhat.com>
14125 * defs.h (XCALLOC): Remove.
14126 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14127 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14128 * dwarf2loc.c (allocate_piece_closure): Likewise.
14129 * elfread.c (elf_symfile_segments): Likewise.
14130 (elf_symfile_segments): Likewise.
14131 * gdbtypes.c (copy_type_recursive): Likewise.
14132 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14133 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14134 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14136 * mt-tdep.c (mt_gdbarch_init): Likewise.
14137 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14139 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14140 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14141 * registry.c (registry_alloc_data): Likewise.
14142 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14143 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14144 * serial.c (serial_fdopen_ops): Likewise.
14145 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14147 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14148 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14151 2014-01-13 Tom Tromey <tromey@redhat.com>
14153 * defs.h (XMALLOC): Remove.
14154 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14155 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14156 * cli-out.c (struct ui_out *): Likewise.
14157 * cli/cli-dump.c (add_dump_command): Likewise.
14158 (add_dump_command): Likewise.
14159 * complaints.c (get_complaints): Likewise.
14160 (find_complaint): Likewise.
14161 * dwarf2-frame.c (execute_cfa_program): Likewise.
14162 * dwarf2read.c (abbrev_table_read_table): Likewise.
14163 * gdbarch.sh: Likewise.
14164 * gdbarch.c: Rebuild.
14165 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14166 * interps.c (interp_new): Likewise.
14167 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14168 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14169 * mi/mi-console.c (mi_console_file_new): Likewise.
14170 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14171 * mi/mi-out.c (mi_out_new): Likewise.
14172 * mi/mi-parse.c (mi_parse): Likewise.
14173 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14174 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14175 * observer.c (xalloc_observer_list_node): Likewise.
14176 * regcache.c (regcache_xmalloc_1): Likewise.
14177 * reggroups.c (reggroup_new): Likewise.
14178 (_initialize_reggroup): Likewise.
14179 * registry.c (register_data_with_cleanup): Likewise.
14180 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14181 * ser-base.c (serial_ttystate): Likewise.
14182 * ser-mingw.c (make_pipe_state): Likewise.
14183 * ser-pipe.c (pipe_open): Likewise.
14184 * serial.c (serial_open): Likewise.
14185 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14186 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14187 (tui_alloc_win_info): Likewise.
14188 (tui_add_content_elements): Likewise.
14189 * tui/tui-file.c (tui_file_new): Likewise.
14190 * tui/tui-out.c (tui_out_new): Likewise.
14191 * ui-file.c (mem_file_new): Likewise.
14192 * ui-out.c (push_level): Likewise.
14193 (make_cleanup_ui_out_end): Likewise.
14194 (append_header_to_list): Likewise.
14195 (ui_out_new): Likewise.
14196 * user-regs.c (user_reg_add_builtin): Likewise.
14198 2014-01-13 Tom Tromey <tromey@redhat.com>
14200 * defs.h (XZALLOC): Remove.
14201 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14202 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14203 (get_ada_tasks_inferior_data): Likewise.
14204 * auto-load.c (get_auto_load_pspace_data): Likewise.
14205 * auxv.c (get_auxv_inferior_data): Likewise.
14206 * bfd-target.c (target_bfd_reopen): Likewise.
14207 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14208 (deprecated_insert_raw_breakpoint): Likewise.
14209 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14210 * corelow.c (core_open): Likewise.
14211 * darwin-nat.c (darwin_check_new_threads): Likewise.
14212 (darwin_attach_pid): Likewise.
14213 * dummy-frame.c (dummy_frame_push): Likewise.
14214 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14215 * dwarf2loc.c (allocate_piece_closure): Likewise.
14216 * elfread.c (elf_symfile_segments): Likewise.
14217 * eval.c (ptrmath_type_p): Likewise.
14218 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14219 * gdbtypes.c (alloc_type_arch): Likewise.
14220 (alloc_type_instance): Likewise.
14221 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14222 * inf-child.c (inf_child_can_use_agent): Likewise.
14223 * inflow.c (get_inflow_inferior_data): Likewise.
14224 * infrun.c (save_infcall_suspend_state): Likewise.
14225 * jit.c (jit_reader_load): Likewise.
14226 (get_jit_objfile_data): Likewise.
14227 (get_jit_program_space_data): Likewise.
14228 (jit_object_open_impl): Likewise.
14229 (jit_symtab_open_impl): Likewise.
14230 (jit_block_open_impl): Likewise.
14231 (jit_frame_sniffer): Likewise.
14232 * linux-fork.c (add_fork): Likewise.
14233 * maint.c (make_command_stats_cleanup): Likewise.
14234 * objfiles.c (get_objfile_pspace_data): Likewise.
14235 * opencl-lang.c (struct lval_closure): Likewise.
14236 * osdata.c (osdata_start_osdata): Likewise.
14237 * progspace.c (new_address_space): Likewise.
14238 (add_program_space): Likewise.
14239 * remote-sim.c (get_sim_inferior_data): Likewise.
14240 * sh-tdep.c (sh_gdbarch_init): Likewise.
14241 * skip.c (Ignore): Likewise.
14242 (skip_delete_command): Likewise.
14243 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14244 (library_list_start_library): Likewise.
14245 (solib_aix_current_sos): Likewise.
14246 * solib-darwin.c (get_darwin_info): Likewise.
14247 (darwin_current_sos): Likewise.
14248 * solib-dsbt.c (get_dsbt_info): Likewise.
14249 * solib-ia64-hpux.c (new_so_list): Likewise.
14250 (ia64_hpux_get_solib_linkage_addr): Likewise.
14251 * solib-spu.c (append_ocl_sos): Likewise.
14252 (spu_current_sos): Likewise.
14253 * solib-svr4.c (get_svr4_info): Likewise.
14254 (svr4_keep_data_in_core): Likewise.
14255 (library_list_start_library): Likewise.
14256 (svr4_default_sos): Likewise.
14257 (svr4_read_so_list): Likewise.
14258 * solib-target.c (library_list_start_library): Likewise.
14259 (solib_target_current_sos): Likewise.
14260 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14261 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14262 * symfile.c (default_symfile_segments): Likewise.
14263 * target-descriptions.c (tdesc_data_init): Likewise.
14264 (tdesc_create_reg): Likewise.
14265 (struct tdesc_type *): Likewise.
14266 (tdesc_create_vector): Likewise.
14267 (tdesc_set_struct_size): Likewise.
14268 (struct tdesc_type *): Likewise.
14269 (tdesc_free_feature): Likewise.
14270 (tdesc_create_feature): Likewise.
14271 * windows-nat.c (windows_add_thread): Likewise.
14272 (windows_make_so): Likewise.
14273 * xml-support.c (gdb_xml_body_text): Likewise.
14274 (gdb_xml_create_parser_and_cleanup): Likewise.
14275 (xml_process_xincludes): Likewise.
14276 * xml-syscall.c (allocate_syscalls_info): Likewise.
14277 (syscall_create_syscall_desc): Likewise.
14279 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14281 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14282 function, with code from i386_stap_parse_special_token.
14283 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14284 (i386_stap_parse_special_token): Move code to the two functions
14285 above; simplify it.
14287 2014-01-09 Pedro Alves <palves@redhat.com>
14288 Hui Zhu <hui@codesourcery.com>
14291 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14292 bp_err_string. Don't mark the location shlib_disabled if the
14293 error thrown wasn't a generic or memory error. Catch errors
14294 thrown while inserting breakpoints in overlayed code. Output
14295 error message of software breakpoints.
14296 * remote.c (remote_insert_breakpoint): If this breakpoint has
14297 target-side commands but this stub doesn't support Z0 packets,
14298 throw NOT_SUPPORTED_ERROR error.
14299 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14300 * target.h (target_insert_breakpoint): Extend comment.
14301 (target_insert_hw_breakpoint): Add comment.
14303 2014-01-08 Pedro Alves <palves@redhat.com>
14305 * remote.c (remote_add_thread): Add threads silently if starting
14307 (remote_notice_new_inferior): If in all-stop, and starting up,
14308 don't call notice_new_inferior.
14309 (get_current_thread): New function, factored out from ...
14310 (add_current_inferior_and_thread): ... this. Adjust.
14311 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14312 found any thread, then select the remote's current thread as GDB's
14313 current thread too.
14315 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14317 * NEWS: Create a new section for the next release branch.
14318 Rename the section of the current branch, now that it has
14321 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14323 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14324 * version.in: Bump version to 7.7.50.DATE-cvs.
14326 2014-01-08 Yao Qi <yao@codesourcery.com>
14328 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14329 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14330 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14332 2014-01-08 Yao Qi <yao@codesourcery.com>
14334 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14335 return value of bfd_get_filename to symbol_file_add_from_bfd.
14337 2014-01-08 Pierre Muller <muller@sourceware.org>
14340 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14341 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14342 to prim_record_mininal_symbol_and_info.
14343 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14344 in call to prim_record_minimal_symbol_and_info.
14345 (read_pe_exported_syms): Set index field of section_data.
14347 2014-01-07 Andrew Pinski <apinski@cavium.com>
14349 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14350 * features/aarch64.c: Regenerate.
14352 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14354 * target.c (return_null): Define.
14355 (update_current_target): Use it instead of return_zero for
14356 functions that return a pointer.
14358 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14360 * source.c (add_path): Fix check for duplicated paths in the previously
14363 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14365 * ada-lang.c: Remove duplicated include statements.
14366 * alphabsd-nat.c: Ditto.
14367 * amd64-darwin-tdep.c: Ditto.
14368 * amd64fbsd-nat.c: Ditto.
14369 * auto-load.c: Ditto.
14371 * breakpoint.c: Ditto.
14372 * dbxread.c: Ditto.
14373 * fork-child.c: Ditto.
14374 * gdb_usleep.c: Ditto.
14375 * i386-darwin-tdep.c: Ditto.
14376 * i386fbsd-nat.c: Ditto.
14378 * inferior.c: Ditto.
14379 * jv-lang.c: Ditto.
14380 * linux-nat.c: Ditto.
14381 * linux-tdep.c: Ditto.
14382 * m68kbsd-nat.c: Ditto.
14383 * m68klinux-nat.c: Ditto.
14384 * microblaze-tdep.c: Ditto.
14385 * mips-linux-tdep.c: Ditto.
14386 * mn10300-tdep.c: Ditto.
14387 * nto-tdep.c: Ditto.
14388 * opencl-lang.c: Ditto.
14390 * printcmd.c: Ditto.
14391 * regcache.c: Ditto.
14392 * remote-m32r-sdi.c: Ditto.
14394 * symfile.c: Ditto.
14396 * tilegx-linux-nat.c: Ditto.
14397 * tilegx-tdep.c: Ditto.
14398 * tracepoint.c: Ditto.
14400 * vaxbsd-nat.c: Ditto.
14401 * windows-nat.c: Ditto.
14402 * xtensa-tdep.c: Ditto.
14404 2014-01-07 Yao Qi <yao@codesourcery.com>
14406 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14408 2014-01-07 Yao Qi <yao@codesourcery.com>
14409 Joel Brobecker <brobecker@adacore.com>
14411 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14412 (pdc_write_regs): Likewise.
14413 (fetch_regs_kernel_thread): Likewise.
14414 (store_regs_kernel_thread): Likewise.
14416 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14418 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14419 tagged type objects to their actual type.
14421 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14423 * ada-valprint.c (print_field_values): Add "language" parameter.
14424 Update calls to print_field_values and print_variant_part.
14425 Pass new parameter "language" in call to val_print instead
14426 of "current_language". Replace call to ada_val_print by call
14428 (print_variant_part): Add "language" parameter.
14429 (ada_val_print_struct_union): Update call to print_field_values.
14431 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14433 * ada-valprint.c (ui_memcpy): Delete.
14434 (ada_print_floating): Update documentation. Add empty line
14435 between between function documentation and implementation.
14436 Delete variable "buffer". Use ui_file_xstrdup in place of
14437 ui_file_put. Minor adjustments following this change.
14439 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14441 * ada-valprint.c (ada_val_print_string): New function,
14442 extracted from ada_val_print_array.
14443 (ada_val_print_array): Replace extracted code by call
14444 to ada_val_print_string followed by a return. Move
14445 "else" branch to the function's top block.
14447 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14449 * ada-valprint.c (ada_val_print_array): Move implementation
14450 down. Rename parameter "offset" and "val" into "offset_aligned"
14451 and "original_value" respectively. Add parameter "offset".
14453 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14455 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14456 re-organizing the code. Change the "???" message printed
14457 when target type is a TYPE_CODE_UNDEF into
14458 "<ref to undefined type>".
14460 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14462 * ada-valprint.c (print_record): Delete, implementation inlined...
14463 (ada_val_print_struct_union): ... here. Remove call to
14464 ada_check_typedef in inlined implementation.
14466 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14468 * ada-valprint.c (ada_val_print_gnat_array): New function,
14469 extracted from ada_val_print_1;
14470 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14471 (ada_val_print_flt, ada_val_print_struct_union)
14472 (ada_val_print_ref): Likewise.
14473 (ada_val_print_1): Delete variables i and elttype.
14474 Replace extracted-out code by call to corresponding
14477 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14479 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14481 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14483 * ada-valprint.c (ada_val_print_1): Replace calls to
14484 ada_val_print_1 by calls to val_print.
14486 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14488 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14489 Update calls to self accordingly. Replace calls to c_val_print
14490 by calls to val_print.
14492 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14494 * ada-valprint.c (print_record): Delete declaration.
14495 (adjust_type_signedness, ada_val_print_1): Likewise.
14496 (ada_val_print): Move function implementation down.
14497 (print_variant_part, print_field_values, print_record):
14498 Move function implementation up.
14500 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14502 * python/py-type.c (typy_get_name): New function.
14503 (type_object_getset): Add entry for attribute "name".
14504 * NEWS: Add entry mentioning this new attribute.
14506 2014-01-07 Yao Qi <yao@codesourcery.com>
14508 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14511 2014-01-07 Yao Qi <yao@codesourcery.com>
14513 * gnu-nat.c (info_port_rights): Add qualifier const to
14516 2014-01-07 Yao Qi <yao@codesourcery.com>
14518 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14520 2014-01-07 Yao Qi <yao@codesourcery.com>
14522 * gnu-nat.c (make_inf) Update declaration.
14523 (make_inf): Make it static.
14524 (inf_set_traced): Likewise.
14525 (inf_port_to_thread, inf_task_died_status): Likewise.
14527 2014-01-07 Yao Qi <yao@codesourcery.com>
14529 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14531 2014-01-07 Yao Qi <yao@codesourcery.com>
14533 * gnu-nat.c (_initialize_gnu_nat): Declare.
14535 2014-01-07 Yao Qi <yao@codesourcery.com>
14537 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14539 (struct gdbarch_info) <byte_order>: Change type to
14541 <byte_order_for_code>: Likewise.
14542 * gdbarch.c, gdbarch.h: Regenerated.
14544 2014-01-06 Sasha Smundak <asmundak@google.com>
14546 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14548 2014-01-06 Tom Tromey <tromey@redhat.com>
14550 * doublest.c (convert_doublest_to_floatformat): Use const, not
14552 * somread.c (som_symtab_read): Likewise.
14554 2014-01-07 Hui Zhu <hui@codesourcery.com>
14556 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14557 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14558 (gdb_bfd_fopen): Ditto.
14559 (gdb_bfd_openr): Ditto.
14560 (gdb_bfd_openw): Ditto.
14561 (gdb_bfd_openr_iovec): Ditto.
14562 (gdb_bfd_fdopenr): Ditto.
14563 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14564 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14566 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14568 * symfile-mem.c (symbol_file_add_from_memory): Removed
14569 gdb_bfd_stash_filename.
14571 2014-01-03 Doug Evans <dje@google.com>
14573 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14576 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14578 Update year range in copyright notice of all files.
14580 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14582 * top.c (print_gdb_version): Set copyright year to 2014.
14584 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14586 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14588 For older changes see ChangeLog-2013.
14594 version-control: never