1 2014-10-28 Pedro Alves <palves@redhat.com>
4 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
6 * infrun.c (resume) <stepping breakpoint instruction>: Set the
7 thread's stepped_breakpoint field. Skip if reverse debugging.
9 (init_thread_stepping_state, handle_signal_stop): Clear the
10 thread's stepped_breakpoint field.
12 2014-10-27 Pedro Alves <palves@redhat.com>
14 * remote.c (remote_thread_alive): New, factored out from ...
15 (remote_thread_alive): ... this.
16 (remote_update_thread_list): Bail out before deleting threads if
17 the target returned an empty list, and, the current thread has a
20 2014-10-27 Pedro Alves <palves@redhat.com>
22 * infrun.c (handle_signal_stop): Also skip handlers when a random
23 signal arrives while handling a "stepi" or a "nexti". Set the
24 thread's 'step_after_step_resume_breakpoint' flag.
26 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
28 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
29 (arm_record_ld_st_imm_offset): Reimplement to cover all
30 load/store cases for ARM opcode 010.
31 (arm_record_ld_st_multiple): Reimplement to cover all
32 load/store cases for ARM opcode 100.
34 2014-10-26 Doug Evans <xdje42@gmail.com>
36 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
38 2014-10-26 Doug Evans <xdje42@gmail.com>
40 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
41 parameter "kind" to "block_index".
42 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
44 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
46 2014-10-26 Doug Evans <xdje42@gmail.com>
48 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
50 2014-10-26 Doug Evans <xdje42@gmail.com>
52 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
55 2014-10-26 Doug Evans <xdje42@gmail.com>
57 * parser-defs.h (block_found): Move decl from here ...
58 * symtab.h (block_found): ... to here.
60 2014-10-26 Doug Evans <xdje42@gmail.com>
62 * symtab.h (struct field_of_this_result): Fix typo in comment.
63 (lookup_symbol_in_language): Move function comment here.
64 (lookup_symbol): Improve function comment.
65 (basic_lookup_symbol_nonlocal): Ditto.
66 (lookup_symbol_static, lookup_symbol_global): Ditto.
67 (lookup_symbol_aux_block): Ditto.
68 (lookup_language_this): Add function comment.
69 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
71 (lookup_block_symbol): Improve function comment.
72 (lookup_struct): Fix capitalization in function comment.
73 (lookup_transparent_type): Add function comment.
74 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
75 Improve function comment.
76 (lookup_objfile_from_block): Add function comment.
77 * symtab.c (lookup_symbol_in_language): Update function comment.
78 (lookup_symbol, lookup_language_this): Ditto.
79 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
80 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
81 (basic_lookup_symbol_nonlocal): Ditto.
82 (lookup_symbol_static, lookup_symbol_global): Ditto.
83 (lookup_transparent_type, lookup_block_symbol): Ditto.
85 2014-10-25 Doug Evans <xdje42@gmail.com>
87 * symtab.c (types_info): Delete forward decl.
88 (functions_info, variables_info, sources_info): Ditto.
89 (_initialize_symtab): Rewrite forward decl to use
90 initialize_file_ftype.
92 2014-10-25 Doug Evans <xdje42@gmail.com>
94 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
96 2014-10-25 Doug Evans <xdje42@gmail.com>
98 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
99 of local var child_die.
101 2014-10-24 Don Breazeal <donb@codesourcery.com>
103 * infrun.c (follow_fork_inferior): Update fork message printing
104 to use target_terminal_ours_for_output instead of
105 target_terminal_ours, to use _() for all format strings, to print
106 "vfork" instead of "fork" for vforks, and to add a detach message.
107 (handle_vfork_child_exec_or_exit): Update message printing to use
108 target_terminal_ours_for_output instead of target_terminal_ours, to
109 use _() for all format strings, and to fix some formatting.
111 2014-10-24 Pedro Alves <palves@redhat.com>
113 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
114 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
115 * config/vax/vax.mh: Delete.
116 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
117 obsolete configurations section.
118 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
119 * vax-nat.c: Delete file.
121 2014-10-24 Pedro Alves <palves@redhat.com>
123 * NEWS (Removed targets): Add OS/arch column.
125 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
127 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
128 on the arg type of a constructor only if it is of reference type.
130 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
132 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
133 accessors and constants from nios2 opcodes update.
134 (nios2_get_next_pc): Likewise.
136 2014-10-19 Doug Evans <xdje42@gmail.com>
138 * gdbthread.h (set_running): Fix comment.
139 (set_executing, finish_thread_state): Fix comment.
141 2014-10-18 Doug Evans <xdje42@gmail.com>
143 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
145 2014-10-17 Doug Evans <dje@google.com>
147 * NEWS: Mention new event gdb.clear_objfiles.
148 * python/py-event.h (emit_clear_objfiles_event): Clear
149 * python/py-events.h (events_object): New member clear_objfiles.
150 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
152 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
153 emit clear_objfiles event.
154 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
156 (emit_clear_objfiles_event): New function.
157 (clear_objfiles): New event.
158 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
160 * python/python.c (_initialize_python): Call
161 gdbpy_initialize_clear_objfiles_event.
163 2014-10-17 Doug Evans <dje@google.com>
165 * NEWS: Mention new gdb.Objfile.progspace attribute.
166 * python/py-objfile.c (objfpy_get_progspace): New function.
167 (objfile_getset): New entry for "progspace".
169 2014-10-17 Pedro Alves <palves@redhat.com>
172 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
173 returns a copy of the input.
174 (run_command_1, continue_command, step_1, jump_command)
175 (signal_command, until_command, advance_command, finish_command)
176 (attach_command): Adjust and install a cleanup to free the
179 2014-10-17 Pedro Alves <palves@redhat.com>
182 * infcmd.c (continue_1): If continuing all threads in the
183 foreground, make sure the inferior's terminal settings are put in
186 2014-10-17 Pedro Alves <palves@redhat.com>
189 * annotate.c (annotate_breakpoints_invalid): Use
190 target_terminal_our_for_output instead of target_terminal_ours.
191 Give back the terminal to the target.
192 (annotate_frames_invalid): Likewise.
194 2014-10-17 Pedro Alves <palves@redhat.com>
196 * target.c (enum terminal_state): New enum.
197 (terminal_state): New global.
198 (target_terminal_init): New function.
199 (target_terminal_inferior): Skip if inferior already owns the
201 (target_terminal_ours, target_terminal_ours_for_output): New
203 * target.h (target_terminal_init): Convert to function prototype.
204 (target_terminal_ours_for_output): Convert to function prototype
206 (target_terminal_ours): Convert to function prototype and tweak
208 * windows-nat.c (do_initial_windows_stuff): Call
209 target_terminal_init instead of child_terminal_init_with_pgrp.
211 2014-10-17 Pedro Alves <palves@redhat.com>
213 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
214 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
215 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
217 * NEWS: Mention that support for alpha*-*-osf* has been removed.
218 * ada-lang.h [__alpha__ && __osf__]
219 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
220 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
221 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
223 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
225 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
226 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
227 * configure: Regenerate.
228 * configure.ac: Remove references to osf.
229 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
230 section. Remove all other references to osf.
231 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
232 Remove all other references to osf.
233 * dec-thread.c: Delete file.
234 * defs.h (GDB_OSABI_OSF1): Delete.
235 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
237 * osabi.c (gdb_osabi_names): Delete "OSF/1".
238 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
240 (unconditionally_kill_inferior)
241 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
242 * solib-osf.c: Delete file.
244 2014-10-17 Pedro Alves <palves@redhat.com>
246 * remote.c (clear_threads_listing_context): Move higher up, out of
247 the HAVE_LIBEXPAT guard.
249 2014-10-16 Tristan Gingold <gingold@adacore.com>
251 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
252 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
255 2014-10-15 Pedro Alves <palves@redhat.com>
257 * dec-thread.c (dec_thread_count_gdb_threads)
258 (dec_thread_add_gdb_thread): Delete.
259 (dec_thread_update_thread_list): Delete.
260 (dec_thread_find_new_threads): Rename to ...
261 (dec_thread_update_thread_list): ... this. Delete GDB-size
262 threads that are no longer found in dec_thread_list.
263 (resync_thread_list): Delete.
264 (dec_thread_wait): Call dec_thread_update_thread_list instead of
267 2014-10-15 Pedro Alves <palves@redhat.com>
269 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
270 * remote.c (remote_update_thread_list): Skip calling prune_threads
271 if any thread listing method is supported, and instead walk over
272 the set of remote threads listed, deleting those that are not
273 found in GDB's thread list.
275 2014-10-15 Pedro Alves <palves@redhat.com>
277 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
278 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
279 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
280 (bsd_uthread_target): Adjust.
281 * corelow.c (core_open): Adjust.
282 * dec-thread.c (dec_thread_find_new_threads): Update comment.
283 (dec_thread_update_thread_list): New function.
284 (init_dec_thread_ops): Adjust.
285 * gdbthread.h (prune_threads): New declaration.
286 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
287 (thread_db_update_thread_list): ... this. Call prune_threads.
288 (init_thread_db_ops): Adjust.
289 * nto-procfs.c (procfs_find_new_threads): Rename to ...
290 (procfs_update_thread_list): ... this. Call prune_threads.
291 (procfs_attach, procfs_create_inferior, init_procfs_targets):
293 * obsd-nat.c (obsd_find_new_threads): Rename to ...
294 (obsd_update_thread_list): ... this. Call prune_threads.
295 (obsd_add_target): Adjust.
296 * procfs.c (procfs_target): Adjust.
297 (procfs_notice_thread): Update comment.
298 (procfs_find_new_threads): Rename to ...
299 (procfs_update_thread_list): ... this. Call prune_threads.
300 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
302 (ravenscar_wait): Adjust.
303 (ravenscar_find_new_threads): Rename to ...
304 (ravenscar_update_thread_list): ... this. Call prune_threads.
305 (init_ravenscar_thread_ops): Adjust.
306 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
307 (record_btrace_update_thread_list): ... this. Adjust comment.
308 (init_record_btrace_ops): Adjust.
309 * remote.c (remote_threads_info): Rename to ...
310 (remote_update_thread_list): ... this. Call prune_threads.
311 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
313 * sol-thread.c (check_for_thread_db): Adjust.
314 (sol_find_new_threads_callback): Rename to ...
315 (sol_update_thread_list_callback): ... this.
316 (sol_find_new_threads): Rename to ...
317 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
318 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
319 * target-delegates.c: Regenerate.
320 * target.c (target_find_new_threads): Rename to ...
321 (target_update_thread_list): ... this.
322 * target.h (struct target_ops): Rename to_find_new_threads field
323 to to_update_thread_list.
324 (target_find_new_threads): Rename to ...
325 (target_update_thread_list): ... this.
326 * thread.c (prune_threads): Make extern.
327 (update_thread_list): Adjust.
329 2014-10-15 Pedro Alves <palves@redhat.com>
331 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
332 Add describing comment. Return -1 if the qL packet is not
334 (struct thread_item, thread_item_t): Move higher up in
335 the file. Add comments.
336 (struct threads_parsing_context): Move higher up in
337 the file, add comments, and remote to ...
338 (struct threads_listing_context): ... this.
339 (remote_newthread_step): Don't add the thread to GDB's thread
340 database here. Instead push it to the thread_listing_context
342 (remote_find_new_threads): Rename to ...
343 (remote_get_threads_with_ql): ... this. Add target_ops and
344 targets_listing_context parameters. Pass down context.
345 (start_thread): Adjust.
346 (clear_threads_parsing_context): Rename to ...
347 (clear_threads_listing_context): ... this.
348 (remote_get_threads_with_qxfer): New, with parts salvaged from old
350 (remote_get_threads_with_qthreadinfo): Ditto.
351 (remote_threads_info): Reimplement.
353 2014-10-15 Pedro Alves <palves@redhat.com>
355 * infrun.c (resume): Don't force displaced-stepping for all
356 single-steps on software single-stepping archs.
358 2014-10-15 Pedro Alves <palves@redhat.com>
360 * breakpoint.c (single_step_breakpoints): Delete global.
361 (insert_single_step_breakpoint): Adjust to store the breakpoint
362 pointer in the current thread.
363 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
364 (cancel_single_step_breakpoints): Delete functions.
365 (breakpoint_has_location_inserted_here): Make extern.
366 (single_step_breakpoint_inserted_here_p): Adjust to walk the
368 * breakpoint.h (breakpoint_has_location_inserted_here): New
370 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
371 (cancel_single_step_breakpoints): Remove declarations.
372 * gdbthread.h (struct thread_control_state)
373 <single_step_breakpoints>: New field.
374 (delete_single_step_breakpoints)
375 (thread_has_single_step_breakpoints_set)
376 (thread_has_single_step_breakpoint_here): New declarations.
377 * infrun.c (follow_exec): Also clear the single-step breakpoints.
378 (singlestep_breakpoints_inserted_p, singlestep_ptid)
379 (singlestep_pc): Delete globals.
380 (infrun_thread_ptid_changed): Remove references to removed
382 (resume_cleanups): Delete the current thread's single-step
384 (maybe_software_singlestep): Remove references to removed globals.
385 (resume): Adjust to use thread_has_single_step_breakpoints_set and
386 delete_single_step_breakpoints.
387 (init_wait_for_inferior): Remove references to removed globals.
388 (delete_thread_infrun_breakpoints): Delete the thread's
389 single-step breakpoints too.
390 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
391 single-step breakpoints here.
392 (delete_stopped_threads_single_step_breakpoints): New function.
393 (adjust_pc_after_break): Adjust to use
394 thread_has_single_step_breakpoints_set.
395 (handle_inferior_event): Remove references to removed globals.
396 Use delete_stopped_threads_single_step_breakpoints.
397 (handle_signal_stop): Adjust to per-thread single-step
398 breakpoints. Swap test order to do cheaper tests first.
399 (switch_back_to_stepped_thread): Extend debug output. Remove
400 references to removed globals.
401 * record-full.c (record_full_wait_1): Adjust to per-thread
402 single-step breakpoints.
403 * thread.c (delete_single_step_breakpoints)
404 (thread_has_single_step_breakpoints_set)
405 (thread_has_single_step_breakpoint_here): New functions.
406 (clear_thread_inferior_resources): Also delete the thread's
407 single-step breakpoints.
409 2014-10-15 Pedro Alves <palves@redhat.com>
411 * thread.c (delete_thread_breakpoint): New function.
412 (delete_step_resume_breakpoint)
413 (delete_exception_resume_breakpoint): Use it.
414 (delete_at_next_stop): New function.
415 (clear_thread_inferior_resources): Use delete_at_next_stop.
417 2014-10-15 Pedro Alves <palves@redhat.com>
419 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
420 (breakpoint_inserted_here_p): ... here. Remove special case for
421 software single-step breakpoints.
422 (find_non_raw_software_breakpoint_inserted_here): Inline ...
423 (software_breakpoint_inserted_here_p): ... here. Remove special
424 case for software single-step breakpoints.
425 (bp_target_info_copy_insertion_state)
426 (deprecated_insert_raw_breakpoint)
427 (deprecated_remove_raw_breakpoint): Delete functions.
428 * breakpoint.h (deprecated_insert_raw_breakpoint)
429 (deprecated_remove_raw_breakpoint): Remove declarations.
431 2014-10-15 Pedro Alves <palves@redhat.com>
434 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
435 Delete array globals.
436 (single_step_breakpoints): New global.
437 (breakpoint_xfer_memory): Remove special handling for single-step
439 (update_breakpoints_after_exec): Delete bp_single_step
441 (detach_breakpoints): Remove special handling for single-step
443 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
444 (bpstat_stop_status): Add comment.
445 (bpstat_what, bptype_string, print_one_breakpoint_location)
446 (adjust_breakpoint_address, init_bp_location): Handle
448 (new_single_step_breakpoint): New function.
449 (set_momentary_breakpoint, bkpt_remove_location): Remove special
450 handling for single-step breakpoints.
451 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
452 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
454 (detach_single_step_breakpoints, find_single_step_breakpoint):
456 (breakpoint_has_location_inserted_here): New function.
457 (single_step_breakpoint_inserted_here_p): Rewrite.
458 * breakpoint.h: Remove FIXME.
459 (enum bptype) <bp_single_step>: New enum value.
460 (insert_single_step_breakpoint): Update comment.
461 * infrun.c (resume_cleanups)
462 (delete_step_thread_step_resume_breakpoint): Remove single-step
464 (fetch_inferior_event): Install a cleanup that removes infrun
466 (switch_back_to_stepped_thread) <expect thread advanced also>:
467 Clear step-over info.
469 2014-10-15 Pedro Alves <palves@redhat.com>
471 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
472 (delete_thread_infrun_breakpoints): New function, with parts
473 salvaged from delete_step_resume_breakpoint_callback.
474 (delete_step_thread_step_resume_breakpoint): Delete.
475 (for_each_just_stopped_thread_callback_func): New typedef.
476 (for_each_just_stopped_thread): New function.
477 (delete_just_stopped_threads_infrun_breakpoints): New function.
478 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
479 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
481 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
483 2014-10-15 Pedro Alves <palves@redhat.com>
485 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
486 trying to step past a non-steppable watchpoint.
487 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
489 * infrun.c (struct step_over_info): Add new field
490 'nonsteppable_watchpoint_p' and adjust comments.
491 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
493 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
494 (stepping_past_nonsteppable_watchpoint): New function.
495 (step_over_info_valid_p): Also return true if stepping past a
496 nonsteppable watchpoint.
497 (proceed): Adjust call to set_step_over_info. Remove reference to
499 (init_wait_for_inferior): Remove reference to init_infwait_state.
500 (waiton_ptid): Delete global.
501 (struct execution_control_state)
502 <stepped_after_stopped_by_watchpoint>: Delete field.
503 (wait_for_inferior, fetch_inferior_event): Always pass
504 minus_one_ptid to target_wait.
505 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
507 (init_infwait_state): Delete function.
508 (handle_inferior_event): Remove infwait_state handling.
509 (handle_signal_stop) <watchpoints handling>: Adjust after
510 stepped_after_stopped_by_watchpoint removal. Don't remove
511 breakpoints here nor set infwait_state. Set the thread's
512 stepping_over_watchpoint flag, and call keep_going instead.
513 (keep_going): Handle stepping_over_watchpoint. Adjust
514 set_step_over_info calls.
515 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
518 2014-10-15 Pedro Alves <palves@redhat.com>
520 * infrun.c (step_over_info_valid_p): New function.
521 (resume): Use step_over_info_valid_p instead of checking the
522 threads's trap_expected flag.
524 2014-10-15 Doug Evans <dje@google.com>
525 Walfred Tedeschi <walfred.tedeschi@intel.com>
528 * python/lib/gdb/__init__.py (packages): Add "printer".
529 * python/lib/gdb/command/bound_registers.py: Moved to ...
530 * python/lib/gdb/printer/bound_registers.py: ... here.
531 Add printer to global set of builtin printers. Rename printer from
532 "bound" to "mpx_bound128".
533 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
534 registered as global "builtin" printer.
535 (add_builtin_pretty_printer): New function.
536 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
537 gdb/printer/__init__.py.
539 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
541 * Makefile.in (SFILES): Remove d-support.c.
542 (COMMON_OBS): Remove d-support.o.
543 * d-lang.h (d_parse_symbol): Remove declaration.
544 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
545 * d-support.c: Remove file.
547 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
549 * gdb/infrun.c (process_event_stop_test): Apply
550 gdbarch_addr_bits_remove to longjmp resume address.
552 2014-10-15 Pedro Alves <palves@redhat.com>
554 * regformats/microblaze.dat: Delete file.
556 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
558 * features/Makefile (microblaze-expedite): Replace pc with rpc.
559 * regformats/microblaze-with-stack-protect.dat: Regenerate.
561 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
563 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
566 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
570 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
573 2014-10-14 Joel Brobecker <brobecker@adacore.com>
575 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
576 of the case where the second operand is a pointer.
577 <BINOP_SUB>: Likewise.
579 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
581 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
582 only if it is not NULL.
583 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
584 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
585 (struct probe_ops) <clear_semaphore>: Likewise.
586 * tracepoint.c (start_tracing): Call set_semaphore only if it is
588 (stop_tracing): Likewise, for clear_semaphore.
590 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
592 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
593 using language_c, instead of current_language.
595 2014-10-13 Doug Evans <dje@google.com>
597 * python/py-objfile.c (objfpy_initialize): New function.
598 (objfpy_new, objfile_to_objfile_object): Call it.
599 * python/py-progspace.c (pspy_initialize): New function.
600 (pspy_new, pspace_to_pspace_object): Call it.
602 2014-10-13 Miroslav Franc <mfranc@redhat.com>
603 Jan Kratochvil <jan.kratochvil@redhat.com>
605 Fix "save breakpoints" for "catch" command.
606 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
609 2014-10-12 Miroslav Franc <mfranc@redhat.com>
611 Fix "save breakpoints" for "disable $bpnum" command.
612 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
614 2014-10-10 Pedro Alves <palves@redhat.com>
616 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
617 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
618 (HFILES_NO_SRCDIR): Remove solib-irix.h.
619 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
621 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
622 * configure.ac: Remove references to IRIX.
623 * configure.host: Add *-*-irix* to the obsolete hosts section.
624 Remove all other references to irix.
625 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
628 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
630 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
631 isn't valid, release the tdesc arch data and return NULL.
633 2014-10-10 Pedro Alves <palves@redhat.com>
635 * linux-tdep.c: Include observer.h.
636 (linux_inferior_data): New global.
637 (struct linux_info): New structure.
638 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
639 (get_linux_inferior_data): New functions.
640 (linux_vsyscall_range): Rename to ...
641 (linux_vsyscall_range_raw): ... this.
642 (linux_vsyscall_range): New function; handles caching.
643 (_initialize_linux_tdep): Register linux_inferior_data. Install
644 inferior_exit and inferior_appeared observers.
646 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
647 Pedro Alves <palves@redhat.com>
650 * solib-svr4.c (svr4_read_so_list): Rename to ...
651 (svr4_current_sos_1): ... this and change the function comment.
652 (svr4_current_sos): New function.
654 2014-10-10 Pedro Alves <palves@redhat.com>
656 * arch-utils.c (default_vsyscall_range): New function.
657 * arch-utils.h (default_vsyscall_range): New declaration.
658 * gdbarch.sh (vsyscall_range): New hook.
659 * gdbarch.h, gdbarch.c: Regenerate.
660 * linux-tdep.c (linux_vsyscall_range): New function.
661 (linux_init_abi): Install linux_vsyscall_range as
662 vsyscall_range gdbarch hook.
663 * memrange.c (address_in_mem_range): New function.
664 * memrange.h (address_in_mem_range): New declaration.
665 * symfile-mem.c (find_vdso_size): Delete function.
666 (add_vsyscall_page): Use gdbarch_vsyscall_range.
668 2014-10-10 Pedro Alves <palves@redhat.com>
670 * infrun.c (normal_stop): Fix typo in comment.
672 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
675 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
676 typo when using logical AND to determine instruction type.
678 2014-10-09 Yao Qi <yao@codesourcery.com>
680 * infrun.c (handle_signal_stop): Remove local variable
683 2014-10-08 Stan Shebs <stan@codesourcery.com>
685 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
687 2014-10-08 Gary Benson <gbenson@redhat.com>
689 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
691 2014-10-08 Gary Benson <gbenson@redhat.com>
693 * common/common-defs.h: Include common-exceptions.h.
694 * exceptions.h: Do not include common-exceptions.h.
696 2014-10-08 Gary Benson <gbenson@redhat.com>
698 * common/common-defs.h: Include cleanups.h.
699 * common/common-exceptions.c: Do not include cleanups.h.
702 2014-10-08 Gary Benson <gbenson@redhat.com>
704 * ada-lang.c: Do not include exceptions.h.
705 * ada-valprint.c: Likewise.
706 * amd64-tdep.c: Likewise.
707 * auto-load.c: Likewise.
709 * break-catch-throw.c: Likewise.
710 * breakpoint.c: Likewise.
711 * btrace.c: Likewise.
712 * c-lang.c: Likewise.
713 * cli/cli-cmds.c: Likewise.
714 * cli/cli-interp.c: Likewise.
715 * cli/cli-script.c: Likewise.
716 * completer.c: Likewise.
717 * corefile.c: Likewise.
718 * corelow.c: Likewise.
719 * cp-abi.c: Likewise.
720 * cp-support.c: Likewise.
721 * cp-valprint.c: Likewise.
722 * darwin-nat.c: Likewise.
723 * dwarf2-frame-tailcall.c: Likewise.
724 * dwarf2-frame.c: Likewise.
725 * dwarf2loc.c: Likewise.
726 * dwarf2read.c: Likewise.
728 * event-loop.c: Likewise.
729 * event-top.c: Likewise.
730 * f-valprint.c: Likewise.
731 * frame-unwind.c: Likewise.
733 * gdbtypes.c: Likewise.
734 * gnu-v2-abi.c: Likewise.
735 * gnu-v3-abi.c: Likewise.
736 * guile/scm-auto-load.c: Likewise.
737 * guile/scm-breakpoint.c: Likewise.
738 * guile/scm-cmd.c: Likewise.
739 * guile/scm-frame.c: Likewise.
740 * guile/scm-lazy-string.c: Likewise.
741 * guile/scm-param.c: Likewise.
742 * guile/scm-symbol.c: Likewise.
743 * guile/scm-type.c: Likewise.
744 * hppa-hpux-tdep.c: Likewise.
745 * i386-tdep.c: Likewise.
746 * inf-loop.c: Likewise.
747 * infcall.c: Likewise.
748 * infcmd.c: Likewise.
749 * infrun.c: Likewise.
750 * interps.c: Likewise.
751 * interps.h: Likewise.
753 * linespec.c: Likewise.
754 * linux-nat.c: Likewise.
755 * linux-thread-db.c: Likewise.
756 * m32r-rom.c: Likewise.
758 * memory-map.c: Likewise.
759 * mi/mi-cmd-break.c: Likewise.
760 * mi/mi-cmd-stack.c: Likewise.
761 * mi/mi-interp.c: Likewise.
762 * mi/mi-main.c: Likewise.
763 * monitor.c: Likewise.
764 * nto-procfs.c: Likewise.
765 * objc-lang.c: Likewise.
766 * p-valprint.c: Likewise.
768 * ppc-linux-tdep.c: Likewise.
769 * printcmd.c: Likewise.
771 * python/py-auto-load.c: Likewise.
772 * python/py-breakpoint.c: Likewise.
773 * python/py-cmd.c: Likewise.
774 * python/py-finishbreakpoint.c: Likewise.
775 * python/py-frame.c: Likewise.
776 * python/py-framefilter.c: Likewise.
777 * python/py-function.c: Likewise.
778 * python/py-gdb-readline.c: Likewise.
779 * python/py-inferior.c: Likewise.
780 * python/py-infthread.c: Likewise.
781 * python/py-lazy-string.c: Likewise.
782 * python/py-linetable.c: Likewise.
783 * python/py-param.c: Likewise.
784 * python/py-prettyprint.c: Likewise.
785 * python/py-symbol.c: Likewise.
786 * python/py-type.c: Likewise.
787 * python/py-value.c: Likewise.
788 * python/python-internal.h: Likewise.
789 * python/python.c: Likewise.
790 * record-btrace.c: Likewise.
791 * record-full.c: Likewise.
792 * regcache.c: Likewise.
793 * remote-fileio.c: Likewise.
794 * remote-mips.c: Likewise.
795 * remote.c: Likewise.
796 * rs6000-aix-tdep.c: Likewise.
797 * rs6000-nat.c: Likewise.
799 * solib-darwin.c: Likewise.
800 * solib-dsbt.c: Likewise.
801 * solib-frv.c: Likewise.
802 * solib-ia64-hpux.c: Likewise.
803 * solib-spu.c: Likewise.
804 * solib-svr4.c: Likewise.
806 * spu-tdep.c: Likewise.
808 * stap-probe.c: Likewise.
809 * symfile-mem.c: Likewise.
810 * symmisc.c: Likewise.
811 * target.c: Likewise.
812 * thread.c: Likewise.
814 * tracepoint.c: Likewise.
815 * tui/tui-interp.c: Likewise.
816 * typeprint.c: Likewise.
818 * valarith.c: Likewise.
819 * valops.c: Likewise.
820 * valprint.c: Likewise.
822 * varobj.c: Likewise.
823 * windows-nat.c: Likewise.
824 * xml-support.c: Likewise.
826 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
828 * mips-tdep.c (add_offset_16): Rewrite to implement what the
830 (extended_mips16_next_pc): Update accordingly.
832 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
834 * mips-tdep.c (mips16_instruction_is_compact_branch): New
836 (micromips_instruction_is_compact_branch): Likewise.
837 (mips16_scan_prologue): Terminate scanning upon seeing a branch
838 or a compact jump, reaching a jump delay slot, or seeing a
839 second non-prologue instruction.
840 (micromips_scan_prologue): Also terminate scanning upon seeing a
841 compact branch or jump, or reaching a branch or jump delay slot.
842 (mips32_scan_prologue): Terminate scanning upon reaching a branch
843 or jump delay slot, or seeing a second non-prologue instruction.
844 (mips32_instruction_has_delay_slot): Retain instruction
845 examination code only, update arguments accordingly and move
846 instruction fetch pieces to...
847 (mips32_insn_at_pc_has_delay_slot): ... this new function.
848 (micromips_instruction_has_delay_slot): Likewise and to...
849 (micromips_insn_at_pc_has_delay_slot): ... this new function.
850 (mips16_instruction_has_delay_slot): Likewise and to...
851 (mips16_insn_at_pc_has_delay_slot): ... this new function.
852 (mips_single_step_through_delay): Update accordingly.
853 (mips_adjust_breakpoint_address): Likewise.
855 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
857 * mips-tdep.c (micromips_instruction_has_delay_slot): When
858 !mustbe32 also return 1 for 32-bit instructions.
859 (mips16_instruction_has_delay_slot): Likewise. Add an
862 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
864 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
867 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
869 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
871 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
872 for the breakpoint's address. Don't preinitialize `placed_size'.
873 (insert_bp_location): Set `reqstd_address' rather than
875 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
876 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
878 (bkpt_remove_location): Likewise.
879 (deprecated_insert_raw_breakpoint): Likewise.
880 (deprecated_remove_raw_breakpoint): Likewise.
881 (find_single_step_breakpoint): Likewise.
882 * mem-break.c (default_memory_insert_breakpoint): Use
883 `reqstd_address' for the breakpoint's address. Don't set
884 `placed_address' or `placed_size' if breakpoint contents couldn't
885 have been determined.
886 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
887 the breakpoint's address.
888 (remote_insert_hw_breakpoint): Likewise. Don't set
889 `placed_address' or `placed_size' if breakpoint couldn't have been
891 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
892 `reqstd_address' for the breakpoint's address.
893 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
894 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
895 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
896 * microblaze-linux-tdep.c
897 (microblaze_linux_memory_remove_breakpoint): Likewise.
898 * monitor.c (monitor_insert_breakpoint): Likewise.
899 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
900 (procfs_insert_hw_breakpoint): Likewise.
901 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
902 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
903 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
904 * remote-mips.c (mips_insert_breakpoint): Likewise.
905 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
907 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
909 * valops.c (value_assign): Check for bit field assignments
910 before calling architecture-specific register value
911 conversion functions.
913 2014-10-03 Pierre Muller <muller@sourceware.org>
915 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
917 2014-10-02 Pedro Alves <palves@redhat.com>
919 * breakpoint.c (breakpoints_should_be_inserted_now): Use
920 threads_are_executing.
921 * breakpoint.h (breakpoints_should_be_inserted_now): Add
923 * gdbthread.h (threads_are_executing): Declare.
924 (handle_signal_stop) <random signals>: Don't print about the
925 signal here if stopping.
926 (end_stepping_range): Don't notify observers here.
927 (normal_stop): Update the thread list. If stopped by a random
928 signal or a stepping range ended, notify observers.
929 * thread.c (threads_executing): New global.
930 (init_thread_list): Clear 'threads_executing'.
931 (set_executing): Set or clear 'threads_executing'.
932 (threads_are_executing): New function.
933 (update_threads_executing): New function.
934 (update_thread_list): Use it.
936 2014-10-02 Pedro Alves <palves@redhat.com>
939 * breakpoint.c (update_breakpoints_after_exec): Don't create
940 overlay, longjmp, std terminate nor exception breakpoints here.
942 2014-10-02 Pedro Alves <palves@redhat.com>
944 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
946 * inferior.c (find_inferior_for_program_space): Give preference to
947 the current inferior.
948 * inferior.h (find_inferior_for_program_space): Update comment.
949 * progspace.c (switch_to_program_space_and_thread): Prefer the
950 current inferior if it's bound to the program space requested. If
951 the inferior found doesn't have a PID yet, don't bother looking up
953 * progspace.h (switch_to_program_space_and_thread): Adjust
955 * thread.c (any_thread_of_process, any_live_thread_of_process):
956 Give preference to the current thread.
958 2014-10-01 Pedro Alves <palves@redhat.com>
960 * breakpoint.c (insert_bp_location): Error out if inserting a
961 software breakpoint at a read-only address.
962 * target.c (memory_xfer_check_region): New function, factored out
964 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
966 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
967 against the memory region attributes.
969 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
971 * NEWS: Announce new exit-code field in -list-thread-groups
973 * inferior.c (exit_inferior_1): Don't clear exit code.
974 (inferior_appeared): Clear exit code.
975 * mi/mi-main.c (print_one_inferior): Add printing of the exit
978 2014-10-01 Pedro Alves <palves@redhat.com>
980 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
981 GENERATED" along with emacs/vi read-only markers.
982 * regformats/aarch64.dat: Regenerate.
983 * regformats/arm-with-iwmmxt.dat: Regenerate.
984 * regformats/arm-with-neon.dat: Regenerate.
985 * regformats/arm-with-vfpv2.dat: Regenerate.
986 * regformats/arm-with-vfpv3.dat: Regenerate.
987 * regformats/i386/amd64-avx-linux.dat: Regenerate.
988 * regformats/i386/amd64-avx.dat: Regenerate.
989 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
990 * regformats/i386/amd64-avx512.dat: Regenerate.
991 * regformats/i386/amd64-linux.dat: Regenerate.
992 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
993 * regformats/i386/amd64-mpx.dat: Regenerate.
994 * regformats/i386/amd64.dat: Regenerate.
995 * regformats/i386/i386-avx-linux.dat: Regenerate.
996 * regformats/i386/i386-avx.dat: Regenerate.
997 * regformats/i386/i386-avx512-linux.dat: Regenerate.
998 * regformats/i386/i386-avx512.dat: Regenerate.
999 * regformats/i386/i386-linux.dat: Regenerate.
1000 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1001 * regformats/i386/i386-mmx.dat: Regenerate.
1002 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1003 * regformats/i386/i386-mpx.dat: Regenerate.
1004 * regformats/i386/i386.dat: Regenerate.
1005 * regformats/i386/x32-avx-linux.dat: Regenerate.
1006 * regformats/i386/x32-avx.dat: Regenerate.
1007 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1008 * regformats/i386/x32-avx512.dat: Regenerate.
1009 * regformats/i386/x32-linux.dat: Regenerate.
1010 * regformats/i386/x32.dat: Regenerate.
1011 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1012 * regformats/mips-dsp-linux.dat: Regenerate.
1013 * regformats/mips-linux.dat: Regenerate.
1014 * regformats/mips64-dsp-linux.dat: Regenerate.
1015 * regformats/mips64-linux.dat: Regenerate.
1016 * regformats/nios2-linux.dat: Regenerate.
1017 * regformats/rs6000/powerpc-32.dat: Regenerate.
1018 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1019 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1020 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1021 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1022 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1023 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1024 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1025 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1026 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1027 * regformats/s390-linux32.dat: Regenerate.
1028 * regformats/s390-linux32v1.dat: Regenerate.
1029 * regformats/s390-linux32v2.dat: Regenerate.
1030 * regformats/s390-linux64.dat: Regenerate.
1031 * regformats/s390-linux64v1.dat: Regenerate.
1032 * regformats/s390-linux64v2.dat: Regenerate.
1033 * regformats/s390-te-linux64.dat: Regenerate.
1034 * regformats/s390x-linux64.dat: Regenerate.
1035 * regformats/s390x-linux64v1.dat: Regenerate.
1036 * regformats/s390x-linux64v2.dat: Regenerate.
1037 * regformats/s390x-te-linux64.dat: Regenerate.
1038 * regformats/tic6x-c62x-linux.dat: Regenerate.
1039 * regformats/tic6x-c62x.dat: Regenerate.
1040 * regformats/tic6x-c64x-linux.dat: Regenerate.
1041 * regformats/tic6x-c64x.dat: Regenerate.
1042 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1043 * regformats/tic6x-c64xp.dat: Regenerate.
1045 2014-10-01 Pedro Alves <palves@redhat.com>
1047 * features/Makefile: Update comments.
1048 (XMLTOC): List all xml files we build C files from.
1049 (clean-cfiles): New rule.
1051 2014-10-01 Pedro Alves <palves@redhat.com>
1053 * features/i386/amd64-avx512-linux.c: Regenerate.
1054 * features/i386/amd64-avx512.c: Regenerate.
1055 * features/i386/x32-avx512-linux.c: Regenerate.
1056 * features/i386/x32-avx512.c: Regenerate.
1058 2014-10-01 Pedro Alves <palves@redhat.com>
1060 * features/Makefile (WHICH): Remove arm-with-m,
1061 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1063 2014-10-01 Pedro Alves <palves@redhat.com>
1065 * features/Makefile (clean): New rule.
1067 2014-10-01 Pedro Alves <palves@redhat.com>
1069 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1070 (zmm14h): Add missing end quotes.
1072 2014-10-01 Pedro Alves <palves@redhat.com>
1074 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1075 * features/aarch64.c: Regenerate.
1077 2014-09-30 Don Breazeal <donb@codesourcery.com>
1079 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1080 code so as to work with follow_fork_inferior.
1081 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1082 (inf_ttrace_create_inferior): Remove reference to
1083 inf_ttrace_vfork_ppid.
1084 (inf_ttrace_attach): Ditto.
1085 (inf_ttrace_detach): Ditto.
1086 (inf_ttrace_kill): Use current_inferior instead of
1087 inf_ttrace_vfork_ppid.
1088 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1089 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1090 inferior away from the parent.
1091 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1093 (follow_fork_inferior): New function.
1094 (follow_inferior_reset_breakpoints): Make function static.
1095 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1096 * linux-nat.c (linux_child_follow_fork): Move target-independent
1097 code to infrun.c:follow_fork_inferior.
1099 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1101 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1102 * gdbarch.c: Regenerate.
1103 * gdbarch.h: Likewise.
1104 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1105 gdbarch method 'regset_from_core_section'.
1106 (get_core_register_section): Remove handling for the case that
1107 regset == NULL and regset_from_core_section is defined.
1108 (get_core_registers): Drop check for deleted method.
1109 * procfs.c (procfs_do_thread_registers): Adjust comment.
1111 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1113 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1114 (linux_nat_make_corefile_notes): Remove.
1115 (linux_target_install_ops): Do not set target method
1116 'make_corefile_notes'.
1117 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1119 (linux_corefile_thread_callback): Instead of args->collect, call
1120 linux_collect_thread_registers.
1121 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1122 NULL unless there is a regset iterator.
1123 (linux_make_corefile_notes_1): Remove.
1124 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1125 by linux_make_corefile_notes.
1126 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1128 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1130 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1131 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1133 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1135 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1137 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1138 (xtensa_iterate_over_regset_sections): New.
1139 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1141 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1143 * vax-tdep.c (vax_regset_from_core_section): Remove.
1144 (vax_iterate_over_regset_sections): New.
1145 (vax_gdbarch_init): Adjust gdbarch initialization.
1147 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1149 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1150 (tilegx_regset_from_core_section): Remove.
1151 (tilegx_iterate_over_regset_sections): New.
1152 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1154 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1156 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1157 (sparc_iterate_over_regset_sections): New.
1158 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1159 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1161 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1162 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1163 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1164 target method 'make_corefile_notes'.
1166 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1168 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1169 'sizeof_gregset' and 'sizeof_fpregset'.
1170 * sh-tdep.c (sh_regset_from_core_section): Remove.
1171 (sh_iterate_over_regset_sections): New.
1172 (sh_gdbarch_init): Adjust gdbarch initialization.
1173 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1175 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1178 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1180 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1181 (score7_linux_iterate_over_regset_sections): New.
1182 (score_gdbarch_init): Adjust gdbarch initialization.
1184 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1186 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1188 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1189 method 'make_corefile_notes'.
1190 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1191 (ppcfbsd_regset_from_core_section): Remove.
1192 (ppcfbsd_iterate_over_regset_sections): New.
1193 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1195 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1196 (ppcnbsd_iterate_over_regset_sections): New.
1197 (ppcnbsd_init_abi): Adjust.
1198 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1199 (ppcobsd_iterate_over_regset_sections): New.
1200 (ppcobsd_init_abi): Adjust.
1201 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1202 (rs6000_aix_iterate_over_regset_sections): New.
1203 (rs6000_aix_init_osabi): Adjust.
1205 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1207 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1208 (nios2_regset_from_core_section): Remove.
1209 (nios2_iterate_over_regset_sections): New.
1210 (nios2_linux_init_abi): Adjust gdbarch initialization.
1212 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1214 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1215 (am33_iterate_over_regset_sections): New.
1216 (am33_linux_init_osabi): Adjust gdbarch initialization.
1218 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1220 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1221 (mips_linux_iterate_over_regset_sections): New.
1222 (mips_linux_init_abi): Adjust gdbarch initialization.
1223 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1224 (mips64obsd_iterate_over_regset_sections): New.
1225 (mips64obsd_init_abi): Adjust.
1226 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1227 (mipsnbsd_iterate_over_regset_sections): New.
1228 (mipsnbsd_init_abi): Adjust.
1230 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1232 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1233 (m88k_iterate_over_regset_sections): New.
1234 (m88k_gdbarch_init): Adjust gdbarch initialization.
1236 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1238 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1239 (ia64_linux_iterate_over_regset_sections): New.
1240 (ia64_linux_init_abi): Adjust gdbarch initialization.
1242 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1244 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1245 (m68kbsd_iterate_over_regset_sections): New.
1246 (m68kbsd_init_abi): Adjust gdbarch initialization.
1247 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1248 (m68k_linux_iterate_over_regset_sections): New.
1249 (m68k_linux_init_abi): Adjust gdbarch initialization.
1251 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1253 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1254 (m32r_linux_regset_from_core_section): Remove.
1255 (m32r_linux_iterate_over_regset_sections): New.
1256 (m32r_linux_init_abi): Adjust gdbarch initialization.
1258 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1260 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1261 (amd64obsd_iterate_over_regset_sections): New.
1262 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1263 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1265 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1266 regset_from_core_section initialization.
1267 * i386-tdep.c (i386_regset_from_core_section): Remove.
1268 (i386_iterate_over_regset_sections): New.
1269 (i386_gdbarch_init): Adjust gdbarch initialization.
1270 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1271 (i386_iterate_over_regset_sections): New prototype.
1272 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1274 (i386obsd_aout_iterate_over_regset_sections): New.
1275 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1276 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1278 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1279 (amd64fbsd_init_abi): Call fbsd_init_abi.
1280 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1281 (i386fbsd4_init_abi): Call fbsd_init_abi.
1282 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1283 target method 'make_corefile_notes'.
1284 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1286 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1288 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1289 (hppa_hpux_iterate_over_regset_sections): New.
1290 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1291 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1292 (hppa_linux_iterate_over_regset_sections): New.
1293 (hppa_linux_init_abi): Adjust.
1294 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1295 (hppanbsd_iterate_over_regset_sections): New.
1296 (hppanbsd_init_abi): Adjust.
1297 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1298 (hppaobsd_iterate_over_regset_sections): New.
1299 (hppaobsd_init_abi): Adjust.
1301 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1303 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1304 (frv_linux_iterate_over_regset_sections): New.
1305 (frv_linux_init_abi): Adjust gdbarch initialization.
1307 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1309 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1310 (armbsd_iterate_over_regset_sections): New prototype.
1311 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1312 (armbsd_iterate_over_regset_sections): New.
1313 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1316 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1318 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1319 (alpha_linux_iterate_over_regset_sections): New.
1320 (alpha_linux_init_abi): Adjust gdbarch initialization.
1321 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1323 (alphanbsd_iterate_over_regset_sections): New prototype.
1325 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1327 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1329 (aarch64_linux_iterate_over_regset_sections): New.
1330 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1332 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1334 * fbsd-tdep.c: New file.
1335 * fbsd-tdep.h: New file.
1336 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1337 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1338 (ALLDEPFILES): Add fbsd-tdep.c.
1340 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1342 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1344 * gdbarch.h: Regenerate.
1345 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1347 (get_core_register_section): Add parameter 'regset' and use it, if
1348 set. Add parameter 'min_size' and verify the bfd section size
1350 (get_core_registers_cb): Add parameter 'regset' and pass it to
1351 get_core_register section. For the "standard" register sections
1352 ".reg" and ".reg2", set an appropriate default for human_name.
1353 (get_core_registers): Don't abort when the gdbarch has an iterator
1354 but no regset_from_core_section. Add NULL/0 for parameters
1355 'regset'/'min_size' in calls to get_core_register_section.
1356 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1357 'regset' and use it instead of calling the
1358 regset_from_core_section gdbarch method.
1359 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1360 * i386-tdep.c (i386_supply_xstateregset)
1361 (i386_collect_xstateregset, i386_xstateregset): Moved to
1363 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1365 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1366 core file support only if the regset iterator hasn't been set.
1367 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1368 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1369 Moved from i386-tdep.c and renamed to *_linux*.
1370 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1371 each callback invocation. Allow any .reg-xstate size when reading
1373 * amd64-tdep.c (amd64_supply_xstateregset)
1374 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1376 (amd64_regset_from_core_section): Remove.
1377 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1378 install an amd64-specific regset_from_core_section gdbarch method.
1379 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1380 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1381 Moved from amd64-tdep.c and renamed to *_linux*.
1382 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1383 to each callback invocation. Allow any .reg-xstate size when
1384 reading from a core file.
1385 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1386 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1387 each callback invocation.
1388 (arm_linux_init_abi): No longer set the regset_from_core_section
1390 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1391 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1392 each callback invocation.
1393 (ppc_linux_init_abi): No longer set the regset_from_core_section
1395 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1396 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1397 (s390_regset_from_core_section): Remove.
1398 (s390_iterate_over_regset_sections): Add regset parameter to each
1399 callback invocation.
1400 (s390_gdbarch_init): No longer set the regset_from_core_section
1401 gdbarch method. Drop initialization of deleted tdep fields.
1403 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1405 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1406 (amd64_linux_iterate_over_regset_sections): New.
1407 (amd64_linux_init_abi_common): Don't install the regset section
1408 list, but the new iterator in gdbarch.
1409 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1410 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1411 (arm_linux_iterate_over_regset_sections): ...here. New function.
1412 (arm_linux_init_abi): Set iterator instead of section list.
1413 * corelow.c (get_core_registers_cb): New function, logic moved
1415 (get_core_registers): ...loop body here. Use new iterator method
1416 instead of walking through the regset section list.
1417 * gdbarch.sh: Remove 'core_regset_sections'. New method
1418 'iterate_over_regset_sections'. New typedef
1419 'iterate_over_regset_sections_cb'.
1420 * gdbarch.c: Regenerate.
1421 * gdbarch.h: Likewise.
1422 * i386-linux-tdep.c (i386_linux_regset_sections)
1423 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1425 (i386_linux_iterate_over_regset_sections): New.
1426 (i386_linux_init_abi): Don't choose a regset section list, but
1427 install new iterator in gdbarch.
1428 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1429 (linux_collect_regset_section_cb): New function, logic moved
1431 (linux_collect_thread_registers): ...loop body here. Use iterator
1432 method instead of walking through list.
1433 (linux_make_corefile_notes_1): Check for presence of iterator
1434 method instead of regset section list.
1435 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1436 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1437 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1438 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1439 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1440 (ppc_linux_init_abi): Don't choose from above regset section
1441 lists, but install new iterator in gdbarch.
1442 * regset.h (struct core_regset_section): Remove.
1443 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1444 have_linux_v1, have_linux_v2, and have_tdb.
1445 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1446 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1447 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1448 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1449 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1450 (s390_iterate_over_regset_sections): ...here. New function. Use
1452 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1453 regset section lists, but install new iterator.
1455 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1457 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1459 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1461 * progspace.c (print_program_space): Don't prune program spaces
1462 before printing them.
1464 2014-09-25 Pedro Alves <palves@redhat.com>
1466 * infrun.c (user_visible_resume_ptid): Don't check
1467 singlestep_breakpoints_inserted_p.
1469 2014-09-25 Pedro Alves <palves@redhat.com>
1471 * breakpoint.c (should_be_inserted): Add debug output.
1473 2014-09-25 Pedro Alves <palves@redhat.com>
1475 * infrun.c (stepping_past_instruction_at)
1476 (clear_exit_convenience_vars): Point at infrun.h instead of
1478 (handle_signal_stop): Fix typo.
1480 2014-09-24 Yao Qi <yao@codesourcery.com>
1482 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1485 2014-09-22 Gary Benson <gbenson@redhat.com>
1487 * target.c (target_stop): Updated comment.
1489 2014-09-22 Gary Benson <gbenson@redhat.com>
1491 * target/target.h (target_stop_ptid): Renamed as...
1492 (target_stop_and_wait): New function. Updated comment.
1494 (target_continue_ptid): Renamed as...
1495 (target_continue_no_signal): New function. Updated comment.
1498 2014-09-22 Pedro Alves <palves@redhat.com>
1500 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1502 * breakpoint.c (enum ugll_insert_mode): New enum.
1503 (always_inserted_mode): Now a plain boolean.
1504 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1505 (breakpoints_always_inserted_mode): Delete.
1506 (breakpoints_should_be_inserted_now): New function.
1507 (insert_breakpoints): Pass UGLL_INSERT to
1508 update_global_location_list instead of calling
1509 insert_breakpoint_locations manually.
1510 (create_solib_event_breakpoint_1): New, factored out from ...
1511 (create_solib_event_breakpoint): ... this.
1512 (create_and_insert_solib_event_breakpoint): Use
1513 create_solib_event_breakpoint_1 instead of calling
1514 insert_breakpoint_locations manually.
1515 (update_global_location_list): Change parameter type from boolean
1516 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1517 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1518 (update_global_location_list_nothrow): Change parameter type from
1519 boolean to enum ugll_insert_mode.
1520 (_initialize_breakpoint): "breakpoint always-inserted" option is
1521 now a boolean command. Update help text.
1522 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1523 (breakpoints_should_be_inserted_now): New declaration.
1524 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1525 Remove breakpoints_always_inserted_mode check.
1526 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1527 * remote.c (remote_start_remote): Likewise.
1529 2014-09-22 Pedro Alves <palves@redhat.com>
1531 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1532 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1533 Instead, pass UGLL_INSERT to update_global_location_list.
1534 (update_global_location_list): Change parameter type from boolean
1535 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1536 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1537 (create_solib_event_breakpoint_1): New, factored out from ...
1538 (create_solib_event_breakpoint): ... this.
1539 (create_and_insert_solib_event_breakpoint): Use
1540 create_solib_event_breakpoint_1 instead of calling
1541 insert_breakpoint_locations manually.
1542 (update_global_location_list): Handle UGLL_INSERT.
1544 2014-09-22 Pedro Alves <palves@redhat.com>
1546 * breakpoint.c (enum ugll_insert_mode): New enum.
1547 (update_global_location_list)
1548 (update_global_location_list_nothrow): Change parameter type from
1549 boolean to enum ugll_insert_mode. All callers adjusted.
1551 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1553 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1554 SystemTap support in GDB.
1556 2014-09-19 Don Breazeal <donb@codesourcery.com>
1558 * linux-nat.c (linux_handle_extended_wait): Call
1559 linux_ptrace_get_extended_event.
1560 (wait_lwp): Call linux_is_extended_waitstatus.
1561 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1562 and linux_is_extended_waitstatus.
1563 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1564 linux_ptrace_get_extended_event.
1565 (linux_ptrace_get_extended_event): New function.
1566 (linux_is_extended_waitstatus): New function.
1567 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1568 (linux_is_extended_waitstatus): New declarations.
1570 2014-09-19 Yao Qi <yao@codesourcery.com>
1572 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1573 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1574 comments. Callers update.
1575 (dwarf_decode_lines): Likewise.
1576 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1577 comments. Skip the line table if 'lowpc' is greater than
1578 'address'. Don't check
1579 dwarf2_per_objfile->has_section_at_zero.
1581 2014-09-18 Doug Evans <dje@google.com>
1583 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1584 * python/py-symtab.c (stpy_get_producer): New function.
1585 (symtab_object_getset): Add "producer" attribute.
1587 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1590 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1591 (do_captured_read_memory_integer): Remove.
1592 (safe_read_memory_integer): Use target_read_memory directly instead
1593 of catching errors in do_captured_read_memory_integer.
1595 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1597 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1600 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1602 * objc-lang.c (find_implementation_from_class): Remove dead code.
1604 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1607 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1608 "fprintf_unfiltered (gdb_stdlog...)".
1610 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1612 PR breakpoints/12526
1613 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1615 * breakpoint.c (watch_command_1): Use these fields to retain
1616 bitfield information.
1617 (extract_bitfield_from_watchpoint_value): New function.
1618 (watchpoint_check): Use it.
1619 (update_watchpoint): Use it. Optimize the address and length of a
1620 HW watchpoint pointing to a bitfield.
1621 * value.h (unpack_value_bitfield): New prototype.
1622 * value.c (unpack_value_bitfield): Make extern.
1624 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1626 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1628 * gnu-nat.c (inf_threads): New function.
1629 * gnu-nat.h (inf_threads_ftype): New typedef.
1630 (inf_threads): New declaration.
1631 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1632 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1633 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1634 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1635 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1636 (i386_gnu_dr_get_control): New functions.
1637 (reg_addr): New structure.
1638 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1639 i386 debugging register hooks.
1640 * NEWS: Mention this.
1642 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1644 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1645 vector data transfer instructions.
1646 (arm_record_coproc_data_proc): Updated.
1648 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1650 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1651 arm_record_exreg_ld_st_insn.
1652 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1655 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1657 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1658 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1659 processing instructions.
1661 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1663 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1664 for advance SIMD struct ld/st insn.
1665 (thumb2_record_decode_insn_handler): Replace stub handler with
1666 thumb2_record_asimd_struct_ld_st.
1668 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1670 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1671 for asimd, vfp and coprocessor insns.
1672 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1673 and coprocessor insns.
1674 (thumb2_record_coproc_insn): New function.
1675 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1677 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1680 2014-09-13 Doug Evans <xdje42@gmail.com>
1682 * NEWS: Mention new "queue-signal" command.
1683 * infcmd.c (queue_signal_command): New function.
1684 (_initialize_infcmd): Add new queue-signal command.
1686 2014-09-13 Doug Evans <xdje42@gmail.com>
1688 * linux-nat.c (wait_lwp): Add debugging printf.
1689 (linux_nat_wait_1): Ditto.
1691 2014-09-12 Pedro Alves <palves@redhat.com>
1693 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1694 (create_and_insert_solib_event_breakpoint): New functions.
1695 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1696 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1697 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1698 (remove_dbx_link_breakpoint): Delete function.
1699 (insert_dbx_link_bpt_in_file): Use
1700 create_and_insert_solib_event_breakpoint instead of
1701 deprecated_insert_raw_breakpoint.
1702 (procfs_wait): Don't check whether we hit __dbx_link here.
1703 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1705 * solib-irix.c (base_breakpoint): Delete global.
1706 (disable_break): Delete function.
1707 (enable_break): Use create_solib_event_breakpoint
1708 instead of deprecated_insert_raw_breakpoint.
1709 (irix_solib_handle_event): New function.
1710 (irix_solib_create_inferior_hook): Don't run the target or disable
1711 the mapping-complete breakpoint here.
1712 (_initialize_irix_solib): Install irix_solib_handle_event as
1713 so_ops->handle_event hook.
1715 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1716 Ulrich Weigand <uweigand@de.ibm.com>
1719 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1720 instead of read_memory_unsigned_integer.
1722 2014-09-12 Gary Benson <gbenson@redhat.com>
1724 * nat/linux-waitpid.c: Include common-defs.h.
1725 [GDBSERVER]: Add FIXME comment.
1726 [!GDBSERVER]: Don't include defs.h or signal.h.
1727 (linux_debug) [!GDBSERVER]: Remove empty block.
1729 2014-09-12 Gary Benson <gbenson@redhat.com>
1731 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1732 Don't include defs.h or server.h.
1734 2014-09-12 Gary Benson <gbenson@redhat.com>
1736 * nat/linux-btrace.c: Include common-defs.h.
1737 Don't include defs.h, server.h or gdbthread.h.
1738 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1740 2014-09-12 Gary Benson <gbenson@redhat.com>
1742 * common/agent.c: Include common-defs.h.
1743 Don't include defs.h or server.h.
1744 * common/buffer.c: Likewise.
1745 * common/common-debug.c: Likewise.
1746 * common/common-utils.c: Likewise.
1747 * common/errors.c: Likewise.
1748 * common/filestuff.c: Likewise.
1749 * common/format.c: Likewise.
1750 * common/gdb_vecs.c: Likewise.
1751 * common/print-utils.c: Likewise.
1752 * common/ptid.c: Likewise.
1753 * common/rsp-low.c: Likewise.
1754 * common/signals.c: Likewise.
1755 * common/vec.c: Likewise.
1756 * common/xml-utils.c: Likewise.
1757 * nat/linux-osdata.c: Likewise.
1758 * nat/linux-procfs.c: Likewise.
1759 * nat/linux-ptrace.c: Likewise.
1760 * nat/mips-linux-watch.c: Likewise.
1761 * target/waitstatus.c: Likewise.
1763 2014-09-12 Tom Tromey <tromey@redhat.com>
1764 Gary Benson <gbenson@redhat.com>
1766 * common/common-regcache.h: New file.
1767 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1768 * regcache.h: Include common-regcache.h.
1769 (regcache_read_pc): Don't declare.
1770 * regcache.c (get_thread_regcache_for_ptid): New function.
1771 * nat/linux-btrace.c: Don't include regcache.h.
1772 Include common-regcache.h.
1773 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1775 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1777 * regcache.h (struct regset): Declare.
1779 2014-09-11 Pedro Alves <palves@redhat.com>
1782 * main.c: Include "infrun.h".
1783 (catch_command_errors, catch_command_errors_const): Wait for the
1784 foreground command to complete.
1785 * top.c (maybe_wait_sync_command_done): New function, factored out
1787 (maybe_wait_sync_command_done): ... here.
1788 * top.h (maybe_wait_sync_command_done): New declaration.
1790 2014-09-11 Tom Tromey <tromey@redhat.com>
1791 Gary Benson <gbenson@redhat.com>
1793 * common/symbol.h: New file.
1794 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1795 * minsyms.c (find_minimal_symbol_address): New function.
1796 * common/agent.c: Include common/symbol.h.
1797 [!GDBSERVER]: Don't include objfiles.h.
1798 (agent_look_up_symbols): Use find_minimal_symbol_address.
1800 2014-09-11 Gary Benson <gbenson@redhat.com>
1802 * target/target.h (target_stop_ptid, target_continue_ptid):
1804 * target.c (target_stop_ptid, target_continue_ptid): New
1806 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1807 (agent_run_command): Always use target_stop_ptid and
1808 target_continue_ptid.
1810 2014-09-11 Tom Tromey <tromey@redhat.com>
1811 Gary Benson <gbenson@redhat.com>
1813 * target/target.h: New file.
1814 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1815 * target.h: Include target/target.h.
1816 (target_read_memory, target_write_memory): Don't declare.
1817 * target.c (target_read_uint32): New function.
1818 * common/agent.c: Include target/target.h.
1819 [!GDBSERVER]: Don't include target.h.
1820 (helper_thread_id): Type changed to uint32_t.
1821 (agent_get_helper_thread_id): Use target_read_uint32.
1822 (agent_run_command): Always use target_read_memory and
1823 target_write_memory.
1824 (agent_capability): Type changed to uint32_t.
1825 (agent_capability_check): Use target_read_uint32.
1827 2014-09-11 Gary Benson <gbenson@redhat.com>
1829 * common/common-debug.h (show_debug_regs): Declare.
1830 * common/common-debug.c (show_debug_regs): Define.
1831 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1832 all uses with show_debug_regs. Replace all uses that considered
1833 debug_hw_points as a multi-value integer with straight boolean
1835 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1836 with show_debug_regs.
1837 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1838 all uses with show_debug_regs.
1839 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1840 uses with show_debug_regs.
1842 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1844 * findvar.c (address_from_register): Handle targets requiring
1845 a special conversion routine even for plain pointer types.
1847 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1849 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1850 (store_register): Do not call exec_one_dummy_insn.
1852 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1854 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1855 dereference it first. Use value_enclosing_type instead of
1857 (ada_array_length): Likewise.
1859 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1861 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1862 Adjust function implementation and documentation accordingly.
1863 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1864 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1865 Update call to ada_value_ptr_subscript.
1867 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1869 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1870 instead of VAL's type.
1872 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1874 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1876 2014-09-09 Doug Evans <xdje42@gmail.com>
1879 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1880 last parameter to pkg-config, not first.
1881 * configure.ac: Pass --with-guile provided pkg-config path to
1882 GDB_GUILE_PROGRAM_NAMES.
1883 * configure: Regenerate.
1885 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1887 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1890 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1892 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1893 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1894 the list of sections determining GDB_OSABI_IRIX.
1896 2014-09-09 James Hogan <james.hogan@imgtec.com>
1898 * MAINTAINERS (Write After Approval): Add "James Hogan".
1900 2014-09-09 James Hogan <james.hogan@imgtec.com>
1902 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1904 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1906 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1908 2014-09-08 Doug Evans <xdje42@gmail.com>
1911 * guile.c: #include <signal.h>.
1912 (_initialize_guile): Block SIGCHLD while initializing Guile.
1914 Replaces the following, which is reverted.
1916 2014-07-26 Doug Evans <xdje42@gmail.com>
1919 * configure.ac: Add check for header gc/gc.h.
1920 Add check for function setenv.
1921 * configure: Regenerate.
1922 * config.in: Regenerate.
1923 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1925 2014-09-08 Doug Evans <xdje42@gmail.com>
1927 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1928 with named constant. Fix style of pointer comparison.
1929 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1931 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1934 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1935 decide whether we display the command on "show user".
1936 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1937 printing command name.
1938 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1939 * cli/cli-decode.c (cli_user_command_p): Create helper function
1940 to verify whether cmd_list_element is a user-defined command.
1942 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1945 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1946 Fix goto out of TRY_CATCH.
1948 2014-09-06 Doug Evans <xdje42@gmail.com>
1949 Tom Tromey <tromey@redhat.com>
1952 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1953 $_any_caller_matches.
1954 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1955 * python/lib/gdb/function/caller_is.py: New file.
1957 2014-09-06 Doug Evans <xdje42@gmail.com>
1959 * infcmd.c (program_info): Fix typo.
1961 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1964 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1965 'number'. New variable 'has_digit'. Rewrite code to deal with
1966 subexpressions on SDT probes.
1968 2014-09-04 Pedro Alves <palves@redhat.com>
1970 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1971 the input is only one character long.
1973 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1976 * f-valprint.c (f_val_print): Specify the correct print option to
1977 use when printing integer values.
1979 2014-09-04 Gary Benson <gbenson@redhat.com>
1981 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1982 Remove code to cope with LWPs wrapped as PIDs.
1983 Add assertions to ensure no wrapped LWPs are passed.
1985 2014-09-04 Pedro Alves <palves@redhat.com>
1987 * value.c (value_ranges_copy_adjusted): New function, factored out
1989 (value_contents_copy_raw): ... here.
1990 (unpack_value_bits_as_long_1): Rename back to ...
1991 (unpack_bits_as_long): ... this. Remove 'original_value' and
1992 'result' parameters. Change return type to LONGEST.
1993 (unpack_value_bits_as_long): Delete.
1994 (unpack_value_field_as_long_1): Delete.
1995 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1996 (unpack_value_bitfield): New function.
1997 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1998 (value_fetch_lazy): Use unpack_value_bitfield.
1999 * value.h (unpack_value_bits_as_long): Delete declaration.
2001 2014-09-03 Sasha Smundak <asmundak@google.com>
2003 * python/py-frame.c (frapy_read_register): New function.
2005 2014-09-03 James Hogan <james.hogan@imgtec.com>
2007 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2008 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2010 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2013 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2015 (add_cmd): Set "completer_handle_brkchars" to NULL.
2016 * cli/cli-decode.h (struct cmd_list_element)
2017 <completer_handle_brkchars>: New field.
2018 * command.h (completer_ftype_void): New typedef.
2019 (set_cmd_completer_handle_brkchars): New prototype.
2020 * completer.c (set_gdb_completion_word_break_characters): New
2022 (complete_line_internal): Call "completer_handle_brkchars"
2023 callback from command.
2024 * completer.h: Include "command.h".
2025 (set_gdb_completion_word_break_characters): New prototype.
2026 * python/py-cmd.c (cmdpy_completer_helper): New function.
2027 (cmdpy_completer_handle_brkchars): New function.
2028 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2029 (cmdpy_init): Set completer_handle_brkchars to
2030 cmdpy_completer_handle_brkchars.
2032 2014-09-03 Gary Benson <gbenson@redhat.com>
2034 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2035 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2036 Loop conditions changed to equivalent form.
2037 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2038 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2039 ALL_DEBUG_ADDRESS_REGISTERS.
2041 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2043 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2046 2014-09-02 Doug Evans <dje@google.com>
2048 * typeprint.c (find_global_typedef): Fix comment.
2050 2014-09-02 Gary Benson <gbenson@redhat.com>
2052 * i386-nat.h: Renamed as...
2053 * x86-nat.h: New file. All type, function and variable name
2054 prefixes changed from "i386_" to "x86_". All references updated.
2055 * i386-nat.c: Renamed as...
2056 * x86-nat.c: New file. All type, function and variable name
2057 prefixes changed from "i386_" to "x86_". All references updated.
2058 * common/i386-xstate.h: Renamed as...
2059 * common/x86-xstate.h: New file. All type, function and variable
2060 name prefixes changed from "i386_" to "x86_". All references
2062 * nat/i386-cpuid.h: Renamed as...
2063 * nat/x86-cpuid.h: New file. All type, function and variable name
2064 prefixes changed from "i386_" to "x86_". All references updated.
2065 * nat/i386-gcc-cpuid.h: Renamed as...
2066 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2067 name prefixes changed from "i386_" to "x86_". All references
2069 * nat/i386-dregs.h: Renamed as...
2070 * nat/x86-dregs.h: New file. All type, function and variable name
2071 prefixes changed from "i386_" to "x86_". All references updated.
2072 * nat/i386-dregs.c: Renamed as...
2073 * nat/x86-dregs.c: New file. All type, function and variable name
2074 prefixes changed from "i386_" to "x86_". All references updated.
2076 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2078 * varobj.c (_initialize_varobj): Move to the end of file.
2080 2014-08-29 Gary Benson <gbenson@redhat.com>
2082 * common/common-exceptions.h: New file.
2083 * common/common-exceptions.c: Likewise.
2084 * Makefile.in (SFILES): Add common/common-exceptions.c.
2085 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2086 (COMMON_OBS): Add common-exceptions.o.
2087 (common-exceptions.o): New rule.
2088 * exceptions.h (common-exceptions.h): Include.
2089 (gdb_setjmp.h): Do not include.
2090 (return_reason): Moved to common-exceptions.h.
2091 (enum return_reason): Likewise.
2092 (RETURN_MASK): Likewise.
2093 (typedef return_mask): Likewise.
2094 (enum errors): Likewise.
2095 (struct gdb_exception): Likewise.
2096 (exceptions_state_mc_init): Likewise.
2097 (exceptions_state_mc_action_iter): Likewise.
2098 (exceptions_state_mc_action_iter_1): Likewise.
2099 (TRY_CATCH): Likewise.
2100 (throw_exception): Likewise.
2101 (throw_verror): Likewise.
2102 (throw_vquit): Likewise.
2103 (throw_error): Likewise.
2104 (throw_quit): Likewise.
2105 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2106 (enum catcher_action): Likewise.
2107 (struct catcher): Likewise.
2108 (current_catcher): Likewise.
2109 (catcher_list_size): Likewise.
2110 (exceptions_state_mc_init): Likewise.
2111 (catcher_pop): Likewise.
2112 (exceptions_state_mc): Likewise.
2113 (exceptions_state_mc_action_iter): Likewise.
2114 (exceptions_state_mc_action_iter_1): Likewise.
2115 (throw_exception): Likewise.
2116 (exception_messages): Likewise.
2117 (exception_messages_size): Likewise.
2118 (throw_it): Likewise.
2119 (throw_verror): Likewise.
2120 (throw_vquit): Likewise.
2121 (throw_error): Likewise.
2122 (throw_quit): Likewise.
2123 (prepare_to_throw_exception): New function.
2125 2014-08-29 Gary Benson <gbenson@redhat.com>
2127 * common/gdb_setjmp.h: New file.
2128 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2129 * configure.ac: Move sigsetjmp check...
2130 * common/common.m4: ...here.
2131 * configure: Regenerate.
2132 * cp-support.c (SIGJMP_BUF): Delete.
2133 (SIGSETJMP): Likewise.
2134 (SIGLONGJMP): Likewise.
2135 * exceptions.h (gdb_setjmp.h): Include.
2136 (setjmp.h): Do not include.
2137 (EXCEPTIONS_SIGJMP_BUF): Delete.
2138 (EXCEPTIONS_SIGSETJMP): Likewise.
2139 (EXCEPTIONS_SIGLONGJMP): Likewise.
2140 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2142 * exceptions.c: Likewise.
2144 2014-08-29 Gary Benson <gbenson@redhat.com>
2146 * cleanups.h: Moved to...
2147 * common/cleanups.h: New file.
2148 * cleanups.c: Moved to...
2149 * common/cleanups.c: New file. Include common-defs.h and
2150 cleanups.h. Do not include defs.h.
2151 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2152 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2153 (cleanups.o): New rule.
2155 2014-08-29 Gary Benson <gbenson@redhat.com>
2157 * common/errors.h (internal_warning): New declaration.
2158 (internal_vwarning): Likewise.
2159 * common/errors.c (internal_warning): New function.
2160 * utils.h (internal_warning): Don't declare.
2161 (internal_vwarning): Likewise.
2162 * utils.c (internal_warning): Removed.
2164 2014-08-29 Gary Benson <gbenson@redhat.com>
2166 * main.c (captured_main): Use warning during startup.
2167 Prefix startup warning messages with command name.
2169 2014-08-29 Gary Benson <gbenson@redhat.com>
2171 * main.c (captured_main): Handle usage errors with error.
2173 2014-08-29 Gary Benson <gbenson@redhat.com>
2175 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2176 exit pair with a call to error. Wrap the message with _().
2178 2014-08-29 Gary Benson <gbenson@redhat.com>
2180 * main.c (captured_main): Replace a fprintf/exit
2181 pair with a call to error. Wrap the message with _().
2183 2014-08-29 Gary Benson <gbenson@redhat.com>
2185 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2186 pairs with calls to error. Wrap the message with _().
2188 2014-08-29 Gary Benson <gbenson@redhat.com>
2190 * utils.c (vwarning): Protect calls to target_terminal_ours
2193 2014-08-29 Gary Benson <gbenson@redhat.com>
2195 * exceptions.c (print_flush): Protect calls to
2196 target_terminal_ours and wrap_here.
2198 2014-08-29 Gary Benson <gbenson@redhat.com>
2200 * utils.h (filtered_printing_initialized): New declaration.
2201 * utils.c (abort_with_message): New function.
2202 (internal_vproblem): Use abort_with_message for first level
2203 recursive internal problems, and if gdb_stderr is not set up.
2204 Protect calls to target_terminal_ours, begin_line and query.
2206 2014-08-28 Doug Evans <dje@google.com>
2208 * symtab.c (in_prologue): Move definition to better spot.
2209 (skip_prologue_using_sal): Ditto.
2211 2014-08-28 Doug Evans <dje@google.com>
2213 * symtab.c (find_function_start_sal): Move definition to better spot.
2215 2014-08-28 Yao Qi <yao@codesourcery.com>
2217 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2218 found_stack_adjust in forward scan. Remove condition check
2219 on found_stack_adjust which is always true. Indent the code.
2221 2014-08-28 Yao Qi <yao@codesourcery.com>
2223 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2224 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2225 (dwarf_decode_lines): Remove argument
2226 want_line_info. Remove condition check on want_line_info.
2229 2014-08-27 Doug Evans <dje@google.com>
2231 * dwarf2read.c (dwarf_record_line): Fix typo.
2233 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2235 * target.h (struct target_ops::to_terminal_save_ours): Remove
2237 (target_terminal_save_ours): Remove macro.
2238 * target-delegates.c: Regenerate.
2239 * inf-child.c (inf_child_target): Don't set the nonexistent
2240 field to_terminal_save_ours.
2241 * inferior.h (child_terminal_save_ours): Remove declaration.
2242 * terminal.h (gdb_save_tty_state): New declaration.
2243 * inflow.c (child_terminal_save_ours): Rename to ...
2244 (gdb_save_tty_state): ... this.
2245 * tui/tui.c: Include terminal.h.
2246 (tui_enable): Use gdb_save_tty_state instead of
2247 target_terminal_save_ours.
2248 (tui_disable): Likewise.
2250 2014-08-25 Doug Evans <dje@google.com>
2252 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2253 Pass NULL instead of 0 for context pointer.
2255 2014-08-25 Yao Qi <yao@codesourcery.com>
2257 * dwarf2read.c: Fix grammatical error.
2259 2014-08-24 Yao Qi <yao@codesourcery.com>
2261 * dwarf2read.c (scan_partial_symbols): Update comments.
2262 Rename argument 'need_pc' with 'set_addrmap'.
2263 (add_partial_namespace): Rename argument 'need_pc' with
2265 (add_partial_module): Likewise.
2266 (add_partial_subprogram): Likewise. Update comments.
2267 (dwarf2_name): Fix typo.
2269 2014-08-22 Doug Evans <dje@google.com>
2272 * dwarf2read.c (dwarf_record_line_p): New function.
2273 (dwarf_decode_lines_1): Ignore subsequent line number entries
2274 for the same line if any entry had a non-zero discriminator.
2276 2014-08-22 Doug Evans <dje@google.com>
2278 * buildsym.h (record_line_ftype): New typedef.
2279 (record_line): Use it.
2280 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2281 (dwarf_decode_lines_1): Call them.
2283 2014-08-22 Yao Qi <yao@codesourcery.com>
2285 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2286 (ctf_end): Remove code.
2288 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2290 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2291 (linux_make_corefile_notes): call update_thread_list, protected against
2294 2014-08-21 Pedro Alves <palves@redhat.com>
2296 * infcmd.c (attach_command): Remove comment.
2298 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2300 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2301 unsigned LONGEST to ULONGEST.
2303 2014-08-20 Pedro Alves <palves@redhat.com>
2305 * Makefile.in (check-read1): New rule.
2307 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2309 * value.c (value_from_contents_and_address): Strip resolved_type's
2310 typedef layers before checking its TYPE_DATA_LOCATION.
2312 2014-08-20 Pedro Alves <palves@redhat.com>
2314 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2316 2014-08-20 Yao Qi <yao@codesourcery.com>
2318 * amd64-tdep.c (amd64_classify): Add a blank line after the
2319 example. Move "*/" to a new line.
2320 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2321 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2322 * dwarf2read.c (psymtab_include_file_name): Likewise.
2324 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2325 Pedro Alves <palves@redhat.com>
2329 * ada-lang.c (coerce_unspec_val_to_type): Use
2330 value_contents_copy_raw.
2331 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2332 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2333 * cp-valprint.c (cp_print_value_fields): Let the common printing
2334 code handle optimized out values.
2335 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2336 * d-valprint.c (dynamic_array_type): Use
2337 value_bits_any_optimized_out.
2338 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2339 check_any_valid fields.
2340 (check_pieced_value_bits): Delete and inline ...
2341 (check_pieced_synthetic_pointer): ... here.
2342 (check_pieced_value_validity): Delete.
2343 (check_pieced_value_invalid): Delete.
2344 (pieced_value_funcs): Remove check_validity and check_any_valid
2346 (read_pieced_value): Use mark_value_bits_optimized_out.
2347 (write_pieced_value): Switch to use
2348 mark_value_bytes_optimized_out.
2349 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2350 of assuming the whole value is optimized out.
2351 * findvar.c (read_frame_register_value): Remove special handling
2352 of optimized out registers.
2353 (value_from_register): Use mark_value_bytes_optimized_out.
2354 * frame-unwind.c (frame_unwind_got_optimized): Use
2355 mark_value_bytes_optimized_out.
2356 * jv-valprint.c (java_value_print): Adjust.
2357 (java_print_value_fields): Let the common printing code handle
2358 optimized out values.
2359 * mips-tdep.c (mips_print_register): Remove special handling of
2360 optimized out registers.
2361 * opencl-lang.c (lval_func_check_validity): Delete.
2362 (lval_func_check_any_valid): Delete.
2363 (opencl_value_funcs): Remove check_validity and check_any_valid
2365 * p-valprint.c (pascal_object_print_value_fields): Let the common
2366 printing code handle optimized out values.
2367 * stack.c (read_frame_arg): Remove special handling of optimized
2368 out values. Fetch both VAL and ENTRYVAL before comparing
2369 contents. Adjust to value_available_contents_eq rename.
2370 * valprint.c (valprint_check_validity)
2371 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2372 (val_print_array_elements): Adjust.
2373 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2374 (value_bits_any_optimized_out): New function.
2375 (value_entirely_covered_by_range_vector): New function, factored
2376 out from value_entirely_unavailable.
2377 (value_entirely_unavailable): Reimplement.
2378 (value_entirely_optimized_out): New function.
2379 (insert_into_bit_range_vector): New function, factored out from
2380 mark_value_bits_unavailable.
2381 (mark_value_bits_unavailable): Reimplement.
2382 (struct ranges_and_idx): New struct.
2383 (find_first_range_overlap_and_match): New function, factored out
2384 from value_available_contents_bits_eq.
2385 (value_available_contents_bits_eq): Rename to ...
2386 (value_contents_bits_eq): ... this. Check both unavailable
2387 contents and optimized out contents.
2388 (value_available_contents_eq): Rename to ...
2389 (value_contents_eq): ... this.
2390 (allocate_value_lazy): Remove reference to the old optimized_out
2392 (allocate_optimized_out_value): Use
2393 mark_value_bytes_optimized_out.
2394 (require_not_optimized_out): Adjust to check whether the
2395 optimized_out vec is empty.
2396 (ranges_copy_adjusted): New function, factored out from
2397 value_contents_copy_raw.
2398 (value_contents_copy_raw): Also copy the optimized out ranges.
2399 Assert the destination ranges aren't optimized out.
2400 (value_contents_copy): Update comment, remove call to
2401 require_not_optimized_out.
2402 (value_contents_equal): Adjust to check whether the optimized_out
2404 (set_value_optimized_out, value_optimized_out_const): Delete.
2405 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2407 (value_entirely_optimized_out, value_bits_valid): Delete.
2408 (value_copy): Take a VEC copy of the 'optimized_out' field.
2409 (value_primitive_field): Remove special handling of optimized out.
2410 (value_fetch_lazy): Assert that lazy values have no unavailable
2411 regions. Use value_bits_any_optimized_out. Remove some special
2412 handling for optimized out values.
2413 * value.h: Add intro comment about <optimized out> and
2415 (struct lval_funcs): Remove check_validity and check_any_valid
2417 (set_value_optimized_out, value_optimized_out_const): Remove.
2418 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2420 (value_bits_any_optimized_out): New declaration.
2421 (value_bits_valid): Delete declaration.
2422 (value_available_contents_eq): Rename to ...
2423 (value_contents_eq): ... this, and extend comments.
2425 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2427 Fix -fsanitize=address on unreadable inferior strings.
2428 * valprint.c (val_print_string): Fix access before BUFFER.
2430 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2432 * target.c (target_struct_size): Remove.
2433 (target_struct_allocsize): Remove.
2434 (DEFAULT_ALLOCSIZE): Remove.
2435 (target_ops_p): New typedef.
2436 (DEF_VEC_P (target_ops_p)): New vector type.
2437 (target_structs): Change type to VEC (target_ops_p).
2438 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2439 (find_default_run_target): Rewrite for loop following changes to
2442 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2444 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2445 Adjust code accordingly. Adjust function description comment.
2447 2014-08-19 Yao Qi <yao@codesourcery.com>
2449 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2452 2014-08-19 Alan Modra <amodra@gmail.com>
2454 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2455 * config.in: Regenerate.
2456 * configure: Regenerate.
2458 2014-08-19 Tom Tromey <tromey@redhat.com>
2459 Gary Benson <gbenson@redhat.com>
2461 * common/common-debug.h: New file.
2462 * common/common-debug.c: Likewise.
2463 * debug.c: Likewise.
2464 * Makefile.in (SFILES): Add common/common-debug.c.
2465 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2466 (COMMON_OBS): Add common-debug.o and debug.o.
2467 (common-debug.o): New rule.
2468 * common/common-defs.h: Include common-debug.h.
2469 * common/agent.c (debug_agent_printf): New function.
2470 (DEBUG_AGENT): Redefine.
2471 * nat/i386-dregs.c (debug_printf): Undefine.
2473 2014-08-19 Gary Benson <gbenson@redhat.com>
2475 * common/common-defs.h: Include print-utils.h.
2476 * utils.h: Do not include print-utils.h.
2478 2014-08-19 Tom Tromey <tromey@redhat.com>
2479 Gary Benson <gbenson@redhat.com>
2481 * common/common-types.h: New file.
2482 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2483 * common/common-defs.h: Include common-types.h.
2484 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2487 2014-08-19 Tom Tromey <tromey@redhat.com>
2488 Gary Benson <gbenson@redhat.com>
2490 * common/errors.h: New file.
2491 * common/errors.c: Likewise.
2492 * Makefile.in (SFILES): Add common/errors.c.
2493 (HFILES_NO_SRCDIR): Add common/errors.h.
2494 (COMMON_OBS): Add errors.o.
2495 (errors.o): New rule.
2496 * common/common-defs.h: Include errors.h.
2497 * utils.h (perror_with_name, error, verror, warning, vwarning):
2499 * common/common-utils.h: (malloc_failure, internal_error):
2502 2014-08-19 Gary Benson <gbenson@redhat.com>
2504 * utils.c (internal_vproblem): Always print the message.
2506 2014-08-18 Doug Evans <dje@google.com>
2508 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2510 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2512 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2513 Return 0 if TYPE is dynamic.
2514 (print_range): Add handling of dynamic ranges.
2516 2014-08-18 Keven Boell <keven.boell@intel.com>
2517 Joel Brobecker <brobecker@adacore.com>
2519 * gdbtypes.h (struct main_type): Add field "data_location".
2520 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2521 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2522 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2523 a dynamic data location.
2524 (resolve_dynamic_type): Add DW_AT_data_location handling.
2525 (copy_recursive, copy_type): Copy the data_location information
2527 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2528 * value.c (value_from_contents_and_address): Add
2529 DW_AT_data_location handling.
2531 2014-08-18 Keven Boell <keven.boell@intel.com>
2532 Joel Brobecker <brobecker@adacore.com>
2534 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2535 field "get_object_address".
2536 * dwarf2expr.c (execute_stack_op): Add handling for
2537 DW_OP_push_object_address.
2538 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2539 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2540 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2541 (dwarf_expr_get_obj_addr): New function.
2542 (dwarf_expr_ctx_funcs): Add get_object_address field.
2543 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2544 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2545 (dwarf2_evaluate_property): Add parameter "address". Use it.
2546 (needs_get_obj_addr): New function.
2547 (needs_frame_ctx_funcs): Add get_object_address field.
2548 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2549 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2550 (resolve_dynamic_array): Likewise.
2552 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2554 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2555 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2556 fixed value for records and unions for which some GNAT encodings
2559 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2561 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2562 rewrite to avoid "else if" and "else" constructs. Should be
2563 a no-op in practice.
2565 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2567 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2570 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2573 * eval.c: Update all calls to find_overload_match.
2574 * valarith.c: Likewise.
2575 (value_user_defined_cpp_op, value_user_defined_op): New
2576 argument NOSIDE. Update all callers.
2577 * valops.c (find_overload_match): New argument NOSIDE.
2578 * value.h (find_overload_match): Update signature.
2580 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2582 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2583 'items' methods instead of 'iteritems' method on dictionaries.
2585 2014-08-15 Doug Evans <dje@google.com>
2587 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2590 2014-08-15 Doug Evans <dje@google.com>
2592 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2594 2014-08-15 Doug Evans <dje@google.com>
2596 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2598 2014-08-15 Doug Evans <dje@google.com>
2600 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2603 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2605 * dcache.h: Include target.h, to avoid compile time warnings.
2607 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2609 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2610 frame_info" partial declaration.
2611 * gdbarch.h: Regenerate.
2613 2014-08-15 Yao Qi <yao@codesourcery.com>
2615 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2616 Add parameter 'decode_for_pst_p'. Callers update.
2618 2014-08-13 Yao Qi <yao@codesourcery.com>
2621 * configure.ac: Use local variable 'pos'.
2622 * configure: Regenerated.
2624 2014-08-11 Doug Evans <dje@google.com>
2626 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2627 message, it is redundant with "Reading symbols from ..." message.
2629 2014-08-10 Doug Evans <xdje42@gmail.com>
2631 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2633 2014-08-09 Yao Qi <yao@codesourcery.com>
2636 * remote.c (remote_xfer_partial): Remove dead code.
2638 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2640 * ia64-linux-tdep.c: Include "regset.h".
2641 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2642 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2643 (ia64_linux_supply_fpregset): New function.
2644 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2645 (ia64_linux_regset_from_core_section): New function.
2646 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2649 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2651 * m68klinux-tdep.c: Include "regset.h".
2652 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2653 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2654 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2655 (m68k_linux_regset_from_core_section): New function.
2656 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2659 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2661 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2662 function. Move logic to...
2663 (tilegx_linux_regmap): ... this new register map.
2664 (tilegx_linux_regset): Refer to register map, replace supply
2665 method by regcache_supply_regset, and add collect method.
2666 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2667 TILEGX_FIRST_EASY_REGNUM.
2669 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2671 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2672 that calls regcache_supply_regset and handles the EPC register
2673 separately. Move main logic to...
2674 (score7_linux_gregmap): ... this new register map.
2675 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2676 (score7_linux_gregset): Refer to register map. Add collect method.
2677 (score7_linux_regset_from_core_section): Replace
2678 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2679 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2680 (struct regset): Delete unused forward declaraction.
2681 (struct pt_regs): Delete structure definition.
2682 (elf_gregset_t): Delete typedef.
2684 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2686 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2687 (nios2_core_regset): Add collect method.
2689 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2691 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2692 platform-independent and don't write to read-only input buffer.
2693 (m32r_linux_collect_gregset): New function.
2694 (m32r_linux_gregset): Add collect method.
2696 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2698 * hppa-linux-tdep.c (greg_map): Rename to...
2699 (hppa_linux_gregmap): ... this. Also convert to
2700 regcache_map_entry format.
2701 (hppa_linux_supply_regset): Delete function.
2702 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2703 (hppa_linux_fpregmap): ... this new register map.
2704 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2705 register map, replace supply method by regcache_supply_regset, and
2706 add collect method regcache_collect_regset.
2708 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2710 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2711 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2712 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2713 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2714 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2715 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2716 (frv_linux_supply_gregset): Replace main logic by call to
2717 regcache_supply_regset, but keep clearing gr32-gr63.
2718 (frv_linux_supply_fpregset): Delete function.
2719 (frv_linux_gregset): Refer to appropriate register map and add
2720 regcache_collect_regset as the collect method.
2721 (frv_linux_fpregset): Likewise. Also exchange the supply method
2722 by regcache_supply_regset.
2724 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2726 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2727 by call to alpha_supply_int_regs.
2728 (alpha_linux_collect_gregset): New function.
2729 (alpha_linux_supply_fpregset): Replace logic by call to
2730 alpha_supply_fp_regs.
2731 (alpha_linux_collect_fpregset): New function.
2732 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2734 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2736 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2737 by call to regcache_collect_regset.
2738 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2739 instead of aarch64_linux_supply_gregset/_fpregset.
2740 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2741 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2742 header file instead.
2743 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2744 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2745 functions. Move logic to ...
2746 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2748 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2749 refer to new register maps, replace *_regset_from_core by
2750 regcache_supply_regset, and also use regcache_collect_regset.
2751 * aarch64-linux-tdep.h: Include "regset.h".
2752 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2754 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2755 macros, moved from C source file.
2756 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2757 variable declarations.
2759 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2761 * s390-linux-nat.c: Include "regset.h".
2762 (regmap_gregset): Delete macro.
2763 (s390_64_regmap_gregset): New register map for
2764 regcache_supply/_collect_regset.
2765 (s390_64_gregset): New regset.
2766 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2767 (regmap_fpregset): Delete macro.
2768 (s390_native_supply, s390_native_collect): Delete functions.
2769 (supply_gregset, fill_gregset): Replace s390-specific regmap
2770 handling by a call to regcache_supply/_collect_regset.
2771 (supply_fpregset, fill_fpregset): Call regcache_supply/
2772 _collect_regset instead of s390_native_supply/_collect.
2773 (fetch_regset, store_regset): Likewise. Also change the last
2774 parameter to a regset instead of a regmap.
2775 (s390_linux_fetch_inferior_registers)
2776 (390_linux_store_inferior_registers): Adjust last parameter in
2777 calls to fetch_regset and store_regset.
2778 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2779 (s390_gregmap): ... this. Also make static const and convert to
2780 regcache_map_entry format.
2781 (s390x_regmap_gregset): Delete.
2782 (s390_regmap_fpregset): Rename to...
2783 (s390_fpregmap): ... this. Make static const and convert to
2784 regcache_map_entry format.
2785 (s390_regmap_upper, s390_regmap_last_break)
2786 (s390x_regmap_last_break, s390_regmap_system_call)
2787 (s390_regmap_tdb): Likewise.
2788 (s390_supply_regset, s390_collect_regset): Remove functions.
2789 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2791 (s390_gregset, s390_fpregset, s390_upper_regset)
2792 (s390_last_break_regset, s390x_last_break_regset)
2793 (s390_system_call_regset, s390_tdb_regset): Make global and
2794 replace s390_supply/_collect_regset by regcache_supply/
2796 (s390x_gregset): Delete.
2797 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2798 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2799 (s390_regmap_fpregset, s390_regmap_last_break)
2800 (s390x_regmap_last_break, s390_regmap_system_call)
2801 (s390_regmap_tdb): Delete global variable declarations.
2802 (s390_gregset, s390_fpregset, s390_last_break_regset)
2803 (s390x_last_break_regset, s390_system_call_regset)
2804 (s390_tdb_regset): New global variable declarations.
2806 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2808 * regcache.c: Include "regset.h".
2809 (regcache_transfer_regset): New local function.
2810 (regcache_supply_regset, regcache_collect_regset): New functions.
2811 * regcache.h (struct regcache_map_entry): New structure.
2812 (REGCACHE_MAP_SKIP): New enum value.
2813 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2815 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2817 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2818 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2819 (ppc_linux_collect_gregset ): Likewise.
2820 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2821 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2822 (ppc_collect_vrregset): Likewise.
2823 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2826 2014-08-07 Yao Qi <yao@codesourcery.com>
2828 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2829 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2830 * remote.c (remote_read_bytes): Likewise.
2832 2014-08-07 Yao Qi <yao@codesourcery.com>
2834 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2836 2014-08-07 Yao Qi <yao@codesourcery.com>
2839 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2840 TARGET_XFER_OK instead of 0.
2842 2014-08-07 Gary Benson <gbenson@redhat.com>
2844 * common/common-defs.h: Include errno.h.
2845 * defs.h: Do not include errno.h.
2846 * ada-typeprint.c: Likewise.
2847 * c-typeprint.c: Likewise.
2848 * core-regset.c: Likewise.
2849 * corefile.c: Likewise.
2850 * corelow.c: Likewise.
2851 * event-loop.c: Likewise.
2852 * f-typeprint.c: Likewise.
2853 * gnu-nat.c: Likewise.
2854 * go32-nat.c: Likewise.
2855 * i386gnu-nat.c: Likewise.
2856 * m2-typeprint.c: Likewise.
2857 * nat/linux-btrace.c: Likewise.
2858 * p-typeprint.c: Likewise.
2859 * procfs.c: Likewise.
2860 * remote-sim.c: Likewise.
2861 * rs6000-nat.c: Likewise.
2862 * target.c: Likewise.
2863 * typeprint.c: Likewise.
2864 * ui-file.c: Likewise.
2865 * valops.c: Likewise.
2866 * valprint.c: Likewise.
2868 2014-08-07 Gary Benson <gbenson@redhat.com>
2870 * common/common-defs.h: Include string.h.
2871 * aarch64-tdep.c: Do not include string.h.
2872 * ada-exp.y: Likewise.
2873 * ada-lang.c: Likewise.
2874 * ada-lex.l: Likewise.
2875 * ada-typeprint.c: Likewise.
2876 * ada-valprint.c: Likewise.
2877 * aix-thread.c: Likewise.
2878 * alpha-linux-tdep.c: Likewise.
2879 * alpha-mdebug-tdep.c: Likewise.
2880 * alpha-nat.c: Likewise.
2881 * alpha-osf1-tdep.c: Likewise.
2882 * alpha-tdep.c: Likewise.
2883 * alphanbsd-tdep.c: Likewise.
2884 * amd64-dicos-tdep.c: Likewise.
2885 * amd64-linux-tdep.c: Likewise.
2886 * amd64-nat.c: Likewise.
2887 * amd64-sol2-tdep.c: Likewise.
2888 * amd64fbsd-tdep.c: Likewise.
2889 * amd64obsd-tdep.c: Likewise.
2890 * arch-utils.c: Likewise.
2891 * arm-linux-nat.c: Likewise.
2892 * arm-linux-tdep.c: Likewise.
2893 * arm-tdep.c: Likewise.
2894 * arm-wince-tdep.c: Likewise.
2895 * armbsd-tdep.c: Likewise.
2896 * armnbsd-nat.c: Likewise.
2897 * armnbsd-tdep.c: Likewise.
2898 * armobsd-tdep.c: Likewise.
2899 * avr-tdep.c: Likewise.
2900 * ax-gdb.c: Likewise.
2901 * ax-general.c: Likewise.
2902 * bcache.c: Likewise.
2903 * bfin-tdep.c: Likewise.
2904 * breakpoint.c: Likewise.
2905 * build-id.c: Likewise.
2906 * buildsym.c: Likewise.
2907 * c-exp.y: Likewise.
2908 * c-lang.c: Likewise.
2909 * c-typeprint.c: Likewise.
2910 * c-valprint.c: Likewise.
2911 * charset.c: Likewise.
2912 * cli-out.c: Likewise.
2913 * cli/cli-cmds.c: Likewise.
2914 * cli/cli-decode.c: Likewise.
2915 * cli/cli-dump.c: Likewise.
2916 * cli/cli-interp.c: Likewise.
2917 * cli/cli-logging.c: Likewise.
2918 * cli/cli-script.c: Likewise.
2919 * cli/cli-setshow.c: Likewise.
2920 * cli/cli-utils.c: Likewise.
2921 * coffread.c: Likewise.
2922 * common/agent.c: Likewise.
2923 * common/buffer.c: Likewise.
2924 * common/buffer.h: Likewise.
2925 * common/common-utils.c: Likewise.
2926 * common/filestuff.c: Likewise.
2927 * common/filestuff.c: Likewise.
2928 * common/format.c: Likewise.
2929 * common/print-utils.c: Likewise.
2930 * common/rsp-low.c: Likewise.
2931 * common/signals.c: Likewise.
2932 * common/vec.h: Likewise.
2933 * common/xml-utils.c: Likewise.
2934 * core-regset.c: Likewise.
2935 * corefile.c: Likewise.
2936 * corelow.c: Likewise.
2937 * cp-abi.c: Likewise.
2938 * cp-name-parser.y: Likewise.
2939 * cp-support.c: Likewise.
2940 * cp-valprint.c: Likewise.
2941 * cris-tdep.c: Likewise.
2942 * d-exp.y: Likewise.
2943 * darwin-nat.c: Likewise.
2944 * dbxread.c: Likewise.
2945 * dcache.c: Likewise.
2946 * demangle.c: Likewise.
2947 * dicos-tdep.c: Likewise.
2948 * disasm.c: Likewise.
2949 * doublest.c: Likewise.
2950 * dsrec.c: Likewise.
2951 * dummy-frame.c: Likewise.
2952 * dwarf2-frame.c: Likewise.
2953 * dwarf2loc.c: Likewise.
2954 * dwarf2read.c: Likewise.
2955 * elfread.c: Likewise.
2956 * environ.c: Likewise.
2958 * event-loop.c: Likewise.
2959 * exceptions.c: Likewise.
2961 * expprint.c: Likewise.
2962 * f-exp.y: Likewise.
2963 * f-lang.c: Likewise.
2964 * f-typeprint.c: Likewise.
2965 * f-valprint.c: Likewise.
2966 * fbsd-nat.c: Likewise.
2967 * findcmd.c: Likewise.
2968 * findvar.c: Likewise.
2969 * fork-child.c: Likewise.
2970 * frame.c: Likewise.
2971 * frv-linux-tdep.c: Likewise.
2972 * frv-tdep.c: Likewise.
2974 * gdb_bfd.c: Likewise.
2975 * gdbarch.c: Likewise.
2976 * gdbarch.sh: Likewise.
2977 * gdbtypes.c: Likewise.
2978 * gnu-nat.c: Likewise.
2979 * gnu-v2-abi.c: Likewise.
2980 * gnu-v3-abi.c: Likewise.
2981 * go-exp.y: Likewise.
2982 * go-lang.c: Likewise.
2983 * go32-nat.c: Likewise.
2984 * guile/guile.c: Likewise.
2985 * guile/scm-auto-load.c: Likewise.
2986 * hppa-hpux-tdep.c: Likewise.
2987 * hppa-linux-nat.c: Likewise.
2988 * hppanbsd-tdep.c: Likewise.
2989 * hppaobsd-tdep.c: Likewise.
2990 * i386-cygwin-tdep.c: Likewise.
2991 * i386-dicos-tdep.c: Likewise.
2992 * i386-linux-tdep.c: Likewise.
2993 * i386-nto-tdep.c: Likewise.
2994 * i386-sol2-tdep.c: Likewise.
2995 * i386-tdep.c: Likewise.
2996 * i386bsd-tdep.c: Likewise.
2997 * i386gnu-nat.c: Likewise.
2998 * i386nbsd-tdep.c: Likewise.
2999 * i386obsd-tdep.c: Likewise.
3000 * i387-tdep.c: Likewise.
3001 * ia64-libunwind-tdep.c: Likewise.
3002 * ia64-linux-nat.c: Likewise.
3003 * inf-child.c: Likewise.
3004 * inf-ptrace.c: Likewise.
3005 * inf-ttrace.c: Likewise.
3006 * infcall.c: Likewise.
3007 * infcmd.c: Likewise.
3008 * inflow.c: Likewise.
3009 * infrun.c: Likewise.
3010 * interps.c: Likewise.
3011 * iq2000-tdep.c: Likewise.
3012 * irix5-nat.c: Likewise.
3013 * jv-exp.y: Likewise.
3014 * jv-lang.c: Likewise.
3015 * jv-typeprint.c: Likewise.
3016 * jv-valprint.c: Likewise.
3017 * language.c: Likewise.
3018 * linux-fork.c: Likewise.
3019 * linux-nat.c: Likewise.
3020 * lm32-tdep.c: Likewise.
3021 * m2-exp.y: Likewise.
3022 * m2-typeprint.c: Likewise.
3023 * m32c-tdep.c: Likewise.
3024 * m32r-linux-nat.c: Likewise.
3025 * m32r-linux-tdep.c: Likewise.
3026 * m32r-rom.c: Likewise.
3027 * m32r-tdep.c: Likewise.
3028 * m68hc11-tdep.c: Likewise.
3029 * m68k-tdep.c: Likewise.
3030 * m68kbsd-tdep.c: Likewise.
3031 * m68klinux-nat.c: Likewise.
3032 * m68klinux-tdep.c: Likewise.
3033 * m88k-tdep.c: Likewise.
3034 * machoread.c: Likewise.
3035 * macrocmd.c: Likewise.
3037 * mdebugread.c: Likewise.
3038 * mem-break.c: Likewise.
3039 * memattr.c: Likewise.
3040 * memory-map.c: Likewise.
3041 * mep-tdep.c: Likewise.
3042 * mi/mi-cmd-break.c: Likewise.
3043 * mi/mi-cmd-disas.c: Likewise.
3044 * mi/mi-cmd-env.c: Likewise.
3045 * mi/mi-cmd-stack.c: Likewise.
3046 * mi/mi-cmd-var.c: Likewise.
3047 * mi/mi-cmds.c: Likewise.
3048 * mi/mi-console.c: Likewise.
3049 * mi/mi-getopt.c: Likewise.
3050 * mi/mi-interp.c: Likewise.
3051 * mi/mi-main.c: Likewise.
3052 * mi/mi-parse.c: Likewise.
3053 * microblaze-rom.c: Likewise.
3054 * microblaze-tdep.c: Likewise.
3055 * mingw-hdep.c: Likewise.
3056 * minidebug.c: Likewise.
3057 * minsyms.c: Likewise.
3058 * mips-irix-tdep.c: Likewise.
3059 * mips-linux-tdep.c: Likewise.
3060 * mips-tdep.c: Likewise.
3061 * mips64obsd-tdep.c: Likewise.
3062 * mipsnbsd-tdep.c: Likewise.
3063 * mipsread.c: Likewise.
3064 * mn10300-linux-tdep.c: Likewise.
3065 * mn10300-tdep.c: Likewise.
3066 * monitor.c: Likewise.
3067 * moxie-tdep.c: Likewise.
3068 * mt-tdep.c: Likewise.
3069 * nat/linux-btrace.c: Likewise.
3070 * nat/linux-osdata.c: Likewise.
3071 * nat/linux-procfs.c: Likewise.
3072 * nat/linux-ptrace.c: Likewise.
3073 * nat/linux-waitpid.c: Likewise.
3074 * nbsd-tdep.c: Likewise.
3075 * nios2-linux-tdep.c: Likewise.
3076 * nto-procfs.c: Likewise.
3077 * nto-tdep.c: Likewise.
3078 * objc-lang.c: Likewise.
3079 * objfiles.c: Likewise.
3080 * opencl-lang.c: Likewise.
3081 * osabi.c: Likewise.
3082 * osdata.c: Likewise.
3083 * p-exp.y: Likewise.
3084 * p-lang.c: Likewise.
3085 * p-typeprint.c: Likewise.
3086 * parse.c: Likewise.
3087 * posix-hdep.c: Likewise.
3088 * ppc-linux-nat.c: Likewise.
3089 * ppc-sysv-tdep.c: Likewise.
3090 * ppcfbsd-tdep.c: Likewise.
3091 * ppcnbsd-tdep.c: Likewise.
3092 * ppcobsd-tdep.c: Likewise.
3093 * printcmd.c: Likewise.
3094 * procfs.c: Likewise.
3095 * prologue-value.c: Likewise.
3096 * python/py-auto-load.c: Likewise.
3097 * python/py-gdb-readline.c: Likewise.
3098 * ravenscar-thread.c: Likewise.
3099 * regcache.c: Likewise.
3100 * registry.c: Likewise.
3101 * remote-fileio.c: Likewise.
3102 * remote-m32r-sdi.c: Likewise.
3103 * remote-mips.c: Likewise.
3104 * remote-notif.c: Likewise.
3105 * remote-sim.c: Likewise.
3106 * remote.c: Likewise.
3107 * reverse.c: Likewise.
3108 * rs6000-aix-tdep.c: Likewise.
3109 * ser-base.c: Likewise.
3110 * ser-go32.c: Likewise.
3111 * ser-mingw.c: Likewise.
3112 * ser-pipe.c: Likewise.
3113 * ser-tcp.c: Likewise.
3114 * ser-unix.c: Likewise.
3115 * serial.c: Likewise.
3116 * sh-tdep.c: Likewise.
3117 * sh64-tdep.c: Likewise.
3118 * shnbsd-tdep.c: Likewise.
3120 * sol-thread.c: Likewise.
3121 * solib-dsbt.c: Likewise.
3122 * solib-frv.c: Likewise.
3123 * solib-osf.c: Likewise.
3124 * solib-som.c: Likewise.
3125 * solib-spu.c: Likewise.
3126 * solib-target.c: Likewise.
3127 * solib.c: Likewise.
3128 * somread.c: Likewise.
3129 * source.c: Likewise.
3130 * sparc-nat.c: Likewise.
3131 * sparc-sol2-tdep.c: Likewise.
3132 * sparc-tdep.c: Likewise.
3133 * sparc64-tdep.c: Likewise.
3134 * sparc64fbsd-tdep.c: Likewise.
3135 * sparc64nbsd-tdep.c: Likewise.
3136 * sparcnbsd-tdep.c: Likewise.
3137 * spu-linux-nat.c: Likewise.
3138 * spu-multiarch.c: Likewise.
3139 * spu-tdep.c: Likewise.
3140 * stabsread.c: Likewise.
3141 * stack.c: Likewise.
3142 * std-regs.c: Likewise.
3143 * symfile.c: Likewise.
3144 * symmisc.c: Likewise.
3145 * symtab.c: Likewise.
3146 * target.c: Likewise.
3147 * thread.c: Likewise.
3148 * tilegx-linux-nat.c: Likewise.
3149 * tilegx-tdep.c: Likewise.
3151 * tracepoint.c: Likewise.
3152 * tui/tui-command.c: Likewise.
3153 * tui/tui-data.c: Likewise.
3154 * tui/tui-disasm.c: Likewise.
3155 * tui/tui-file.c: Likewise.
3156 * tui/tui-layout.c: Likewise.
3157 * tui/tui-out.c: Likewise.
3158 * tui/tui-regs.c: Likewise.
3159 * tui/tui-source.c: Likewise.
3160 * tui/tui-stack.c: Likewise.
3161 * tui/tui-win.c: Likewise.
3162 * tui/tui-windata.c: Likewise.
3163 * tui/tui-winsource.c: Likewise.
3164 * typeprint.c: Likewise.
3165 * ui-file.c: Likewise.
3166 * ui-out.c: Likewise.
3167 * user-regs.c: Likewise.
3168 * utils.c: Likewise.
3169 * v850-tdep.c: Likewise.
3170 * valarith.c: Likewise.
3171 * valops.c: Likewise.
3172 * valprint.c: Likewise.
3173 * value.c: Likewise.
3174 * varobj.c: Likewise.
3175 * vax-tdep.c: Likewise.
3176 * vaxnbsd-tdep.c: Likewise.
3177 * vaxobsd-tdep.c: Likewise.
3178 * windows-nat.c: Likewise.
3179 * xcoffread.c: Likewise.
3180 * xml-support.c: Likewise.
3181 * xstormy16-tdep.c: Likewise.
3182 * xtensa-linux-nat.c: Likewise.
3184 2014-08-07 Gary Benson <gbenson@redhat.com>
3186 * common/common-defs.h: Include gdb_assert.h.
3187 * aarch64-tdep.c: Do not include gdb_assert.h.
3188 * addrmap.c: Likewise.
3189 * aix-thread.c: Likewise.
3190 * alpha-linux-tdep.c: Likewise.
3191 * alpha-mdebug-tdep.c: Likewise.
3192 * alphanbsd-tdep.c: Likewise.
3193 * amd64-nat.c: Likewise.
3194 * amd64-tdep.c: Likewise.
3195 * amd64bsd-nat.c: Likewise.
3196 * amd64fbsd-nat.c: Likewise.
3197 * amd64fbsd-tdep.c: Likewise.
3198 * amd64nbsd-nat.c: Likewise.
3199 * amd64nbsd-tdep.c: Likewise.
3200 * amd64obsd-nat.c: Likewise.
3201 * amd64obsd-tdep.c: Likewise.
3202 * arch-utils.c: Likewise.
3203 * arm-tdep.c: Likewise.
3204 * armbsd-tdep.c: Likewise.
3206 * bcache.c: Likewise.
3207 * bfin-tdep.c: Likewise.
3208 * blockframe.c: Likewise.
3209 * breakpoint.c: Likewise.
3210 * bsd-kvm.c: Likewise.
3211 * bsd-uthread.c: Likewise.
3212 * buildsym.c: Likewise.
3213 * c-exp.y: Likewise.
3214 * c-lang.c: Likewise.
3215 * charset.c: Likewise.
3216 * cleanups.c: Likewise.
3217 * cli-out.c: Likewise.
3218 * cli/cli-decode.c: Likewise.
3219 * cli/cli-dump.c: Likewise.
3220 * cli/cli-logging.c: Likewise.
3221 * cli/cli-script.c: Likewise.
3222 * cli/cli-utils.c: Likewise.
3223 * coffread.c: Likewise.
3224 * common/common-utils.c: Likewise.
3225 * common/queue.h: Likewise.
3226 * common/signals.c: Likewise.
3227 * common/vec.h: Likewise.
3228 * complaints.c: Likewise.
3229 * completer.c: Likewise.
3230 * corelow.c: Likewise.
3231 * cp-abi.c: Likewise.
3232 * cp-name-parser.y: Likewise.
3233 * cp-namespace.c: Likewise.
3234 * cp-support.c: Likewise.
3235 * cris-tdep.c: Likewise.
3236 * dbxread.c: Likewise.
3237 * dictionary.c: Likewise.
3238 * doublest.c: Likewise.
3239 * dsrec.c: Likewise.
3240 * dummy-frame.c: Likewise.
3241 * dwarf2-frame-tailcall.c: Likewise.
3242 * dwarf2-frame.c: Likewise.
3243 * dwarf2expr.c: Likewise.
3244 * dwarf2loc.c: Likewise.
3245 * dwarf2read.c: Likewise.
3247 * event-loop.c: Likewise.
3248 * exceptions.c: Likewise.
3249 * expprint.c: Likewise.
3250 * f-valprint.c: Likewise.
3251 * fbsd-nat.c: Likewise.
3252 * findvar.c: Likewise.
3253 * frame-unwind.c: Likewise.
3254 * frame.c: Likewise.
3255 * frv-tdep.c: Likewise.
3256 * gcore.c: Likewise.
3257 * gdb-dlfcn.c: Likewise.
3258 * gdb_bfd.c: Likewise.
3259 * gdbarch.c: Likewise.
3260 * gdbarch.sh: Likewise.
3261 * gdbtypes.c: Likewise.
3262 * gnu-nat.c: Likewise.
3263 * gnu-v3-abi.c: Likewise.
3264 * go-lang.c: Likewise.
3265 * guile/scm-exception.c: Likewise.
3266 * guile/scm-gsmob.c: Likewise.
3267 * guile/scm-lazy-string.c: Likewise.
3268 * guile/scm-math.c: Likewise.
3269 * guile/scm-pretty-print.c: Likewise.
3270 * guile/scm-safe-call.c: Likewise.
3271 * guile/scm-utils.c: Likewise.
3272 * guile/scm-value.c: Likewise.
3273 * h8300-tdep.c: Likewise.
3274 * hppa-hpux-nat.c: Likewise.
3275 * hppa-tdep.c: Likewise.
3276 * hppanbsd-tdep.c: Likewise.
3277 * hppaobsd-tdep.c: Likewise.
3278 * i386-darwin-nat.c: Likewise.
3279 * i386-darwin-tdep.c: Likewise.
3280 * i386-nto-tdep.c: Likewise.
3281 * i386-tdep.c: Likewise.
3282 * i386bsd-nat.c: Likewise.
3283 * i386fbsd-tdep.c: Likewise.
3284 * i386gnu-nat.c: Likewise.
3285 * i386nbsd-tdep.c: Likewise.
3286 * i386obsd-tdep.c: Likewise.
3287 * i387-tdep.c: Likewise.
3288 * ia64-libunwind-tdep.c: Likewise.
3289 * ia64-tdep.c: Likewise.
3290 * inf-ptrace.c: Likewise.
3291 * inf-ttrace.c: Likewise.
3292 * infcall.c: Likewise.
3293 * infcmd.c: Likewise.
3294 * infrun.c: Likewise.
3295 * inline-frame.c: Likewise.
3296 * interps.c: Likewise.
3297 * jv-lang.c: Likewise.
3298 * jv-typeprint.c: Likewise.
3299 * linux-fork.c: Likewise.
3300 * linux-nat.c: Likewise.
3301 * linux-thread-db.c: Likewise.
3302 * m32c-tdep.c: Likewise.
3303 * m32r-linux-nat.c: Likewise.
3304 * m32r-tdep.c: Likewise.
3305 * m68k-tdep.c: Likewise.
3306 * m68kbsd-nat.c: Likewise.
3307 * m68kbsd-tdep.c: Likewise.
3308 * m88k-tdep.c: Likewise.
3309 * machoread.c: Likewise.
3310 * macroexp.c: Likewise.
3311 * macrotab.c: Likewise.
3312 * maint.c: Likewise.
3313 * mdebugread.c: Likewise.
3314 * memory-map.c: Likewise.
3315 * mep-tdep.c: Likewise.
3316 * mi/mi-common.c: Likewise.
3317 * microblaze-tdep.c: Likewise.
3318 * mingw-hdep.c: Likewise.
3319 * mips-linux-nat.c: Likewise.
3320 * mips-linux-tdep.c: Likewise.
3321 * mips-tdep.c: Likewise.
3322 * mips64obsd-tdep.c: Likewise.
3323 * mipsnbsd-tdep.c: Likewise.
3324 * mn10300-linux-tdep.c: Likewise.
3325 * mn10300-tdep.c: Likewise.
3326 * moxie-tdep.c: Likewise.
3327 * mt-tdep.c: Likewise.
3328 * nat/linux-btrace.c: Likewise.
3329 * nat/linux-osdata.c: Likewise.
3330 * nat/linux-ptrace.c: Likewise.
3331 * nat/mips-linux-watch.c: Likewise.
3332 * nios2-linux-tdep.c: Likewise.
3333 * nios2-tdep.c: Likewise.
3334 * objc-lang.c: Likewise.
3335 * objfiles.c: Likewise.
3336 * obsd-nat.c: Likewise.
3337 * opencl-lang.c: Likewise.
3338 * osabi.c: Likewise.
3339 * parse.c: Likewise.
3340 * ppc-linux-nat.c: Likewise.
3341 * ppc-sysv-tdep.c: Likewise.
3342 * ppcfbsd-nat.c: Likewise.
3343 * ppcfbsd-tdep.c: Likewise.
3344 * ppcnbsd-nat.c: Likewise.
3345 * ppcnbsd-tdep.c: Likewise.
3346 * ppcobsd-nat.c: Likewise.
3347 * ppcobsd-tdep.c: Likewise.
3348 * printcmd.c: Likewise.
3349 * procfs.c: Likewise.
3350 * prologue-value.c: Likewise.
3351 * psymtab.c: Likewise.
3352 * python/py-lazy-string.c: Likewise.
3353 * python/py-value.c: Likewise.
3354 * regcache.c: Likewise.
3355 * reggroups.c: Likewise.
3356 * registry.c: Likewise.
3357 * remote-sim.c: Likewise.
3358 * remote.c: Likewise.
3359 * rs6000-aix-tdep.c: Likewise.
3360 * rs6000-tdep.c: Likewise.
3361 * s390-linux-tdep.c: Likewise.
3362 * score-tdep.c: Likewise.
3363 * ser-base.c: Likewise.
3364 * ser-mingw.c: Likewise.
3365 * sh-tdep.c: Likewise.
3366 * sh64-tdep.c: Likewise.
3367 * solib-darwin.c: Likewise.
3368 * solib-spu.c: Likewise.
3369 * solib-svr4.c: Likewise.
3370 * source.c: Likewise.
3371 * sparc-nat.c: Likewise.
3372 * sparc-sol2-tdep.c: Likewise.
3373 * sparc-tdep.c: Likewise.
3374 * sparc64-sol2-tdep.c: Likewise.
3375 * sparc64-tdep.c: Likewise.
3376 * sparc64fbsd-tdep.c: Likewise.
3377 * sparc64nbsd-tdep.c: Likewise.
3378 * sparc64obsd-tdep.c: Likewise.
3379 * sparcnbsd-tdep.c: Likewise.
3380 * sparcobsd-tdep.c: Likewise.
3381 * spu-multiarch.c: Likewise.
3382 * spu-tdep.c: Likewise.
3383 * stabsread.c: Likewise.
3384 * stack.c: Likewise.
3385 * symfile.c: Likewise.
3386 * symtab.c: Likewise.
3387 * target-descriptions.c: Likewise.
3388 * target-memory.c: Likewise.
3389 * target.c: Likewise.
3390 * tic6x-linux-tdep.c: Likewise.
3391 * tic6x-tdep.c: Likewise.
3392 * tilegx-linux-nat.c: Likewise.
3393 * tilegx-tdep.c: Likewise.
3395 * tramp-frame.c: Likewise.
3396 * tui/tui-out.c: Likewise.
3397 * tui/tui-winsource.c: Likewise.
3398 * ui-out.c: Likewise.
3399 * user-regs.c: Likewise.
3400 * utils.c: Likewise.
3401 * v850-tdep.c: Likewise.
3402 * valops.c: Likewise.
3403 * value.c: Likewise.
3404 * varobj.c: Likewise.
3405 * vax-nat.c: Likewise.
3406 * xml-syscall.c: Likewise.
3407 * xml-tdesc.c: Likewise.
3408 * xstormy16-tdep.c: Likewise.
3409 * xtensa-linux-nat.c: Likewise.
3410 * xtensa-tdep.c: Likewise.
3412 2014-08-07 Gary Benson <gbenson@redhat.com>
3414 * common/common-defs.h: Include common-utils.h.
3415 * defs.h: Do not include common-utils.h.
3416 * common/gdb_assert.h: Likewise.
3417 * darwin-nat.h: Likewise.
3418 * nat/linux-btrace.c: Likewise.
3419 * target/waitstatus.h: Likewise.
3421 2014-08-07 Gary Benson <gbenson@redhat.com>
3423 * common/common-defs.h: Include ptid.h.
3424 * defs.h: Do not include ptid.h.
3425 * inferior.h: Likewise.
3426 * infrun.h: Likewise.
3427 * nat/linux-btrace.h: Likewise.
3428 * nat/linux-osdata.h: Likewise.
3429 * target/waitstatus.h: Likewise.
3431 2014-08-07 Gary Benson <gbenson@redhat.com>
3433 * common/common-defs.h: Include gdb_locale.h.
3434 * defs.h: Do not include gdb_locale.h.
3436 2014-08-07 Gary Benson <gbenson@redhat.com>
3438 * common/common-defs.h: Include gdb/signals.h.
3439 * defs.h: Do not include gdb/signals.h.
3441 2014-08-07 Gary Benson <gbenson@redhat.com>
3443 * common/common-defs.h: Include pathmax.h.
3444 * defs.h: Do not include pathmax.h.
3446 2014-08-07 Gary Benson <gbenson@redhat.com>
3448 * common/common-defs.h: Include libiberty.h.
3449 * defs.h: Do not include libiberty.h.
3450 * common/queue.h: Likewise.
3451 * cp-name-parser.y: Likewise.
3452 * mi/mi-cmd-catch.c: Likewise.
3453 * python/python.c: Likewise.
3455 2014-08-07 Gary Benson <gbenson@redhat.com>
3457 * common/common-defs.h: Include ansidecl.h.
3458 * defs.h: Do not include ansidecl.h.
3459 * common/buffer.h: Likewise.
3460 * common/common-utils.h: Likewise.
3462 2014-08-07 Gary Benson <gbenson@redhat.com>
3464 * common/common-defs.h: Include stddef.h.
3465 * defs.h: Do not include stddef.h.
3466 * common/common-utils.h: Likewise.
3467 * amd64fbsd-nat.c: Likewise.
3468 * bcache.c: Likewise.
3469 * charset.c: Likewise.
3470 * common/buffer.h: Likewise.
3471 * common/vec.h: Likewise.
3472 * i386bsd-nat.c: Likewise.
3473 * nat/linux-btrace.h: Likewise.
3474 * ppcfbsd-nat.c: Likewise.
3475 * ppcnbsd-tdep.h: Likewise.
3476 * ppcobsd-nat.c: Likewise.
3477 * ppcobsd-tdep.h: Likewise.
3478 * python/py-gdb-readline.c: Likewise.
3480 2014-08-07 Gary Benson <gbenson@redhat.com>
3482 * common/common-defs.h: Include stdarg.h.
3483 * defs.h: Do not include stdarg.h.
3484 * ada-lang.c: Likewise.
3485 * common/common-utils.h: Likewise.
3486 * guile/scm-string.c: Likewise.
3487 * guile/scm-utils.c: Likewise.
3488 * m32c-tdep.c: Likewise.
3490 2014-08-07 Gary Benson <gbenson@redhat.com>
3492 * common/common-defs.h: Include stdlib.h.
3493 * defs.h: Do not include stdlib.h.
3494 * addrmap.c: Likewise.
3495 * bcache.c: Likewise.
3496 * common/buffer.c: Likewise.
3497 * common/common-utils.c: Likewise.
3498 * cp-name-parser.y: Likewise.
3499 * go32-nat.c: Likewise.
3500 * mn10300-linux-tdep.c: Likewise.
3501 * nat/linux-osdata.c: Likewise.
3502 * tui/tui.c: Likewise.
3503 * windows-nat.c: Likewise.
3505 2014-08-07 Gary Benson <gbenson@redhat.com>
3507 * common/common-defs.h: Include stdio.h.
3508 * defs.h: Do not include stdio.h.
3509 * ada-lang.c: Likewise.
3510 * common/buffer.c: Likewise.
3511 * common/common-utils.c: Likewise.
3512 * cp-name-parser.y: Likewise.
3513 * gnu-nat.c: Likewise.
3514 * go32-nat.c: Likewise.
3515 * i386gnu-nat.c: Likewise.
3516 * proc-api.c: Likewise.
3517 * proc-events.c: Likewise.
3518 * proc-flags.c: Likewise.
3519 * proc-why.c: Likewise.
3520 * python/python-internal.h: Likewise.
3521 * target-memory.c: Likewise.
3522 * tui/tui-io.c: Likewise.
3523 * tui/tui.c: Likewise.
3525 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3527 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3528 (scan_dyntag_auxv): Same.
3530 2014-08-06 Yao Qi <yao@codesourcery.com>
3532 * amd64-linux-nat.c: Remove duplicated include
3534 * i386-linux-nat.c: Likewise.
3536 2014-08-06 Yao Qi <yao@codesourcery.com>
3538 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3539 operand" with "Special opcode" in comments.
3541 2014-08-05 Gary Benson <gbenson@redhat.com>
3543 * interps.c (initialize_interps): Remove prototype.
3544 (interpreter_initialized): Remove static global.
3545 (interp_add): Do not call initialize_interps.
3546 (initialize_interps): Remove function.
3548 2014-08-05 Gary Benson <gbenson@redhat.com>
3550 * utils.c (vwarning): Remove spurious va_end.
3552 2014-08-05 Alan Modra <amodra@gmail.com>
3554 * charset.c (convert_between_encodings): Cast result of obstack_base.
3555 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3556 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3557 (read_unwind_info): Use size_t for some locals.
3558 * jit.c (finalize_symtab): Likewise.
3559 * utils.c (hashtab_obstack_allocate): Likewise.
3560 * symmisc.c (print_objfile_statistics): Update format strings.
3562 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3564 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3565 (Changes in GDB 7.8): ... here.
3567 2014-08-04 Tom Tromey <tromey@redhat.com>
3569 * target.c (set_targetdebug): New function.
3570 (initialize_targets): Pass set_targetdebug when creating "set
3573 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3575 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3576 if detecting a variable-sized field that is not the last field.
3577 Fix struct type length computation.
3579 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3581 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3584 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3586 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3587 Remove "+ 8" offset in computation of CHAIN_VMA.
3589 2014-07-31 Doug Evans <dje@google.com>
3591 * inflow.c (child_terminal_inferior): Add comment.
3592 (child_terminal_ours_for_output): Add comment.
3593 (child_terminal_ours): Add comment.
3594 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3595 (linux_nat_terminal_ours): Add comment.
3597 2014-07-31 Gary Benson <gbenson@redhat.com>
3599 * common/btrace-common.h: Do not include defs.h or server.h.
3600 * nat/mips-linux-watch.h: Likewise.
3601 * gdb-dlfcn.h: Do not include defs.h.
3602 * tracefile.h: Likewise.
3604 2014-07-30 Roland McGrath <mcgrathr@google.com>
3606 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3608 2014-07-30 Tom Tromey <tromey@redhat.com>
3610 * bsd-kvm.c (bsd_kvm_open): Constify.
3611 * corelow.c (core_open): Constify.
3612 * ctf.c (ctf_open): Constify.
3613 * dbug-rom.c (dbug_open): Constify.
3614 * exec.c (exec_open): Constify.
3615 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3616 * microblaze-rom.c (picobug_open): Constify.
3617 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3619 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3620 * record-btrace.c (record_btrace_open): Constify.
3621 * record-full.c (record_full_core_open_1, record_full_open_1)
3622 (record_full_open): Constify.
3623 * remote-m32r-sdi.c (m32r_open): Constify.
3624 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3625 (rockhopper_open, lsi_open): Constify.
3626 * remote-sim.c (gdbsim_open): Constify.
3627 * remote.c (remote_open, extended_remote_open, remote_open_1):
3629 * target.h (struct target_ops) <to_open>: Make "arg" const.
3630 * tracefile-tfile.c (tfile_open): Constify.
3632 2014-07-30 Tom Tromey <tromey@redhat.com>
3634 * breakpoint.c (map_breakpoint_numbers): Update.
3635 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3636 (get_number_const): New function.
3637 (get_number): Rewrite using get_number_const.
3638 (init_number_or_range): Make "string" const.
3639 (number_is_in_list): Make "list" const.
3640 * cli/cli-utils.h (get_number_const): Declare.
3641 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3642 (init_number_or_range, number_is_in_list): Update.
3643 * printcmd.c (map_display_numbers): Update.
3644 * value.c (value_from_history_ref): Constify.
3645 * value.h (value_from_history_ref): Update.
3647 2014-07-30 Tom Tromey <tromey@redhat.com>
3649 * corefile.c (hook_type, call_extra_exec_file_hooks)
3650 (specify_exec_file_hook): Constify.
3651 * exec.c (exec_file_attach): Make "filename" const.
3652 * gdbcore.h (deprecated_exec_file_display_hook)
3653 (specify_exec_file_hook, exec_file_attach): Constify.
3654 * main.c (captured_main): Use catch_command_errors_const.
3656 2014-07-30 Tom Tromey <tromey@redhat.com>
3658 * target.c (open_target): New function.
3659 (add_target_with_completer, add_deprecated_target_alias): Use
3660 set_cmd_sfunc, set_cmd_context.
3661 (debug_to_open): Remove.
3662 (setup_target_debug): Update.
3664 2014-07-30 Yao Qi <yao@codesourcery.com>
3666 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3668 * parse.c (exp_iterate): Update comments.
3670 2014-07-30 Gary Benson <gbenson@redhat.com>
3672 * common/common-defs.h: New file.
3673 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3674 * defs.h: Include common-defs.h.
3675 Do not include config.h or build-gnulib/config.h.
3677 2014-07-30 Gary Benson <gbenson@redhat.com>
3679 * common/common-utils.h: Do not include config.h.
3680 * nat/linux-btrace.h: Likewise.
3682 2014-07-30 Gary Benson <gbenson@redhat.com>
3684 * btrace.c: Include defs.h.
3685 * common/ptid.c: Include defs.h or server.h as appropriate.
3686 * nat/mips-linux-watch.c: Likewise.
3688 2014-07-29 Tom Tromey <tromey@redhat.com>
3690 * target.c (target_is_pushed): Simplify.
3692 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3696 2014-07-29 Yao Qi <yao@codesourcery.com>
3699 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3701 2014-07-28 Doug Evans <xdje42@gmail.com>
3704 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3705 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3708 2014-07-28 Will Newton <will.newton@linaro.org>
3710 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3711 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3712 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3713 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3714 (THUMB2_EABI_SYSCALL): Likewise.
3715 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3717 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3718 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3720 2014-07-27 Doug Evans <xdje42@gmail.com>
3722 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3724 2014-07-27 Doug Evans <xdje42@gmail.com>
3726 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3728 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3729 Doug Evans <xdje42@gmail.com>
3732 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3733 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3734 * configure.ac: Try to use guild to compile an scm file, if it fails
3735 then disable guile support.
3736 * configure: Regenerate.
3737 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3739 (GUILE_COMPILED_FILES): New variable.
3740 (GUILE_FILES) Update.
3741 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3742 (stamp-guile): Compile scm files.
3743 * guile/guile.c (boot_guile_support): New function.
3744 (standard_throw_args_p): New function.
3745 (print_standard_throw_error, print_throw_error): New functions.
3746 (handle_boot_error): New function.
3747 (initialize_scheme_side): Rewrite to call boot_guile_support.
3748 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3749 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3751 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3752 Doug Evans <xdje42@gmail.com>
3755 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3756 * guile/lib/gdb/support.scm: New file.
3757 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3758 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3760 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3762 (%assert-type): Ditto, and renamed to assert-type.
3763 (%exception-print-style): Delete.
3765 2014-07-26 Doug Evans <xdje42@gmail.com>
3768 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3769 * configure: Regenerate.
3770 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3772 (PYTHON_FILES): New variable.
3773 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3774 (GUILE_FILES): New variable.
3775 (stamp-python, install-python, uninstall-python): Handle empty
3777 (stamp-guile, install-guile, uninstall-guile): Ditto.
3779 2014-07-26 Doug Evans <xdje42@gmail.com>
3782 * guile/lib/gdb.scm (pretty-printers): Export.
3783 (set-pretty-printers!): Export.
3784 * guile/lib/gdb/printing.scm (gdb module): Update.
3785 (prepend-pretty-printer!, append-pretty-printer!): Update.
3786 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3787 (pretty_printer_list_var): Delete.
3788 (pretty_printer_list): New static global.
3789 (gdbscm_pretty_printers): New function.
3790 (gdbscm_set_pretty_printers_x): New function.
3791 (ppscm_find_pretty_printer_from_gdb): Update.
3792 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3793 (gdbscm_initialize_pretty_printers): Update.
3795 2014-07-26 Doug Evans <xdje42@gmail.com>
3798 * configure.ac: Add check for header gc/gc.h.
3799 Add check for function setenv.
3800 * configure: Regenerate.
3801 * config.in: Regenerate.
3802 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3804 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3806 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3807 variation in gdbarch matching.
3809 2014-07-25 Tom Tromey <tromey@redhat.com>
3811 * exec.c (using_exec_ops): Remove.
3812 (exec_close_1): Update. Remove extraneous block, reindent.
3813 (add_target_sections): Use target_is_pushed.
3815 2014-07-25 Pedro Alves <palves@redhat.com>
3817 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3818 * monitor.c (monitor_create_inferior): Likewise.
3819 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3820 * remote-sim.c (gdbsim_create_inferior): Likewise.
3821 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3822 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3823 * windows-nat.c (do_initial_windows_stuff): Likewise.
3825 2014-07-25 Pedro Alves <palves@redhat.com>
3827 * NEWS: Mention signal passing and "signal" command changes.
3828 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3830 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3832 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3833 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3834 (jump_command): Adjust clear_proceed_status call.
3835 (signal_command): Warn if other thread that are resumed have
3836 signals that will be delivered. Adjust clear_proceed_status call.
3837 (until_next_command, finish_command)
3838 (proceed_after_attach_callback, attach_command_post_wait)
3839 (attach_command): Adjust clear_proceed_status call.
3840 * infrun.c (proceed_after_vfork_done): Likewise.
3841 (proceed_after_attach_callback): Adjust comment.
3842 (clear_proceed_status_thread): Clear stop_signal if not in pass
3844 (clear_proceed_status_callback): Delete.
3845 (clear_proceed_status): New 'step' parameter. Only clear the
3846 proceed status of threads the command being prepared is about to
3848 (proceed): If passed in an explicit signal, override stop_signal
3849 with it. Don't pass the last stop signal to the thread we're
3851 (init_wait_for_inferior): Adjust clear_proceed_status call.
3852 (switch_back_to_stepped_thread): Clear the signal if it should not
3854 * infrun.h (clear_proceed_status): New 'step' parameter.
3855 (user_visible_resume_ptid): Add comment.
3856 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3857 signal is in pass state.
3858 * remote.c (append_pending_thread_resumptions): Likewise.
3859 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3861 2014-07-25 Tom Tromey <tromey@redhat.com>
3863 * target.h (target_stopped_data_address)
3864 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3867 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3869 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3871 (avr_pointer_to_address): Likewise.
3873 2014-07-24 Tom Tromey <tromey@redhat.com>
3875 * monitor.c (compile_pattern): Update.
3876 * target.h (struct target_ops) <to_shortname, to_longname,
3879 2014-07-24 Tom Tromey <tromey@redhat.com>
3881 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3882 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3883 (add_info_alias, add_com): Make "doc" const.
3884 (print_doc_line): Make "str" const.
3885 (delete_cmd): Update.
3886 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3887 (print_doc_line): Update.
3888 * cli/cli-script.c (document_command): Update.
3889 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3890 (add_com, add_info, add_info_alias): Update.
3891 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3892 * python/py-cmd.c (cmdpy_destroyer): Update.
3894 2014-07-24 Tom Tromey <tromey@redhat.com>
3896 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3897 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3898 (help_cmd_list): Constify.
3899 (lookup_cmd): Update.
3900 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3902 (help_cmd_list, apropos_cmd): Update.
3903 * cli/cli-script.c (show_user): Update.
3904 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3905 * cli/cli-setshow.h (cmd_show_list): Update.
3906 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3907 (cmd_show_list): Update.
3908 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3909 * python/py-cmd.c (cmdpy_destroyer): Update.
3911 2014-07-24 Tom Tromey <tromey@redhat.com>
3913 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3914 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3916 * command.h (deprecate_cmd): Update.
3917 * maint.c (maintenance_do_deprecate): Add casts.
3919 2014-07-24 Tom Tromey <tromey@redhat.com>
3921 * cli/cli-decode.c (help_cmd): Make parameter "const".
3922 * cli/cli-decode.h (help_cmd): Update.
3924 2014-07-24 Tom Tromey <tromey@redhat.com>
3926 * stack.c (up_silently_base, down_silently_base): Make argument
3929 2014-07-24 Tom Tromey <tromey@redhat.com>
3931 * solib.c (solib_add): Make "pattern" const.
3932 * solib.h (solib_add): Update.
3934 2014-07-24 Tom Tromey <tromey@redhat.com>
3936 * remote.c (remote_serial_open, print_packet, putpkt)
3937 (putpkt_binary): Constify.
3938 * remote.h (putpkt): Update.
3940 2014-07-24 Tom Tromey <tromey@redhat.com>
3942 * monitor.c (monitor_open): Make "args" const.
3943 * monitor.h (monitor_open): Update.
3945 2014-07-24 Tom Tromey <tromey@redhat.com>
3947 * maint.c (match_bfd_flags): Make "string" const.
3948 (print_bfd_section_info): Remove casts.
3949 (print_objfile_section_info): Make "string" const.
3951 2014-07-24 Tom Tromey <tromey@redhat.com>
3953 * inf-child.c (inf_child_open_target): Make "arg" const.
3954 * inf-child.h (inf_child_open_target): Update.
3956 2014-07-24 Tom Tromey <tromey@redhat.com>
3958 * environ.c (unset_in_environ): Make "var" const.
3959 * environ.h (unset_in_environ): Update.
3961 2014-07-24 Tom Tromey <tromey@redhat.com>
3963 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3965 (scan_filename_with_cleanup): Likewise.
3966 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3967 Make arguments const.
3968 (restore_command): Update.
3970 2014-07-24 Pedro Alves <palves@redhat.com>
3972 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3974 2014-07-24 Tom Tromey <tromey@redhat.com>
3975 Gary Benson <gbenson@redhat.com>
3977 * nat/linux-ptrace.c (additional_flags): New global.
3978 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3979 additional_flags; don't check GDBSERVER.
3980 (linux_ptrace_set_additional_flags): New function.
3981 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3983 * linux-nat.c (_initialize_linux_nat): Call
3984 linux_ptrace_set_additional_flags.
3986 2014-07-24 Tom Tromey <tromey@redhat.com>
3988 * make-target-delegates (munge_type, write_debugmethod): New
3990 (debug_names): New global.
3991 ($TARGET_DEBUG_PRINTER): New global.
3992 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3994 Write debug methods. Generate init_debug_target.
3995 * target-debug.h: New file.
3996 * target-delegates.c: Rebuild.
3997 * target.c: Include target-debug.h.
3998 (debug_target): Hoist definition.
3999 (target_kill, target_get_section_table, target_memory_map)
4000 (target_flash_erase, target_flash_done, target_detach)
4001 (target_disconnect, target_wait, target_resume)
4002 (target_pass_signals, target_program_signals, target_follow_fork)
4003 (target_mourn_inferior, target_search_memory)
4004 (target_thread_address_space, target_close)
4005 (target_find_new_threads, target_core_of_thread)
4006 (target_verify_memory, target_insert_mask_watchpoint)
4007 (target_remove_mask_watchpoint): Remove targetdebug code.
4008 (debug_to_post_attach, debug_to_prepare_to_store)
4009 (debug_to_files_info, debug_to_insert_breakpoint)
4010 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4011 (debug_to_region_ok_for_hw_watchpoint)
4012 (debug_to_can_accel_watchpoint_condition)
4013 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4014 (debug_to_watchpoint_addr_within_range)
4015 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4016 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4017 (debug_to_terminal_init, debug_to_terminal_inferior)
4018 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4019 (debug_to_terminal_save_ours, debug_to_terminal_info)
4020 (debug_to_load, debug_to_post_startup_inferior)
4021 (debug_to_insert_fork_catchpoint)
4022 (debug_to_remove_fork_catchpoint)
4023 (debug_to_insert_vfork_catchpoint)
4024 (debug_to_remove_vfork_catchpoint)
4025 (debug_to_insert_exec_catchpoint)
4026 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4027 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4028 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4029 (setup_target_debug): Call init_debug_target.
4030 * target.h (TARGET_DEBUG_PRINTER): New macro.
4031 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4032 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4034 2014-07-24 Gary Benson <gbenson@redhat.com>
4036 * exceptions.h (throw_vfatal): Renamed to...
4037 (throw_vquit): New declaration.
4038 (throw_quit): Likewise.
4039 * exceptions.c (throw_vfatal): Renamed to...
4040 (throw_vquit): New function.
4041 (throw_quit): Likewise.
4042 (throw_error): Call throw_verror rather than throw_it.
4043 * utils.h (vfatal): Removed.
4045 * utils.c (vfatal): Removed.
4047 (internal_verror): Replaced call to fatal with call to throw_quit.
4048 (quit): Replaced calls to fatal with calls to throw_quit.
4050 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4052 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4055 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4057 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4058 less than zero in conditional expression.
4060 2014-07-23 Tom Tromey <tromey@redhat.com>
4062 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4063 ($INTRO_PART): Don't match whitespace.
4064 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4066 ($METHOD): Add $METHOD_TRAILER.
4068 (scan_target_h): New sub.
4069 Change main loop not to collect state.
4070 * target-delegates.c: Rebuild.
4072 2014-07-23 Gary Benson <gbenson@redhat.com>
4074 * cp-support.c (gdb_demangle): Fix build on systems without
4077 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4079 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4080 for reference entry value target data value.
4082 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4084 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4085 value_available_contents_eq.
4087 2014-07-22 Pedro Alves <palves@redhat.com>
4089 * value.c (allocate_optimized_out_value): Don't mark value as
4092 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4094 * MAINTAINERS (Write After Approval): Update my email address.
4096 2014-07-20 Doug Evans <dje@google.com>
4099 * remote.c (putpkt_binary): Add text to error message.
4101 2014-07-20 Yao Qi <yao@codesourcery.com>
4103 * eval.c: Remove "Chill" from comments.
4104 * gdbtypes.h: Likewise.
4105 * symtab.h: Likewise.
4107 2014-07-20 Yao Qi <yao@codesourcery.com>
4109 * std-operator.def: Update comments to TERNOP_SLICE.
4111 2014-07-20 Yao Qi <yao@codesourcery.com>
4113 * std-operator.def: Remove BINOP_RANGE.
4114 * breakpoint.c (watchpoint_exp_is_const): Update.
4115 * expprint.c (dump_subexp_body_standard): Likewise.
4116 * eval.c (init_array_element): Remove dead code.
4117 (evaluate_subexp_standard): Likewise.
4119 2014-07-20 Yao Qi <yao@codesourcery.com>
4121 * std-operator.def: Remove BINOP_IN.
4122 * breakpoint.c (watchpoint_exp_is_const): Update.
4123 * eval.c (evaluate_subexp_standard): Likewise.
4124 * expprint.c (dump_subexp_body_standard): Likewise.
4126 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4128 * microblaze-tdep.c (microblaze_register_names): Add
4129 the rshr and rslr register names.
4130 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4131 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4132 Use of tdesc_numbered_register. Use of
4133 microblaze_register_g_packet_guesses. Use of
4134 tdesc_use_registers. Use of set_gdbarch_register_type.
4135 (microblaze_register_g_packet_guesses): New.
4136 * microblaze-tdep.h (microblaze_reg_num): Add
4137 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4138 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4139 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4140 * features/microblaze-core.xml: New file.
4141 * features/microblaze-stack-protect.xml: New file.
4142 * features/microblaze-with-stack-protect.c: New file.
4143 * features/microblaze-with-stack-protect.xml: New file.
4144 * features/microblaze.xml: New file.
4145 * features/microblaze.c: New file.
4146 * features/Makefile (microblaze-with-stack-protect): Add
4147 microblaze-with-stack-protect microblaze and microblaze-expedite.
4148 * regformats/microblaze-with-stack-protect.dat: New file.
4149 * regformats/microblaze.dat: New file.
4150 * doc/gdb.texinfo (MicroBlaze Features): Added.
4152 2014-07-18 Tom Tromey <tromey@redhat.com>
4154 * exec.c (exec_ops): Now static.
4155 * exec.h (exec_ops): Don't declare.
4157 2014-07-18 Tom Tromey <tromey@redhat.com>
4159 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4160 to find_target_beneath.
4161 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4162 find_target_beneath.
4163 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4165 2014-07-18 Tom Tromey <tromey@redhat.com>
4168 * utils.c (quit): Use target_supports_terminal_ours.
4169 * target.h (target_supports_terminal_ours): Declare.
4170 * target.c (target_supports_delete_record): Don't check
4171 to_delete_record against NULL.
4172 (target_supports_terminal_ours): New function.
4174 2014-07-18 Tom Tromey <tromey@redhat.com>
4177 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4178 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4179 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4180 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4181 * windows-nat.c (windows_xfer_partial): Always delegate.
4182 * record-btrace.c (record_btrace_xfer_partial): Simplify
4184 (record_btrace_fetch_registers, record_btrace_store_registers)
4185 (record_btrace_prepare_to_store, record_btrace_resume)
4186 (record_btrace_wait, record_btrace_find_new_threads)
4187 (record_btrace_thread_alive): Likewise.
4188 * procfs.c (procfs_xfer_partial): Always delegate.
4189 * corelow.c (core_xfer_partial): Always delegate.
4190 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4192 2014-07-18 Tom Tromey <tromey@redhat.com>
4194 * exec.c (exec_make_note_section): Move earlier.
4196 2014-07-17 Doug Evans <dje@google.com>
4199 * maint.c (count_symtabs_and_blocks): Handle NULL
4200 current_program_space.
4201 (report_command_stats): Check global enabled flag in addition to
4202 recorded enabled flag.
4203 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4205 2014-07-16 Pedro Alves <palves@redhat.com>
4207 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4209 2014-07-16 Tom Tromey <tromey@redhat.com>
4211 * target.h (struct target_ops) <to_delete_record>: Reformat
4214 2014-07-16 Tom Tromey <tromey@redhat.com>
4216 * target-delegates.c: Rebuild.
4218 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4220 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4221 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4222 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4223 (avr_pointer_to_address): Likewise.
4224 (avr_address_class_type_flags): New function.
4225 (avr_address_class_type_flags_to_name): Likewise.
4226 (avr_address_class_name_to_type_flags): Likewise.
4227 (avr_gdbarch_init): Set address_class_type_flags,
4228 address_class_type_flags_to_name and
4229 address_class_name_to_type_flags.
4231 2014-07-15 Pedro Alves <palves@redhat.com>
4233 * linux-nat.c (kill_callback): Save errno and work with saved
4236 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4238 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4240 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4242 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4243 breakpoint support correctly.
4245 2014-07-14 Pedro Alves <palves@redhat.com>
4247 * utils.c (prompt_for_continue): Call target_terminal_ours.
4249 2014-07-14 Pedro Alves <palves@redhat.com>
4251 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4252 catch_errors. Don't re-enable stdin or notify observers where,
4254 (fetch_inferior_event_wrapper): Delete.
4256 2014-07-14 Pedro Alves <palves@redhat.com>
4259 * top.c: Include "inf-loop.h".
4260 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4262 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4264 (gdb_readline_wrapper): Store whether the target is async, and
4267 2014-07-14 Pedro Alves <palves@redhat.com>
4270 * top.c (gdb_readline_wrapper_line): Tweak comment.
4271 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4272 the input handler callback.
4274 2014-07-14 Pedro Alves <palves@redhat.com>
4277 * main.c: Include event-top.h.
4278 (handle_command_errors): New function.
4279 (catch_command_errors, catch_command_errors_const): Use it.
4281 2014-07-14 Pedro Alves <palves@redhat.com>
4283 * exceptions.c (catch_command_errors, catch_command_errors_const):
4285 * exceptions.h (catch_command_errors_ftype)
4286 (catch_command_errors_const_ftype): Moved to main.c.
4287 (catch_command_errors, catch_command_errors_const): Delete
4289 * main.c (catch_command_errors_ftype)
4290 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4291 (catch_command_errors, catch_command_errors_const)): Moved here
4292 from exceptions.c and make static.
4294 2014-07-14 Pedro Alves <palves@redhat.com>
4296 * exceptions.c (print_any_exception): Delete.
4297 (catch_exceptions_with_msg): Use exception_print instead of
4298 print_any_exception.
4299 (catch_errors): Use exception_fprintf instead of
4300 print_any_exception.
4301 (catch_command_errors, catch_command_errors_const): Use
4302 exception_print instead of print_any_exception.
4304 2014-07-14 Pedro Alves <palves@redhat.com>
4306 * infcall.c (run_inferior_call): Set 'sync_execution' while
4307 running the inferior call.
4309 2014-07-14 Pedro Alves <palves@redhat.com>
4311 * value.c (value_contents_equal): Delete function.
4312 * value.h (value_contents_equal): Delete declaration.
4314 2014-07-14 Tom Tromey <tromey@redhat.com>
4317 * gdbtypes.c (is_dynamic_type_internal): New function, from
4319 (is_dynamic_type): Rewrite.
4320 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4321 (resolve_dynamic_struct): Likewise.
4322 (resolve_dynamic_type_internal): New function, from
4323 resolve_dynamic_type.
4324 (resolve_dynamic_type): Rewrite.
4326 2014-07-14 Tom Tromey <tromey@redhat.com>
4328 * target.c (target_require_runnable): Also check record_stratum.
4331 2014-07-11 Yao Qi <yao@codesourcery.com>
4333 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4334 thumb_instruction_restores_sp return true.
4336 2014-07-11 Yao Qi <yao@codesourcery.com>
4338 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4339 (thumb_in_function_epilogue_p): Call
4340 thumb_instruction_restores_sp.
4342 2014-07-11 Yao Qi <yao@codesourcery.com>
4344 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4346 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4348 2014-07-11 Gary Benson <gbenson@redhat.com>
4350 * amd64-linux-nat.c (gdbcore.h): Remove include.
4351 (regset.h): Likewise.
4352 (nat/linux-btrace.h): Likewise.
4353 (btrace.h): Likewise.
4354 (gdb_assert.h): Likewise.
4355 (string.h): Likewise.
4356 (sys/uio.h): Likewise.
4357 (sys/debugreg.h): Likewise.
4358 (sys/syscall.h): Likewise.
4359 (sys/procfs.h): Likewise.
4360 (sys/user.h): Likewise.
4361 (asm/ptrace.h): Likewise.
4362 (i386-nat.h): Likewise.
4363 * i386-linux-nat.c (i386-nat.h): Likewise.
4364 (regset.h): Likewise.
4365 (target.h): Likewise.
4366 (linux-nat.h): Likewise.
4367 (nat/linux-btrace.h): Likewise.
4368 (btrace.h): Likewise.
4369 (gdb_assert.h): Likewise.
4370 (string.h): Likewise.
4371 (sys/uio.h): Likewise.
4372 (sys/user.h): Likewise.
4373 (sys/procfs.h): Likewise.
4374 (sys/reg.h): Likewise.
4375 (sys/debugreg.h): Likewise.
4376 (ORIG_EAX): Remove definition.
4378 2014-07-11 Gary Benson <gbenson@redhat.com>
4380 * i386-linux-nat.h: New file.
4381 * x86-linux-nat.h: Likewise.
4382 * x86-linux-nat.c: Likewise.
4383 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4384 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4385 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4386 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4387 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4388 (PTRACE_SETREGSET): Likewise.
4389 (arch_lwp_info): Now in x86-linux-nat.c.
4390 (have_ptrace_getregset): Now in x86-linux-nat.h.
4391 (x86_linux_dr_get): Now in x86-linux-nat.c.
4392 (x86_linux_dr_set): Likewise.
4393 (x86_linux_dr_get_addr): Likewise.
4394 (x86_linux_dr_get_control): Likewise.
4395 (x86_linux_dr_get_status): Likewise.
4396 (update_debug_registers_callback): Likewise.
4397 (x86_linux_dr_set_control): Likewise.
4398 (x86_linux_dr_set_addr): Likewise.
4399 (x86_linux_prepare_to_resume): Likewise.
4400 (x86_linux_new_thread): Likewise.
4401 (x86_linux_new_fork): Likewise.
4402 (x86_linux_get_thread_area): Likewise.
4403 (super_post_startup_inferior): Likewise.
4404 (x86_linux_child_post_startup_inferior): Likewise.
4405 (AMD64_LINUX_USER64_CS): Likewise.
4406 (AMD64_LINUX_X32_DS): Likewise.
4407 (x86_linux_read_description): Likewise.
4408 (x86_linux_enable_btrace): Likewise.
4409 (x86_linux_disable_btrace): Likewise.
4410 (x86_linux_teardown_btrace): Likewise.
4411 (x86_linux_read_btrace): Likewise.
4412 (x86_linux_create_target): Likewise.
4413 (x86_linux_add_target): Likewise.
4414 * i386-linux-nat.c (x86-linux-nat.h): New include.
4415 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4416 (PTRACE_SETREGSET): Likewise.
4417 (arch_lwp_info): Now in x86-linux-nat.c.
4418 (have_ptrace_getregset): Now in x86-linux-nat.h.
4419 (x86_linux_dr_get): Now in x86-linux-nat.c.
4420 (x86_linux_dr_set): Likewise.
4421 (x86_linux_dr_get_addr): Likewise.
4422 (x86_linux_dr_get_control): Likewise.
4423 (x86_linux_dr_get_status): Likewise.
4424 (update_debug_registers_callback): Likewise.
4425 (x86_linux_dr_set_control): Likewise.
4426 (x86_linux_dr_set_addr): Likewise.
4427 (x86_linux_prepare_to_resume): Likewise.
4428 (x86_linux_new_thread): Likewise.
4429 (x86_linux_new_fork): Likewise.
4430 (x86_linux_get_thread_area): Likewise.
4431 (super_post_startup_inferior): Likewise.
4432 (x86_linux_child_post_startup_inferior): Likewise.
4433 (AMD64_LINUX_USER64_CS): Likewise.
4434 (AMD64_LINUX_X32_DS): Likewise.
4435 (x86_linux_read_description): Likewise.
4436 (x86_linux_enable_btrace): Likewise.
4437 (x86_linux_disable_btrace): Likewise.
4438 (x86_linux_teardown_btrace): Likewise.
4439 (x86_linux_read_btrace): Likewise.
4440 (x86_linux_create_target): Likewise.
4441 (x86_linux_add_target): Likewise.
4443 2014-07-11 Gary Benson <gbenson@redhat.com>
4445 * amd64-linux-nat.c: Comment and whitespace changes.
4446 * i386-linux-nat.c: Comment and whitespace changes.
4448 2014-07-11 Gary Benson <gbenson@redhat.com>
4450 * amd64-linux-nat.c (x86_linux_create_target): New function.
4451 (x86_linux_add_target): Likewise.
4452 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4453 * i386-linux-nat.c (x86_linux_create_target): New function.
4454 (x86_linux_add_target): Likewise.
4455 (_initialize_i386_linux_nat): Delegate to the above new functions.
4457 2014-07-11 Gary Benson <gbenson@redhat.com>
4459 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4460 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4461 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4462 (ps_get_thread_area): Delegate to the above.
4464 2014-07-11 Gary Benson <gbenson@redhat.com>
4466 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4467 x86_linux_read_description. All uses updated. amd64-specific
4468 code conditionalized. Conditionalized i386-specific code added.
4469 Redundant cast removed.
4470 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4471 x86_linux_read_description. All uses updated. i386-specific
4472 code conditionalized. Conditionalized amd64-specific code added.
4473 One sizeof replaced with the actual type it is describing.
4475 2014-07-11 Gary Benson <gbenson@redhat.com>
4477 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4478 x86_linux_dr_get. All uses updated.
4479 (amd64_linux_dr_set): Renamed to
4480 x86_linux_dr_set. All uses updated.
4481 (amd64_linux_dr_get_addr): Renamed to
4482 x86_linux_dr_get_addr. All uses updated.
4483 (amd64_linux_dr_get_control): Renamed to
4484 x86_linux_dr_get_control. All uses updated.
4485 (amd64_linux_dr_get_status): Renamed to
4486 x86_linux_dr_get_status. All uses updated.
4487 (amd64_linux_dr_set_control): Renamed to
4488 x86_linux_dr_set_control. All uses updated.
4489 (amd64_linux_dr_set_addr): Renamed to
4490 x86_linux_dr_set_addr. All uses updated.
4491 (amd64_linux_prepare_to_resume): Renamed to
4492 x86_linux_prepare_to_resume. All uses updated.
4493 (amd64_linux_new_thread): Renamed to
4494 x86_linux_new_thread. All uses updated.
4495 (amd64_linux_new_fork): Renamed to
4496 x86_linux_new_fork. All uses updated.
4497 (amd64_linux_child_post_startup_inferior): Renamed to
4498 x86_linux_child_post_startup_inferior. All uses updated.
4499 (amd64_linux_enable_btrace): Renamed to
4500 x86_linux_enable_btrace. All uses updated.
4501 (amd64_linux_disable_btrace): Renamed to
4502 x86_linux_disable_btrace. All uses updated.
4503 (amd64_linux_teardown_btrace): Renamed to
4504 x86_linux_teardown_btrace. All uses updated.
4505 (amd64_linux_read_btrace): Renamed to
4506 x86_linux_read_btrace. All uses updated.
4507 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4508 x86_linux_dr_get. All uses updated.
4509 (i386_linux_dr_set): Renamed to
4510 x86_linux_dr_set. All uses updated.
4511 (i386_linux_dr_get_addr): Renamed to
4512 x86_linux_dr_get_addr. All uses updated.
4513 (i386_linux_dr_get_control): Renamed to
4514 x86_linux_dr_get_control. All uses updated.
4515 (i386_linux_dr_get_status): Renamed to
4516 x86_linux_dr_get_status. All uses updated.
4517 (i386_linux_dr_set_control): Renamed to
4518 x86_linux_dr_set_control. All uses updated.
4519 (i386_linux_dr_set_addr): Renamed to
4520 x86_linux_dr_set_addr. All uses updated.
4521 (i386_linux_prepare_to_resume): Renamed to
4522 x86_linux_prepare_to_resume. All uses updated.
4523 (i386_linux_new_thread): Renamed to
4524 x86_linux_new_thread. All uses updated.
4525 (i386_linux_new_fork): Renamed to
4526 x86_linux_new_fork. All uses updated.
4527 (i386_linux_child_post_startup_inferior): Renamed to
4528 x86_linux_child_post_startup_inferior. All uses updated.
4529 (i386_linux_enable_btrace): Renamed to
4530 x86_linux_enable_btrace. All uses updated.
4531 (i386_linux_disable_btrace): Renamed to
4532 x86_linux_disable_btrace. All uses updated.
4533 (i386_linux_teardown_btrace): Renamed to
4534 x86_linux_teardown_btrace. All uses updated.
4535 (i386_linux_read_btrace): Renamed to
4536 x86_linux_read_btrace. All uses updated.
4538 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4540 * remote.c (extended_remote_post_attach): New function.
4541 (init_extended_remote_ops): Install it as to_post_attach method.
4543 2014-07-09 Pedro Alves <palves@redhat.com>
4545 * infcmd.c (attach_command_post_wait): Don't call
4546 target_terminal_inferior here.
4547 (attach_command): Call it here instead.
4549 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4551 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4553 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4554 from varobj.c, with additional checks.
4555 (c_varobj_ops): Fill in is_path_expr_parent field.
4556 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4557 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4559 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4561 (varobj_default_is_path_expr_parent): New function.
4562 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4563 (varobj_default_is_path_expr_parent): Declare new function.
4565 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4567 * infcmd.c (finish_backward): Turn internal error into normal error.
4569 2014-07-07 Pedro Alves <palves@redhat.com>
4572 * remote.c (async_handle_remote_sigint)
4573 (async_handle_remote_sigint_twice): Call
4574 gdb_call_async_signal_handler instead of
4575 mark_async_signal_handler.
4577 2014-07-07 Tom Tromey <tromey@redhat.com>
4579 * target-delegates.c: Rebuild.
4580 * target.c (target_info_record): Remove.
4581 * record.c (info_record_command): Unconditionally call
4583 * target.h (struct target_ops) <to_info_record>: Use
4584 TARGET_DEFAULT_IGNORE.
4585 (target_info_record): Remove.
4587 2014-07-07 Tom Tromey <tromey@redhat.com>
4589 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4590 TARGET_DEFAULT_NORETURN.
4591 * target.c (generic_tls_error): New function.
4592 (target_translate_tls_address): Don't search target stack.
4593 * target-delegates.c: Rebuild.
4594 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4596 * linux-thread-db.c (thread_db_get_thread_local_address):
4597 Unconditionally call beneath target.
4599 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4601 * cli/cli-logging.c (pop_output_files): Assign targerr to
4604 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4606 * MAINTAINERS (Write After Approval): Update my email address.
4608 2014-07-02 Gary Benson <gbenson@redhat.com>
4610 * proc-service.c (ps_xfer_memory): Update comment.
4611 (ps_pstop): Remove unused function.
4612 (ps_pcontinue): Likewise.
4613 (ps_lstop): Likewise.
4614 (ps_lcontinue): Likewise.
4615 (ps_lgetxregsize): Likewise.
4616 (ps_lgetxregs): Likewise.
4617 (ps_lsetxregs): Likewise.
4618 (ps_plog): Likewise.
4619 (ps_ptread): Likewise.
4620 (ps_ptwrite): Likewise.
4622 2014-07-01 Mark Wielaard <mjw@redhat.com>
4624 * dwarf2read.c (add_array_cv_type): New function.
4625 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4626 (read_tag_volatile_type): Likewise.
4628 2014-07-01 Tom Tromey <tromey@redhat.com>
4630 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4631 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4632 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4633 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4634 * command.h (cmd_cfunc_ftype): Move earlier.
4635 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4636 (add_com, add_info): Use cmd_cfunc_ftype.
4638 2014-06-30 Tom Tromey <tromey@redhat.com>
4640 * symtab.c (operator_chars): Make parameters and return type
4642 (file_matches): Make "files" const.
4643 (struct search_symbols_data) <files>: Now const.
4644 (search_symbols): Make "regexp" and "files" parameters const.
4646 (symtab_symbol_info): Remove cast.
4647 (rbreak_command): Update.
4648 * symtab.h (search_symbols): Update.
4650 2014-06-27 Yao Qi <yao@codesourcery.com>
4652 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4653 Change parameter type to 'struct thread_info *'. Caller
4655 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4657 * dummy-frame.c (struct dummy_frame_id): New.
4658 (dummy_frame_id_eq): New function.
4659 (struct dummy_frame) <id>: Change its type to 'struct
4661 (dummy_frame_push): Add parameter ptid and save it in
4663 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4665 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4667 (lookup_dummy_frame): Change parameter type to 'struct
4668 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4669 instead of frame_id_eq.
4670 (dummy_frame_pop): Add parameter ptid. Callers updated.
4671 Update comments. Compose dummy_frame_id and pass it to
4673 (dummy_frame_discard): Add parameter ptid.
4674 (dummy_frame_sniffer): Compose dummy_frame_id and call
4675 dummy_frame_id_eq instead of frame_id_eq.
4676 (fprint_dummy_frames): Print ptid.
4677 * dummy-frame.h: Remove comments.
4678 (dummy_frame_push): Add ptid in declaration.
4679 (dummy_frame_pop, dummy_frame_discard): Likewise.
4681 2014-06-26 Tom Tromey <tromey@redhat.com>
4683 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4684 * command.h (error_no_arg): Update.
4686 2014-06-26 Tom Tromey <tromey@redhat.com>
4688 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4689 (do_show_command): Make "arg" const.
4690 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4692 2014-06-26 Tom Tromey <tromey@redhat.com>
4694 * record-full.c (record_full_get_bookmark): Make "args" const.
4695 (record_full_goto_bookmark): Make "raw_bookmark" const.
4696 * record.c (record_goto): New function.
4697 (cmd_record_goto): Use it. Now static.
4698 * record.h (record_goto): Declare.
4699 (cmd_record_goto): Remove declaration.
4700 * target-delegates.c: Rebuild.
4701 * target.h (struct target_ops) <to_get_bookmark,
4702 to_goto_bookmark>: Make parameter const.
4704 2014-06-26 Tom Tromey <tromey@redhat.com>
4706 * defs.h (generic_load): Update.
4707 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4708 * monitor.c (monitor_load): Make "args" const.
4709 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4710 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4712 (mips_load): Make "file" const.
4713 * remote-sim.c (gdbsim_load): Make "args" const.
4714 * remote.c (remote_load): Make "name" const.
4715 * symfile.c (generic_load): Make "args" const.
4716 * target-delegates.c: Rebuild.
4717 * target.c (target_load): Make "arg" const.
4718 (debug_to_load): Make "args" const.
4719 * target.h (struct target_ops) <to_load>: Make parameter const.
4720 (target_load): Update.
4722 2014-06-26 Tom Tromey <tromey@redhat.com>
4725 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4726 (dwarf2_physname, read_partial_die)
4727 (guess_partial_die_structure_name, fixup_partial_die)
4728 (guess_full_die_structure_name, anonymous_struct_prefix)
4729 (dwarf2_name): Use per-BFD obstack.
4731 2014-06-26 Yao Qi <yao@codesourcery.com>
4733 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4734 dummyframe and this_id into inner block below.
4736 2014-06-26 Yao Qi <yao@codesourcery.com>
4738 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4739 with "signal_pass[0]" in the initialization of signal_pass.
4741 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4743 * record-btrace.c (record_btrace_generating_corefile)
4744 (record_btrace_prepare_to_generate_core)
4745 (record_btrace_done_generating_core): New.
4746 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4747 (record_btrace_store_registers, record_btrace_prepare_to_store):
4748 Forward request when generating a core file.
4749 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4750 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4751 to_done_generating_core.
4753 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4755 * target.h (target_ops) <to_prepare_to_generate_core>
4756 <to_done_generating_core>: New.
4757 (target_prepare_to_generate_core, target_done_generating_core): New.
4758 * target.c (target_prepare_to_generate_core)
4759 (target_done_generating_core): New.
4760 * target-delegates.c: Regenerate.
4761 * gcore.c: (write_gcore_file): Rename to ...
4762 (write_gcore_file_1): ...this.
4763 (write_gcore_file): Call target_prepare_to_generate_core
4764 and target_done_generating_core.
4766 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4768 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4769 * gcore.c (write_gcore_file): Free memory returned from
4770 make_corefile_notes.
4771 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4772 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4774 2014-06-24 Yao Qi <yao@codesourcery.com>
4776 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4777 (arm_linux_init_abi): Set skip_trampoline_code with
4778 gdbarch_skip_trampoline_code instead of
4779 find_solib_trampoline_target.
4781 2014-06-24 Yao Qi <yao@codesourcery.com>
4783 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4784 arm_skip_bx_reg returns non-zero.
4786 2014-06-24 Yao Qi <yao@codesourcery.com>
4788 * arm-tdep.c (arm_skip_bx_reg): New function.
4789 (arm_skip_stub): Call arm_skip_bx_reg.
4791 2014-06-23 Don Breazeal <donb@codesourcery.com>
4793 * MAINTAINERS: Add myself as write-after-approval maintainer.
4795 2014-06-23 Pedro Alves <palves@redhat.com>
4797 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4798 DR_CONTROL before setting DR0..DR3.
4799 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4800 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4801 bits of DR_CONTROL related to the debug register slot being
4802 disabled. If all slots are vacant, clear local slowdown as well,
4803 and assert DR_CONTROL is 0.
4805 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4807 * python/lib/gdb/command/xmethods.py
4808 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4809 current progspace only if the string "progspace" matches LOCUS_RE.
4811 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4813 Fix --with-system-readline with readline-6.3 patch 5.
4814 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4815 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4818 2014-06-20 Tom Tromey <tromey@redhat.com>
4820 * dwarf2read.c (dw2_get_real_path): Use correct type in
4822 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4824 2014-06-20 Gary Benson <gbenson@redhat.com>
4826 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4827 * common/glibc_thread_db.h: Likewise.
4828 * common/i386-cpuid.h: Likewise.
4829 * common/i386-gcc-cpuid.h: Likewise.
4830 * common/linux-btrace.h: Likewise.
4831 * common/linux-osdata.h: Likewise.
4832 * common/linux-procfs.h: Likewise.
4833 * common/linux-ptrace.h: Likewise.
4834 * common/mips-linux-watch.h: Likewise.
4835 * common/linux-btrace.c: Moved to nat.
4836 * common/linux-osdata.c: Likewise.
4837 * common/linux-procfs.c: Likewise.
4838 * common/linux-ptrace.c: Likewise.
4839 * common/mips-linux-watch.c: Likewise.
4840 * nat/gdb_thread_db.h: Moved from common.
4841 * nat/glibc_thread_db.h: Likewise.
4842 * nat/i386-cpuid.h: Likewise.
4843 * nat/i386-gcc-cpuid.h: Likewise.
4844 * nat/linux-btrace.c: Likewise.
4845 * nat/linux-btrace.h: Likewise.
4846 * nat/linux-osdata.c: Likewise.
4847 * nat/linux-osdata.h: Likewise.
4848 * nat/linux-procfs.c: Likewise.
4849 * nat/linux-procfs.h: Likewise.
4850 * nat/linux-ptrace.c: Likewise.
4851 * nat/linux-ptrace.h: Likewise.
4852 * nat/mips-linux-watch.c: Likewise.
4853 * nat/mips-linux-watch.h: Likewise.
4854 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4855 (object file files): Reordered.
4856 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4857 of glibc_thread_db.h.
4859 2014-06-20 Gary Benson <gbenson@redhat.com>
4861 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4862 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4863 (i386_dr_low): Likewise.
4864 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4865 (i386_dr_low_set_addr): Likewise.
4866 (i386_dr_low_get_addr): Likewise.
4867 (i386_dr_low_can_set_control): Likewise.
4868 (i386_dr_low_set_control): Likewise.
4869 (i386_dr_low_get_control): Likewise.
4870 (i386_dr_low_get_status): Likewise.
4871 (i386_get_debug_register_length): Likewise.
4872 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4873 (i386_dr_low): Likewise.
4874 * nat/i386-dregs.c (i386-low.h): Remove include.
4875 (i386-nat.h): Likewise.
4876 (nat/i386-dregs.h): New include.
4877 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4878 (i386_dr_low_set_addr): Likewise.
4879 (i386_dr_low_get_addr): Likewise.
4880 (i386_dr_low_can_set_control): Likewise.
4881 (i386_dr_low_set_control): Likewise.
4882 (i386_dr_low_get_control): Likewise.
4883 (i386_dr_low_get_status): Likewise.
4884 (i386_get_debug_register_length): Likewise.
4885 (debug_hw_points): Likewise.
4887 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4889 * Makefile.in (SFILES): Add d-exp.y.
4890 (YYFILES): Add d-exp.c.
4891 (YYOBJ): Add d-exp.o.
4892 (local-maintainer-clean): Delete d-exp.c.
4893 * d-exp.y: New file.
4894 * d-lang.h (d_parse): New declaration.
4895 (d_error): New declaration.
4896 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4897 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4898 PREC_ORDER operators.
4899 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4901 2014-06-19 Yao Qi <yao@codesourcery.com>
4903 * gdbthread.h (any_running): Remove the declaration.
4904 * thread.c (any_running): Remove.
4906 2014-06-19 Yao Qi <yao@codesourcery.com>
4908 * gdbthread.h (struct thread_info) <state>: Change its type to
4909 'enum thread_state'. Update comments.
4911 2014-06-19 Pedro Alves <palves@redhat.com>
4913 * gdbthread.h (ALL_THREADS): Delete.
4914 (ALL_NON_EXITED_THREADS): New macro.
4915 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4916 instead of ALL_THREADS.
4917 * infrun.c (find_thread_needs_step_over)
4918 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4919 instead of ALL_THREADS.
4920 * record-btrace.c (record_btrace_open)
4921 (record_btrace_stop_recording, record_btrace_close)
4922 (record_btrace_is_replaying, record_btrace_resume)
4923 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4924 * remote.c (append_pending_thread_resumptions): Likewise.
4925 * thread.c (thread_apply_all_command): Likewise.
4927 2014-06-19 Gary Benson <gbenson@redhat.com>
4929 * i386-nat.c (i386_stopped_by_watchpoint):
4930 Use i386_dr_stopped_by_watchpoint.
4931 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4932 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4934 2014-06-19 Gary Benson <gbenson@redhat.com>
4936 * nat/i386-dregs.c: New file.
4937 * Makefile.in (i386-dregs.o): New rule.
4938 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4939 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4940 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4941 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4942 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4943 * config/i386/go32.mh (NATDEPFILES): Likewise.
4944 * config/i386/linux.mh (NATDEPFILES): Likewise.
4945 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4946 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4947 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4948 * i386-nat.h (debug_hw_points): New declaration.
4949 * i386-nat.c (breakpoint.h): Remove include.
4950 (command.h): Likewise.
4951 (target.h): Likewise.
4952 (gdb_assert.h): Likewise.
4953 (debug_hw_points): Made nonstatic.
4954 (debug_printf): Now in i386-dregs.c.
4955 (TARGET_HAS_DR_LEN_8): Likewise.
4956 (DR_CONTROL_SHIFT): Likewise.
4957 (DR_CONTROL_SIZE): Likewise.
4958 (DR_RW_EXECUTE): Likewise.
4959 (DR_RW_WRITE): Likewise.
4960 (DR_RW_READ): Likewise.
4961 (DR_RW_IORW): Likewise.
4962 (DR_LEN_1): Likewise.
4963 (DR_LEN_2): Likewise.
4964 (DR_LEN_4): Likewise.
4965 (DR_LEN_8): Likewise.
4966 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4967 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4968 (DR_ENABLE_SIZE): Likewise.
4969 (DR_LOCAL_SLOWDOWN): Likewise.
4970 (DR_GLOBAL_SLOWDOWN): Likewise.
4971 (DR_CONTROL_RESERVED): Likewise.
4972 (I386_DR_CONTROL_MASK): Likewise.
4973 (I386_DR_VACANT): Likewise.
4974 (I386_DR_LOCAL_ENABLE): Likewise.
4975 (I386_DR_GLOBAL_ENABLE): Likewise.
4976 (I386_DR_DISABLE): Likewise.
4977 (I386_DR_SET_RW_LEN): Likewise.
4978 (I386_DR_GET_RW_LEN): Likewise.
4979 (I386_DR_WATCH_HIT): Likewise.
4980 (i386_wp_op_t): Likewise.
4981 (i386_show_dr): Likewise.
4982 (i386_length_and_rw_bits): Likewise.
4983 (i386_insert_aligned_watchpoint): Likewise.
4984 (i386_remove_aligned_watchpoint): Likewise.
4985 (i386_handle_nonaligned_watchpoint): Likewise.
4986 (i386_update_inferior_debug_regs): Likewise.
4987 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4988 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4989 (i386_region_ok_for_watchpoint):
4990 Use i386_dr_region_ok_for_watchpoint.
4991 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4993 2014-06-19 Gary Benson <gbenson@redhat.com>
4995 * i386-nat.c (i386_insert_hw_breakpoint): Use
4996 i386_insert_watchpoint.
4997 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4999 2014-06-19 Gary Benson <gbenson@redhat.com>
5001 * i386-nat.c (i386_dr_show): Renamed to
5002 i386_show_dr and made static. All uses updated.
5003 (i386_dr_length_and_rw_bits): Renamed to
5004 i386_length_and_rw_bits and made static.
5006 (i386_dr_insert_aligned_watchpoint): Renamed to
5007 i386_insert_aligned_watchpoint and made static.
5009 (i386_dr_remove_aligned_watchpoint): Renamed to
5010 i386_remove_aligned_watchpoint and made static.
5012 (i386_dr_update_inferior_debug_regs): Renamed to
5013 i386_update_inferior_debug_regs and made static.
5015 * nat/i386-dregs.h (i386_dr_show): Removed.
5016 (i386_dr_length_and_rw_bits): Likewise.
5017 (i386_dr_insert_aligned_watchpoint): Likewise.
5018 (i386_dr_remove_aligned_watchpoint): Likewise.
5019 (i386_dr_update_inferior_debug_regs): Likewise.
5021 2014-06-19 Gary Benson <gbenson@redhat.com>
5023 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5024 * configure: Regenerate.
5025 * config.in: Likewise.
5026 * main.c (signal.h): New include.
5027 (setup_alternate_signal_stack): New function.
5028 (captured_main): Call the above.
5029 * cp-support.c (signal.h): New include.
5030 (catch_demangler_crashes): New flag.
5031 (SIGJMP_BUF): New define.
5032 (SIGSETJMP): Likewise.
5033 (SIGLONGJMP): Likewise.
5034 (gdb_demangle_jmp_buf): New static global.
5035 (gdb_demangle_attempt_core_dump): Likewise.
5036 (gdb_demangle_signal_handler): New function.
5037 (gdb_demangle): If catch_demangler_crashes is set, install the
5038 above signal handler before calling bfd_demangle, and restore
5039 the original signal handler afterwards. Display the offending
5040 symbol and call demangler_warning the first time a segmentation
5042 (_initialize_cp_support): New maint set/show command.
5044 2014-06-19 Gary Benson <gbenson@redhat.com>
5046 * utils.h (resource_limit_kind): New enum.
5047 (can_dump_core): New declaration.
5048 (warn_cant_dump_core): Likewise.
5049 (dump_core): Likewise.
5050 * utils.c (dump_core): Made nonstatic. Added new
5051 parameter "limit_kind".
5052 (can_dump_core): Made nonstatic. Moved printing code to...
5053 (warn_cant_dump_core): New function.
5054 (can_dump_core_warn): Likewise.
5055 (internal_vproblem): Replace calls to can_dump_core with
5056 calls to can_dump_core_warn. Supply new argument to each.
5058 2014-06-19 Gary Benson <gbenson@redhat.com>
5060 * utils.h (demangler_vwarning): New declaration.
5061 (demangler_warning): Likewise.
5062 * utils.c (struct internal_problem)
5063 <user_settable_should_quit>: New field.
5064 <user_settable_should_dump_core>: Likewise
5065 (internal_error_problem): Add values for above new fields.
5066 (internal_warning_problem): Likewise.
5067 (demangler_warning_problem): New static global.
5068 (demangler_vwarning): New function.
5069 (demangler_warning): Likewise.
5070 (add_internal_problem_command): Selectively add commands.
5071 (_initialize_utils): New internal problem command.
5072 * maint.c (maintenance_demangler_warning): New function.
5073 (_initialize_maint_cmds): New command.
5075 2014-06-18 Tom Tromey <tromey@redhat.com>
5077 * f-valprint.c (info_common_command_for_block): Update.
5078 * symtab.h (struct general_symbol_info) <common_block>: Now
5081 2014-06-18 Tom Tromey <tromey@redhat.com>
5083 * symtab.h (struct symtab) <blockvector>: Now const.
5084 * ada-lang.c (ada_add_global_exceptions): Update.
5085 * buildsym.c (augment_type_symtab): Update.
5086 * dwarf2read.c (dw2_lookup_symbol): Update.
5087 * jit.c (finalize_symtab): Update.
5088 * jv-lang.c (add_class_symtab_symbol): Update.
5089 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5091 * objfiles.c (objfile_relocate1): Update.
5092 * psymtab.c (lookup_symbol_aux_psymtabs)
5093 (maintenance_check_psymtabs): Update.
5094 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5096 * spu-tdep.c (spu_catch_start): Update.
5097 * symmisc.c (dump_symtab_1): Update.
5098 * symtab.c (lookup_global_symbol_from_objfile)
5099 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5100 (basic_lookup_transparent_type_quick)
5101 (basic_lookup_transparent_type, find_pc_sect_symtab)
5102 (find_pc_sect_line, search_symbols): Update.
5103 * block.c (find_block_in_blockvector): Make "bl" const.
5104 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5106 (blockvector_contains_pc): Make "bv" const.
5107 (block_for_pc_sect): Update.
5108 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5109 (blockvector_contains_pc): Update.
5110 * breakpoint.c (resolve_sal_pc): Update.
5111 * inline-frame.c (block_starting_point_at): Update.
5113 2014-06-18 Tom Tromey <tromey@redhat.com>
5115 * completer.c (complete_line): Make "line_buffer" const.
5116 * completer.h (complete_line): Update.
5118 2014-06-18 Tom Tromey <tromey@redhat.com>
5120 * symtab.c (add_macro_name): Remove unneeded cast.
5122 2014-06-18 Tom Tromey <tromey@redhat.com>
5124 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5125 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5127 2014-06-18 Tom Tromey <tromey@redhat.com>
5129 * probe.c (info_probes_for_ops): Make "arg" const.
5130 * probe.h (info_probes_for_ops): Update.
5132 2014-06-18 Tom Tromey <tromey@redhat.com>
5134 * varobj.c (varobj_create): Update.
5135 * valops.c (value_of_this): Update.
5136 * tracepoint.c (add_local_symbols, scope_info): Update.
5137 * symtab.h (struct general_symbol_info) <block>: Now const.
5138 * symtab.c (skip_prologue_sal)
5139 (default_make_symbol_completion_list_break_on)
5140 (skip_prologue_using_sal): Update.
5141 * stack.h (iterate_over_block_locals)
5142 (iterate_over_block_local_vars): Update.
5143 * stack.c (print_frame_args): Update.
5144 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5146 (get_selected_block): Make return type const.
5147 * python/py-frame.c (frapy_block): Update.
5148 * python/py-block.c (gdbpy_block_for_pc): Update.
5149 * p-exp.y (%union) <bval>: Now const.
5150 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5151 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5152 * m2-exp.y (%union) <bval>: Now const.
5153 * linespec.c (get_current_search_block): Make return type const.
5154 (create_sals_line_offset, find_label_symbols): Update.
5155 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5157 (block_starting_point_at): Make "block" const.
5158 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5159 (check_exception_resume): Update.
5160 * guile/scm-frame.c (gdbscm_frame_block): Update.
5161 * guile/scm-block.c (gdbscm_lookup_block): Update.
5162 * frame.h (get_frame_block): Update.
5163 (get_selected_block): Make return type const.
5164 * frame.c (frame_id_inner): Update.
5165 * f-valprint.c (info_common_command_for_block)
5166 (info_common_command): Update.
5167 * dwarf2loc.c (dwarf2_find_location_expression)
5168 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5169 (locexpr_describe_location_piece): Update.
5170 * c-exp.y (%union) <bval>: Now const.
5171 * breakpoint.c (resolve_sal_pc): Update.
5172 * blockframe.c (get_frame_block):Make return type const.
5173 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5174 (block_innermost_frame): Update.
5175 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5176 (block_for_pc, block_for_pc_sect): Update.
5177 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5179 (block_for_pc_sect, block_for_pc): Make return type const.
5180 * ax-gdb.c (gen_expr): Update.
5181 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5182 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5183 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5184 (ada_read_var_value): Update.
5185 * ada-exp.y (struct name_info) <block>: Now const.
5187 (block_lookup): Constify.
5189 2014-06-18 Gary Benson <gbenson@redhat.com>
5191 * nat/i386-dregs.h: New file.
5192 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5193 * i386-nat.h (i386-dregs.h): New include.
5194 (DR_FIRSTADDR): Now in i386-dregs.h.
5195 (DR_LASTADDR): Likewise.
5196 (DR_NADDR): Likewise.
5197 (DR_STATUS): Likewise.
5198 (DR_CONTROL): Likewise.
5199 (i386_debug_reg_state): Likewise.
5200 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5202 2014-06-18 Don Breazeal <donb@codesourcery.com>
5204 * breakpoint.c (set_longjmp_breakpoint): Call
5205 momentary_breakpoint_from_master with additional argument.
5206 (set_longjmp_breakpoint_for_call_dummy): Call
5207 momentary_breakpoint_from_master with additional argument.
5208 (set_std_terminate_breakpoint): Call
5209 momentary_breakpoint_from_master with additional argument.
5210 (momentary_breakpoint_from_master): Add argument to function
5211 definition and use it to initialize structure member flag.
5212 (clone_momentary_breakpoint): Call
5213 momentary_breakpoint_from_master with additional argument.
5214 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5215 member flags set in momentary_breakpoint_from_master.
5217 2014-06-18 Gary Benson <gbenson@redhat.com>
5219 * i386-nat.c (i386_show_dr): Renamed to
5220 i386_dr_show and made nonstatic. All uses updated.
5221 (i386_length_and_rw_bits): Renamed to
5222 i386_dr_length_and_rw_bits and made nonstatic.
5224 (i386_insert_aligned_watchpoint): Renamed to
5225 i386_dr_insert_aligned_watchpoint and made nonstatic.
5227 (i386_remove_aligned_watchpoint): Renamed to
5228 i386_dr_remove_aligned_watchpoint and made nonstatic.
5230 (i386_update_inferior_debug_regs): Renamed to
5231 i386_dr_update_inferior_debug_regs and made nonstatic.
5234 2014-06-18 Gary Benson <gbenson@redhat.com>
5236 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5237 (i386_dr_low_can_set_control): Likewise.
5238 (i386_dr_low_set_addr): Likewise.
5239 (i386_dr_low_set_control): Likewise.
5240 (i386_dr_low_get_addr): Likewise.
5241 (i386_dr_low_get_status): Likewise.
5242 (i386_dr_low_get_control): Likewise.
5243 (i386_insert_aligned_watchpoint): Use new macros.
5244 (i386_update_inferior_debug_regs): Likewise.
5245 (i386_stopped_data_address): Likewise.
5247 2014-06-18 Gary Benson <gbenson@redhat.com>
5249 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5250 New parameter. All uses updated.
5252 2014-06-18 Gary Benson <gbenson@redhat.com>
5254 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5257 2014-06-18 Gary Benson <gbenson@redhat.com>
5259 * i386-nat.c (debug_printf): New macro.
5260 (i386_get_debug_register_length): Likewise.
5261 (TARGET_HAS_DR_LEN_8): Use above macro.
5262 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5263 and printf_unfiltered. Use phex to format values.
5265 2014-06-18 Gary Benson <gbenson@redhat.com>
5267 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5270 2014-06-18 Gary Benson <gbenson@redhat.com>
5272 * i386-nat.c: Comment changes.
5274 2014-06-18 Gary Benson <gbenson@redhat.com>
5276 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5278 2014-06-18 Gary Benson <gbenson@redhat.com>
5280 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5281 (i386_insert_aligned_watchpoint): Likewise.
5282 (i386_remove_aligned_watchpoint): Likewise.
5283 (i386_handle_nonaligned_watchpoint): Likewise.
5285 2014-06-18 Gary Benson <gbenson@redhat.com>
5287 * i386-nat.c: Whitespace changes.
5289 2014-06-17 Samuel Bronson <naesten@gmail.com>
5291 * MAINTAINERS: Update Roland McGrath's email address.
5292 Thanks to Sergio Durigan Junior for pointing out that he left
5293 Red Hat a while ago, and giving me a current address.
5295 2014-06-17 Tom Tromey <tromey@redhat.com>
5297 * utils.h (savestring): Remove declaration.
5299 2014-06-17 Tom Tromey <tromey@redhat.com>
5301 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5303 2014-06-16 Keith Seitz <keiths@redhat.com>
5306 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5307 to update the varobj if inferior_ptid is null_ptid.
5309 2014-06-16 Tom Tromey <tromey@redhat.com>
5311 * target.h (struct target_ops) <to_info_proc>: Make parameter
5313 (target_info_proc): Update.
5314 * target.c (target_info_proc): Make "args" const.
5315 * procfs.c (procfs_info_proc): Update.
5316 * linux-tdep.c (linux_info_proc): Update.
5317 (linux_core_info_proc_mappings): Make "args" const.
5318 (linux_core_info_proc): Update.
5319 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5320 * gdbarch.c: Rebuild.
5321 * gdbarch.h: Rebuild.
5322 * corelow.c (core_info_proc): Update.
5324 2014-06-16 Tom Tromey <tromey@redhat.com>
5326 * target.h (struct target_ops) <to_disconnect>: Make parameter
5328 (target_disconnect): Update.
5329 * target.c (target_disconnect): Make "args" const.
5330 * target-delegates.c: Rebuild.
5331 * remote.c (remote_disconnect): Update.
5332 * record.h (record_disconnect): Update.
5333 * record.c (record_disconnect): Update.
5334 * inf-child.c (inf_child_disconnect): Update.
5336 2014-06-16 Tom Tromey <tromey@redhat.com>
5338 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5339 * target.c (debug_to_rcmd, default_rcmd): Update.
5340 * target-delegates.c: Rebuild.
5341 * remote.c (remote_rcmd): Update.
5342 * monitor.c (monitor_rcmd): Update.
5344 2014-06-16 Pedro Alves <palves@redhat.com>
5346 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5347 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5348 have OBJF_SHARED set.
5349 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5350 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5351 instead of OBJF_USERLOADED.
5352 * objfiles.h (OBJF_SHARED): Update comment.
5353 (userloaded_objfile_contains_address_p): Rename to ...
5354 (shared_objfile_contains_address_p): ... this, and update
5356 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5358 (remove_symbol_file_command): Skip objfiles that don't have
5361 2014-06-16 Tom Tromey <tromey@redhat.com>
5363 * minsyms.h (prim_record_minimal_symbol)
5364 (prim_record_minimal_symbol_and_info): Update comments.
5366 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5368 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5369 or --without-guile, according to how GDB was built.
5371 2014-06-13 Tom Tromey <tromey@redhat.com>
5373 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5375 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5377 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5379 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5380 help_list.Pass all_commands, not -1, to help_list.
5381 * cli/cli-dump.c (dump_command, append_command)
5382 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5383 (binary_dump_command, binary_append_command): Pass all_commands,
5384 not -1, to help_list.
5385 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5387 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5389 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5391 * top.c (set_history): Pass all_commands, not -1, to help_list.
5392 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5393 all_commands, not -1, to help_list.
5394 * symfile.c (overlay_command): Pass all_commands, not -1, to
5396 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5398 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5400 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5402 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5403 not -1, to help_list.
5404 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5405 not -1, to help_list.
5406 * maint.c (maintenance_command, maintenance_info_command)
5407 (maintenance_print_command, maintenance_set_cmd): Pass
5408 all_commands, not -1, to help_list.
5409 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5411 * language.c (set_check): Pass all_commands, not -1, to help_list.
5412 * infcmd.c (unset_command): Pass all_commands, not -1, to
5414 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5416 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5418 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5420 * breakpoint.c (save_command): Pass all_commands, not -1, to
5422 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5423 all_commands, not -1, to help_list.
5425 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5427 * regcache.c (struct register_to_invalidate): New structure.
5428 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5430 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5432 2014-06-12 Yao Qi <yao@codesourcery.com>
5434 * varobj.c (varobj_get_num_children): Call
5435 varobj_is_dynamic_p.
5436 (varobj_list_children): Likewise.
5437 (varobj_update): Likewise. Update comments.
5439 2014-06-12 Yao Qi <yao@codesourcery.com>
5441 * varobj.c (varobj_pretty_printed_p): Rename to ...
5442 (varobj_is_dynamic_p): ... this. New function.
5443 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5444 (varobj_is_dynamic_p): Declare.
5445 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5446 (mi_print_value_p, varobj_update_one): Likewise.
5448 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5449 Yao Qi <yao@codesourcery.com>
5451 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5452 (varobj_get_iterator): Wrap up code for pretty-printer by
5453 "#if HAVE_PYTHON" and "#endif".
5454 (update_dynamic_varobj_children): Likewise.
5456 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5457 Yao Qi <yao@codesourcery.com>
5459 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5460 gdb_python_initialized is false. Move some code from varobj.c.
5461 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5462 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5463 (struct varobj_item): Moved to varobj-iter.h".
5464 (varobj_clear_saved_item): New function.
5465 (update_dynamic_varobj_children): Move python-related code to
5467 (free_variable): Call varobj_clear_saved_item and
5470 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5471 Yao Qi <yao@codesourcery.com>
5473 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5474 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5475 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5476 (py-varobj.o): New rule.
5477 * python/py-varobj.c: New file.
5478 * python/python-internal.h (py_varobj_get_iterator): Declare.
5479 * varobj-iter.h: New file.
5480 * varobj.c: Include "varobj-iter.h"
5481 (struct varobj) <child_iter>: Change its type from "PyObject *"
5482 to "struct varobj_iter *".
5483 <saved_item>: Likewise.
5484 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5485 [HAVE_PYTHON] (varobj_get_iterator): New function.
5486 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5487 python-specific code to python/py-varobj.c.
5488 (install_visualizer): Call varobj_iter_delete instead of
5490 * varobj.h (varobj_ensure_python_env): Declare.
5492 2014-06-12 Yao Qi <yao@codesourcery.com>
5494 * varobj.c (struct varobj_item): New structure.
5495 (create_child_with_value): Update declaration.
5496 (varobj_add_child): Replace arguments 'name' and 'value' with
5497 'item'. All callers updated.
5498 (install_dynamic_child): Likewise.
5499 (update_dynamic_varobj_children): Likewise.
5500 (varobj_add_child): Likewise.
5501 (create_child_with_value): Likewise.
5503 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5505 * NEWS: Create a new section for the next release branch.
5506 Rename the section of the current branch, now that it has
5509 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5511 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5512 * version.in: Bump version to 7.8.50.DATE-cvs.
5514 2014-06-11 Pedro Alves <palves@redhat.com>
5517 * ser-mingw.c (net_windows_socket_check_pending): New function.
5518 (net_windows_select_thread): Ignore spurious wakeups. Use
5519 net_windows_socket_check_pending.
5520 (net_windows_wait_handle): Check for pending events with
5521 ioctlsocket, through net_windows_socket_check_pending, instead of
5522 checking the socket's event.
5524 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5526 * python/python-internal.h (gdb_PyObject_GetAttrString)
5527 (gdb_PyObject_HasAttrString): New inline function definitions.
5528 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5529 char * of the second argument to PyObject_GetAttrString.
5531 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5533 * serial.c (serial_write): Fix index of character to be printed
5534 in call to serial_logchar when serial debug traces are enabled.
5536 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5538 * gdbtypes (resolve_dynamic_range): Add function description.
5540 2014-06-09 Pedro Alves <palves@redhat.com>
5542 * linux-nat.c (linux_child_follow_fork): Initialize status with
5543 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5544 inner block. Only pass the signal to PTRACE_DETACH if in pass
5547 2014-06-09 Gary Benson <gbenson@redhat.com>
5549 * common/signals.c (gdb_signal_from_host): Reorder to separate
5550 the always-available ANSI-standard signals from the signals that
5552 (do_gdb_signal_to_host): Likewise.
5553 * proc-events.c (signal_table): Likewise.
5555 2014-06-08 Hui Zhu <hui@codesourcery.com>
5557 * common/linux-ptrace.c (linux_disable_event_reporting): New
5559 * common/linux-ptrace.h (linux_disable_event_reporting): New
5561 * linux-nat.c (linux_child_follow_fork): Do a single step before
5564 2014-06-07 Keith Seitz <keiths@redhat.com>
5568 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5569 from symbol_matches_domain in symtab.c. All local callers
5570 of symbol_matches_domain updated.
5571 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5572 search STRUCT_DOMAIN.
5573 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5574 independently. standard_lookup will do that automatically.
5575 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5576 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5577 (cp_lookup_symbol_in_namespace): Likewise.
5578 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5579 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5580 may return a STRUCT_DOMAIN match.
5581 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5582 * cp-support.c: Include language.h.
5583 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5585 * psymtab.c (match_partial_symbol): Compare the requested
5586 domain with the symbol's domain directly.
5587 (lookup_partial_symbol): Likewise.
5588 * symtab.c (lookup_symbol_in_language): Explain when/why
5589 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5590 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5591 appropriate languages.
5592 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5593 and moved to ada-lang.c
5594 (lookup_block_symbol): Explain that this function only returns
5595 symbol matching the requested DOMAIN.
5596 Compare the requested domain with the symbol's domain directly.
5597 (iterate_over_symbols): Compare the requested domain with the
5598 symbol's domain directly.
5599 * symtab.h (symbol_matches_domain): Remove.
5601 2014-06-06 Doug Evans <xdje42@gmail.com>
5603 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5604 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5605 (gdbscm_guile_version_is_at_least): Declare.
5606 (gdbscm_scm_string_to_int): Declare.
5607 * guile/guile.c (gdbscm_guile_major_version): New global.
5608 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5609 (guile_datadir): New static global.
5610 (gdbscm_guile_data_directory): New function.
5611 (initialize_scheme_side): Update.
5612 (misc_guile_functions): Add guile-data-directory.
5613 (initialize_gdb_module): Fetch guile version number.
5614 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5615 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5616 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5617 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5619 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5620 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5621 * guile/scm-value.c (gdbscm_value_to_string): Only call
5622 scm_port_conversion_strategy if Guile version >= 2.0.6.
5624 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5626 * main.c (print_gdb_help): Add -q and --silent.
5628 2014-06-06 Gary Benson <gbenson@redhat.com>
5630 * common/signals.c: Remove preprocessor conditionals for
5631 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5632 SIGSEGV and SIGTERM.
5633 * proc-events.c: Likewise.
5635 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5637 * symfile.c (symfile_free_objfile): Remove restriction to
5639 * symfile-mem.c (symbol_file_add_from_memory): Call
5640 add_target_sections_of_objfile.
5642 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5644 * guile/scm-value.c (gdbscm_history_append_x): Use
5645 'vlscm_get_value_smob_arg_unsafe' instead of
5646 'vlscm_scm_to_value'.
5648 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5651 * utils.c (printchar): Don't escape at all if quoter is NUL.
5652 Update function documentation to clarify effect of parameter
5654 * remote.c (escape_buffer): Pass '\\' as the quoter to
5655 fputstrn_unfiltered.
5656 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5657 generate the output.
5658 (mi_solib_unloaded): Same.
5660 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5662 * development.sh: Delete.
5663 * Makefile.in (config.status): Adjust dependency on development.sh.
5664 * configure.ac: Adjust development.sh source call.
5665 * configure: Regenerate.
5667 2014-06-04 Doug Evans <xdje42@gmail.com>
5669 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5670 is_scheme_bkpt, spec.
5671 (bpscm_make_breakpoint_smob): Initialize new members.
5672 (gdbscm_create_breakpoint_x): Split into two ...
5673 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5674 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5675 (scheme_function breakpoint_functions): Update.
5676 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5677 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5678 register-breakpoint!.
5680 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5683 * mem-break.c (z_type_supported): Return zero if
5684 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5686 2014-06-04 Tom Tromey <tromey@redhat.com>
5688 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5689 value_from_contents_and_address_unresolved.
5690 (ada_template_to_fixed_record_type_1): Likewise.
5691 (ada_which_variant_applies): Likewise.
5692 * value.h (value_from_contents_and_address_unresolved): Declare.
5693 * value.c (value_from_contents_and_address_unresolved): New
5695 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5696 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5697 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5699 2014-06-04 Tom Tromey <tromey@redhat.com>
5701 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5703 2014-06-04 Tom Tromey <tromey@redhat.com>
5705 * procfs.c (procfs_attach): Make "args" const.
5706 * windows-nat.c (windows_attach): Make "args" const.
5707 * nto-procfs.c (procfs_attach): Make "args" const.
5708 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5709 * go32-nat.c (go32_attach): Make "args" const.
5710 * gnu-nat.c (gnu_attach): Make "args" const.
5711 * darwin-nat.c (darwin_attach): Make "args" const.
5712 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5713 * linux-nat.c (linux_nat_attach): Make "args" const.
5714 * remote.c (extended_remote_attach_1, extended_remote_attach):
5716 * target.h (struct target_ops) <to_attach>: Make "args" const.
5717 (find_default_attach): Likewise.
5718 * utils.c (parse_pid_to_attach): Make "args" const.
5719 * utils.h (parse_pid_to_attach): Update.
5721 2014-06-04 Tom Tromey <tromey@redhat.com>
5723 * target-delegates.c: Rebuild.
5724 * target.c (default_thread_address_space): New function.
5725 (target_thread_address_space): Simplify.
5726 * target.h (struct target_ops) <to_thread_address_space>: Add
5727 TARGET_DEFAULT_FUNC.
5729 2014-06-04 Doug Evans <xdje42@gmail.com>
5731 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5733 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5735 * record-btrace.c: Include event-loop.h and inf-loop.h.
5736 (record_btrace_resume_exec_dir)
5737 (record_btrace_async_inferior_event_handler)
5738 (record_btrace_handle_async_inferior_event): New.
5739 (record_btrace_open): Create async event handler.
5740 (record_btrace_close): Delete async event handler.
5741 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5742 Mark async event handler.
5743 (record_btrace_execution_direction): New.
5744 (init_record_btrace_ops): Initialize to_execution_direction.
5746 2014-06-03 Doug Evans <xdje42@gmail.com>
5748 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5749 (gdbscm_make_parameter): Ditto.
5751 2014-06-03 Doug Evans <dje@google.com>
5753 * exec.c (exec_close_1): Call clear_section_table instead of
5754 resize_section_table.
5755 (clear_section_table): New function.
5756 (resize_section_table): Make static. Rename arg num_added to
5758 * exec.h (clear_section_table): Declare.
5759 (resize_section_table): Delete.
5760 * progspace.c (release_program_space): Call clear_section_table
5761 instead of resize_section_table.
5763 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5765 * NEWS (Python Scripting): Add entry about the new xmethods
5768 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5770 * python/py-xmethods.c: New file.
5771 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5772 (objfpy_dealloc): XDECREF on the new xmethods field.
5773 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5775 (objfpy_get_xmethods): New function.
5776 (objfile_getset): New entry 'xmethods'.
5777 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5778 (pspy_dealloc): XDECREF on the new xmethods field.
5779 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5781 (pspy_get_xmethods): New function.
5782 (pspace_getset): New entry 'xmethods'.
5783 * python/python-internal.h: Add declarations for new functions.
5784 * python/python.c (_initialize_python): Invoke
5785 gdbpy_initialize_xmethods.
5786 * python/lib/gdb/__init__.py (xmethods): New
5788 * python/lib/gdb/xmethod.py: New file.
5789 * python/lib/gdb/command/xmethods.py: New file.
5791 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5793 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5794 best match method returned by find_overload_match is an xmethod.
5795 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5796 the best matching operator returned by find_overload_match is an
5798 * valops.c: #include "extension.h".
5799 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5800 Return void. The list of matching source methods is returned in
5801 "fn_list" and a vector of matching debug method workers is
5802 returned in "xm_worker_vec". Update all callers.
5803 (value_find_oload_method_list): Likewise.
5804 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5805 non-NULL, then the index of the best matching method in this
5806 vector is returned. Update all callers.
5807 (find_overload_match): Include xmethods while performing overload
5810 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5812 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5813 * extension-priv.h (struct extension_language_ops): Add the
5815 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5816 get_matching_xmethod_workers, get_xmethod_argtypes,
5817 invoke_xmethod, free_xmethod_worker,
5818 free_xmethod_worker_vec): New functions.
5819 * extension.h: #include "common/vec.h".
5820 New function declarations.
5821 (struct xmethod_worker): New struct.
5822 (VEC (xmethod_worker_ptr)): New vector type.
5823 (xmethod_worker_ptr): New typedef.
5824 (xmethod_worker_vec): Likewise.
5825 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5827 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5828 (struct builtin_type): New field "xmethod".
5829 * valarith.c (value_ptradd): Assert that the value argument is not
5831 * valops.c (value_must_coerce_to_target): Return 0 for
5832 lval_xcallable values.
5833 * value.c (struct value): New field XM_WORKER in the field
5835 (value_address, value_raw_address): Return 0 for lval_xcallable
5837 (set_value_address): Assert that the value is not an
5839 (value_free): Free the associated xmethod worker when freeing
5840 lval_xcallable values.
5841 (set_value_component_location): Assert that the WHOLE value is not
5843 (value_of_xmethod, call_xmethod): New functions.
5844 * value.h: Declare "struct xmethod_worker".
5845 Declare new functions value_of_xmethod, call_xmethod.
5847 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5848 Pedro Alves <palves@redhat.com>
5850 PR breakpoints/17000
5851 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5852 New function, extracted from software_breakpoint_inserted_here_p.
5853 (software_breakpoint_inserted_here_p): Replace factored out code
5854 by call to find_non_raw_software_breakpoint_inserted_here.
5855 (bp_target_info_copy_insertion_state): New function.
5856 (bkpt_insert_location): Handle the case of a single-step
5857 breakpoint already inserted at the same address.
5858 (bkpt_remove_location): Handle the case of a single-step
5859 breakpoint still inserted at the same address.
5860 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5861 breakpoint already inserted at the same address.
5862 (deprecated_remove_raw_breakpoint): Handle the case of a
5863 non-raw breakpoint still inserted at the same address.
5864 (find_single_step_breakpoint): New function, extracted from
5865 single_step_breakpoint_inserted_here_p.
5866 (find_single_step_breakpoint): New function,
5867 factored out from single_step_breakpoint_inserted_here_p.
5868 (single_step_breakpoint_inserted_here_p): Reimplement.
5870 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5872 Pushed by Joel Brobecker <brobecker@adacore.com>
5873 * source.c (show_substitute_path_command): Fix display of matching
5876 2014-06-03 Gary Benson <gbenson@redhat.com>
5878 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5880 2014-06-02 Doug Evans <xdje42@gmail.com>
5882 Add parameter support for Guile.
5883 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5884 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5885 (scm-param.o): New rule.
5886 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5887 (gdbscm_misc_error): Declare.
5888 (gdbscm_canonicalize_command_name): Declare.
5889 (gdbscm_scm_to_host_string): Declare.
5890 (gdbscm_scm_from_host_string): Declare.
5891 (gdbscm_initialize_parameters): Declare.
5892 * guile/guile.c (initialize_gdb_module): Call
5893 gdbscm_initialize_parameters.
5894 * guile/lib/gdb.scm: Export parameter symbols.
5895 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5896 cmdscm_canonicalize_name and made public. All callers updated.
5897 * guile/scm-exception.c (gdbscm_misc_error): New function.
5898 * guile/scm-param.c: New file.
5899 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5900 (gdbscm_scm_to_host_string): New function.
5901 (gdbscm_scm_from_host_string): New function.
5902 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5904 2014-06-02 Doug Evans <xdje42@gmail.com>
5906 Add command support for Guile.
5907 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5908 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5909 (scm-cmd.o): New rule.
5910 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5911 (gdbscm_user_error_p): Declare.
5912 (gdbscm_parse_command_name): Declare.
5913 (gdbscm_valid_command_class_p): Declare.
5914 (gdbscm_initialize_commands): Declare.
5915 * guile/guile.c (initialize_gdb_module): Call
5916 gdbscm_initialize_commands.
5917 * guile/lib/gdb.scm: Export command symbols.
5918 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5919 (throw-user-error): New function.
5920 * guile/scm-cmd.c: New file.
5921 * guile/scm-exception.c (user_error_symbol): New static global.
5922 (gdbscm_user_error_p): New function.
5923 (gdbscm_initialize_exceptions): Set user_error_symbol.
5924 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5926 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5928 * top.c (command_loop): Handle comments here...
5929 (command_line_input): ... not here.
5931 2014-06-02 Doug Evans <xdje42@gmail.com>
5933 Add progspace support for Guile.
5934 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5935 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5936 (scm-progspace.o): New rule.
5937 * guile/guile-internal.h (pspace_smob): New typedef.
5938 (psscm_pspace_smob_pretty_printers): Declare.
5939 (psscm_pspace_smob_from_pspace): Declare.
5940 (psscm_scm_from_pspace): Declare.
5941 * guile/guile.c (initialize_gdb_module): Call
5942 gdbscm_initialize_pspaces.
5943 * guile/lib/gdb.scm: Export progspace symbols.
5944 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5946 (append-pretty-printer!): Ditto.
5947 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5949 * guile/scm-progspace.c: New file.
5951 2014-06-03 Alan Modra <amodra@gmail.com>
5953 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5954 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5956 2014-06-02 Doug Evans <dje@google.com>
5958 Add support for skeletonless type units.
5959 * dwarf2read.c (struct dwarf2_per_objfile): New member
5960 n_allocated_type_units.
5961 (struct dwarf2_per_objfile) <tu_stats>: New member
5962 nr_all_type_units_reallocs.
5963 (create_signatured_type_table_from_index): Initialize
5964 n_allocated_type_units
5965 (create_all_type_units): Ditto.
5966 (add_type_unit): Move up in file. New arg slot.
5967 All callers updated. Increase space for all_type_units more
5969 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5970 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5971 (lookup_dwp_signatured_type): Ditto.
5972 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5973 All callers updated.
5974 (build_type_psymtabs_1): Leave type_unit_groups as
5975 NULL if no TUs present.
5976 (print_tu_stats): New function.
5977 (process_skeletonless_type_unit): New function.
5978 (process_dwo_file_for_skeletonless_type_units): New
5980 (process_skeletonless_type_units): New function.
5981 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5982 Call print tu_stats if debugging enabled.
5984 2014-06-02 Pedro Alves <palves@redhat.com>
5986 * breakpoint.c (build_target_command_list): Don't build a command
5987 list if we have any duplicate location that isn't a dprintf.
5989 2014-06-02 Pedro Alves <palves@redhat.com>
5991 * breakpoint.c (dprintf_breakpoint_hit): New function.
5992 (initialize_breakpoint_ops): Install it as dprintf's
5993 breakpoint_hit method.
5995 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5997 * source.c (substitute_path_rule_matches): Simplify using
5998 filename_ncmp instead of FILENAME_CMP.
6000 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6002 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6004 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6006 * configure.ac: When Guile is available, check for the
6007 availability of 'scm_new_smob'.
6008 * configure, config.h.in: Regenerate.
6009 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6012 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6014 * frame.c (struct frame_info): Add stop_string field.
6015 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6016 (get_prev_frame_always): Old content moved into
6017 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6018 TRY_CATCH, handle MEMORY_ERROR exceptions.
6019 (frame_stop_reason_string): New function definition.
6020 * frame.h (unwind_stop_reason_to_string): Extend comment to
6021 mention frame_stop_reason_string.
6022 (frame_stop_reason_string): New function declaration.
6023 * stack.c (frame_info): Switch to frame_stop_reason_string.
6024 (backtrace_command_1): Switch to frame_stop_reason_string.
6025 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6026 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6027 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6029 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6031 * frame.c (frame_stop_reason_string): Rename to ...
6032 (unwind_stop_reason_to_string): this.
6033 * frame.h (frame_stop_reason_string): Rename to ...
6034 (unwind_stop_reason_to_string): this.
6035 * stack.c (frame_info): Update call to frame_stop_reason_string.
6036 (backtrace_command_1): Likewise.
6037 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6038 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6040 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6042 * frame.c (remove_prev_frame): New function.
6043 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6046 2014-05-29 Pedro Alves <palves@redhat.com>
6048 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6049 and make it const. When a single-step decays to a continue,
6050 clear 'step', not 'hw_step'. Pass whether the caller wanted
6051 to step to user_visible_resume_ptid, not what we ask the
6054 2014-05-29 Pedro Alves <palves@redhat.com>
6056 * infrun.c (process_event_stop_test, handle_step_into_function)
6057 (handle_step_into_function_backward): Adjust.
6058 Don't set the even thread's stop_step and call stop_waiting before
6059 calling end_stepping_range. Instead do that ...
6060 (end_stepping_range): ... here. Take an ecs pointer parameter.
6062 2014-05-29 Pedro Alves <palves@redhat.com>
6064 * infrun.c (stop_stepping): Rename to ...
6065 (stop_waiting): ... this.
6066 (proceed): Update comment.
6067 (process_event_stop_test, handle_inferior_event)
6068 (handle_signal_stop, handle_step_into_function)
6069 (handle_step_into_function_backward): Update.
6071 2014-05-29 Pedro Alves <palves@redhat.com>
6073 * infcall.c (run_inferior_call): Don't check whether the current
6074 thread is running after the proceed call.
6076 2014-05-29 Pedro Alves <palves@redhat.com>
6077 Tom Tromey <tromey@redhat.com>
6079 * NEWS: Mention "maint set target-async", "set mi-async", and that
6080 background execution commands are now always available.
6081 * target.h (target_async_permitted): Update comment.
6082 * target.c (target_async_permitted, target_async_permitted_1):
6084 (set_target_async_command): Rename to ...
6085 (maint_set_target_async_command): ... this.
6086 (show_target_async_command): Rename to ...
6087 (maint_show_target_async_command): ... this.
6088 (_initialize_target): Adjust.
6089 * infcmd.c (prepare_execution_command): Make extern.
6090 * inferior.h (prepare_execution_command): Declare.
6091 * infrun.c (set_observer_mode): Leave target async alone.
6092 * mi/mi-interp.c (mi_interpreter_init): Install
6093 mi_on_sync_execution_done as sync_execution_done observer.
6094 (mi_on_sync_execution_done): New function.
6095 (mi_execute_command_input_handler): Don't print the prompt if we
6096 just started a synchronous command with an async target.
6097 (mi_on_resume): Check sync_execution before printing prompt.
6098 * mi/mi-main.h (mi_async_p): Declare.
6099 * mi/mi-main.c: Include gdbcmd.h.
6100 (mi_async_p): New function.
6101 (mi_async, mi_async_1): New globals.
6102 (set_mi_async_command, show_mi_async_command, mi_async): New
6104 (exec_continue): Call prepare_execution_command.
6105 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6106 (mi_execute_async_cli_command): Use mi_async_p.
6107 (_initialize_mi_main): Install "set mi-async". Make
6108 "target-async" a deprecated alias.
6110 2014-05-29 Pedro Alves <palves@redhat.com>
6112 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6113 (_initialize_cli_interp): Adjust.
6114 * event-loop.c: Include "observer.h".
6115 (start_event_loop): Notify 'command_error' observers instead of
6116 calling display_gdb_prompt. Remove FIXME comment.
6117 * event-top.c (display_gdb_prompt): Remove call into the
6119 * inf-loop.c: Include "observer.h".
6120 (inferior_event_handler): Notify 'command_error' observers instead
6121 of calling display_gdb_prompt.
6122 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6123 observers instead of calling display_gdb_prompt.
6124 * interps.c (interp_set): Don't call display_gdb_prompt.
6125 (current_interp_display_prompt_p): Delete.
6126 * interps.h (interp_prompt_p): Delete declaration.
6127 (interp_prompt_p_ftype): Delete.
6128 (struct interp_procs) <prompt_proc_p>: Delete field.
6129 (current_interp_display_prompt_p): Delete declaration.
6130 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6131 (_initialize_mi_interp): Adjust.
6132 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6133 'command_error' observers.
6134 (tui_on_sync_execution_done, tui_on_command_error): New
6136 (tui_display_prompt_p): Delete.
6137 (_initialize_tui_interp): Adjust.
6139 2014-05-29 Pedro Alves <palves@redhat.com>
6142 * cli/cli-interp.c: Include infrun.h and observer.h.
6143 (cli_uiout, cli_interp): New globals.
6144 (cli_on_signal_received, cli_on_end_stepping_range)
6145 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6147 (cli_interpreter_init): Install them as 'end_stepping_range',
6148 'signal_received' 'signal_exited', 'exited' and 'no_history'
6150 (_initialize_cli_interp): Remove cli_interp local.
6151 * infrun.c (handle_inferior_event): Call the several stop reason
6152 observers instead of printing the stop reason directly.
6153 (end_stepping_range): New function.
6154 (print_end_stepping_range_reason, print_signal_exited_reason)
6155 (print_exited_reason, print_signal_received_reason)
6156 (print_no_history_reason): Make static, and add an uiout
6157 parameter. Print to that instead of to CURRENT_UIOUT.
6158 * infrun.h (print_end_stepping_range_reason)
6159 (print_signal_exited_reason, print_exited_reason)
6160 (print_signal_received_reason print_no_history_reason): New
6162 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6164 <cli_uiout>: New field.
6165 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6166 uiout for CLI output. Install 'signal_received',
6167 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6169 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6170 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6171 (mi_on_no_history): New functions.
6172 (ui_out_free_cleanup): Delete function.
6173 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6174 instead use the one already stored in the MI interpreter data.
6175 (mi_ui_out): Adjust.
6176 * tui/tui-interp.c: Include infrun.h and observer.h.
6177 (tui_interp): New global.
6178 (tui_on_signal_received, tui_on_end_stepping_range)
6179 (tui_on_signal_exited, tui_on_exited)
6180 (tui_on_no_history): New functions.
6181 (tui_init): Install them as 'end_stepping_range',
6182 'signal_received' 'signal_exited', 'exited' and 'no_history'
6184 (_initialize_tui_interp): Delete tui_interp local.
6186 2014-05-29 Pedro Alves <palves@redhat.com>
6189 * linux-nat.c (linux_nat_resume_callback): Rename the second
6190 parameter to 'except'. Skip LP if it points to EXCEPT.
6191 (linux_nat_resume): Don't mark the event lwp as not stopped
6192 before resuming sibling lwps. Instead ask
6193 linux_nat_resume_callback to skip the event lwp. Mark it as not
6194 stopped after actually resuming it.
6195 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6197 (wait_lwp): Mark the lwp as stopped here.
6198 (stop_wait_callback): Mark the lwp as not stopped right after
6199 resuming it. Don't mark lwps as stopped here.
6200 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6201 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6203 2014-05-29 Pedro Alves <palves@redhat.com>
6206 * infrun.c (resume): Determine how much to resume depending on
6207 whether the caller wanted a step, not whether we can hardware step
6208 the target. Mark all threads that we intend to run as running,
6209 unless we're calling an inferior function.
6210 (normal_stop): If the thread is running an infcall, don't finish
6212 * target.c (target_resume): Don't mark threads as running here.
6214 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6216 * serial.c (_initialize_serial): Remove support for
6217 the "set remotebaud" and "show remotebaud" commands.
6218 * NEWS: Add entry documenting the removal of that command.
6220 2014-05-28 Yao Qi <yao@codesourcery.com>
6222 * charset.c: Fix typo in comments.
6224 2014-05-27 Gary Benson <gbenson@redhat.com>
6226 * utils.c (internal_vproblem): Prompt for a bug report.
6228 2014-05-26 Andy Wingo <wingo@igalia.com>
6230 * guile/scm-arch.c (arscm_mark_arch_smob):
6231 * guile/scm-block.c (bkscm_mark_block_smob)
6232 (bkscm_mark_block_syms_progress_smob):
6233 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6234 * guile/scm-exception.c (exscm_mark_exception_smob):
6235 * guile/scm-frame.c (frscm_mark_frame_smob):
6236 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6237 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6238 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6239 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6240 (ppscm_mark_pretty_printer_worker_smob):
6241 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6242 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6243 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6244 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6246 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6249 2014-05-26 Andy Wingo <wingo@igalia.com>
6250 Doug Evans <xdje42@gmail.com>
6252 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6253 empty_base_class. All uses updated.
6254 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6255 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6257 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6258 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6259 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6260 (gdbscm_gsmob_has_property_p, add_property_name)
6261 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6262 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6263 (gdb-object-has-property?, gdb-object-properties): Remove.
6264 (gdb-object-kind): Renamed from gsmob-kind.
6266 2014-05-26 Andy Wingo <wingo@igalia.com>
6268 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6269 * configure: Regenerate.
6271 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6273 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6275 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6277 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6278 (replay_memory_access_read_only, replay_memory_access_read_write)
6279 (replay_memory_access_types, replay_memory_access)
6280 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6281 (cmd_set_record_btrace, cmd_show_record_btrace)
6282 (cmd_show_replay_memory_access): New.
6283 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6284 (record_btrace_remove_breakpoint): Replace
6285 record_btrace_allow_memory_access with replay_memory_access.
6286 (_initialize_record_btrace): Add commands.
6287 * NEWS: Announce it.
6289 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6291 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6293 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6295 * MAINTAINERS (Write After Approval): Move self back from
6298 2014-05-22 Pedro Alves <palves@redhat.com>
6300 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6301 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6302 (disable_randomization, enum exec_direction_kind)
6303 (execution_direction, stop_registers, start_remote)
6304 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6305 (wait_for_inferior, normal_stop, get_last_target_status)
6306 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6307 (insert_step_resume_breakpoint_at_sal)
6308 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6309 (set_step_info, print_stop_event, signal_stop_state)
6310 (signal_print_state, signal_pass_state, signal_stop_update)
6311 (signal_print_update, signal_pass_update)
6312 (update_signals_program_target, clear_exit_convenience_vars)
6313 (displaced_step_dump_bytes, update_observer_mode)
6314 (signal_catch_update, gdb_signal_from_command): Move
6316 * infrun.h: ... to this new file.
6317 * amd64-tdep.c: Include infrun.h.
6318 * annotate.c: Include infrun.h.
6319 * arch-utils.c: Include infrun.h.
6320 * arm-linux-tdep.c: Include infrun.h.
6321 * arm-tdep.c: Include infrun.h.
6322 * break-catch-sig.c: Include infrun.h.
6323 * breakpoint.c: Include infrun.h.
6324 * common/agent.c: Include infrun.h instead of inferior.h.
6325 * corelow.c: Include infrun.h.
6326 * event-top.c: Include infrun.h.
6327 * go32-nat.c: Include infrun.h.
6328 * i386-tdep.c: Include infrun.h.
6329 * inf-loop.c: Include infrun.h.
6330 * infcall.c: Include infrun.h.
6331 * infcmd.c: Include infrun.h.
6332 * infrun.c: Include infrun.h.
6333 * linux-fork.c: Include infrun.h.
6334 * linux-nat.c: Include infrun.h.
6335 * linux-thread-db.c: Include infrun.h.
6336 * monitor.c: Include infrun.h.
6337 * nto-tdep.c: Include infrun.h.
6338 * procfs.c: Include infrun.h.
6339 * record-btrace.c: Include infrun.h.
6340 * record-full.c: Include infrun.h.
6341 * remote-m32r-sdi.c: Include infrun.h.
6342 * remote-mips.c: Include infrun.h.
6343 * remote-notif.c: Include infrun.h.
6344 * remote-sim.c: Include infrun.h.
6345 * remote.c: Include infrun.h.
6346 * reverse.c: Include infrun.h.
6347 * rs6000-tdep.c: Include infrun.h.
6348 * s390-linux-tdep.c: Include infrun.h.
6349 * solib-irix.c: Include infrun.h.
6350 * solib-osf.c: Include infrun.h.
6351 * solib-svr4.c: Include infrun.h.
6352 * target.c: Include infrun.h.
6353 * top.c: Include infrun.h.
6354 * windows-nat.c: Include infrun.h.
6355 * mi/mi-interp.c: Include infrun.h.
6356 * mi/mi-main.c: Include infrun.h.
6357 * python/py-threadevent.c: Include infrun.h.
6359 2014-05-22 Pedro Alves <palves@redhat.com>
6361 * infrun.c (handle_inferior_event): Store the exit code for
6362 --return-child-result here, instead of ...
6363 (print_exited_reason): ... here.
6365 2014-05-21 Pedro Alves <palves@redhat.com>
6368 * gdbthread.h (struct thread_control_state): New field
6370 * infrun.c (follow_fork): Copy the new thread control field to the
6372 (clear_proceed_status_thread): Clear the new thread control field.
6373 (proceed): Set the new thread control field.
6374 * interps.h (command_interp): Declare.
6375 * interps.c (command_interpreter): New global.
6376 (command_interp): New function.
6377 (interp_exec): Set `command_interpreter' while here.
6378 * cli-out.c (cli_uiout_dtor): New function.
6379 (cli_ui_out_impl): Install it.
6380 * mi/mi-interp.c: Include cli-out.h.
6381 (mi_cmd_interpreter_exec): Add comment.
6382 (restore_current_uiout_cleanup): New function.
6383 (ui_out_free_cleanup): New function.
6384 (mi_on_normal_stop): If finishing an execution command started by
6385 a CLI command, or any kind of breakpoint-like event triggered,
6386 print the stop event to the output (CLI) stream.
6387 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6389 2014-05-21 Pedro Alves <palves@redhat.com>
6391 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6392 current source line having changed.
6393 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6394 * infrun.c (normal_stop): Adjust call to
6395 set_current_sal_from_frame.
6396 * source.c (clear_lines_listed_range): New function.
6397 (set_current_source_symtab_and_line, identify_source_line): Clear
6398 the lines listed range.
6399 (line_info): Handle the first "info line" after the current source
6400 line having changed.
6401 * stack.c (print_stack_frame): Remove center handling.
6402 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6405 2014-05-21 Pedro Alves <palves@redhat.com>
6407 * inf-child.c (inf_child_mourn_inferior): New function.
6408 * inf-child.h (inf_child_mourn_inferior): New declaration.
6409 * darwin-nat.c (darwin_mourn_inferior): Use
6410 inf_child_mourn_inferior.
6411 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6412 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6413 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6414 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6415 * windows-nat.c (windows_mourn_inferior): Likewise.
6417 2014-05-21 Doug Evans <xdje42@gmail.com>
6419 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6421 2014-05-21 Doug Evans <xdje42@gmail.com>
6423 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6424 (gdbscm_out_of_range_error): Ditto.
6425 (gdbscm_memory_error): Ditto.
6426 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6427 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6428 (gdbscm_out_of_range_error): Update.
6429 (gdbscm_memory_error): Update.
6430 (gdbscm_scm_to_target_string_unsafe): Delete.
6432 2014-05-21 Pedro Alves <palves@redhat.com>
6434 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6436 (inf_child_open_target): New function.
6437 (inf_child_open): Use inf_child_open_target to push the target
6438 instead of erroring out.
6439 (inf_child_disconnect, inf_child_close)
6440 (inf_child_maybe_unpush_target): New functions.
6441 (inf_child_target): Install inf_child_disconnect and
6442 inf_child_close. Store a pointer to the returned object.
6443 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6445 * target.c (auto_connect_native_target): New global.
6446 (show_default_run_target): New function.
6447 (find_default_run_target): Return NULL if automatically connecting
6448 to the native target is disabled.
6449 (_initialize_target): Install set/show auto-connect-native-target.
6450 * NEWS: Mention "set auto-connect-native-target", and "target
6452 * linux-nat.c (super_close): New global.
6453 (linux_nat_close): Call super_close.
6454 (linux_nat_add_target): Store a pointer to the base class's
6456 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6457 inf_child_maybe_unpush.
6458 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6460 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6461 the inferior. Use inf_child_maybe_unpush_target.
6462 (inf_ttrace_attach): Don't push the target if it is already
6464 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6465 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6466 after mourning the inferior. Use inf_child_maybe_unpush_target.
6467 (darwin_attach_pid): Don't push the target if it is already
6469 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6470 mourning the inferior. Use inf_child_maybe_unpush_target.
6471 (gnu_detach): Use inf_child_maybe_unpush_target.
6472 * go32-nat.c (go32_create_inferior): Don't push the target if it
6474 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6475 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6476 (procfs_open): Rename to ...
6477 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6478 comments. Can target_preopen before changing node. Call
6479 inf_child_open_target to push the target explicitly.
6480 (procfs_attach): Don't push the target if it is already pushed.
6481 (procfs_detach): Use inf_child_maybe_unpush_target.
6482 (procfs_create_inferior): Don't push the target if it is already
6484 (nto_native_ops): New global.
6485 (procfs_open): Reimplement.
6486 (procfs_native_open): New function.
6487 (init_procfs_targets): Install procfs_native_open as to_open of
6488 "target native". Store a pointer to the "native" target in
6490 * procfs.c (procfs_attach): Don't push the target if it is already
6492 (procfs_detach): Use inf_child_maybe_unpush_target.
6493 (procfs_mourn_inferior): Only unpush the target after mourning the
6494 inferior. Use inf_child_maybe_unpush_target.
6495 (procfs_init_inferior): Don't push the target if it is already
6497 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6498 if it is already pushed.
6500 2014-05-21 Pedro Alves <palves@redhat.com>
6502 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6503 and "procfs" targets are now called "native" instead.
6505 2014-05-21 Pedro Alves <palves@redhat.com>
6507 * go32-nat.c (go32_open): Delete.
6508 (go32_target): Don't override the to_open method.
6510 2014-05-21 Pedro Alves <palves@redhat.com>
6512 * nto-procfs.c (procfs_can_run): New function.
6513 (nto_procfs_ops): New global.
6514 (init_procfs_targets): New, based on procfs_target. Install
6515 "target native" in addition to "target procfs".
6516 (_initialize_procfs): Call init_procfs_targets instead of adding
6519 2014-05-21 Pedro Alves <palves@redhat.com>
6521 * windows-nat.c (windows_target): Don't override to_shortname,
6522 to_longname or to_doc.
6524 2014-05-21 Pedro Alves <palves@redhat.com>
6526 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6529 2014-05-21 Pedro Alves <palves@redhat.com>
6531 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6532 to_shortname, to_longname or to_doc.
6534 2014-05-21 Pedro Alves <palves@redhat.com>
6536 * go32-nat.c (go32_target): Don't override to_shortname,
6537 to_longname or to_doc.
6539 2014-05-21 Pedro Alves <palves@redhat.com>
6541 * inf-child.c (inf_child_open): Remove mention of "child".
6542 (inf_child_target): Rename target to "native" instead of "child".
6544 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6546 * Makefile.in (SFILES): Delete "regset.c".
6547 (COMMON_OBS): Delete "regset.o".
6549 * regset.h (regset_alloc): Delete prototype.
6551 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6553 * sparc-linux-tdep.c (sparc32_linux_gregset)
6554 (sparc32_linux_fpregset): New static regset structures.
6555 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6556 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6558 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6559 (sparc64_linux_fpregset): New static regset structures.
6560 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6561 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6562 New static regset structures.
6563 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6564 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6565 New static regset structures.
6566 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6567 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6568 New static regset structures.
6569 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6570 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6571 New static regset structures.
6572 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6574 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6576 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6577 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6578 register maps ("regmaps") from "*regset" to "*regmap". Do this
6579 for all regmap types and variables.
6580 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6581 (sparc32_linux_supply_core_gregset)
6582 (sparc32_linux_collect_core_gregset)
6583 (sparc32_linux_supply_core_fpregset)
6584 (sparc32_linux_collect_core_fpregset): Likewise.
6585 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6586 (sparc_gregmap, sparc_fpregmap): ... these.
6587 (sparc_supply_gregset, sparc_collect_gregset)
6588 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6589 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6590 (_initialize_sparc_nat): Rename regmaps.
6591 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6592 (sparc_gregmap, sparc_fpregmap): ... these.
6593 (sparc_supply_gregset, sparc_collect_gregset)
6594 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6595 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6597 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6598 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6600 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6602 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6603 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6604 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6606 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6607 (sparc32_bsd_fpregset): Rename to...
6608 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6609 (sparc32_bsd_fpregmap): ... these.
6610 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6611 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6612 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6613 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6614 (struct sparc_gregmap, struct sparc_fpregmap)
6615 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6616 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6617 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6618 (sparc32_supply_regset, sparc32_collect_gregset)
6619 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6621 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6622 (sparc64_linux_ptrace_gregmap): ... this.
6623 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6624 (_initialize_sparc64_linux_nat): Rename regmaps.
6625 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6626 (sparc64_linux_core_gregmap): ... this.
6627 (sparc64_linux_supply_core_gregset)
6628 (sparc64_linux_collect_core_gregset)
6629 (sparc64_linux_supply_core_fpregset)
6630 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6631 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6632 (sparc64_sol2_fpregset): Rename to...
6633 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6634 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6635 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6637 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6638 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6639 (sparc64_bsd_fpregset): Rename to...
6640 (struct sparc_gregmap, sparc64_sol2_gregmap)
6641 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6642 (sparc64_bsd_fpregmap): ... these.
6643 (sparc64_supply_gregset, sparc64_collect_gregset)
6644 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6646 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6647 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6648 (sparc64fbsd_gregmap): ... this.
6649 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6650 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6652 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6653 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6654 (sparc64nbsd_collect_fpregset): Likewise.
6655 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6656 (sparc64nbsd_gregmap): ... this.
6657 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6659 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6660 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6661 (sparc64obsd_gregmap): ... this.
6662 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6664 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6665 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6666 (sparc32nbsd_gregmap): ... this.
6667 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6670 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6672 * score-tdep.c (score7_linux_gregset): New static regset
6674 (score7_linux_regset_from_core_section): Remove dynamic regset
6676 (score_gdbarch_init): Drop allocation of tdep structure.
6677 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6679 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6681 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6683 (am33_regset_from_core_section): Remove dynamic regset
6686 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6688 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6689 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6691 (mips_linux_regset_from_core_section): Remove dynamic regset
6693 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6694 'gregset64', 'fpregset', and 'fpregset64'.
6695 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6696 deleted tdep fields.
6698 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6700 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6702 (amd64_regset_from_core_section): Remove dynamic regset
6704 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6706 (amd64obsd_regset_from_core_section): Remove dynamic regset
6708 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6710 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6711 x86-common regset supply function.
6712 * i386-tdep.c (i386_collect_gregset): Make static.
6713 (i386_gregset): New global regset structure.
6714 (i386_fpregset, i386_xstateregset): New static regset structures.
6715 (i386_regset_from_core_section): Remove dynamic regset
6717 (i386_gdbarch_init): Remove initialization of tdep fields
6718 'gregset', 'fpregset', and 'xstateregset'.
6719 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6720 'fpregset', and 'xstateregset'.
6721 (i386_collect_gregset): Remove prototype.
6722 (i386_gregset): New declaration.
6723 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6725 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6728 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6730 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6731 (arm_linux_vfpregset): New static regset structures.
6732 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6734 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6735 and 'vfpregset' fields.
6737 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6739 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6740 (aarch64_linux_fpregset): New static regset structures.
6741 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6742 of regset structures.
6743 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6746 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6748 * regset.h (struct regset): Remove gdbarch field.
6749 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6750 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6751 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6753 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6754 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6755 (ppc32_linux_vsxregset): Likewise.
6756 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6757 via the regcache instead of the regset.
6758 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6759 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6760 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6761 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6764 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6766 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6767 Constify structures.
6768 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6769 (alphanbsd_aout_gregset): Likewise.
6770 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6771 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6773 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6774 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6776 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6777 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6778 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6779 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6780 * m88k-tdep.c (m88k_gregset): Likewise.
6781 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6782 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6783 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6784 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6785 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6786 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6787 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6788 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6789 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6791 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6792 * sh-tdep.h (sh_corefile_gregset): Likewise.
6793 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6794 * vax-tdep.c (vax_gregset): Likewise.
6796 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6798 Fix TLS access for -static -pthread.
6799 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6800 (try_thread_db_load_1): Initialize it.
6801 (thread_db_get_thread_local_address): Call it if LM is zero.
6802 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6803 * target.h (struct target_ops) (to_get_thread_local_address): Add
6804 load_module_addr comment.
6806 2014-05-21 Pedro Alves <palves@redhat.com>
6808 * dcache.c (dcache_read_memory_partial): If reading the cache line
6809 fails, fallback to reading just the memory the caller wanted.
6811 2014-05-20 Doug Evans <dje@google.com>
6813 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6814 instead of get_current_arch.
6816 2014-05-20 Pedro Alves <palves@redhat.com>
6818 * NEWS: Mention that compare-sections now works with all targets.
6820 * remote.c (PACKET_qCRC): New enum value.
6821 (remote_verify_memory): Don't send qCRC if the target has no
6822 execution. Use packet_support/packet_ok. If the target doesn't
6823 support the qCRC packet, fallback to a deep memory copy.
6824 (compare_sections_command): Say "target image" instead of "remote
6826 (_initialize_remote): Add PACKET_qCRC to the list of config
6827 packets that have no associated command. Extend comment.
6828 * target.c (simple_verify_memory, default_verify_memory): New
6830 * target.h (struct target_ops) <to_verify_memory>: Default to
6831 default_verify_memory.
6832 (simple_verify_memory): New declaration.
6833 * target-delegates.c: Regenerate.
6835 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6837 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6839 2014-05-20 Hui Zhu <hui@codesourcery.com>
6840 Yao Qi <yao@codesourcery.com>
6843 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6844 and change address of sp and pc.
6846 2014-05-19 Tom Tromey <tromey@redhat.com>
6848 * gdbtypes.c (rank_function): Use XNEWVEC.
6849 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6851 2014-05-19 Doug Evans <dje@google.com>
6853 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6854 build_type_unit_groups and moved closer to only caller. Remove
6855 arguments. All references updated. Remove outdated .gdb_index
6857 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6858 build_type_psymtabs_1.
6860 2014-05-19 Doug Evans <dje@google.com>
6862 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6863 n_type_unit_groups, all_type_unit_groups. All uses removed.
6864 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6865 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6866 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6867 (add_type_unit_group_to_table): Delete.
6869 2014-05-19 Doug Evans <dje@google.com>
6871 * eval.c (evaluate_subexp_standard): Add some comments.
6873 2014-05-17 Doug Evans <xdje42@gmail.com>
6875 * progspace.c (remove_program_space): Delete, unused.
6876 * progspace.h (remove_program_space): Ditto.
6878 2014-05-17 Doug Evans <xdje42@gmail.com>
6880 * inferior.c (prune_inferiors): Fix comment.
6881 (remove_inferior_command): Call prune_program_spaces.
6883 2014-05-16 Doug Evans <dje@google.com>
6885 New command line option -D.
6887 * main.c (set_gdb_data_directory): New function.
6888 (captured_main): Recognize -D. Flag error for --data-directory "".
6889 Call set_gdb_data_directory.
6890 (print_gdb_help): Print --data-directory, -D.
6891 * main.h (set_gdb_data_directory): Declare.
6892 * top.c (staged_gdb_datadir): New static global.
6893 (set_gdb_datadir): Call set_gdb_data_directory
6894 (show_gdb_datadir): New function.
6895 (init_main): Update init of data-directory parameter.
6897 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6899 Import the "dirfd" gnulib module.
6900 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6901 * gnulib/aclocal.m4: Update.
6902 * gnulib/config.in: Update.
6903 * gnulib/configure: Update.
6904 * gnulib/import/Makefile.am: Update.
6905 * gnulib/import/Makefile.in: Update.
6906 * gnulib/import/dirfd.c: New.
6907 * gnulib/import/m4/dirfd.m4: New.
6908 * gnulib/import/m4/gnulib-cache.m4: Update.
6909 * gnulib/import/m4/gnulib-comp.m4: Update.
6911 2014-05-16 Pierre Muller <muller@sourceware.org>
6912 Yao Qi <yao@codesourcery.com>
6914 * valprint.c (print_wchar): Move the code on checking whether
6915 W is a printable wide char to the default branch of switch
6916 statement below. Call wchar_printable instead of gdb_iswprint.
6918 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6920 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6921 ldr.w and ldrd instructions.
6923 2014-05-15 Doug Evans <dje@google.com>
6925 * dwarf2read.c (read_structure_type): Delete outdated comments.
6927 2014-05-14 Tom Tromey <tromey@redhat.com>
6929 * macrocmd.c (print_macro_definition): Reindent.
6931 2014-05-13 Doug Evans <xdje42@gmail.com>
6933 * python/py-cmd.c (cmdpy_completer): Add comment.
6934 (completers): Make const.
6936 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6938 * infrun.c (resume): Remove should_resume (unused). Move up
6939 declaration of resume_ptid.
6941 2014-05-13 Tom Tromey <tromey@redhat.com>
6943 * language.h (unop_type_check): Remove.
6944 (binop_type_check): Don't declare.
6946 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6948 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6949 call to regcache_raw_collect.
6951 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6953 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6954 mi_console->quote as the quoting character.
6956 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6958 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6960 2014-04-29 Tom Tromey <tromey@redhat.com>
6962 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6963 "show debug varobj".
6965 2014-05-07 Kyle McMartin <kyle@redhat.com>
6967 Pushed by Joel Brobecker <brobecker@adacore.com>.
6968 * aarch64-tdep.c (aarch64_software_single_step): New function.
6969 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6970 with aarch64_software_single_step.
6972 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6976 2014-05-05 Keith Seitz <keiths@redhat.com>
6978 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6979 variable or history value is successfully parsed.
6981 2014-05-05 Yao Qi <yao@codesourcery.com>
6982 Pedro Alves <palves@redhat.com>
6984 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6985 address of blocks that intersects the requested range. Trim
6986 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6988 * ctf.c (ctf_xfer_partial): Likewise.
6990 2014-05-05 Yao Qi <yao@codesourcery.com>
6992 * printcmd.c (display_command): Remove the check to
6993 target_has_execution.
6995 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6997 * ppcobsd-nat.c: Include "obsd-nat.h".
6998 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7000 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7002 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7004 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7005 and 16-bit signed and unsigned arguments. Update comment.
7006 (stap_parse_probe_arguments): Extend code to handle such
7007 arguments. Use warning instead of complaint to notify about
7008 unrecognized bitness.
7010 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7012 PR breakpoints/16889
7013 * stap-probe.c (stap_parse_probe_arguments): Simplify
7014 check for non-prefixed probes (i.e., probes whose
7015 arguments do not start with "N@"). Always set the
7016 argument type to a sane value.
7018 2014-05-01 David Taylor <dtaylor@emc.com>
7020 * remote.c (compare_sections_command): Add -r option to compare
7021 all loadable read-only sections.
7023 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7025 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7026 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7028 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7029 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7030 Remove unused CORE_ADDR argument. Update all callers.
7032 2014-04-29 Pedro Alves <palves@redhat.com>
7034 * remote.c (struct packet_config) <detect>: Extend comment.
7035 (add_packet_config_cmd): Don't set the config's detect or support
7037 (init_all_packet_configs): Also initialize the config's 'detect'
7039 (reset_all_packet_configs_support): New function.
7040 (remote_open_1): Call reset_all_packet_configs_support instead of
7041 init_all_packet_configs.
7042 (_initialize_remote): Initialize all packet configs. Assert that
7043 all packets have an associated command, except a few known
7046 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7048 * dwarf2read.c (read_subrange_type): Handle dynamic
7049 DW_AT_lower_bound attributes.
7051 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7053 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7054 dynamic bounds before computing its upper bound.
7055 (ada_discrete_type_low_bound): Same as above with the lower bound.
7057 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7059 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7060 range types. Adjust the array handling implementation to
7061 take advantage of this change.
7062 (resolve_dynamic_range): New function, mostly extracted from
7063 resolve_dynamic_bounds.
7064 (resolve_dynamic_array): New function, mostly extracted from
7065 resolve_dynamic_bounds.
7066 (resolve_dynamic_bounds): Delete.
7067 (resolve_dynamic_type): Reimplement. Add handling of
7068 TYPE_CODE_RANGE types.
7070 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7072 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7073 handling of parallel ___XA types.
7075 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7077 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7078 unnecessary second call to static_unwrap_type.
7080 2014-04-27 Hui Zhu <hui@codesourcery.com>
7082 * stack.c (print_frame_info): Call do_gdb_disassembly with
7083 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7085 2014-04-26 Doug Evans <xdje42@gmail.com>
7087 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7089 2014-04-25 Pedro Alves <palves@redhat.com>
7092 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7093 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7094 and newline from built string.
7095 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7096 (linux_ptrace_attach_fail_reason): ... this.
7097 * linux-nat.c (linux_nat_attach): Adjust to use
7098 linux_ptrace_attach_fail_reason.
7100 2014-04-25 Pedro Alves <palves@redhat.com>
7102 * remote.c (struct remote_state): Remove multi_process_aware,
7103 non_stop_aware, cond_tracepoints, cond_breakpoints,
7104 breakpoint_commands, fast_tracepoints, static_tracepoints,
7105 install_in_trace, disconnected_tracing,
7106 enable_disable_tracepoints, string_tracing, and
7107 augmented_libraries_svr4_read fields.
7108 (remote_multi_process_p): Move further below in the file.
7109 (struct packet_config): Add comments.
7110 (update_packet_config): Delete function.
7111 (show_packet_config_cmd): Use packet_config_support.
7112 (add_packet_config_cmd): Use NULL as set callback.
7113 (packet_ok): "set remote foo-packet"-style commands no longer
7114 change config->supported -- adjust.
7115 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7116 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7117 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7118 (PACKET_QNonStop, PACKET_multiprocess_feature)
7119 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7120 (PACKET_DisconnectedTracing_feature)
7121 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7122 (set_remote_protocol_packet_cmd): Delete function.
7123 (packet_config_support, packet_support): New functions.
7124 (set_remote_protocol_Z_packet_cmd): Don't call
7125 update_packet_config.
7126 (remote_query_attached, remote_pass_signals)
7127 (remote_program_signals, remote_threads_info)
7128 (remote_threads_extra_info, remote_start_remote): Use
7130 (remote_start_remote): Use packet_config_support and
7132 (init_all_packet_configs): Set all packets to unknown support,
7133 instead of calling update_packet_config.
7134 (remote_check_symbols): Use packet_support.
7135 (remote_supported_packet): Unconditionally set the packet config's
7137 (remote_multi_process_feature, remote_non_stop_feature)
7138 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7139 (remote_breakpoint_commands_feature)
7140 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7141 (remote_install_in_trace_feature)
7142 (remote_disconnected_tracing_feature)
7143 (remote_enable_disable_tracepoint_feature)
7144 (remote_string_tracing_feature)
7145 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7146 (remote_protocol_features): Adjust to use remote_supported_packet
7147 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7148 "ConditionalTracepoints", "ConditionalBreakpoints",
7149 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7150 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7151 "EnableDisableTracepoints", and "tracenz".
7152 (remote_query_supported): Use packet_support.
7153 (remote_open_1): Adjust.
7154 (extended_remote_attach_1): Use packet_support. Switch on the
7155 result of packet_ok instead of checking whether the packet ended
7157 (remote_vcont_resume): Use packet_support.
7158 (remote_resume, remote_stop_ns, fetch_register_using_p)
7159 (remote_prepare_to_store, store_register_using_P)
7160 (check_binary_download, remote_write_bytes): Use packet_support.
7161 (remote_vkill): Use packet_support. Switch on the result of
7162 packet_ok instead of checking whether the packet ended up
7164 (extended_remote_supports_disable_randomization): Use
7166 (extended_remote_run): Switch on the result of packet_ok instead
7167 of checking whether the packet ended up disabled.
7168 (remote_insert_breakpoint, remote_remove_breakpoint)
7169 (remote_insert_watchpoint, remote_remove_watchpoint)
7170 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7172 (remote_search_memory): Use packet_config_support.
7173 (remote_get_thread_local_address, remote_get_tib_address)
7174 (remote_hostio_send_command, remote_can_execute_reverse): Use
7176 (remote_supports_cond_tracepoints)
7177 (remote_supports_cond_breakpoints)
7178 (remote_supports_fast_tracepoints)
7179 (remote_supports_static_tracepoints)
7180 (remote_supports_install_in_trace)
7181 (remote_supports_enable_disable_tracepoint)
7182 (remote_supports_string_tracing)
7183 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7184 the packet config says the feature is enabled or disabled.
7185 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7186 (remote_get_trace_status): Use packet_support.
7187 (remote_set_disconnected_tracing): Adjust to check whether the
7188 feature is enabled with packet_support.
7189 (remote_set_trace_buffer_size, remote_use_agent)
7190 (remote_can_use_agent, remote_supports_btrace): Use
7192 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7193 Use packet_config_support.
7194 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7195 the packet config says the feature is enabled or disabled.
7196 (set_range_stepping): Use packet_support.
7198 2014-04-25 Tom Tromey <tromey@redhat.com>
7200 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7203 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7205 * NEWS: Mention support for C99 variable length arrays.
7207 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7209 * ada-lang.c (standard_exc): Expand introductory comment.
7211 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7212 Walfred Tedeschi <walfred.tedeschi@intel.com>
7214 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7216 (amd64_linux_read_description): Add code to handle AVX512 xstate
7217 mask and return respective tdesc.
7218 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7219 and features/i386/x32-avx512-linux.c.
7220 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7221 (amd64_linux_core_read_description): Add code to handle AVX512
7222 xstate mask and return respective tdesc.
7223 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7224 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7226 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7227 (tdesc_amd64_avx512_linux): New prototype.
7228 (tdesc_x32_avx512_linux): Likewise.
7229 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7230 features/i386/x32-avx512.c.
7231 (amd64_ymm_avx512_names): New register names for pseudo
7233 (amd64_ymmh_avx512_names): New register names for raw registers
7235 (amd64_k_names): New register names for K registers.
7236 (amd64_zmmh_names): New register names for ZMM raw registers.
7237 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7238 (amd64_xmm_avx512_names): New register names for XMM16-31
7240 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7242 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7243 if feature is present.
7244 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7245 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7246 (AMD64_NUM_REGS): Adjust to new number of registers.
7247 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7248 registers supplied via XSTATE by AVX512 registers.
7249 (i386_linux_read_description): Add case for AVX512.
7250 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7251 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7252 (i386_linux_core_read_description): Add case for AVX512.
7253 (i386_linux_init_abi): Install supported register note section
7255 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7257 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7258 registers to be number of zmm7h + 1.
7259 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7260 * i386-tdep.c: Include features/i386/i386-avx512.c.
7261 (i386_zmm_names): Add ZMM pseudo register names array.
7262 (i386_zmmh_names): Add ZMM raw register names array.
7263 (i386_k_names): Add K raw register names array.
7264 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7265 registers. AVX512 has 16 more ZMM registers than there are YMM
7267 (i386_zmmh_regnum_p): Add function to look up register number of
7269 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7270 (i386_k_regnum_p): Likewise for K raw registers.
7271 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7272 registers added by AVX512.
7273 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7274 registers added by AVX512.
7275 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7277 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7278 (i386_pseudo_register_name): Add ZMM pseudo registers.
7279 (i386_zmm_type): Construct and return vector registers type for ZMM
7281 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7282 ZMM0-31 pseudo registers and K registers.
7283 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7284 and YMM16-31 registers from register cache.
7285 (i386_pseudo_register_write): Add code to write K, ZMM and
7287 (i386_register_reggroup_p): Add code to include/exclude AVX512
7288 registers in/from respective register groups.
7289 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7290 registers if feature is present in xcr0.
7291 (i386_gdbarch_init): Add code to initialize AVX512 feature
7292 variables in tdep structure, wire in pseudo registers and call
7293 initialize_tdesc_i386_avx512.
7294 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7296 (i386_regnum): Add AVX512 registers.
7297 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7298 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7299 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7300 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7302 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7303 (i386_ymm_avx512_regnum_p): Likewise.
7304 (i386_k_regnum_p): Likewise.
7305 (i386_zmm_regnum_p): Likewise.
7306 (i386_zmmh_regnum_p): Likewise.
7307 * i387-tdep.c : Update year in copyright notice.
7308 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7310 (XSAVE_YMM_AVX512_ADDR): New macro.
7311 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7313 (XSAVE_XMM_AVX512_ADDR): New macro.
7314 (xsave_avx512_k_offset): New table for K register offsets in
7316 (XSAVE_AVX512_K_ADDR): New macro.
7317 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7319 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7320 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7322 (i387_collect_xsave): Add code to collect AVX512 registers from
7324 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7325 of XMM16-31 registers.
7326 (I387_NUM_K_REGS): New define for number of K registers.
7327 (I387_K0_REGNUM): New define for K0 register number.
7328 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7329 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7330 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7332 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7333 (I387_XMM16_REGNUM): New define for XMM16 register number.
7334 (I387_YMM0_REGNUM): New define for YMM0 register number.
7335 (I387_KEND_REGNUM): New define for last K register number.
7336 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7337 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7339 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7341 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7343 * features/Makefile: Add AVX512 related files.
7344 * features/i386/32bit-avx512.xml: New file.
7345 * features/i386/64bit-avx512.xml: Likewise.
7346 * features/i386/amd64-avx512-linux.c: Likewise.
7347 * features/i386/amd64-avx512-linux.xml: Likewise.
7348 * features/i386/amd64-avx512.c: Likewise.
7349 * features/i386/amd64-avx512.xml: Likewise.
7350 * features/i386/i386-avx512-linux.c: Likewise.
7351 * features/i386/i386-avx512-linux.xml: Likewise.
7352 * features/i386/i386-avx512.c: Likewise.
7353 * features/i386/i386-avx512.xml: Likewise.
7354 * features/i386/x32-avx512-linux.c: Likewise.
7355 * features/i386/x32-avx512-linux.xml: Likewise.
7356 * features/i386/x32-avx512.c: Likewise.
7357 * features/i386/x32-avx512.xml: Likewise.
7358 * regformats/i386/amd64-avx512-linux.dat: New file.
7359 * regformats/i386/amd64-avx512.dat: Likewise.
7360 * regformats/i386/i386-avx512-linux.dat: Likewise.
7361 * regformats/i386/i386-avx512.dat: Likewise.
7362 * regformats/i386/x32-avx512-linux.dat: Likewise.
7363 * regformats/i386/x32-avx512.dat: Likewise.
7364 * NEWS: Add note about new support for AVX512.
7367 2014-04-23 Pedro Alves <palves@redhat.com>
7369 * breakpoint.c (insert_bp_location): Tolerate errors if the
7370 breakpoint is set in a user-loaded objfile.
7371 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7372 location is marked shlib_disabled. If the breakpoint is set in a
7373 user-loaded objfile is a GDB-side memory breakpoint, validate it
7374 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7375 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7377 * mem-break.c (memory_validate_breakpoint): New function.
7378 * objfiles.c (userloaded_objfile_contains_address_p): New
7380 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7381 * target.h (memory_validate_breakpoint): New declaration.
7383 2014-04-23 Pedro Alves <palves@redhat.com>
7385 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7386 the breakpoint is set in a shared library, only suppress
7387 errors for software breakpoints, not hardware breakpoints.
7389 2014-04-22 Pedro Alves <palves@redhat.com>
7391 * infrun.c (schedlock_applies): New function, factored out from
7392 find_thread_needs_step_over.
7393 (find_thread_needs_step_over): Use it.
7394 (switch_back_to_stepped_thread): Always clear trap_expected if the
7395 step over is finished. Return early if scheduler locking applies.
7396 Look for the stepping thread and a potential step-over thread with
7398 (currently_stepping_or_nexting_callback): Delete.
7400 2014-04-22 Nick Clifton <nickc@redhat.com>
7402 * NEWS: Mention that ARM sim now supports tracing.
7404 2014-04-22 Yao Qi <yao@codesourcery.com>
7406 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7408 * tracefile.c (tracefile_fetch_registers): ... it. New
7410 * tracefile.h (tracefile_fetch_registers): Declare.
7411 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7412 tracefile_fetch_registers.
7414 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7417 * windows-nat.c (thread_rec): Don't display a warning when
7418 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7419 fails for any reason, set th->suspended to -1, so that we don't
7420 try to resume such a thread. Also, don't return NULL in these
7421 cases, to avoid completely ruin the session due to "PC register is
7422 not available" error.
7423 (do_windows_fetch_inferior_registers): Check errors in
7424 GetThreadContext call.
7425 (windows_continue): Accept an additional argument KILLED; if not
7426 zero, ignore errors in the SetThreadContext call, since the
7427 inferior was killed and is shutting down.
7428 (windows_resume, get_windows_debug_event)
7429 (windows_create_inferior, windows_mourn_inferior)
7430 (windows_kill_inferior): All callers of windows_continue changed
7431 to adjust to its new calling sequence.
7433 2014-04-19 Yao Qi <yao@codesourcery.com>
7435 * ctf.c (ctf_open): Call post_create_inferior.
7437 2014-04-19 Yao Qi <yao@codesourcery.com>
7439 * ctf.c (handle_id): New static variable.
7440 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7441 value. Get the declaration of event "register" and get length
7442 of field "contents".
7444 2014-04-19 Yao Qi <yao@codesourcery.com>
7446 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7448 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7450 * valops.c (oload_method_static): Remove unnecessary argument
7451 METHOD. Update all callers.
7453 2014-04-18 Pedro alves <palves@redhat.com>
7454 Tom Tromey <tromey@redhat.com>
7457 * frame.c (get_prev_frame_1): Rename to ...
7458 (get_prev_frame_always): ... this, and make extern. Adjust.
7459 (skip_artificial_frames): Use get_prev_frame_always.
7460 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7461 (get_frame_unwind_stop_reason): Adjust to rename.
7462 * frame.h (get_prev_frame_always): Declare.
7463 * inline-frame.c: Include frame.h.
7464 (inline_frame_this_id): Use get_prev_frame_always.
7466 2014-04-18 Tristan Gingold <gingold@adacore.com>
7468 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7469 code by using bfd_mach_o_get_base_address.
7471 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7473 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7474 (spu_ax_pseudo_register_collect): New function.
7475 (spu_ax_pseudo_register_push_stack): Likewise.
7476 (spu_dwarf_reg_to_regnum): Likewise.
7477 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7479 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7481 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7482 Replace FRAME argument with FRAME_ID.
7483 * gdbarch.c, gdbarch.h: Regenerate.
7484 * findvar.c (default_value_from_register): Add GDBARCH argument;
7485 replace FRAME by FRAME_ID. No longer call get_frame_id.
7486 (value_from_register): Update call to gdbarch_value_from_register.
7487 * value.h (default_value_from_register): Update prototype.
7488 * s390-linux-tdep.c (s390_value_from_register): Update interface
7489 and call to default_value_from_register.
7490 * spu-tdep.c (spu_value_from_register): Likewise.
7492 * findvar.c (address_from_register): Remove TYPE argument.
7493 Do not call value_from_register; use gdbarch_value_from_register
7494 with null_frame_id instead.
7495 * value.h (address_from_register): Update prototype.
7496 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7497 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7498 address_from_register interface change.
7500 2014-04-17 Yao Qi <yao@codesourcery.com>
7502 * gdbtypes.h: Update comments to link to types and macros'
7505 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7507 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7509 2014-04-16 Keith Seitz <keiths@redhat.com>
7512 * dwarf2read.c (skip_one_die): Check that all relative-offset
7513 sibling DIEs fall within range of the current reader's buffer.
7514 (read_partial_die): Likewise.
7516 2014-04-16 Keith Seitz <keiths@redhat.com>
7519 * cp-namespace.c (lookup_symbol_file): If the type name of
7520 `this' is NULL, return immediately.
7522 2014-04-14 Keith Seitz <keiths@redhat.com>
7525 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7526 from symbol_matches_domain in symtab.c. All local callers
7527 of symbol_matches_domain updated.
7528 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7529 search STRUCT_DOMAIN.
7530 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7531 independently. standard_lookup will do that automatically.
7532 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7533 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7534 (cp_lookup_symbol_in_namespace): Likewise.
7535 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7536 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7537 may return a STRUCT_DOMAIN match.
7538 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7539 * cp-support.c: Include language.h.
7540 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7542 * psymtab.c (match_partial_symbol): Compare the requested
7543 domain with the symbol's domain directly.
7544 (lookup_partial_symbol): Likewise.
7545 * symtab.c (lookup_symbol_in_language): Explain when/why
7546 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7547 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7548 appropriate languages.
7549 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7550 and moved to ada-lang.c
7551 (lookup_block_symbol): Explain that this function only returns
7552 symbol matching the requested DOMAIN.
7553 Compare the requested domain with the symbol's domain directly.
7554 (iterate_over_symbols): Compare the requested domain with the
7555 symbol's domain directly.
7556 * symtab.h (symbol_matches_domain): Remove.
7558 2014-04-14 Tom Tromey <tromey@redhat.com>
7561 * c-exp.y (type_aggregate_p): New function.
7562 (qualified_name, classify_inner_name): Use it.
7563 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7564 and TYPE_TARGET_TYPE of an enum type.
7565 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7567 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7568 handle TYPE_DECLARED_CLASS.
7569 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7571 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7572 * valops.c (enum_constant_from_type): New function.
7573 (value_aggregate_elt): Use it.
7574 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7577 2014-04-14 Tom Tromey <tromey@redhat.com>
7579 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7580 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7582 * value.h (value_aggregate_elt): Update.
7584 2014-04-14 Tom Tromey <tromey@redhat.com>
7586 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7588 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7590 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7591 (evaluate_subexp_standard): Pass noside argument.
7592 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7593 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7594 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7595 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7596 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7598 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7600 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7601 points to a constant blob.
7603 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7605 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7606 property and store it as the high bound and flag the range accordingly.
7607 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7608 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7609 * gdbtypes.h (enum range_flags): New enum.
7610 (struct range_bounds): Add flags member.
7612 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7614 * c-typeprint.c (c_type_print_varspec_suffix): Added
7615 check for not yet resolved high bound. If unresolved, print
7616 "variable length" string to the console instead of random
7619 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7621 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7623 (ada_template_to_fixed_record_type_1): Likewise.
7624 (ada_to_fixed_type_1): Likewise.
7625 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7626 (cp_print_value): Likewise.
7627 * d-valprint.c (dynamic_array_type): Likewise.
7628 * findvar.c (address_of_variable): Likewise.
7629 * jv-valprint.c (java_value_print): Likewise.
7630 * valops.c (value_ind): Likewise.
7631 * value.c (coerce_ref): Likewise.
7633 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7635 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7636 value and retrieve the dynamic type size.
7638 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7640 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7641 passed to sizeof is dynamic evaluate the argument to compute the length.
7643 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7644 Joel Brobecker <brobecker@adacore.com>
7646 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7647 (dwarf2_evaluate_property): New function.
7648 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7649 * dwarf2read.c (attr_to_dynamic_prop): New function.
7650 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7652 * gdbtypes.c: Include dwarf2loc.h.
7653 (is_dynamic_type): New function.
7654 (resolve_dynamic_type): New function.
7655 (resolve_dynamic_bounds): New function.
7656 (get_type_length): New function.
7657 (check_typedef): Use get_type_length to compute type length.
7658 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7659 (TYPE_LOW_BOUND_KIND): New macro.
7660 (is_dynamic_type): New function prototype.
7661 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7662 to resolve dynamic properties of the type. Update comment.
7663 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7665 2014-04-14 Richard Henderson <rth@redhat.com>
7667 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7669 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7670 Doug Evans <xdje42@gmail.com>
7672 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7673 dereference TYPE_CODE_REF values.
7675 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7677 Revert the following changes due to regressions:
7679 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7680 (dwarf2_evaluate_property): New function.
7681 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7682 * dwarf2read.c (attr_to_dynamic_prop): New function.
7683 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7685 * gdbtypes.c: Include dwarf2loc.h.
7686 (is_dynamic_type): New function.
7687 (resolve_dynamic_type): New function.
7688 (resolve_dynamic_bounds): New function.
7689 (get_type_length): New function.
7690 (check_typedef): Use get_type_length to compute type length.
7691 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7692 (TYPE_LOW_BOUND_KIND): New macro.
7693 (is_dynamic_type): New function prototype.
7694 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7695 to resolve dynamic properties of the type. Update comment.
7696 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7698 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7699 passed to sizeof is dynamic evaluate the argument to compute the length.
7701 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7702 value and retrieve the dynamic type size.
7704 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7705 (ada_template_to_fixed_record_type_1): Likewise.
7706 (ada_to_fixed_type_1): Likewise.
7707 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7708 (cp_print_value): Likewise.
7709 * d-valprint.c (dynamic_array_type): Likewise.
7710 * eval.c (evaluate_subexp_with_coercion): Likewise.
7711 * findvar.c (address_of_variable): Likewise.
7712 * jv-valprint.c (java_value_print): Likewise.
7713 * valops.c (value_ind): Likewise.
7714 * value.c (coerce_ref): Likewise.
7716 * c-typeprint.c (c_type_print_varspec_suffix): Added
7717 check for not yet resolved high bound. If unresolved, print
7718 "variable length" string to the console instead of random
7721 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7722 property and store it as the high bound and flag the range accordingly.
7723 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7724 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7725 * gdbtypes.h (enum range_flags): New enum.
7726 (struct range_bounds): Add flags member.
7728 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7729 points to a constant blob.
7731 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7732 (evaluate_subexp_standard): Pass noside argument.
7733 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7734 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7735 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7736 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7737 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7739 2014-04-11 Keith Seitz <keiths@redhat.com>
7742 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7743 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7746 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7748 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7749 (evaluate_subexp_standard): Pass noside argument.
7750 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7751 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7752 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7753 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7754 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7756 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7758 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7759 points to a constant blob.
7761 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7763 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7764 property and store it as the high bound and flag the range accordingly.
7765 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7766 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7767 * gdbtypes.h (enum range_flags): New enum.
7768 (struct range_bounds): Add flags member.
7770 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7772 * c-typeprint.c (c_type_print_varspec_suffix): Added
7773 check for not yet resolved high bound. If unresolved, print
7774 "variable length" string to the console instead of random
7777 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7779 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7780 (ada_template_to_fixed_record_type_1): Likewise.
7781 (ada_to_fixed_type_1): Likewise.
7782 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7783 (cp_print_value): Likewise.
7784 * d-valprint.c (dynamic_array_type): Likewise.
7785 * eval.c (evaluate_subexp_with_coercion): Likewise.
7786 * findvar.c (address_of_variable): Likewise.
7787 * jv-valprint.c (java_value_print): Likewise.
7788 * valops.c (value_ind): Likewise.
7789 * value.c (coerce_ref): Likewise.
7791 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7793 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7794 value and retrieve the dynamic type size.
7796 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7798 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7799 passed to sizeof is dynamic evaluate the argument to compute the length.
7801 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7803 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7804 (dwarf2_evaluate_property): New function.
7805 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7806 * dwarf2read.c (attr_to_dynamic_prop): New function.
7807 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7809 * gdbtypes.c: Include dwarf2loc.h.
7810 (is_dynamic_type): New function.
7811 (resolve_dynamic_type): New function.
7812 (resolve_dynamic_bounds): New function.
7813 (get_type_length): New function.
7814 (check_typedef): Use get_type_length to compute type length.
7815 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7816 (TYPE_LOW_BOUND_KIND): New macro.
7817 (is_dynamic_type): New function prototype.
7818 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7819 to resolve dynamic properties of the type. Update comment.
7820 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7822 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7824 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7825 declaring high/low bounds and change uses accordingly. Call
7826 create_range_type instead of create_static_range_type.
7827 * gdbtypes.c (create_range_type): New function.
7828 (create_range_type): Convert bounds into struct bound_prop and pass
7829 them to create_range_type.
7830 * gdbtypes.h (struct bound_prop): New struct.
7831 (create_range_type): New function prototype.
7832 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7833 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7834 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7836 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7838 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7840 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7841 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7842 * ada-lang.c: All uses of create_range_type updated.
7843 * coffread.c: All uses of create_range_type updated.
7844 * dwarf2read.c: All uses of create_range_type updated.
7845 * f-exp.y: All uses of create_range_type updated.
7846 * m2-valprint.c: All uses of create_range_type updated.
7847 * mdebugread.c: All uses of create_range_type updated.
7848 * stabsread.c: All uses of create_range_type updated.
7849 * valops.c: All uses of create_range_type updated.
7850 * valprint.c: All uses of create_range_type updated.
7852 2014-04-10 Pedro Alves <palves@redhat.com>
7854 * breakpoint.c (single_step_breakpoints)
7855 (single_step_gdbarch): Move up in the file.
7856 (one_breakpoint_xfer_memory): New function, factored out from ...
7857 (breakpoint_xfer_memory): ... here. Also process single-step
7860 2014-04-09 Tristan Gingold <gingold@adacore.com>
7862 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7864 (darwin_decode_exception_message): Free port only after use.
7866 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7868 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7869 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7870 when setting the size of call_length.
7872 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7874 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7875 dereference TYPE_CODE_REF values.
7877 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7879 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7880 end of warning message.
7882 2014-04-03 Doug Evans <dje@google.com>
7884 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7885 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7887 2014-04-02 Alan Modra <amodra@gmail.com>
7889 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7890 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7891 (struct symbol_file_add_from_memory_args): Add size field.
7892 (find_vdso_size): New function.
7893 (add_vsyscall_page): Attempt to find vdso size.
7895 2014-04-01 Doug Evans <dje@google.com>
7897 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7899 2014-04-01 Tristan Gingold <gingold@adacore.com>
7901 * darwin-nat.c (darwin_encode_reply): Add prototype.
7902 (darwin_decode_exception_message): Reply to unknown inferiors.
7903 (darwin_decode_message): Handle message by id. Ignore message
7904 to unknown inferior.
7905 (darwin_wait): Discard unknown messages, add debug trace.
7907 2014-03-31 Doug Evans <dje@google.com>
7909 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7912 2014-03-31 Doug Evans <dje@google.com>
7914 New option "set print symbol-loading".
7916 * solib.c (solib_read_symbols): Only print symbol loading messages
7918 (solib_add): If symbol loading is in "brief" mode, notify user
7919 symbols are being loaded.
7920 (reload_shared_libraries_1): Ditto.
7921 * symfile.c (print_symbol_loading_off): New static global.
7922 (print_symbol_loading_brief): New static global.
7923 (print_symbol_loading_full): New static global.
7924 (print_symbol_loading_enums): New static global.
7925 (print_symbol_loading): New static global.
7926 (print_symbol_loading_p): New function.
7927 (symbol_file_add_with_addrs): Only print symbol loading messages
7929 (_initialize_symfile): Register "print symbol-loading" set/show
7931 * symfile.h (print_symbol_loading_p): Declare.
7933 2014-03-30 Doug Evans <xdje42@gmail.com>
7935 * infrun.c (set_last_target_status): New function.
7936 (handle_inferior_event): Call it.
7938 2014-03-30 Doug Evans <xdje42@gmail.com>
7940 * inferior.h (enum stop_kind): Improve comment.
7942 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7944 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7945 a reference, strip the reference layer before calling
7946 the lang_ops value_has_mutated callback.
7948 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7950 Remove some globals from our parser.
7951 * language.c (unk_lang_parser): Add "struct parser_state"
7953 * language.h (struct language_defn) <la_parser>: Likewise.
7954 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7955 (initialize_expout): Add "struct parser_state" argument.
7956 Rewrite function to use the parser state.
7957 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7958 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7959 write_exp_elt_longcst, write_exp_elt_dblcst,
7960 write_exp_elt_decfloatcst, write_exp_elt_type,
7961 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7962 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7963 write_dollar_variable): Likewise.
7964 (parse_exp_in_context_1): Use parser state.
7965 (insert_type_address_space): Add "struct parser_state" argument.
7967 (increase_expout_size): New function.
7968 * parser-defs.h: Forward declare "struct language_defn" and
7969 "struct parser_state".
7970 (expout, expout_size, expout_ptr): Remove extern declarations.
7971 (parse_gdbarch, parse_language): Rewrite macro declarations to
7972 accept the parser state.
7973 (struct parser_state): New struct.
7974 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7975 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7976 write_exp_elt_decfloatcst, write_exp_elt_type,
7977 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7978 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7979 write_exp_msymbol, write_dollar_variable,
7980 mark_struct_expression, insert_type_address_space): Add "struct
7981 parser_state" argument.
7982 (increase_expout_size): New function.
7983 * utils.c (do_clear_parser_state): New function.
7984 (make_cleanup_clear_parser_state): Likewise.
7985 * utils.h (make_cleanup_clear_parser_state): New function
7987 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7988 Update calls to write_exp* in order to pass the parser state.
7989 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7990 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7991 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7992 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7993 * stap-probe.c (stap_parse_register_operand): Likewise.
7994 (stap_parse_single_operand): Likewise.
7995 (stap_parse_argument_1): Likewise.
7996 (stap_parse_argument): Use parser state.
7997 * stap-probe.h: Include "parser-defs.h".
7998 (struct stap_parse_info) <pstate>: New field.
7999 * c-exp.y (parse_type): Rewrite to use parser state.
8000 (yyparse): Redefine to c_parse_internal.
8001 (pstate): New global variable.
8002 (parse_number): Add "struct parser_state" argument.
8003 (write_destructor_name): Likewise.
8004 (type_exp): Update calls to write_exp* and similars in order to
8006 (exp1, exp, variable, qualified_name, space_identifier,
8007 typename, typebase): Likewise.
8008 (write_destructor_name, parse_number, lex_one_token,
8009 classify_name, classify_inner_name, c_parse): Add "struct
8010 parser_state" argument. Update function to use parser state.
8011 * c-lang.h: Forward declare "struct parser_state".
8012 (c_parse): Add "struct parser_state" argument.
8013 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8014 (yyparse): Redefine macro to ada_parse_internal.
8015 (pstate): New variable.
8016 (write_int, write_object_renaming, write_var_or_type,
8017 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8018 type_int, type_long, type_long_long, type_float, type_double,
8019 type_long_double, type_char, type_boolean, type_system_address):
8020 Add "struct parser_state" argument.
8021 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8022 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8023 var_or_type, aggregate, aggregate_component_list,
8024 positional_list, others, component_group,
8025 component_associations): Update calls to write_exp* and similar
8026 functions in order to use parser state.
8027 (ada_parse, write_var_from_sym, write_int,
8028 write_exp_op_with_string, write_object_renaming,
8029 find_primitive_type, write_selectors, write_ambiguous_var,
8030 write_var_or_type, write_name_assoc, type_int, type_long,
8031 type_long_long, type_float, type_double, type_long_double,
8032 type_char, type_boolean, type_system_address): Add "struct
8033 parser_state" argument. Adjust function to use parser state.
8034 * ada-lang.c (parse): Likewise.
8035 * ada-lang.h: Forward declare "struct parser_state".
8036 (ada_parse): Add "struct parser_state" argument.
8037 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8038 calls to both functions.
8039 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8041 (yyparse): Redefine macro to f_parse_internal.
8042 (pstate): New variable.
8043 (parse_number): Add "struct parser_state" argument.
8044 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8045 and similars in order to use parser state.
8046 (parse_number): Adjust code to use parser state.
8048 (f_parse): New function.
8049 * f-lang.h: Forward declare "struct parser_state".
8050 (f_parse): Add "struct parser_state" argument.
8051 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8053 (yyparse): Redefine macro for java_parse_internal.
8054 (pstate): New variable.
8055 (push_expression_name, push_expression_name, insert_exp): Add
8056 "struct parser_state" argument.
8057 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8058 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8059 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8060 PostIncrementExpression, PostDecrementExpression,
8061 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8062 UnaryExpressionNotPlusMinus, CastExpression,
8063 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8064 RelationalExpression, EqualityExpression, AndExpression,
8065 ExclusiveOrExpression, InclusiveOrExpression,
8066 ConditionalAndExpression, ConditionalOrExpression,
8067 ConditionalExpression, Assignment, LeftHandSide): Update
8068 calls to write_exp* and similars in order to use parser state.
8069 (parse_number): Ajust code to use parser state.
8071 (java_parse): New function.
8072 (push_variable): Add "struct parser_state" argument. Adjust
8073 code to user parser state.
8074 (push_fieldnames, push_qualified_expression_name,
8075 push_expression_name, insert_exp): Likewise.
8076 * jv-lang.h: Forward declare "struct parser_state".
8077 (java_parse): Add "struct parser_state" argument.
8078 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8080 (yyparse): Redefine macro to m2_parse_internal.
8081 (pstate): New variable.
8082 (type_exp, exp, fblock, variable, type): Update calls to
8083 write_exp* and similars to use parser state.
8085 (m2_parse): New function.
8086 * m2-lang.h: Forward declare "struct parser_state".
8087 (m2_parse): Add "struct parser_state" argument.
8088 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8089 * objc-lang.h: Forward declare "struct parser_state".
8090 (end_msglist): Add "struct parser_state" argument.
8091 * p-exp.y (parse_type): Rewrite macro to use parser state.
8092 (yyparse): Redefine macro to pascal_parse_internal.
8093 (pstate): New variable.
8094 (parse_number): Add "struct parser_state" argument.
8095 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8096 write_exp* and similars in order to use parser state.
8097 (parse_number, yylex): Adjust code to use parser state.
8098 (pascal_parse): New function.
8099 * p-lang.h: Forward declare "struct parser_state".
8100 (pascal_parse): Add "struct parser_state" argument.
8101 * go-exp.y (parse_type): Rewrite macro to use parser state.
8102 (yyparse): Redefine macro to go_parse_internal.
8103 (pstate): New variable.
8104 (parse_number): Add "struct parser_state" argument.
8105 (type_exp, exp1, exp, variable, type): Update calls to
8106 write_exp* and similars in order to use parser state.
8107 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8108 to use parser state.
8109 (go_parse): Likewise.
8110 * go-lang.h: Forward declare "struct parser_state".
8111 (go_parse): Add "struct parser_state" argument.
8113 2014-03-27 Doug Evans <dje@google.com>
8115 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8117 2014-03-27 Doug Evans <dje@google.com>
8119 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8120 Remove argument abbrev_section. All callers updated.
8122 2014-03-27 Doug Evans <dje@google.com>
8124 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8125 addr_base, ranges_base.
8127 2014-03-26 Keith Seitz <keiths@redhat.com>
8129 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8130 types, not VAR_DOMAIN.
8132 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8134 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8136 * features/nios2-linux.c: Regenerated.
8137 * features/nios2.c: Regenerated.
8139 2014-03-25 Pedro Alves <palves@redhat.com>
8141 * cli/cli-script.c (script_from_file): Force the interpreter to
8144 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8146 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8147 small stack allocation.
8149 2014-03-24 Tristan Gingold <gingold@adacore.com>
8151 * darwin-nat.c (exc_server): Remove unused prototype.
8152 (darwin_dump_message): Correctly display data on x86_64.
8153 (darwin_encode_reply): Fix style.
8154 Add comments and fix indentation.
8156 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8158 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8160 2014-03-22 Doug Evans <xdje42@gmail.com>
8162 * infcmd.c: Whitespace fixes.
8163 (interrupt_command): Merge two function comments into one.
8165 2014-03-22 Doug Evans <xdje42@gmail.com>
8167 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8170 2014-03-22 Yao Qi <yao@codesourcery.com>
8172 * remote.c (target_read_live_memory): Remove.
8173 (memory_xfer_live_readonly_partial): Rename it to
8174 remote_xfer_live_readonly_partial. Remove argument 'object'.
8175 All callers updated. Call remote_read_bytes_1
8176 instead of target_read_live_memory.
8177 * tracepoint.c (set_traceframe_number): Remove.
8178 (make_cleanup_restore_traceframe_number): Likewise .
8179 * tracepoint.h (set_traceframe_number): Remove declaration.
8180 (make_cleanup_restore_traceframe_number): Likewise.
8182 2014-03-22 Yao Qi <yao@codesourcery.com>
8184 * remote.c (remote_read_bytes): Move code on reading from the
8186 (remote_read_bytes_1): ... here. New function.
8188 2014-03-22 Yao Qi <yao@codesourcery.com>
8190 * ctf.c (ctf_xfer_partial): Check the return value of
8191 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8192 return TARGET_XFER_UNAVAILABLE.
8193 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8194 * target.c (target_read_live_memory): Move it to remote.c.
8195 (memory_xfer_live_readonly_partial): Likewise.
8196 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8197 * remote.c (target_read_live_memory): Moved from target.c.
8198 (memory_xfer_live_readonly_partial): Likewise.
8199 (remote_read_bytes): Factored out from
8200 memory_xfer_partial_1.
8202 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8204 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8207 2014-03-21 Pedro Alves <palves@redhat.com>
8209 * infrun.c (normal_stop): Extend comment.
8211 2014-03-21 Hui Zhu <hui@codesourcery.com>
8212 Pedro Alves <palves@redhat.com>
8214 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8216 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8217 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8218 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8220 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8222 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8223 `z' formatted output modifier.
8225 2014-03-20 Tom Tromey <tromey@redhat.com>
8226 Sergio Durigan Junior <sergiodj@redhat.com>
8228 * probe.c (parse_probes): Turn assert into an ordinary error.
8229 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8230 exceptions when parsing probes. Rearrange the code for clarity.
8232 2014-03-20 Tom Tromey <tromey@redhat.com>
8235 * top.c (execute_command): Only dispatch events if the command
8238 2014-03-20 Tom Tromey <tromey@redhat.com>
8241 * infcall.c: Include event-top.h.
8242 (run_inferior_call): Call async_disable_stdin if needed.
8244 2014-03-20 Pedro Alves <palves@redhat.com>
8246 * infrun.c (prepare_to_proceed): Delete.
8247 (thread_still_needs_step_over): New function.
8248 (find_thread_needs_step_over): New function.
8249 (proceed): If the current thread needs a step-over, set its
8250 steping_over_breakpoint flag. Adjust to use
8251 find_thread_needs_step_over instead of prepare_to_proceed.
8252 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8253 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8255 (switch_back_to_stepped_thread): Step over breakpoints of all
8256 threads not the stepping thread, before switching back to the
8259 2014-03-20 Pedro Alves <palves@redhat.com>
8261 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8263 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8264 * infrun.c (saved_singlestep_ptid)
8265 (stepping_past_singlestep_breakpoint): Delete.
8266 (resume): Remove stepping_past_singlestep_breakpoint handling.
8267 (proceed): Store the prev_pc of the stepping thread too.
8268 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8270 (enum infwait_states): Delete infwait_thread_hop_state.
8271 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8273 (handle_inferior_event): Adjust.
8274 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8275 handling and the thread-hop code. Before removing single-step
8276 breakpoints, check whether the thread hit a single-step breakpoint
8277 of another thread. If it did, the trap is not a random signal.
8278 (switch_back_to_stepped_thread): If the event thread hit a
8279 single-step breakpoint, unblock it before switching to the
8280 stepping thread. Handle the case of the stepped thread having
8282 (keep_going): Handle the case of the current thread moving past a
8283 single-step breakpoint.
8285 2014-03-20 Pedro Alves <palves@redhat.com>
8288 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8289 are being stepped over.
8290 (breakpoint_address_match): Make extern.
8291 * breakpoint.h (breakpoint_address_match): New declaration.
8292 * inferior.h (stepping_past_instruction_at): New declaration.
8293 * infrun.c (struct step_over_info): New type.
8294 (step_over_info): New global.
8295 (set_step_over_info, clear_step_over_info)
8296 (stepping_past_instruction_at): New functions.
8297 (handle_inferior_event): Clear the step-over info when
8298 trap_expected is cleared.
8299 (resume): Remove now stale comment.
8300 (clear_proceed_status): Clear step-over info.
8301 (proceed): Adjust step-over handling to set or clear the step-over
8302 info instead of removing all breakpoints.
8303 (handle_signal_stop): When setting up a thread-hop, don't remove
8305 (stop_stepping): Clear step-over info.
8306 (keep_going): Adjust step-over handling to set or clear step-over
8307 info and then always inserting breakpoints, instead of removing
8308 all breakpoints when stepping over one.
8310 2014-03-20 Pedro Alves <palves@redhat.com>
8312 * infrun.c (previous_inferior_ptid): Adjust comment.
8313 (deferred_step_ptid): Delete.
8314 (infrun_thread_ptid_changed, prepare_to_proceed)
8315 (init_wait_for_inferior): Adjust.
8316 (handle_signal_stop): Delete deferred_step_ptid handling.
8318 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8321 * defs.h (sync_quit_force_run): New declaration.
8322 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8323 * event-top.c (async_sigterm_handler): New declaration.
8324 (async_sigterm_token): New variable.
8325 (async_init_signals): Create also async_sigterm_token.
8326 (async_sigterm_handler): New function.
8327 (sync_quit_force_run): New variable.
8328 (handle_sigterm): Replace quit_force call by other calls.
8329 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8331 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8333 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8334 offset into SPE pseudo registers.
8336 2014-03-18 Pedro Alves <palves@redhat.com>
8339 * inferior.h (print_stop_event): Declare.
8340 * infrun.c (print_stop_event): New, factored out from ...
8341 (normal_stop): ... this.
8342 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8343 of bpstat_print/print_stack_frame.
8345 2014-03-17 Tom Tromey <tromey@redhat.com>
8347 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8349 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8351 * ada-lang.c (decode_constrained_packed_array): Perform a
8352 minimal coercion for reference with coerce_ref instead of
8355 2014-03-17 Tristan Gingold <gingold@adacore.com>
8357 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8358 (darwin_solib_create_inferior_hook): Emit a warning if version
8361 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8363 * python/py-value.c (get_field_flag): Cast flag_name argument to
8364 PyObject_GetAttrString to support Python 2.4.
8366 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8368 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8369 (Global Maintainers): Remove Jan Kratochvil.
8371 2014-03-14 Pedro Alves <palves@redhat.com>
8373 * inferior.h (terminal_ours_for_output): Rename to ...
8374 (child_terminal_ours_for_output): ... this.
8375 (terminal_save_ours): Rename to ...
8376 (child_terminal_save_ours): ... this.
8377 (terminal_ours): Rename to ...
8378 (child_terminal_ours): ... this.
8379 (terminal_inferior): Rename to ...
8380 (child_terminal_inferior): ... this.
8381 (terminal_init_inferior): Rename to ...
8382 (child_terminal_init_inferior): ... this.
8383 (terminal_init_inferior_with_pgrp): Rename to ...
8384 (child_terminal_init_inferior_with_pgrp): ... this.
8385 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8386 (child_terminal_init_with_pgrp): ... this.
8387 (terminal_save_ours): Rename to ...
8388 (child_terminal_save_ours): ... this.
8389 (terminal_init_inferior): Rename to ...
8390 (child_terminal_init): ... this. Adjust.
8391 (terminal_inferior): Rename to ...
8392 (child_terminal_inferior): ... this.
8393 (terminal_ours_for_output): Rename to ...
8394 (child_terminal_ours_for_output): ... this. Adjust.
8395 (terminal_ours): Rename to ...
8396 (child_terminal_ours): ... this.
8397 (terminal_ours_1): Rename to ...
8398 (child_terminal_ours_1): ... this. Adjust.
8399 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8400 * windows-nat.c (do_initial_windows_stuff): Adjust.
8401 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8402 (gnu_terminal_init): ... this. Adjust.
8403 (gnu_target): Adjust.
8404 * inf-child.c (inf_child_target): Adjust.
8406 2014-03-13 Doug Evans <xdje42@gmail.com>
8409 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8412 2014-03-13 Doug Evans <xdje42@gmail.com>
8414 * value.c (record_latest_value): Call release_value_or_incref
8415 instead of release_value.
8417 2014-03-13 Pedro Alves <palves@redhat.com>
8419 * procfs.c (procfs_target): Don't override to_shortname,
8420 to_longname or to_doc.
8422 2014-03-13 Pedro Alves <palves@redhat.com>
8424 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8425 Unix in user visible strings.
8427 2014-03-12 Stan Shebs <stan@codesourcery.com>
8429 * gdbtypes.h: Annotate comments for Doxygen, add a page
8430 block comment with some general info.
8432 2014-03-12 Pedro Alves <palves@redhat.com>
8434 * infcmd.c (prepare_execution_command): New function, factored out
8435 from several execution commands.
8436 (run_command_1, continue_command, step_1, jump_command)
8437 (signal_command, until_command, advance_command, finish_command)
8438 (attach_command): Use prepare_execution_command.
8440 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8442 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8445 (struct arm_linux_thread_points): Removed.
8446 (struct arm_linux_process_info): New.
8447 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8448 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8449 (arm_linux_find_breakpoints_by_tid): Removed.
8450 (struct arch_lwp_info): New.
8451 (arm_linux_find_process_pid): New functions.
8452 (arm_linux_add_process): New functions.
8453 (arm_linux_process_info_get): New functions.
8454 (arm_linux_forget_process): New function.
8455 (arm_linux_get_debug_reg_state): New function.
8456 (struct update_registers_data): New.
8457 (update_registers_callback): New function.
8458 (arm_linux_insert_hw_breakpoint1): Updated.
8459 (arm_linux_remove_hw_breakpoint1): Updated.
8460 (arm_linux_insert_hw_breakpoint): Updated.
8461 (arm_linux_remove_hw_breakpoint): Updated.
8462 (arm_linux_insert_watchpoint): Updated.
8463 (arm_linux_remove_watchpoint): Updated.
8464 (arm_linux_new_thread): Updated.
8465 (arm_linux_prepare_to_resume): New function.
8466 (arm_linux_new_fork): New function.
8467 (_initialize_arm_linux_nat): Updated.
8469 2014-03-12 Pedro Alves <palves@redhat.com>
8471 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8473 2014-03-12 Tom Tromey <tromey@redhat.com>
8475 * inf-child.c (return_zero): New function.
8476 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8477 * aix-thread.c (aix_thread_inferior_created): New function.
8478 (aix_thread_attach): Remove.
8479 (init_aix_thread_ops): Don't set to_attach.
8480 (_initialize_aix_thread): Register inferior_created observer.
8481 * corelow.c (init_core_ops): Don't set to_attach or
8483 * exec.c (init_exec_ops): Don't set to_attach or
8485 * infcmd.c (run_command_1): Use find_run_target. Make direct
8487 (attach_command): Use find_attach_target. Make direct target
8489 * record-btrace.c (init_record_btrace_ops): Don't set
8491 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8493 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8494 set to_create_inferior.
8495 * target.c (complete_target_initialization): Add assertion.
8496 (target_create_inferior): Remove.
8497 (find_default_attach, find_default_create_inferior): Remove.
8498 (find_attach_target, find_run_target): New functions.
8499 (find_default_is_async_p, find_default_can_async_p)
8500 (target_supports_non_stop, target_attach): Remove.
8501 (init_dummy_target): Don't set to_create_inferior or
8502 to_supports_non_stop.
8503 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8504 TARGET_DEFAULT_FUNC.
8505 <to_create_inferior>: Add comment.
8506 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8507 TARGET_DEFAULT_RETURN.
8508 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8509 (find_attach_target, find_run_target): Declare.
8510 (target_create_inferior): Remove.
8511 (target_has_execution_1): Update comment.
8512 (target_supports_non_stop): Remove.
8513 * target-delegates.c: Rebuild.
8515 2014-03-12 Pedro Alves <palves@redhat.com>
8517 * inf-child.h: Update comment to not mention Unix.
8519 2014-03-12 Pedro Alves <palves@redhat.com>
8521 * inf-child.c: Update top comment to not mention Unix. Add
8522 generic comment describing how this target is meant to be used.
8523 (inf_child_post_attach, inf_child_post_startup_inferior)
8524 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8527 2014-03-12 Pedro Alves <palves@redhat.com>
8529 * nto-procfs.c: Include inf-child.h.
8530 (procfs_ops): Delete global.
8531 (procfs_can_run): Delete method.
8532 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8533 target pointer instead of referencing procfs_ops.
8534 (procfs_prepare_to_store): Delete.
8535 (init_procfs_ops): Delete function.
8536 (procfs_target): New function, based on init_procfs_ops, but
8537 inherit inf_child_target.
8538 (_initialize_procfs): Use procfs_target.
8540 2014-03-12 Pedro Alves <palves@redhat.com>
8542 * windows-nat.c: Include inf-child.h.
8543 (windows_ops): Delete global.
8544 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8546 (init_windows_ops): Delete function.
8547 (windows_target): New function, based on init_windows_ops, but
8548 inherit inf_child_target.
8549 (_initialize_windows_nat): Use windows_target. Install x86
8550 specific target methods here.
8552 2014-03-10 Doug Evans <xdje42@gmail.com>
8554 * guile/guile.c (call_initialize_gdb_module): New function.
8555 (initialize_guile): Replace call to scm_init_guile with call to
8558 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8560 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8561 in call to TYPE_CODE macro.
8563 2014-03-10 Jerome Guitton <guitton@adacore.com>
8565 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8566 Resolve tagged types to full view.
8568 2014-03-10 Hui Zhu <hui@codesourcery.com>
8570 * target.h (target_insert_breakpoint): Remove "hardware" from its
8573 2014-03-07 Doug Evans <dje@google.com>
8575 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8577 2014-03-07 Doug Evans <dje@google.com>
8579 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8580 Remove unused local comp_dir_attr. Assert exactly one of
8581 stub_comp_unit_die, stub_comp_dir is non-NULL.
8583 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8585 * target.h (complete_target_initialization, add_target):
8588 2014-03-07 Pedro Alves <palves@redhat.com>
8590 * go32-nat.c: Include inf-child.h.
8591 (go32_ops): Delete global.
8592 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8594 (go32_create_inferior): Push the passed in target pointer instead
8595 of referencing go32_ops.
8596 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8597 (go32_target): New function, based on init_go32_ops, but inherit
8599 (_initialize_go32_nat): Use go32_target. Move parts of
8602 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8604 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8605 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8606 SYMBOL_VALUE_ADDRESS.
8607 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8609 2014-03-06 Yao Qi <yao@codesourcery.com>
8611 * breakpoint.c (get_tracepoint_by_number): Remove argument
8612 optional_p. All callers updated. Adjust comments. Update
8614 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8616 2014-03-06 Yao Qi <yao@codesourcery.com>
8618 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8619 early if get_number returns zero. Use 'p' instead of 'args'.
8621 2014-03-06 Yao Qi <yao@codesourcery.com>
8623 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8626 2014-03-06 Yao Qi <yao@codesourcery.com>
8628 PR breakpoints/16508
8629 * tracepoint.c (check_trace_running): New function.
8630 (trace_find_command): Move code to check_trace_running and
8631 call check_trace_running.
8632 (trace_find_pc_command): Likewise.
8633 (trace_find_tracepoint_command): Likewise.
8634 (trace_find_line_command): Likewise.
8635 (trace_find_range_command): Likewise.
8636 * tracepoint.h (check_trace_running): Likewise.
8637 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8639 2014-03-06 Yao Qi <yao@codesourcery.com>
8641 * target.h (struct target_ops) <to_traceframe_info>: Use
8642 TARGET_DEFAULT_NORETURN (tcomplain ()).
8643 * target-delegates.c: Regenerated.
8645 2014-03-05 Pedro Alves <palves@redhat.com>
8648 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8649 void. Update comment.
8650 (dcache_xfer_memory): Delete.
8651 (dcache_read_memory_partial): New, based on the read bits of
8653 (dcache_update): Add status parameter. Use ULONGEST for len, and
8654 adjust. Discard cache lines if the reason for the update was
8656 * dcache.h (dcache_xfer_memory): Delete declaration.
8657 (dcache_read_memory_partial): New declaration.
8658 (dcache_update): Update prototype.
8659 * target.c (raw_memory_xfer_partial): Update the dcache here.
8660 (memory_xfer_partial_1): Don't handle dcache writes here.
8662 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8664 * remote-sim.c (gdbsim_load): Add const to prog.
8666 2014-03-03 Tom Tromey <tromey@redhat.com>
8668 * elfread.c (probe_key): Change to bfd_data.
8669 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8670 now per-BFD, not per-objfile.
8671 * stap-probe.c (stap_probe_destroy): Update comment.
8672 (handle_stap_probe): Allocate on the per-BFD obstack.
8674 2014-03-03 Tom Tromey <tromey@redhat.com>
8676 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8677 * breakpoint.c (create_longjmp_master_breakpoint): Use
8679 (add_location_to_breakpoint, bkpt_probe_insert_location)
8680 (bkpt_probe_remove_location): Update.
8681 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8682 * elfread.c (elf_symfile_relocate_probe): Remove.
8683 (elf_probe_fns): Update.
8684 (insert_exception_resume_breakpoint): Change type of "probe"
8685 parameter to bound_probe.
8686 (check_exception_resume): Update.
8687 * objfiles.c (objfile_relocate1): Don't relocate probes.
8688 * probe.c (bound_probe_s): New typedef.
8689 (parse_probes): Use get_probe_address. Set sal's objfile.
8690 (find_probe_by_pc): Return a bound_probe.
8691 (collect_probes): Return a VEC(bound_probe_s).
8692 (compare_probes): Update.
8693 (gen_ui_out_table_header_info): Change type of "probes"
8695 (info_probes_for_ops): Update.
8696 (get_probe_address): New function.
8697 (probe_safe_evaluate_at_pc): Update.
8698 * probe.h (struct probe_ops) <get_probe_address>: New field.
8699 <set_semaphore, clear_semaphore>: Add objfile parameter.
8700 (struct probe) <objfile>: Remove field.
8702 <address>: Update comment.
8703 (struct bound_probe): New.
8704 (find_probe_by_pc): Return a bound_probe.
8705 (get_probe_address): Declare.
8706 * solib-svr4.c (struct probe_and_action) <address>: New field.
8707 (hash_probe_and_action, equal_probe_and_action): Update.
8708 (register_solib_event_probe): Add address parameter.
8709 (solib_event_probe_at): Update.
8710 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8712 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8713 (stap_get_probe_address): New function.
8714 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8715 (compile_probe_arg): Update.
8716 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8718 (handle_stap_probe): Don't relocate the probe.
8719 (stap_relocate): Remove.
8720 (stap_gen_info_probes_table_values): Update.
8721 (stap_probe_ops): Remove stap_relocate.
8722 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8723 (debug_sym_probe_fns): Update.
8724 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8725 * symtab.c (init_sal): Use memset.
8726 * symtab.h (struct symtab_and_line) <objfile>: New field.
8727 * tracepoint.c (start_tracing, stop_tracing): Update.
8729 2014-03-03 Tom Tromey <tromey@redhat.com>
8731 * probe.h (parse_probes, find_probe_by_pc)
8732 (find_probes_in_objfile): Fix comments.
8734 2014-03-02 Doug Evans <xdje42@gmail.com>
8736 * infrun.c (handle_signal_stop): Replace test for
8737 TARGET_WAITKIND_STOPPED with an assert.
8739 2014-03-02 Doug Evans <xdje42@gmail.com>
8741 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8743 2014-03-02 Doug Evans <xdje42@gmail.com>
8745 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8747 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8749 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8751 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8753 * i386obsd-nat.c: Include "obsd-nat.h".
8754 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8756 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8758 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8760 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8762 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8764 * mips64obsd-nat.c: Include "obsd-nath".
8765 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8767 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8769 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8771 * amd64obsd-nat.c: Include "obsd-nat,h.
8772 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8774 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8776 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8778 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8779 (find_overload_match): Update call to find_oload_champ.
8780 (find_oload_champ_namespace_loop): Likewise
8782 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8784 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8786 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8787 * config/sparc/obsd64.mh: New file.
8788 * sparc64obsd-nat.c: New file.
8790 * obsd-nat.h: New file.
8791 * obsd-nat.c: New file.
8792 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8793 (ALLDEPFILES): Add obsd-nat.c.
8795 2014-02-28 Tom Tromey <tromey@redhat.com>
8797 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8798 * cli-out.h (cli_ui_out_impl): Now const.
8799 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8800 * ui-out.c (struct ui_out) <impl>: Now const.
8801 (default_ui_out_impl): Now const.
8802 (ui_out_new): Make 'impl' parameter const.
8803 * ui-out.h (ui_out_new): Update.
8805 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8807 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8809 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8811 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8813 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8815 Additional PR 8882 fix.
8816 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8818 2014-02-27 Pedro Alves <palves@redhat.com>
8820 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8823 2014-02-27 Pedro Alves <palves@redhat.com>
8826 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8827 * nat/linux-waitpid.c: Include string.h.
8828 (status_to_str): Moved here and made extern.
8829 * nat/linux-waitpid.h (status_to_str): New declaration.
8831 2014-02-27 Hui Zhu <hui@codesourcery.com>
8834 * infrun.c (ptid_match): Move ...
8835 * common/ptid.c (ptid_match): ... here.
8836 * inferior.h (ptid_match): Move ...
8837 * common/ptid.h (ptid_match): ... here.
8839 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8841 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8842 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8845 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8847 * obsd-tdep.c (obsd_auxv_parse): New function.
8848 (obsd_init_abi): Set auxv_parse.
8850 * gdbarch.sh (auxv_parse): New.
8851 * gdbarch.h: Regenerated.
8852 * gdbarch.c: Regenerated.
8853 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8855 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8857 * guile/scm-value.c (gdbscm_history_append_x): New function.
8858 (value_functions): Add it.
8860 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8862 * dwarf2read.c (attr_value_as_address): New function.
8863 (dwarf2_find_base_address, read_call_site_scope): Use
8864 attr_value_as_address in place of DW_ADDR.
8865 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8866 the low and high addresses. Slight rework of the handling
8867 of the high pc being a constant form, and limit it to
8868 DWARF verson 4 or higher.
8869 (dwarf2_record_block_ranges): Likewise.
8870 (read_partial_die): Likewise.
8871 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8873 2014-02-26 Tom Tromey <tromey@redhat.com>
8875 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8877 2014-02-26 Tom Tromey <tromey@redhat.com>
8879 * elfread.c (elf_read_minimal_symbols): Return early if
8880 minimal symbols have already been read. Add "ei" parameter.
8881 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8882 * minsyms.c (prim_record_minimal_symbol_full): Update.
8883 * objfiles.h (struct objstats) <n_minsyms>: Move...
8884 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8885 * symmisc.c (print_objfile_statistics): Update.
8887 2014-02-26 Tom Tromey <tromey@redhat.com>
8889 * elfread.c (elf_read_minimal_symbols): New function, from
8891 (elf_symfile_read): Call it.
8893 2014-02-26 Tom Tromey <tromey@redhat.com>
8895 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8896 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8897 (lookup_minimal_symbol_solib_trampoline)
8898 (lookup_minimal_symbol_by_pc_section_1)
8899 (lookup_minimal_symbol_and_objfile): Update.
8900 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8901 Don't allocate a minimal symbol if minsyms have already been read.
8902 (build_minimal_symbol_hash_tables): Update.
8903 (install_minimal_symbols): Do nothing if minsyms already read.
8904 Use the per-BFD obstack.
8905 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8906 * objfiles.c (allocate_objfile): Call
8907 terminate_minimal_symbol_table later.
8908 (have_minimal_symbols): Update.
8909 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8910 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8911 Move from struct objfile.
8912 <minsyms_read>: New field.
8913 (struct objfile) <msymbols, minimal_symbol_count,
8914 msymbol_hash, msymbol_demangled_hash>: Move.
8915 (ALL_OBJFILE_MSYMBOLS): Update.
8916 * symfile.c (read_symbols): Set minsyms_read.
8917 (reread_symbols): Update.
8918 * symmisc.c (dump_objfile, dump_msymbols): Update.
8920 2014-02-26 Tom Tromey <tromey@redhat.com>
8922 * minsyms.c (msymbols_sort): Remove.
8923 * minsyms.h (msymbols_sort): Remove.
8924 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8925 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8926 * elfread.c (elf_symtab_read): Don't add section offsets.
8927 * xcoffread.c (record_minimal_symbol): Don't add section offset
8928 to minimal symbol address.
8929 * somread.c (text_offset, data_offset): Remove.
8930 (som_symtab_read): Don't add section offsets to minimal symbol
8932 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8933 Don't add section offsets to minimal symbols.
8934 * coffread.c (coff_symtab_read): Don't add section offsets
8935 to minimal symbol addresses.
8936 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8937 to minimal symbol addresses.
8938 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8939 section offset to minimal symbol addresses.
8940 * mdebugread.c (parse_partial_symbols): Don't add section
8941 offset to minimal symbol addresses.
8942 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8943 offset to minimal symbol addresses.
8945 2014-02-26 Tom Tromey <tromey@redhat.com>
8947 * ada-lang.c (ada_main_name): Update.
8948 (ada_add_standard_exceptions): Update.
8949 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8950 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8951 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8952 * auxv.c (ld_so_xfer_auxv): Update.
8953 * avr-tdep.c (avr_scan_prologue): Update.
8954 * ax-gdb.c (gen_var_ref): Update.
8955 * blockframe.c (get_pc_function_start)
8956 (find_pc_partial_function_gnu_ifunc): Update.
8957 * breakpoint.c (create_overlay_event_breakpoint)
8958 (create_longjmp_master_breakpoint)
8959 (create_std_terminate_master_breakpoint)
8960 (create_exception_master_breakpoint): Update.
8961 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8962 * c-valprint.c (c_val_print): Update.
8963 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8964 * common/agent.c (agent_look_up_symbols): Update.
8965 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8966 * dwarf2loc.c (call_site_to_target_addr): Update.
8967 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8968 * elfread.c (elf_gnu_ifunc_record_cache)
8969 (elf_gnu_ifunc_resolve_by_got): Update.
8970 * findvar.c (default_read_var_value): Update.
8971 * frame.c (inside_main_func): Update.
8972 * frv-tdep.c (frv_frame_this_id): Update.
8973 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8974 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8976 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8977 (hppa_hpux_find_dummy_bpaddr): Update.
8978 * hppa-tdep.c (hppa_symbol_address): Update.
8979 * infcmd.c (until_next_command): Update.
8980 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8982 * linespec.c (minsym_found, add_minsym): Update.
8983 * linux-nat.c (get_signo): Update.
8984 * linux-thread-db.c (inferior_has_bug): Update.
8985 * m32c-tdep.c (m32c_return_value)
8986 (m32c_m16c_address_to_pointer): Update.
8987 * m32r-tdep.c (m32r_frame_this_id): Update.
8988 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8989 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8990 * maint.c (maintenance_translate_address): Update.
8991 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8992 (frob_address): New function.
8993 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8994 frob_address. Rename parameter to "pc_in".
8995 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8997 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8999 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9000 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9001 * objc-lang.c (find_objc_msgsend): Update.
9002 * objfiles.c (objfile_relocate1): Update.
9003 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9004 * p-valprint.c (pascal_val_print): Update.
9005 * parse.c (write_exp_msymbol): Update.
9006 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9007 (ppc_elfv2_skip_entrypoint): Update.
9008 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9009 * printcmd.c (build_address_symbolic, msym_info)
9010 (address_info): Update.
9011 * proc-service.c (ps_pglobal_lookup): Update.
9012 * psymtab.c (find_pc_sect_psymtab_closer)
9013 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9014 Change msymbol parameter to bound_minimal_symbol.
9015 * ravenscar-thread.c (get_running_thread_id): Update.
9016 * remote.c (remote_check_symbols): Update.
9017 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9019 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9020 * solib-dsbt.c (lm_base): Update.
9021 * solib-frv.c (lm_base, main_got): Update.
9022 * solib-irix.c (locate_base): Update.
9023 * solib-som.c (som_solib_create_inferior_hook)
9024 (link_map_start): Update.
9025 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9026 * solib-svr4.c (elf_locate_base, enable_break): Update.
9027 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9028 (flush_ea_cache): Update.
9029 * stabsread.c (define_symbol, scan_file_globals): Update.
9030 * stack.c (find_frame_funname): Update.
9031 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9032 (debug_qf_find_pc_sect_symtab): Update.
9033 * symfile.c (simple_read_overlay_table)
9034 (simple_overlay_update): Update.
9035 * symfile.h (struct quick_symbol_functions)
9036 <find_pc_sect_symtab>: Change type of msymbol to
9037 bound_minimal_symbol.
9038 * symmisc.c (dump_msymbols): Update.
9039 * symtab.c (find_pc_sect_symtab_via_partial)
9040 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9041 (search_symbols, print_msymbol_info): Update.
9042 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9043 (MSYMBOL_VALUE_ADDRESS): Redefine.
9044 (BMSYMBOL_VALUE_ADDRESS): New macro.
9045 * tracepoint.c (scope_info): Update.
9046 * tui/tui-disasm.c (tui_find_disassembly_address)
9047 (tui_get_begin_asm_address): Update.
9048 * valops.c (find_function_in_inferior): Update.
9049 * value.c (value_static_field, value_fn_field): Update.
9051 2014-02-26 Tom Tromey <tromey@redhat.com>
9053 * ada-lang.c (ada_update_initial_language): Update.
9054 (ada_main_name, ada_has_this_exception_support): Update.
9055 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9056 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9057 * arm-tdep.c (arm_skip_stub): Update.
9058 * auxv.c (ld_so_xfer_auxv): Update.
9059 * avr-tdep.c (avr_scan_prologue): Update.
9060 * ax-gdb.c (gen_var_ref): Update.
9061 * breakpoint.c (struct breakpoint_objfile_data)
9062 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9063 type to bound_minimal_symbol.
9064 (create_overlay_event_breakpoint)
9065 (create_longjmp_master_breakpoint)
9066 (create_std_terminate_master_breakpoint)
9067 (create_exception_master_breakpoint): Update.
9068 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9069 * c-exp.y (classify_name): Update.
9070 * coffread.c (coff_symfile_read): Update.
9071 * common/agent.c (agent_look_up_symbols): Update.
9072 * d-lang.c (d_main_name): Update.
9073 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9074 * dec-thread.c (enable_dec_thread): Update.
9075 * dwarf2loc.c (call_site_to_target_addr): Update.
9076 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9077 * eval.c (evaluate_subexp_standard): Update.
9078 * findvar.c (struct minsym_lookup_data) <result>: Change type
9079 to bound_minimal_symbol.
9081 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9082 * frame.c (inside_main_func): Update.
9083 * frv-tdep.c (frv_frame_this_id): Update.
9084 * gcore.c (call_target_sbrk): Update.
9085 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9086 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9088 * go-lang.c (go_main_name): Update.
9089 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9090 (hppa_hpux_find_import_stub_for_addr): Update.
9091 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9092 Update. Change return type.
9093 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9095 * jit.c (jit_breakpoint_re_set_internal): Update.
9096 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9098 * linux-nat.c (get_signo): Update.
9099 * linux-thread-db.c (inferior_has_bug): Update
9100 * m32c-tdep.c (m32c_return_value)
9101 (m32c_m16c_address_to_pointer): Update.
9102 * m32r-tdep.c (m32r_frame_this_id): Update.
9103 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9104 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9105 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9106 lookup_minimal_symbol. Change return type.
9107 (lookup_minimal_symbol): Remove.
9108 (lookup_bound_minimal_symbol): Update.
9109 (lookup_minimal_symbol_text): Change return type.
9110 (lookup_minimal_symbol_solib_trampoline): Change return type.
9111 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9112 (lookup_minimal_symbol_solib_trampoline): Change return type.
9113 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9114 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9115 (value_nsstring, find_imps): Update.
9116 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9117 * p-lang.c (pascal_main_name): Update.
9118 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9119 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9120 * proc-service.c (ps_pglobal_lookup): Update.
9121 * ravenscar-thread.c (get_running_thread_msymbol): Change
9123 (has_ravenscar_runtime, get_running_thread_id): Update.
9124 * remote.c (remote_check_symbols): Update.
9125 * sol-thread.c (ps_pglobal_lookup): Update.
9126 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9127 * solib-dsbt.c (lm_base): Update.
9128 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9130 * solib-irix.c (locate_base): Update.
9131 * solib-som.c (som_solib_create_inferior_hook)
9132 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9134 * solib-spu.c (spu_enable_break): Update.
9135 * solib-svr4.c (elf_locate_base, enable_break): Update.
9136 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9137 (flush_ea_cache): Update.
9138 * stabsread.c (define_symbol): Update.
9139 * symfile.c (simple_read_overlay_table): Update.
9140 * symtab.c (find_pc_sect_line): Update.
9141 * tracepoint.c (scope_info): Update.
9142 * tui-disasm.c (tui_get_begin_asm_address): Update.
9143 * value.c (value_static_field): Update.
9145 2014-02-26 Tom Tromey <tromey@redhat.com>
9147 * minsyms.c (prim_record_minimal_symbol_full): Use
9148 SET_MSYMBOL_VALUE_ADDRESS.
9149 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9150 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9151 SET_MSYMBOL_VALUE_ADDRESS.
9152 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9153 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9155 2014-02-26 Tom Tromey <tromey@redhat.com>
9157 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9158 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9159 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9160 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9161 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9162 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9163 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9164 * ada-lang.c (ada_main_name): Update.
9165 (ada_lookup_simple_minsym): Update.
9166 (ada_make_symbol_completion_list): Update.
9167 (ada_add_standard_exceptions): Update.
9168 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9169 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9170 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9171 * arm-tdep.c (skip_prologue_function): Update.
9172 (arm_skip_stack_protector, arm_skip_stub): Update.
9173 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9174 (arm_wince_skip_main_prologue): Update.
9175 * auxv.c (ld_so_xfer_auxv): Update.
9176 * avr-tdep.c (avr_scan_prologue): Update.
9177 * ax-gdb.c (gen_var_ref): Update.
9178 * block.c (call_site_for_pc): Update.
9179 * blockframe.c (get_pc_function_start): Update.
9180 (find_pc_partial_function_gnu_ifunc): Update.
9181 * breakpoint.c (create_overlay_event_breakpoint): Update.
9182 (create_longjmp_master_breakpoint): Update.
9183 (create_std_terminate_master_breakpoint): Update.
9184 (create_exception_master_breakpoint): Update.
9185 (resolve_sal_pc): Update.
9186 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9187 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9189 * c-valprint.c (c_val_print): Update.
9190 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9191 * coffread.c (coff_symfile_read): Update.
9192 * common/agent.c (agent_look_up_symbols): Update.
9193 * dbxread.c (find_stab_function_addr): Update.
9194 (end_psymtab): Update.
9195 * dwarf2loc.c (call_site_to_target_addr): Update.
9196 (func_verify_no_selftailcall): Update.
9197 (tailcall_dump): Update.
9198 (call_site_find_chain_1): Update.
9199 (dwarf_expr_reg_to_entry_parameter): Update.
9200 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9201 (elf_gnu_ifunc_resolve_by_got): Update.
9202 * f-valprint.c (info_common_command): Update.
9203 * findvar.c (read_var_value): Update.
9204 * frame.c (get_prev_frame_1): Update.
9205 (inside_main_func): Update.
9206 * frv-tdep.c (frv_skip_main_prologue): Update.
9207 (frv_frame_this_id): Update.
9208 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9209 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9210 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9211 (gnuv3_skip_trampoline): Update.
9212 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9213 (hppa64_hpux_in_solib_call_trampoline): Update.
9214 (hppa_hpux_skip_trampoline_code): Update.
9215 (hppa64_hpux_search_dummy_call_sequence): Update.
9216 (hppa_hpux_find_import_stub_for_addr): Update.
9217 (hppa_hpux_find_dummy_bpaddr): Update.
9218 * hppa-tdep.c (hppa_symbol_address)
9219 (hppa_lookup_stub_minimal_symbol): Update.
9220 * i386-tdep.c (i386_skip_main_prologue): Update.
9221 (i386_pe_skip_trampoline_code): Update.
9222 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9223 * infcall.c (get_function_name): Update.
9224 * infcmd.c (until_next_command): Update.
9225 * jit.c (jit_breakpoint_re_set_internal): Update.
9226 (jit_inferior_init): Update.
9227 * linespec.c (minsym_found): Update.
9228 (add_minsym): Update.
9229 * linux-fork.c (info_checkpoints_command): Update.
9230 * linux-nat.c (get_signo): Update.
9231 * linux-thread-db.c (inferior_has_bug): Update.
9232 * m32c-tdep.c (m32c_return_value): Update.
9233 (m32c_m16c_address_to_pointer): Update.
9234 (m32c_m16c_pointer_to_address): Update.
9235 * m32r-tdep.c (m32r_frame_this_id): Update.
9236 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9237 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9238 * maint.c (maintenance_translate_address): Update.
9239 * minsyms.c (add_minsym_to_hash_table): Update.
9240 (add_minsym_to_demangled_hash_table): Update.
9241 (msymbol_objfile): Update.
9242 (lookup_minimal_symbol): Update.
9243 (iterate_over_minimal_symbols): Update.
9244 (lookup_minimal_symbol_text): Update.
9245 (lookup_minimal_symbol_by_pc_name): Update.
9246 (lookup_minimal_symbol_solib_trampoline): Update.
9247 (lookup_minimal_symbol_by_pc_section_1): Update.
9248 (lookup_minimal_symbol_and_objfile): Update.
9249 (prim_record_minimal_symbol_full): Update.
9250 (compare_minimal_symbols): Update.
9251 (compact_minimal_symbols): Update.
9252 (build_minimal_symbol_hash_tables): Update.
9253 (install_minimal_symbols): Update.
9254 (terminate_minimal_symbol_table): Update.
9255 (find_solib_trampoline_target): Update.
9256 (minimal_symbol_upper_bound): Update.
9257 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9258 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9259 (mips_skip_pic_trampoline_code): Update.
9260 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9261 * objc-lang.c (selectors_info): Update.
9262 (classes_info): Update.
9263 (find_methods): Update.
9264 (find_imps): Update.
9265 (find_objc_msgsend): Update.
9266 * objfiles.c (objfile_relocate1): Update.
9267 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9268 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9269 * p-valprint.c (pascal_val_print): Update.
9270 * parse.c (write_exp_msymbol): Update.
9271 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9272 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9273 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9274 * printcmd.c (build_address_symbolic): Update.
9276 (address_info): Update.
9277 * proc-service.c (ps_pglobal_lookup): Update.
9278 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9279 (find_pc_sect_psymtab): Update.
9280 * python/py-framefilter.c (py_print_frame): Update.
9281 * ravenscar-thread.c (get_running_thread_id): Update.
9282 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9284 * remote.c (remote_check_symbols): Update.
9285 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9286 (rs6000_skip_trampoline_code): Update.
9287 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9288 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9289 * solib-dsbt.c (lm_base): Update.
9290 * solib-frv.c (lm_base): Update.
9292 * solib-irix.c (locate_base): Update.
9293 * solib-som.c (som_solib_create_inferior_hook): Update.
9294 (som_solib_desire_dynamic_linker_symbols): Update.
9295 (link_map_start): Update.
9296 * solib-spu.c (spu_enable_break): Update.
9297 (ocl_enable_break): Update.
9298 * solib-svr4.c (elf_locate_base): Update.
9299 (enable_break): Update.
9300 * spu-tdep.c (spu_get_overlay_table): Update.
9301 (spu_catch_start): Update.
9302 (flush_ea_cache): Update.
9303 * stabsread.c (define_symbol): Update.
9304 (scan_file_globals): Update.
9305 * stack.c (find_frame_funname): Update.
9306 (frame_info): Update.
9307 * symfile.c (simple_read_overlay_table): Update.
9308 (simple_overlay_update): Update.
9309 * symmisc.c (dump_msymbols): Update.
9310 * symtab.c (fixup_section): Update.
9311 (find_pc_sect_line): Update.
9312 (skip_prologue_sal): Update.
9313 (search_symbols): Update.
9314 (print_msymbol_info): Update.
9315 (rbreak_command): Update.
9316 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9317 (completion_list_objc_symbol): Update.
9318 (default_make_symbol_completion_list_break_on): Update.
9319 * tracepoint.c (scope_info): Update.
9320 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9321 (tui_get_begin_asm_address): Update.
9322 * valops.c (find_function_in_inferior): Update.
9323 * value.c (value_static_field): Update.
9324 (value_fn_field): Update.
9326 2014-02-26 Tom Tromey <tromey@redhat.com>
9328 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9329 bound minimal symbols. Move code that knows about minsym
9331 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9333 * minsyms.h (minimal_symbol_upper_bound): Declare.
9334 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9335 minimal_symbol_upper_bound.
9337 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9339 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9340 Use the type's name if its basic type does not have a tag.
9342 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9344 * dwarf2read.c (read_subrange_type): Add comment.
9346 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9348 * dwarf2read.c (update_enumeration_type_from_children): New
9349 function, mostly extracted from process_structure_scope.
9350 (read_enumeration_type): Call update_enumeration_type_from_children.
9351 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9352 and flag_flag_enum fields.
9354 2014-02-26 Pedro Alves <palves@redhat.com>
9356 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9357 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9358 to_xfer_partial method.
9360 2014-02-26 Pedro Alves <palves@redhat.com>
9362 * target.c (complete_target_initialization): Don't install
9363 default_xfer_partial as to_xfer_partial hook.
9365 (update_current_target): Don't INHERIT nor de_fault
9366 deprecated_xfer_memory. Delete de_fault macro.
9367 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9368 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9369 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9372 2014-02-26 Pedro Alves <palves@redhat.com>
9374 * go32-nat.c (my_write_child): New function.
9375 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9376 (go32_xfer_partial): New function.
9377 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9378 Instead install a to_xfer_partial hook.
9380 2014-02-26 Pedro Alves <palves@redhat.com>
9382 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9383 to_xfer_partial helper. Rewrite.
9384 (procfs_xfer_partial): New function.
9385 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9386 Install a to_xfer_partial hook.
9388 2014-02-26 Pedro Alves <palves@redhat.com>
9390 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9391 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9392 (m32r_xfer_partial): New function.
9393 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9394 Install a to_xfer_partial hook.
9396 2014-02-26 Pedro Alves <palves@redhat.com>
9398 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9400 (mips_xfer_partial): New function.
9401 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9402 hook. Install a to_xfer_partial hook.
9404 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9406 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9407 * gdbtypes.c (create_array_type_with_stride): New function,
9408 renaming create_array_type, but with an added parameter
9409 called "bit_stride".
9410 (create_array_type): Re-implement using
9411 create_array_type_with_stride.
9412 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9413 and DW_AT_bit_stride attributes.
9415 2014-02-26 Pedro Alves <palves@redhat.com>
9417 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9418 task-specific breakpoints.
9420 2014-02-25 Pedro Alves <palves@redhat.com>
9422 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9423 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9425 2014-02-25 Stan Shebs <stan@codesourcery.com>
9427 * defs.h: Annotate comments for Doxygen.
9429 2014-02-25 Tom Tromey <tromey@redhat.com>
9431 * target.h (target_ignore): Don't declare.
9432 * target.c (target_ignore): Remove.
9434 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9437 * auto-load.c (auto_load_objfile_script_1): Change filename to
9440 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9442 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9443 documentation. Adjust prototype to match the target_ops
9444 to_xfer_partial method. Adjust implementation accordingly.
9446 2014-02-25 Hui Zhu <hui@codesourcery.com>
9448 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9451 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9453 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9454 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9455 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9456 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9457 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9458 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9459 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9460 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9462 (rl78_register_type): Use a data pointer type for SP and
9463 new pseudo registers mentioned above. Use a 16 bit integer
9464 type for all other register pairs.
9465 (rl78_register_name, rl78_g10_register_name): Update for
9466 new pseudo registers.
9467 (rl78_pseudo_register_read): Likewise.
9468 (rl78_pseudo_register_write): Likewise.
9469 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9470 to the newly added pseudo registers.
9472 2014-02-24 Doug Evans <dje@google.com>
9474 * value.c (record_latest_value): Fix comment.
9475 * printcmd.c (print_command_1): Remove code to handle -1 return from
9476 record_latest_value.
9478 2014-02-24 Pedro Alves <palves@redhat.com>
9480 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9481 deprecated_xfer_memory hook.
9482 (procfs_xfer_partial): Call procfs_xfer_memory instead
9483 of the deprecated_xfer_memory target hook.
9484 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9487 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9489 * windows-nat.c (windows_xfer_shared_libraries): Return
9490 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9491 requested object is TARGET_OBJECT_LIBRARIES.
9493 2014-02-24 Yao Qi <yao@codesourcery.com>
9495 * target.h (enum target_xfer_status)
9496 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9497 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9499 * corefile.c (memory_error_message): User updated.
9500 * exec.c (section_table_read_available_memory): Likewise.
9501 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9502 * target.c (target_xfer_status_to_string): Likewise.
9503 (raw_memory_xfer_partial): Likewise.
9504 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9505 * valops.c (read_value_memory): Likewise.
9506 * exec.h: Update comments.
9508 2014-02-24 Yao Qi <yao@codesourcery.com>
9510 * target.c (target_xfer_status_to_string): Rename argument err
9512 * target.h (target_xfer_status_to_string): Update declaration.
9513 Replace target_xfer_error_to_string with
9514 target_xfer_status_to_string in comment.
9516 2014-02-24 Yao Qi <yao@codesourcery.com>
9518 * mips-linux-nat.c (super_close): Update its type.
9519 (mips_linux_close): Pass 'self' to super_close.
9521 2014-02-24 Yao Qi <yao@codesourcery.com>
9523 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9524 * corefile.c (read_memory): Adjusted.
9525 * target.c (target_write_with_progress): Adjusted.
9527 2014-02-23 Yao Qi <yao@codesourcery.com>
9531 2013-10-25 Yao Qi <yao@codesourcery.com>
9533 * remote.c (remote_traceframe_info): Return early if
9534 traceframe is not selected.
9536 2013-07-19 Yao Qi <yao@codesourcery.com>
9538 * target.c (update_current_target): Change the default action
9539 of 'to_traceframe_info' from tcomplain to return_zero.
9540 * target.h (struct target_ops) <to_traceframe_info>: Add more
9543 2014-02-23 Yao Qi <yao@codesourcery.com>
9545 * valops.c (read_value_memory): Rewrite it. Call
9546 target_xfer_partial in a loop.
9547 * exec.h (section_table_available_memory): Remove declaration.
9548 Move comments to ...
9549 * exec.c (section_table_available_memory): ... here. Make it
9552 2014-02-23 Yao Qi <yao@codesourcery.com>
9554 * exec.c (section_table_read_available_memory): New function.
9555 * exec.h (section_table_read_available_memory): Declare.
9556 * ctf.c (ctf_xfer_partial): Call
9557 section_table_read_available_memory.
9558 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9560 2014-02-23 Yao Qi <yao@codesourcery.com>
9562 * ctf.c (ctf_xfer_partial): Move code to ...
9563 * exec.c (exec_read_partial_read_only): ... it. New function.
9564 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9565 * tracefile.c: Include "exec.h".
9566 * exec.h (exec_read_partial_read_only): Declare.
9568 2014-02-23 Yao Qi <yao@codesourcery.com>
9570 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9571 (tfile_has_memory): Remove.
9572 (init_tfile_ops): Don't set fields to_has_all_memory and
9573 to_has_memory of tfile_ops.
9574 * tracefile.c (tracefile_has_all_memory): New function.
9575 (tracefile_has_memory): New function.
9576 (init_tracefile_ops): Initialize fields to_has_all_memory and
9577 to_has_memory of 'ops'.
9579 2014-02-23 Yao Qi <yao@codesourcery.com>
9581 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9582 (ctf_thread_alive, ctf_get_trace_status): Remove.
9583 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9585 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9586 (tfile_has_stack, tfile_has_registers): Remove.
9587 (tfile_thread_alive): Remove.
9588 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9590 * tracefile.c (tracefile_has_stack): New function.
9591 (tracefile_has_registers): New function.
9592 (tracefile_thread_alive): New function.
9593 (tracefile_get_trace_status): New function.
9594 (init_tracefile_ops): New function.
9595 * tracefile.h (init_tracefile_ops): Declare.
9597 2014-02-23 Yao Qi <yao@codesourcery.com>
9599 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9600 (O_LARGEFILE): Likewise.
9601 (tfile_ops): Likewise.
9602 (TRACE_HEADER_SIZE): Likewise.
9603 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9604 (cur_data_size): Likewise.
9605 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9606 (tfile_close, tfile_files_info): Likewise.
9607 (tfile_get_trace_status): Likewise.
9608 (tfile_get_tracepoint_status): Likewise.
9609 (tfile_get_traceframe_address): Likewise.
9610 (tfile_trace_find, match_blocktype): Likewise.
9611 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9612 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9613 (tfile_get_trace_state_variable_value): Likewise.
9614 (tfile_has_all_memory, tfile_has_memory): Likewise.
9615 (tfile_has_stack, tfile_has_registers): Likewise.
9616 (tfile_thread_alive, build_traceframe_info): Likewise.
9617 (tfile_traceframe_info, init_tfile_ops): Likewise.
9618 (_initialize_tracepoint): Don't call init_tfile_ops
9619 and add_target_with_completer.
9620 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9621 exec.h, completer.h and filenames.h.
9622 (_initialize_tracefile_tfile): New function.
9624 2014-02-23 Yao Qi <yao@codesourcery.com>
9626 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9628 (HFILES_NO_SRCDIR): Add tracefile.h.
9629 * ctf.c: Include "tracefile.h".
9630 * tracefile.h: New file.
9631 * tracefile.c: New file
9632 * tracefile-tfile.c: New file.
9633 * tracepoint.c: Include "tracefile.h".
9634 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9635 (stop_reason_names): Add const.
9636 (trace_file_writer_xfree): Move it to tracefile.c.
9637 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9638 (trace_save_ctf): Likewise.
9639 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9640 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9641 (tfile_write_header, tfile_write_regblock_type): Likewise.
9642 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9643 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9644 (tfile_write_raw_data, tfile_end): Likewise.
9645 (tfile_trace_file_writer_new): Likewise.
9646 (free_uploaded_tp): Make it extern.
9647 (free_uploaded_tsv): Make it extern.
9648 (_initialize_tracepoint): Move code to register command 'tsave'
9650 * tracepoint.h (stop_reason_names): Declare.
9651 (struct trace_frame_write_ops): Move it to tracefile.h.
9652 (struct trace_file_write_ops): Likewise.
9653 (struct trace_file_writer): Likewise.
9654 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9656 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9659 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9661 (get_cores_used_by_process): New parameter num_cores, use it.
9662 (linux_xfer_osdata_processes): Pass num_cores to it.
9663 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9666 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9668 * target.c (memory_xfer_partial): Fix length arg in call to
9669 breakpoint_xfer_memory.
9671 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9674 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9675 number comes after the + or - signs. Adjust length of register
9676 name to be extracted.
9678 2014-02-20 Tom Tromey <tromey@redhat.com>
9680 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9681 (ada_varobj_ops): Mark "extern".
9683 2014-02-20 Tom Tromey <tromey@redhat.com>
9685 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9687 2014-02-20 Doug Evans <xdje42@gmail.com>
9689 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9690 All callers updated.
9691 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9692 All callers updated.
9693 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9694 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9696 2014-02-20 lin zuojian <manjian2006@gmail.com>
9697 Joel Brobecker <brobecker@adacore.com>
9698 Doug Evans <xdje42@gmail.com>
9701 * dwarf2read.c (struct die_info): New member in_process.
9702 (reset_die_in_process): New function.
9703 (process_die): Set it at the start, reset when returning.
9704 (inherit_abstract_dies): Only call process_die if origin_child_die
9705 not already being processed.
9707 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9709 * windows-nat.c (handle_unload_dll): Add function documentation.
9710 (do_initial_windows_stuff): Add comment explaining why we wait
9711 until after inferior initialization has finished before
9712 processing all DLLs.
9714 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9716 * windows-nat.c (get_module_name): Delete.
9717 (windows_get_exec_module_filename): New function, mostly
9718 inspired from get_module_name.
9719 (windows_pid_to_exec_file): Replace call to get_module_name
9720 by call to windows_get_exec_module_filename.
9722 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9724 * windows-nat.c (handle_load_dll): Rewrite this function's
9725 introductory comment. Remove code using get_module_name
9726 to get the DLL's name.
9728 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9730 * windows-nat.c (get_windows_debug_event): Ignore
9731 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9732 if windows_initialization_done == 0.
9733 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9734 Adjust implementation to always load all DLLs.
9735 (do_initial_windows_stuff): Replace call to
9736 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9738 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9740 * windows-nat.c (_initialize_windows_nat): Deprecate the
9741 "dll-symbols" command. Turn the "add-shared-symbol-files"
9742 and "assf" aliases into commands, and deprecate them as well.
9743 * NEWS: Add entry explaining that "dll-symbols" and its two
9744 aliases are now deprecated.
9746 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9748 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9749 new-line in debug string. Remove trailing spaces.
9751 2014-02-19 Stan Shebs <stan@codesourcery.com>
9753 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9755 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9757 * NEWS: Add entry for the new feature
9758 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9761 2014-02-19 Stan Shebs <stan@codesourcery.com>
9763 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9765 2014-02-19 Pedro Alves <palves@redhat.com>
9767 * common/ptid.h (struct ptid): Mention that process_stratum
9768 targets should prefer ptid.lwp.
9770 2014-02-19 Pedro Alves <palves@redhat.com>
9772 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9773 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9774 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9775 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9776 store remote thread ids rather than ptid.tid.
9777 (_initialize_remote): Adjust.
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * target.c (target_get_unwinder): Rewrite.
9782 (target_get_tailcall_unwinder): Rewrite.
9783 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9784 (record_btrace_to_get_tailcall_unwinder): New function.
9785 (init_record_btrace_ops): Update.
9786 * target.h (struct target_ops) <to_get_unwinder,
9787 to_get_tailcall_unwinder>: Now function pointers. Use
9788 TARGET_DEFAULT_RETURN.
9790 2014-02-19 Tom Tromey <tromey@redhat.com>
9792 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9794 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9800 * target-delegates.c: Rebuild.
9801 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9802 TARGET_DEFAULT_FUNC.
9803 * target.c (default_target_decr_pc_after_break): Rename from
9804 forward_target_decr_pc_after_break. Simplify.
9805 (target_decr_pc_after_break): Rely on delegation.
9807 2014-02-19 Tom Tromey <tromey@redhat.com>
9809 * target.c (update_current_target): Do not INHERIT to_doc or
9810 to_magic. Do not de_fault to_open or to_close.
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9814 * gcore.h (objfile_find_memory_regions): Declare.
9815 * gcore.c (objfile_find_memory_regions): No longer static. Add
9817 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9818 * exec.c: Include gcore.h.
9819 (exec_set_find_memory_regions): Remove.
9820 (exec_find_memory_regions): Remove.
9821 (exec_do_find_memory_regions): Remove.
9822 (init_exec_ops): Update.
9823 * defs.h (exec_set_find_memory_regions): Remove.
9825 2014-02-19 Tom Tromey <tromey@redhat.com>
9827 * target-delegates.c: Rebuild.
9828 * target.h (struct target_ops) <to_extra_thread_info,
9829 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9830 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9831 not 0, in TARGET_DEFAULT_RETURN.
9833 2014-02-19 Tom Tromey <tromey@redhat.com>
9835 * target.c (complete_target_initialization): Remove casts. Use
9836 return_zero_has_execution.
9837 (return_zero): Add "ignore" argument.
9838 (return_zero_has_execution): New function.
9839 (init_dummy_target): Remove casts. Use
9840 return_zero_has_execution.
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9844 * target.c (update_current_target): Update comments. Do not
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9849 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9851 * corelow.c (core_read_description): Delegate when needed.
9852 * remote.c (remote_read_description): Delegate when needed.
9853 * target-delegates.c: Rebuild.
9854 * target.c (target_read_description): Rewrite.
9855 * target.h (struct target_ops) <to_read_description>: Update
9856 comment. Use TARGET_DEFAULT_RETURN.
9858 2014-02-19 Tom Tromey <tromey@redhat.com>
9860 * target-delegates.c: Rebuild.
9861 * target.c (update_current_target): Don't inherit or default
9863 (find_default_run_target): Check against delegate_can_run.
9864 * target.h (struct target_ops) <to_can_run>: Use
9865 TARGET_DEFAULT_RETURN.
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9869 * target-delegates.c: Rebuild.
9870 * target.c (target_disconnect): Unconditionally delegate.
9871 * target.h (struct target_ops) <to_disconnect>: Use
9872 TARGET_DEFAULT_NORETURN.
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9876 * record.c (record_stop): Unconditionally delegate.
9877 * target-delegates.c: Rebuild.
9878 * target.c (target_stop_recording): Unconditionally delegate.
9879 * target.h (struct target_ops) <to_stop_recording>: Use
9880 TARGET_DEFAULT_IGNORE.
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9884 * target-delegates.c: Rebuild.
9885 * target.c (target_enable_btrace): Unconditionally delegate.
9886 * target.h (struct target_ops) <to_enable_btrace>: Use
9887 TARGET_DEFAULT_NORETURN.
9889 2014-02-19 Tom Tromey <tromey@redhat.com>
9891 * target-delegates.c: Rebuild.
9892 * target.c (target_read_btrace): Unconditionally delegate.
9893 * target.h (struct target_ops) <to_read_btrace>: Use
9894 TARGET_DEFAULT_NORETURN.
9896 2014-02-19 Tom Tromey <tromey@redhat.com>
9898 * target-delegates.c: Rebuild.
9899 * target.c (target_teardown_btrace): Unconditionally delegate.
9900 * target.h (struct target_ops) <to_teardown_btrace>: Use
9901 TARGET_DEFAULT_NORETURN.
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9905 * target-delegates.c: Rebuild.
9906 * target.c (target_disable_btrace): Unconditionally delegate.
9907 * target.h (struct target_ops) <to_disable_btrace>: Use
9908 TARGET_DEFAULT_NORETURN.
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9912 * target-delegates.c: Rebuild.
9913 * target.c (default_search_memory): New function.
9914 (simple_search_memory): Update comment.
9915 (target_search_memory): Unconditionally delegate.
9916 * target.h (struct target_ops) <to_search_memory>: Use
9917 TARGET_DEFAULT_FUNC.
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9921 * auxv.c (default_auxv_parse): No longer static.
9922 (target_auxv_parse): Unconditionally delegate.
9923 * auxv.h (default_auxv_parse): Declare.
9924 * target-delegates.c: Rebuild.
9925 * target.c: Include auxv.h.
9926 * target.h (struct target_ops) <to_auxv_parse>: Use
9927 TARGET_DEFAULT_FUNC.
9929 2014-02-19 Tom Tromey <tromey@redhat.com>
9931 * target-delegates.c: Rebuild.
9932 * target.c (target_memory_map): Unconditionally delegate.
9933 * target.h (struct target_ops) <to_memory_map>: Use
9934 TARGET_DEFAULT_RETURN.
9936 2014-02-19 Tom Tromey <tromey@redhat.com>
9938 * target-delegates.c: Rebuild.
9939 * target.c (target_thread_alive): Unconditionally delegate.
9940 * target.h (struct target_ops) <to_thread_alive>: Use
9941 TARGET_DEFAULT_RETURN.
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9945 * target-delegates.c: Rebuild.
9946 * target.c (target_save_record): Unconditionally delegate.
9947 * target.h (struct target_ops) <to_save_record>: Use
9948 TARGET_DEFAULT_NORETURN.
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9952 * target-delegates.c: Rebuild.
9953 * target.c (target_delete_record): Unconditionally delegate.
9954 * target.h (struct target_ops) <to_delete_record>: Use
9955 TARGET_DEFAULT_NORETURN.
9957 2014-02-19 Tom Tromey <tromey@redhat.com>
9959 * target-delegates.c: Rebuild.
9960 * target.c (target_record_is_replaying): Unconditionally
9962 * target.h (struct target_ops) <to_record_is_replaying>: Use
9963 TARGET_DEFAULT_RETURN.
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9967 * target-delegates.c: Rebuild.
9968 * target.c (target_goto_record_begin): Unconditionally delegate.
9969 * target.h (struct target_ops) <to_goto_record_begin>: Use
9970 TARGET_DEFAULT_NORETURN.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target-delegates.c: Rebuild.
9975 * target.c (target_goto_record_end): Unconditionally delegate.
9976 * target.h (struct target_ops) <to_goto_record_end>: Use
9977 TARGET_DEFAULT_NORETURN.
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9981 * target-delegates.c: Rebuild.
9982 * target.c (target_goto_record): Unconditionally delegate.
9983 * target.h (struct target_ops) <to_goto_record>: Use
9984 TARGET_DEFAULT_NORETURN.
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target-delegates.c: Rebuild.
9989 * target.c (target_insn_history): Unconditionally delegate.
9990 * target.h (struct target_ops) <to_insn_history>: Use
9991 TARGET_DEFAULT_NORETURN.
9993 2014-02-19 Tom Tromey <tromey@redhat.com>
9995 * target-delegates.c: Rebuild.
9996 * target.c (target_insn_history_from): Unconditionally delegate.
9997 * target.h (struct target_ops) <to_insn_history_from>: Use
9998 TARGET_DEFAULT_NORETURN.
10000 2014-02-19 Tom Tromey <tromey@redhat.com>
10002 * target-delegates.c: Rebuild.
10003 * target.c (target_insn_history_range): Unconditionally delegate.
10004 * target.h (struct target_ops) <to_insn_history_range>: Use
10005 TARGET_DEFAULT_NORETURN.
10007 2014-02-19 Tom Tromey <tromey@redhat.com>
10009 * target-delegates.c: Rebuild.
10010 * target.c (target_call_history): Unconditionally delegate.
10011 * target.h (struct target_ops) <to_call_history>: Use
10012 TARGET_DEFAULT_NORETURN.
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10016 * target-delegates.c: Rebuild.
10017 * target.c (target_call_history_from): Unconditionally delegate.
10018 * target.h (struct target_ops) <to_call_history_from>: Use
10019 TARGET_DEFAULT_NORETURN.
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10023 * target-delegates.c: Rebuild.
10024 * target.c (target_call_history_range): Unconditionally delegate.
10025 * target.h (struct target_ops) <to_call_history_range>: Use
10026 TARGET_DEFAULT_NORETURN.
10028 2014-02-19 Tom Tromey <tromey@redhat.com>
10030 * target-delegates.c: Rebuild.
10031 * target.c (target_verify_memory): Unconditionally delegate.
10032 * target.h (struct target_ops) <to_verify_memory>: Use
10033 TARGET_DEFAULT_NORETURN.
10035 2014-02-19 Tom Tromey <tromey@redhat.com>
10037 * target-delegates.c: Rebuild.
10038 * target.c (target_core_of_thread): Unconditionally delegate.
10039 * target.h (struct target_ops) <to_core_of_thread>: Use
10040 TARGET_DEFAULT_RETURN.
10042 2014-02-19 Tom Tromey <tromey@redhat.com>
10044 * target-delegates.c: Rebuild.
10045 * target.c (target_flash_done): Unconditionally delegate.
10046 * target.h (struct target_ops) <to_flash_done>: Use
10047 TARGET_DEFAULT_NORETURN.
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10051 * target-delegates.c: Rebuild.
10052 * target.c (target_flash_erase): Unconditionally delegate.
10053 * target.h (struct target_ops) <to_flash_erase>: Use
10054 TARGET_DEFAULT_NORETURN.
10056 2014-02-19 Tom Tromey <tromey@redhat.com>
10058 * target-delegates.c: Rebuild.
10059 * target.c (target_get_section_table): Unconditionally delegate.
10060 * target.h (struct target_ops) <to_get_section_table>: Use
10061 TARGET_DEFAULT_RETURN.
10063 2014-02-19 Tom Tromey <tromey@redhat.com>
10065 * target-delegates.c: Rebuild.
10066 * target.c (target_pid_to_str): Unconditionally delegate.
10067 (init_dummy_target): Don't initialize to_pid_to_str.
10068 (default_pid_to_str): Rename from dummy_pid_to_str.
10069 * target.h (struct target_ops) <to_pid_to_str>: Use
10070 TARGET_DEFAULT_FUNC.
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10074 * target-delegates.c: Rebuild.
10075 * target.c (target_find_new_threads): Unconditionally delegate.
10076 * target.h (struct target_ops) <to_find_new_threads>: Use
10077 TARGET_DEFAULT_RETURN.
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10081 * target-delegates.c: Rebuild.
10082 * target.c (target_program_signals): Unconditionally delegate.
10083 * target.h (struct target_ops) <to_program_signals>: Use
10084 TARGET_DEFAULT_IGNORE.
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target-delegates.c: Rebuild.
10089 * target.c (target_pass_signals): Unconditionally delegate.
10090 * target.h (struct target_ops) <to_pass_signals>: Use
10091 TARGET_DEFAULT_IGNORE.
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10095 * target-delegates.c: Rebuild.
10096 * target.c (default_mourn_inferior): New function.
10097 (target_mourn_inferior): Unconditionally delegate.
10098 * target.h (struct target_ops) <to_mourn_inferior>: Use
10099 TARGET_DEFAULT_FUNC.
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10103 * target-delegates.c: Rebuild.
10104 * target.c (default_follow_fork): New function.
10105 (target_follow_fork): Unconditionally delegate.
10106 * target.h (struct target_ops) <to_follow_fork>: Use
10107 TARGET_DEFAULT_FUNC.
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10111 * target-delegates.c: Rebuild.
10112 * target.c (target_kill): Unconditionally delegate.
10113 * target.h (struct target_ops) <to_kill>: Use
10114 TARGET_DEFAULT_NORETURN.
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10118 * target-delegates.c: Rebuild.
10119 * target.c (target_masked_watch_num_registers): Unconditionally
10121 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10122 Use TARGET_DEFAULT_RETURN.
10124 2014-02-19 Tom Tromey <tromey@redhat.com>
10126 * target-delegates.c: Rebuild.
10127 * target.c (target_remove_mask_watchpoint): Unconditionally
10129 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10130 TARGET_DEFAULT_RETURN.
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10134 * target-delegates.c: Rebuild.
10135 * target.c (target_insert_mask_watchpoint): Unconditionally
10137 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10138 TARGET_DEFAULT_RETURN.
10140 2014-02-19 Tom Tromey <tromey@redhat.com>
10142 * target-delegates.c: Rebuild.
10143 * target.c (target_ranged_break_num_registers): Unconditionally
10145 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10146 Use TARGET_DEFAULT_RETURN.
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10150 * target-delegates.c: Rebuild.
10151 * target.c (target_fetch_registers): Unconditionally delegate.
10152 * target.h (struct target_ops) <to_fetch_registers>: Use
10153 TARGET_DEFAULT_NORETURN.
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10157 * target-delegates.c: Rebuild.
10158 * target.c (update_current_target): Don't inherit or default
10160 * target.h (struct target_ops) <to_stop>: Use
10161 TARGET_DEFAULT_IGNORE.
10163 2014-02-19 Tom Tromey <tromey@redhat.com>
10165 * target-delegates.c: Rebuild.
10166 * target.c (update_current_target): Don't inherit or default
10167 to_can_run_breakpoint_commands.
10168 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10169 Use TARGET_DEFAULT_RETURN.
10171 2014-02-19 Tom Tromey <tromey@redhat.com>
10173 * target-delegates.c: Rebuild.
10174 * target.c (update_current_target): Don't inherit or default
10175 to_supports_evaluation_of_breakpoint_conditions.
10176 * target.h (struct target_ops)
10177 <to_supports_evaluation_of_breakpoint_conditions>: Use
10178 TARGET_DEFAULT_RETURN.
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * target-delegates.c: Rebuild.
10183 * target.c (update_current_target): Don't inherit or default
10184 to_augmented_libraries_svr4_read.
10185 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10186 Use TARGET_DEFAULT_RETURN.
10188 2014-02-19 Tom Tromey <tromey@redhat.com>
10190 * target-delegates.c: Rebuild.
10191 * target.c (update_current_target): Don't inherit or default
10193 * target.h (struct target_ops) <to_can_use_agent>: Use
10194 TARGET_DEFAULT_RETURN.
10196 2014-02-19 Tom Tromey <tromey@redhat.com>
10198 * target-delegates.c: Rebuild.
10199 * target.c (update_current_target): Don't inherit or default
10201 * target.h (struct target_ops) <to_use_agent>: Use
10202 TARGET_DEFAULT_NORETURN.
10204 2014-02-19 Tom Tromey <tromey@redhat.com>
10206 * target-delegates.c: Rebuild.
10207 * target.c (update_current_target): Don't inherit or default
10208 to_traceframe_info.
10209 (return_null): Remove.
10210 * target.h (struct target_ops) <to_traceframe_info>: Use
10211 TARGET_DEFAULT_RETURN.
10213 2014-02-19 Tom Tromey <tromey@redhat.com>
10215 * target-delegates.c: Rebuild.
10216 * target.c (update_current_target): Don't inherit or default
10217 to_static_tracepoint_markers_by_strid.
10218 * target.h (struct target_ops)
10219 <to_static_tracepoint_markers_by_strid>: Use
10220 TARGET_DEFAULT_NORETURN.
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10224 * target-delegates.c: Rebuild.
10225 * target.c (update_current_target): Don't inherit or default
10226 to_static_tracepoint_marker_at.
10227 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10228 Use TARGET_DEFAULT_RETURN.
10230 2014-02-19 Tom Tromey <tromey@redhat.com>
10232 * target-delegates.c: Rebuild.
10233 * target.c (update_current_target): Don't inherit or default
10234 to_set_permissions.
10235 * target.h (struct target_ops) <to_set_permissions>: Use
10236 TARGET_DEFAULT_IGNORE.
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10240 * target-delegates.c: Rebuild.
10241 * target.c (update_current_target): Don't inherit or default
10242 to_get_tib_address.
10243 * target.h (struct target_ops) <to_get_tib_address>: Use
10244 TARGET_DEFAULT_NORETURN.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * target-delegates.c: Rebuild.
10249 * target.c (update_current_target): Don't inherit or default
10250 to_set_trace_notes.
10251 * target.h (struct target_ops) <to_set_trace_notes>: Use
10252 TARGET_DEFAULT_RETURN.
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10256 * target-delegates.c: Rebuild.
10257 * target.c (update_current_target): Don't initialize
10258 to_set_trace_buffer_size.
10259 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10260 TARGET_DEFAULT_IGNORE.
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10264 * target-delegates.c: Rebuild.
10265 * target.c (update_current_target): Don't inherit or default
10266 to_set_circular_trace_buffer.
10267 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10268 TARGET_DEFAULT_IGNORE.
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10272 * target-delegates.c: Rebuild.
10273 * target.c (update_current_target): Don't inherit or default
10274 to_set_disconnected_tracing.
10275 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10276 TARGET_DEFAULT_IGNORE.
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10280 * target-delegates.c: Rebuild.
10281 * target.c (update_current_target): Don't inherit or default
10282 to_get_min_fast_tracepoint_insn_len.
10283 (return_minus_one): Remove.
10284 * target.h (struct target_ops)
10285 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10287 2014-02-19 Tom Tromey <tromey@redhat.com>
10289 * target-delegates.c: Rebuild.
10290 * target.c (update_current_target): Don't inherit or default
10291 to_get_raw_trace_data.
10292 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10293 TARGET_DEFAULT_NORETURN.
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target-delegates.c: Rebuild.
10298 * target.c (update_current_target): Don't inherit or default
10299 to_upload_trace_state_variables.
10300 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10301 Use TARGET_DEFAULT_RETURN.
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10305 * target-delegates.c: Rebuild.
10306 * target.c (update_current_target): Don't inherit or default
10307 to_upload_tracepoints.
10308 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10309 TARGET_DEFAULT_RETURN.
10311 2014-02-19 Tom Tromey <tromey@redhat.com>
10313 * target-delegates.c: Rebuild.
10314 * target.c (update_current_target): Don't inherit or default
10315 to_save_trace_data.
10316 * target.h (struct target_ops) <to_save_trace_data>: Use
10317 TARGET_DEFAULT_NORETURN.
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10321 * target-delegates.c: Rebuild.
10322 * target.c (update_current_target): Don't inherit or default
10323 to_get_trace_state_variable_value.
10324 * target.h (struct target_ops)
10325 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10329 * target-delegates.c: Rebuild.
10330 * target.c (update_current_target): Don't inherit or default
10332 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10334 2014-02-19 Tom Tromey <tromey@redhat.com>
10336 * target-delegates.c: Rebuild.
10337 * target.c (update_current_target): Don't inherit or default
10339 * target.h (struct target_ops) <to_trace_stop>: Use
10340 TARGET_DEFAULT_NORETURN.
10342 2014-02-19 Tom Tromey <tromey@redhat.com>
10344 * target-delegates.c: Rebuild.
10345 * target.c (update_current_target): Don't inherit or default
10346 to_get_tracepoint_status.
10347 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10348 TARGET_DEFAULT_NORETURN.
10350 2014-02-19 Tom Tromey <tromey@redhat.com>
10352 * target-delegates.c: Rebuild.
10353 * target.c (update_current_target): Don't inherit or default
10354 to_get_trace_status.
10355 * target.h (struct target_ops) <to_get_trace_status>: Use
10356 TARGET_DEFAULT_RETURN.
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10360 * target-delegates.c: Rebuild.
10361 * target.c (update_current_target): Don't inherit or default
10363 * target.h (struct target_ops) <to_trace_start>: Use
10364 TARGET_DEFAULT_NORETURN.
10366 2014-02-19 Tom Tromey <tromey@redhat.com>
10368 * target-delegates.c: Rebuild.
10369 * target.c (update_current_target): Don't inherit or default
10370 to_trace_set_readonly_regions.
10371 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10372 Use TARGET_DEFAULT_NORETURN.
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10376 * target-delegates.c: Rebuild.
10377 * target.c (update_current_target): Don't inherit or default
10378 to_disable_tracepoint.
10379 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10380 TARGET_DEFAULT_NORETURN.
10382 2014-02-19 Tom Tromey <tromey@redhat.com>
10384 * target-delegates.c: Rebuild.
10385 * target.c (update_current_target): Don't inherit or default
10386 to_enable_tracepoint.
10387 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10388 TARGET_DEFAULT_NORETURN.
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10392 * target-delegates.c: Rebuild.
10393 * target.c (update_current_target): Don't inherit or default
10394 to_download_trace_state_variable.
10395 * target.h (struct target_ops) <to_download_trace_state_variable>:
10396 Use TARGET_DEFAULT_NORETURN.
10398 2014-02-19 Tom Tromey <tromey@redhat.com>
10400 * target-delegates.c: Rebuild.
10401 * target.c (update_current_target): Don't inherit or default
10402 to_can_download_tracepoint.
10403 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10404 TARGET_DEFAULT_RETURN.
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10408 * target-delegates.c: Rebuild.
10409 * target.c (update_current_target): Don't inherit or default
10410 to_download_tracepoint.
10411 * target.h (struct target_ops) <to_download_tracepoint>: Use
10412 TARGET_DEFAULT_NORETURN.
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10416 * target-delegates.c: Rebuild.
10417 * target.c (update_current_target): Don't inherit or default
10419 * target.h (struct target_ops) <to_trace_init>: Use
10420 TARGET_DEFAULT_RETURN.
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10424 * target-delegates.c: Rebuild.
10425 * target.c (update_current_target): Don't inherit or default
10426 to_supports_string_tracing.
10427 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10428 TARGET_DEFAULT_RETURN.
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10432 * target-delegates.c: Rebuild.
10433 * target.c (update_current_target): Don't inherit or default
10434 to_supports_enable_disable_tracepoint.
10435 * target.h (struct target_ops)
10436 <to_supports_enable_disable_tracepoint>: Use
10437 TARGET_DEFAULT_RETURN.
10439 2014-02-19 Tom Tromey <tromey@redhat.com>
10441 * target-delegates.c: Rebuild.
10442 * target.c (update_current_target): Don't inherit or default
10443 to_supports_multi_process.
10444 * target.h (struct target_ops) <to_supports_multi_process>: Use
10445 TARGET_DEFAULT_RETURN.
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10449 * target-delegates.c: Rebuild.
10450 * target.c (update_current_target): Don't inherit or default
10451 to_get_ada_task_ptid.
10452 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10453 TARGET_DEFAULT_FUNC.
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10457 * target-delegates.c: Rebuild.
10458 * target.c (update_current_target): Don't inherit or default
10459 to_thread_architecture.
10460 * target.h (struct target_ops) <to_thread_architecture>: Use
10461 TARGET_DEFAULT_FUNC.
10463 2014-02-19 Tom Tromey <tromey@redhat.com>
10465 * target-delegates.c: Rebuild.
10466 * target.c (update_current_target): Don't inherit or default
10467 to_execution_direction.
10468 * target.h (struct target_ops) <to_execution_direction>: Use
10469 TARGET_DEFAULT_FUNC.
10471 2014-02-19 Tom Tromey <tromey@redhat.com>
10473 * target-delegates.c: Rebuild.
10474 * target.c (update_current_target): Don't inherit or default
10475 to_can_execute_reverse.
10476 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10477 TARGET_DEFAULT_RETURN.
10478 (target_can_execute_reverse): Unconditionally delegate.
10480 2014-02-19 Tom Tromey <tromey@redhat.com>
10482 * target-delegates.c: Rebuild.
10483 * target.c (update_current_target): Don't inherit or default
10485 (dummy_goto_bookmark): Remove.
10486 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10487 * target.h (struct target_ops) <to_goto_bookmark>: Use
10488 TARGET_DEFAULT_NORETURN.
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10495 (dummy_get_bookmark): Remove.
10496 (init_dummy_target): Don't inherit or default to_get_bookmark.
10497 * target.h (struct target_ops) <to_get_bookmark>: Use
10498 TARGET_DEFAULT_NORETURN
10500 2014-02-19 Tom Tromey <tromey@redhat.com>
10502 * target-delegates.c: Rebuild.
10503 * target.c (update_current_target): Don't inherit or default
10504 to_make_corefile_notes.
10505 (init_dummy_target): Don't initialize to_make_corefile_notes.
10506 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10507 TARGET_DEFAULT_FUNC.
10509 2014-02-19 Tom Tromey <tromey@redhat.com>
10511 * target-delegates.c: Rebuild.
10512 * target.c (update_current_target): Don't inherit or default
10513 to_find_memory_regions.
10514 (init_dummy_target): Don't initialize to_find_memory_regions.
10515 * target.h (struct target_ops) <to_find_memory_regions>: Use
10516 TARGET_DEFAULT_FUNC.
10518 2014-02-19 Tom Tromey <tromey@redhat.com>
10520 * target-delegates.c: Rebuild.
10521 * target.c (update_current_target): Don't inherit or default
10523 * target.h (struct target_ops) <to_log_command>: Use
10524 TARGET_DEFAULT_IGNORE.
10525 (target_log_command): Unconditionally delegate.
10527 2014-02-19 Tom Tromey <tromey@redhat.com>
10529 * target-delegates.c: Rebuild.
10530 * target.c (update_current_target): Don't inherit or default
10531 to_pid_to_exec_file.
10532 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10533 TARGET_DEFAULT_RETURN.
10535 2014-02-19 Tom Tromey <tromey@redhat.com>
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't inherit or default
10540 (target_thread_name): Unconditionally delegate.
10541 * target.h (struct target_ops) <to_thread_name>: Use
10542 TARGET_DEFAULT_RETURN.
10544 2014-02-19 Tom Tromey <tromey@redhat.com>
10546 * target-delegates.c: Rebuild.
10547 * target.c (update_current_target): Don't inherit or default
10548 to_extra_thread_info.
10549 * target.h (struct target_ops) <to_extra_thread_info>: Use
10550 TARGET_DEFAULT_RETURN.
10552 2014-02-19 Tom Tromey <tromey@redhat.com>
10554 * target-delegates.c: Rebuild.
10555 * target.c (update_current_target): Don't inherit or default
10557 * target.h (struct target_ops) <to_has_exited>: Use
10558 TARGET_DEFAULT_RETURN..
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10562 * target-delegates.c: Rebuild.
10563 * target.c (update_current_target): Don't inherit or default
10564 to_set_syscall_catchpoint.
10565 (return_one): Remove.
10566 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10567 TARGET_DEFAULT_RETURN.
10569 2014-02-19 Tom Tromey <tromey@redhat.com>
10571 * target-delegates.c: Rebuild.
10572 * target.c (update_current_target): Don't inherit or default
10573 to_insert_exec_catchpoint.
10574 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10575 TARGET_DEFAULT_RETURN.
10577 2014-01-08 Tom Tromey <tromey@redhat.com>
10579 * target-delegates.c: Rebuild.
10580 * target.c (update_current_target): Don't inherit or default
10581 to_insert_exec_catchpoint.
10582 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10583 TARGET_DEFAULT_RETURN.
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10587 * target-delegates.c: Rebuild.
10588 * target.c (update_current_target): Don't inherit or default
10589 to_remove_vfork_catchpoint.
10590 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10591 TARGET_DEFAULT_RETURN.
10593 2014-02-19 Tom Tromey <tromey@redhat.com>
10595 * target-delegates.c: Rebuild.
10596 * target.c (update_current_target): Don't inherit or default
10597 to_insert_vfork_catchpoint.
10598 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10599 TARGET_DEFAULT_RETURN.
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10603 * target-delegates.c: Rebuild.
10604 * target.c (update_current_target): Don't inherit or default
10605 to_remove_fork_catchpoint.
10606 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10607 TARGET_DEFAULT_RETURN.
10609 2014-02-19 Tom Tromey <tromey@redhat.com>
10611 * target-delegates.c: Rebuild.
10612 * target.c (update_current_target): Don't inherit or default
10613 to_insert_fork_catchpoint.
10614 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10615 TARGET_DEFAULT_RETURN.
10617 2014-02-19 Tom Tromey <tromey@redhat.com>
10619 * target-delegates.c: Rebuild.
10620 * target.c (update_current_target): Don't inherit or default
10621 to_post_startup_inferior.
10622 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10623 TARGET_DEFAULT_IGNORE.
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10627 * target-delegates.c: Rebuild.
10628 * target.c (update_current_target): Don't inherit or default
10630 * target.h (struct target_ops) <to_load>: Use
10631 TARGET_DEFAULT_NORETURN.
10633 2014-02-19 Tom Tromey <tromey@redhat.com>
10635 * target-delegates.c: Rebuild.
10636 * target.c (update_current_target): Don't inherit or default
10638 * target.h (struct target_ops) <to_terminal_info>: Use
10639 TARGET_DEFAULT_FUNC.
10641 2014-02-19 Tom Tromey <tromey@redhat.com>
10643 * target-delegates.c: Rebuild.
10644 * target.c (update_current_target): Don't inherit or default
10645 to_terminal_save_ours.
10646 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10647 TARGET_DEFAULT_IGNORE.
10649 2014-02-19 Tom Tromey <tromey@redhat.com>
10651 * target-delegates.c: Rebuild.
10652 * target.c (update_current_target): Don't inherit or default
10654 * target.h (struct target_ops) <to_terminal_ours>: Use
10655 TARGET_DEFAULT_IGNORE.
10657 2014-02-19 Tom Tromey <tromey@redhat.com>
10659 * target-delegates.c: Rebuild.
10660 * target.c (update_current_target): Don't inherit or default
10661 to_terminal_ours_for_output.
10662 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10663 TARGET_DEFAULT_IGNORE.
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10667 * target-delegates.c: Rebuild.
10668 * target.c (update_current_target): Don't inherit or default
10669 to_terminal_inferior.
10670 * target.h (struct target_ops) <to_terminal_inferior>: Use
10671 TARGET_DEFAULT_IGNORE.
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10675 * target-delegates.c: Rebuild.
10676 * target.c (update_current_target): Don't inherit or default
10678 * target.h (struct target_ops) <to_terminal_init>: Use
10679 TARGET_DEFAULT_IGNORE.
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10683 * target-delegates.c: Rebuild.
10684 * target.c (update_current_target): Don't inherit or default
10685 to_can_accel_watchpoint_condition.
10686 * target.h (struct target_ops)
10687 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10689 2014-02-19 Tom Tromey <tromey@redhat.com>
10691 * target-delegates.c: Rebuild.
10692 * target.c (update_current_target): Don't inherit or default
10693 to_region_ok_for_hw_watchpoint.
10694 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10695 Use TARGET_DEFAULT_FUNC.
10697 2014-02-19 Tom Tromey <tromey@redhat.com>
10699 * target-delegates.c: Rebuild.
10700 * target.c (update_current_target): Don't inherit or default
10701 to_watchpoint_addr_within_range.
10702 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10703 Use TARGET_DEFAULT_FUNC.
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10707 * target-delegates.c: Rebuild.
10708 * target.c (update_current_target): Don't inherit or default
10709 to_remove_watchpoint.
10710 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10711 TARGET_DEFAULT_NORETURN.
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10715 * target-delegates.c: Rebuild.
10716 * target.c (update_current_target): Don't inherit or default
10717 to_insert_watchpoint.
10718 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10719 TARGET_DEFAULT_RETURN.
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10723 * target-delegates.c: Rebuild.
10724 * target.c (update_current_target): Don't inherit or default
10725 to_remove_hw_breakpoint.
10726 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10727 TARGET_DEFAULT_RETURN.
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10731 * target-delegates.c: Rebuild.
10732 * target.c (update_current_target): Don't inherit or default
10733 to_insert_hw_breakpoint.
10734 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10735 TARGET_DEFAULT_RETURN.
10737 2014-02-19 Tom Tromey <tromey@redhat.com>
10739 * target-delegates.c: Rebuild.
10740 * target.c (update_current_target): Don't inherit or default
10741 to_can_use_hw_breakpoint.
10742 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10743 TARGET_DEFAULT_RETURN.
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * target-delegates.c: Rebuild.
10748 * target.c (update_current_target): Don't inherit or default
10750 * target.h (struct target_ops) <to_files_info>: Use
10751 TARGET_DEFAULT_IGNORE.
10753 2014-02-19 Tom Tromey <tromey@redhat.com>
10755 * target-delegates.c: Rebuild.
10756 * target.c (update_current_target): Don't inherit or default
10758 * target.h (struct target_ops) <to_store>: Use
10759 TARGET_DEFAULT_NORETURN.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target-delegates.c: Rebuild.
10764 * target.c (update_current_target): Don't inherit or default
10766 * target.h (struct target_ops) <to_post_attach>: Use
10767 TARGET_DEFAULT_IGNORE.
10769 2014-02-19 Tom Tromey <tromey@redhat.com>
10771 * target-delegates.c: Rebuild.
10772 * target.c (update_current_target): Don't inherit or default
10774 (default_rcmd): New function.
10775 (do_monitor_command): Unconditionally delegate.
10776 * target.h (struct target_ops) <to_rmcd>: Use
10777 TARGET_DEFAULT_FUNC.
10779 2014-02-19 Tom Tromey <tromey@redhat.com>
10781 * target-delegates.c: Rebuild.
10782 * target.c (init_dummy_target): Don't initialize to_attach.
10783 (target_attach): Unconditionally delegate.
10784 * target.h (struct target_ops) <to_attach>: Use
10785 TARGET_DEFAULT_FUNC.
10787 2014-02-19 Tom Tromey <tromey@redhat.com>
10789 * target-delegates.c: Rebuild.
10790 * target.c (target_detach): Unconditionally delegate.
10791 (init_dummy_target): Don't initialize to_detach.
10792 * target.h (struct target_ops) <to_detach>: Use
10793 TARGET_DEFAULT_IGNORE.
10795 2014-02-19 Tom Tromey <tromey@redhat.com>
10797 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10799 (target_augmented_libraries_svr4_read): Add argument.
10800 * target.c (update_current_target): Update.
10801 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10806 * target.h (struct target_ops) <to_call_history_range>: Add
10808 * target.c (target_call_history_range): Add argument.
10809 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10811 (record_btrace_call_history_from): Update.
10813 2014-02-19 Tom Tromey <tromey@redhat.com>
10815 * target.h (struct target_ops) <to_call_history_from>: Add
10817 * target.c (target_call_history_from): Add argument.
10818 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10821 2014-02-19 Tom Tromey <tromey@redhat.com>
10823 * target.h (struct target_ops) <to_call_history>: Add argument.
10824 * target.c (target_call_history): Add argument.
10825 * record-btrace.c (record_btrace_call_history): Add 'self'
10828 2014-02-19 Tom Tromey <tromey@redhat.com>
10830 * target.h (struct target_ops) <to_insn_history_range>: Add
10832 * target.c (target_insn_history_range): Add argument.
10833 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10835 (record_btrace_insn_history_from): Update.
10837 2014-02-19 Tom Tromey <tromey@redhat.com>
10839 * target.h (struct target_ops) <to_insn_history_from>: Add
10841 * target.c (target_insn_history_from): Add argument.
10842 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10845 2014-02-19 Tom Tromey <tromey@redhat.com>
10847 * target.h (struct target_ops) <to_insn_history>: Add argument.
10848 * target.c (target_insn_history): Add argument.
10849 * record-btrace.c (record_btrace_insn_history): Add 'self'
10852 2014-02-19 Tom Tromey <tromey@redhat.com>
10854 * target.h (struct target_ops) <to_goto_record>: Add argument.
10855 * target.c (target_goto_record): Add argument.
10856 * record-full.c (record_full_goto): Add 'self' argument.
10857 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10859 2014-02-19 Tom Tromey <tromey@redhat.com>
10861 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10862 * target.c (target_goto_record_end): Add argument.
10863 * record-full.c (record_full_goto_end): Add 'self' argument.
10864 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10868 * target.h (struct target_ops) <to_goto_record_begin>: Add
10870 * target.c (target_goto_record_begin): Add argument.
10871 * record-full.c (record_full_goto_begin): Add 'self' argument.
10872 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10877 * target.h (struct target_ops) <to_record_is_replaying>: Add
10879 * target.c (target_record_is_replaying): Add argument.
10880 * record-full.c (record_full_is_replaying): Add 'self' argument.
10881 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10883 (record_btrace_xfer_partial, record_btrace_store_registers)
10884 (record_btrace_prepare_to_store, record_btrace_resume)
10885 (record_btrace_wait, record_btrace_decr_pc_after_break)
10886 (record_btrace_find_new_threads, record_btrace_thread_alive):
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10891 * target.h (struct target_ops) <to_delete_record>: Add argument.
10892 * target.c (target_delete_record): Add argument.
10893 * record-full.c (record_full_delete): Add 'self' argument.
10895 2014-02-19 Tom Tromey <tromey@redhat.com>
10897 * target.h (struct target_ops) <to_save_record>: Add argument.
10898 * target.c (target_save_record): Add argument.
10899 * record-full.c (record_full_save): Add 'self' argument.
10900 (record_full_save): Add 'self' argument.
10902 2014-02-19 Tom Tromey <tromey@redhat.com>
10904 * target.h (struct target_ops) <to_info_record>: Add argument.
10905 * target.c (target_info_record): Add argument.
10906 * record.c (info_record_command): Add argument.
10907 * record-full.c (record_full_info): Add 'self' argument.
10908 * record-btrace.c (record_btrace_info): Add 'self' argument.
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10912 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10913 * target.c (target_stop_recording): Add argument.
10914 * record.c (record_stop): Add argument.
10915 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10920 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10921 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10922 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10924 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10925 (_initialize_amd64_linux_nat): Use it.
10926 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10927 (_initialize_i386_linux_nat): Use it.
10929 2014-02-19 Tom Tromey <tromey@redhat.com>
10931 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10932 * target.c (target_teardown_btrace): Add argument.
10933 * remote.c (remote_teardown_btrace): Add 'self' argument.
10934 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10936 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10939 2014-02-19 Tom Tromey <tromey@redhat.com>
10941 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10942 * target.c (target_disable_btrace): Add argument.
10943 * remote.c (remote_disable_btrace): Add 'self' argument.
10944 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10946 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10949 2014-02-19 Tom Tromey <tromey@redhat.com>
10951 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10952 * target.c (target_enable_btrace): Add argument.
10953 * remote.c (remote_enable_btrace): Add 'self' argument.
10954 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10956 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10959 2014-02-19 Tom Tromey <tromey@redhat.com>
10961 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10962 (target_can_use_agent): Add argument.
10963 * target.c (update_current_target): Update.
10964 * remote.c (remote_can_use_agent): Add 'self' argument.
10965 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10967 2014-02-19 Tom Tromey <tromey@redhat.com>
10969 * target.h (struct target_ops) <to_use_agent>: Add argument.
10970 (target_use_agent): Add argument.
10971 * target.c (update_current_target): Update.
10972 * remote.c (remote_use_agent): Add 'self' argument.
10973 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10975 2014-02-19 Tom Tromey <tromey@redhat.com>
10977 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10978 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10979 (target_traceframe_info): Add argument.
10980 * target.c (update_current_target): Update.
10981 * remote.c (remote_traceframe_info): Add 'self' argument.
10982 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10984 2014-02-19 Tom Tromey <tromey@redhat.com>
10986 * target.h (target_static_tracepoint_markers_by_strid): Add
10988 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10990 * target.c (update_current_target): Update.
10991 * remote.c (struct target_ops)
10992 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10993 * linux-nat.c (struct target_ops)
10994 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10998 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11000 (target_static_tracepoint_marker_at): Add argument.
11001 * target.c (update_current_target): Update.
11002 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11005 2014-02-19 Tom Tromey <tromey@redhat.com>
11007 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11008 (target_set_permissions): Add argument.
11009 * target.c (update_current_target): Update.
11010 * remote.c (remote_set_permissions): Add 'self' argument.
11011 (remote_start_remote): Update.
11013 2014-02-19 Tom Tromey <tromey@redhat.com>
11015 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11016 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11017 (target_get_tib_address): Add argument.
11018 * target.c (update_current_target): Update.
11019 * remote.c (remote_get_tib_address): Add 'self' argument.
11021 2014-02-19 Tom Tromey <tromey@redhat.com>
11023 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11024 (target_set_trace_notes): Add argument.
11025 * target.c (update_current_target): Update.
11026 * remote.c (remote_set_trace_notes): Add 'self' argument.
11028 2014-02-19 Tom Tromey <tromey@redhat.com>
11030 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11032 (target_set_trace_buffer_size): Add argument.
11033 * target.c (update_current_target): Update.
11034 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11036 2014-02-19 Tom Tromey <tromey@redhat.com>
11038 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11040 (target_set_circular_trace_buffer): Add argument.
11041 * target.c (update_current_target): Update.
11042 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11045 2014-02-19 Tom Tromey <tromey@redhat.com>
11047 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11049 (target_set_disconnected_tracing): Add argument.
11050 * target.c (update_current_target): Update.
11051 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11053 2014-02-19 Tom Tromey <tromey@redhat.com>
11055 * target.h (struct target_ops)
11056 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11057 (target_get_min_fast_tracepoint_insn_len): Add argument.
11058 * target.c (update_current_target): Update.
11059 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11062 2014-02-19 Tom Tromey <tromey@redhat.com>
11064 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11066 (target_get_raw_trace_data): Add argument.
11067 * target.c (update_current_target): Update.
11068 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11070 2014-02-19 Tom Tromey <tromey@redhat.com>
11072 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11074 (target_upload_trace_state_variables): Add argument.
11075 * target.c (update_current_target): Update.
11076 * remote.c (remote_upload_trace_state_variables): Add 'self'
11078 (remote_start_remote): Update.
11080 2014-02-19 Tom Tromey <tromey@redhat.com>
11082 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11084 (target_upload_tracepoints): Add argument.
11085 * target.c (update_current_target): Update.
11086 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11087 (remote_start_remote): Update.
11089 2014-02-19 Tom Tromey <tromey@redhat.com>
11091 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11092 (target_save_trace_data): Add argument.
11093 * target.c (update_current_target): Update.
11094 * remote.c (remote_save_trace_data): Add 'self' argument.
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11098 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11100 * target.h (struct target_ops)
11101 <to_get_trace_state_variable_value>: Add argument.
11102 (target_get_trace_state_variable_value): Add argument.
11103 * target.c (update_current_target): Update.
11104 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11106 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11108 2014-02-19 Tom Tromey <tromey@redhat.com>
11110 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11111 * target.h (struct target_ops) <to_trace_find>: Add argument.
11112 (target_trace_find): Add argument.
11113 * target.c (update_current_target): Update.
11114 * remote.c (remote_trace_find): Add 'self' argument.
11115 * ctf.c (ctf_trace_find): Add 'self' argument.
11117 2014-02-19 Tom Tromey <tromey@redhat.com>
11119 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11120 (target_trace_stop): Add argument.
11121 * target.c (update_current_target): Update.
11122 * remote.c (remote_trace_stop): Add 'self' argument.
11124 2014-02-19 Tom Tromey <tromey@redhat.com>
11126 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11127 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11129 (target_get_tracepoint_status): Add argument.
11130 * target.c (update_current_target): Update.
11131 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11135 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11136 * target.h (struct target_ops) <to_get_trace_status>: Add
11138 (target_get_trace_status): Add argument.
11139 * target.c (update_current_target): Update.
11140 * remote.c (remote_get_trace_status): Add 'self' argument.
11141 (remote_start_remote, remote_can_download_tracepoint): Update.
11142 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11144 2014-02-19 Tom Tromey <tromey@redhat.com>
11146 * target.h (struct target_ops) <to_trace_start>: Add argument.
11147 (target_trace_start): Add argument.
11148 * target.c (update_current_target): Update.
11149 * remote.c (remote_trace_start): Add 'self' argument.
11151 2014-02-19 Tom Tromey <tromey@redhat.com>
11153 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11155 (target_trace_set_readonly_regions): Add argument.
11156 * target.c (update_current_target): Update.
11157 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11162 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11164 (target_disable_tracepoint): Add argument.
11165 * target.c (update_current_target): Update.
11166 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11170 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11172 (target_enable_tracepoint): Add argument.
11173 * target.c (update_current_target): Update.
11174 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11178 * target.h (struct target_ops) <to_download_trace_state_variable>:
11180 (target_download_trace_state_variable): Add argument.
11181 * target.c (update_current_target): Update.
11182 * remote.c (remote_download_trace_state_variable): Add 'self'
11185 2014-02-19 Tom Tromey <tromey@redhat.com>
11187 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11189 (target_can_download_tracepoint): Add argument.
11190 * target.c (update_current_target): Update.
11191 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11193 2014-02-19 Tom Tromey <tromey@redhat.com>
11195 * target.h (struct target_ops) <to_download_tracepoint>: Add
11197 (target_download_tracepoint): Add argument.
11198 * target.c (update_current_target): Update.
11199 * remote.c (remote_download_tracepoint): Add 'self' argument.
11201 2014-02-19 Tom Tromey <tromey@redhat.com>
11203 * target.h (struct target_ops) <to_trace_init>: Add argument.
11204 (target_trace_init): Add argument.
11205 * target.c (update_current_target): Update.
11206 * remote.c (remote_trace_init): Add 'self' argument.
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11210 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11211 * target.c (target_fileio_readlink): Add argument.
11212 * remote.c (remote_hostio_readlink): Add 'self' argument.
11213 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11215 2014-02-19 Tom Tromey <tromey@redhat.com>
11217 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11218 * target.c (target_fileio_unlink): Add argument.
11219 * remote.c (remote_hostio_unlink): Add 'self' argument.
11220 (remote_file_delete): Update.
11221 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11223 2014-02-19 Tom Tromey <tromey@redhat.com>
11225 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11226 * target.c (target_fileio_close): Add argument.
11227 * remote.c (remote_hostio_close): Add 'self' argument.
11228 (remote_hostio_close_cleanup): Update.
11229 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11231 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11233 2014-02-19 Tom Tromey <tromey@redhat.com>
11235 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11236 * target.c (target_fileio_pread): Add argument.
11237 * remote.c (remote_hostio_pread): Add 'self' argument.
11238 (remote_bfd_iovec_pread, remote_file_get): Update.
11239 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11244 * target.c (target_fileio_pwrite): Add argument.
11245 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11246 (remote_file_put): Update.
11247 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11251 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11252 * target.c (target_fileio_open): Add argument.
11253 * remote.c (remote_hostio_open): Add 'self' argument.
11254 (remote_bfd_iovec_open): Add 'self' argument.
11255 (remote_file_put): Add 'self' argument.
11256 (remote_file_get): Add 'self' argument.
11257 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11259 2014-02-19 Tom Tromey <tromey@redhat.com>
11261 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11263 (target_can_run_breakpoint_commands): Add argument.
11264 * target.c (update_current_target): Update.
11265 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11267 (remote_insert_breakpoint): Add 'self' argument.
11268 (remote_insert_hw_breakpoint): Add 'self' argument.
11269 (remote_can_run_breakpoint_commands): Add 'self' argument.
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11273 * target.h (struct target_ops)
11274 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11275 (target_supports_evaluation_of_breakpoint_conditions): Add
11277 * target.c (update_current_target): Update.
11278 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11280 (remote_insert_breakpoint): Add 'self' argument.
11281 (remote_insert_hw_breakpoint): Add 'self' argument.
11282 (remote_supports_cond_breakpoints): Add 'self' argument.
11284 2014-02-19 Tom Tromey <tromey@redhat.com>
11286 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11288 (target_supports_string_tracing): Add argument.
11289 * target.c (update_current_target): Update.
11290 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11292 2014-02-19 Tom Tromey <tromey@redhat.com>
11294 * target.h (struct target_ops)
11295 <to_supports_disable_randomization>: Add argument.
11296 * target.c (find_default_supports_disable_randomization): Add
11298 (target_supports_disable_randomization): Add argument.
11299 (find_default_supports_disable_randomization): Add 'self'
11301 * remote.c (extended_remote_supports_disable_randomization): Add
11303 (remote_supports_disable_randomization): Add 'self' argument.
11304 (extended_remote_create_inferior): Update.
11305 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11308 2014-02-19 Tom Tromey <tromey@redhat.com>
11310 * target.h (struct target_ops)
11311 <to_supports_enable_disable_tracepoint>: Add argument.
11312 (target_supports_enable_disable_tracepoint): Add argument.
11313 * target.c (update_current_target): Update.
11314 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * target.h (struct target_ops) <to_supports_multi_process>: Add
11321 (target_supports_multi_process): Add argument.
11322 * target.c (update_current_target): Update.
11323 * remote.c (remote_supports_multi_process): Add 'self' argument.
11324 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11326 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11331 * target.h (struct target_ops) <to_execution_direction>: Add
11333 (target_execution_direction): Add argument.
11334 * target.c (default_execution_direction): Add 'self' argument.
11335 * record-full.c (record_full_execution_direction): Add 'self'
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11340 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11342 (target_can_execute_reverse): Add argument.
11343 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11344 * record-full.c (record_full_can_execute_reverse): Add 'self'
11346 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11349 2014-02-19 Tom Tromey <tromey@redhat.com>
11351 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11352 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11354 (target_get_ada_task_ptid): Add argument.
11355 * target.c (update_current_target): Update.
11356 (default_get_ada_task_ptid): Add 'self' argument.
11357 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11358 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11359 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11361 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11363 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11365 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11367 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11368 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11371 2014-02-19 Tom Tromey <tromey@redhat.com>
11373 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11374 (target_goto_bookmark): Add argument.
11375 * target.c (dummy_goto_bookmark): Add 'self' argument.
11376 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11380 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11381 (target_get_bookmark): Add argument.
11382 * target.c (dummy_get_bookmark): Add 'self' argument.
11383 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11387 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11389 (target_make_corefile_notes): Add argument.
11390 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11391 * procfs.c (procfs_make_note_section): Add 'self' argument.
11392 (procfs_make_note_section): Add 'self' argument.
11393 (procfs_make_note_section): Add 'self' argument.
11394 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11396 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11397 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11398 * exec.c (exec_make_note_section): Add 'self' argument.
11399 (exec_make_note_section): Add 'self' argument.
11401 2014-02-19 Tom Tromey <tromey@redhat.com>
11403 * target.h (struct target_ops) <to_find_memory_regions>: Add
11405 (target_find_memory_regions): Add argument.
11406 * target.c (dummy_find_memory_regions): Add 'self' argument.
11407 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11408 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11409 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11410 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11411 * exec. (exec_do_find_memory_regions): New global.
11412 (exec_set_find_memory_regions): Rewrite.
11413 (exec_find_memory_regions): New function.
11414 (init_exec_ops): Use exec_find_memory_regions.
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target.h (struct target_ops) <to_supports_non_stop>: Add
11420 * target.c (find_default_supports_non_stop): Add argument.
11421 (target_supports_non_stop): Add argument.
11422 (find_default_supports_non_stop): Add 'self' argument.
11423 * remote.c (remote_supports_non_stop): Add 'self' argument.
11424 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11426 2014-02-19 Tom Tromey <tromey@redhat.com>
11428 * target.h (struct target_ops) <to_log_command>: Add argument.
11429 (target_log_command): Add argument.
11430 * serial.h (serial_log_command): Add 'self' argument.
11431 * serial.c (serial_log_command): Add 'self' argument.
11433 2014-02-19 Tom Tromey <tromey@redhat.com>
11435 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11436 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11438 (target_pid_to_exec_file): Add argument.
11439 * target.c (debug_to_pid_to_exec_file): Add argument.
11440 (update_current_target): Update.
11441 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11442 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11443 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11444 (linux_handle_extended_wait): Update.
11445 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11446 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11447 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11448 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11452 * target.h (struct target_ops) <to_rcmd>: Add argument.
11453 (target_rcmd): Add argument.
11454 * target.c (debug_to_rcmd): Add argument.
11455 (update_current_target, do_monitor_command): Update.
11456 * remote.c (remote_rcmd): Add 'self' argument.
11457 * monitor.c (monitor_rcmd): Add 'self' argument.
11459 2014-02-19 Tom Tromey <tromey@redhat.com>
11461 * windows-nat.c (windows_stop): Add 'self' argument.
11462 * target.h (struct target_ops) <to_stop>: Add argument.
11463 * target.c (target_stop): Add argument.
11464 (debug_to_stop): Add argument.
11465 (update_current_target): Update.
11466 * remote.c (remote_stop): Add 'self' argument.
11467 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11468 (gdbsim_cntrl_c): Update.
11469 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11470 * procfs.c (procfs_stop): Add 'self' argument.
11471 * nto-procfs.c (procfs_stop): Add 'self' argument.
11472 * monitor.c (monitor_stop): Add 'self' argument.
11473 (monitor_open): Update.
11474 * linux-nat.c (linux_nat_stop): Add argument.
11475 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11476 * gnu-nat.c (gnu_stop): Add 'self' argument.
11477 * darwin-nat.c (darwin_stop): Add 'self' argument.
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target.h (struct target_ops) <to_thread_name>: Add argument.
11482 * target.c (target_thread_name): Add argument.
11483 (update_current_target): Update.
11484 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11486 2014-02-19 Tom Tromey <tromey@redhat.com>
11488 * target.h (struct target_ops) <to_extra_thread_info>: Add
11490 (target_extra_thread_info): Add argument.
11491 * target.c (update_current_target): Update.
11492 * remote.c (remote_threads_extra_info): Add 'self' argument.
11493 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11495 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11496 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11497 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11499 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11501 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11503 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11506 2014-02-19 Tom Tromey <tromey@redhat.com>
11508 * target.h (struct target_ops) <to_program_signals>: Add argument.
11509 * target.c (target_program_signals): Add argument.
11510 * remote.c (remote_program_signals): Add 'self' argument.
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11514 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11515 * target.c (target_pass_signals): Add argument.
11516 * remote.c (remote_pass_signals): Add 'self' argument.
11517 (remote_start_remote): Update.
11518 * procfs.c (procfs_pass_signals): Add 'self' argument.
11519 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11520 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11521 (linux_nat_create_inferior, linux_nat_attach): Update.
11523 2014-02-19 Tom Tromey <tromey@redhat.com>
11525 * windows-nat.c (windows_can_run): Add 'self' argument.
11526 * target.h (struct target_ops) <to_can_run>: Add argument.
11527 (target_can_run): Add argument.
11528 * target.c (debug_to_can_run): Add argument.
11529 (update_current_target): Update.
11530 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11531 * inf-child.c (inf_child_can_run): Add 'self' argument.
11532 * go32-nat.c (go32_can_run): Add 'self' argument.
11534 2014-02-19 Tom Tromey <tromey@redhat.com>
11536 * target.h (struct target_ops) <to_has_exited>: Add argument.
11537 (target_has_exited): Add argument.
11538 * target.c (debug_to_has_exited): Add argument.
11539 (update_current_target): Update.
11541 2014-02-19 Tom Tromey <tromey@redhat.com>
11543 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11545 (target_set_syscall_catchpoint): Add argument.
11546 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11548 * target.c (update_current_target): Update.
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11552 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11554 (target_remove_exec_catchpoint): Add argument.
11555 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11556 (update_current_target): Update.
11557 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11560 2014-02-19 Tom Tromey <tromey@redhat.com>
11562 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11564 (target_insert_exec_catchpoint): Add argument.
11565 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11566 (update_current_target): Update.
11567 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11570 2014-02-19 Tom Tromey <tromey@redhat.com>
11572 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11574 (target_remove_vfork_catchpoint): Add argument.
11575 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11576 (update_current_target): Update.
11577 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11580 2014-02-19 Tom Tromey <tromey@redhat.com>
11582 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11584 (target_insert_vfork_catchpoint): Add argument.
11585 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11586 (update_current_target): Update.
11587 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11590 2014-02-19 Tom Tromey <tromey@redhat.com>
11592 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11594 (target_remove_fork_catchpoint): Add argument.
11595 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11596 (update_current_target): Update.
11597 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11600 2014-02-19 Tom Tromey <tromey@redhat.com>
11602 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11604 (target_insert_fork_catchpoint): Add argument.
11605 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11606 (update_current_target): Update.
11607 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11610 2014-02-19 Tom Tromey <tromey@redhat.com>
11612 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11614 (target_post_startup_inferior): Add argument.
11615 * target.c (debug_to_post_startup_inferior): Add argument.
11616 (update_current_target): Update.
11617 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11619 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11621 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11623 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11625 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11627 (super_post_startup_inferior): Likewise.
11628 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11630 (super_post_startup_inferior): Likewise.
11631 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11632 Add 'self' argument.
11633 (super_post_startup_inferior): Likewise.
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11637 * target.h (struct target_ops) <to_load>: Add argument.
11638 * target.c (target_load): Add argument.
11639 (debug_to_load): Add argument.
11640 (update_current_target): Update.
11641 * remote.c (remote_load): Add 'self' argument.
11642 * remote-sim.c (gdbsim_load): Add 'self' argument.
11643 * remote-mips.c (mips_load): Add 'self' argument.
11644 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11645 * monitor.c (monitor_load): Add 'self' argument.
11646 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11648 2014-02-19 Tom Tromey <tromey@redhat.com>
11650 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11651 (target_terminal_info): Add argument.
11652 * target.c (debug_to_terminal_info): Add argument.
11653 (default_terminal_info): Likewise.
11654 * inflow.c (child_terminal_info): Add 'self' argument.
11655 * inferior.h (child_terminal_info): Add 'self' argument.
11656 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11658 2014-02-19 Tom Tromey <tromey@redhat.com>
11660 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11662 (target_terminal_save_ours): Add argument.
11663 * target.c (debug_to_terminal_save_ours): Add argument.
11664 (update_current_target): Update.
11665 * inflow.c (terminal_save_ours): Add 'self' argument.
11666 * inferior.h (terminal_save_ours): Add 'self' argument.
11668 2014-02-19 Tom Tromey <tromey@redhat.com>
11670 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11671 (target_terminal_ours): Add argument.
11672 * target.c (debug_to_terminal_ours): Add argument.
11673 (update_current_target): Update.
11674 * remote.c (remote_terminal_ours): Add 'self' argument.
11675 (remote_close): Update.
11676 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11677 * inflow.c (terminal_ours): Add 'self' argument.
11678 * inferior.h (terminal_ours): Add 'self' argument.
11679 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11681 2014-02-19 Pedro Alves <palves@redhat.com>
11682 Tom Tromey <tromey@redhat.com>
11684 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11686 (target_terminal_ours_for_output): Add argument.
11687 * target.c (debug_to_terminal_ours_for_output): Add argument.
11688 (update_current_target): Update.
11689 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11690 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11691 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11695 * target.h (struct target_ops) <to_terminal_inferior>: Add
11697 * target.c (target_terminal_inferior): Add argument.
11698 (update_current_target): Update.
11699 * remote.c (remote_terminal_inferior): Add 'self' argument.
11700 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11701 * inflow.c (terminal_inferior): Add 'self' argument.
11702 * inferior.h (terminal_inferior): Add 'self' argument.
11703 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11704 (go32_terminal_inferior): Add 'self' argument.
11706 2014-02-19 Tom Tromey <tromey@redhat.com>
11708 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11709 (target_terminal_init): Add argument.
11710 * target.c (debug_to_terminal_init): Add argument.
11711 (update_current_target): Update.
11712 * inflow.c (terminal_init_inferior): Add 'self' argument.
11713 * inferior.h (terminal_init_inferior): Add 'self' argument.
11714 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11715 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11717 2014-02-19 Tom Tromey <tromey@redhat.com>
11719 * target.h (struct target_ops)
11720 <to_can_accel_watchpoint_condition>: Add argument.
11721 (target_can_accel_watchpoint_condition): Add argument.
11722 * target.c (debug_to_can_accel_watchpoint_condition): Add
11724 (update_current_target): Update.
11725 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11728 2014-02-19 Tom Tromey <tromey@redhat.com>
11730 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11732 (target_region_ok_for_hw_watchpoint): Add argument.
11733 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11734 (default_region_ok_for_hw_watchpoint): Add argument.
11735 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11736 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11738 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11740 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11742 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11744 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11746 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11748 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11749 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11751 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11752 Add 'self' argument.
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11756 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11758 (target_insert_watchpoint): Add argument.
11759 * target.c (debug_to_insert_watchpoint): Add argument.
11760 (update_current_target): Update.
11761 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11762 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11763 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11764 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11765 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11766 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11768 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11769 (procfs_insert_hw_watchpoint): Add 'self' argument.
11770 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11772 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11774 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11776 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11777 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11779 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11782 2014-02-19 Tom Tromey <tromey@redhat.com>
11784 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11786 (target_remove_watchpoint): Add argument.
11787 * target.c (debug_to_remove_watchpoint): Add argument.
11788 (update_current_target): Update.
11789 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11790 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11791 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11792 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11793 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11794 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11796 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11797 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11799 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11801 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11803 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11804 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11806 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11811 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11813 (target_remove_hw_breakpoint): Add argument.
11814 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11815 (update_current_target): Update.
11816 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11817 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11819 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11820 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11822 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11827 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11829 (target_insert_hw_breakpoint): Add argument.
11830 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11831 (update_current_target): Update.
11832 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11833 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11835 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11836 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11837 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11839 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11844 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11846 (target_can_use_hardware_watchpoint): Add argument.
11847 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11848 (update_current_target): Update.
11849 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11851 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11853 * remote.c (remote_check_watch_resources): Add 'self' argument.
11854 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11855 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11857 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11858 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11860 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11862 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11864 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11866 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11868 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11870 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11871 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11873 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11876 2014-02-19 Tom Tromey <tromey@redhat.com>
11878 * target.h (struct target_ops) <to_post_attach>: Add argument.
11879 (target_post_attach): Add argument.
11880 * target.c (debug_to_post_attach): Add argument.
11881 (update_current_target): Update.
11882 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11883 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11884 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11885 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11886 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11888 2014-02-19 Tom Tromey <tromey@redhat.com>
11890 * windows-nat.c (windows_close): Add 'self' argument.
11891 * tracepoint.c (tfile_close): Add 'self' argument.
11892 * target.h (struct target_ops) <to_close>: Add argument.
11893 * target.c (target_close): Add argument.
11894 (update_current_target): Update.
11895 * remote.c (remote_close): Add 'self' argument.
11896 * remote-sim.c (gdbsim_close): Add 'self' argument.
11897 * remote-mips.c (mips_close): Add 'self' argument.
11898 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11899 * record-full.c (record_full_close): Add 'self' argument.
11900 * record-btrace.c (record_btrace_close): Add 'self' argument.
11901 * monitor.h (monitor_close): Add 'self' argument.
11902 * monitor.c (monitor_close): Add 'self' argument.
11903 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11904 * linux-nat.c (linux_nat_close): Add argument.
11905 * go32-nat.c (go32_close): Add 'self' argument.
11906 * exec.c (exec_close_1): Add 'self' argument.
11907 * ctf.c (ctf_close): Add 'self' argument.
11908 * corelow.c (core_close): Add 'self' argument.
11909 (core_close_cleanup): Update.
11910 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11911 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11913 2014-02-19 Tom Tromey <tromey@redhat.com>
11915 * remote.c (remote_load): New function.
11916 (init_remote_ops): Use it.
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11920 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11922 * common/linux-btrace.h (linux_supports_btrace): Update.
11923 * remote.c (remote_supports_btrace): Add "self" argument.
11924 * target-delegates.c: Rebuild.
11925 * target.c (target_supports_btrace): Remove.
11926 * target.h (struct target_ops) <to_supports_btrace>: Add
11927 target_ops argument.
11928 (target_supports_btrace): New define.
11930 2014-02-19 Tom Tromey <tromey@redhat.com>
11932 * record-full.c (record_full_beneath_to_resume_ops)
11933 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11934 (record_full_beneath_to_wait)
11935 (record_full_beneath_to_store_registers_ops)
11936 (record_full_beneath_to_store_registers)
11937 (record_full_beneath_to_xfer_partial_ops)
11938 (record_full_beneath_to_xfer_partial)
11939 (record_full_beneath_to_insert_breakpoint_ops)
11940 (record_full_beneath_to_insert_breakpoint)
11941 (record_full_beneath_to_remove_breakpoint_ops)
11942 (record_full_beneath_to_remove_breakpoint)
11943 (record_full_beneath_to_stopped_by_watchpoint)
11944 (record_full_beneath_to_stopped_data_address)
11945 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11946 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11947 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11948 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11949 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11950 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11951 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11952 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11953 (record_full_resume, record_full_wait_1)
11954 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11955 (record_full_store_registers, record_full_xfer_partial)
11956 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11957 (record_full_async, record_full_core_xfer_partial): Use target
11959 * target-delegates.c: Rebuild.
11960 * target.c (current_xfer_partial): Remove.
11961 (update_current_target): Do not INHERIT or de_fault
11962 to_insert_breakpoint, to_remove_breakpoint,
11963 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11964 to_is_async_p, to_async. Do not set to_xfer_partial field.
11965 (default_xfer_partial): Simplify.
11966 (current_xfer_partial): Remove.
11967 (target_wait, target_resume): Simplify.
11968 (find_default_can_async_p, find_default_is_async_p): Update.
11969 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11970 to_xfer_partial, to_stopped_by_watchpoint,
11971 to_stopped_data_address.
11972 (target_store_registers): Simplify.
11973 (forward_target_remove_breakpoint)
11974 (forward_target_insert_breakpoint): Remove.
11975 (target_remove_breakpoint, target_insert_breakpoint)
11976 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11977 * target.h (struct target_ops) <to_resume, to_wait,
11978 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11979 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11980 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11982 (forward_target_remove_breakpoint)
11983 (forward_target_insert_breakpoint): Remove.
11984 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11986 (record_btrace_insert_breakpoint): Delegate directly.
11988 2014-02-19 Tom Tromey <tromey@redhat.com>
11991 * target-delegates.c: New file.
11992 * target.c: Include target-delegates.c.
11993 (init_dummy_target): Call install_dummy_methods.
11994 (complete_target_initialization): Call install_delegators.
11995 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11996 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11997 * make-target-delegates: New file.
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12001 * record.c (find_record_target): Use find_target_at.
12002 * target.c (find_target_at): New function.
12003 * target.h (find_target_at): Declare.
12005 2014-02-19 Tom Tromey <tromey@redhat.com>
12007 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12008 Add 'ops' argument.
12009 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12011 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12012 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12014 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12016 * linux-nat.c (save_sigtrap): Update.
12017 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12018 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12019 (linux_nat_close): Update.
12020 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12022 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12024 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12025 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12026 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12027 (tmp_to_async): Add 'ops' argument.
12028 (record_full_stopped_by_watchpoint, record_full_async)
12029 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12031 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12032 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12033 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12034 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12035 (remote_is_async_p, remote_async): Add 'ops' argument.
12036 (remote_stopped_data_address): Update.
12037 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12038 * target.c (update_current_target)
12039 (find_default_can_async_p, find_default_is_async_p): Update.
12040 (init_dummy_target): Update.
12041 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12042 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12043 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12044 (target_can_async_p, target_is_async_p, target_async)
12045 (target_stopped_by_watchpoint): Update.
12047 2014-02-19 Yao Qi <yao@codesourcery.com>
12050 * gdbarch.sh: Remove startup_gdbarch.
12051 * gdbarch.c: Regenerated.
12052 * gdbarch.h: Likewise.
12054 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12056 * rl78-tdep.c (rl78_g10_register_name): New function.
12057 (rl78_return_value): Add g10 support.
12058 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12061 2014-02-17 Doug Evans <xdje42@gmail.com>
12063 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12064 (SUBDIR_GUILE_SRCS): Ditto.
12065 (scm-gsmob.o): Ditto.
12067 2014-02-17 Yao Qi <yao@codesourcery.com>
12069 * gnu-nat.c (ILL_RPC): Declare defined function.
12071 2014-02-17 Yao Qi <yao@codesourcery.com>
12073 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12074 mach_msg_type_number_t.
12075 (gnu_write_inferior): Likewise.
12077 2014-02-17 Yao Qi <yao@codesourcery.com>
12079 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12081 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12082 (inf_validate_procs, inf_signal): Likewise.
12083 (S_exception_raise_request): Likewise.
12084 (do_mach_notify_dead_name): Likewise.
12085 (steal_exc_port): Likewise.
12086 (gnu_read_inferior): Change 'copy_count''s type to
12087 mach_msg_type_number_t.
12088 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12091 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12093 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12094 flag. Adjust all users; in particular...
12095 (gnu_wait): ..., don't decrement its value in here...
12096 (gnu_create_inferior): ..., and instead set the flag in here,
12097 around the startup_inferior call, and call that one with
12098 START_INFERIOR_TRAPS_EXPECTED.
12100 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12101 (ILL_RPC): ... new macro.
12102 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12103 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12104 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12105 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12106 functions with ILL_RPC macro.
12107 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12108 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12109 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12110 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12111 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12112 (S_proc_getlogin_reply, S_proc_getsid_reply)
12113 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12114 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12115 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12116 (S_proc_getnports_reply, S_proc_is_important_reply)
12117 (S_proc_get_code_reply): New stub functions, generated with
12120 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12121 collected the type check structures.
12123 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12125 2014-02-14 Doug Evans <dje@google.com>
12127 * target.c (target_write_partial): Fix result type.
12129 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12131 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12132 the proper offsets to access fpregset_t.
12134 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12136 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12137 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12138 * h8300-tdep.c (setmachinelist): Remove global.
12139 * hppa-tdep.c (hppa_sigtramp): Remove global.
12140 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12141 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12142 * ravenscar-thread.c (update_target_observer): Remove global.
12143 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12145 2014-02-12 Tom Tromey <tromey@redhat.com>
12147 * common/rsp-low.c: Update comments.
12148 * common/rsp-low.h: Update comments.
12150 2014-02-12 Tom Tromey <tromey@redhat.com>
12152 * common/rsp-low.c (convert_ascii_to_int): Remove.
12153 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12155 2014-02-12 Tom Tromey <tromey@redhat.com>
12157 * common/rsp-low.h (unhexify): Don't declare.
12158 * common/rsp-low.c (unhexify): Remove.
12160 2014-02-12 Tom Tromey <tromey@redhat.com>
12162 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12163 * common/rsp-low.c (convert_int_to_ascii): Remove.
12165 2014-02-12 Tom Tromey <tromey@redhat.com>
12167 * common/rsp-low.h (hexify): Don't declare.
12168 * common/rsp-low.c (hexify): Remove.
12170 2014-02-12 Tom Tromey <tromey@redhat.com>
12172 * common/rsp-low.c (hexify): Never take strlen of argument.
12174 2014-02-12 Tom Tromey <tromey@redhat.com>
12176 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12177 * remote.c (extended_remote_run, remote_rcmd)
12178 (remote_download_trace_state_variable, remote_save_trace_data)
12179 (remote_set_trace_notes): Update.
12180 * tracepoint.c (encode_source_string, tfile_write_status)
12181 (tfile_write_uploaded_tsv): Update.
12183 2014-02-12 Tom Tromey <tromey@redhat.com>
12185 * tracepoint.c: Include rsp-low.h.
12186 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12187 * remote.c: Include rsp-low.h.
12188 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12189 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12190 (remote_unescape_input): Move to common/rsp-low.c.
12191 * common/rsp-low.h: New file.
12192 * common/rsp-low.c: New file.
12193 * Makefile.in (SFILES): Add common/rsp-low.c.
12194 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12195 (COMMON_OBS): Add rsp-low.o.
12196 (rsp-low.o): New target.
12198 2014-02-12 Tom Tromey <tromey@redhat.com>
12200 * utils.h: Include print-utils.h.
12201 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12202 (int_string, core_addr_to_string, core_addr_to_string_nz)
12203 (hex_string, hex_string_custom): Don't declare.
12204 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12205 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12206 (hex_string_custom, int_string, core_addr_to_string)
12207 (core_addr_to_string_nz, host_address_to_string): Move to
12208 common/print-utils.c.
12209 * common/print-utils.h: New file.
12210 * common/print-utils.c: New file
12211 * Makefile.in (SFILES): Add common/print-utils.c.
12212 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12213 (COMMON_OBS): Add print-utils.o.
12214 (print-utils.o): New target.
12216 2014-02-12 Tom Tromey <tromey@redhat.com>
12218 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12220 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12222 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12224 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12226 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12227 if a PT_IO ptrace request returns sucessfully but indicates that 0
12228 bytes were transferred.
12230 2014-02-12 Pedro Alves <palves@redhat.com>
12231 Kevin Buettner <kevinb@redhat.com>
12233 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12234 TYPE_INSTANCE_FLAG_CODE_SPACE.
12236 2014-02-12 Pedro Alves <palves@redhat.com>
12238 * h8300-tdep.c (pseudo_from_raw_register)
12239 (raw_from_pseudo_register): New functions.
12240 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12243 2014-02-12 Pedro Alves <palves@redhat.com>
12245 * h8300-tdep.c (h8300_register_sim_regno): New function.
12246 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12247 gdbarch_register_sim_regno hook.
12249 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12251 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12253 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12255 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12257 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12259 * obsd-tdep.h (obsd_init_abi): New prototype.
12260 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12261 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12262 (obsd_init_abi): New functions.
12263 * i386obsd-tdep.c: Include "obsd-tdep.h".
12264 (i386obsd_init_abi): Call obsd_init_abi.
12265 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12266 (amd64obsd_init_abi): Call obsd_init_abi.
12267 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12268 obsd-tdep.c to gdb_target_obs.
12270 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12272 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12273 double float arguments to 16-byte in the argument slots.
12275 2014-02-11 Doug Evans <xdje42@gmail.com>
12277 * configure.ac: Don't crash if pkg-config is not found and guile
12278 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12280 * configure: Regenerate.
12282 2014-02-11 Yao Qi <yao@codesourcery.com>
12284 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12285 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12286 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12287 * gnu-nat.c (gnu_xfer_memory): Likewise.
12288 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12289 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12290 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12291 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12293 2014-02-11 Yao Qi <yao@codesourcery.com>
12295 * target.h (enum target_xfer_error): Rename to ...
12296 (enum target_xfer_status): ... it. New. All users updated.
12297 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12299 (TARGET_XFER_STATUS_ERROR_P): New macro.
12300 (target_xfer_error_to_string): Remove declaration.
12301 (target_xfer_status_to_string): Declare.
12302 (target_xfer_partial_ftype): Adjust it.
12303 (struct target_ops) <to_xfer_partial>: Return
12304 target_xfer_status. Add argument xfered_len. Update
12306 * target.c (target_xfer_error_to_string): Rename to ...
12307 (target_xfer_status_to_string): ... it. New. All callers
12309 (target_read_live_memory): Likewise. Call target_xfer_partial
12310 instead of target_read.
12311 (memory_xfer_live_readonly_partial): Return
12312 target_xfer_status. Add argument xfered_len.
12313 (raw_memory_xfer_partial): Likewise.
12314 (memory_xfer_partial_1): Likewise.
12315 (memory_xfer_partial): Likewise.
12316 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12317 properly. Update debug message.
12318 (default_xfer_partial, current_xfer_partial): Likewise.
12319 (target_write_partial): Likewise.
12320 (target_read_partial): Likewise. All callers updated.
12321 (read_whatever_is_readable): Likewise.
12322 (target_write_with_progress): Likewise.
12323 (target_read_alloc_1): Likewise.
12325 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12326 * auxv.c (procfs_xfer_auxv): Likewise.
12327 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12328 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12329 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12330 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12331 * corefile.c (read_memory): Adjust.
12332 * corelow.c (core_xfer_partial): Likewise.
12333 * ctf.c (ctf_xfer_partial): Likewise.
12334 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12336 (darwin_xfer_partial): Likewise.
12337 * exec.c (section_table_xfer_memory_partial): Likewise. All
12339 (exec_xfer_partial): Likewise.
12340 * exec.h (section_table_xfer_memory_partial): Update
12342 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12344 (gnu_xfer_partial): Likewise.
12345 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12346 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12347 (ia64_hpux_xfer_solib_got): Likewise.
12348 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12349 type of 'partial_len' to ULONGEST.
12350 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12351 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12352 (linux_nat_xfer_partial): Likewise.
12353 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12354 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12355 * monitor.c (monitor_xfer_memory): Likewise.
12356 (monitor_xfer_partial): Likewise.
12357 * procfs.c (procfs_xfer_partial): Likewise.
12358 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12359 * record-full.c (record_full_xfer_partial): Likewise.
12360 (record_full_core_xfer_partial): Likewise.
12361 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12362 (gdbsim_xfer_partial): Likewise.
12363 * remote.c (remote_write_bytes_aux): Likewise. All callers
12365 (remote_write_bytes, remote_read_bytes): Likewise. All
12367 (remote_flash_erase): Likewise. All callers updated.
12368 (remote_write_qxfer): Likewise. All callers updated.
12369 (remote_read_qxfer): Likewise. All callers updated.
12370 (remote_xfer_partial): Likewise.
12371 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12372 (rs6000_xfer_shared_libraries): Likewise.
12373 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12374 (sol_thread_xfer_partial): Likewise.
12375 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12376 (sparc_xfer_partial): Likewise.
12377 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12379 (spu_xfer_partial): Likewise.
12380 * spu-multiarch.c (spu_xfer_partial): Likewise.
12381 * tracepoint.c (tfile_xfer_partial): Likewise.
12382 * windows-nat.c (windows_xfer_memory): Likewise.
12383 (windows_xfer_shared_libraries): Likewise.
12384 (windows_xfer_partial): Likewise.
12385 * valprint.c: Replace 'target_xfer_error' with
12386 'target_xfer_status' in comments.
12388 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12390 Checked in by Joel Brobecker <brobecker@adacore.com>.
12391 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12393 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12395 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12396 function parameters.
12398 2014-02-10 Will Newton <will.newton@linaro.org>
12400 * elfread.c (elf_rel_plt_read): Look for a .got section if
12401 looking up .got.plt fails.
12402 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12403 on address passed to elf_gnu_ifunc_record_cache.
12404 (elf_gnu_ifunc_resolve_addr): Likewise.
12405 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12407 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12409 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12410 (X_RETTURN): New macro.
12411 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12413 * sparc64-tdep.c (sparc64_init_abi): Hook
12414 sparc_in_function_epilogue_p.
12416 2014-02-10 Gary Benson <gbenson@redhat.com>
12418 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12419 Rename name_matcher to symbol_matcher.
12421 2014-02-10 Gary Benson <gbenson@redhat.com>
12423 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12424 Use expand_symtabs_file_matcher_ftype and
12425 expand_symtabs_symbol_matcher_ftype.
12427 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12429 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12430 (struct ada_symbol_cache): New.
12431 (ada_free_symbol_cache): Forward declare.
12432 (struct ada_pspace_data): New.
12433 (ada_pspace_data_handle): New static global.
12434 (get_ada_pspace_data, ada_pspace_data_cleanup)
12435 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12436 (cache_space, cache): Delete, now folded inside struct
12438 (ada_get_symbol_cache): New function.
12439 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12441 (_initialize_ada_language): Remove initialization of cache_space.
12442 Move call to observer_attach_inferior_exit up, grouping it
12443 with the other observer registrations inside this function.
12444 Rename command to be more general. Add call to
12445 register_program_space_data_with_cleanup.
12447 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12449 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12450 ada_new_objfile_observer.
12451 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12452 (_initialize_tasks): Update uses of ada_new_objfile_observer
12453 and ada_tasks_normal_stop_observer.
12455 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12457 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12458 returned by the 'Length attribute to integer.
12460 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12462 * ada-lang.c (_initialize_ada_language): Initialize
12463 cache_space obstack.
12465 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12467 * ada-lang.c (HASH_SIZE): New macro.
12468 (struct cache_entry): New type.
12469 (cache_space, cache): New static globals.
12470 (ada_clear_symbol_cache, find_entry): New functions.
12471 (lookup_cached_symbol, cache_symbol): Implement.
12472 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12473 (_initialize_ada_language): Attach ada_new_objfile_observer
12474 and ada_free_objfile_observer.
12476 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12478 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12479 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12480 struct block * parameter.
12481 (ada_lookup_symbol_list_worker): Constify local variable "block".
12482 Remove cast which is no longer necessary.
12484 2014-02-10 Doug Evans <xdje42@gmail.com>
12486 Add Guile as an extension language.
12487 * NEWS: Mention Guile scripting.
12488 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12489 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12490 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12491 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12492 (CLIBS): Add GUILE_LIBS.
12493 (install-guile): New rule.
12494 (guile.o): New rule.
12495 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12496 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12497 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12498 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12499 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12500 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12501 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12502 * configure.ac: New option --with-guile.
12503 * configure: Regenerate.
12504 * config.in: Regenerate.
12505 * auto-load.c: Remove #include "python/python.h". Add #include
12506 "gdb/section-scripts.h".
12507 (source_section_scripts): Handle Guile scripts.
12508 (_initialize_auto_load): Add name of Guile objfile script to
12509 scripts-directory help text.
12510 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12511 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12512 (struct breakpoint): New member scm_bp_object.
12513 * defs.h (enum command_control_type): New value guile_control.
12514 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12516 (show_user): Update comment.
12517 (_initialize_cli_cmds): Update help text for "show user". Update help
12518 text for max-user-call-depth.
12519 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12521 (multi_line_command_p): Add guile_control.
12522 (print_command_lines): Handle guile_control.
12523 (execute_control_command, recurse_read_control_structure): Ditto.
12524 (process_next_line): Recognize "guile" commands.
12525 * disasm.c (gdb_disassemble_info): Make non-static.
12526 * disasm.h: #include "dis-asm.h".
12527 (struct gdbarch): Add forward decl.
12528 (gdb_disassemble_info): Declare.
12529 * extension.c: #include "guile/guile.h".
12530 (extension_languages): Add guile.
12531 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12532 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12533 * gdbtypes.c (get_unsigned_type_max): New function.
12534 (get_signed_type_minmax): New function.
12535 * gdbtypes.h (get_unsigned_type_max): Declare.
12536 (get_signed_type_minmax): Declare.
12537 * guile/README: New file.
12538 * guile/guile-internal.h: New file.
12539 * guile/guile.c: New file.
12540 * guile/guile.h: New file.
12541 * guile/scm-arch.c: New file.
12542 * guile/scm-auto-load.c: New file.
12543 * guile/scm-block.c: New file.
12544 * guile/scm-breakpoint.c: New file.
12545 * guile/scm-disasm.c: New file.
12546 * guile/scm-exception.c: New file.
12547 * guile/scm-frame.c: New file.
12548 * guile/scm-gsmob.c: New file.
12549 * guile/scm-iterator.c: New file.
12550 * guile/scm-lazy-string.c: New file.
12551 * guile/scm-math.c: New file.
12552 * guile/scm-objfile.c: New file.
12553 * guile/scm-ports.c: New file.
12554 * guile/scm-pretty-print.c: New file.
12555 * guile/scm-safe-call.c: New file.
12556 * guile/scm-string.c: New file.
12557 * guile/scm-symbol.c: New file.
12558 * guile/scm-symtab.c: New file.
12559 * guile/scm-type.c: New file.
12560 * guile/scm-utils.c: New file.
12561 * guile/scm-value.c: New file.
12562 * guile/lib/gdb.scm: New file.
12563 * guile/lib/gdb/boot.scm: New file.
12564 * guile/lib/gdb/experimental.scm: New file.
12565 * guile/lib/gdb/init.scm: New file.
12566 * guile/lib/gdb/iterator.scm: New file.
12567 * guile/lib/gdb/printing.scm: New file.
12568 * guile/lib/gdb/types.scm: New file.
12569 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12570 (VPATH): Add $(GUILE_SRCDIR).
12571 (GUILE_DIR): New variable.
12572 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12573 (all): Add stamp-guile dependency.
12574 (stamp-guile): New rule.
12575 (clean-guile, install-guile, uninstall-guile): New rules.
12576 (install-only): Add install-guile dependency.
12577 (uninstall): Add uninstall-guile dependency.
12578 (clean): Add clean-guile dependency.
12580 2014-02-09 Doug Evans <xdje42@gmail.com>
12582 Revert this patch (which I approved, mea culpa).
12584 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12586 * Makefile.in (all-lib): Remove.
12587 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12589 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12591 Fix Python stack corruption.
12592 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12595 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12597 * Makefile.in (all-lib): Remove.
12598 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12600 2014-02-07 Doug Evans <dje@google.com>
12602 * extension-priv.h (extension_language_script_ops): Add comment.
12603 (extension_language_ops): Add comment.
12604 (active_ext_lang_state): Fix typo in comment.
12606 2014-02-07 Pedro Alves <palves@redhat.com>
12608 PR breakpoints/16292
12609 * infrun.c (handle_signal_stop) <signal arrives while stepping
12610 over a breakpoint>: Switch back to the stepping thread.
12612 2014-02-07 Yao Qi <yao@codesourcery.com>
12614 * target.c (target_xfer_partial): Return zero if LEN is zero.
12616 2014-02-07 Yao Qi <yao@codesourcery.com>
12618 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12619 (ld_so_xfer_auxv): Likewise.
12620 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12621 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12622 * corelow.c (core_xfer_partial): Likewise.
12623 * ctf.c (ctf_xfer_partial): Likewise.
12624 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12625 (darwin_xfer_partial): Likewise.
12626 * exec.c (exec_xfer_partial): Likewise.
12627 * gnu-nat.c (gnu_xfer_partial): Likewise.
12628 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12629 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12630 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12631 * linux-nat.c (linux_xfer_siginfo): Likewise.
12632 (linux_proc_xfer_spu): Likewise.
12633 * procfs.c (procfs_xfer_partial): Likewise.
12634 * record-full.c (record_full_xfer_partial): Likewise.
12635 (record_full_core_xfer_partial): Likewise.
12636 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12637 * remote.c (remote_write_qxfer): Likewise.
12638 (remote_write_qxfer, remote_read_qxfer): Likewise.
12639 (remote_xfer_partial): Likewise.
12640 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12641 (rs6000_xfer_shared_libraries): Likewise.
12642 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12643 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12644 (spu_xfer_partial): Likewise.
12645 * target.c (memory_xfer_partial_1): Likewise.
12646 * tracepoint.c (tfile_xfer_partial): Likewise.
12647 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12648 (windows_xfer_partial): Likewise.
12650 2014-02-07 Yao Qi <yao@codesourcery.com>
12652 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12654 (core_xfer_shared_libraries_aix): Likewise.
12655 * gdbarch.c, gdbarch.h: Regenerated.
12656 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12657 ULONGEST. Change 'len_avail' type to ULONGEST.
12658 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12659 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12661 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12663 2014-02-07 Yao Qi <yao@codesourcery.com>
12665 * corefile.c (memory_error): Get 'exception' from ERR and pass
12666 'exception' to throw_error.
12668 2014-02-06 Doug Evans <xdje42@gmail.com>
12670 * configure.ac (libpython checking): Remove all but python.o from
12671 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12672 * configure: Regenerate.
12674 * Makefile.in (SFILES): Add extension.c.
12675 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12676 (COMMON_OBS): Add extension.o.
12677 * extension.h: New file.
12678 * extension-priv.h: New file.
12679 * extension.c: New file.
12681 * python/python-internal.h: #include "extension.h".
12682 (gdbpy_auto_load_enabled): Declare.
12683 (gdbpy_apply_val_pretty_printer): Declare.
12684 (gdbpy_apply_frame_filter): Declare.
12685 (gdbpy_preserve_values): Declare.
12686 (gdbpy_breakpoint_cond_says_stop): Declare.
12687 (gdbpy_breakpoint_has_cond): Declare.
12688 (void source_python_script_for_objfile): Delete.
12689 * python/python.c: #include "extension-priv.h".
12690 Delete inclusion of "observer.h".
12691 (extension_language_python): Moved here and renamed from
12692 script_language_python in py-auto-load.c.
12693 Redefined to be of type extension_language_defn.
12694 (python_extension_script_ops): New global.
12695 (python_extension_ops): New global.
12696 (struct python_env): New member previous_active.
12697 (restore_python_env): Call restore_active_ext_lang.
12698 (ensure_python_env): Call set_active_ext_lang.
12699 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12701 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12703 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12705 (gdbpy_eval_from_control_command): Renamed from
12706 eval_python_from_control_command, made static. New arg extlang.
12707 (gdbpy_source_script) Renamed from source_python_script, made static.
12709 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12710 result to int. New arg extlang.
12711 (gdbpy_source_objfile_script): Renamed from
12712 source_python_script_for_objfile, made static. New arg extlang.
12713 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12714 static. New args extlang, extlang_printers. Change result type to
12716 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12717 static. New arg extlang. Rename arg printers to extlang_printers
12718 and change type to ext_lang_type_printers *.
12719 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12720 static. Replace argument arg with extlang, extlang_printers.
12721 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12722 (!HAVE_PYTHON, source_python_script): Delete.
12723 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12724 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12725 (!HAVE_PYTHON, start_type_printers): Delete.
12726 (!HAVE_PYTHON, apply_type_printers): Delete.
12727 (!HAVE_PYTHON, free_type_printers): Delete.
12728 (_initialize_python): Delete call to observer_attach_before_prompt.
12729 (finalize_python): Set/restore active extension language.
12730 (gdbpy_finish_initialization) Renamed from
12731 finish_python_initialization, made static. New arg extlang.
12732 (gdbpy_initialized): New function.
12733 * python/python.h: #include "extension.h". Delete #include
12734 "value.h", "mi/mi-cmds.h".
12735 (extension_language_python): Declare.
12736 (GDBPY_AUTO_FILE_NAME): Delete.
12737 (enum py_bt_status): Moved to extension.h and renamed to
12738 ext_lang_bt_status.
12739 (enum frame_filter_flags): Moved to extension.h.
12740 (enum py_frame_args): Moved to extension.h and renamed to
12741 ext_lang_frame_args.
12742 (finish_python_initialization): Delete.
12743 (eval_python_from_control_command): Delete.
12744 (source_python_script): Delete.
12745 (apply_val_pretty_printer): Delete.
12746 (apply_frame_filter): Delete.
12747 (preserve_python_values): Delete.
12748 (gdbpy_script_language_defn): Delete.
12749 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12750 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12752 * auto-load.c: #include "extension.h".
12753 (GDB_AUTO_FILE_NAME): Delete.
12754 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12755 (script_language_gdb): Delete, moved to extension.c and renamed to
12756 extension_language_gdb.
12757 (source_gdb_script_for_objfile): Delete.
12758 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12759 (loaded_script): Change type of language member to
12760 struct extension_language_defn *.
12761 (init_loaded_scripts_info): Initialize
12762 unsupported_script_warning_printed.
12763 (maybe_add_script): Make static. Change type of language arg to
12764 struct extension_language_defn *.
12765 (clear_section_scripts): Reset unsupported_script_warning_printed.
12766 (auto_load_objfile_script_1): Rewrite to use extension language API.
12767 (auto_load_objfile_script): Make public. Remove support-compiled-in
12768 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12769 (source_section_scripts): Rewrite to use extension language API.
12770 (load_auto_scripts_for_objfile): Rewrite to use
12771 auto_load_scripts_for_objfile.
12772 (collect_matching_scripts_data): Change type of language member to
12773 struct extension_language_defn *.
12774 (auto_load_info_scripts): Change type of language arg to
12775 struct extension_language_defn *.
12776 (unsupported_script_warning_print): New function.
12777 (script_not_found_warning_print): Make static.
12778 (_initialize_auto_load): Rewrite construction of scripts-directory
12780 * auto-load.h (struct objfile): Add forward decl.
12781 (struct script_language): Delete.
12782 (struct auto_load_pspace_info): Add forward decl.
12783 (struct extension_language_defn): Add forward decl.
12784 (maybe_add_script): Delete.
12785 (auto_load_objfile_script): Declare.
12786 (script_not_found_warning_print): Delete.
12787 (auto_load_info_scripts): Update prototype.
12788 (auto_load_gdb_scripts_enabled): Declare.
12789 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12790 auto_load_python_scripts_enabled and made public.
12791 (script_language_python): Delete, moved to python.c.
12792 (gdbpy_script_language_defn): Delete.
12793 (info_auto_load_python_scripts): Update to use
12794 extension_language_python.
12796 * breakpoint.c (condition_command): Replace call to
12797 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12798 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12799 with call to breakpoint_ext_lang_cond_says_stop.
12800 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12801 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12802 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12803 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12805 (local_setattro): Print name of extension language with existing
12808 * valprint.c (val_print, value_print): Update to call
12809 apply_ext_lang_val_pretty_printer.
12810 * cp-valprint.c (cp_print_value): Update call to
12811 apply_ext_lang_val_pretty_printer.
12812 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12813 (gdbpy_apply_val_pretty_printer): Renamed from
12814 apply_val_pretty_printer. New arg extlang.
12815 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12817 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12818 extension language API.
12819 * cli/cli-script.c (execute_control_command): Update to call
12820 eval_ext_lang_from_control_command.
12822 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12823 enum ext_lang_bt_status values. Update call to
12824 apply_ext_lang_frame_filter.
12825 (mi_cmd_stack_list_locals): Ditto.
12826 (mi_cmd_stack_list_args): Ditto.
12827 (mi_cmd_stack_list_variables): Ditto.
12828 * mi/mi-main.c: Delete #include "python/python-internal.h".
12829 Add #include "extension.h".
12830 (mi_cmd_list_features): Replace reference to python internal variable
12831 gdb_python_initialized with call to ext_lang_initialized_p.
12833 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12834 Update to use enum ext_lang_frame_args. Update to call
12835 apply_ext_lang_frame_filter.
12836 * python/py-framefilter.c (extract_sym): Update to use enum
12837 ext_lang_bt_status.
12838 (extract_value, py_print_type, py_print_value): Ditto.
12839 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12840 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12841 (py_print_frame): Ditto.
12842 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12843 New arg extlang. Update to use enum ext_lang_bt_status.
12845 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12846 finish_python_initialization. Replace with call to
12847 finish_ext_lang_initialization.
12849 * typeprint.c (do_free_global_table): Update to call
12850 free_ext_lang_type_printers.
12851 (create_global_typedef_table): Update to call
12852 start_ext_lang_type_printers.
12853 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12854 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12855 (type_print_options): Change type of global_printers from "void *"
12856 to "struct ext_lang_type_printers *".
12858 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12859 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12860 (gdbpy_preserve_values): Renamed from preserve_python_values.
12862 (!HAVE_PYTHON, preserve_python_values): Delete.
12864 * utils.c (quit_flag): Delete, moved to extension.c.
12865 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12868 * eval.c: Delete #include "python/python.h".
12869 * main.c: Delete #include "python/python.h".
12871 * defs.h: Update comment.
12873 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12877 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12879 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12882 2014-02-05 Yao Qi <yao@codesourcery.com>
12884 * remote.c (remote_pass_signals): Remove local 'buf' and use
12886 (remote_program_signals): Likewise.
12888 2014-02-05 Yao Qi <yao@codesourcery.com>
12890 * ctf.c: Include "inferior.h" and "gdbthread.h".
12891 (CTF_PID): A new macro.
12892 (ctf_open): Call inferior_appeared and add_thread_silent.
12893 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12894 (ctf_thread_alive): New function.
12895 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12897 2014-02-05 Yao Qi <yao@codesourcery.com>
12901 2013-05-24 Yao Qi <yao@codesourcery.com>
12903 * tracepoint.c (TFILE_PID): Remove.
12904 (tfile_open): Don't add thread and inferior.
12905 (tfile_close): Don't set 'inferior_ptid'. Don't call
12906 exit_inferior_silent.
12907 (tfile_thread_alive): Remove.
12908 (init_tfile_ops): Don't set field 'to_thread_alive' of
12911 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12913 * remote.c (remote_start_remote): Call remote_check_symbols even
12914 if only symbol-file (not file) has been given.
12916 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12918 * gdbarch.sh (skip_entrypoint): New callback.
12919 * gdbarch.c, gdbarch.h: Regenerate.
12920 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12921 * infrun.c (fill_in_stop_func): Likewise.
12922 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12923 (ppc_elfv2_elf_make_msymbol_special): New function.
12924 (ppc_elfv2_skip_entrypoint): Likewise.
12925 (ppc_linux_init_abi): Install them for ELFv2.
12927 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12929 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12930 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12931 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12932 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12933 structures returned in GPRs.
12935 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12937 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12938 offset to the stack parameter list for the ELFv2 ABI.
12940 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12942 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12943 set_gdbarch_convert_from_func_ptr_addr and
12944 set_gdbarch_elf_make_msymbol_special for ELFv1.
12945 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12946 function descriptors on ELFv1.
12947 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12948 set up r12 at function entry.
12950 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12952 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12953 (struct gdbarch_tdep): New member elf_abi.
12955 * rs6000-tdep.c: Include "elf/ppc64.h".
12956 (rs6000_gdbarch_init): Detect ELF ABI version.
12958 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12960 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12961 within a register pair holding a DFP 128-bit value on little-endian.
12962 (ppc64_sysv_abi_return_value_base): Likewise.
12963 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12964 (dfp_pseudo_register_write): Likewise.
12966 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12968 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12969 offset on little-endian when passing _Decimal32.
12970 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12972 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12974 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12975 of the overlapped FP register within the VSX register on little-
12977 (efpr_pseudo_register_write): Likewise.
12979 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12981 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12982 offset on little-endian when passing small structures.
12984 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12986 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12987 (struct ppc64_sysv_argpos): New data structure.
12988 (ppc64_sysv_abi_push_float): Remove.
12989 (ppc64_sysv_abi_push_val): New function.
12990 (ppc64_sysv_abi_push_integer): Likewise.
12991 (ppc64_sysv_abi_push_freg): Likewise.
12992 (ppc64_sysv_abi_push_vreg): Likewise.
12993 (ppc64_sysv_abi_push_param): Likewise.
12994 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12995 (ppc64_sysv_abi_return_value_base): New function.
12996 (ppc64_sysv_abi_return_value): Refactor to use it.
12998 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13000 * NEWS: Document new target powerpc64le-*-linux*.
13002 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13004 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13005 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13007 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13008 register set used in ELF core dumps. Add floating-point register set.
13010 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13012 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13013 dwarf2_to_gdb[] table using symbolic constants. Adjust
13014 penultimate entry from number representing the PC register
13015 to symbolic constant representing the MDR register. Add
13016 constant for the PC register to the end of the table.
13018 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13020 * bsd-kvm.c: Include <sys/param.h>
13022 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13024 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13026 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13028 * ada-lang.h (clear_ada_sym_cache): Delete.
13030 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13032 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13034 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13036 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13037 the sigreturn register save area only if the syscall is
13040 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13042 * valops.c (value_slice): Minor reformatting.
13044 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13046 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13048 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13050 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13051 New static globals.
13052 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13053 (ada_ignore_descriptive_types_p): New static global.
13054 (find_parallel_type_by_descriptive_type): Return immediately
13055 if ada_ignore_descriptive_types_p is set.
13056 (_initialize_ada_language): Register new commands "maintenance
13057 set ada", "maintenance show ada", "maintenance set ada
13058 ignore-descriptive-types" and "maintenance show ada
13059 ignore-descriptive-types".
13060 * NEWS: Add entry for new "maint ada set/show
13061 ignore-descriptive-types" commands.
13063 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13065 * record-btrace.c (record_btrace_close): Call btrace_teardown
13068 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13070 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13073 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13075 * ada-typeprint (type_is_full_subrange_of_target_type):
13077 (print_range): Add parameter bounds_prefered_p. If not set,
13078 try printing range types using the name of their base type.
13079 (print_range_type): Add parameter bounds_prefered_p.
13080 Use it in call to print_range.
13081 (print_array_type, ada_print_type): Update calls to print_range
13082 and print_range_type.
13084 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13086 * ada-typeprint.c (print_array_type, print_choices, print_range)
13087 (print_range_bound, print_dynamic_range_bound, print_range_type):
13088 Remove declaration.
13090 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13092 * ada-typeprint.c (print_range): Add missing empty line
13093 after local declaration.
13095 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13097 * ada-valprint.c (print_optional_low_bound): Get index_type's
13098 target type for as long as it is a TYPE_CODE_RANGE.
13100 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13102 * procfs.c (procfs_make_note_section): Remove assertion and
13103 associated comment.
13105 2014-01-24 Yao Qi <yao@codesourcery.com>
13107 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13108 * corelow.c (get_core_siginfo): Likewise.
13110 2014-01-24 Yao Qi <yao@codesourcery.com>
13112 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13113 ULONGEST. Don't check 'len' is negative.
13114 (remote_write_bytes): Change type of 'len' to ULONGEST.
13116 2014-01-23 Tom Tromey <tromey@redhat.com>
13119 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13120 Handle exception from frame.block.
13121 (FrameVars.fetch_frame_locals): Likewise.
13123 2014-01-23 Tom Tromey <tromey@redhat.com>
13126 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13127 on a NULL pointer. Move "goto error" to correct place.
13129 2014-01-23 Tom Tromey <tromey@redhat.com>
13132 * python/py-framefilter.c (apply_frame_filter): Call
13133 ensure_python_env after computing gdbarch.
13135 2014-01-23 Yao Qi <yao@codesourcery.com>
13137 * target.c (raw_memory_xfer_partial): Change argument type
13138 from void * to gdb_byte *.
13139 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13141 2014-01-22 Doug Evans <dje@google.com>
13143 New gdbserver option --debug-format=timestamp.
13144 * NEWS: Mention it.
13146 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13148 * syscalls/s390x-linux.xml: New file.
13149 * syscalls/s390-linux.xml: New file.
13150 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13151 (XML_SYSCALL_FILENAME_S390X): Likewise.
13152 (op_svc): New enum value for SVC opcode.
13153 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13154 (s390_linux_get_syscall_number): New function.
13155 (s390_gdbarch_init): Register '*get_syscall_number' and the
13156 syscall xml file name.
13157 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13158 "s390-linux.xml" and "s390x-linux.xml".
13159 * NEWS: Announce new feature.
13161 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13163 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13165 2014-01-22 Pedro Alves <palves@redhat.com>
13167 * xtensa-config.c: Include defs.h.
13169 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13171 * common/common-utils.h: Add "ARI:" comment beside __func__
13174 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13176 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13177 documentation a bit.
13179 2014-01-21 Roland McGrath <mcgrathr@google.com>
13181 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13182 * configure: Regenerate.
13183 * aclocal.m4: Regenerate.
13184 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13185 New substituted variables.
13186 (install-strip): New target.
13187 (INSTALL_SCRIPT): New substituted variable.
13188 (FLAGS_TO_PASS): Add it.
13189 (install-only): Use $(INSTALL_SCRIPT) rather than
13190 $(INSTALL_PROGRAM) for gcore.
13192 2014-01-20 Tom Tromey <tromey@redhat.com>
13194 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13197 2014-01-20 Tom Tromey <tromey@redhat.com>
13199 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13200 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13201 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13202 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13203 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13204 (struct cmd_list_element) <flags>: Remove.
13205 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13206 doc_allocated>: New fields.
13207 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13209 * maint.c (maintenance_do_deprecate): Update.
13210 * top.c (execute_command): Update.
13212 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13214 * xtensa-linux-nat.c: Include asm/ptrace.h.
13216 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13218 * Makefile.in (SFILES): Add d-support.c.
13219 (COMMON_OBS): Add d-support.o.
13220 * d-lang.h (d_parse_symbol): Add comment, now defined in
13222 * d-lang.c (parse_call_convention)
13223 (parse_attributes, parse_function_types)
13224 (parse_function_args, parse_type, parse_identifier)
13225 (call_convention_p, d_parse_symbol): Move functions to ...
13226 * d-support.c: ... New file.
13228 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13230 * d-lang.h (d_parse_symbol): Add declaration.
13231 * d-lang.c (extract_identifiers)
13232 (extract_type_info): Remove functions.
13233 (parse_call_convention, parse_attributes)
13234 (parse_function_types, parse_function_args)
13235 (parse_type, parse_identifier, call_convention_p)
13236 (d_parse_symbol): New functions.
13237 (d_demangle): Use d_parse_symbol to demangle D symbols.
13239 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13241 * d-lang.h (struct builtin_d_type): New data type.
13242 (builtin_d_type): Add declaration.
13243 * d-lang.c (d_language_arch_info, build_d_types)
13244 (builtin_d_type): New functions.
13245 (enum d_primitive_types): New data type.
13246 (d_language_defn): Change c_language_arch_info to
13247 d_language_arch_info.
13248 (d_type_data): New static variable.
13249 (_initialize_d_language): Initialize d_type_data.
13251 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13253 * d-lang.h (d_main_name): Add declaration.
13254 * d-lang.c (d_main_name): New function.
13255 * symtab.c (find_main_name): Add call to d_main_name.
13257 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13259 * d-lang.c (d_language_defn): Change macro_expansion_c to
13260 macro_expansion_no.
13262 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13264 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13266 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13268 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13269 gdb_exception" declaration.
13270 * remote.c (getpkt_or_notif_sane): Likewise.
13272 2014-01-17 Doug Evans <dje@google.com>
13274 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13275 function, contents of dirnames_to_char_ptr_vec_append moved here.
13276 (delim_string_to_char_ptr_vec): New function.
13277 (dirnames_to_char_ptr_vec_append): Rewrite.
13278 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13280 2014-01-17 Doug Evans <dje@google.com>
13282 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13284 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13285 #include "common-utils.h".
13286 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13287 * common/vec.h (VEC_ASSERT_PASS): Update.
13288 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13289 (MACH_CHECK_ERROR): Update.
13291 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13293 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13295 * gdbarch.h: Regenerate.
13297 2014-01-16 Tom Tromey <tromey@redhat.com>
13299 * value.c (struct value) <regnum>: Move earlier.
13301 2014-01-16 Tom Tromey <tromey@redhat.com>
13303 * remote.c (extended_remote_create_inferior): Rename from
13304 extended_remote_create_inferior_1. Add "ops" argument. Remove
13305 old implementation.
13307 2014-01-16 Pedro Alves <palves@redhat.com>
13309 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13310 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13313 2014-01-16 Doug Evans <dje@google.com>
13315 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13317 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13319 * btrace.h (btrace_thread_flag): New.
13320 (struct btrace_thread_info) <flags>: New.
13321 * record-btrace.c (record_btrace_resume_thread)
13322 (record_btrace_find_thread_to_move, btrace_step_no_history)
13323 (btrace_step_stopped, record_btrace_start_replaying)
13324 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13325 (record_btrace_find_resume_thread): New.
13326 (record_btrace_resume, record_btrace_wait): Extend.
13327 (record_btrace_can_execute_reverse): New.
13328 (record_btrace_open): Fail in non-stop mode.
13329 (record_btrace_set_replay): Split into this, ...
13330 (record_btrace_stop_replaying): ... this, ...
13331 (record_btrace_clear_histories): ... and this.
13332 (init_record_btrace_ops): Init to_can_execute_reverse.
13333 * NEWS: Announce it.
13335 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13337 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13338 (forward_target_decr_pc_after_break)
13339 (target_decr_pc_after_break): New.
13340 * target.c (forward_target_decr_pc_after_break)
13341 (target_decr_pc_after_break): New.
13342 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13343 instead of gdbarch_decr_pc_after_break.
13344 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13345 instead of gdbarch_decr_pc_after_break.
13346 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13347 instead of gdbarch_decr_pc_after_break.
13348 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13349 instead of gdbarch_decr_pc_after_break.
13350 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13351 instead of gdbarch_decr_pc_after_break.
13352 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13353 instead of gdbarch_decr_pc_after_break.
13355 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13357 * btrace.c: Include regcache.h.
13358 (btrace_add_pc): New.
13359 (btrace_enable): Call btrace_add_pc.
13360 (btrace_is_empty): New.
13361 * btrace.h (btrace_is_empty): New.
13362 * record-btrace.c (require_btrace, record_btrace_info): Call
13365 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13367 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13368 Support delta reads.
13369 (linux_disable_btrace): Change return type.
13370 * common/linux-btrace.h (linux_read_btrace): Change parameters
13371 and return type to allow error reporting. Update users.
13372 (linux_disable_btrace): Change return type. Update users.
13373 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13375 (btrace_error): New.
13376 (btrace_block) <begin>: Comment on BEGIN == 0.
13377 * btrace.c (btrace_compute_ftrace): Start from the end of
13379 (btrace_stitch_trace, btrace_clear_history): New.
13380 (btrace_fetch): Read delta trace, return if replaying.
13381 (btrace_clear): Move clear history code to btrace_clear_history.
13382 (parse_xml_btrace): Throw an error if parsing failed.
13383 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13384 and return type to allow error reporting.
13385 (target_read_btrace): Change parameters and return type to allow
13387 * target.c (target_read_btrace): Update.
13388 * remote.c (remote_read_btrace): Support delta reads. Pass
13390 * NEWS: Announce it.
13392 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13394 * record.h (record_btrace_frame_unwind)
13395 (record_btrace_tailcall_frame_unwind): New declarations.
13396 * dwarf2-frame: Include record.h
13397 (dwarf2_frame_cfa): Throw an error for btrace frames.
13398 * record-btrace.c: Include hashtab.h.
13399 (btrace_get_bfun_name): New.
13400 (btrace_call_history): Call btrace_get_bfun_name.
13401 (struct btrace_frame_cache): New.
13403 (bfcache_hash, bfcache_eq, bfcache_new): New.
13404 (btrace_get_frame_function): New.
13405 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13406 (record_btrace_frame_this_id): Compute own id.
13407 (record_btrace_frame_prev_register): Provide PC, throw_error
13408 for all other registers.
13409 (record_btrace_frame_sniffer): Detect btrace frames.
13410 (record_btrace_tailcall_frame_sniffer): New.
13411 (record_btrace_frame_dealloc_cache): New.
13412 (record_btrace_frame_unwind): Add new functions.
13413 (record_btrace_tailcall_frame_unwind): New.
13414 (_initialize_record_btrace): Allocate cache.
13415 * btrace.c (btrace_clear): Call reinit_frame_cache.
13416 * NEWS: Announce it.
13418 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13420 * record-btrace.c (record_btrace_set_replay)
13421 (record_btrace_goto_begin, record_btrace_goto_end)
13422 (record_btrace_goto): New.
13423 (init_record_btrace_ops): Initialize them.
13424 * NEWS: Announce it.
13426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13428 * record-btrace.c (record_btrace_find_new_threads)
13429 (record_btrace_thread_alive): New.
13430 (init_record_btrace_ops): Initialize to_find_new_threads and
13433 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13435 * record-btrace.c (record_btrace_resume): New.
13436 (record_btrace_wait): New.
13437 (init_record_btrace_ops): Initialize to_wait and to_resume.
13439 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13441 * record-btrace.c (record_btrace_xfer_partial)
13442 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13443 (record_btrace_allow_memory_access): New.
13444 (init_record_btrace_ops): Initialize new methods.
13445 * target.c (raw_memory_xfer_partial): Bail out if target reports
13446 that this memory is not available.
13448 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13450 * target.h (target_ops) <to_insert_breakpoint>
13451 <to_remove_breakpoint>: Add target_ops parameter.
13452 (forward_target_insert_breakpoint): New.
13453 (forward_target_remove_breakpoint): New.
13454 (memory_remove_breakpoint, memory_insert_breakpoint):
13455 Add target_ops parameter.
13456 * target.c (target_insert_breakpoint): Split into this and ...
13457 (forward_target_insert_breakpoint): ... this.
13458 (target_remove_breakpoint): Split into this and ...
13459 (forward_target_remove_breakpoint): ... this.
13460 (debug_to_insert_breakpoint): Add target_ops parameter.
13461 Call forward_target_insert_breakpoint.
13462 (debug_to_remove_breakpoint): Add target_ops parameter.
13463 Call forward_target_remove_breakpoint.
13464 (update_current_target): Do not inherit or default to_insert_breakpoint
13465 and to_remove_breakpoint.
13466 * corelow.c (ignore): Add target_ops parameter.
13467 * exec.c (ignore): Add target_ops parameter.
13468 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13469 Add target_ops parameter.
13470 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13471 Add target_ops parameter.
13472 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13473 Add target_ops parameter.
13474 * record-full.c (record_full_beneath_to_insert_breakpoint)
13475 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13476 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13477 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13478 (record_full_core_remove_breakpoint): Add target_ops parameter.
13480 (record_full_beneath_to_insert_breakpoint_ops)
13481 (record_full_beneath_to_remove_breakpoint_ops)
13482 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13483 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13484 tmp_to_remove_breakpoint_ops,
13485 record_full_beneath_to_insert_breakpoint_ops, and
13486 record_full_beneath_to_remove_breakpoint_ops.
13487 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13488 (m32r_remove_breakpoint): Add target_ops parameter.
13489 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13490 Add target_ops parameter.
13491 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13492 Add target_ops parameter.
13494 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13495 Markus Metzger <markus.t.metzger@intel.com>
13497 * record-btrace.c: Include frame-unwind.h.
13498 (record_btrace_frame_unwind_stop_reason)
13499 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13500 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13502 (init_record_btrace_ops): Install it.
13504 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13506 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13509 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13511 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13514 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13516 * frame-unwind.c: Include target.h.
13517 (frame_unwind_try_unwinder): New function with code from ...
13518 (frame_unwind_find_by_frame): ... here. New variable
13519 unwinder_from_target, call also target_get_unwinder)
13520 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13521 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13522 * target.h (struct target_ops): New fields to_get_unwinder and
13523 to_get_tailcall_unwinder.
13524 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13528 * record-btrace.c (record_btrace_fetch_registers)
13529 (record_btrace_store_registers)
13530 (record_btrace_to_prepare_to_store): New.
13531 (init_record_btrace_ops): Add the above.
13533 2014-01-16 Tom Tromey <tromey@redhat.com>
13535 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13536 * target.h (struct target_ops) <to_prepare_to_store>: Add
13538 (target_prepare_to_store): Add argument.
13539 * target.c (debug_to_prepare_to_store): Add argument.
13540 (update_current_target): Update.
13541 * remote.c (remote_prepare_to_store): Add 'self' argument.
13542 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13543 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13544 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13545 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13547 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13548 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13549 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13550 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13551 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13555 * btrace.h (replay) <replay>: New.
13556 (btrace_is_replaying): New.
13557 * btrace.c (btrace_clear): Free replay iterator.
13558 (btrace_is_replaying): New.
13559 * record-btrace.c (record_btrace_is_replaying): New.
13560 (record_btrace_info): Print insn number if replaying.
13561 (record_btrace_insn_history): Start at replay position.
13562 (record_btrace_call_history): Start at replay position.
13563 (init_record_btrace_ops): Init to_record_is_replaying.
13565 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13567 * record-btrace.c (record_btrace_insn_history_range): Include
13569 (record_btrace_insn_history_from): Adjust range.
13570 (record_btrace_call_history_range): Include
13572 (record_btrace_call_history_from): Adjust range.
13573 * NEWS: Announce changes.
13575 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13577 * record.h (enum record_print_flag)
13578 <record_print_indent_calls>: New.
13579 * record.c (get_call_history_modifiers): Recognize /c modifier.
13580 (_initialize_record): Document /c modifier.
13581 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13582 Reorder fields. Optionally indent the function name. Update
13584 * NEWS: Announce changes.
13586 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13588 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13592 * btrace.c (ftrace_new_function): Start counting at one.
13593 * record-btrace.c (record_btrace_info): Adjust number of calls
13595 * NEWS: Announce it.
13597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13599 * record-btrace.c (btrace_call_history_insn_range): Print
13600 insn range as [begin, end].
13602 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13604 * btrace.h (struct btrace_func_link): New.
13605 (enum btrace_function_flag): New.
13606 (struct btrace_inst): Rename to ...
13607 (struct btrace_insn): ...this. Update all users.
13608 (struct btrace_func) <ibegin, iend>: Remove.
13609 (struct btrace_func_link): New.
13610 (struct btrace_func): Rename to ...
13611 (struct btrace_function): ...this. Update all users.
13612 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13613 (number, level, flags>: New.
13614 (struct btrace_insn_iterator): Rename to ...
13615 (struct btrace_insn_history): ...this.
13617 (struct btrace_insn_iterator, btrace_call_iterator): New.
13618 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13619 (struct btrace_target_info) <begin, end, level>
13620 <insn_history, call_history>: New.
13621 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13622 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13623 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13624 (btrace_call_number, btrace_call_begin, btrace_call_end)
13625 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13626 (btrace_find_function_by_number, btrace_set_insn_history)
13627 (btrace_set_call_history): New.
13628 * btrace.c (btrace_init_insn_iterator)
13629 (btrace_init_func_iterator, compute_itrace): Remove.
13630 (ftrace_print_function_name, ftrace_print_filename)
13631 (ftrace_skip_file): Change
13632 parameter to const.
13633 (ftrace_init_func): Remove.
13634 (ftrace_debug): Use new btrace_function fields.
13635 (ftrace_function_switched): Also consider gaining and
13636 losing symbol information).
13637 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13638 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13639 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13641 (ftrace_new_function): Move. Remove debug print.
13642 (ftrace_update_lines, ftrace_update_insns): New.
13643 (ftrace_update_function): Check for call, ret, and jump.
13644 (compute_ftrace): Renamed to ...
13645 (btrace_compute_ftrace): ...this. Rewritten to compute call
13647 (btrace_fetch, btrace_clear): Updated.
13648 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13649 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13650 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13651 (btrace_call_number, btrace_call_begin, btrace_call_end)
13652 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13653 (btrace_find_function_by_number, btrace_set_insn_history)
13654 (btrace_set_call_history): New.
13655 * record-btrace.c (require_btrace): Use new btrace thread
13657 (record_btrace_info, btrace_insn_history)
13658 (record_btrace_insn_history, record_btrace_insn_history_range):
13659 Use new btrace thread info fields and new iterator.
13660 (btrace_func_history_src_line): Rename to ...
13661 (btrace_call_history_src_line): ...this. Use new btrace
13662 thread info fields.
13663 (btrace_func_history): Rename to ...
13664 (btrace_call_history): ...this. Use new btrace thread info
13665 fields and new iterator.
13666 (record_btrace_call_history, record_btrace_call_history_range):
13667 Use new btrace thread info fields and new iterator.
13669 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13671 * frame.h (frame_id_build_unavailable_stack_special): New.
13672 * frame.c (frame_id_build_unavailable_stack_special): New.
13674 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13676 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13677 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13678 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13680 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13681 (i386_insn_is_jump, i386_jmp_p): New.
13682 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13683 insn_is_jump to gdbarch.
13684 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13685 * gdbarch.h: Regenerated.
13686 * gdbarch.c: Regenerated.
13687 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13688 (default_insn_is_jump): New.
13689 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13690 (default_insn_is_jump): New.
13692 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13694 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13696 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13697 (btrace_read_type) <btrace_read_new>: Change to ...
13698 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13700 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13702 * common/linux-btrace.c (linux_read_btrace): Free trace from
13703 previous iteration.
13705 2014-01-15 Doug Evans <dje@google.com>
13707 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13710 2014-01-15 Tom Tromey <tromey@redhat.com>
13712 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13713 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13714 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13715 (set_objfile_main_name): New function.
13716 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13717 language_of_main>: New fields.
13718 (set_objfile_main_name): Declare.
13719 * symtab.c (find_main_name): Loop over objfiles to find the main
13721 (set_main_name): Now static.
13722 (get_main_info): Add comment.
13723 * symtab.h (set_main_name): Don't declare.
13725 2014-01-15 Tom Tromey <tromey@redhat.com>
13727 * symtab.c (main_progspace_key): New global.
13728 (struct main_info): New.
13729 (name_of_main, language_of_main): Remove.
13730 (get_main_info, main_info_cleanup): New function.
13731 (set_main_name, main_name, main_language): Use get_main_info.
13732 (_initialize_symtab): Initialize main_progspace_key.
13734 2014-01-15 Tom Tromey <tromey@redhat.com>
13736 * dbxread.c (process_one_symbol): Update.
13737 * dwarf2read.c (read_partial_die): Update.
13738 * symfile.c (set_initial_language): Call main_language.
13739 * symtab.c (language_of_main): Now static.
13740 (set_main_name): Add 'lang' parameter.
13741 (find_main_name): Update.
13742 (main_language): New function.
13743 (symtab_observer_executable_changed): Update.
13744 * symtab.h (set_main_name): Update.
13745 (language_of_main): Remove.
13746 (main_language): Declare.
13748 2014-01-15 Tom Tromey <tromey@redhat.com>
13750 * symfile.c (init_entry_point_info): Use new "initialized" field.
13752 * objfiles.h (struct entry_point) <initialized>: New field.
13753 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13754 (struct objfile) <ei>: ...here. Remove.
13755 * objfiles.c (entry_point_address_query): Update.
13757 2014-01-15 Tom Tromey <tromey@redhat.com>
13759 * objfiles.c (entry_point_address_query): Relocate entry point
13761 (objfile_relocate1): Do not relocate entry point address.
13762 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13763 <the_bfd_section_index>: New field.
13764 * symfile.c (init_entry_point_info): Find the entry point's
13767 2014-01-15 Tom Tromey <tromey@redhat.com>
13769 * solib-frv.c (enable_break): Use entry_point_address_query.
13771 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13773 * NEWS: Add note on improved process record-replay on
13774 arm*-linux* targets.
13776 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13778 * arm-tdep.c (enum arm_record_result): New enum.
13779 (arm_record_unsupported_insn): New function.
13780 (arm_record_coproc_data_proc): Removed.
13781 (thumb2_record_ld_st_multiple): New function.
13782 (thumb2_record_ld_st_dual_ex_tbb): New function.
13783 (thumb2_record_data_proc_sreg_mimm): New function.
13784 (thumb2_record_ps_dest_generic): New function.
13785 (thumb2_record_branch_misc_cntrl): New function.
13786 (thumb2_record_str_single_data): New function.
13787 (thumb2_record_ld_mem_hints): New function.
13788 (thumb2_record_ld_word): New function.
13789 (thumb2_record_lmul_lmla_div): New function.
13790 (thumb2_record_decode_insn_handler): New function.
13791 (decode_insn): Add thumb32 instruction handlers.
13793 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13795 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13796 (struct arm_linux_record_tdep): Declare.
13797 (arm_canonicalize_syscall): New function.
13798 (arm_all_but_pc_registers_record): New function.
13799 (arm_linux_syscall_record): New function.
13800 (arm_linux_init_abi): Add syscall recording constructs.
13801 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13802 decoding. (arm_record_coproc_data_proc): Update arm syscall
13804 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13805 <arm_syscall_record>: New field.
13806 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13809 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13811 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13812 register for push instruction recording.
13814 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13816 * arm-tdep.c (thumb_record_misc): Update to correct logical
13817 error while recording ldm, ldmia and pop instructions.
13819 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13821 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13823 2014-01-15 Pedro Alves <palves@redhat.com>
13825 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13826 (go32_resume, go32_fetch_registers, store_register)
13827 (go32_store_registers, go32_prepare_to_store)
13828 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13829 (go32_create_inferior, go32_can_run, go32_terminal_init)
13830 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13833 2014-01-15 Tom Tromey <tromey@redhat.com>
13835 * target.h (async_callback_ftype): New typedef.
13836 (struct target_ops) <to_async>: Use it.
13838 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13840 * python/py-value.c (get_field_type): Remove unnecessary curly
13841 braces for single-statement if block.
13843 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13845 * python/py-type.c (convert_field): Add missing empty line
13846 after declarations.
13848 2014-01-14 Doug Evans <dje@google.com>
13850 * symfile.h (expand_symtabs_matching): Renamed from
13851 expand_partial_symbol_names. Update prototype.
13852 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13853 * symfile.c (expand_symtabs_matching): Renamed from
13854 expand_partial_symbol_names. New args file_matcher, kind.
13855 Rename arg fun to symbol_matcher.
13856 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13857 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13858 ada_expand_partial_symbol_name.
13859 (ada_make_symbol_completion_list): Update to call
13860 expand_symtabs_matching.
13861 (ada_add_global_exceptions): Call expand_symtabs_matching.
13862 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13863 call map_symbol_filenames.
13864 * symtab.c (sources_info): Update to call map_symbol_filenames.
13865 (search_symbols): Call expand_symtabs_matching.
13866 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13867 (default_make_symbol_completion_list_break_on): Update to call
13868 expand_symtabs_matching.
13869 (make_source_files_completion_list): Update to call
13870 map_symbol_filenames.
13872 2014-01-14 Doug Evans <dje@google.com>
13874 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13875 (expand_symtabs_symbol_matcher_ftype): New typedef.
13876 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13877 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13878 * symfile.c (expand_partial_symbol_names): Update to use
13879 expand_symtabs_symbol_matcher_ftype.
13880 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13881 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13882 Arg name_matcher renamed to symbol_matcher.
13883 * psymtab.c (recursively_search_psymtabs): Update to use
13884 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13886 (expand_symtabs_matching_via_partial): Update to use
13887 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13888 Arg name_matcher renamed to symbol_matcher.
13890 2014-01-14 Doug Evans <dje@google.com>
13892 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13893 (map_partial_symbol_filenames): Ditto.
13894 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13895 (map_partial_symbol_filenames): Ditto.
13896 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13897 (map_partial_symbol_filenames): Ditto.
13898 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13899 (map_partial_symbol_filenames): Ditto.
13900 * symtab.c: Delete #include "psymtab.h".
13902 2014-01-14 Pedro Alves <palves@redhat.com>
13903 Tom Tromey <tromey@redhat.com>
13905 * infrun.c (use_displaced_stepping): Use find_record_target
13906 instead of RECORD_IS_USED.
13907 (adjust_pc_after_break): Use record_full_is_used instead of
13909 * record-btrace.c (record_btrace_open): Call record_preopen
13910 instead of checking RECORD_IS_USED.
13911 * record-full.c (record_full_shortname)
13912 (record_full_core_shortname): New globals.
13913 (record_full_is_used): New function.
13914 (find_full_open): Call record_preopen instead of checking
13916 (init_record_full_ops): Set the target's shortname to
13917 record_full_shortname.
13918 (init_record_full_core_ops): Set the target's shortname to
13919 record_full_core_shortname.
13920 * record-full.h (record_full_is_used): Declare.
13921 * record.c (find_record_target): Make extern.
13922 (record_preopen): New function.
13923 * record.h (RECORD_IS_USED): Delete macro.
13924 (find_record_target, record_preopen): Declare functions.
13926 2014-01-14 Yao Qi <yao@codesourcery.com>
13928 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13929 'len''s type to ULONGEST.
13930 (core_xfer_shared_libraries_aix): Likewise.
13931 * gdbarch.c, gdbarch.h: Regenerated.
13932 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13933 Change type of 'len' to ULONGEST.
13934 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13935 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13937 2014-01-14 Yao Qi <yao@codesourcery.com>
13939 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13940 type of 'len' to ULONGEST.
13941 (linux_xfer_osdata_processgroups): Likewise.
13942 (linux_xfer_osdata_threads): Likewise.
13943 (linux_xfer_osdata_fds): Likewise.
13944 (linux_xfer_osdata_isockets): Likewise.
13945 (linux_xfer_osdata_shm): Likewise.
13946 (linux_xfer_osdata_sem): Likewise.
13947 (linux_xfer_osdata_msg): Likewise.
13948 (linux_common_xfer_osdata): Likewise.
13949 (struct osdata_type) <getter>: Likewise.
13950 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13953 2014-01-14 Yao Qi <yao@codesourcery.com>
13955 * target.h (target_xfer_partial_ftype): Update.
13956 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13958 * aix-thread.c (aix_thread_xfer_partial): Change type of
13959 argument 'len' to ULONGEST.
13960 * auxv.c (procfs_xfer_auxv): Likewise.
13961 (ld_so_xfer_auxv): Likewise.
13962 (memory_xfer_auxv): Likewise.
13963 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13964 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13965 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13966 * corelow.c (core_xfer_partial): Likewise.
13967 * ctf.c (ctf_xfer_partial): Likewise.
13968 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13970 (darwin_read_dyld_info): Likewise.
13971 (darwin_xfer_partial): Likewise.
13972 * exec.c (section_table_xfer_memory_partial): Likewise.
13973 (exec_xfer_partial): Likewise.
13974 * exec.h (section_table_xfer_memory_partial): Update
13976 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13977 instead of plongest.
13978 (gnu_xfer_partial): Likewise.
13979 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13980 (ia64_hpux_xfer_solib_got): Likewise.
13981 (ia64_hpux_xfer_partial): Likewise.
13982 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13983 * inf-ptrace.c (inf_ptrace_xfer_partial):
13984 * inf-ttrace.c (inf_ttrace_xfer_partial):
13985 * linux-nat.c (linux_xfer_siginfo): Likewise.
13986 (linux_nat_xfer_partial): Likewise.
13987 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13988 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13989 * monitor.c (monitor_xfer_memory): Likewise.
13990 (monitor_xfer_partial): Likewise.
13991 * procfs.c (procfs_xfer_partial): Likewise.
13992 * record-full.c (record_full_xfer_partial): Likewise.
13993 (record_full_core_xfer_partial): Likewise.
13994 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13995 instead of plongest.
13996 (gdbsim_xfer_partial): Likewise.
13997 * remote.c (remote_xfer_partial): Likewise.
13998 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13999 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14001 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14002 (rs6000_xfer_shared_libraries): Likewise.
14003 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14004 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14005 (sparc_xfer_partial): Likewise.
14006 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14007 (spu_xfer_partial): Likewise.
14008 * spu-multiarch.c (spu_xfer_partial): Likewise.
14009 * target.c (target_read_live_memory): Likewise.
14010 (memory_xfer_live_readonly_partial): Likewise.
14011 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14012 (target_xfer_partial, default_xfer_partial): Likewise.
14013 (current_xfer_partial): Likewise.
14014 * tracepoint.c (tfile_xfer_partial): Likewise.
14015 * windows-nat.c (windows_xfer_memory): Likewise. Call
14016 pulongest instead of plongest.
14017 (windows_xfer_partial): Likewise.
14018 (windows_xfer_shared_libraries): Likewise.
14020 2014-01-14 Yao Qi <yao@codesourcery.com>
14022 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14023 target_xfer_partial_ftype.
14025 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14029 * valops.c (value_struct_elt_bitpos): New function
14030 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14031 object to 'None' if the field name is an empty string ("").
14032 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14033 attribute to look for a field when 'name' is 'None'.
14034 (get_field_type): New function
14036 2014-01-13 Doug Evans <dje@google.com>
14039 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14040 (try_open_dwop_file): Ditto.
14041 * gdb_bfd.c: #include "vec.h".
14042 (bfdp): New typedef.
14043 (struct gdb_bfd_data): New member included_bfds.
14044 (gdb_bfd_unref): Unref all included bfds.
14045 (gdb_bfd_record_inclusion): New function.
14046 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14048 2014-01-13 Tom Tromey <tromey@redhat.com>
14050 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14052 2014-01-13 Tom Tromey <tromey@redhat.com>
14054 * defs.h (use_windows): Remove.
14055 * gdb.c (main): Update.
14056 * main.c (captured_main, gdb_main): Update.
14057 * main.h (struct captured_main_args) <use_windows>: Remove.
14058 * top.c (use_windows): Remove.
14060 2014-01-13 Tom Tromey <tromey@redhat.com>
14062 * defs.h (deprecated_flush_hook): Remove.
14064 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14067 * linux-thread-db.c (try_thread_db_load): Add parameter
14068 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14069 (try_thread_db_load_from_pdir_1): Move it there from here.
14070 (try_thread_db_load_from_sdir): Update caller.
14071 (try_thread_db_load_from_dir): Move it there from here.
14073 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14075 * regformats/regdat.sh: Always rewrite the register file.
14077 2014-01-13 Pedro Alves <palves@redhat.com>
14079 * Makefile.in (CHECK_HEADERS): New variable.
14080 (check-headers:): New rule.
14082 2014-01-13 Tom Tromey <tromey@redhat.com>
14084 * cli/cli-setshow.c (do_set_command): Update.
14085 * defs.h (deprecated_set_hook): Remove.
14086 * top.c (deprecated_set_hook): Remove.
14088 2014-01-13 Pedro Alves <palves@redhat.com>
14090 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14091 the tracepoint if the PC is a pseudo-register.
14093 2014-01-13 Tom Tromey <tromey@redhat.com>
14095 * defs.h (XCALLOC): Remove.
14096 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14097 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14098 * dwarf2loc.c (allocate_piece_closure): Likewise.
14099 * elfread.c (elf_symfile_segments): Likewise.
14100 (elf_symfile_segments): Likewise.
14101 * gdbtypes.c (copy_type_recursive): Likewise.
14102 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14103 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14104 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14106 * mt-tdep.c (mt_gdbarch_init): Likewise.
14107 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14109 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14110 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14111 * registry.c (registry_alloc_data): Likewise.
14112 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14113 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14114 * serial.c (serial_fdopen_ops): Likewise.
14115 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14117 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14118 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14121 2014-01-13 Tom Tromey <tromey@redhat.com>
14123 * defs.h (XMALLOC): Remove.
14124 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14125 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14126 * cli-out.c (struct ui_out *): Likewise.
14127 * cli/cli-dump.c (add_dump_command): Likewise.
14128 (add_dump_command): Likewise.
14129 * complaints.c (get_complaints): Likewise.
14130 (find_complaint): Likewise.
14131 * dwarf2-frame.c (execute_cfa_program): Likewise.
14132 * dwarf2read.c (abbrev_table_read_table): Likewise.
14133 * gdbarch.sh: Likewise.
14134 * gdbarch.c: Rebuild.
14135 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14136 * interps.c (interp_new): Likewise.
14137 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14138 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14139 * mi/mi-console.c (mi_console_file_new): Likewise.
14140 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14141 * mi/mi-out.c (mi_out_new): Likewise.
14142 * mi/mi-parse.c (mi_parse): Likewise.
14143 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14144 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14145 * observer.c (xalloc_observer_list_node): Likewise.
14146 * regcache.c (regcache_xmalloc_1): Likewise.
14147 * reggroups.c (reggroup_new): Likewise.
14148 (_initialize_reggroup): Likewise.
14149 * registry.c (register_data_with_cleanup): Likewise.
14150 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14151 * ser-base.c (serial_ttystate): Likewise.
14152 * ser-mingw.c (make_pipe_state): Likewise.
14153 * ser-pipe.c (pipe_open): Likewise.
14154 * serial.c (serial_open): Likewise.
14155 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14156 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14157 (tui_alloc_win_info): Likewise.
14158 (tui_add_content_elements): Likewise.
14159 * tui/tui-file.c (tui_file_new): Likewise.
14160 * tui/tui-out.c (tui_out_new): Likewise.
14161 * ui-file.c (mem_file_new): Likewise.
14162 * ui-out.c (push_level): Likewise.
14163 (make_cleanup_ui_out_end): Likewise.
14164 (append_header_to_list): Likewise.
14165 (ui_out_new): Likewise.
14166 * user-regs.c (user_reg_add_builtin): Likewise.
14168 2014-01-13 Tom Tromey <tromey@redhat.com>
14170 * defs.h (XZALLOC): Remove.
14171 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14172 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14173 (get_ada_tasks_inferior_data): Likewise.
14174 * auto-load.c (get_auto_load_pspace_data): Likewise.
14175 * auxv.c (get_auxv_inferior_data): Likewise.
14176 * bfd-target.c (target_bfd_reopen): Likewise.
14177 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14178 (deprecated_insert_raw_breakpoint): Likewise.
14179 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14180 * corelow.c (core_open): Likewise.
14181 * darwin-nat.c (darwin_check_new_threads): Likewise.
14182 (darwin_attach_pid): Likewise.
14183 * dummy-frame.c (dummy_frame_push): Likewise.
14184 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14185 * dwarf2loc.c (allocate_piece_closure): Likewise.
14186 * elfread.c (elf_symfile_segments): Likewise.
14187 * eval.c (ptrmath_type_p): Likewise.
14188 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14189 * gdbtypes.c (alloc_type_arch): Likewise.
14190 (alloc_type_instance): Likewise.
14191 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14192 * inf-child.c (inf_child_can_use_agent): Likewise.
14193 * inflow.c (get_inflow_inferior_data): Likewise.
14194 * infrun.c (save_infcall_suspend_state): Likewise.
14195 * jit.c (jit_reader_load): Likewise.
14196 (get_jit_objfile_data): Likewise.
14197 (get_jit_program_space_data): Likewise.
14198 (jit_object_open_impl): Likewise.
14199 (jit_symtab_open_impl): Likewise.
14200 (jit_block_open_impl): Likewise.
14201 (jit_frame_sniffer): Likewise.
14202 * linux-fork.c (add_fork): Likewise.
14203 * maint.c (make_command_stats_cleanup): Likewise.
14204 * objfiles.c (get_objfile_pspace_data): Likewise.
14205 * opencl-lang.c (struct lval_closure): Likewise.
14206 * osdata.c (osdata_start_osdata): Likewise.
14207 * progspace.c (new_address_space): Likewise.
14208 (add_program_space): Likewise.
14209 * remote-sim.c (get_sim_inferior_data): Likewise.
14210 * sh-tdep.c (sh_gdbarch_init): Likewise.
14211 * skip.c (Ignore): Likewise.
14212 (skip_delete_command): Likewise.
14213 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14214 (library_list_start_library): Likewise.
14215 (solib_aix_current_sos): Likewise.
14216 * solib-darwin.c (get_darwin_info): Likewise.
14217 (darwin_current_sos): Likewise.
14218 * solib-dsbt.c (get_dsbt_info): Likewise.
14219 * solib-ia64-hpux.c (new_so_list): Likewise.
14220 (ia64_hpux_get_solib_linkage_addr): Likewise.
14221 * solib-spu.c (append_ocl_sos): Likewise.
14222 (spu_current_sos): Likewise.
14223 * solib-svr4.c (get_svr4_info): Likewise.
14224 (svr4_keep_data_in_core): Likewise.
14225 (library_list_start_library): Likewise.
14226 (svr4_default_sos): Likewise.
14227 (svr4_read_so_list): Likewise.
14228 * solib-target.c (library_list_start_library): Likewise.
14229 (solib_target_current_sos): Likewise.
14230 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14231 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14232 * symfile.c (default_symfile_segments): Likewise.
14233 * target-descriptions.c (tdesc_data_init): Likewise.
14234 (tdesc_create_reg): Likewise.
14235 (struct tdesc_type *): Likewise.
14236 (tdesc_create_vector): Likewise.
14237 (tdesc_set_struct_size): Likewise.
14238 (struct tdesc_type *): Likewise.
14239 (tdesc_free_feature): Likewise.
14240 (tdesc_create_feature): Likewise.
14241 * windows-nat.c (windows_add_thread): Likewise.
14242 (windows_make_so): Likewise.
14243 * xml-support.c (gdb_xml_body_text): Likewise.
14244 (gdb_xml_create_parser_and_cleanup): Likewise.
14245 (xml_process_xincludes): Likewise.
14246 * xml-syscall.c (allocate_syscalls_info): Likewise.
14247 (syscall_create_syscall_desc): Likewise.
14249 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14251 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14252 function, with code from i386_stap_parse_special_token.
14253 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14254 (i386_stap_parse_special_token): Move code to the two functions
14255 above; simplify it.
14257 2014-01-09 Pedro Alves <palves@redhat.com>
14258 Hui Zhu <hui@codesourcery.com>
14261 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14262 bp_err_string. Don't mark the location shlib_disabled if the
14263 error thrown wasn't a generic or memory error. Catch errors
14264 thrown while inserting breakpoints in overlayed code. Output
14265 error message of software breakpoints.
14266 * remote.c (remote_insert_breakpoint): If this breakpoint has
14267 target-side commands but this stub doesn't support Z0 packets,
14268 throw NOT_SUPPORTED_ERROR error.
14269 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14270 * target.h (target_insert_breakpoint): Extend comment.
14271 (target_insert_hw_breakpoint): Add comment.
14273 2014-01-08 Pedro Alves <palves@redhat.com>
14275 * remote.c (remote_add_thread): Add threads silently if starting
14277 (remote_notice_new_inferior): If in all-stop, and starting up,
14278 don't call notice_new_inferior.
14279 (get_current_thread): New function, factored out from ...
14280 (add_current_inferior_and_thread): ... this. Adjust.
14281 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14282 found any thread, then select the remote's current thread as GDB's
14283 current thread too.
14285 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14287 * NEWS: Create a new section for the next release branch.
14288 Rename the section of the current branch, now that it has
14291 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14293 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14294 * version.in: Bump version to 7.7.50.DATE-cvs.
14296 2014-01-08 Yao Qi <yao@codesourcery.com>
14298 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14299 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14300 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14302 2014-01-08 Yao Qi <yao@codesourcery.com>
14304 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14305 return value of bfd_get_filename to symbol_file_add_from_bfd.
14307 2014-01-08 Pierre Muller <muller@sourceware.org>
14310 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14311 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14312 to prim_record_mininal_symbol_and_info.
14313 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14314 in call to prim_record_minimal_symbol_and_info.
14315 (read_pe_exported_syms): Set index field of section_data.
14317 2014-01-07 Andrew Pinski <apinski@cavium.com>
14319 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14320 * features/aarch64.c: Regenerate.
14322 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14324 * target.c (return_null): Define.
14325 (update_current_target): Use it instead of return_zero for
14326 functions that return a pointer.
14328 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14330 * source.c (add_path): Fix check for duplicated paths in the previously
14333 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14335 * ada-lang.c: Remove duplicated include statements.
14336 * alphabsd-nat.c: Ditto.
14337 * amd64-darwin-tdep.c: Ditto.
14338 * amd64fbsd-nat.c: Ditto.
14339 * auto-load.c: Ditto.
14341 * breakpoint.c: Ditto.
14342 * dbxread.c: Ditto.
14343 * fork-child.c: Ditto.
14344 * gdb_usleep.c: Ditto.
14345 * i386-darwin-tdep.c: Ditto.
14346 * i386fbsd-nat.c: Ditto.
14348 * inferior.c: Ditto.
14349 * jv-lang.c: Ditto.
14350 * linux-nat.c: Ditto.
14351 * linux-tdep.c: Ditto.
14352 * m68kbsd-nat.c: Ditto.
14353 * m68klinux-nat.c: Ditto.
14354 * microblaze-tdep.c: Ditto.
14355 * mips-linux-tdep.c: Ditto.
14356 * mn10300-tdep.c: Ditto.
14357 * nto-tdep.c: Ditto.
14358 * opencl-lang.c: Ditto.
14360 * printcmd.c: Ditto.
14361 * regcache.c: Ditto.
14362 * remote-m32r-sdi.c: Ditto.
14364 * symfile.c: Ditto.
14366 * tilegx-linux-nat.c: Ditto.
14367 * tilegx-tdep.c: Ditto.
14368 * tracepoint.c: Ditto.
14370 * vaxbsd-nat.c: Ditto.
14371 * windows-nat.c: Ditto.
14372 * xtensa-tdep.c: Ditto.
14374 2014-01-07 Yao Qi <yao@codesourcery.com>
14376 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14378 2014-01-07 Yao Qi <yao@codesourcery.com>
14379 Joel Brobecker <brobecker@adacore.com>
14381 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14382 (pdc_write_regs): Likewise.
14383 (fetch_regs_kernel_thread): Likewise.
14384 (store_regs_kernel_thread): Likewise.
14386 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14388 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14389 tagged type objects to their actual type.
14391 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14393 * ada-valprint.c (print_field_values): Add "language" parameter.
14394 Update calls to print_field_values and print_variant_part.
14395 Pass new parameter "language" in call to val_print instead
14396 of "current_language". Replace call to ada_val_print by call
14398 (print_variant_part): Add "language" parameter.
14399 (ada_val_print_struct_union): Update call to print_field_values.
14401 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14403 * ada-valprint.c (ui_memcpy): Delete.
14404 (ada_print_floating): Update documentation. Add empty line
14405 between between function documentation and implementation.
14406 Delete variable "buffer". Use ui_file_xstrdup in place of
14407 ui_file_put. Minor adjustments following this change.
14409 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14411 * ada-valprint.c (ada_val_print_string): New function,
14412 extracted from ada_val_print_array.
14413 (ada_val_print_array): Replace extracted code by call
14414 to ada_val_print_string followed by a return. Move
14415 "else" branch to the function's top block.
14417 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14419 * ada-valprint.c (ada_val_print_array): Move implementation
14420 down. Rename parameter "offset" and "val" into "offset_aligned"
14421 and "original_value" respectively. Add parameter "offset".
14423 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14425 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14426 re-organizing the code. Change the "???" message printed
14427 when target type is a TYPE_CODE_UNDEF into
14428 "<ref to undefined type>".
14430 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14432 * ada-valprint.c (print_record): Delete, implementation inlined...
14433 (ada_val_print_struct_union): ... here. Remove call to
14434 ada_check_typedef in inlined implementation.
14436 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14438 * ada-valprint.c (ada_val_print_gnat_array): New function,
14439 extracted from ada_val_print_1;
14440 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14441 (ada_val_print_flt, ada_val_print_struct_union)
14442 (ada_val_print_ref): Likewise.
14443 (ada_val_print_1): Delete variables i and elttype.
14444 Replace extracted-out code by call to corresponding
14447 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14449 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14451 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14453 * ada-valprint.c (ada_val_print_1): Replace calls to
14454 ada_val_print_1 by calls to val_print.
14456 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14458 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14459 Update calls to self accordingly. Replace calls to c_val_print
14460 by calls to val_print.
14462 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14464 * ada-valprint.c (print_record): Delete declaration.
14465 (adjust_type_signedness, ada_val_print_1): Likewise.
14466 (ada_val_print): Move function implementation down.
14467 (print_variant_part, print_field_values, print_record):
14468 Move function implementation up.
14470 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14472 * python/py-type.c (typy_get_name): New function.
14473 (type_object_getset): Add entry for attribute "name".
14474 * NEWS: Add entry mentioning this new attribute.
14476 2014-01-07 Yao Qi <yao@codesourcery.com>
14478 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14481 2014-01-07 Yao Qi <yao@codesourcery.com>
14483 * gnu-nat.c (info_port_rights): Add qualifier const to
14486 2014-01-07 Yao Qi <yao@codesourcery.com>
14488 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14490 2014-01-07 Yao Qi <yao@codesourcery.com>
14492 * gnu-nat.c (make_inf) Update declaration.
14493 (make_inf): Make it static.
14494 (inf_set_traced): Likewise.
14495 (inf_port_to_thread, inf_task_died_status): Likewise.
14497 2014-01-07 Yao Qi <yao@codesourcery.com>
14499 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14501 2014-01-07 Yao Qi <yao@codesourcery.com>
14503 * gnu-nat.c (_initialize_gnu_nat): Declare.
14505 2014-01-07 Yao Qi <yao@codesourcery.com>
14507 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14509 (struct gdbarch_info) <byte_order>: Change type to
14511 <byte_order_for_code>: Likewise.
14512 * gdbarch.c, gdbarch.h: Regenerated.
14514 2014-01-06 Sasha Smundak <asmundak@google.com>
14516 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14518 2014-01-06 Tom Tromey <tromey@redhat.com>
14520 * doublest.c (convert_doublest_to_floatformat): Use const, not
14522 * somread.c (som_symtab_read): Likewise.
14524 2014-01-07 Hui Zhu <hui@codesourcery.com>
14526 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14527 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14528 (gdb_bfd_fopen): Ditto.
14529 (gdb_bfd_openr): Ditto.
14530 (gdb_bfd_openw): Ditto.
14531 (gdb_bfd_openr_iovec): Ditto.
14532 (gdb_bfd_fdopenr): Ditto.
14533 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14534 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14536 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14538 * symfile-mem.c (symbol_file_add_from_memory): Removed
14539 gdb_bfd_stash_filename.
14541 2014-01-03 Doug Evans <dje@google.com>
14543 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14546 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14548 Update year range in copyright notice of all files.
14550 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14552 * top.c (print_gdb_version): Set copyright year to 2014.
14554 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14556 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14558 For older changes see ChangeLog-2013.
14564 version-control: never