1 2014-10-27 Pedro Alves <palves@redhat.com>
3 * remote.c (remote_thread_alive): New, factored out from ...
4 (remote_thread_alive): ... this.
5 (remote_update_thread_list): Bail out before deleting threads if
6 the target returned an empty list, and, the current thread has a
9 2014-10-27 Pedro Alves <palves@redhat.com>
11 * infrun.c (handle_signal_stop): Also skip handlers when a random
12 signal arrives while handling a "stepi" or a "nexti". Set the
13 thread's 'step_after_step_resume_breakpoint' flag.
15 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
17 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
18 (arm_record_ld_st_imm_offset): Reimplement to cover all
19 load/store cases for ARM opcode 010.
20 (arm_record_ld_st_multiple): Reimplement to cover all
21 load/store cases for ARM opcode 100.
23 2014-10-26 Doug Evans <xdje42@gmail.com>
25 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
27 2014-10-26 Doug Evans <xdje42@gmail.com>
29 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
30 parameter "kind" to "block_index".
31 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
33 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
35 2014-10-26 Doug Evans <xdje42@gmail.com>
37 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
39 2014-10-26 Doug Evans <xdje42@gmail.com>
41 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
44 2014-10-26 Doug Evans <xdje42@gmail.com>
46 * parser-defs.h (block_found): Move decl from here ...
47 * symtab.h (block_found): ... to here.
49 2014-10-26 Doug Evans <xdje42@gmail.com>
51 * symtab.h (struct field_of_this_result): Fix typo in comment.
52 (lookup_symbol_in_language): Move function comment here.
53 (lookup_symbol): Improve function comment.
54 (basic_lookup_symbol_nonlocal): Ditto.
55 (lookup_symbol_static, lookup_symbol_global): Ditto.
56 (lookup_symbol_aux_block): Ditto.
57 (lookup_language_this): Add function comment.
58 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
60 (lookup_block_symbol): Improve function comment.
61 (lookup_struct): Fix capitalization in function comment.
62 (lookup_transparent_type): Add function comment.
63 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
64 Improve function comment.
65 (lookup_objfile_from_block): Add function comment.
66 * symtab.c (lookup_symbol_in_language): Update function comment.
67 (lookup_symbol, lookup_language_this): Ditto.
68 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
69 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
70 (basic_lookup_symbol_nonlocal): Ditto.
71 (lookup_symbol_static, lookup_symbol_global): Ditto.
72 (lookup_transparent_type, lookup_block_symbol): Ditto.
74 2014-10-25 Doug Evans <xdje42@gmail.com>
76 * symtab.c (types_info): Delete forward decl.
77 (functions_info, variables_info, sources_info): Ditto.
78 (_initialize_symtab): Rewrite forward decl to use
79 initialize_file_ftype.
81 2014-10-25 Doug Evans <xdje42@gmail.com>
83 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
85 2014-10-25 Doug Evans <xdje42@gmail.com>
87 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
88 of local var child_die.
90 2014-10-24 Don Breazeal <donb@codesourcery.com>
92 * infrun.c (follow_fork_inferior): Update fork message printing
93 to use target_terminal_ours_for_output instead of
94 target_terminal_ours, to use _() for all format strings, to print
95 "vfork" instead of "fork" for vforks, and to add a detach message.
96 (handle_vfork_child_exec_or_exit): Update message printing to use
97 target_terminal_ours_for_output instead of target_terminal_ours, to
98 use _() for all format strings, and to fix some formatting.
100 2014-10-24 Pedro Alves <palves@redhat.com>
102 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
103 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
104 * config/vax/vax.mh: Delete.
105 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
106 obsolete configurations section.
107 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
108 * vax-nat.c: Delete file.
110 2014-10-24 Pedro Alves <palves@redhat.com>
112 * NEWS (Removed targets): Add OS/arch column.
114 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
116 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
117 on the arg type of a constructor only if it is of reference type.
119 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
121 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
122 accessors and constants from nios2 opcodes update.
123 (nios2_get_next_pc): Likewise.
125 2014-10-19 Doug Evans <xdje42@gmail.com>
127 * gdbthread.h (set_running): Fix comment.
128 (set_executing, finish_thread_state): Fix comment.
130 2014-10-18 Doug Evans <xdje42@gmail.com>
132 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
134 2014-10-17 Doug Evans <dje@google.com>
136 * NEWS: Mention new event gdb.clear_objfiles.
137 * python/py-event.h (emit_clear_objfiles_event): Clear
138 * python/py-events.h (events_object): New member clear_objfiles.
139 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
141 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
142 emit clear_objfiles event.
143 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
145 (emit_clear_objfiles_event): New function.
146 (clear_objfiles): New event.
147 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
149 * python/python.c (_initialize_python): Call
150 gdbpy_initialize_clear_objfiles_event.
152 2014-10-17 Doug Evans <dje@google.com>
154 * NEWS: Mention new gdb.Objfile.progspace attribute.
155 * python/py-objfile.c (objfpy_get_progspace): New function.
156 (objfile_getset): New entry for "progspace".
158 2014-10-17 Pedro Alves <palves@redhat.com>
161 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
162 returns a copy of the input.
163 (run_command_1, continue_command, step_1, jump_command)
164 (signal_command, until_command, advance_command, finish_command)
165 (attach_command): Adjust and install a cleanup to free the
168 2014-10-17 Pedro Alves <palves@redhat.com>
171 * infcmd.c (continue_1): If continuing all threads in the
172 foreground, make sure the inferior's terminal settings are put in
175 2014-10-17 Pedro Alves <palves@redhat.com>
178 * annotate.c (annotate_breakpoints_invalid): Use
179 target_terminal_our_for_output instead of target_terminal_ours.
180 Give back the terminal to the target.
181 (annotate_frames_invalid): Likewise.
183 2014-10-17 Pedro Alves <palves@redhat.com>
185 * target.c (enum terminal_state): New enum.
186 (terminal_state): New global.
187 (target_terminal_init): New function.
188 (target_terminal_inferior): Skip if inferior already owns the
190 (target_terminal_ours, target_terminal_ours_for_output): New
192 * target.h (target_terminal_init): Convert to function prototype.
193 (target_terminal_ours_for_output): Convert to function prototype
195 (target_terminal_ours): Convert to function prototype and tweak
197 * windows-nat.c (do_initial_windows_stuff): Call
198 target_terminal_init instead of child_terminal_init_with_pgrp.
200 2014-10-17 Pedro Alves <palves@redhat.com>
202 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
203 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
204 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
206 * NEWS: Mention that support for alpha*-*-osf* has been removed.
207 * ada-lang.h [__alpha__ && __osf__]
208 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
209 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
210 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
212 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
214 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
215 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
216 * configure: Regenerate.
217 * configure.ac: Remove references to osf.
218 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
219 section. Remove all other references to osf.
220 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
221 Remove all other references to osf.
222 * dec-thread.c: Delete file.
223 * defs.h (GDB_OSABI_OSF1): Delete.
224 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
226 * osabi.c (gdb_osabi_names): Delete "OSF/1".
227 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
229 (unconditionally_kill_inferior)
230 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
231 * solib-osf.c: Delete file.
233 2014-10-17 Pedro Alves <palves@redhat.com>
235 * remote.c (clear_threads_listing_context): Move higher up, out of
236 the HAVE_LIBEXPAT guard.
238 2014-10-16 Tristan Gingold <gingold@adacore.com>
240 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
241 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
244 2014-10-15 Pedro Alves <palves@redhat.com>
246 * dec-thread.c (dec_thread_count_gdb_threads)
247 (dec_thread_add_gdb_thread): Delete.
248 (dec_thread_update_thread_list): Delete.
249 (dec_thread_find_new_threads): Rename to ...
250 (dec_thread_update_thread_list): ... this. Delete GDB-size
251 threads that are no longer found in dec_thread_list.
252 (resync_thread_list): Delete.
253 (dec_thread_wait): Call dec_thread_update_thread_list instead of
256 2014-10-15 Pedro Alves <palves@redhat.com>
258 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
259 * remote.c (remote_update_thread_list): Skip calling prune_threads
260 if any thread listing method is supported, and instead walk over
261 the set of remote threads listed, deleting those that are not
262 found in GDB's thread list.
264 2014-10-15 Pedro Alves <palves@redhat.com>
266 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
267 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
268 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
269 (bsd_uthread_target): Adjust.
270 * corelow.c (core_open): Adjust.
271 * dec-thread.c (dec_thread_find_new_threads): Update comment.
272 (dec_thread_update_thread_list): New function.
273 (init_dec_thread_ops): Adjust.
274 * gdbthread.h (prune_threads): New declaration.
275 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
276 (thread_db_update_thread_list): ... this. Call prune_threads.
277 (init_thread_db_ops): Adjust.
278 * nto-procfs.c (procfs_find_new_threads): Rename to ...
279 (procfs_update_thread_list): ... this. Call prune_threads.
280 (procfs_attach, procfs_create_inferior, init_procfs_targets):
282 * obsd-nat.c (obsd_find_new_threads): Rename to ...
283 (obsd_update_thread_list): ... this. Call prune_threads.
284 (obsd_add_target): Adjust.
285 * procfs.c (procfs_target): Adjust.
286 (procfs_notice_thread): Update comment.
287 (procfs_find_new_threads): Rename to ...
288 (procfs_update_thread_list): ... this. Call prune_threads.
289 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
291 (ravenscar_wait): Adjust.
292 (ravenscar_find_new_threads): Rename to ...
293 (ravenscar_update_thread_list): ... this. Call prune_threads.
294 (init_ravenscar_thread_ops): Adjust.
295 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
296 (record_btrace_update_thread_list): ... this. Adjust comment.
297 (init_record_btrace_ops): Adjust.
298 * remote.c (remote_threads_info): Rename to ...
299 (remote_update_thread_list): ... this. Call prune_threads.
300 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
302 * sol-thread.c (check_for_thread_db): Adjust.
303 (sol_find_new_threads_callback): Rename to ...
304 (sol_update_thread_list_callback): ... this.
305 (sol_find_new_threads): Rename to ...
306 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
307 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
308 * target-delegates.c: Regenerate.
309 * target.c (target_find_new_threads): Rename to ...
310 (target_update_thread_list): ... this.
311 * target.h (struct target_ops): Rename to_find_new_threads field
312 to to_update_thread_list.
313 (target_find_new_threads): Rename to ...
314 (target_update_thread_list): ... this.
315 * thread.c (prune_threads): Make extern.
316 (update_thread_list): Adjust.
318 2014-10-15 Pedro Alves <palves@redhat.com>
320 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
321 Add describing comment. Return -1 if the qL packet is not
323 (struct thread_item, thread_item_t): Move higher up in
324 the file. Add comments.
325 (struct threads_parsing_context): Move higher up in
326 the file, add comments, and remote to ...
327 (struct threads_listing_context): ... this.
328 (remote_newthread_step): Don't add the thread to GDB's thread
329 database here. Instead push it to the thread_listing_context
331 (remote_find_new_threads): Rename to ...
332 (remote_get_threads_with_ql): ... this. Add target_ops and
333 targets_listing_context parameters. Pass down context.
334 (start_thread): Adjust.
335 (clear_threads_parsing_context): Rename to ...
336 (clear_threads_listing_context): ... this.
337 (remote_get_threads_with_qxfer): New, with parts salvaged from old
339 (remote_get_threads_with_qthreadinfo): Ditto.
340 (remote_threads_info): Reimplement.
342 2014-10-15 Pedro Alves <palves@redhat.com>
344 * infrun.c (resume): Don't force displaced-stepping for all
345 single-steps on software single-stepping archs.
347 2014-10-15 Pedro Alves <palves@redhat.com>
349 * breakpoint.c (single_step_breakpoints): Delete global.
350 (insert_single_step_breakpoint): Adjust to store the breakpoint
351 pointer in the current thread.
352 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
353 (cancel_single_step_breakpoints): Delete functions.
354 (breakpoint_has_location_inserted_here): Make extern.
355 (single_step_breakpoint_inserted_here_p): Adjust to walk the
357 * breakpoint.h (breakpoint_has_location_inserted_here): New
359 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
360 (cancel_single_step_breakpoints): Remove declarations.
361 * gdbthread.h (struct thread_control_state)
362 <single_step_breakpoints>: New field.
363 (delete_single_step_breakpoints)
364 (thread_has_single_step_breakpoints_set)
365 (thread_has_single_step_breakpoint_here): New declarations.
366 * infrun.c (follow_exec): Also clear the single-step breakpoints.
367 (singlestep_breakpoints_inserted_p, singlestep_ptid)
368 (singlestep_pc): Delete globals.
369 (infrun_thread_ptid_changed): Remove references to removed
371 (resume_cleanups): Delete the current thread's single-step
373 (maybe_software_singlestep): Remove references to removed globals.
374 (resume): Adjust to use thread_has_single_step_breakpoints_set and
375 delete_single_step_breakpoints.
376 (init_wait_for_inferior): Remove references to removed globals.
377 (delete_thread_infrun_breakpoints): Delete the thread's
378 single-step breakpoints too.
379 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
380 single-step breakpoints here.
381 (delete_stopped_threads_single_step_breakpoints): New function.
382 (adjust_pc_after_break): Adjust to use
383 thread_has_single_step_breakpoints_set.
384 (handle_inferior_event): Remove references to removed globals.
385 Use delete_stopped_threads_single_step_breakpoints.
386 (handle_signal_stop): Adjust to per-thread single-step
387 breakpoints. Swap test order to do cheaper tests first.
388 (switch_back_to_stepped_thread): Extend debug output. Remove
389 references to removed globals.
390 * record-full.c (record_full_wait_1): Adjust to per-thread
391 single-step breakpoints.
392 * thread.c (delete_single_step_breakpoints)
393 (thread_has_single_step_breakpoints_set)
394 (thread_has_single_step_breakpoint_here): New functions.
395 (clear_thread_inferior_resources): Also delete the thread's
396 single-step breakpoints.
398 2014-10-15 Pedro Alves <palves@redhat.com>
400 * thread.c (delete_thread_breakpoint): New function.
401 (delete_step_resume_breakpoint)
402 (delete_exception_resume_breakpoint): Use it.
403 (delete_at_next_stop): New function.
404 (clear_thread_inferior_resources): Use delete_at_next_stop.
406 2014-10-15 Pedro Alves <palves@redhat.com>
408 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
409 (breakpoint_inserted_here_p): ... here. Remove special case for
410 software single-step breakpoints.
411 (find_non_raw_software_breakpoint_inserted_here): Inline ...
412 (software_breakpoint_inserted_here_p): ... here. Remove special
413 case for software single-step breakpoints.
414 (bp_target_info_copy_insertion_state)
415 (deprecated_insert_raw_breakpoint)
416 (deprecated_remove_raw_breakpoint): Delete functions.
417 * breakpoint.h (deprecated_insert_raw_breakpoint)
418 (deprecated_remove_raw_breakpoint): Remove declarations.
420 2014-10-15 Pedro Alves <palves@redhat.com>
423 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
424 Delete array globals.
425 (single_step_breakpoints): New global.
426 (breakpoint_xfer_memory): Remove special handling for single-step
428 (update_breakpoints_after_exec): Delete bp_single_step
430 (detach_breakpoints): Remove special handling for single-step
432 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
433 (bpstat_stop_status): Add comment.
434 (bpstat_what, bptype_string, print_one_breakpoint_location)
435 (adjust_breakpoint_address, init_bp_location): Handle
437 (new_single_step_breakpoint): New function.
438 (set_momentary_breakpoint, bkpt_remove_location): Remove special
439 handling for single-step breakpoints.
440 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
441 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
443 (detach_single_step_breakpoints, find_single_step_breakpoint):
445 (breakpoint_has_location_inserted_here): New function.
446 (single_step_breakpoint_inserted_here_p): Rewrite.
447 * breakpoint.h: Remove FIXME.
448 (enum bptype) <bp_single_step>: New enum value.
449 (insert_single_step_breakpoint): Update comment.
450 * infrun.c (resume_cleanups)
451 (delete_step_thread_step_resume_breakpoint): Remove single-step
453 (fetch_inferior_event): Install a cleanup that removes infrun
455 (switch_back_to_stepped_thread) <expect thread advanced also>:
456 Clear step-over info.
458 2014-10-15 Pedro Alves <palves@redhat.com>
460 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
461 (delete_thread_infrun_breakpoints): New function, with parts
462 salvaged from delete_step_resume_breakpoint_callback.
463 (delete_step_thread_step_resume_breakpoint): Delete.
464 (for_each_just_stopped_thread_callback_func): New typedef.
465 (for_each_just_stopped_thread): New function.
466 (delete_just_stopped_threads_infrun_breakpoints): New function.
467 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
468 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
470 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
472 2014-10-15 Pedro Alves <palves@redhat.com>
474 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
475 trying to step past a non-steppable watchpoint.
476 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
478 * infrun.c (struct step_over_info): Add new field
479 'nonsteppable_watchpoint_p' and adjust comments.
480 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
482 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
483 (stepping_past_nonsteppable_watchpoint): New function.
484 (step_over_info_valid_p): Also return true if stepping past a
485 nonsteppable watchpoint.
486 (proceed): Adjust call to set_step_over_info. Remove reference to
488 (init_wait_for_inferior): Remove reference to init_infwait_state.
489 (waiton_ptid): Delete global.
490 (struct execution_control_state)
491 <stepped_after_stopped_by_watchpoint>: Delete field.
492 (wait_for_inferior, fetch_inferior_event): Always pass
493 minus_one_ptid to target_wait.
494 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
496 (init_infwait_state): Delete function.
497 (handle_inferior_event): Remove infwait_state handling.
498 (handle_signal_stop) <watchpoints handling>: Adjust after
499 stepped_after_stopped_by_watchpoint removal. Don't remove
500 breakpoints here nor set infwait_state. Set the thread's
501 stepping_over_watchpoint flag, and call keep_going instead.
502 (keep_going): Handle stepping_over_watchpoint. Adjust
503 set_step_over_info calls.
504 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
507 2014-10-15 Pedro Alves <palves@redhat.com>
509 * infrun.c (step_over_info_valid_p): New function.
510 (resume): Use step_over_info_valid_p instead of checking the
511 threads's trap_expected flag.
513 2014-10-15 Doug Evans <dje@google.com>
514 Walfred Tedeschi <walfred.tedeschi@intel.com>
517 * python/lib/gdb/__init__.py (packages): Add "printer".
518 * python/lib/gdb/command/bound_registers.py: Moved to ...
519 * python/lib/gdb/printer/bound_registers.py: ... here.
520 Add printer to global set of builtin printers. Rename printer from
521 "bound" to "mpx_bound128".
522 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
523 registered as global "builtin" printer.
524 (add_builtin_pretty_printer): New function.
525 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
526 gdb/printer/__init__.py.
528 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
530 * Makefile.in (SFILES): Remove d-support.c.
531 (COMMON_OBS): Remove d-support.o.
532 * d-lang.h (d_parse_symbol): Remove declaration.
533 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
534 * d-support.c: Remove file.
536 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
538 * gdb/infrun.c (process_event_stop_test): Apply
539 gdbarch_addr_bits_remove to longjmp resume address.
541 2014-10-15 Pedro Alves <palves@redhat.com>
543 * regformats/microblaze.dat: Delete file.
545 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
547 * features/Makefile (microblaze-expedite): Replace pc with rpc.
548 * regformats/microblaze-with-stack-protect.dat: Regenerate.
550 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
552 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
555 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
559 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
562 2014-10-14 Joel Brobecker <brobecker@adacore.com>
564 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
565 of the case where the second operand is a pointer.
566 <BINOP_SUB>: Likewise.
568 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
570 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
571 only if it is not NULL.
572 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
573 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
574 (struct probe_ops) <clear_semaphore>: Likewise.
575 * tracepoint.c (start_tracing): Call set_semaphore only if it is
577 (stop_tracing): Likewise, for clear_semaphore.
579 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
581 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
582 using language_c, instead of current_language.
584 2014-10-13 Doug Evans <dje@google.com>
586 * python/py-objfile.c (objfpy_initialize): New function.
587 (objfpy_new, objfile_to_objfile_object): Call it.
588 * python/py-progspace.c (pspy_initialize): New function.
589 (pspy_new, pspace_to_pspace_object): Call it.
591 2014-10-13 Miroslav Franc <mfranc@redhat.com>
592 Jan Kratochvil <jan.kratochvil@redhat.com>
594 Fix "save breakpoints" for "catch" command.
595 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
598 2014-10-12 Miroslav Franc <mfranc@redhat.com>
600 Fix "save breakpoints" for "disable $bpnum" command.
601 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
603 2014-10-10 Pedro Alves <palves@redhat.com>
605 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
606 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
607 (HFILES_NO_SRCDIR): Remove solib-irix.h.
608 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
610 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
611 * configure.ac: Remove references to IRIX.
612 * configure.host: Add *-*-irix* to the obsolete hosts section.
613 Remove all other references to irix.
614 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
617 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
619 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
620 isn't valid, release the tdesc arch data and return NULL.
622 2014-10-10 Pedro Alves <palves@redhat.com>
624 * linux-tdep.c: Include observer.h.
625 (linux_inferior_data): New global.
626 (struct linux_info): New structure.
627 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
628 (get_linux_inferior_data): New functions.
629 (linux_vsyscall_range): Rename to ...
630 (linux_vsyscall_range_raw): ... this.
631 (linux_vsyscall_range): New function; handles caching.
632 (_initialize_linux_tdep): Register linux_inferior_data. Install
633 inferior_exit and inferior_appeared observers.
635 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
636 Pedro Alves <palves@redhat.com>
639 * solib-svr4.c (svr4_read_so_list): Rename to ...
640 (svr4_current_sos_1): ... this and change the function comment.
641 (svr4_current_sos): New function.
643 2014-10-10 Pedro Alves <palves@redhat.com>
645 * arch-utils.c (default_vsyscall_range): New function.
646 * arch-utils.h (default_vsyscall_range): New declaration.
647 * gdbarch.sh (vsyscall_range): New hook.
648 * gdbarch.h, gdbarch.c: Regenerate.
649 * linux-tdep.c (linux_vsyscall_range): New function.
650 (linux_init_abi): Install linux_vsyscall_range as
651 vsyscall_range gdbarch hook.
652 * memrange.c (address_in_mem_range): New function.
653 * memrange.h (address_in_mem_range): New declaration.
654 * symfile-mem.c (find_vdso_size): Delete function.
655 (add_vsyscall_page): Use gdbarch_vsyscall_range.
657 2014-10-10 Pedro Alves <palves@redhat.com>
659 * infrun.c (normal_stop): Fix typo in comment.
661 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
664 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
665 typo when using logical AND to determine instruction type.
667 2014-10-09 Yao Qi <yao@codesourcery.com>
669 * infrun.c (handle_signal_stop): Remove local variable
672 2014-10-08 Stan Shebs <stan@codesourcery.com>
674 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
676 2014-10-08 Gary Benson <gbenson@redhat.com>
678 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
680 2014-10-08 Gary Benson <gbenson@redhat.com>
682 * common/common-defs.h: Include common-exceptions.h.
683 * exceptions.h: Do not include common-exceptions.h.
685 2014-10-08 Gary Benson <gbenson@redhat.com>
687 * common/common-defs.h: Include cleanups.h.
688 * common/common-exceptions.c: Do not include cleanups.h.
691 2014-10-08 Gary Benson <gbenson@redhat.com>
693 * ada-lang.c: Do not include exceptions.h.
694 * ada-valprint.c: Likewise.
695 * amd64-tdep.c: Likewise.
696 * auto-load.c: Likewise.
698 * break-catch-throw.c: Likewise.
699 * breakpoint.c: Likewise.
700 * btrace.c: Likewise.
701 * c-lang.c: Likewise.
702 * cli/cli-cmds.c: Likewise.
703 * cli/cli-interp.c: Likewise.
704 * cli/cli-script.c: Likewise.
705 * completer.c: Likewise.
706 * corefile.c: Likewise.
707 * corelow.c: Likewise.
708 * cp-abi.c: Likewise.
709 * cp-support.c: Likewise.
710 * cp-valprint.c: Likewise.
711 * darwin-nat.c: Likewise.
712 * dwarf2-frame-tailcall.c: Likewise.
713 * dwarf2-frame.c: Likewise.
714 * dwarf2loc.c: Likewise.
715 * dwarf2read.c: Likewise.
717 * event-loop.c: Likewise.
718 * event-top.c: Likewise.
719 * f-valprint.c: Likewise.
720 * frame-unwind.c: Likewise.
722 * gdbtypes.c: Likewise.
723 * gnu-v2-abi.c: Likewise.
724 * gnu-v3-abi.c: Likewise.
725 * guile/scm-auto-load.c: Likewise.
726 * guile/scm-breakpoint.c: Likewise.
727 * guile/scm-cmd.c: Likewise.
728 * guile/scm-frame.c: Likewise.
729 * guile/scm-lazy-string.c: Likewise.
730 * guile/scm-param.c: Likewise.
731 * guile/scm-symbol.c: Likewise.
732 * guile/scm-type.c: Likewise.
733 * hppa-hpux-tdep.c: Likewise.
734 * i386-tdep.c: Likewise.
735 * inf-loop.c: Likewise.
736 * infcall.c: Likewise.
737 * infcmd.c: Likewise.
738 * infrun.c: Likewise.
739 * interps.c: Likewise.
740 * interps.h: Likewise.
742 * linespec.c: Likewise.
743 * linux-nat.c: Likewise.
744 * linux-thread-db.c: Likewise.
745 * m32r-rom.c: Likewise.
747 * memory-map.c: Likewise.
748 * mi/mi-cmd-break.c: Likewise.
749 * mi/mi-cmd-stack.c: Likewise.
750 * mi/mi-interp.c: Likewise.
751 * mi/mi-main.c: Likewise.
752 * monitor.c: Likewise.
753 * nto-procfs.c: Likewise.
754 * objc-lang.c: Likewise.
755 * p-valprint.c: Likewise.
757 * ppc-linux-tdep.c: Likewise.
758 * printcmd.c: Likewise.
760 * python/py-auto-load.c: Likewise.
761 * python/py-breakpoint.c: Likewise.
762 * python/py-cmd.c: Likewise.
763 * python/py-finishbreakpoint.c: Likewise.
764 * python/py-frame.c: Likewise.
765 * python/py-framefilter.c: Likewise.
766 * python/py-function.c: Likewise.
767 * python/py-gdb-readline.c: Likewise.
768 * python/py-inferior.c: Likewise.
769 * python/py-infthread.c: Likewise.
770 * python/py-lazy-string.c: Likewise.
771 * python/py-linetable.c: Likewise.
772 * python/py-param.c: Likewise.
773 * python/py-prettyprint.c: Likewise.
774 * python/py-symbol.c: Likewise.
775 * python/py-type.c: Likewise.
776 * python/py-value.c: Likewise.
777 * python/python-internal.h: Likewise.
778 * python/python.c: Likewise.
779 * record-btrace.c: Likewise.
780 * record-full.c: Likewise.
781 * regcache.c: Likewise.
782 * remote-fileio.c: Likewise.
783 * remote-mips.c: Likewise.
784 * remote.c: Likewise.
785 * rs6000-aix-tdep.c: Likewise.
786 * rs6000-nat.c: Likewise.
788 * solib-darwin.c: Likewise.
789 * solib-dsbt.c: Likewise.
790 * solib-frv.c: Likewise.
791 * solib-ia64-hpux.c: Likewise.
792 * solib-spu.c: Likewise.
793 * solib-svr4.c: Likewise.
795 * spu-tdep.c: Likewise.
797 * stap-probe.c: Likewise.
798 * symfile-mem.c: Likewise.
799 * symmisc.c: Likewise.
800 * target.c: Likewise.
801 * thread.c: Likewise.
803 * tracepoint.c: Likewise.
804 * tui/tui-interp.c: Likewise.
805 * typeprint.c: Likewise.
807 * valarith.c: Likewise.
808 * valops.c: Likewise.
809 * valprint.c: Likewise.
811 * varobj.c: Likewise.
812 * windows-nat.c: Likewise.
813 * xml-support.c: Likewise.
815 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
817 * mips-tdep.c (add_offset_16): Rewrite to implement what the
819 (extended_mips16_next_pc): Update accordingly.
821 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
823 * mips-tdep.c (mips16_instruction_is_compact_branch): New
825 (micromips_instruction_is_compact_branch): Likewise.
826 (mips16_scan_prologue): Terminate scanning upon seeing a branch
827 or a compact jump, reaching a jump delay slot, or seeing a
828 second non-prologue instruction.
829 (micromips_scan_prologue): Also terminate scanning upon seeing a
830 compact branch or jump, or reaching a branch or jump delay slot.
831 (mips32_scan_prologue): Terminate scanning upon reaching a branch
832 or jump delay slot, or seeing a second non-prologue instruction.
833 (mips32_instruction_has_delay_slot): Retain instruction
834 examination code only, update arguments accordingly and move
835 instruction fetch pieces to...
836 (mips32_insn_at_pc_has_delay_slot): ... this new function.
837 (micromips_instruction_has_delay_slot): Likewise and to...
838 (micromips_insn_at_pc_has_delay_slot): ... this new function.
839 (mips16_instruction_has_delay_slot): Likewise and to...
840 (mips16_insn_at_pc_has_delay_slot): ... this new function.
841 (mips_single_step_through_delay): Update accordingly.
842 (mips_adjust_breakpoint_address): Likewise.
844 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
846 * mips-tdep.c (micromips_instruction_has_delay_slot): When
847 !mustbe32 also return 1 for 32-bit instructions.
848 (mips16_instruction_has_delay_slot): Likewise. Add an
851 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
853 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
856 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
858 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
860 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
861 for the breakpoint's address. Don't preinitialize `placed_size'.
862 (insert_bp_location): Set `reqstd_address' rather than
864 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
865 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
867 (bkpt_remove_location): Likewise.
868 (deprecated_insert_raw_breakpoint): Likewise.
869 (deprecated_remove_raw_breakpoint): Likewise.
870 (find_single_step_breakpoint): Likewise.
871 * mem-break.c (default_memory_insert_breakpoint): Use
872 `reqstd_address' for the breakpoint's address. Don't set
873 `placed_address' or `placed_size' if breakpoint contents couldn't
874 have been determined.
875 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
876 the breakpoint's address.
877 (remote_insert_hw_breakpoint): Likewise. Don't set
878 `placed_address' or `placed_size' if breakpoint couldn't have been
880 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
881 `reqstd_address' for the breakpoint's address.
882 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
883 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
884 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
885 * microblaze-linux-tdep.c
886 (microblaze_linux_memory_remove_breakpoint): Likewise.
887 * monitor.c (monitor_insert_breakpoint): Likewise.
888 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
889 (procfs_insert_hw_breakpoint): Likewise.
890 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
891 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
892 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
893 * remote-mips.c (mips_insert_breakpoint): Likewise.
894 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
896 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
898 * valops.c (value_assign): Check for bit field assignments
899 before calling architecture-specific register value
900 conversion functions.
902 2014-10-03 Pierre Muller <muller@sourceware.org>
904 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
906 2014-10-02 Pedro Alves <palves@redhat.com>
908 * breakpoint.c (breakpoints_should_be_inserted_now): Use
909 threads_are_executing.
910 * breakpoint.h (breakpoints_should_be_inserted_now): Add
912 * gdbthread.h (threads_are_executing): Declare.
913 (handle_signal_stop) <random signals>: Don't print about the
914 signal here if stopping.
915 (end_stepping_range): Don't notify observers here.
916 (normal_stop): Update the thread list. If stopped by a random
917 signal or a stepping range ended, notify observers.
918 * thread.c (threads_executing): New global.
919 (init_thread_list): Clear 'threads_executing'.
920 (set_executing): Set or clear 'threads_executing'.
921 (threads_are_executing): New function.
922 (update_threads_executing): New function.
923 (update_thread_list): Use it.
925 2014-10-02 Pedro Alves <palves@redhat.com>
928 * breakpoint.c (update_breakpoints_after_exec): Don't create
929 overlay, longjmp, std terminate nor exception breakpoints here.
931 2014-10-02 Pedro Alves <palves@redhat.com>
933 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
935 * inferior.c (find_inferior_for_program_space): Give preference to
936 the current inferior.
937 * inferior.h (find_inferior_for_program_space): Update comment.
938 * progspace.c (switch_to_program_space_and_thread): Prefer the
939 current inferior if it's bound to the program space requested. If
940 the inferior found doesn't have a PID yet, don't bother looking up
942 * progspace.h (switch_to_program_space_and_thread): Adjust
944 * thread.c (any_thread_of_process, any_live_thread_of_process):
945 Give preference to the current thread.
947 2014-10-01 Pedro Alves <palves@redhat.com>
949 * breakpoint.c (insert_bp_location): Error out if inserting a
950 software breakpoint at a read-only address.
951 * target.c (memory_xfer_check_region): New function, factored out
953 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
955 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
956 against the memory region attributes.
958 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
960 * NEWS: Announce new exit-code field in -list-thread-groups
962 * inferior.c (exit_inferior_1): Don't clear exit code.
963 (inferior_appeared): Clear exit code.
964 * mi/mi-main.c (print_one_inferior): Add printing of the exit
967 2014-10-01 Pedro Alves <palves@redhat.com>
969 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
970 GENERATED" along with emacs/vi read-only markers.
971 * regformats/aarch64.dat: Regenerate.
972 * regformats/arm-with-iwmmxt.dat: Regenerate.
973 * regformats/arm-with-neon.dat: Regenerate.
974 * regformats/arm-with-vfpv2.dat: Regenerate.
975 * regformats/arm-with-vfpv3.dat: Regenerate.
976 * regformats/i386/amd64-avx-linux.dat: Regenerate.
977 * regformats/i386/amd64-avx.dat: Regenerate.
978 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
979 * regformats/i386/amd64-avx512.dat: Regenerate.
980 * regformats/i386/amd64-linux.dat: Regenerate.
981 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
982 * regformats/i386/amd64-mpx.dat: Regenerate.
983 * regformats/i386/amd64.dat: Regenerate.
984 * regformats/i386/i386-avx-linux.dat: Regenerate.
985 * regformats/i386/i386-avx.dat: Regenerate.
986 * regformats/i386/i386-avx512-linux.dat: Regenerate.
987 * regformats/i386/i386-avx512.dat: Regenerate.
988 * regformats/i386/i386-linux.dat: Regenerate.
989 * regformats/i386/i386-mmx-linux.dat: Regenerate.
990 * regformats/i386/i386-mmx.dat: Regenerate.
991 * regformats/i386/i386-mpx-linux.dat: Regenerate.
992 * regformats/i386/i386-mpx.dat: Regenerate.
993 * regformats/i386/i386.dat: Regenerate.
994 * regformats/i386/x32-avx-linux.dat: Regenerate.
995 * regformats/i386/x32-avx.dat: Regenerate.
996 * regformats/i386/x32-avx512-linux.dat: Regenerate.
997 * regformats/i386/x32-avx512.dat: Regenerate.
998 * regformats/i386/x32-linux.dat: Regenerate.
999 * regformats/i386/x32.dat: Regenerate.
1000 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1001 * regformats/mips-dsp-linux.dat: Regenerate.
1002 * regformats/mips-linux.dat: Regenerate.
1003 * regformats/mips64-dsp-linux.dat: Regenerate.
1004 * regformats/mips64-linux.dat: Regenerate.
1005 * regformats/nios2-linux.dat: Regenerate.
1006 * regformats/rs6000/powerpc-32.dat: Regenerate.
1007 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1008 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1009 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1010 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1011 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1012 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1013 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1014 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1015 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1016 * regformats/s390-linux32.dat: Regenerate.
1017 * regformats/s390-linux32v1.dat: Regenerate.
1018 * regformats/s390-linux32v2.dat: Regenerate.
1019 * regformats/s390-linux64.dat: Regenerate.
1020 * regformats/s390-linux64v1.dat: Regenerate.
1021 * regformats/s390-linux64v2.dat: Regenerate.
1022 * regformats/s390-te-linux64.dat: Regenerate.
1023 * regformats/s390x-linux64.dat: Regenerate.
1024 * regformats/s390x-linux64v1.dat: Regenerate.
1025 * regformats/s390x-linux64v2.dat: Regenerate.
1026 * regformats/s390x-te-linux64.dat: Regenerate.
1027 * regformats/tic6x-c62x-linux.dat: Regenerate.
1028 * regformats/tic6x-c62x.dat: Regenerate.
1029 * regformats/tic6x-c64x-linux.dat: Regenerate.
1030 * regformats/tic6x-c64x.dat: Regenerate.
1031 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1032 * regformats/tic6x-c64xp.dat: Regenerate.
1034 2014-10-01 Pedro Alves <palves@redhat.com>
1036 * features/Makefile: Update comments.
1037 (XMLTOC): List all xml files we build C files from.
1038 (clean-cfiles): New rule.
1040 2014-10-01 Pedro Alves <palves@redhat.com>
1042 * features/i386/amd64-avx512-linux.c: Regenerate.
1043 * features/i386/amd64-avx512.c: Regenerate.
1044 * features/i386/x32-avx512-linux.c: Regenerate.
1045 * features/i386/x32-avx512.c: Regenerate.
1047 2014-10-01 Pedro Alves <palves@redhat.com>
1049 * features/Makefile (WHICH): Remove arm-with-m,
1050 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1052 2014-10-01 Pedro Alves <palves@redhat.com>
1054 * features/Makefile (clean): New rule.
1056 2014-10-01 Pedro Alves <palves@redhat.com>
1058 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1059 (zmm14h): Add missing end quotes.
1061 2014-10-01 Pedro Alves <palves@redhat.com>
1063 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1064 * features/aarch64.c: Regenerate.
1066 2014-09-30 Don Breazeal <donb@codesourcery.com>
1068 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1069 code so as to work with follow_fork_inferior.
1070 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1071 (inf_ttrace_create_inferior): Remove reference to
1072 inf_ttrace_vfork_ppid.
1073 (inf_ttrace_attach): Ditto.
1074 (inf_ttrace_detach): Ditto.
1075 (inf_ttrace_kill): Use current_inferior instead of
1076 inf_ttrace_vfork_ppid.
1077 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1078 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1079 inferior away from the parent.
1080 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1082 (follow_fork_inferior): New function.
1083 (follow_inferior_reset_breakpoints): Make function static.
1084 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1085 * linux-nat.c (linux_child_follow_fork): Move target-independent
1086 code to infrun.c:follow_fork_inferior.
1088 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1090 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1091 * gdbarch.c: Regenerate.
1092 * gdbarch.h: Likewise.
1093 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1094 gdbarch method 'regset_from_core_section'.
1095 (get_core_register_section): Remove handling for the case that
1096 regset == NULL and regset_from_core_section is defined.
1097 (get_core_registers): Drop check for deleted method.
1098 * procfs.c (procfs_do_thread_registers): Adjust comment.
1100 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1102 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1103 (linux_nat_make_corefile_notes): Remove.
1104 (linux_target_install_ops): Do not set target method
1105 'make_corefile_notes'.
1106 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1108 (linux_corefile_thread_callback): Instead of args->collect, call
1109 linux_collect_thread_registers.
1110 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1111 NULL unless there is a regset iterator.
1112 (linux_make_corefile_notes_1): Remove.
1113 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1114 by linux_make_corefile_notes.
1115 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1117 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1119 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1120 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1122 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1124 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1126 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1127 (xtensa_iterate_over_regset_sections): New.
1128 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1130 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1132 * vax-tdep.c (vax_regset_from_core_section): Remove.
1133 (vax_iterate_over_regset_sections): New.
1134 (vax_gdbarch_init): Adjust gdbarch initialization.
1136 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1138 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1139 (tilegx_regset_from_core_section): Remove.
1140 (tilegx_iterate_over_regset_sections): New.
1141 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1143 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1145 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1146 (sparc_iterate_over_regset_sections): New.
1147 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1148 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1150 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1151 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1152 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1153 target method 'make_corefile_notes'.
1155 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1157 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1158 'sizeof_gregset' and 'sizeof_fpregset'.
1159 * sh-tdep.c (sh_regset_from_core_section): Remove.
1160 (sh_iterate_over_regset_sections): New.
1161 (sh_gdbarch_init): Adjust gdbarch initialization.
1162 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1164 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1167 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1169 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1170 (score7_linux_iterate_over_regset_sections): New.
1171 (score_gdbarch_init): Adjust gdbarch initialization.
1173 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1175 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1177 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1178 method 'make_corefile_notes'.
1179 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1180 (ppcfbsd_regset_from_core_section): Remove.
1181 (ppcfbsd_iterate_over_regset_sections): New.
1182 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1184 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1185 (ppcnbsd_iterate_over_regset_sections): New.
1186 (ppcnbsd_init_abi): Adjust.
1187 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1188 (ppcobsd_iterate_over_regset_sections): New.
1189 (ppcobsd_init_abi): Adjust.
1190 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1191 (rs6000_aix_iterate_over_regset_sections): New.
1192 (rs6000_aix_init_osabi): Adjust.
1194 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1196 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1197 (nios2_regset_from_core_section): Remove.
1198 (nios2_iterate_over_regset_sections): New.
1199 (nios2_linux_init_abi): Adjust gdbarch initialization.
1201 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1203 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1204 (am33_iterate_over_regset_sections): New.
1205 (am33_linux_init_osabi): Adjust gdbarch initialization.
1207 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1209 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1210 (mips_linux_iterate_over_regset_sections): New.
1211 (mips_linux_init_abi): Adjust gdbarch initialization.
1212 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1213 (mips64obsd_iterate_over_regset_sections): New.
1214 (mips64obsd_init_abi): Adjust.
1215 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1216 (mipsnbsd_iterate_over_regset_sections): New.
1217 (mipsnbsd_init_abi): Adjust.
1219 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1221 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1222 (m88k_iterate_over_regset_sections): New.
1223 (m88k_gdbarch_init): Adjust gdbarch initialization.
1225 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1227 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1228 (ia64_linux_iterate_over_regset_sections): New.
1229 (ia64_linux_init_abi): Adjust gdbarch initialization.
1231 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1233 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1234 (m68kbsd_iterate_over_regset_sections): New.
1235 (m68kbsd_init_abi): Adjust gdbarch initialization.
1236 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1237 (m68k_linux_iterate_over_regset_sections): New.
1238 (m68k_linux_init_abi): Adjust gdbarch initialization.
1240 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1242 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1243 (m32r_linux_regset_from_core_section): Remove.
1244 (m32r_linux_iterate_over_regset_sections): New.
1245 (m32r_linux_init_abi): Adjust gdbarch initialization.
1247 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1249 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1250 (amd64obsd_iterate_over_regset_sections): New.
1251 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1252 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1254 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1255 regset_from_core_section initialization.
1256 * i386-tdep.c (i386_regset_from_core_section): Remove.
1257 (i386_iterate_over_regset_sections): New.
1258 (i386_gdbarch_init): Adjust gdbarch initialization.
1259 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1260 (i386_iterate_over_regset_sections): New prototype.
1261 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1263 (i386obsd_aout_iterate_over_regset_sections): New.
1264 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1265 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1267 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1268 (amd64fbsd_init_abi): Call fbsd_init_abi.
1269 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1270 (i386fbsd4_init_abi): Call fbsd_init_abi.
1271 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1272 target method 'make_corefile_notes'.
1273 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1275 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1277 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1278 (hppa_hpux_iterate_over_regset_sections): New.
1279 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1280 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1281 (hppa_linux_iterate_over_regset_sections): New.
1282 (hppa_linux_init_abi): Adjust.
1283 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1284 (hppanbsd_iterate_over_regset_sections): New.
1285 (hppanbsd_init_abi): Adjust.
1286 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1287 (hppaobsd_iterate_over_regset_sections): New.
1288 (hppaobsd_init_abi): Adjust.
1290 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1292 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1293 (frv_linux_iterate_over_regset_sections): New.
1294 (frv_linux_init_abi): Adjust gdbarch initialization.
1296 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1298 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1299 (armbsd_iterate_over_regset_sections): New prototype.
1300 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1301 (armbsd_iterate_over_regset_sections): New.
1302 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1305 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1307 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1308 (alpha_linux_iterate_over_regset_sections): New.
1309 (alpha_linux_init_abi): Adjust gdbarch initialization.
1310 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1312 (alphanbsd_iterate_over_regset_sections): New prototype.
1314 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1316 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1318 (aarch64_linux_iterate_over_regset_sections): New.
1319 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1321 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1323 * fbsd-tdep.c: New file.
1324 * fbsd-tdep.h: New file.
1325 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1326 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1327 (ALLDEPFILES): Add fbsd-tdep.c.
1329 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1331 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1333 * gdbarch.h: Regenerate.
1334 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1336 (get_core_register_section): Add parameter 'regset' and use it, if
1337 set. Add parameter 'min_size' and verify the bfd section size
1339 (get_core_registers_cb): Add parameter 'regset' and pass it to
1340 get_core_register section. For the "standard" register sections
1341 ".reg" and ".reg2", set an appropriate default for human_name.
1342 (get_core_registers): Don't abort when the gdbarch has an iterator
1343 but no regset_from_core_section. Add NULL/0 for parameters
1344 'regset'/'min_size' in calls to get_core_register_section.
1345 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1346 'regset' and use it instead of calling the
1347 regset_from_core_section gdbarch method.
1348 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1349 * i386-tdep.c (i386_supply_xstateregset)
1350 (i386_collect_xstateregset, i386_xstateregset): Moved to
1352 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1354 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1355 core file support only if the regset iterator hasn't been set.
1356 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1357 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1358 Moved from i386-tdep.c and renamed to *_linux*.
1359 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1360 each callback invocation. Allow any .reg-xstate size when reading
1362 * amd64-tdep.c (amd64_supply_xstateregset)
1363 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1365 (amd64_regset_from_core_section): Remove.
1366 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1367 install an amd64-specific regset_from_core_section gdbarch method.
1368 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1369 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1370 Moved from amd64-tdep.c and renamed to *_linux*.
1371 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1372 to each callback invocation. Allow any .reg-xstate size when
1373 reading from a core file.
1374 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1375 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1376 each callback invocation.
1377 (arm_linux_init_abi): No longer set the regset_from_core_section
1379 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1380 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1381 each callback invocation.
1382 (ppc_linux_init_abi): No longer set the regset_from_core_section
1384 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1385 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1386 (s390_regset_from_core_section): Remove.
1387 (s390_iterate_over_regset_sections): Add regset parameter to each
1388 callback invocation.
1389 (s390_gdbarch_init): No longer set the regset_from_core_section
1390 gdbarch method. Drop initialization of deleted tdep fields.
1392 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1394 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1395 (amd64_linux_iterate_over_regset_sections): New.
1396 (amd64_linux_init_abi_common): Don't install the regset section
1397 list, but the new iterator in gdbarch.
1398 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1399 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1400 (arm_linux_iterate_over_regset_sections): ...here. New function.
1401 (arm_linux_init_abi): Set iterator instead of section list.
1402 * corelow.c (get_core_registers_cb): New function, logic moved
1404 (get_core_registers): ...loop body here. Use new iterator method
1405 instead of walking through the regset section list.
1406 * gdbarch.sh: Remove 'core_regset_sections'. New method
1407 'iterate_over_regset_sections'. New typedef
1408 'iterate_over_regset_sections_cb'.
1409 * gdbarch.c: Regenerate.
1410 * gdbarch.h: Likewise.
1411 * i386-linux-tdep.c (i386_linux_regset_sections)
1412 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1414 (i386_linux_iterate_over_regset_sections): New.
1415 (i386_linux_init_abi): Don't choose a regset section list, but
1416 install new iterator in gdbarch.
1417 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1418 (linux_collect_regset_section_cb): New function, logic moved
1420 (linux_collect_thread_registers): ...loop body here. Use iterator
1421 method instead of walking through list.
1422 (linux_make_corefile_notes_1): Check for presence of iterator
1423 method instead of regset section list.
1424 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1425 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1426 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1427 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1428 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1429 (ppc_linux_init_abi): Don't choose from above regset section
1430 lists, but install new iterator in gdbarch.
1431 * regset.h (struct core_regset_section): Remove.
1432 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1433 have_linux_v1, have_linux_v2, and have_tdb.
1434 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1435 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1436 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1437 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1438 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1439 (s390_iterate_over_regset_sections): ...here. New function. Use
1441 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1442 regset section lists, but install new iterator.
1444 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1446 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1448 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1450 * progspace.c (print_program_space): Don't prune program spaces
1451 before printing them.
1453 2014-09-25 Pedro Alves <palves@redhat.com>
1455 * infrun.c (user_visible_resume_ptid): Don't check
1456 singlestep_breakpoints_inserted_p.
1458 2014-09-25 Pedro Alves <palves@redhat.com>
1460 * breakpoint.c (should_be_inserted): Add debug output.
1462 2014-09-25 Pedro Alves <palves@redhat.com>
1464 * infrun.c (stepping_past_instruction_at)
1465 (clear_exit_convenience_vars): Point at infrun.h instead of
1467 (handle_signal_stop): Fix typo.
1469 2014-09-24 Yao Qi <yao@codesourcery.com>
1471 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1474 2014-09-22 Gary Benson <gbenson@redhat.com>
1476 * target.c (target_stop): Updated comment.
1478 2014-09-22 Gary Benson <gbenson@redhat.com>
1480 * target/target.h (target_stop_ptid): Renamed as...
1481 (target_stop_and_wait): New function. Updated comment.
1483 (target_continue_ptid): Renamed as...
1484 (target_continue_no_signal): New function. Updated comment.
1487 2014-09-22 Pedro Alves <palves@redhat.com>
1489 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1491 * breakpoint.c (enum ugll_insert_mode): New enum.
1492 (always_inserted_mode): Now a plain boolean.
1493 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1494 (breakpoints_always_inserted_mode): Delete.
1495 (breakpoints_should_be_inserted_now): New function.
1496 (insert_breakpoints): Pass UGLL_INSERT to
1497 update_global_location_list instead of calling
1498 insert_breakpoint_locations manually.
1499 (create_solib_event_breakpoint_1): New, factored out from ...
1500 (create_solib_event_breakpoint): ... this.
1501 (create_and_insert_solib_event_breakpoint): Use
1502 create_solib_event_breakpoint_1 instead of calling
1503 insert_breakpoint_locations manually.
1504 (update_global_location_list): Change parameter type from boolean
1505 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1506 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1507 (update_global_location_list_nothrow): Change parameter type from
1508 boolean to enum ugll_insert_mode.
1509 (_initialize_breakpoint): "breakpoint always-inserted" option is
1510 now a boolean command. Update help text.
1511 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1512 (breakpoints_should_be_inserted_now): New declaration.
1513 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1514 Remove breakpoints_always_inserted_mode check.
1515 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1516 * remote.c (remote_start_remote): Likewise.
1518 2014-09-22 Pedro Alves <palves@redhat.com>
1520 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1521 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1522 Instead, pass UGLL_INSERT to update_global_location_list.
1523 (update_global_location_list): Change parameter type from boolean
1524 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1525 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1526 (create_solib_event_breakpoint_1): New, factored out from ...
1527 (create_solib_event_breakpoint): ... this.
1528 (create_and_insert_solib_event_breakpoint): Use
1529 create_solib_event_breakpoint_1 instead of calling
1530 insert_breakpoint_locations manually.
1531 (update_global_location_list): Handle UGLL_INSERT.
1533 2014-09-22 Pedro Alves <palves@redhat.com>
1535 * breakpoint.c (enum ugll_insert_mode): New enum.
1536 (update_global_location_list)
1537 (update_global_location_list_nothrow): Change parameter type from
1538 boolean to enum ugll_insert_mode. All callers adjusted.
1540 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1542 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1543 SystemTap support in GDB.
1545 2014-09-19 Don Breazeal <donb@codesourcery.com>
1547 * linux-nat.c (linux_handle_extended_wait): Call
1548 linux_ptrace_get_extended_event.
1549 (wait_lwp): Call linux_is_extended_waitstatus.
1550 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1551 and linux_is_extended_waitstatus.
1552 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1553 linux_ptrace_get_extended_event.
1554 (linux_ptrace_get_extended_event): New function.
1555 (linux_is_extended_waitstatus): New function.
1556 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1557 (linux_is_extended_waitstatus): New declarations.
1559 2014-09-19 Yao Qi <yao@codesourcery.com>
1561 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1562 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1563 comments. Callers update.
1564 (dwarf_decode_lines): Likewise.
1565 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1566 comments. Skip the line table if 'lowpc' is greater than
1567 'address'. Don't check
1568 dwarf2_per_objfile->has_section_at_zero.
1570 2014-09-18 Doug Evans <dje@google.com>
1572 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1573 * python/py-symtab.c (stpy_get_producer): New function.
1574 (symtab_object_getset): Add "producer" attribute.
1576 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1579 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1580 (do_captured_read_memory_integer): Remove.
1581 (safe_read_memory_integer): Use target_read_memory directly instead
1582 of catching errors in do_captured_read_memory_integer.
1584 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1586 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1589 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1591 * objc-lang.c (find_implementation_from_class): Remove dead code.
1593 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1596 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1597 "fprintf_unfiltered (gdb_stdlog...)".
1599 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1601 PR breakpoints/12526
1602 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1604 * breakpoint.c (watch_command_1): Use these fields to retain
1605 bitfield information.
1606 (extract_bitfield_from_watchpoint_value): New function.
1607 (watchpoint_check): Use it.
1608 (update_watchpoint): Use it. Optimize the address and length of a
1609 HW watchpoint pointing to a bitfield.
1610 * value.h (unpack_value_bitfield): New prototype.
1611 * value.c (unpack_value_bitfield): Make extern.
1613 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1615 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1617 * gnu-nat.c (inf_threads): New function.
1618 * gnu-nat.h (inf_threads_ftype): New typedef.
1619 (inf_threads): New declaration.
1620 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1621 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1622 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1623 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1624 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1625 (i386_gnu_dr_get_control): New functions.
1626 (reg_addr): New structure.
1627 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1628 i386 debugging register hooks.
1629 * NEWS: Mention this.
1631 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1633 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1634 vector data transfer instructions.
1635 (arm_record_coproc_data_proc): Updated.
1637 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1639 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1640 arm_record_exreg_ld_st_insn.
1641 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1644 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1646 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1647 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1648 processing instructions.
1650 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1652 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1653 for advance SIMD struct ld/st insn.
1654 (thumb2_record_decode_insn_handler): Replace stub handler with
1655 thumb2_record_asimd_struct_ld_st.
1657 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1659 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1660 for asimd, vfp and coprocessor insns.
1661 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1662 and coprocessor insns.
1663 (thumb2_record_coproc_insn): New function.
1664 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1666 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1669 2014-09-13 Doug Evans <xdje42@gmail.com>
1671 * NEWS: Mention new "queue-signal" command.
1672 * infcmd.c (queue_signal_command): New function.
1673 (_initialize_infcmd): Add new queue-signal command.
1675 2014-09-13 Doug Evans <xdje42@gmail.com>
1677 * linux-nat.c (wait_lwp): Add debugging printf.
1678 (linux_nat_wait_1): Ditto.
1680 2014-09-12 Pedro Alves <palves@redhat.com>
1682 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1683 (create_and_insert_solib_event_breakpoint): New functions.
1684 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1685 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1686 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1687 (remove_dbx_link_breakpoint): Delete function.
1688 (insert_dbx_link_bpt_in_file): Use
1689 create_and_insert_solib_event_breakpoint instead of
1690 deprecated_insert_raw_breakpoint.
1691 (procfs_wait): Don't check whether we hit __dbx_link here.
1692 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1694 * solib-irix.c (base_breakpoint): Delete global.
1695 (disable_break): Delete function.
1696 (enable_break): Use create_solib_event_breakpoint
1697 instead of deprecated_insert_raw_breakpoint.
1698 (irix_solib_handle_event): New function.
1699 (irix_solib_create_inferior_hook): Don't run the target or disable
1700 the mapping-complete breakpoint here.
1701 (_initialize_irix_solib): Install irix_solib_handle_event as
1702 so_ops->handle_event hook.
1704 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1705 Ulrich Weigand <uweigand@de.ibm.com>
1708 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1709 instead of read_memory_unsigned_integer.
1711 2014-09-12 Gary Benson <gbenson@redhat.com>
1713 * nat/linux-waitpid.c: Include common-defs.h.
1714 [GDBSERVER]: Add FIXME comment.
1715 [!GDBSERVER]: Don't include defs.h or signal.h.
1716 (linux_debug) [!GDBSERVER]: Remove empty block.
1718 2014-09-12 Gary Benson <gbenson@redhat.com>
1720 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1721 Don't include defs.h or server.h.
1723 2014-09-12 Gary Benson <gbenson@redhat.com>
1725 * nat/linux-btrace.c: Include common-defs.h.
1726 Don't include defs.h, server.h or gdbthread.h.
1727 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1729 2014-09-12 Gary Benson <gbenson@redhat.com>
1731 * common/agent.c: Include common-defs.h.
1732 Don't include defs.h or server.h.
1733 * common/buffer.c: Likewise.
1734 * common/common-debug.c: Likewise.
1735 * common/common-utils.c: Likewise.
1736 * common/errors.c: Likewise.
1737 * common/filestuff.c: Likewise.
1738 * common/format.c: Likewise.
1739 * common/gdb_vecs.c: Likewise.
1740 * common/print-utils.c: Likewise.
1741 * common/ptid.c: Likewise.
1742 * common/rsp-low.c: Likewise.
1743 * common/signals.c: Likewise.
1744 * common/vec.c: Likewise.
1745 * common/xml-utils.c: Likewise.
1746 * nat/linux-osdata.c: Likewise.
1747 * nat/linux-procfs.c: Likewise.
1748 * nat/linux-ptrace.c: Likewise.
1749 * nat/mips-linux-watch.c: Likewise.
1750 * target/waitstatus.c: Likewise.
1752 2014-09-12 Tom Tromey <tromey@redhat.com>
1753 Gary Benson <gbenson@redhat.com>
1755 * common/common-regcache.h: New file.
1756 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1757 * regcache.h: Include common-regcache.h.
1758 (regcache_read_pc): Don't declare.
1759 * regcache.c (get_thread_regcache_for_ptid): New function.
1760 * nat/linux-btrace.c: Don't include regcache.h.
1761 Include common-regcache.h.
1762 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1764 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1766 * regcache.h (struct regset): Declare.
1768 2014-09-11 Pedro Alves <palves@redhat.com>
1771 * main.c: Include "infrun.h".
1772 (catch_command_errors, catch_command_errors_const): Wait for the
1773 foreground command to complete.
1774 * top.c (maybe_wait_sync_command_done): New function, factored out
1776 (maybe_wait_sync_command_done): ... here.
1777 * top.h (maybe_wait_sync_command_done): New declaration.
1779 2014-09-11 Tom Tromey <tromey@redhat.com>
1780 Gary Benson <gbenson@redhat.com>
1782 * common/symbol.h: New file.
1783 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1784 * minsyms.c (find_minimal_symbol_address): New function.
1785 * common/agent.c: Include common/symbol.h.
1786 [!GDBSERVER]: Don't include objfiles.h.
1787 (agent_look_up_symbols): Use find_minimal_symbol_address.
1789 2014-09-11 Gary Benson <gbenson@redhat.com>
1791 * target/target.h (target_stop_ptid, target_continue_ptid):
1793 * target.c (target_stop_ptid, target_continue_ptid): New
1795 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1796 (agent_run_command): Always use target_stop_ptid and
1797 target_continue_ptid.
1799 2014-09-11 Tom Tromey <tromey@redhat.com>
1800 Gary Benson <gbenson@redhat.com>
1802 * target/target.h: New file.
1803 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1804 * target.h: Include target/target.h.
1805 (target_read_memory, target_write_memory): Don't declare.
1806 * target.c (target_read_uint32): New function.
1807 * common/agent.c: Include target/target.h.
1808 [!GDBSERVER]: Don't include target.h.
1809 (helper_thread_id): Type changed to uint32_t.
1810 (agent_get_helper_thread_id): Use target_read_uint32.
1811 (agent_run_command): Always use target_read_memory and
1812 target_write_memory.
1813 (agent_capability): Type changed to uint32_t.
1814 (agent_capability_check): Use target_read_uint32.
1816 2014-09-11 Gary Benson <gbenson@redhat.com>
1818 * common/common-debug.h (show_debug_regs): Declare.
1819 * common/common-debug.c (show_debug_regs): Define.
1820 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1821 all uses with show_debug_regs. Replace all uses that considered
1822 debug_hw_points as a multi-value integer with straight boolean
1824 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1825 with show_debug_regs.
1826 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1827 all uses with show_debug_regs.
1828 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1829 uses with show_debug_regs.
1831 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1833 * findvar.c (address_from_register): Handle targets requiring
1834 a special conversion routine even for plain pointer types.
1836 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1838 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1839 (store_register): Do not call exec_one_dummy_insn.
1841 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1843 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1844 dereference it first. Use value_enclosing_type instead of
1846 (ada_array_length): Likewise.
1848 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1850 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1851 Adjust function implementation and documentation accordingly.
1852 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1853 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1854 Update call to ada_value_ptr_subscript.
1856 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1858 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1859 instead of VAL's type.
1861 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1863 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1865 2014-09-09 Doug Evans <xdje42@gmail.com>
1868 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1869 last parameter to pkg-config, not first.
1870 * configure.ac: Pass --with-guile provided pkg-config path to
1871 GDB_GUILE_PROGRAM_NAMES.
1872 * configure: Regenerate.
1874 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1876 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1879 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1881 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1882 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1883 the list of sections determining GDB_OSABI_IRIX.
1885 2014-09-09 James Hogan <james.hogan@imgtec.com>
1887 * MAINTAINERS (Write After Approval): Add "James Hogan".
1889 2014-09-09 James Hogan <james.hogan@imgtec.com>
1891 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1893 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1895 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1897 2014-09-08 Doug Evans <xdje42@gmail.com>
1900 * guile.c: #include <signal.h>.
1901 (_initialize_guile): Block SIGCHLD while initializing Guile.
1903 Replaces the following, which is reverted.
1905 2014-07-26 Doug Evans <xdje42@gmail.com>
1908 * configure.ac: Add check for header gc/gc.h.
1909 Add check for function setenv.
1910 * configure: Regenerate.
1911 * config.in: Regenerate.
1912 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1914 2014-09-08 Doug Evans <xdje42@gmail.com>
1916 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1917 with named constant. Fix style of pointer comparison.
1918 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1920 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1923 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1924 decide whether we display the command on "show user".
1925 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1926 printing command name.
1927 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1928 * cli/cli-decode.c (cli_user_command_p): Create helper function
1929 to verify whether cmd_list_element is a user-defined command.
1931 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1934 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1935 Fix goto out of TRY_CATCH.
1937 2014-09-06 Doug Evans <xdje42@gmail.com>
1938 Tom Tromey <tromey@redhat.com>
1941 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1942 $_any_caller_matches.
1943 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1944 * python/lib/gdb/function/caller_is.py: New file.
1946 2014-09-06 Doug Evans <xdje42@gmail.com>
1948 * infcmd.c (program_info): Fix typo.
1950 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1953 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1954 'number'. New variable 'has_digit'. Rewrite code to deal with
1955 subexpressions on SDT probes.
1957 2014-09-04 Pedro Alves <palves@redhat.com>
1959 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1960 the input is only one character long.
1962 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1965 * f-valprint.c (f_val_print): Specify the correct print option to
1966 use when printing integer values.
1968 2014-09-04 Gary Benson <gbenson@redhat.com>
1970 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1971 Remove code to cope with LWPs wrapped as PIDs.
1972 Add assertions to ensure no wrapped LWPs are passed.
1974 2014-09-04 Pedro Alves <palves@redhat.com>
1976 * value.c (value_ranges_copy_adjusted): New function, factored out
1978 (value_contents_copy_raw): ... here.
1979 (unpack_value_bits_as_long_1): Rename back to ...
1980 (unpack_bits_as_long): ... this. Remove 'original_value' and
1981 'result' parameters. Change return type to LONGEST.
1982 (unpack_value_bits_as_long): Delete.
1983 (unpack_value_field_as_long_1): Delete.
1984 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1985 (unpack_value_bitfield): New function.
1986 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1987 (value_fetch_lazy): Use unpack_value_bitfield.
1988 * value.h (unpack_value_bits_as_long): Delete declaration.
1990 2014-09-03 Sasha Smundak <asmundak@google.com>
1992 * python/py-frame.c (frapy_read_register): New function.
1994 2014-09-03 James Hogan <james.hogan@imgtec.com>
1996 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1997 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1999 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2002 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2004 (add_cmd): Set "completer_handle_brkchars" to NULL.
2005 * cli/cli-decode.h (struct cmd_list_element)
2006 <completer_handle_brkchars>: New field.
2007 * command.h (completer_ftype_void): New typedef.
2008 (set_cmd_completer_handle_brkchars): New prototype.
2009 * completer.c (set_gdb_completion_word_break_characters): New
2011 (complete_line_internal): Call "completer_handle_brkchars"
2012 callback from command.
2013 * completer.h: Include "command.h".
2014 (set_gdb_completion_word_break_characters): New prototype.
2015 * python/py-cmd.c (cmdpy_completer_helper): New function.
2016 (cmdpy_completer_handle_brkchars): New function.
2017 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2018 (cmdpy_init): Set completer_handle_brkchars to
2019 cmdpy_completer_handle_brkchars.
2021 2014-09-03 Gary Benson <gbenson@redhat.com>
2023 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2024 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2025 Loop conditions changed to equivalent form.
2026 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2027 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2028 ALL_DEBUG_ADDRESS_REGISTERS.
2030 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2032 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2035 2014-09-02 Doug Evans <dje@google.com>
2037 * typeprint.c (find_global_typedef): Fix comment.
2039 2014-09-02 Gary Benson <gbenson@redhat.com>
2041 * i386-nat.h: Renamed as...
2042 * x86-nat.h: New file. All type, function and variable name
2043 prefixes changed from "i386_" to "x86_". All references updated.
2044 * i386-nat.c: Renamed as...
2045 * x86-nat.c: New file. All type, function and variable name
2046 prefixes changed from "i386_" to "x86_". All references updated.
2047 * common/i386-xstate.h: Renamed as...
2048 * common/x86-xstate.h: New file. All type, function and variable
2049 name prefixes changed from "i386_" to "x86_". All references
2051 * nat/i386-cpuid.h: Renamed as...
2052 * nat/x86-cpuid.h: New file. All type, function and variable name
2053 prefixes changed from "i386_" to "x86_". All references updated.
2054 * nat/i386-gcc-cpuid.h: Renamed as...
2055 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2056 name prefixes changed from "i386_" to "x86_". All references
2058 * nat/i386-dregs.h: Renamed as...
2059 * nat/x86-dregs.h: New file. All type, function and variable name
2060 prefixes changed from "i386_" to "x86_". All references updated.
2061 * nat/i386-dregs.c: Renamed as...
2062 * nat/x86-dregs.c: New file. All type, function and variable name
2063 prefixes changed from "i386_" to "x86_". All references updated.
2065 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2067 * varobj.c (_initialize_varobj): Move to the end of file.
2069 2014-08-29 Gary Benson <gbenson@redhat.com>
2071 * common/common-exceptions.h: New file.
2072 * common/common-exceptions.c: Likewise.
2073 * Makefile.in (SFILES): Add common/common-exceptions.c.
2074 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2075 (COMMON_OBS): Add common-exceptions.o.
2076 (common-exceptions.o): New rule.
2077 * exceptions.h (common-exceptions.h): Include.
2078 (gdb_setjmp.h): Do not include.
2079 (return_reason): Moved to common-exceptions.h.
2080 (enum return_reason): Likewise.
2081 (RETURN_MASK): Likewise.
2082 (typedef return_mask): Likewise.
2083 (enum errors): Likewise.
2084 (struct gdb_exception): Likewise.
2085 (exceptions_state_mc_init): Likewise.
2086 (exceptions_state_mc_action_iter): Likewise.
2087 (exceptions_state_mc_action_iter_1): Likewise.
2088 (TRY_CATCH): Likewise.
2089 (throw_exception): Likewise.
2090 (throw_verror): Likewise.
2091 (throw_vquit): Likewise.
2092 (throw_error): Likewise.
2093 (throw_quit): Likewise.
2094 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2095 (enum catcher_action): Likewise.
2096 (struct catcher): Likewise.
2097 (current_catcher): Likewise.
2098 (catcher_list_size): Likewise.
2099 (exceptions_state_mc_init): Likewise.
2100 (catcher_pop): Likewise.
2101 (exceptions_state_mc): Likewise.
2102 (exceptions_state_mc_action_iter): Likewise.
2103 (exceptions_state_mc_action_iter_1): Likewise.
2104 (throw_exception): Likewise.
2105 (exception_messages): Likewise.
2106 (exception_messages_size): Likewise.
2107 (throw_it): Likewise.
2108 (throw_verror): Likewise.
2109 (throw_vquit): Likewise.
2110 (throw_error): Likewise.
2111 (throw_quit): Likewise.
2112 (prepare_to_throw_exception): New function.
2114 2014-08-29 Gary Benson <gbenson@redhat.com>
2116 * common/gdb_setjmp.h: New file.
2117 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2118 * configure.ac: Move sigsetjmp check...
2119 * common/common.m4: ...here.
2120 * configure: Regenerate.
2121 * cp-support.c (SIGJMP_BUF): Delete.
2122 (SIGSETJMP): Likewise.
2123 (SIGLONGJMP): Likewise.
2124 * exceptions.h (gdb_setjmp.h): Include.
2125 (setjmp.h): Do not include.
2126 (EXCEPTIONS_SIGJMP_BUF): Delete.
2127 (EXCEPTIONS_SIGSETJMP): Likewise.
2128 (EXCEPTIONS_SIGLONGJMP): Likewise.
2129 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2131 * exceptions.c: Likewise.
2133 2014-08-29 Gary Benson <gbenson@redhat.com>
2135 * cleanups.h: Moved to...
2136 * common/cleanups.h: New file.
2137 * cleanups.c: Moved to...
2138 * common/cleanups.c: New file. Include common-defs.h and
2139 cleanups.h. Do not include defs.h.
2140 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2141 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2142 (cleanups.o): New rule.
2144 2014-08-29 Gary Benson <gbenson@redhat.com>
2146 * common/errors.h (internal_warning): New declaration.
2147 (internal_vwarning): Likewise.
2148 * common/errors.c (internal_warning): New function.
2149 * utils.h (internal_warning): Don't declare.
2150 (internal_vwarning): Likewise.
2151 * utils.c (internal_warning): Removed.
2153 2014-08-29 Gary Benson <gbenson@redhat.com>
2155 * main.c (captured_main): Use warning during startup.
2156 Prefix startup warning messages with command name.
2158 2014-08-29 Gary Benson <gbenson@redhat.com>
2160 * main.c (captured_main): Handle usage errors with error.
2162 2014-08-29 Gary Benson <gbenson@redhat.com>
2164 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2165 exit pair with a call to error. Wrap the message with _().
2167 2014-08-29 Gary Benson <gbenson@redhat.com>
2169 * main.c (captured_main): Replace a fprintf/exit
2170 pair with a call to error. Wrap the message with _().
2172 2014-08-29 Gary Benson <gbenson@redhat.com>
2174 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2175 pairs with calls to error. Wrap the message with _().
2177 2014-08-29 Gary Benson <gbenson@redhat.com>
2179 * utils.c (vwarning): Protect calls to target_terminal_ours
2182 2014-08-29 Gary Benson <gbenson@redhat.com>
2184 * exceptions.c (print_flush): Protect calls to
2185 target_terminal_ours and wrap_here.
2187 2014-08-29 Gary Benson <gbenson@redhat.com>
2189 * utils.h (filtered_printing_initialized): New declaration.
2190 * utils.c (abort_with_message): New function.
2191 (internal_vproblem): Use abort_with_message for first level
2192 recursive internal problems, and if gdb_stderr is not set up.
2193 Protect calls to target_terminal_ours, begin_line and query.
2195 2014-08-28 Doug Evans <dje@google.com>
2197 * symtab.c (in_prologue): Move definition to better spot.
2198 (skip_prologue_using_sal): Ditto.
2200 2014-08-28 Doug Evans <dje@google.com>
2202 * symtab.c (find_function_start_sal): Move definition to better spot.
2204 2014-08-28 Yao Qi <yao@codesourcery.com>
2206 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2207 found_stack_adjust in forward scan. Remove condition check
2208 on found_stack_adjust which is always true. Indent the code.
2210 2014-08-28 Yao Qi <yao@codesourcery.com>
2212 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2213 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2214 (dwarf_decode_lines): Remove argument
2215 want_line_info. Remove condition check on want_line_info.
2218 2014-08-27 Doug Evans <dje@google.com>
2220 * dwarf2read.c (dwarf_record_line): Fix typo.
2222 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2224 * target.h (struct target_ops::to_terminal_save_ours): Remove
2226 (target_terminal_save_ours): Remove macro.
2227 * target-delegates.c: Regenerate.
2228 * inf-child.c (inf_child_target): Don't set the nonexistent
2229 field to_terminal_save_ours.
2230 * inferior.h (child_terminal_save_ours): Remove declaration.
2231 * terminal.h (gdb_save_tty_state): New declaration.
2232 * inflow.c (child_terminal_save_ours): Rename to ...
2233 (gdb_save_tty_state): ... this.
2234 * tui/tui.c: Include terminal.h.
2235 (tui_enable): Use gdb_save_tty_state instead of
2236 target_terminal_save_ours.
2237 (tui_disable): Likewise.
2239 2014-08-25 Doug Evans <dje@google.com>
2241 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2242 Pass NULL instead of 0 for context pointer.
2244 2014-08-25 Yao Qi <yao@codesourcery.com>
2246 * dwarf2read.c: Fix grammatical error.
2248 2014-08-24 Yao Qi <yao@codesourcery.com>
2250 * dwarf2read.c (scan_partial_symbols): Update comments.
2251 Rename argument 'need_pc' with 'set_addrmap'.
2252 (add_partial_namespace): Rename argument 'need_pc' with
2254 (add_partial_module): Likewise.
2255 (add_partial_subprogram): Likewise. Update comments.
2256 (dwarf2_name): Fix typo.
2258 2014-08-22 Doug Evans <dje@google.com>
2261 * dwarf2read.c (dwarf_record_line_p): New function.
2262 (dwarf_decode_lines_1): Ignore subsequent line number entries
2263 for the same line if any entry had a non-zero discriminator.
2265 2014-08-22 Doug Evans <dje@google.com>
2267 * buildsym.h (record_line_ftype): New typedef.
2268 (record_line): Use it.
2269 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2270 (dwarf_decode_lines_1): Call them.
2272 2014-08-22 Yao Qi <yao@codesourcery.com>
2274 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2275 (ctf_end): Remove code.
2277 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2279 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2280 (linux_make_corefile_notes): call update_thread_list, protected against
2283 2014-08-21 Pedro Alves <palves@redhat.com>
2285 * infcmd.c (attach_command): Remove comment.
2287 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2289 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2290 unsigned LONGEST to ULONGEST.
2292 2014-08-20 Pedro Alves <palves@redhat.com>
2294 * Makefile.in (check-read1): New rule.
2296 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2298 * value.c (value_from_contents_and_address): Strip resolved_type's
2299 typedef layers before checking its TYPE_DATA_LOCATION.
2301 2014-08-20 Pedro Alves <palves@redhat.com>
2303 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2305 2014-08-20 Yao Qi <yao@codesourcery.com>
2307 * amd64-tdep.c (amd64_classify): Add a blank line after the
2308 example. Move "*/" to a new line.
2309 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2310 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2311 * dwarf2read.c (psymtab_include_file_name): Likewise.
2313 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2314 Pedro Alves <palves@redhat.com>
2318 * ada-lang.c (coerce_unspec_val_to_type): Use
2319 value_contents_copy_raw.
2320 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2321 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2322 * cp-valprint.c (cp_print_value_fields): Let the common printing
2323 code handle optimized out values.
2324 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2325 * d-valprint.c (dynamic_array_type): Use
2326 value_bits_any_optimized_out.
2327 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2328 check_any_valid fields.
2329 (check_pieced_value_bits): Delete and inline ...
2330 (check_pieced_synthetic_pointer): ... here.
2331 (check_pieced_value_validity): Delete.
2332 (check_pieced_value_invalid): Delete.
2333 (pieced_value_funcs): Remove check_validity and check_any_valid
2335 (read_pieced_value): Use mark_value_bits_optimized_out.
2336 (write_pieced_value): Switch to use
2337 mark_value_bytes_optimized_out.
2338 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2339 of assuming the whole value is optimized out.
2340 * findvar.c (read_frame_register_value): Remove special handling
2341 of optimized out registers.
2342 (value_from_register): Use mark_value_bytes_optimized_out.
2343 * frame-unwind.c (frame_unwind_got_optimized): Use
2344 mark_value_bytes_optimized_out.
2345 * jv-valprint.c (java_value_print): Adjust.
2346 (java_print_value_fields): Let the common printing code handle
2347 optimized out values.
2348 * mips-tdep.c (mips_print_register): Remove special handling of
2349 optimized out registers.
2350 * opencl-lang.c (lval_func_check_validity): Delete.
2351 (lval_func_check_any_valid): Delete.
2352 (opencl_value_funcs): Remove check_validity and check_any_valid
2354 * p-valprint.c (pascal_object_print_value_fields): Let the common
2355 printing code handle optimized out values.
2356 * stack.c (read_frame_arg): Remove special handling of optimized
2357 out values. Fetch both VAL and ENTRYVAL before comparing
2358 contents. Adjust to value_available_contents_eq rename.
2359 * valprint.c (valprint_check_validity)
2360 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2361 (val_print_array_elements): Adjust.
2362 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2363 (value_bits_any_optimized_out): New function.
2364 (value_entirely_covered_by_range_vector): New function, factored
2365 out from value_entirely_unavailable.
2366 (value_entirely_unavailable): Reimplement.
2367 (value_entirely_optimized_out): New function.
2368 (insert_into_bit_range_vector): New function, factored out from
2369 mark_value_bits_unavailable.
2370 (mark_value_bits_unavailable): Reimplement.
2371 (struct ranges_and_idx): New struct.
2372 (find_first_range_overlap_and_match): New function, factored out
2373 from value_available_contents_bits_eq.
2374 (value_available_contents_bits_eq): Rename to ...
2375 (value_contents_bits_eq): ... this. Check both unavailable
2376 contents and optimized out contents.
2377 (value_available_contents_eq): Rename to ...
2378 (value_contents_eq): ... this.
2379 (allocate_value_lazy): Remove reference to the old optimized_out
2381 (allocate_optimized_out_value): Use
2382 mark_value_bytes_optimized_out.
2383 (require_not_optimized_out): Adjust to check whether the
2384 optimized_out vec is empty.
2385 (ranges_copy_adjusted): New function, factored out from
2386 value_contents_copy_raw.
2387 (value_contents_copy_raw): Also copy the optimized out ranges.
2388 Assert the destination ranges aren't optimized out.
2389 (value_contents_copy): Update comment, remove call to
2390 require_not_optimized_out.
2391 (value_contents_equal): Adjust to check whether the optimized_out
2393 (set_value_optimized_out, value_optimized_out_const): Delete.
2394 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2396 (value_entirely_optimized_out, value_bits_valid): Delete.
2397 (value_copy): Take a VEC copy of the 'optimized_out' field.
2398 (value_primitive_field): Remove special handling of optimized out.
2399 (value_fetch_lazy): Assert that lazy values have no unavailable
2400 regions. Use value_bits_any_optimized_out. Remove some special
2401 handling for optimized out values.
2402 * value.h: Add intro comment about <optimized out> and
2404 (struct lval_funcs): Remove check_validity and check_any_valid
2406 (set_value_optimized_out, value_optimized_out_const): Remove.
2407 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2409 (value_bits_any_optimized_out): New declaration.
2410 (value_bits_valid): Delete declaration.
2411 (value_available_contents_eq): Rename to ...
2412 (value_contents_eq): ... this, and extend comments.
2414 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2416 Fix -fsanitize=address on unreadable inferior strings.
2417 * valprint.c (val_print_string): Fix access before BUFFER.
2419 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2421 * target.c (target_struct_size): Remove.
2422 (target_struct_allocsize): Remove.
2423 (DEFAULT_ALLOCSIZE): Remove.
2424 (target_ops_p): New typedef.
2425 (DEF_VEC_P (target_ops_p)): New vector type.
2426 (target_structs): Change type to VEC (target_ops_p).
2427 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2428 (find_default_run_target): Rewrite for loop following changes to
2431 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2433 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2434 Adjust code accordingly. Adjust function description comment.
2436 2014-08-19 Yao Qi <yao@codesourcery.com>
2438 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2441 2014-08-19 Alan Modra <amodra@gmail.com>
2443 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2444 * config.in: Regenerate.
2445 * configure: Regenerate.
2447 2014-08-19 Tom Tromey <tromey@redhat.com>
2448 Gary Benson <gbenson@redhat.com>
2450 * common/common-debug.h: New file.
2451 * common/common-debug.c: Likewise.
2452 * debug.c: Likewise.
2453 * Makefile.in (SFILES): Add common/common-debug.c.
2454 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2455 (COMMON_OBS): Add common-debug.o and debug.o.
2456 (common-debug.o): New rule.
2457 * common/common-defs.h: Include common-debug.h.
2458 * common/agent.c (debug_agent_printf): New function.
2459 (DEBUG_AGENT): Redefine.
2460 * nat/i386-dregs.c (debug_printf): Undefine.
2462 2014-08-19 Gary Benson <gbenson@redhat.com>
2464 * common/common-defs.h: Include print-utils.h.
2465 * utils.h: Do not include print-utils.h.
2467 2014-08-19 Tom Tromey <tromey@redhat.com>
2468 Gary Benson <gbenson@redhat.com>
2470 * common/common-types.h: New file.
2471 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2472 * common/common-defs.h: Include common-types.h.
2473 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2476 2014-08-19 Tom Tromey <tromey@redhat.com>
2477 Gary Benson <gbenson@redhat.com>
2479 * common/errors.h: New file.
2480 * common/errors.c: Likewise.
2481 * Makefile.in (SFILES): Add common/errors.c.
2482 (HFILES_NO_SRCDIR): Add common/errors.h.
2483 (COMMON_OBS): Add errors.o.
2484 (errors.o): New rule.
2485 * common/common-defs.h: Include errors.h.
2486 * utils.h (perror_with_name, error, verror, warning, vwarning):
2488 * common/common-utils.h: (malloc_failure, internal_error):
2491 2014-08-19 Gary Benson <gbenson@redhat.com>
2493 * utils.c (internal_vproblem): Always print the message.
2495 2014-08-18 Doug Evans <dje@google.com>
2497 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2499 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2501 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2502 Return 0 if TYPE is dynamic.
2503 (print_range): Add handling of dynamic ranges.
2505 2014-08-18 Keven Boell <keven.boell@intel.com>
2506 Joel Brobecker <brobecker@adacore.com>
2508 * gdbtypes.h (struct main_type): Add field "data_location".
2509 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2510 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2511 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2512 a dynamic data location.
2513 (resolve_dynamic_type): Add DW_AT_data_location handling.
2514 (copy_recursive, copy_type): Copy the data_location information
2516 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2517 * value.c (value_from_contents_and_address): Add
2518 DW_AT_data_location handling.
2520 2014-08-18 Keven Boell <keven.boell@intel.com>
2521 Joel Brobecker <brobecker@adacore.com>
2523 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2524 field "get_object_address".
2525 * dwarf2expr.c (execute_stack_op): Add handling for
2526 DW_OP_push_object_address.
2527 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2528 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2529 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2530 (dwarf_expr_get_obj_addr): New function.
2531 (dwarf_expr_ctx_funcs): Add get_object_address field.
2532 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2533 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2534 (dwarf2_evaluate_property): Add parameter "address". Use it.
2535 (needs_get_obj_addr): New function.
2536 (needs_frame_ctx_funcs): Add get_object_address field.
2537 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2538 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2539 (resolve_dynamic_array): Likewise.
2541 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2543 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2544 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2545 fixed value for records and unions for which some GNAT encodings
2548 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2550 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2551 rewrite to avoid "else if" and "else" constructs. Should be
2552 a no-op in practice.
2554 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2556 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2559 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2562 * eval.c: Update all calls to find_overload_match.
2563 * valarith.c: Likewise.
2564 (value_user_defined_cpp_op, value_user_defined_op): New
2565 argument NOSIDE. Update all callers.
2566 * valops.c (find_overload_match): New argument NOSIDE.
2567 * value.h (find_overload_match): Update signature.
2569 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2571 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2572 'items' methods instead of 'iteritems' method on dictionaries.
2574 2014-08-15 Doug Evans <dje@google.com>
2576 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2579 2014-08-15 Doug Evans <dje@google.com>
2581 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2583 2014-08-15 Doug Evans <dje@google.com>
2585 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2587 2014-08-15 Doug Evans <dje@google.com>
2589 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2592 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2594 * dcache.h: Include target.h, to avoid compile time warnings.
2596 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2598 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2599 frame_info" partial declaration.
2600 * gdbarch.h: Regenerate.
2602 2014-08-15 Yao Qi <yao@codesourcery.com>
2604 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2605 Add parameter 'decode_for_pst_p'. Callers update.
2607 2014-08-13 Yao Qi <yao@codesourcery.com>
2610 * configure.ac: Use local variable 'pos'.
2611 * configure: Regenerated.
2613 2014-08-11 Doug Evans <dje@google.com>
2615 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2616 message, it is redundant with "Reading symbols from ..." message.
2618 2014-08-10 Doug Evans <xdje42@gmail.com>
2620 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2622 2014-08-09 Yao Qi <yao@codesourcery.com>
2625 * remote.c (remote_xfer_partial): Remove dead code.
2627 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2629 * ia64-linux-tdep.c: Include "regset.h".
2630 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2631 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2632 (ia64_linux_supply_fpregset): New function.
2633 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2634 (ia64_linux_regset_from_core_section): New function.
2635 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2638 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2640 * m68klinux-tdep.c: Include "regset.h".
2641 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2642 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2643 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2644 (m68k_linux_regset_from_core_section): New function.
2645 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2648 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2650 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2651 function. Move logic to...
2652 (tilegx_linux_regmap): ... this new register map.
2653 (tilegx_linux_regset): Refer to register map, replace supply
2654 method by regcache_supply_regset, and add collect method.
2655 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2656 TILEGX_FIRST_EASY_REGNUM.
2658 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2660 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2661 that calls regcache_supply_regset and handles the EPC register
2662 separately. Move main logic to...
2663 (score7_linux_gregmap): ... this new register map.
2664 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2665 (score7_linux_gregset): Refer to register map. Add collect method.
2666 (score7_linux_regset_from_core_section): Replace
2667 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2668 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2669 (struct regset): Delete unused forward declaraction.
2670 (struct pt_regs): Delete structure definition.
2671 (elf_gregset_t): Delete typedef.
2673 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2675 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2676 (nios2_core_regset): Add collect method.
2678 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2680 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2681 platform-independent and don't write to read-only input buffer.
2682 (m32r_linux_collect_gregset): New function.
2683 (m32r_linux_gregset): Add collect method.
2685 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2687 * hppa-linux-tdep.c (greg_map): Rename to...
2688 (hppa_linux_gregmap): ... this. Also convert to
2689 regcache_map_entry format.
2690 (hppa_linux_supply_regset): Delete function.
2691 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2692 (hppa_linux_fpregmap): ... this new register map.
2693 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2694 register map, replace supply method by regcache_supply_regset, and
2695 add collect method regcache_collect_regset.
2697 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2699 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2700 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2701 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2702 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2703 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2704 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2705 (frv_linux_supply_gregset): Replace main logic by call to
2706 regcache_supply_regset, but keep clearing gr32-gr63.
2707 (frv_linux_supply_fpregset): Delete function.
2708 (frv_linux_gregset): Refer to appropriate register map and add
2709 regcache_collect_regset as the collect method.
2710 (frv_linux_fpregset): Likewise. Also exchange the supply method
2711 by regcache_supply_regset.
2713 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2715 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2716 by call to alpha_supply_int_regs.
2717 (alpha_linux_collect_gregset): New function.
2718 (alpha_linux_supply_fpregset): Replace logic by call to
2719 alpha_supply_fp_regs.
2720 (alpha_linux_collect_fpregset): New function.
2721 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2723 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2725 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2726 by call to regcache_collect_regset.
2727 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2728 instead of aarch64_linux_supply_gregset/_fpregset.
2729 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2730 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2731 header file instead.
2732 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2733 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2734 functions. Move logic to ...
2735 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2737 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2738 refer to new register maps, replace *_regset_from_core by
2739 regcache_supply_regset, and also use regcache_collect_regset.
2740 * aarch64-linux-tdep.h: Include "regset.h".
2741 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2743 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2744 macros, moved from C source file.
2745 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2746 variable declarations.
2748 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2750 * s390-linux-nat.c: Include "regset.h".
2751 (regmap_gregset): Delete macro.
2752 (s390_64_regmap_gregset): New register map for
2753 regcache_supply/_collect_regset.
2754 (s390_64_gregset): New regset.
2755 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2756 (regmap_fpregset): Delete macro.
2757 (s390_native_supply, s390_native_collect): Delete functions.
2758 (supply_gregset, fill_gregset): Replace s390-specific regmap
2759 handling by a call to regcache_supply/_collect_regset.
2760 (supply_fpregset, fill_fpregset): Call regcache_supply/
2761 _collect_regset instead of s390_native_supply/_collect.
2762 (fetch_regset, store_regset): Likewise. Also change the last
2763 parameter to a regset instead of a regmap.
2764 (s390_linux_fetch_inferior_registers)
2765 (390_linux_store_inferior_registers): Adjust last parameter in
2766 calls to fetch_regset and store_regset.
2767 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2768 (s390_gregmap): ... this. Also make static const and convert to
2769 regcache_map_entry format.
2770 (s390x_regmap_gregset): Delete.
2771 (s390_regmap_fpregset): Rename to...
2772 (s390_fpregmap): ... this. Make static const and convert to
2773 regcache_map_entry format.
2774 (s390_regmap_upper, s390_regmap_last_break)
2775 (s390x_regmap_last_break, s390_regmap_system_call)
2776 (s390_regmap_tdb): Likewise.
2777 (s390_supply_regset, s390_collect_regset): Remove functions.
2778 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2780 (s390_gregset, s390_fpregset, s390_upper_regset)
2781 (s390_last_break_regset, s390x_last_break_regset)
2782 (s390_system_call_regset, s390_tdb_regset): Make global and
2783 replace s390_supply/_collect_regset by regcache_supply/
2785 (s390x_gregset): Delete.
2786 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2787 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2788 (s390_regmap_fpregset, s390_regmap_last_break)
2789 (s390x_regmap_last_break, s390_regmap_system_call)
2790 (s390_regmap_tdb): Delete global variable declarations.
2791 (s390_gregset, s390_fpregset, s390_last_break_regset)
2792 (s390x_last_break_regset, s390_system_call_regset)
2793 (s390_tdb_regset): New global variable declarations.
2795 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2797 * regcache.c: Include "regset.h".
2798 (regcache_transfer_regset): New local function.
2799 (regcache_supply_regset, regcache_collect_regset): New functions.
2800 * regcache.h (struct regcache_map_entry): New structure.
2801 (REGCACHE_MAP_SKIP): New enum value.
2802 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2804 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2806 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2807 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2808 (ppc_linux_collect_gregset ): Likewise.
2809 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2810 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2811 (ppc_collect_vrregset): Likewise.
2812 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2815 2014-08-07 Yao Qi <yao@codesourcery.com>
2817 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2818 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2819 * remote.c (remote_read_bytes): Likewise.
2821 2014-08-07 Yao Qi <yao@codesourcery.com>
2823 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2825 2014-08-07 Yao Qi <yao@codesourcery.com>
2828 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2829 TARGET_XFER_OK instead of 0.
2831 2014-08-07 Gary Benson <gbenson@redhat.com>
2833 * common/common-defs.h: Include errno.h.
2834 * defs.h: Do not include errno.h.
2835 * ada-typeprint.c: Likewise.
2836 * c-typeprint.c: Likewise.
2837 * core-regset.c: Likewise.
2838 * corefile.c: Likewise.
2839 * corelow.c: Likewise.
2840 * event-loop.c: Likewise.
2841 * f-typeprint.c: Likewise.
2842 * gnu-nat.c: Likewise.
2843 * go32-nat.c: Likewise.
2844 * i386gnu-nat.c: Likewise.
2845 * m2-typeprint.c: Likewise.
2846 * nat/linux-btrace.c: Likewise.
2847 * p-typeprint.c: Likewise.
2848 * procfs.c: Likewise.
2849 * remote-sim.c: Likewise.
2850 * rs6000-nat.c: Likewise.
2851 * target.c: Likewise.
2852 * typeprint.c: Likewise.
2853 * ui-file.c: Likewise.
2854 * valops.c: Likewise.
2855 * valprint.c: Likewise.
2857 2014-08-07 Gary Benson <gbenson@redhat.com>
2859 * common/common-defs.h: Include string.h.
2860 * aarch64-tdep.c: Do not include string.h.
2861 * ada-exp.y: Likewise.
2862 * ada-lang.c: Likewise.
2863 * ada-lex.l: Likewise.
2864 * ada-typeprint.c: Likewise.
2865 * ada-valprint.c: Likewise.
2866 * aix-thread.c: Likewise.
2867 * alpha-linux-tdep.c: Likewise.
2868 * alpha-mdebug-tdep.c: Likewise.
2869 * alpha-nat.c: Likewise.
2870 * alpha-osf1-tdep.c: Likewise.
2871 * alpha-tdep.c: Likewise.
2872 * alphanbsd-tdep.c: Likewise.
2873 * amd64-dicos-tdep.c: Likewise.
2874 * amd64-linux-tdep.c: Likewise.
2875 * amd64-nat.c: Likewise.
2876 * amd64-sol2-tdep.c: Likewise.
2877 * amd64fbsd-tdep.c: Likewise.
2878 * amd64obsd-tdep.c: Likewise.
2879 * arch-utils.c: Likewise.
2880 * arm-linux-nat.c: Likewise.
2881 * arm-linux-tdep.c: Likewise.
2882 * arm-tdep.c: Likewise.
2883 * arm-wince-tdep.c: Likewise.
2884 * armbsd-tdep.c: Likewise.
2885 * armnbsd-nat.c: Likewise.
2886 * armnbsd-tdep.c: Likewise.
2887 * armobsd-tdep.c: Likewise.
2888 * avr-tdep.c: Likewise.
2889 * ax-gdb.c: Likewise.
2890 * ax-general.c: Likewise.
2891 * bcache.c: Likewise.
2892 * bfin-tdep.c: Likewise.
2893 * breakpoint.c: Likewise.
2894 * build-id.c: Likewise.
2895 * buildsym.c: Likewise.
2896 * c-exp.y: Likewise.
2897 * c-lang.c: Likewise.
2898 * c-typeprint.c: Likewise.
2899 * c-valprint.c: Likewise.
2900 * charset.c: Likewise.
2901 * cli-out.c: Likewise.
2902 * cli/cli-cmds.c: Likewise.
2903 * cli/cli-decode.c: Likewise.
2904 * cli/cli-dump.c: Likewise.
2905 * cli/cli-interp.c: Likewise.
2906 * cli/cli-logging.c: Likewise.
2907 * cli/cli-script.c: Likewise.
2908 * cli/cli-setshow.c: Likewise.
2909 * cli/cli-utils.c: Likewise.
2910 * coffread.c: Likewise.
2911 * common/agent.c: Likewise.
2912 * common/buffer.c: Likewise.
2913 * common/buffer.h: Likewise.
2914 * common/common-utils.c: Likewise.
2915 * common/filestuff.c: Likewise.
2916 * common/filestuff.c: Likewise.
2917 * common/format.c: Likewise.
2918 * common/print-utils.c: Likewise.
2919 * common/rsp-low.c: Likewise.
2920 * common/signals.c: Likewise.
2921 * common/vec.h: Likewise.
2922 * common/xml-utils.c: Likewise.
2923 * core-regset.c: Likewise.
2924 * corefile.c: Likewise.
2925 * corelow.c: Likewise.
2926 * cp-abi.c: Likewise.
2927 * cp-name-parser.y: Likewise.
2928 * cp-support.c: Likewise.
2929 * cp-valprint.c: Likewise.
2930 * cris-tdep.c: Likewise.
2931 * d-exp.y: Likewise.
2932 * darwin-nat.c: Likewise.
2933 * dbxread.c: Likewise.
2934 * dcache.c: Likewise.
2935 * demangle.c: Likewise.
2936 * dicos-tdep.c: Likewise.
2937 * disasm.c: Likewise.
2938 * doublest.c: Likewise.
2939 * dsrec.c: Likewise.
2940 * dummy-frame.c: Likewise.
2941 * dwarf2-frame.c: Likewise.
2942 * dwarf2loc.c: Likewise.
2943 * dwarf2read.c: Likewise.
2944 * elfread.c: Likewise.
2945 * environ.c: Likewise.
2947 * event-loop.c: Likewise.
2948 * exceptions.c: Likewise.
2950 * expprint.c: Likewise.
2951 * f-exp.y: Likewise.
2952 * f-lang.c: Likewise.
2953 * f-typeprint.c: Likewise.
2954 * f-valprint.c: Likewise.
2955 * fbsd-nat.c: Likewise.
2956 * findcmd.c: Likewise.
2957 * findvar.c: Likewise.
2958 * fork-child.c: Likewise.
2959 * frame.c: Likewise.
2960 * frv-linux-tdep.c: Likewise.
2961 * frv-tdep.c: Likewise.
2963 * gdb_bfd.c: Likewise.
2964 * gdbarch.c: Likewise.
2965 * gdbarch.sh: Likewise.
2966 * gdbtypes.c: Likewise.
2967 * gnu-nat.c: Likewise.
2968 * gnu-v2-abi.c: Likewise.
2969 * gnu-v3-abi.c: Likewise.
2970 * go-exp.y: Likewise.
2971 * go-lang.c: Likewise.
2972 * go32-nat.c: Likewise.
2973 * guile/guile.c: Likewise.
2974 * guile/scm-auto-load.c: Likewise.
2975 * hppa-hpux-tdep.c: Likewise.
2976 * hppa-linux-nat.c: Likewise.
2977 * hppanbsd-tdep.c: Likewise.
2978 * hppaobsd-tdep.c: Likewise.
2979 * i386-cygwin-tdep.c: Likewise.
2980 * i386-dicos-tdep.c: Likewise.
2981 * i386-linux-tdep.c: Likewise.
2982 * i386-nto-tdep.c: Likewise.
2983 * i386-sol2-tdep.c: Likewise.
2984 * i386-tdep.c: Likewise.
2985 * i386bsd-tdep.c: Likewise.
2986 * i386gnu-nat.c: Likewise.
2987 * i386nbsd-tdep.c: Likewise.
2988 * i386obsd-tdep.c: Likewise.
2989 * i387-tdep.c: Likewise.
2990 * ia64-libunwind-tdep.c: Likewise.
2991 * ia64-linux-nat.c: Likewise.
2992 * inf-child.c: Likewise.
2993 * inf-ptrace.c: Likewise.
2994 * inf-ttrace.c: Likewise.
2995 * infcall.c: Likewise.
2996 * infcmd.c: Likewise.
2997 * inflow.c: Likewise.
2998 * infrun.c: Likewise.
2999 * interps.c: Likewise.
3000 * iq2000-tdep.c: Likewise.
3001 * irix5-nat.c: Likewise.
3002 * jv-exp.y: Likewise.
3003 * jv-lang.c: Likewise.
3004 * jv-typeprint.c: Likewise.
3005 * jv-valprint.c: Likewise.
3006 * language.c: Likewise.
3007 * linux-fork.c: Likewise.
3008 * linux-nat.c: Likewise.
3009 * lm32-tdep.c: Likewise.
3010 * m2-exp.y: Likewise.
3011 * m2-typeprint.c: Likewise.
3012 * m32c-tdep.c: Likewise.
3013 * m32r-linux-nat.c: Likewise.
3014 * m32r-linux-tdep.c: Likewise.
3015 * m32r-rom.c: Likewise.
3016 * m32r-tdep.c: Likewise.
3017 * m68hc11-tdep.c: Likewise.
3018 * m68k-tdep.c: Likewise.
3019 * m68kbsd-tdep.c: Likewise.
3020 * m68klinux-nat.c: Likewise.
3021 * m68klinux-tdep.c: Likewise.
3022 * m88k-tdep.c: Likewise.
3023 * machoread.c: Likewise.
3024 * macrocmd.c: Likewise.
3026 * mdebugread.c: Likewise.
3027 * mem-break.c: Likewise.
3028 * memattr.c: Likewise.
3029 * memory-map.c: Likewise.
3030 * mep-tdep.c: Likewise.
3031 * mi/mi-cmd-break.c: Likewise.
3032 * mi/mi-cmd-disas.c: Likewise.
3033 * mi/mi-cmd-env.c: Likewise.
3034 * mi/mi-cmd-stack.c: Likewise.
3035 * mi/mi-cmd-var.c: Likewise.
3036 * mi/mi-cmds.c: Likewise.
3037 * mi/mi-console.c: Likewise.
3038 * mi/mi-getopt.c: Likewise.
3039 * mi/mi-interp.c: Likewise.
3040 * mi/mi-main.c: Likewise.
3041 * mi/mi-parse.c: Likewise.
3042 * microblaze-rom.c: Likewise.
3043 * microblaze-tdep.c: Likewise.
3044 * mingw-hdep.c: Likewise.
3045 * minidebug.c: Likewise.
3046 * minsyms.c: Likewise.
3047 * mips-irix-tdep.c: Likewise.
3048 * mips-linux-tdep.c: Likewise.
3049 * mips-tdep.c: Likewise.
3050 * mips64obsd-tdep.c: Likewise.
3051 * mipsnbsd-tdep.c: Likewise.
3052 * mipsread.c: Likewise.
3053 * mn10300-linux-tdep.c: Likewise.
3054 * mn10300-tdep.c: Likewise.
3055 * monitor.c: Likewise.
3056 * moxie-tdep.c: Likewise.
3057 * mt-tdep.c: Likewise.
3058 * nat/linux-btrace.c: Likewise.
3059 * nat/linux-osdata.c: Likewise.
3060 * nat/linux-procfs.c: Likewise.
3061 * nat/linux-ptrace.c: Likewise.
3062 * nat/linux-waitpid.c: Likewise.
3063 * nbsd-tdep.c: Likewise.
3064 * nios2-linux-tdep.c: Likewise.
3065 * nto-procfs.c: Likewise.
3066 * nto-tdep.c: Likewise.
3067 * objc-lang.c: Likewise.
3068 * objfiles.c: Likewise.
3069 * opencl-lang.c: Likewise.
3070 * osabi.c: Likewise.
3071 * osdata.c: Likewise.
3072 * p-exp.y: Likewise.
3073 * p-lang.c: Likewise.
3074 * p-typeprint.c: Likewise.
3075 * parse.c: Likewise.
3076 * posix-hdep.c: Likewise.
3077 * ppc-linux-nat.c: Likewise.
3078 * ppc-sysv-tdep.c: Likewise.
3079 * ppcfbsd-tdep.c: Likewise.
3080 * ppcnbsd-tdep.c: Likewise.
3081 * ppcobsd-tdep.c: Likewise.
3082 * printcmd.c: Likewise.
3083 * procfs.c: Likewise.
3084 * prologue-value.c: Likewise.
3085 * python/py-auto-load.c: Likewise.
3086 * python/py-gdb-readline.c: Likewise.
3087 * ravenscar-thread.c: Likewise.
3088 * regcache.c: Likewise.
3089 * registry.c: Likewise.
3090 * remote-fileio.c: Likewise.
3091 * remote-m32r-sdi.c: Likewise.
3092 * remote-mips.c: Likewise.
3093 * remote-notif.c: Likewise.
3094 * remote-sim.c: Likewise.
3095 * remote.c: Likewise.
3096 * reverse.c: Likewise.
3097 * rs6000-aix-tdep.c: Likewise.
3098 * ser-base.c: Likewise.
3099 * ser-go32.c: Likewise.
3100 * ser-mingw.c: Likewise.
3101 * ser-pipe.c: Likewise.
3102 * ser-tcp.c: Likewise.
3103 * ser-unix.c: Likewise.
3104 * serial.c: Likewise.
3105 * sh-tdep.c: Likewise.
3106 * sh64-tdep.c: Likewise.
3107 * shnbsd-tdep.c: Likewise.
3109 * sol-thread.c: Likewise.
3110 * solib-dsbt.c: Likewise.
3111 * solib-frv.c: Likewise.
3112 * solib-osf.c: Likewise.
3113 * solib-som.c: Likewise.
3114 * solib-spu.c: Likewise.
3115 * solib-target.c: Likewise.
3116 * solib.c: Likewise.
3117 * somread.c: Likewise.
3118 * source.c: Likewise.
3119 * sparc-nat.c: Likewise.
3120 * sparc-sol2-tdep.c: Likewise.
3121 * sparc-tdep.c: Likewise.
3122 * sparc64-tdep.c: Likewise.
3123 * sparc64fbsd-tdep.c: Likewise.
3124 * sparc64nbsd-tdep.c: Likewise.
3125 * sparcnbsd-tdep.c: Likewise.
3126 * spu-linux-nat.c: Likewise.
3127 * spu-multiarch.c: Likewise.
3128 * spu-tdep.c: Likewise.
3129 * stabsread.c: Likewise.
3130 * stack.c: Likewise.
3131 * std-regs.c: Likewise.
3132 * symfile.c: Likewise.
3133 * symmisc.c: Likewise.
3134 * symtab.c: Likewise.
3135 * target.c: Likewise.
3136 * thread.c: Likewise.
3137 * tilegx-linux-nat.c: Likewise.
3138 * tilegx-tdep.c: Likewise.
3140 * tracepoint.c: Likewise.
3141 * tui/tui-command.c: Likewise.
3142 * tui/tui-data.c: Likewise.
3143 * tui/tui-disasm.c: Likewise.
3144 * tui/tui-file.c: Likewise.
3145 * tui/tui-layout.c: Likewise.
3146 * tui/tui-out.c: Likewise.
3147 * tui/tui-regs.c: Likewise.
3148 * tui/tui-source.c: Likewise.
3149 * tui/tui-stack.c: Likewise.
3150 * tui/tui-win.c: Likewise.
3151 * tui/tui-windata.c: Likewise.
3152 * tui/tui-winsource.c: Likewise.
3153 * typeprint.c: Likewise.
3154 * ui-file.c: Likewise.
3155 * ui-out.c: Likewise.
3156 * user-regs.c: Likewise.
3157 * utils.c: Likewise.
3158 * v850-tdep.c: Likewise.
3159 * valarith.c: Likewise.
3160 * valops.c: Likewise.
3161 * valprint.c: Likewise.
3162 * value.c: Likewise.
3163 * varobj.c: Likewise.
3164 * vax-tdep.c: Likewise.
3165 * vaxnbsd-tdep.c: Likewise.
3166 * vaxobsd-tdep.c: Likewise.
3167 * windows-nat.c: Likewise.
3168 * xcoffread.c: Likewise.
3169 * xml-support.c: Likewise.
3170 * xstormy16-tdep.c: Likewise.
3171 * xtensa-linux-nat.c: Likewise.
3173 2014-08-07 Gary Benson <gbenson@redhat.com>
3175 * common/common-defs.h: Include gdb_assert.h.
3176 * aarch64-tdep.c: Do not include gdb_assert.h.
3177 * addrmap.c: Likewise.
3178 * aix-thread.c: Likewise.
3179 * alpha-linux-tdep.c: Likewise.
3180 * alpha-mdebug-tdep.c: Likewise.
3181 * alphanbsd-tdep.c: Likewise.
3182 * amd64-nat.c: Likewise.
3183 * amd64-tdep.c: Likewise.
3184 * amd64bsd-nat.c: Likewise.
3185 * amd64fbsd-nat.c: Likewise.
3186 * amd64fbsd-tdep.c: Likewise.
3187 * amd64nbsd-nat.c: Likewise.
3188 * amd64nbsd-tdep.c: Likewise.
3189 * amd64obsd-nat.c: Likewise.
3190 * amd64obsd-tdep.c: Likewise.
3191 * arch-utils.c: Likewise.
3192 * arm-tdep.c: Likewise.
3193 * armbsd-tdep.c: Likewise.
3195 * bcache.c: Likewise.
3196 * bfin-tdep.c: Likewise.
3197 * blockframe.c: Likewise.
3198 * breakpoint.c: Likewise.
3199 * bsd-kvm.c: Likewise.
3200 * bsd-uthread.c: Likewise.
3201 * buildsym.c: Likewise.
3202 * c-exp.y: Likewise.
3203 * c-lang.c: Likewise.
3204 * charset.c: Likewise.
3205 * cleanups.c: Likewise.
3206 * cli-out.c: Likewise.
3207 * cli/cli-decode.c: Likewise.
3208 * cli/cli-dump.c: Likewise.
3209 * cli/cli-logging.c: Likewise.
3210 * cli/cli-script.c: Likewise.
3211 * cli/cli-utils.c: Likewise.
3212 * coffread.c: Likewise.
3213 * common/common-utils.c: Likewise.
3214 * common/queue.h: Likewise.
3215 * common/signals.c: Likewise.
3216 * common/vec.h: Likewise.
3217 * complaints.c: Likewise.
3218 * completer.c: Likewise.
3219 * corelow.c: Likewise.
3220 * cp-abi.c: Likewise.
3221 * cp-name-parser.y: Likewise.
3222 * cp-namespace.c: Likewise.
3223 * cp-support.c: Likewise.
3224 * cris-tdep.c: Likewise.
3225 * dbxread.c: Likewise.
3226 * dictionary.c: Likewise.
3227 * doublest.c: Likewise.
3228 * dsrec.c: Likewise.
3229 * dummy-frame.c: Likewise.
3230 * dwarf2-frame-tailcall.c: Likewise.
3231 * dwarf2-frame.c: Likewise.
3232 * dwarf2expr.c: Likewise.
3233 * dwarf2loc.c: Likewise.
3234 * dwarf2read.c: Likewise.
3236 * event-loop.c: Likewise.
3237 * exceptions.c: Likewise.
3238 * expprint.c: Likewise.
3239 * f-valprint.c: Likewise.
3240 * fbsd-nat.c: Likewise.
3241 * findvar.c: Likewise.
3242 * frame-unwind.c: Likewise.
3243 * frame.c: Likewise.
3244 * frv-tdep.c: Likewise.
3245 * gcore.c: Likewise.
3246 * gdb-dlfcn.c: Likewise.
3247 * gdb_bfd.c: Likewise.
3248 * gdbarch.c: Likewise.
3249 * gdbarch.sh: Likewise.
3250 * gdbtypes.c: Likewise.
3251 * gnu-nat.c: Likewise.
3252 * gnu-v3-abi.c: Likewise.
3253 * go-lang.c: Likewise.
3254 * guile/scm-exception.c: Likewise.
3255 * guile/scm-gsmob.c: Likewise.
3256 * guile/scm-lazy-string.c: Likewise.
3257 * guile/scm-math.c: Likewise.
3258 * guile/scm-pretty-print.c: Likewise.
3259 * guile/scm-safe-call.c: Likewise.
3260 * guile/scm-utils.c: Likewise.
3261 * guile/scm-value.c: Likewise.
3262 * h8300-tdep.c: Likewise.
3263 * hppa-hpux-nat.c: Likewise.
3264 * hppa-tdep.c: Likewise.
3265 * hppanbsd-tdep.c: Likewise.
3266 * hppaobsd-tdep.c: Likewise.
3267 * i386-darwin-nat.c: Likewise.
3268 * i386-darwin-tdep.c: Likewise.
3269 * i386-nto-tdep.c: Likewise.
3270 * i386-tdep.c: Likewise.
3271 * i386bsd-nat.c: Likewise.
3272 * i386fbsd-tdep.c: Likewise.
3273 * i386gnu-nat.c: Likewise.
3274 * i386nbsd-tdep.c: Likewise.
3275 * i386obsd-tdep.c: Likewise.
3276 * i387-tdep.c: Likewise.
3277 * ia64-libunwind-tdep.c: Likewise.
3278 * ia64-tdep.c: Likewise.
3279 * inf-ptrace.c: Likewise.
3280 * inf-ttrace.c: Likewise.
3281 * infcall.c: Likewise.
3282 * infcmd.c: Likewise.
3283 * infrun.c: Likewise.
3284 * inline-frame.c: Likewise.
3285 * interps.c: Likewise.
3286 * jv-lang.c: Likewise.
3287 * jv-typeprint.c: Likewise.
3288 * linux-fork.c: Likewise.
3289 * linux-nat.c: Likewise.
3290 * linux-thread-db.c: Likewise.
3291 * m32c-tdep.c: Likewise.
3292 * m32r-linux-nat.c: Likewise.
3293 * m32r-tdep.c: Likewise.
3294 * m68k-tdep.c: Likewise.
3295 * m68kbsd-nat.c: Likewise.
3296 * m68kbsd-tdep.c: Likewise.
3297 * m88k-tdep.c: Likewise.
3298 * machoread.c: Likewise.
3299 * macroexp.c: Likewise.
3300 * macrotab.c: Likewise.
3301 * maint.c: Likewise.
3302 * mdebugread.c: Likewise.
3303 * memory-map.c: Likewise.
3304 * mep-tdep.c: Likewise.
3305 * mi/mi-common.c: Likewise.
3306 * microblaze-tdep.c: Likewise.
3307 * mingw-hdep.c: Likewise.
3308 * mips-linux-nat.c: Likewise.
3309 * mips-linux-tdep.c: Likewise.
3310 * mips-tdep.c: Likewise.
3311 * mips64obsd-tdep.c: Likewise.
3312 * mipsnbsd-tdep.c: Likewise.
3313 * mn10300-linux-tdep.c: Likewise.
3314 * mn10300-tdep.c: Likewise.
3315 * moxie-tdep.c: Likewise.
3316 * mt-tdep.c: Likewise.
3317 * nat/linux-btrace.c: Likewise.
3318 * nat/linux-osdata.c: Likewise.
3319 * nat/linux-ptrace.c: Likewise.
3320 * nat/mips-linux-watch.c: Likewise.
3321 * nios2-linux-tdep.c: Likewise.
3322 * nios2-tdep.c: Likewise.
3323 * objc-lang.c: Likewise.
3324 * objfiles.c: Likewise.
3325 * obsd-nat.c: Likewise.
3326 * opencl-lang.c: Likewise.
3327 * osabi.c: Likewise.
3328 * parse.c: Likewise.
3329 * ppc-linux-nat.c: Likewise.
3330 * ppc-sysv-tdep.c: Likewise.
3331 * ppcfbsd-nat.c: Likewise.
3332 * ppcfbsd-tdep.c: Likewise.
3333 * ppcnbsd-nat.c: Likewise.
3334 * ppcnbsd-tdep.c: Likewise.
3335 * ppcobsd-nat.c: Likewise.
3336 * ppcobsd-tdep.c: Likewise.
3337 * printcmd.c: Likewise.
3338 * procfs.c: Likewise.
3339 * prologue-value.c: Likewise.
3340 * psymtab.c: Likewise.
3341 * python/py-lazy-string.c: Likewise.
3342 * python/py-value.c: Likewise.
3343 * regcache.c: Likewise.
3344 * reggroups.c: Likewise.
3345 * registry.c: Likewise.
3346 * remote-sim.c: Likewise.
3347 * remote.c: Likewise.
3348 * rs6000-aix-tdep.c: Likewise.
3349 * rs6000-tdep.c: Likewise.
3350 * s390-linux-tdep.c: Likewise.
3351 * score-tdep.c: Likewise.
3352 * ser-base.c: Likewise.
3353 * ser-mingw.c: Likewise.
3354 * sh-tdep.c: Likewise.
3355 * sh64-tdep.c: Likewise.
3356 * solib-darwin.c: Likewise.
3357 * solib-spu.c: Likewise.
3358 * solib-svr4.c: Likewise.
3359 * source.c: Likewise.
3360 * sparc-nat.c: Likewise.
3361 * sparc-sol2-tdep.c: Likewise.
3362 * sparc-tdep.c: Likewise.
3363 * sparc64-sol2-tdep.c: Likewise.
3364 * sparc64-tdep.c: Likewise.
3365 * sparc64fbsd-tdep.c: Likewise.
3366 * sparc64nbsd-tdep.c: Likewise.
3367 * sparc64obsd-tdep.c: Likewise.
3368 * sparcnbsd-tdep.c: Likewise.
3369 * sparcobsd-tdep.c: Likewise.
3370 * spu-multiarch.c: Likewise.
3371 * spu-tdep.c: Likewise.
3372 * stabsread.c: Likewise.
3373 * stack.c: Likewise.
3374 * symfile.c: Likewise.
3375 * symtab.c: Likewise.
3376 * target-descriptions.c: Likewise.
3377 * target-memory.c: Likewise.
3378 * target.c: Likewise.
3379 * tic6x-linux-tdep.c: Likewise.
3380 * tic6x-tdep.c: Likewise.
3381 * tilegx-linux-nat.c: Likewise.
3382 * tilegx-tdep.c: Likewise.
3384 * tramp-frame.c: Likewise.
3385 * tui/tui-out.c: Likewise.
3386 * tui/tui-winsource.c: Likewise.
3387 * ui-out.c: Likewise.
3388 * user-regs.c: Likewise.
3389 * utils.c: Likewise.
3390 * v850-tdep.c: Likewise.
3391 * valops.c: Likewise.
3392 * value.c: Likewise.
3393 * varobj.c: Likewise.
3394 * vax-nat.c: Likewise.
3395 * xml-syscall.c: Likewise.
3396 * xml-tdesc.c: Likewise.
3397 * xstormy16-tdep.c: Likewise.
3398 * xtensa-linux-nat.c: Likewise.
3399 * xtensa-tdep.c: Likewise.
3401 2014-08-07 Gary Benson <gbenson@redhat.com>
3403 * common/common-defs.h: Include common-utils.h.
3404 * defs.h: Do not include common-utils.h.
3405 * common/gdb_assert.h: Likewise.
3406 * darwin-nat.h: Likewise.
3407 * nat/linux-btrace.c: Likewise.
3408 * target/waitstatus.h: Likewise.
3410 2014-08-07 Gary Benson <gbenson@redhat.com>
3412 * common/common-defs.h: Include ptid.h.
3413 * defs.h: Do not include ptid.h.
3414 * inferior.h: Likewise.
3415 * infrun.h: Likewise.
3416 * nat/linux-btrace.h: Likewise.
3417 * nat/linux-osdata.h: Likewise.
3418 * target/waitstatus.h: Likewise.
3420 2014-08-07 Gary Benson <gbenson@redhat.com>
3422 * common/common-defs.h: Include gdb_locale.h.
3423 * defs.h: Do not include gdb_locale.h.
3425 2014-08-07 Gary Benson <gbenson@redhat.com>
3427 * common/common-defs.h: Include gdb/signals.h.
3428 * defs.h: Do not include gdb/signals.h.
3430 2014-08-07 Gary Benson <gbenson@redhat.com>
3432 * common/common-defs.h: Include pathmax.h.
3433 * defs.h: Do not include pathmax.h.
3435 2014-08-07 Gary Benson <gbenson@redhat.com>
3437 * common/common-defs.h: Include libiberty.h.
3438 * defs.h: Do not include libiberty.h.
3439 * common/queue.h: Likewise.
3440 * cp-name-parser.y: Likewise.
3441 * mi/mi-cmd-catch.c: Likewise.
3442 * python/python.c: Likewise.
3444 2014-08-07 Gary Benson <gbenson@redhat.com>
3446 * common/common-defs.h: Include ansidecl.h.
3447 * defs.h: Do not include ansidecl.h.
3448 * common/buffer.h: Likewise.
3449 * common/common-utils.h: Likewise.
3451 2014-08-07 Gary Benson <gbenson@redhat.com>
3453 * common/common-defs.h: Include stddef.h.
3454 * defs.h: Do not include stddef.h.
3455 * common/common-utils.h: Likewise.
3456 * amd64fbsd-nat.c: Likewise.
3457 * bcache.c: Likewise.
3458 * charset.c: Likewise.
3459 * common/buffer.h: Likewise.
3460 * common/vec.h: Likewise.
3461 * i386bsd-nat.c: Likewise.
3462 * nat/linux-btrace.h: Likewise.
3463 * ppcfbsd-nat.c: Likewise.
3464 * ppcnbsd-tdep.h: Likewise.
3465 * ppcobsd-nat.c: Likewise.
3466 * ppcobsd-tdep.h: Likewise.
3467 * python/py-gdb-readline.c: Likewise.
3469 2014-08-07 Gary Benson <gbenson@redhat.com>
3471 * common/common-defs.h: Include stdarg.h.
3472 * defs.h: Do not include stdarg.h.
3473 * ada-lang.c: Likewise.
3474 * common/common-utils.h: Likewise.
3475 * guile/scm-string.c: Likewise.
3476 * guile/scm-utils.c: Likewise.
3477 * m32c-tdep.c: Likewise.
3479 2014-08-07 Gary Benson <gbenson@redhat.com>
3481 * common/common-defs.h: Include stdlib.h.
3482 * defs.h: Do not include stdlib.h.
3483 * addrmap.c: Likewise.
3484 * bcache.c: Likewise.
3485 * common/buffer.c: Likewise.
3486 * common/common-utils.c: Likewise.
3487 * cp-name-parser.y: Likewise.
3488 * go32-nat.c: Likewise.
3489 * mn10300-linux-tdep.c: Likewise.
3490 * nat/linux-osdata.c: Likewise.
3491 * tui/tui.c: Likewise.
3492 * windows-nat.c: Likewise.
3494 2014-08-07 Gary Benson <gbenson@redhat.com>
3496 * common/common-defs.h: Include stdio.h.
3497 * defs.h: Do not include stdio.h.
3498 * ada-lang.c: Likewise.
3499 * common/buffer.c: Likewise.
3500 * common/common-utils.c: Likewise.
3501 * cp-name-parser.y: Likewise.
3502 * gnu-nat.c: Likewise.
3503 * go32-nat.c: Likewise.
3504 * i386gnu-nat.c: Likewise.
3505 * proc-api.c: Likewise.
3506 * proc-events.c: Likewise.
3507 * proc-flags.c: Likewise.
3508 * proc-why.c: Likewise.
3509 * python/python-internal.h: Likewise.
3510 * target-memory.c: Likewise.
3511 * tui/tui-io.c: Likewise.
3512 * tui/tui.c: Likewise.
3514 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3516 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3517 (scan_dyntag_auxv): Same.
3519 2014-08-06 Yao Qi <yao@codesourcery.com>
3521 * amd64-linux-nat.c: Remove duplicated include
3523 * i386-linux-nat.c: Likewise.
3525 2014-08-06 Yao Qi <yao@codesourcery.com>
3527 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3528 operand" with "Special opcode" in comments.
3530 2014-08-05 Gary Benson <gbenson@redhat.com>
3532 * interps.c (initialize_interps): Remove prototype.
3533 (interpreter_initialized): Remove static global.
3534 (interp_add): Do not call initialize_interps.
3535 (initialize_interps): Remove function.
3537 2014-08-05 Gary Benson <gbenson@redhat.com>
3539 * utils.c (vwarning): Remove spurious va_end.
3541 2014-08-05 Alan Modra <amodra@gmail.com>
3543 * charset.c (convert_between_encodings): Cast result of obstack_base.
3544 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3545 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3546 (read_unwind_info): Use size_t for some locals.
3547 * jit.c (finalize_symtab): Likewise.
3548 * utils.c (hashtab_obstack_allocate): Likewise.
3549 * symmisc.c (print_objfile_statistics): Update format strings.
3551 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3553 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3554 (Changes in GDB 7.8): ... here.
3556 2014-08-04 Tom Tromey <tromey@redhat.com>
3558 * target.c (set_targetdebug): New function.
3559 (initialize_targets): Pass set_targetdebug when creating "set
3562 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3564 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3565 if detecting a variable-sized field that is not the last field.
3566 Fix struct type length computation.
3568 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3570 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3573 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3575 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3576 Remove "+ 8" offset in computation of CHAIN_VMA.
3578 2014-07-31 Doug Evans <dje@google.com>
3580 * inflow.c (child_terminal_inferior): Add comment.
3581 (child_terminal_ours_for_output): Add comment.
3582 (child_terminal_ours): Add comment.
3583 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3584 (linux_nat_terminal_ours): Add comment.
3586 2014-07-31 Gary Benson <gbenson@redhat.com>
3588 * common/btrace-common.h: Do not include defs.h or server.h.
3589 * nat/mips-linux-watch.h: Likewise.
3590 * gdb-dlfcn.h: Do not include defs.h.
3591 * tracefile.h: Likewise.
3593 2014-07-30 Roland McGrath <mcgrathr@google.com>
3595 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3597 2014-07-30 Tom Tromey <tromey@redhat.com>
3599 * bsd-kvm.c (bsd_kvm_open): Constify.
3600 * corelow.c (core_open): Constify.
3601 * ctf.c (ctf_open): Constify.
3602 * dbug-rom.c (dbug_open): Constify.
3603 * exec.c (exec_open): Constify.
3604 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3605 * microblaze-rom.c (picobug_open): Constify.
3606 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3608 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3609 * record-btrace.c (record_btrace_open): Constify.
3610 * record-full.c (record_full_core_open_1, record_full_open_1)
3611 (record_full_open): Constify.
3612 * remote-m32r-sdi.c (m32r_open): Constify.
3613 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3614 (rockhopper_open, lsi_open): Constify.
3615 * remote-sim.c (gdbsim_open): Constify.
3616 * remote.c (remote_open, extended_remote_open, remote_open_1):
3618 * target.h (struct target_ops) <to_open>: Make "arg" const.
3619 * tracefile-tfile.c (tfile_open): Constify.
3621 2014-07-30 Tom Tromey <tromey@redhat.com>
3623 * breakpoint.c (map_breakpoint_numbers): Update.
3624 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3625 (get_number_const): New function.
3626 (get_number): Rewrite using get_number_const.
3627 (init_number_or_range): Make "string" const.
3628 (number_is_in_list): Make "list" const.
3629 * cli/cli-utils.h (get_number_const): Declare.
3630 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3631 (init_number_or_range, number_is_in_list): Update.
3632 * printcmd.c (map_display_numbers): Update.
3633 * value.c (value_from_history_ref): Constify.
3634 * value.h (value_from_history_ref): Update.
3636 2014-07-30 Tom Tromey <tromey@redhat.com>
3638 * corefile.c (hook_type, call_extra_exec_file_hooks)
3639 (specify_exec_file_hook): Constify.
3640 * exec.c (exec_file_attach): Make "filename" const.
3641 * gdbcore.h (deprecated_exec_file_display_hook)
3642 (specify_exec_file_hook, exec_file_attach): Constify.
3643 * main.c (captured_main): Use catch_command_errors_const.
3645 2014-07-30 Tom Tromey <tromey@redhat.com>
3647 * target.c (open_target): New function.
3648 (add_target_with_completer, add_deprecated_target_alias): Use
3649 set_cmd_sfunc, set_cmd_context.
3650 (debug_to_open): Remove.
3651 (setup_target_debug): Update.
3653 2014-07-30 Yao Qi <yao@codesourcery.com>
3655 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3657 * parse.c (exp_iterate): Update comments.
3659 2014-07-30 Gary Benson <gbenson@redhat.com>
3661 * common/common-defs.h: New file.
3662 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3663 * defs.h: Include common-defs.h.
3664 Do not include config.h or build-gnulib/config.h.
3666 2014-07-30 Gary Benson <gbenson@redhat.com>
3668 * common/common-utils.h: Do not include config.h.
3669 * nat/linux-btrace.h: Likewise.
3671 2014-07-30 Gary Benson <gbenson@redhat.com>
3673 * btrace.c: Include defs.h.
3674 * common/ptid.c: Include defs.h or server.h as appropriate.
3675 * nat/mips-linux-watch.c: Likewise.
3677 2014-07-29 Tom Tromey <tromey@redhat.com>
3679 * target.c (target_is_pushed): Simplify.
3681 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3685 2014-07-29 Yao Qi <yao@codesourcery.com>
3688 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3690 2014-07-28 Doug Evans <xdje42@gmail.com>
3693 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3694 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3697 2014-07-28 Will Newton <will.newton@linaro.org>
3699 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3700 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3701 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3702 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3703 (THUMB2_EABI_SYSCALL): Likewise.
3704 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3706 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3707 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3709 2014-07-27 Doug Evans <xdje42@gmail.com>
3711 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3713 2014-07-27 Doug Evans <xdje42@gmail.com>
3715 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3717 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3718 Doug Evans <xdje42@gmail.com>
3721 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3722 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3723 * configure.ac: Try to use guild to compile an scm file, if it fails
3724 then disable guile support.
3725 * configure: Regenerate.
3726 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3728 (GUILE_COMPILED_FILES): New variable.
3729 (GUILE_FILES) Update.
3730 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3731 (stamp-guile): Compile scm files.
3732 * guile/guile.c (boot_guile_support): New function.
3733 (standard_throw_args_p): New function.
3734 (print_standard_throw_error, print_throw_error): New functions.
3735 (handle_boot_error): New function.
3736 (initialize_scheme_side): Rewrite to call boot_guile_support.
3737 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3738 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3740 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3741 Doug Evans <xdje42@gmail.com>
3744 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3745 * guile/lib/gdb/support.scm: New file.
3746 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3747 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3749 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3751 (%assert-type): Ditto, and renamed to assert-type.
3752 (%exception-print-style): Delete.
3754 2014-07-26 Doug Evans <xdje42@gmail.com>
3757 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3758 * configure: Regenerate.
3759 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3761 (PYTHON_FILES): New variable.
3762 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3763 (GUILE_FILES): New variable.
3764 (stamp-python, install-python, uninstall-python): Handle empty
3766 (stamp-guile, install-guile, uninstall-guile): Ditto.
3768 2014-07-26 Doug Evans <xdje42@gmail.com>
3771 * guile/lib/gdb.scm (pretty-printers): Export.
3772 (set-pretty-printers!): Export.
3773 * guile/lib/gdb/printing.scm (gdb module): Update.
3774 (prepend-pretty-printer!, append-pretty-printer!): Update.
3775 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3776 (pretty_printer_list_var): Delete.
3777 (pretty_printer_list): New static global.
3778 (gdbscm_pretty_printers): New function.
3779 (gdbscm_set_pretty_printers_x): New function.
3780 (ppscm_find_pretty_printer_from_gdb): Update.
3781 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3782 (gdbscm_initialize_pretty_printers): Update.
3784 2014-07-26 Doug Evans <xdje42@gmail.com>
3787 * configure.ac: Add check for header gc/gc.h.
3788 Add check for function setenv.
3789 * configure: Regenerate.
3790 * config.in: Regenerate.
3791 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3793 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3795 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3796 variation in gdbarch matching.
3798 2014-07-25 Tom Tromey <tromey@redhat.com>
3800 * exec.c (using_exec_ops): Remove.
3801 (exec_close_1): Update. Remove extraneous block, reindent.
3802 (add_target_sections): Use target_is_pushed.
3804 2014-07-25 Pedro Alves <palves@redhat.com>
3806 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3807 * monitor.c (monitor_create_inferior): Likewise.
3808 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3809 * remote-sim.c (gdbsim_create_inferior): Likewise.
3810 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3811 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3812 * windows-nat.c (do_initial_windows_stuff): Likewise.
3814 2014-07-25 Pedro Alves <palves@redhat.com>
3816 * NEWS: Mention signal passing and "signal" command changes.
3817 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3819 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3821 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3822 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3823 (jump_command): Adjust clear_proceed_status call.
3824 (signal_command): Warn if other thread that are resumed have
3825 signals that will be delivered. Adjust clear_proceed_status call.
3826 (until_next_command, finish_command)
3827 (proceed_after_attach_callback, attach_command_post_wait)
3828 (attach_command): Adjust clear_proceed_status call.
3829 * infrun.c (proceed_after_vfork_done): Likewise.
3830 (proceed_after_attach_callback): Adjust comment.
3831 (clear_proceed_status_thread): Clear stop_signal if not in pass
3833 (clear_proceed_status_callback): Delete.
3834 (clear_proceed_status): New 'step' parameter. Only clear the
3835 proceed status of threads the command being prepared is about to
3837 (proceed): If passed in an explicit signal, override stop_signal
3838 with it. Don't pass the last stop signal to the thread we're
3840 (init_wait_for_inferior): Adjust clear_proceed_status call.
3841 (switch_back_to_stepped_thread): Clear the signal if it should not
3843 * infrun.h (clear_proceed_status): New 'step' parameter.
3844 (user_visible_resume_ptid): Add comment.
3845 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3846 signal is in pass state.
3847 * remote.c (append_pending_thread_resumptions): Likewise.
3848 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3850 2014-07-25 Tom Tromey <tromey@redhat.com>
3852 * target.h (target_stopped_data_address)
3853 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3856 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3858 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3860 (avr_pointer_to_address): Likewise.
3862 2014-07-24 Tom Tromey <tromey@redhat.com>
3864 * monitor.c (compile_pattern): Update.
3865 * target.h (struct target_ops) <to_shortname, to_longname,
3868 2014-07-24 Tom Tromey <tromey@redhat.com>
3870 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3871 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3872 (add_info_alias, add_com): Make "doc" const.
3873 (print_doc_line): Make "str" const.
3874 (delete_cmd): Update.
3875 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3876 (print_doc_line): Update.
3877 * cli/cli-script.c (document_command): Update.
3878 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3879 (add_com, add_info, add_info_alias): Update.
3880 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3881 * python/py-cmd.c (cmdpy_destroyer): Update.
3883 2014-07-24 Tom Tromey <tromey@redhat.com>
3885 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3886 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3887 (help_cmd_list): Constify.
3888 (lookup_cmd): Update.
3889 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3891 (help_cmd_list, apropos_cmd): Update.
3892 * cli/cli-script.c (show_user): Update.
3893 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3894 * cli/cli-setshow.h (cmd_show_list): Update.
3895 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3896 (cmd_show_list): Update.
3897 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3898 * python/py-cmd.c (cmdpy_destroyer): Update.
3900 2014-07-24 Tom Tromey <tromey@redhat.com>
3902 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3903 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3905 * command.h (deprecate_cmd): Update.
3906 * maint.c (maintenance_do_deprecate): Add casts.
3908 2014-07-24 Tom Tromey <tromey@redhat.com>
3910 * cli/cli-decode.c (help_cmd): Make parameter "const".
3911 * cli/cli-decode.h (help_cmd): Update.
3913 2014-07-24 Tom Tromey <tromey@redhat.com>
3915 * stack.c (up_silently_base, down_silently_base): Make argument
3918 2014-07-24 Tom Tromey <tromey@redhat.com>
3920 * solib.c (solib_add): Make "pattern" const.
3921 * solib.h (solib_add): Update.
3923 2014-07-24 Tom Tromey <tromey@redhat.com>
3925 * remote.c (remote_serial_open, print_packet, putpkt)
3926 (putpkt_binary): Constify.
3927 * remote.h (putpkt): Update.
3929 2014-07-24 Tom Tromey <tromey@redhat.com>
3931 * monitor.c (monitor_open): Make "args" const.
3932 * monitor.h (monitor_open): Update.
3934 2014-07-24 Tom Tromey <tromey@redhat.com>
3936 * maint.c (match_bfd_flags): Make "string" const.
3937 (print_bfd_section_info): Remove casts.
3938 (print_objfile_section_info): Make "string" const.
3940 2014-07-24 Tom Tromey <tromey@redhat.com>
3942 * inf-child.c (inf_child_open_target): Make "arg" const.
3943 * inf-child.h (inf_child_open_target): Update.
3945 2014-07-24 Tom Tromey <tromey@redhat.com>
3947 * environ.c (unset_in_environ): Make "var" const.
3948 * environ.h (unset_in_environ): Update.
3950 2014-07-24 Tom Tromey <tromey@redhat.com>
3952 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3954 (scan_filename_with_cleanup): Likewise.
3955 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3956 Make arguments const.
3957 (restore_command): Update.
3959 2014-07-24 Pedro Alves <palves@redhat.com>
3961 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3963 2014-07-24 Tom Tromey <tromey@redhat.com>
3964 Gary Benson <gbenson@redhat.com>
3966 * nat/linux-ptrace.c (additional_flags): New global.
3967 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3968 additional_flags; don't check GDBSERVER.
3969 (linux_ptrace_set_additional_flags): New function.
3970 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3972 * linux-nat.c (_initialize_linux_nat): Call
3973 linux_ptrace_set_additional_flags.
3975 2014-07-24 Tom Tromey <tromey@redhat.com>
3977 * make-target-delegates (munge_type, write_debugmethod): New
3979 (debug_names): New global.
3980 ($TARGET_DEBUG_PRINTER): New global.
3981 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3983 Write debug methods. Generate init_debug_target.
3984 * target-debug.h: New file.
3985 * target-delegates.c: Rebuild.
3986 * target.c: Include target-debug.h.
3987 (debug_target): Hoist definition.
3988 (target_kill, target_get_section_table, target_memory_map)
3989 (target_flash_erase, target_flash_done, target_detach)
3990 (target_disconnect, target_wait, target_resume)
3991 (target_pass_signals, target_program_signals, target_follow_fork)
3992 (target_mourn_inferior, target_search_memory)
3993 (target_thread_address_space, target_close)
3994 (target_find_new_threads, target_core_of_thread)
3995 (target_verify_memory, target_insert_mask_watchpoint)
3996 (target_remove_mask_watchpoint): Remove targetdebug code.
3997 (debug_to_post_attach, debug_to_prepare_to_store)
3998 (debug_to_files_info, debug_to_insert_breakpoint)
3999 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4000 (debug_to_region_ok_for_hw_watchpoint)
4001 (debug_to_can_accel_watchpoint_condition)
4002 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4003 (debug_to_watchpoint_addr_within_range)
4004 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4005 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4006 (debug_to_terminal_init, debug_to_terminal_inferior)
4007 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4008 (debug_to_terminal_save_ours, debug_to_terminal_info)
4009 (debug_to_load, debug_to_post_startup_inferior)
4010 (debug_to_insert_fork_catchpoint)
4011 (debug_to_remove_fork_catchpoint)
4012 (debug_to_insert_vfork_catchpoint)
4013 (debug_to_remove_vfork_catchpoint)
4014 (debug_to_insert_exec_catchpoint)
4015 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4016 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4017 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4018 (setup_target_debug): Call init_debug_target.
4019 * target.h (TARGET_DEBUG_PRINTER): New macro.
4020 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4021 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4023 2014-07-24 Gary Benson <gbenson@redhat.com>
4025 * exceptions.h (throw_vfatal): Renamed to...
4026 (throw_vquit): New declaration.
4027 (throw_quit): Likewise.
4028 * exceptions.c (throw_vfatal): Renamed to...
4029 (throw_vquit): New function.
4030 (throw_quit): Likewise.
4031 (throw_error): Call throw_verror rather than throw_it.
4032 * utils.h (vfatal): Removed.
4034 * utils.c (vfatal): Removed.
4036 (internal_verror): Replaced call to fatal with call to throw_quit.
4037 (quit): Replaced calls to fatal with calls to throw_quit.
4039 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4041 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4044 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4046 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4047 less than zero in conditional expression.
4049 2014-07-23 Tom Tromey <tromey@redhat.com>
4051 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4052 ($INTRO_PART): Don't match whitespace.
4053 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4055 ($METHOD): Add $METHOD_TRAILER.
4057 (scan_target_h): New sub.
4058 Change main loop not to collect state.
4059 * target-delegates.c: Rebuild.
4061 2014-07-23 Gary Benson <gbenson@redhat.com>
4063 * cp-support.c (gdb_demangle): Fix build on systems without
4066 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4068 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4069 for reference entry value target data value.
4071 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4073 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4074 value_available_contents_eq.
4076 2014-07-22 Pedro Alves <palves@redhat.com>
4078 * value.c (allocate_optimized_out_value): Don't mark value as
4081 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4083 * MAINTAINERS (Write After Approval): Update my email address.
4085 2014-07-20 Doug Evans <dje@google.com>
4088 * remote.c (putpkt_binary): Add text to error message.
4090 2014-07-20 Yao Qi <yao@codesourcery.com>
4092 * eval.c: Remove "Chill" from comments.
4093 * gdbtypes.h: Likewise.
4094 * symtab.h: Likewise.
4096 2014-07-20 Yao Qi <yao@codesourcery.com>
4098 * std-operator.def: Update comments to TERNOP_SLICE.
4100 2014-07-20 Yao Qi <yao@codesourcery.com>
4102 * std-operator.def: Remove BINOP_RANGE.
4103 * breakpoint.c (watchpoint_exp_is_const): Update.
4104 * expprint.c (dump_subexp_body_standard): Likewise.
4105 * eval.c (init_array_element): Remove dead code.
4106 (evaluate_subexp_standard): Likewise.
4108 2014-07-20 Yao Qi <yao@codesourcery.com>
4110 * std-operator.def: Remove BINOP_IN.
4111 * breakpoint.c (watchpoint_exp_is_const): Update.
4112 * eval.c (evaluate_subexp_standard): Likewise.
4113 * expprint.c (dump_subexp_body_standard): Likewise.
4115 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4117 * microblaze-tdep.c (microblaze_register_names): Add
4118 the rshr and rslr register names.
4119 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4120 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4121 Use of tdesc_numbered_register. Use of
4122 microblaze_register_g_packet_guesses. Use of
4123 tdesc_use_registers. Use of set_gdbarch_register_type.
4124 (microblaze_register_g_packet_guesses): New.
4125 * microblaze-tdep.h (microblaze_reg_num): Add
4126 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4127 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4128 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4129 * features/microblaze-core.xml: New file.
4130 * features/microblaze-stack-protect.xml: New file.
4131 * features/microblaze-with-stack-protect.c: New file.
4132 * features/microblaze-with-stack-protect.xml: New file.
4133 * features/microblaze.xml: New file.
4134 * features/microblaze.c: New file.
4135 * features/Makefile (microblaze-with-stack-protect): Add
4136 microblaze-with-stack-protect microblaze and microblaze-expedite.
4137 * regformats/microblaze-with-stack-protect.dat: New file.
4138 * regformats/microblaze.dat: New file.
4139 * doc/gdb.texinfo (MicroBlaze Features): Added.
4141 2014-07-18 Tom Tromey <tromey@redhat.com>
4143 * exec.c (exec_ops): Now static.
4144 * exec.h (exec_ops): Don't declare.
4146 2014-07-18 Tom Tromey <tromey@redhat.com>
4148 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4149 to find_target_beneath.
4150 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4151 find_target_beneath.
4152 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4154 2014-07-18 Tom Tromey <tromey@redhat.com>
4157 * utils.c (quit): Use target_supports_terminal_ours.
4158 * target.h (target_supports_terminal_ours): Declare.
4159 * target.c (target_supports_delete_record): Don't check
4160 to_delete_record against NULL.
4161 (target_supports_terminal_ours): New function.
4163 2014-07-18 Tom Tromey <tromey@redhat.com>
4166 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4167 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4168 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4169 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4170 * windows-nat.c (windows_xfer_partial): Always delegate.
4171 * record-btrace.c (record_btrace_xfer_partial): Simplify
4173 (record_btrace_fetch_registers, record_btrace_store_registers)
4174 (record_btrace_prepare_to_store, record_btrace_resume)
4175 (record_btrace_wait, record_btrace_find_new_threads)
4176 (record_btrace_thread_alive): Likewise.
4177 * procfs.c (procfs_xfer_partial): Always delegate.
4178 * corelow.c (core_xfer_partial): Always delegate.
4179 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4181 2014-07-18 Tom Tromey <tromey@redhat.com>
4183 * exec.c (exec_make_note_section): Move earlier.
4185 2014-07-17 Doug Evans <dje@google.com>
4188 * maint.c (count_symtabs_and_blocks): Handle NULL
4189 current_program_space.
4190 (report_command_stats): Check global enabled flag in addition to
4191 recorded enabled flag.
4192 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4194 2014-07-16 Pedro Alves <palves@redhat.com>
4196 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4198 2014-07-16 Tom Tromey <tromey@redhat.com>
4200 * target.h (struct target_ops) <to_delete_record>: Reformat
4203 2014-07-16 Tom Tromey <tromey@redhat.com>
4205 * target-delegates.c: Rebuild.
4207 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4209 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4210 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4211 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4212 (avr_pointer_to_address): Likewise.
4213 (avr_address_class_type_flags): New function.
4214 (avr_address_class_type_flags_to_name): Likewise.
4215 (avr_address_class_name_to_type_flags): Likewise.
4216 (avr_gdbarch_init): Set address_class_type_flags,
4217 address_class_type_flags_to_name and
4218 address_class_name_to_type_flags.
4220 2014-07-15 Pedro Alves <palves@redhat.com>
4222 * linux-nat.c (kill_callback): Save errno and work with saved
4225 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4227 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4229 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4231 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4232 breakpoint support correctly.
4234 2014-07-14 Pedro Alves <palves@redhat.com>
4236 * utils.c (prompt_for_continue): Call target_terminal_ours.
4238 2014-07-14 Pedro Alves <palves@redhat.com>
4240 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4241 catch_errors. Don't re-enable stdin or notify observers where,
4243 (fetch_inferior_event_wrapper): Delete.
4245 2014-07-14 Pedro Alves <palves@redhat.com>
4248 * top.c: Include "inf-loop.h".
4249 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4251 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4253 (gdb_readline_wrapper): Store whether the target is async, and
4256 2014-07-14 Pedro Alves <palves@redhat.com>
4259 * top.c (gdb_readline_wrapper_line): Tweak comment.
4260 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4261 the input handler callback.
4263 2014-07-14 Pedro Alves <palves@redhat.com>
4266 * main.c: Include event-top.h.
4267 (handle_command_errors): New function.
4268 (catch_command_errors, catch_command_errors_const): Use it.
4270 2014-07-14 Pedro Alves <palves@redhat.com>
4272 * exceptions.c (catch_command_errors, catch_command_errors_const):
4274 * exceptions.h (catch_command_errors_ftype)
4275 (catch_command_errors_const_ftype): Moved to main.c.
4276 (catch_command_errors, catch_command_errors_const): Delete
4278 * main.c (catch_command_errors_ftype)
4279 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4280 (catch_command_errors, catch_command_errors_const)): Moved here
4281 from exceptions.c and make static.
4283 2014-07-14 Pedro Alves <palves@redhat.com>
4285 * exceptions.c (print_any_exception): Delete.
4286 (catch_exceptions_with_msg): Use exception_print instead of
4287 print_any_exception.
4288 (catch_errors): Use exception_fprintf instead of
4289 print_any_exception.
4290 (catch_command_errors, catch_command_errors_const): Use
4291 exception_print instead of print_any_exception.
4293 2014-07-14 Pedro Alves <palves@redhat.com>
4295 * infcall.c (run_inferior_call): Set 'sync_execution' while
4296 running the inferior call.
4298 2014-07-14 Pedro Alves <palves@redhat.com>
4300 * value.c (value_contents_equal): Delete function.
4301 * value.h (value_contents_equal): Delete declaration.
4303 2014-07-14 Tom Tromey <tromey@redhat.com>
4306 * gdbtypes.c (is_dynamic_type_internal): New function, from
4308 (is_dynamic_type): Rewrite.
4309 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4310 (resolve_dynamic_struct): Likewise.
4311 (resolve_dynamic_type_internal): New function, from
4312 resolve_dynamic_type.
4313 (resolve_dynamic_type): Rewrite.
4315 2014-07-14 Tom Tromey <tromey@redhat.com>
4317 * target.c (target_require_runnable): Also check record_stratum.
4320 2014-07-11 Yao Qi <yao@codesourcery.com>
4322 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4323 thumb_instruction_restores_sp return true.
4325 2014-07-11 Yao Qi <yao@codesourcery.com>
4327 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4328 (thumb_in_function_epilogue_p): Call
4329 thumb_instruction_restores_sp.
4331 2014-07-11 Yao Qi <yao@codesourcery.com>
4333 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4335 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4337 2014-07-11 Gary Benson <gbenson@redhat.com>
4339 * amd64-linux-nat.c (gdbcore.h): Remove include.
4340 (regset.h): Likewise.
4341 (nat/linux-btrace.h): Likewise.
4342 (btrace.h): Likewise.
4343 (gdb_assert.h): Likewise.
4344 (string.h): Likewise.
4345 (sys/uio.h): Likewise.
4346 (sys/debugreg.h): Likewise.
4347 (sys/syscall.h): Likewise.
4348 (sys/procfs.h): Likewise.
4349 (sys/user.h): Likewise.
4350 (asm/ptrace.h): Likewise.
4351 (i386-nat.h): Likewise.
4352 * i386-linux-nat.c (i386-nat.h): Likewise.
4353 (regset.h): Likewise.
4354 (target.h): Likewise.
4355 (linux-nat.h): Likewise.
4356 (nat/linux-btrace.h): Likewise.
4357 (btrace.h): Likewise.
4358 (gdb_assert.h): Likewise.
4359 (string.h): Likewise.
4360 (sys/uio.h): Likewise.
4361 (sys/user.h): Likewise.
4362 (sys/procfs.h): Likewise.
4363 (sys/reg.h): Likewise.
4364 (sys/debugreg.h): Likewise.
4365 (ORIG_EAX): Remove definition.
4367 2014-07-11 Gary Benson <gbenson@redhat.com>
4369 * i386-linux-nat.h: New file.
4370 * x86-linux-nat.h: Likewise.
4371 * x86-linux-nat.c: Likewise.
4372 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4373 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4374 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4375 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4376 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4377 (PTRACE_SETREGSET): Likewise.
4378 (arch_lwp_info): Now in x86-linux-nat.c.
4379 (have_ptrace_getregset): Now in x86-linux-nat.h.
4380 (x86_linux_dr_get): Now in x86-linux-nat.c.
4381 (x86_linux_dr_set): Likewise.
4382 (x86_linux_dr_get_addr): Likewise.
4383 (x86_linux_dr_get_control): Likewise.
4384 (x86_linux_dr_get_status): Likewise.
4385 (update_debug_registers_callback): Likewise.
4386 (x86_linux_dr_set_control): Likewise.
4387 (x86_linux_dr_set_addr): Likewise.
4388 (x86_linux_prepare_to_resume): Likewise.
4389 (x86_linux_new_thread): Likewise.
4390 (x86_linux_new_fork): Likewise.
4391 (x86_linux_get_thread_area): Likewise.
4392 (super_post_startup_inferior): Likewise.
4393 (x86_linux_child_post_startup_inferior): Likewise.
4394 (AMD64_LINUX_USER64_CS): Likewise.
4395 (AMD64_LINUX_X32_DS): Likewise.
4396 (x86_linux_read_description): Likewise.
4397 (x86_linux_enable_btrace): Likewise.
4398 (x86_linux_disable_btrace): Likewise.
4399 (x86_linux_teardown_btrace): Likewise.
4400 (x86_linux_read_btrace): Likewise.
4401 (x86_linux_create_target): Likewise.
4402 (x86_linux_add_target): Likewise.
4403 * i386-linux-nat.c (x86-linux-nat.h): New include.
4404 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4405 (PTRACE_SETREGSET): Likewise.
4406 (arch_lwp_info): Now in x86-linux-nat.c.
4407 (have_ptrace_getregset): Now in x86-linux-nat.h.
4408 (x86_linux_dr_get): Now in x86-linux-nat.c.
4409 (x86_linux_dr_set): Likewise.
4410 (x86_linux_dr_get_addr): Likewise.
4411 (x86_linux_dr_get_control): Likewise.
4412 (x86_linux_dr_get_status): Likewise.
4413 (update_debug_registers_callback): Likewise.
4414 (x86_linux_dr_set_control): Likewise.
4415 (x86_linux_dr_set_addr): Likewise.
4416 (x86_linux_prepare_to_resume): Likewise.
4417 (x86_linux_new_thread): Likewise.
4418 (x86_linux_new_fork): Likewise.
4419 (x86_linux_get_thread_area): Likewise.
4420 (super_post_startup_inferior): Likewise.
4421 (x86_linux_child_post_startup_inferior): Likewise.
4422 (AMD64_LINUX_USER64_CS): Likewise.
4423 (AMD64_LINUX_X32_DS): Likewise.
4424 (x86_linux_read_description): Likewise.
4425 (x86_linux_enable_btrace): Likewise.
4426 (x86_linux_disable_btrace): Likewise.
4427 (x86_linux_teardown_btrace): Likewise.
4428 (x86_linux_read_btrace): Likewise.
4429 (x86_linux_create_target): Likewise.
4430 (x86_linux_add_target): Likewise.
4432 2014-07-11 Gary Benson <gbenson@redhat.com>
4434 * amd64-linux-nat.c: Comment and whitespace changes.
4435 * i386-linux-nat.c: Comment and whitespace changes.
4437 2014-07-11 Gary Benson <gbenson@redhat.com>
4439 * amd64-linux-nat.c (x86_linux_create_target): New function.
4440 (x86_linux_add_target): Likewise.
4441 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4442 * i386-linux-nat.c (x86_linux_create_target): New function.
4443 (x86_linux_add_target): Likewise.
4444 (_initialize_i386_linux_nat): Delegate to the above new functions.
4446 2014-07-11 Gary Benson <gbenson@redhat.com>
4448 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4449 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4450 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4451 (ps_get_thread_area): Delegate to the above.
4453 2014-07-11 Gary Benson <gbenson@redhat.com>
4455 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4456 x86_linux_read_description. All uses updated. amd64-specific
4457 code conditionalized. Conditionalized i386-specific code added.
4458 Redundant cast removed.
4459 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4460 x86_linux_read_description. All uses updated. i386-specific
4461 code conditionalized. Conditionalized amd64-specific code added.
4462 One sizeof replaced with the actual type it is describing.
4464 2014-07-11 Gary Benson <gbenson@redhat.com>
4466 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4467 x86_linux_dr_get. All uses updated.
4468 (amd64_linux_dr_set): Renamed to
4469 x86_linux_dr_set. All uses updated.
4470 (amd64_linux_dr_get_addr): Renamed to
4471 x86_linux_dr_get_addr. All uses updated.
4472 (amd64_linux_dr_get_control): Renamed to
4473 x86_linux_dr_get_control. All uses updated.
4474 (amd64_linux_dr_get_status): Renamed to
4475 x86_linux_dr_get_status. All uses updated.
4476 (amd64_linux_dr_set_control): Renamed to
4477 x86_linux_dr_set_control. All uses updated.
4478 (amd64_linux_dr_set_addr): Renamed to
4479 x86_linux_dr_set_addr. All uses updated.
4480 (amd64_linux_prepare_to_resume): Renamed to
4481 x86_linux_prepare_to_resume. All uses updated.
4482 (amd64_linux_new_thread): Renamed to
4483 x86_linux_new_thread. All uses updated.
4484 (amd64_linux_new_fork): Renamed to
4485 x86_linux_new_fork. All uses updated.
4486 (amd64_linux_child_post_startup_inferior): Renamed to
4487 x86_linux_child_post_startup_inferior. All uses updated.
4488 (amd64_linux_enable_btrace): Renamed to
4489 x86_linux_enable_btrace. All uses updated.
4490 (amd64_linux_disable_btrace): Renamed to
4491 x86_linux_disable_btrace. All uses updated.
4492 (amd64_linux_teardown_btrace): Renamed to
4493 x86_linux_teardown_btrace. All uses updated.
4494 (amd64_linux_read_btrace): Renamed to
4495 x86_linux_read_btrace. All uses updated.
4496 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4497 x86_linux_dr_get. All uses updated.
4498 (i386_linux_dr_set): Renamed to
4499 x86_linux_dr_set. All uses updated.
4500 (i386_linux_dr_get_addr): Renamed to
4501 x86_linux_dr_get_addr. All uses updated.
4502 (i386_linux_dr_get_control): Renamed to
4503 x86_linux_dr_get_control. All uses updated.
4504 (i386_linux_dr_get_status): Renamed to
4505 x86_linux_dr_get_status. All uses updated.
4506 (i386_linux_dr_set_control): Renamed to
4507 x86_linux_dr_set_control. All uses updated.
4508 (i386_linux_dr_set_addr): Renamed to
4509 x86_linux_dr_set_addr. All uses updated.
4510 (i386_linux_prepare_to_resume): Renamed to
4511 x86_linux_prepare_to_resume. All uses updated.
4512 (i386_linux_new_thread): Renamed to
4513 x86_linux_new_thread. All uses updated.
4514 (i386_linux_new_fork): Renamed to
4515 x86_linux_new_fork. All uses updated.
4516 (i386_linux_child_post_startup_inferior): Renamed to
4517 x86_linux_child_post_startup_inferior. All uses updated.
4518 (i386_linux_enable_btrace): Renamed to
4519 x86_linux_enable_btrace. All uses updated.
4520 (i386_linux_disable_btrace): Renamed to
4521 x86_linux_disable_btrace. All uses updated.
4522 (i386_linux_teardown_btrace): Renamed to
4523 x86_linux_teardown_btrace. All uses updated.
4524 (i386_linux_read_btrace): Renamed to
4525 x86_linux_read_btrace. All uses updated.
4527 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4529 * remote.c (extended_remote_post_attach): New function.
4530 (init_extended_remote_ops): Install it as to_post_attach method.
4532 2014-07-09 Pedro Alves <palves@redhat.com>
4534 * infcmd.c (attach_command_post_wait): Don't call
4535 target_terminal_inferior here.
4536 (attach_command): Call it here instead.
4538 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4540 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4542 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4543 from varobj.c, with additional checks.
4544 (c_varobj_ops): Fill in is_path_expr_parent field.
4545 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4546 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4548 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4550 (varobj_default_is_path_expr_parent): New function.
4551 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4552 (varobj_default_is_path_expr_parent): Declare new function.
4554 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4556 * infcmd.c (finish_backward): Turn internal error into normal error.
4558 2014-07-07 Pedro Alves <palves@redhat.com>
4561 * remote.c (async_handle_remote_sigint)
4562 (async_handle_remote_sigint_twice): Call
4563 gdb_call_async_signal_handler instead of
4564 mark_async_signal_handler.
4566 2014-07-07 Tom Tromey <tromey@redhat.com>
4568 * target-delegates.c: Rebuild.
4569 * target.c (target_info_record): Remove.
4570 * record.c (info_record_command): Unconditionally call
4572 * target.h (struct target_ops) <to_info_record>: Use
4573 TARGET_DEFAULT_IGNORE.
4574 (target_info_record): Remove.
4576 2014-07-07 Tom Tromey <tromey@redhat.com>
4578 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4579 TARGET_DEFAULT_NORETURN.
4580 * target.c (generic_tls_error): New function.
4581 (target_translate_tls_address): Don't search target stack.
4582 * target-delegates.c: Rebuild.
4583 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4585 * linux-thread-db.c (thread_db_get_thread_local_address):
4586 Unconditionally call beneath target.
4588 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4590 * cli/cli-logging.c (pop_output_files): Assign targerr to
4593 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4595 * MAINTAINERS (Write After Approval): Update my email address.
4597 2014-07-02 Gary Benson <gbenson@redhat.com>
4599 * proc-service.c (ps_xfer_memory): Update comment.
4600 (ps_pstop): Remove unused function.
4601 (ps_pcontinue): Likewise.
4602 (ps_lstop): Likewise.
4603 (ps_lcontinue): Likewise.
4604 (ps_lgetxregsize): Likewise.
4605 (ps_lgetxregs): Likewise.
4606 (ps_lsetxregs): Likewise.
4607 (ps_plog): Likewise.
4608 (ps_ptread): Likewise.
4609 (ps_ptwrite): Likewise.
4611 2014-07-01 Mark Wielaard <mjw@redhat.com>
4613 * dwarf2read.c (add_array_cv_type): New function.
4614 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4615 (read_tag_volatile_type): Likewise.
4617 2014-07-01 Tom Tromey <tromey@redhat.com>
4619 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4620 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4621 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4622 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4623 * command.h (cmd_cfunc_ftype): Move earlier.
4624 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4625 (add_com, add_info): Use cmd_cfunc_ftype.
4627 2014-06-30 Tom Tromey <tromey@redhat.com>
4629 * symtab.c (operator_chars): Make parameters and return type
4631 (file_matches): Make "files" const.
4632 (struct search_symbols_data) <files>: Now const.
4633 (search_symbols): Make "regexp" and "files" parameters const.
4635 (symtab_symbol_info): Remove cast.
4636 (rbreak_command): Update.
4637 * symtab.h (search_symbols): Update.
4639 2014-06-27 Yao Qi <yao@codesourcery.com>
4641 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4642 Change parameter type to 'struct thread_info *'. Caller
4644 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4646 * dummy-frame.c (struct dummy_frame_id): New.
4647 (dummy_frame_id_eq): New function.
4648 (struct dummy_frame) <id>: Change its type to 'struct
4650 (dummy_frame_push): Add parameter ptid and save it in
4652 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4654 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4656 (lookup_dummy_frame): Change parameter type to 'struct
4657 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4658 instead of frame_id_eq.
4659 (dummy_frame_pop): Add parameter ptid. Callers updated.
4660 Update comments. Compose dummy_frame_id and pass it to
4662 (dummy_frame_discard): Add parameter ptid.
4663 (dummy_frame_sniffer): Compose dummy_frame_id and call
4664 dummy_frame_id_eq instead of frame_id_eq.
4665 (fprint_dummy_frames): Print ptid.
4666 * dummy-frame.h: Remove comments.
4667 (dummy_frame_push): Add ptid in declaration.
4668 (dummy_frame_pop, dummy_frame_discard): Likewise.
4670 2014-06-26 Tom Tromey <tromey@redhat.com>
4672 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4673 * command.h (error_no_arg): Update.
4675 2014-06-26 Tom Tromey <tromey@redhat.com>
4677 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4678 (do_show_command): Make "arg" const.
4679 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4681 2014-06-26 Tom Tromey <tromey@redhat.com>
4683 * record-full.c (record_full_get_bookmark): Make "args" const.
4684 (record_full_goto_bookmark): Make "raw_bookmark" const.
4685 * record.c (record_goto): New function.
4686 (cmd_record_goto): Use it. Now static.
4687 * record.h (record_goto): Declare.
4688 (cmd_record_goto): Remove declaration.
4689 * target-delegates.c: Rebuild.
4690 * target.h (struct target_ops) <to_get_bookmark,
4691 to_goto_bookmark>: Make parameter const.
4693 2014-06-26 Tom Tromey <tromey@redhat.com>
4695 * defs.h (generic_load): Update.
4696 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4697 * monitor.c (monitor_load): Make "args" const.
4698 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4699 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4701 (mips_load): Make "file" const.
4702 * remote-sim.c (gdbsim_load): Make "args" const.
4703 * remote.c (remote_load): Make "name" const.
4704 * symfile.c (generic_load): Make "args" const.
4705 * target-delegates.c: Rebuild.
4706 * target.c (target_load): Make "arg" const.
4707 (debug_to_load): Make "args" const.
4708 * target.h (struct target_ops) <to_load>: Make parameter const.
4709 (target_load): Update.
4711 2014-06-26 Tom Tromey <tromey@redhat.com>
4714 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4715 (dwarf2_physname, read_partial_die)
4716 (guess_partial_die_structure_name, fixup_partial_die)
4717 (guess_full_die_structure_name, anonymous_struct_prefix)
4718 (dwarf2_name): Use per-BFD obstack.
4720 2014-06-26 Yao Qi <yao@codesourcery.com>
4722 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4723 dummyframe and this_id into inner block below.
4725 2014-06-26 Yao Qi <yao@codesourcery.com>
4727 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4728 with "signal_pass[0]" in the initialization of signal_pass.
4730 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4732 * record-btrace.c (record_btrace_generating_corefile)
4733 (record_btrace_prepare_to_generate_core)
4734 (record_btrace_done_generating_core): New.
4735 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4736 (record_btrace_store_registers, record_btrace_prepare_to_store):
4737 Forward request when generating a core file.
4738 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4739 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4740 to_done_generating_core.
4742 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4744 * target.h (target_ops) <to_prepare_to_generate_core>
4745 <to_done_generating_core>: New.
4746 (target_prepare_to_generate_core, target_done_generating_core): New.
4747 * target.c (target_prepare_to_generate_core)
4748 (target_done_generating_core): New.
4749 * target-delegates.c: Regenerate.
4750 * gcore.c: (write_gcore_file): Rename to ...
4751 (write_gcore_file_1): ...this.
4752 (write_gcore_file): Call target_prepare_to_generate_core
4753 and target_done_generating_core.
4755 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4757 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4758 * gcore.c (write_gcore_file): Free memory returned from
4759 make_corefile_notes.
4760 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4761 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4763 2014-06-24 Yao Qi <yao@codesourcery.com>
4765 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4766 (arm_linux_init_abi): Set skip_trampoline_code with
4767 gdbarch_skip_trampoline_code instead of
4768 find_solib_trampoline_target.
4770 2014-06-24 Yao Qi <yao@codesourcery.com>
4772 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4773 arm_skip_bx_reg returns non-zero.
4775 2014-06-24 Yao Qi <yao@codesourcery.com>
4777 * arm-tdep.c (arm_skip_bx_reg): New function.
4778 (arm_skip_stub): Call arm_skip_bx_reg.
4780 2014-06-23 Don Breazeal <donb@codesourcery.com>
4782 * MAINTAINERS: Add myself as write-after-approval maintainer.
4784 2014-06-23 Pedro Alves <palves@redhat.com>
4786 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4787 DR_CONTROL before setting DR0..DR3.
4788 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4789 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4790 bits of DR_CONTROL related to the debug register slot being
4791 disabled. If all slots are vacant, clear local slowdown as well,
4792 and assert DR_CONTROL is 0.
4794 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4796 * python/lib/gdb/command/xmethods.py
4797 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4798 current progspace only if the string "progspace" matches LOCUS_RE.
4800 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4802 Fix --with-system-readline with readline-6.3 patch 5.
4803 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4804 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4807 2014-06-20 Tom Tromey <tromey@redhat.com>
4809 * dwarf2read.c (dw2_get_real_path): Use correct type in
4811 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4813 2014-06-20 Gary Benson <gbenson@redhat.com>
4815 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4816 * common/glibc_thread_db.h: Likewise.
4817 * common/i386-cpuid.h: Likewise.
4818 * common/i386-gcc-cpuid.h: Likewise.
4819 * common/linux-btrace.h: Likewise.
4820 * common/linux-osdata.h: Likewise.
4821 * common/linux-procfs.h: Likewise.
4822 * common/linux-ptrace.h: Likewise.
4823 * common/mips-linux-watch.h: Likewise.
4824 * common/linux-btrace.c: Moved to nat.
4825 * common/linux-osdata.c: Likewise.
4826 * common/linux-procfs.c: Likewise.
4827 * common/linux-ptrace.c: Likewise.
4828 * common/mips-linux-watch.c: Likewise.
4829 * nat/gdb_thread_db.h: Moved from common.
4830 * nat/glibc_thread_db.h: Likewise.
4831 * nat/i386-cpuid.h: Likewise.
4832 * nat/i386-gcc-cpuid.h: Likewise.
4833 * nat/linux-btrace.c: Likewise.
4834 * nat/linux-btrace.h: Likewise.
4835 * nat/linux-osdata.c: Likewise.
4836 * nat/linux-osdata.h: Likewise.
4837 * nat/linux-procfs.c: Likewise.
4838 * nat/linux-procfs.h: Likewise.
4839 * nat/linux-ptrace.c: Likewise.
4840 * nat/linux-ptrace.h: Likewise.
4841 * nat/mips-linux-watch.c: Likewise.
4842 * nat/mips-linux-watch.h: Likewise.
4843 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4844 (object file files): Reordered.
4845 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4846 of glibc_thread_db.h.
4848 2014-06-20 Gary Benson <gbenson@redhat.com>
4850 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4851 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4852 (i386_dr_low): Likewise.
4853 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4854 (i386_dr_low_set_addr): Likewise.
4855 (i386_dr_low_get_addr): Likewise.
4856 (i386_dr_low_can_set_control): Likewise.
4857 (i386_dr_low_set_control): Likewise.
4858 (i386_dr_low_get_control): Likewise.
4859 (i386_dr_low_get_status): Likewise.
4860 (i386_get_debug_register_length): Likewise.
4861 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4862 (i386_dr_low): Likewise.
4863 * nat/i386-dregs.c (i386-low.h): Remove include.
4864 (i386-nat.h): Likewise.
4865 (nat/i386-dregs.h): New include.
4866 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4867 (i386_dr_low_set_addr): Likewise.
4868 (i386_dr_low_get_addr): Likewise.
4869 (i386_dr_low_can_set_control): Likewise.
4870 (i386_dr_low_set_control): Likewise.
4871 (i386_dr_low_get_control): Likewise.
4872 (i386_dr_low_get_status): Likewise.
4873 (i386_get_debug_register_length): Likewise.
4874 (debug_hw_points): Likewise.
4876 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4878 * Makefile.in (SFILES): Add d-exp.y.
4879 (YYFILES): Add d-exp.c.
4880 (YYOBJ): Add d-exp.o.
4881 (local-maintainer-clean): Delete d-exp.c.
4882 * d-exp.y: New file.
4883 * d-lang.h (d_parse): New declaration.
4884 (d_error): New declaration.
4885 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4886 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4887 PREC_ORDER operators.
4888 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4890 2014-06-19 Yao Qi <yao@codesourcery.com>
4892 * gdbthread.h (any_running): Remove the declaration.
4893 * thread.c (any_running): Remove.
4895 2014-06-19 Yao Qi <yao@codesourcery.com>
4897 * gdbthread.h (struct thread_info) <state>: Change its type to
4898 'enum thread_state'. Update comments.
4900 2014-06-19 Pedro Alves <palves@redhat.com>
4902 * gdbthread.h (ALL_THREADS): Delete.
4903 (ALL_NON_EXITED_THREADS): New macro.
4904 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4905 instead of ALL_THREADS.
4906 * infrun.c (find_thread_needs_step_over)
4907 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4908 instead of ALL_THREADS.
4909 * record-btrace.c (record_btrace_open)
4910 (record_btrace_stop_recording, record_btrace_close)
4911 (record_btrace_is_replaying, record_btrace_resume)
4912 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4913 * remote.c (append_pending_thread_resumptions): Likewise.
4914 * thread.c (thread_apply_all_command): Likewise.
4916 2014-06-19 Gary Benson <gbenson@redhat.com>
4918 * i386-nat.c (i386_stopped_by_watchpoint):
4919 Use i386_dr_stopped_by_watchpoint.
4920 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4921 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4923 2014-06-19 Gary Benson <gbenson@redhat.com>
4925 * nat/i386-dregs.c: New file.
4926 * Makefile.in (i386-dregs.o): New rule.
4927 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4928 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4929 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4930 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4931 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4932 * config/i386/go32.mh (NATDEPFILES): Likewise.
4933 * config/i386/linux.mh (NATDEPFILES): Likewise.
4934 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4935 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4936 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4937 * i386-nat.h (debug_hw_points): New declaration.
4938 * i386-nat.c (breakpoint.h): Remove include.
4939 (command.h): Likewise.
4940 (target.h): Likewise.
4941 (gdb_assert.h): Likewise.
4942 (debug_hw_points): Made nonstatic.
4943 (debug_printf): Now in i386-dregs.c.
4944 (TARGET_HAS_DR_LEN_8): Likewise.
4945 (DR_CONTROL_SHIFT): Likewise.
4946 (DR_CONTROL_SIZE): Likewise.
4947 (DR_RW_EXECUTE): Likewise.
4948 (DR_RW_WRITE): Likewise.
4949 (DR_RW_READ): Likewise.
4950 (DR_RW_IORW): Likewise.
4951 (DR_LEN_1): Likewise.
4952 (DR_LEN_2): Likewise.
4953 (DR_LEN_4): Likewise.
4954 (DR_LEN_8): Likewise.
4955 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4956 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4957 (DR_ENABLE_SIZE): Likewise.
4958 (DR_LOCAL_SLOWDOWN): Likewise.
4959 (DR_GLOBAL_SLOWDOWN): Likewise.
4960 (DR_CONTROL_RESERVED): Likewise.
4961 (I386_DR_CONTROL_MASK): Likewise.
4962 (I386_DR_VACANT): Likewise.
4963 (I386_DR_LOCAL_ENABLE): Likewise.
4964 (I386_DR_GLOBAL_ENABLE): Likewise.
4965 (I386_DR_DISABLE): Likewise.
4966 (I386_DR_SET_RW_LEN): Likewise.
4967 (I386_DR_GET_RW_LEN): Likewise.
4968 (I386_DR_WATCH_HIT): Likewise.
4969 (i386_wp_op_t): Likewise.
4970 (i386_show_dr): Likewise.
4971 (i386_length_and_rw_bits): Likewise.
4972 (i386_insert_aligned_watchpoint): Likewise.
4973 (i386_remove_aligned_watchpoint): Likewise.
4974 (i386_handle_nonaligned_watchpoint): Likewise.
4975 (i386_update_inferior_debug_regs): Likewise.
4976 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4977 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4978 (i386_region_ok_for_watchpoint):
4979 Use i386_dr_region_ok_for_watchpoint.
4980 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4982 2014-06-19 Gary Benson <gbenson@redhat.com>
4984 * i386-nat.c (i386_insert_hw_breakpoint): Use
4985 i386_insert_watchpoint.
4986 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4988 2014-06-19 Gary Benson <gbenson@redhat.com>
4990 * i386-nat.c (i386_dr_show): Renamed to
4991 i386_show_dr and made static. All uses updated.
4992 (i386_dr_length_and_rw_bits): Renamed to
4993 i386_length_and_rw_bits and made static.
4995 (i386_dr_insert_aligned_watchpoint): Renamed to
4996 i386_insert_aligned_watchpoint and made static.
4998 (i386_dr_remove_aligned_watchpoint): Renamed to
4999 i386_remove_aligned_watchpoint and made static.
5001 (i386_dr_update_inferior_debug_regs): Renamed to
5002 i386_update_inferior_debug_regs and made static.
5004 * nat/i386-dregs.h (i386_dr_show): Removed.
5005 (i386_dr_length_and_rw_bits): Likewise.
5006 (i386_dr_insert_aligned_watchpoint): Likewise.
5007 (i386_dr_remove_aligned_watchpoint): Likewise.
5008 (i386_dr_update_inferior_debug_regs): Likewise.
5010 2014-06-19 Gary Benson <gbenson@redhat.com>
5012 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5013 * configure: Regenerate.
5014 * config.in: Likewise.
5015 * main.c (signal.h): New include.
5016 (setup_alternate_signal_stack): New function.
5017 (captured_main): Call the above.
5018 * cp-support.c (signal.h): New include.
5019 (catch_demangler_crashes): New flag.
5020 (SIGJMP_BUF): New define.
5021 (SIGSETJMP): Likewise.
5022 (SIGLONGJMP): Likewise.
5023 (gdb_demangle_jmp_buf): New static global.
5024 (gdb_demangle_attempt_core_dump): Likewise.
5025 (gdb_demangle_signal_handler): New function.
5026 (gdb_demangle): If catch_demangler_crashes is set, install the
5027 above signal handler before calling bfd_demangle, and restore
5028 the original signal handler afterwards. Display the offending
5029 symbol and call demangler_warning the first time a segmentation
5031 (_initialize_cp_support): New maint set/show command.
5033 2014-06-19 Gary Benson <gbenson@redhat.com>
5035 * utils.h (resource_limit_kind): New enum.
5036 (can_dump_core): New declaration.
5037 (warn_cant_dump_core): Likewise.
5038 (dump_core): Likewise.
5039 * utils.c (dump_core): Made nonstatic. Added new
5040 parameter "limit_kind".
5041 (can_dump_core): Made nonstatic. Moved printing code to...
5042 (warn_cant_dump_core): New function.
5043 (can_dump_core_warn): Likewise.
5044 (internal_vproblem): Replace calls to can_dump_core with
5045 calls to can_dump_core_warn. Supply new argument to each.
5047 2014-06-19 Gary Benson <gbenson@redhat.com>
5049 * utils.h (demangler_vwarning): New declaration.
5050 (demangler_warning): Likewise.
5051 * utils.c (struct internal_problem)
5052 <user_settable_should_quit>: New field.
5053 <user_settable_should_dump_core>: Likewise
5054 (internal_error_problem): Add values for above new fields.
5055 (internal_warning_problem): Likewise.
5056 (demangler_warning_problem): New static global.
5057 (demangler_vwarning): New function.
5058 (demangler_warning): Likewise.
5059 (add_internal_problem_command): Selectively add commands.
5060 (_initialize_utils): New internal problem command.
5061 * maint.c (maintenance_demangler_warning): New function.
5062 (_initialize_maint_cmds): New command.
5064 2014-06-18 Tom Tromey <tromey@redhat.com>
5066 * f-valprint.c (info_common_command_for_block): Update.
5067 * symtab.h (struct general_symbol_info) <common_block>: Now
5070 2014-06-18 Tom Tromey <tromey@redhat.com>
5072 * symtab.h (struct symtab) <blockvector>: Now const.
5073 * ada-lang.c (ada_add_global_exceptions): Update.
5074 * buildsym.c (augment_type_symtab): Update.
5075 * dwarf2read.c (dw2_lookup_symbol): Update.
5076 * jit.c (finalize_symtab): Update.
5077 * jv-lang.c (add_class_symtab_symbol): Update.
5078 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5080 * objfiles.c (objfile_relocate1): Update.
5081 * psymtab.c (lookup_symbol_aux_psymtabs)
5082 (maintenance_check_psymtabs): Update.
5083 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5085 * spu-tdep.c (spu_catch_start): Update.
5086 * symmisc.c (dump_symtab_1): Update.
5087 * symtab.c (lookup_global_symbol_from_objfile)
5088 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5089 (basic_lookup_transparent_type_quick)
5090 (basic_lookup_transparent_type, find_pc_sect_symtab)
5091 (find_pc_sect_line, search_symbols): Update.
5092 * block.c (find_block_in_blockvector): Make "bl" const.
5093 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5095 (blockvector_contains_pc): Make "bv" const.
5096 (block_for_pc_sect): Update.
5097 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5098 (blockvector_contains_pc): Update.
5099 * breakpoint.c (resolve_sal_pc): Update.
5100 * inline-frame.c (block_starting_point_at): Update.
5102 2014-06-18 Tom Tromey <tromey@redhat.com>
5104 * completer.c (complete_line): Make "line_buffer" const.
5105 * completer.h (complete_line): Update.
5107 2014-06-18 Tom Tromey <tromey@redhat.com>
5109 * symtab.c (add_macro_name): Remove unneeded cast.
5111 2014-06-18 Tom Tromey <tromey@redhat.com>
5113 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5114 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5116 2014-06-18 Tom Tromey <tromey@redhat.com>
5118 * probe.c (info_probes_for_ops): Make "arg" const.
5119 * probe.h (info_probes_for_ops): Update.
5121 2014-06-18 Tom Tromey <tromey@redhat.com>
5123 * varobj.c (varobj_create): Update.
5124 * valops.c (value_of_this): Update.
5125 * tracepoint.c (add_local_symbols, scope_info): Update.
5126 * symtab.h (struct general_symbol_info) <block>: Now const.
5127 * symtab.c (skip_prologue_sal)
5128 (default_make_symbol_completion_list_break_on)
5129 (skip_prologue_using_sal): Update.
5130 * stack.h (iterate_over_block_locals)
5131 (iterate_over_block_local_vars): Update.
5132 * stack.c (print_frame_args): Update.
5133 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5135 (get_selected_block): Make return type const.
5136 * python/py-frame.c (frapy_block): Update.
5137 * python/py-block.c (gdbpy_block_for_pc): Update.
5138 * p-exp.y (%union) <bval>: Now const.
5139 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5140 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5141 * m2-exp.y (%union) <bval>: Now const.
5142 * linespec.c (get_current_search_block): Make return type const.
5143 (create_sals_line_offset, find_label_symbols): Update.
5144 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5146 (block_starting_point_at): Make "block" const.
5147 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5148 (check_exception_resume): Update.
5149 * guile/scm-frame.c (gdbscm_frame_block): Update.
5150 * guile/scm-block.c (gdbscm_lookup_block): Update.
5151 * frame.h (get_frame_block): Update.
5152 (get_selected_block): Make return type const.
5153 * frame.c (frame_id_inner): Update.
5154 * f-valprint.c (info_common_command_for_block)
5155 (info_common_command): Update.
5156 * dwarf2loc.c (dwarf2_find_location_expression)
5157 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5158 (locexpr_describe_location_piece): Update.
5159 * c-exp.y (%union) <bval>: Now const.
5160 * breakpoint.c (resolve_sal_pc): Update.
5161 * blockframe.c (get_frame_block):Make return type const.
5162 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5163 (block_innermost_frame): Update.
5164 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5165 (block_for_pc, block_for_pc_sect): Update.
5166 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5168 (block_for_pc_sect, block_for_pc): Make return type const.
5169 * ax-gdb.c (gen_expr): Update.
5170 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5171 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5172 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5173 (ada_read_var_value): Update.
5174 * ada-exp.y (struct name_info) <block>: Now const.
5176 (block_lookup): Constify.
5178 2014-06-18 Gary Benson <gbenson@redhat.com>
5180 * nat/i386-dregs.h: New file.
5181 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5182 * i386-nat.h (i386-dregs.h): New include.
5183 (DR_FIRSTADDR): Now in i386-dregs.h.
5184 (DR_LASTADDR): Likewise.
5185 (DR_NADDR): Likewise.
5186 (DR_STATUS): Likewise.
5187 (DR_CONTROL): Likewise.
5188 (i386_debug_reg_state): Likewise.
5189 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5191 2014-06-18 Don Breazeal <donb@codesourcery.com>
5193 * breakpoint.c (set_longjmp_breakpoint): Call
5194 momentary_breakpoint_from_master with additional argument.
5195 (set_longjmp_breakpoint_for_call_dummy): Call
5196 momentary_breakpoint_from_master with additional argument.
5197 (set_std_terminate_breakpoint): Call
5198 momentary_breakpoint_from_master with additional argument.
5199 (momentary_breakpoint_from_master): Add argument to function
5200 definition and use it to initialize structure member flag.
5201 (clone_momentary_breakpoint): Call
5202 momentary_breakpoint_from_master with additional argument.
5203 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5204 member flags set in momentary_breakpoint_from_master.
5206 2014-06-18 Gary Benson <gbenson@redhat.com>
5208 * i386-nat.c (i386_show_dr): Renamed to
5209 i386_dr_show and made nonstatic. All uses updated.
5210 (i386_length_and_rw_bits): Renamed to
5211 i386_dr_length_and_rw_bits and made nonstatic.
5213 (i386_insert_aligned_watchpoint): Renamed to
5214 i386_dr_insert_aligned_watchpoint and made nonstatic.
5216 (i386_remove_aligned_watchpoint): Renamed to
5217 i386_dr_remove_aligned_watchpoint and made nonstatic.
5219 (i386_update_inferior_debug_regs): Renamed to
5220 i386_dr_update_inferior_debug_regs and made nonstatic.
5223 2014-06-18 Gary Benson <gbenson@redhat.com>
5225 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5226 (i386_dr_low_can_set_control): Likewise.
5227 (i386_dr_low_set_addr): Likewise.
5228 (i386_dr_low_set_control): Likewise.
5229 (i386_dr_low_get_addr): Likewise.
5230 (i386_dr_low_get_status): Likewise.
5231 (i386_dr_low_get_control): Likewise.
5232 (i386_insert_aligned_watchpoint): Use new macros.
5233 (i386_update_inferior_debug_regs): Likewise.
5234 (i386_stopped_data_address): Likewise.
5236 2014-06-18 Gary Benson <gbenson@redhat.com>
5238 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5239 New parameter. All uses updated.
5241 2014-06-18 Gary Benson <gbenson@redhat.com>
5243 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5246 2014-06-18 Gary Benson <gbenson@redhat.com>
5248 * i386-nat.c (debug_printf): New macro.
5249 (i386_get_debug_register_length): Likewise.
5250 (TARGET_HAS_DR_LEN_8): Use above macro.
5251 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5252 and printf_unfiltered. Use phex to format values.
5254 2014-06-18 Gary Benson <gbenson@redhat.com>
5256 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5259 2014-06-18 Gary Benson <gbenson@redhat.com>
5261 * i386-nat.c: Comment changes.
5263 2014-06-18 Gary Benson <gbenson@redhat.com>
5265 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5267 2014-06-18 Gary Benson <gbenson@redhat.com>
5269 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5270 (i386_insert_aligned_watchpoint): Likewise.
5271 (i386_remove_aligned_watchpoint): Likewise.
5272 (i386_handle_nonaligned_watchpoint): Likewise.
5274 2014-06-18 Gary Benson <gbenson@redhat.com>
5276 * i386-nat.c: Whitespace changes.
5278 2014-06-17 Samuel Bronson <naesten@gmail.com>
5280 * MAINTAINERS: Update Roland McGrath's email address.
5281 Thanks to Sergio Durigan Junior for pointing out that he left
5282 Red Hat a while ago, and giving me a current address.
5284 2014-06-17 Tom Tromey <tromey@redhat.com>
5286 * utils.h (savestring): Remove declaration.
5288 2014-06-17 Tom Tromey <tromey@redhat.com>
5290 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5292 2014-06-16 Keith Seitz <keiths@redhat.com>
5295 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5296 to update the varobj if inferior_ptid is null_ptid.
5298 2014-06-16 Tom Tromey <tromey@redhat.com>
5300 * target.h (struct target_ops) <to_info_proc>: Make parameter
5302 (target_info_proc): Update.
5303 * target.c (target_info_proc): Make "args" const.
5304 * procfs.c (procfs_info_proc): Update.
5305 * linux-tdep.c (linux_info_proc): Update.
5306 (linux_core_info_proc_mappings): Make "args" const.
5307 (linux_core_info_proc): Update.
5308 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5309 * gdbarch.c: Rebuild.
5310 * gdbarch.h: Rebuild.
5311 * corelow.c (core_info_proc): Update.
5313 2014-06-16 Tom Tromey <tromey@redhat.com>
5315 * target.h (struct target_ops) <to_disconnect>: Make parameter
5317 (target_disconnect): Update.
5318 * target.c (target_disconnect): Make "args" const.
5319 * target-delegates.c: Rebuild.
5320 * remote.c (remote_disconnect): Update.
5321 * record.h (record_disconnect): Update.
5322 * record.c (record_disconnect): Update.
5323 * inf-child.c (inf_child_disconnect): Update.
5325 2014-06-16 Tom Tromey <tromey@redhat.com>
5327 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5328 * target.c (debug_to_rcmd, default_rcmd): Update.
5329 * target-delegates.c: Rebuild.
5330 * remote.c (remote_rcmd): Update.
5331 * monitor.c (monitor_rcmd): Update.
5333 2014-06-16 Pedro Alves <palves@redhat.com>
5335 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5336 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5337 have OBJF_SHARED set.
5338 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5339 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5340 instead of OBJF_USERLOADED.
5341 * objfiles.h (OBJF_SHARED): Update comment.
5342 (userloaded_objfile_contains_address_p): Rename to ...
5343 (shared_objfile_contains_address_p): ... this, and update
5345 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5347 (remove_symbol_file_command): Skip objfiles that don't have
5350 2014-06-16 Tom Tromey <tromey@redhat.com>
5352 * minsyms.h (prim_record_minimal_symbol)
5353 (prim_record_minimal_symbol_and_info): Update comments.
5355 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5357 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5358 or --without-guile, according to how GDB was built.
5360 2014-06-13 Tom Tromey <tromey@redhat.com>
5362 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5364 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5366 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5368 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5369 help_list.Pass all_commands, not -1, to help_list.
5370 * cli/cli-dump.c (dump_command, append_command)
5371 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5372 (binary_dump_command, binary_append_command): Pass all_commands,
5373 not -1, to help_list.
5374 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5376 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5378 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5380 * top.c (set_history): Pass all_commands, not -1, to help_list.
5381 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5382 all_commands, not -1, to help_list.
5383 * symfile.c (overlay_command): Pass all_commands, not -1, to
5385 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5387 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5389 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5391 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5392 not -1, to help_list.
5393 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5394 not -1, to help_list.
5395 * maint.c (maintenance_command, maintenance_info_command)
5396 (maintenance_print_command, maintenance_set_cmd): Pass
5397 all_commands, not -1, to help_list.
5398 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5400 * language.c (set_check): Pass all_commands, not -1, to help_list.
5401 * infcmd.c (unset_command): Pass all_commands, not -1, to
5403 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5405 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5407 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5409 * breakpoint.c (save_command): Pass all_commands, not -1, to
5411 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5412 all_commands, not -1, to help_list.
5414 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5416 * regcache.c (struct register_to_invalidate): New structure.
5417 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5419 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5421 2014-06-12 Yao Qi <yao@codesourcery.com>
5423 * varobj.c (varobj_get_num_children): Call
5424 varobj_is_dynamic_p.
5425 (varobj_list_children): Likewise.
5426 (varobj_update): Likewise. Update comments.
5428 2014-06-12 Yao Qi <yao@codesourcery.com>
5430 * varobj.c (varobj_pretty_printed_p): Rename to ...
5431 (varobj_is_dynamic_p): ... this. New function.
5432 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5433 (varobj_is_dynamic_p): Declare.
5434 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5435 (mi_print_value_p, varobj_update_one): Likewise.
5437 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5438 Yao Qi <yao@codesourcery.com>
5440 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5441 (varobj_get_iterator): Wrap up code for pretty-printer by
5442 "#if HAVE_PYTHON" and "#endif".
5443 (update_dynamic_varobj_children): Likewise.
5445 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5446 Yao Qi <yao@codesourcery.com>
5448 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5449 gdb_python_initialized is false. Move some code from varobj.c.
5450 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5451 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5452 (struct varobj_item): Moved to varobj-iter.h".
5453 (varobj_clear_saved_item): New function.
5454 (update_dynamic_varobj_children): Move python-related code to
5456 (free_variable): Call varobj_clear_saved_item and
5459 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5460 Yao Qi <yao@codesourcery.com>
5462 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5463 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5464 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5465 (py-varobj.o): New rule.
5466 * python/py-varobj.c: New file.
5467 * python/python-internal.h (py_varobj_get_iterator): Declare.
5468 * varobj-iter.h: New file.
5469 * varobj.c: Include "varobj-iter.h"
5470 (struct varobj) <child_iter>: Change its type from "PyObject *"
5471 to "struct varobj_iter *".
5472 <saved_item>: Likewise.
5473 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5474 [HAVE_PYTHON] (varobj_get_iterator): New function.
5475 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5476 python-specific code to python/py-varobj.c.
5477 (install_visualizer): Call varobj_iter_delete instead of
5479 * varobj.h (varobj_ensure_python_env): Declare.
5481 2014-06-12 Yao Qi <yao@codesourcery.com>
5483 * varobj.c (struct varobj_item): New structure.
5484 (create_child_with_value): Update declaration.
5485 (varobj_add_child): Replace arguments 'name' and 'value' with
5486 'item'. All callers updated.
5487 (install_dynamic_child): Likewise.
5488 (update_dynamic_varobj_children): Likewise.
5489 (varobj_add_child): Likewise.
5490 (create_child_with_value): Likewise.
5492 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5494 * NEWS: Create a new section for the next release branch.
5495 Rename the section of the current branch, now that it has
5498 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5500 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5501 * version.in: Bump version to 7.8.50.DATE-cvs.
5503 2014-06-11 Pedro Alves <palves@redhat.com>
5506 * ser-mingw.c (net_windows_socket_check_pending): New function.
5507 (net_windows_select_thread): Ignore spurious wakeups. Use
5508 net_windows_socket_check_pending.
5509 (net_windows_wait_handle): Check for pending events with
5510 ioctlsocket, through net_windows_socket_check_pending, instead of
5511 checking the socket's event.
5513 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5515 * python/python-internal.h (gdb_PyObject_GetAttrString)
5516 (gdb_PyObject_HasAttrString): New inline function definitions.
5517 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5518 char * of the second argument to PyObject_GetAttrString.
5520 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5522 * serial.c (serial_write): Fix index of character to be printed
5523 in call to serial_logchar when serial debug traces are enabled.
5525 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5527 * gdbtypes (resolve_dynamic_range): Add function description.
5529 2014-06-09 Pedro Alves <palves@redhat.com>
5531 * linux-nat.c (linux_child_follow_fork): Initialize status with
5532 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5533 inner block. Only pass the signal to PTRACE_DETACH if in pass
5536 2014-06-09 Gary Benson <gbenson@redhat.com>
5538 * common/signals.c (gdb_signal_from_host): Reorder to separate
5539 the always-available ANSI-standard signals from the signals that
5541 (do_gdb_signal_to_host): Likewise.
5542 * proc-events.c (signal_table): Likewise.
5544 2014-06-08 Hui Zhu <hui@codesourcery.com>
5546 * common/linux-ptrace.c (linux_disable_event_reporting): New
5548 * common/linux-ptrace.h (linux_disable_event_reporting): New
5550 * linux-nat.c (linux_child_follow_fork): Do a single step before
5553 2014-06-07 Keith Seitz <keiths@redhat.com>
5557 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5558 from symbol_matches_domain in symtab.c. All local callers
5559 of symbol_matches_domain updated.
5560 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5561 search STRUCT_DOMAIN.
5562 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5563 independently. standard_lookup will do that automatically.
5564 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5565 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5566 (cp_lookup_symbol_in_namespace): Likewise.
5567 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5568 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5569 may return a STRUCT_DOMAIN match.
5570 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5571 * cp-support.c: Include language.h.
5572 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5574 * psymtab.c (match_partial_symbol): Compare the requested
5575 domain with the symbol's domain directly.
5576 (lookup_partial_symbol): Likewise.
5577 * symtab.c (lookup_symbol_in_language): Explain when/why
5578 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5579 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5580 appropriate languages.
5581 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5582 and moved to ada-lang.c
5583 (lookup_block_symbol): Explain that this function only returns
5584 symbol matching the requested DOMAIN.
5585 Compare the requested domain with the symbol's domain directly.
5586 (iterate_over_symbols): Compare the requested domain with the
5587 symbol's domain directly.
5588 * symtab.h (symbol_matches_domain): Remove.
5590 2014-06-06 Doug Evans <xdje42@gmail.com>
5592 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5593 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5594 (gdbscm_guile_version_is_at_least): Declare.
5595 (gdbscm_scm_string_to_int): Declare.
5596 * guile/guile.c (gdbscm_guile_major_version): New global.
5597 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5598 (guile_datadir): New static global.
5599 (gdbscm_guile_data_directory): New function.
5600 (initialize_scheme_side): Update.
5601 (misc_guile_functions): Add guile-data-directory.
5602 (initialize_gdb_module): Fetch guile version number.
5603 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5604 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5605 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5606 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5608 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5609 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5610 * guile/scm-value.c (gdbscm_value_to_string): Only call
5611 scm_port_conversion_strategy if Guile version >= 2.0.6.
5613 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5615 * main.c (print_gdb_help): Add -q and --silent.
5617 2014-06-06 Gary Benson <gbenson@redhat.com>
5619 * common/signals.c: Remove preprocessor conditionals for
5620 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5621 SIGSEGV and SIGTERM.
5622 * proc-events.c: Likewise.
5624 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5626 * symfile.c (symfile_free_objfile): Remove restriction to
5628 * symfile-mem.c (symbol_file_add_from_memory): Call
5629 add_target_sections_of_objfile.
5631 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5633 * guile/scm-value.c (gdbscm_history_append_x): Use
5634 'vlscm_get_value_smob_arg_unsafe' instead of
5635 'vlscm_scm_to_value'.
5637 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5640 * utils.c (printchar): Don't escape at all if quoter is NUL.
5641 Update function documentation to clarify effect of parameter
5643 * remote.c (escape_buffer): Pass '\\' as the quoter to
5644 fputstrn_unfiltered.
5645 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5646 generate the output.
5647 (mi_solib_unloaded): Same.
5649 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5651 * development.sh: Delete.
5652 * Makefile.in (config.status): Adjust dependency on development.sh.
5653 * configure.ac: Adjust development.sh source call.
5654 * configure: Regenerate.
5656 2014-06-04 Doug Evans <xdje42@gmail.com>
5658 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5659 is_scheme_bkpt, spec.
5660 (bpscm_make_breakpoint_smob): Initialize new members.
5661 (gdbscm_create_breakpoint_x): Split into two ...
5662 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5663 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5664 (scheme_function breakpoint_functions): Update.
5665 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5666 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5667 register-breakpoint!.
5669 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5672 * mem-break.c (z_type_supported): Return zero if
5673 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5675 2014-06-04 Tom Tromey <tromey@redhat.com>
5677 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5678 value_from_contents_and_address_unresolved.
5679 (ada_template_to_fixed_record_type_1): Likewise.
5680 (ada_which_variant_applies): Likewise.
5681 * value.h (value_from_contents_and_address_unresolved): Declare.
5682 * value.c (value_from_contents_and_address_unresolved): New
5684 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5685 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5686 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5688 2014-06-04 Tom Tromey <tromey@redhat.com>
5690 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5692 2014-06-04 Tom Tromey <tromey@redhat.com>
5694 * procfs.c (procfs_attach): Make "args" const.
5695 * windows-nat.c (windows_attach): Make "args" const.
5696 * nto-procfs.c (procfs_attach): Make "args" const.
5697 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5698 * go32-nat.c (go32_attach): Make "args" const.
5699 * gnu-nat.c (gnu_attach): Make "args" const.
5700 * darwin-nat.c (darwin_attach): Make "args" const.
5701 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5702 * linux-nat.c (linux_nat_attach): Make "args" const.
5703 * remote.c (extended_remote_attach_1, extended_remote_attach):
5705 * target.h (struct target_ops) <to_attach>: Make "args" const.
5706 (find_default_attach): Likewise.
5707 * utils.c (parse_pid_to_attach): Make "args" const.
5708 * utils.h (parse_pid_to_attach): Update.
5710 2014-06-04 Tom Tromey <tromey@redhat.com>
5712 * target-delegates.c: Rebuild.
5713 * target.c (default_thread_address_space): New function.
5714 (target_thread_address_space): Simplify.
5715 * target.h (struct target_ops) <to_thread_address_space>: Add
5716 TARGET_DEFAULT_FUNC.
5718 2014-06-04 Doug Evans <xdje42@gmail.com>
5720 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5722 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5724 * record-btrace.c: Include event-loop.h and inf-loop.h.
5725 (record_btrace_resume_exec_dir)
5726 (record_btrace_async_inferior_event_handler)
5727 (record_btrace_handle_async_inferior_event): New.
5728 (record_btrace_open): Create async event handler.
5729 (record_btrace_close): Delete async event handler.
5730 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5731 Mark async event handler.
5732 (record_btrace_execution_direction): New.
5733 (init_record_btrace_ops): Initialize to_execution_direction.
5735 2014-06-03 Doug Evans <xdje42@gmail.com>
5737 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5738 (gdbscm_make_parameter): Ditto.
5740 2014-06-03 Doug Evans <dje@google.com>
5742 * exec.c (exec_close_1): Call clear_section_table instead of
5743 resize_section_table.
5744 (clear_section_table): New function.
5745 (resize_section_table): Make static. Rename arg num_added to
5747 * exec.h (clear_section_table): Declare.
5748 (resize_section_table): Delete.
5749 * progspace.c (release_program_space): Call clear_section_table
5750 instead of resize_section_table.
5752 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5754 * NEWS (Python Scripting): Add entry about the new xmethods
5757 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5759 * python/py-xmethods.c: New file.
5760 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5761 (objfpy_dealloc): XDECREF on the new xmethods field.
5762 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5764 (objfpy_get_xmethods): New function.
5765 (objfile_getset): New entry 'xmethods'.
5766 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5767 (pspy_dealloc): XDECREF on the new xmethods field.
5768 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5770 (pspy_get_xmethods): New function.
5771 (pspace_getset): New entry 'xmethods'.
5772 * python/python-internal.h: Add declarations for new functions.
5773 * python/python.c (_initialize_python): Invoke
5774 gdbpy_initialize_xmethods.
5775 * python/lib/gdb/__init__.py (xmethods): New
5777 * python/lib/gdb/xmethod.py: New file.
5778 * python/lib/gdb/command/xmethods.py: New file.
5780 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5782 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5783 best match method returned by find_overload_match is an xmethod.
5784 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5785 the best matching operator returned by find_overload_match is an
5787 * valops.c: #include "extension.h".
5788 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5789 Return void. The list of matching source methods is returned in
5790 "fn_list" and a vector of matching debug method workers is
5791 returned in "xm_worker_vec". Update all callers.
5792 (value_find_oload_method_list): Likewise.
5793 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5794 non-NULL, then the index of the best matching method in this
5795 vector is returned. Update all callers.
5796 (find_overload_match): Include xmethods while performing overload
5799 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5801 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5802 * extension-priv.h (struct extension_language_ops): Add the
5804 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5805 get_matching_xmethod_workers, get_xmethod_argtypes,
5806 invoke_xmethod, free_xmethod_worker,
5807 free_xmethod_worker_vec): New functions.
5808 * extension.h: #include "common/vec.h".
5809 New function declarations.
5810 (struct xmethod_worker): New struct.
5811 (VEC (xmethod_worker_ptr)): New vector type.
5812 (xmethod_worker_ptr): New typedef.
5813 (xmethod_worker_vec): Likewise.
5814 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5816 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5817 (struct builtin_type): New field "xmethod".
5818 * valarith.c (value_ptradd): Assert that the value argument is not
5820 * valops.c (value_must_coerce_to_target): Return 0 for
5821 lval_xcallable values.
5822 * value.c (struct value): New field XM_WORKER in the field
5824 (value_address, value_raw_address): Return 0 for lval_xcallable
5826 (set_value_address): Assert that the value is not an
5828 (value_free): Free the associated xmethod worker when freeing
5829 lval_xcallable values.
5830 (set_value_component_location): Assert that the WHOLE value is not
5832 (value_of_xmethod, call_xmethod): New functions.
5833 * value.h: Declare "struct xmethod_worker".
5834 Declare new functions value_of_xmethod, call_xmethod.
5836 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5837 Pedro Alves <palves@redhat.com>
5839 PR breakpoints/17000
5840 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5841 New function, extracted from software_breakpoint_inserted_here_p.
5842 (software_breakpoint_inserted_here_p): Replace factored out code
5843 by call to find_non_raw_software_breakpoint_inserted_here.
5844 (bp_target_info_copy_insertion_state): New function.
5845 (bkpt_insert_location): Handle the case of a single-step
5846 breakpoint already inserted at the same address.
5847 (bkpt_remove_location): Handle the case of a single-step
5848 breakpoint still inserted at the same address.
5849 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5850 breakpoint already inserted at the same address.
5851 (deprecated_remove_raw_breakpoint): Handle the case of a
5852 non-raw breakpoint still inserted at the same address.
5853 (find_single_step_breakpoint): New function, extracted from
5854 single_step_breakpoint_inserted_here_p.
5855 (find_single_step_breakpoint): New function,
5856 factored out from single_step_breakpoint_inserted_here_p.
5857 (single_step_breakpoint_inserted_here_p): Reimplement.
5859 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5861 Pushed by Joel Brobecker <brobecker@adacore.com>
5862 * source.c (show_substitute_path_command): Fix display of matching
5865 2014-06-03 Gary Benson <gbenson@redhat.com>
5867 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5869 2014-06-02 Doug Evans <xdje42@gmail.com>
5871 Add parameter support for Guile.
5872 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5873 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5874 (scm-param.o): New rule.
5875 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5876 (gdbscm_misc_error): Declare.
5877 (gdbscm_canonicalize_command_name): Declare.
5878 (gdbscm_scm_to_host_string): Declare.
5879 (gdbscm_scm_from_host_string): Declare.
5880 (gdbscm_initialize_parameters): Declare.
5881 * guile/guile.c (initialize_gdb_module): Call
5882 gdbscm_initialize_parameters.
5883 * guile/lib/gdb.scm: Export parameter symbols.
5884 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5885 cmdscm_canonicalize_name and made public. All callers updated.
5886 * guile/scm-exception.c (gdbscm_misc_error): New function.
5887 * guile/scm-param.c: New file.
5888 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5889 (gdbscm_scm_to_host_string): New function.
5890 (gdbscm_scm_from_host_string): New function.
5891 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5893 2014-06-02 Doug Evans <xdje42@gmail.com>
5895 Add command support for Guile.
5896 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5897 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5898 (scm-cmd.o): New rule.
5899 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5900 (gdbscm_user_error_p): Declare.
5901 (gdbscm_parse_command_name): Declare.
5902 (gdbscm_valid_command_class_p): Declare.
5903 (gdbscm_initialize_commands): Declare.
5904 * guile/guile.c (initialize_gdb_module): Call
5905 gdbscm_initialize_commands.
5906 * guile/lib/gdb.scm: Export command symbols.
5907 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5908 (throw-user-error): New function.
5909 * guile/scm-cmd.c: New file.
5910 * guile/scm-exception.c (user_error_symbol): New static global.
5911 (gdbscm_user_error_p): New function.
5912 (gdbscm_initialize_exceptions): Set user_error_symbol.
5913 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5915 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5917 * top.c (command_loop): Handle comments here...
5918 (command_line_input): ... not here.
5920 2014-06-02 Doug Evans <xdje42@gmail.com>
5922 Add progspace support for Guile.
5923 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5924 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5925 (scm-progspace.o): New rule.
5926 * guile/guile-internal.h (pspace_smob): New typedef.
5927 (psscm_pspace_smob_pretty_printers): Declare.
5928 (psscm_pspace_smob_from_pspace): Declare.
5929 (psscm_scm_from_pspace): Declare.
5930 * guile/guile.c (initialize_gdb_module): Call
5931 gdbscm_initialize_pspaces.
5932 * guile/lib/gdb.scm: Export progspace symbols.
5933 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5935 (append-pretty-printer!): Ditto.
5936 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5938 * guile/scm-progspace.c: New file.
5940 2014-06-03 Alan Modra <amodra@gmail.com>
5942 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5943 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5945 2014-06-02 Doug Evans <dje@google.com>
5947 Add support for skeletonless type units.
5948 * dwarf2read.c (struct dwarf2_per_objfile): New member
5949 n_allocated_type_units.
5950 (struct dwarf2_per_objfile) <tu_stats>: New member
5951 nr_all_type_units_reallocs.
5952 (create_signatured_type_table_from_index): Initialize
5953 n_allocated_type_units
5954 (create_all_type_units): Ditto.
5955 (add_type_unit): Move up in file. New arg slot.
5956 All callers updated. Increase space for all_type_units more
5958 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5959 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5960 (lookup_dwp_signatured_type): Ditto.
5961 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5962 All callers updated.
5963 (build_type_psymtabs_1): Leave type_unit_groups as
5964 NULL if no TUs present.
5965 (print_tu_stats): New function.
5966 (process_skeletonless_type_unit): New function.
5967 (process_dwo_file_for_skeletonless_type_units): New
5969 (process_skeletonless_type_units): New function.
5970 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5971 Call print tu_stats if debugging enabled.
5973 2014-06-02 Pedro Alves <palves@redhat.com>
5975 * breakpoint.c (build_target_command_list): Don't build a command
5976 list if we have any duplicate location that isn't a dprintf.
5978 2014-06-02 Pedro Alves <palves@redhat.com>
5980 * breakpoint.c (dprintf_breakpoint_hit): New function.
5981 (initialize_breakpoint_ops): Install it as dprintf's
5982 breakpoint_hit method.
5984 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5986 * source.c (substitute_path_rule_matches): Simplify using
5987 filename_ncmp instead of FILENAME_CMP.
5989 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5991 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5993 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5995 * configure.ac: When Guile is available, check for the
5996 availability of 'scm_new_smob'.
5997 * configure, config.h.in: Regenerate.
5998 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6001 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6003 * frame.c (struct frame_info): Add stop_string field.
6004 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6005 (get_prev_frame_always): Old content moved into
6006 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6007 TRY_CATCH, handle MEMORY_ERROR exceptions.
6008 (frame_stop_reason_string): New function definition.
6009 * frame.h (unwind_stop_reason_to_string): Extend comment to
6010 mention frame_stop_reason_string.
6011 (frame_stop_reason_string): New function declaration.
6012 * stack.c (frame_info): Switch to frame_stop_reason_string.
6013 (backtrace_command_1): Switch to frame_stop_reason_string.
6014 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6015 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6016 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6018 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6020 * frame.c (frame_stop_reason_string): Rename to ...
6021 (unwind_stop_reason_to_string): this.
6022 * frame.h (frame_stop_reason_string): Rename to ...
6023 (unwind_stop_reason_to_string): this.
6024 * stack.c (frame_info): Update call to frame_stop_reason_string.
6025 (backtrace_command_1): Likewise.
6026 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6027 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6029 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6031 * frame.c (remove_prev_frame): New function.
6032 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6035 2014-05-29 Pedro Alves <palves@redhat.com>
6037 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6038 and make it const. When a single-step decays to a continue,
6039 clear 'step', not 'hw_step'. Pass whether the caller wanted
6040 to step to user_visible_resume_ptid, not what we ask the
6043 2014-05-29 Pedro Alves <palves@redhat.com>
6045 * infrun.c (process_event_stop_test, handle_step_into_function)
6046 (handle_step_into_function_backward): Adjust.
6047 Don't set the even thread's stop_step and call stop_waiting before
6048 calling end_stepping_range. Instead do that ...
6049 (end_stepping_range): ... here. Take an ecs pointer parameter.
6051 2014-05-29 Pedro Alves <palves@redhat.com>
6053 * infrun.c (stop_stepping): Rename to ...
6054 (stop_waiting): ... this.
6055 (proceed): Update comment.
6056 (process_event_stop_test, handle_inferior_event)
6057 (handle_signal_stop, handle_step_into_function)
6058 (handle_step_into_function_backward): Update.
6060 2014-05-29 Pedro Alves <palves@redhat.com>
6062 * infcall.c (run_inferior_call): Don't check whether the current
6063 thread is running after the proceed call.
6065 2014-05-29 Pedro Alves <palves@redhat.com>
6066 Tom Tromey <tromey@redhat.com>
6068 * NEWS: Mention "maint set target-async", "set mi-async", and that
6069 background execution commands are now always available.
6070 * target.h (target_async_permitted): Update comment.
6071 * target.c (target_async_permitted, target_async_permitted_1):
6073 (set_target_async_command): Rename to ...
6074 (maint_set_target_async_command): ... this.
6075 (show_target_async_command): Rename to ...
6076 (maint_show_target_async_command): ... this.
6077 (_initialize_target): Adjust.
6078 * infcmd.c (prepare_execution_command): Make extern.
6079 * inferior.h (prepare_execution_command): Declare.
6080 * infrun.c (set_observer_mode): Leave target async alone.
6081 * mi/mi-interp.c (mi_interpreter_init): Install
6082 mi_on_sync_execution_done as sync_execution_done observer.
6083 (mi_on_sync_execution_done): New function.
6084 (mi_execute_command_input_handler): Don't print the prompt if we
6085 just started a synchronous command with an async target.
6086 (mi_on_resume): Check sync_execution before printing prompt.
6087 * mi/mi-main.h (mi_async_p): Declare.
6088 * mi/mi-main.c: Include gdbcmd.h.
6089 (mi_async_p): New function.
6090 (mi_async, mi_async_1): New globals.
6091 (set_mi_async_command, show_mi_async_command, mi_async): New
6093 (exec_continue): Call prepare_execution_command.
6094 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6095 (mi_execute_async_cli_command): Use mi_async_p.
6096 (_initialize_mi_main): Install "set mi-async". Make
6097 "target-async" a deprecated alias.
6099 2014-05-29 Pedro Alves <palves@redhat.com>
6101 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6102 (_initialize_cli_interp): Adjust.
6103 * event-loop.c: Include "observer.h".
6104 (start_event_loop): Notify 'command_error' observers instead of
6105 calling display_gdb_prompt. Remove FIXME comment.
6106 * event-top.c (display_gdb_prompt): Remove call into the
6108 * inf-loop.c: Include "observer.h".
6109 (inferior_event_handler): Notify 'command_error' observers instead
6110 of calling display_gdb_prompt.
6111 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6112 observers instead of calling display_gdb_prompt.
6113 * interps.c (interp_set): Don't call display_gdb_prompt.
6114 (current_interp_display_prompt_p): Delete.
6115 * interps.h (interp_prompt_p): Delete declaration.
6116 (interp_prompt_p_ftype): Delete.
6117 (struct interp_procs) <prompt_proc_p>: Delete field.
6118 (current_interp_display_prompt_p): Delete declaration.
6119 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6120 (_initialize_mi_interp): Adjust.
6121 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6122 'command_error' observers.
6123 (tui_on_sync_execution_done, tui_on_command_error): New
6125 (tui_display_prompt_p): Delete.
6126 (_initialize_tui_interp): Adjust.
6128 2014-05-29 Pedro Alves <palves@redhat.com>
6131 * cli/cli-interp.c: Include infrun.h and observer.h.
6132 (cli_uiout, cli_interp): New globals.
6133 (cli_on_signal_received, cli_on_end_stepping_range)
6134 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6136 (cli_interpreter_init): Install them as 'end_stepping_range',
6137 'signal_received' 'signal_exited', 'exited' and 'no_history'
6139 (_initialize_cli_interp): Remove cli_interp local.
6140 * infrun.c (handle_inferior_event): Call the several stop reason
6141 observers instead of printing the stop reason directly.
6142 (end_stepping_range): New function.
6143 (print_end_stepping_range_reason, print_signal_exited_reason)
6144 (print_exited_reason, print_signal_received_reason)
6145 (print_no_history_reason): Make static, and add an uiout
6146 parameter. Print to that instead of to CURRENT_UIOUT.
6147 * infrun.h (print_end_stepping_range_reason)
6148 (print_signal_exited_reason, print_exited_reason)
6149 (print_signal_received_reason print_no_history_reason): New
6151 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6153 <cli_uiout>: New field.
6154 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6155 uiout for CLI output. Install 'signal_received',
6156 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6158 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6159 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6160 (mi_on_no_history): New functions.
6161 (ui_out_free_cleanup): Delete function.
6162 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6163 instead use the one already stored in the MI interpreter data.
6164 (mi_ui_out): Adjust.
6165 * tui/tui-interp.c: Include infrun.h and observer.h.
6166 (tui_interp): New global.
6167 (tui_on_signal_received, tui_on_end_stepping_range)
6168 (tui_on_signal_exited, tui_on_exited)
6169 (tui_on_no_history): New functions.
6170 (tui_init): Install them as 'end_stepping_range',
6171 'signal_received' 'signal_exited', 'exited' and 'no_history'
6173 (_initialize_tui_interp): Delete tui_interp local.
6175 2014-05-29 Pedro Alves <palves@redhat.com>
6178 * linux-nat.c (linux_nat_resume_callback): Rename the second
6179 parameter to 'except'. Skip LP if it points to EXCEPT.
6180 (linux_nat_resume): Don't mark the event lwp as not stopped
6181 before resuming sibling lwps. Instead ask
6182 linux_nat_resume_callback to skip the event lwp. Mark it as not
6183 stopped after actually resuming it.
6184 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6186 (wait_lwp): Mark the lwp as stopped here.
6187 (stop_wait_callback): Mark the lwp as not stopped right after
6188 resuming it. Don't mark lwps as stopped here.
6189 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6190 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6192 2014-05-29 Pedro Alves <palves@redhat.com>
6195 * infrun.c (resume): Determine how much to resume depending on
6196 whether the caller wanted a step, not whether we can hardware step
6197 the target. Mark all threads that we intend to run as running,
6198 unless we're calling an inferior function.
6199 (normal_stop): If the thread is running an infcall, don't finish
6201 * target.c (target_resume): Don't mark threads as running here.
6203 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6205 * serial.c (_initialize_serial): Remove support for
6206 the "set remotebaud" and "show remotebaud" commands.
6207 * NEWS: Add entry documenting the removal of that command.
6209 2014-05-28 Yao Qi <yao@codesourcery.com>
6211 * charset.c: Fix typo in comments.
6213 2014-05-27 Gary Benson <gbenson@redhat.com>
6215 * utils.c (internal_vproblem): Prompt for a bug report.
6217 2014-05-26 Andy Wingo <wingo@igalia.com>
6219 * guile/scm-arch.c (arscm_mark_arch_smob):
6220 * guile/scm-block.c (bkscm_mark_block_smob)
6221 (bkscm_mark_block_syms_progress_smob):
6222 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6223 * guile/scm-exception.c (exscm_mark_exception_smob):
6224 * guile/scm-frame.c (frscm_mark_frame_smob):
6225 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6226 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6227 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6228 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6229 (ppscm_mark_pretty_printer_worker_smob):
6230 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6231 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6232 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6233 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6235 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6238 2014-05-26 Andy Wingo <wingo@igalia.com>
6239 Doug Evans <xdje42@gmail.com>
6241 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6242 empty_base_class. All uses updated.
6243 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6244 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6246 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6247 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6248 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6249 (gdbscm_gsmob_has_property_p, add_property_name)
6250 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6251 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6252 (gdb-object-has-property?, gdb-object-properties): Remove.
6253 (gdb-object-kind): Renamed from gsmob-kind.
6255 2014-05-26 Andy Wingo <wingo@igalia.com>
6257 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6258 * configure: Regenerate.
6260 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6262 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6264 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6266 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6267 (replay_memory_access_read_only, replay_memory_access_read_write)
6268 (replay_memory_access_types, replay_memory_access)
6269 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6270 (cmd_set_record_btrace, cmd_show_record_btrace)
6271 (cmd_show_replay_memory_access): New.
6272 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6273 (record_btrace_remove_breakpoint): Replace
6274 record_btrace_allow_memory_access with replay_memory_access.
6275 (_initialize_record_btrace): Add commands.
6276 * NEWS: Announce it.
6278 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6280 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6282 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6284 * MAINTAINERS (Write After Approval): Move self back from
6287 2014-05-22 Pedro Alves <palves@redhat.com>
6289 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6290 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6291 (disable_randomization, enum exec_direction_kind)
6292 (execution_direction, stop_registers, start_remote)
6293 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6294 (wait_for_inferior, normal_stop, get_last_target_status)
6295 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6296 (insert_step_resume_breakpoint_at_sal)
6297 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6298 (set_step_info, print_stop_event, signal_stop_state)
6299 (signal_print_state, signal_pass_state, signal_stop_update)
6300 (signal_print_update, signal_pass_update)
6301 (update_signals_program_target, clear_exit_convenience_vars)
6302 (displaced_step_dump_bytes, update_observer_mode)
6303 (signal_catch_update, gdb_signal_from_command): Move
6305 * infrun.h: ... to this new file.
6306 * amd64-tdep.c: Include infrun.h.
6307 * annotate.c: Include infrun.h.
6308 * arch-utils.c: Include infrun.h.
6309 * arm-linux-tdep.c: Include infrun.h.
6310 * arm-tdep.c: Include infrun.h.
6311 * break-catch-sig.c: Include infrun.h.
6312 * breakpoint.c: Include infrun.h.
6313 * common/agent.c: Include infrun.h instead of inferior.h.
6314 * corelow.c: Include infrun.h.
6315 * event-top.c: Include infrun.h.
6316 * go32-nat.c: Include infrun.h.
6317 * i386-tdep.c: Include infrun.h.
6318 * inf-loop.c: Include infrun.h.
6319 * infcall.c: Include infrun.h.
6320 * infcmd.c: Include infrun.h.
6321 * infrun.c: Include infrun.h.
6322 * linux-fork.c: Include infrun.h.
6323 * linux-nat.c: Include infrun.h.
6324 * linux-thread-db.c: Include infrun.h.
6325 * monitor.c: Include infrun.h.
6326 * nto-tdep.c: Include infrun.h.
6327 * procfs.c: Include infrun.h.
6328 * record-btrace.c: Include infrun.h.
6329 * record-full.c: Include infrun.h.
6330 * remote-m32r-sdi.c: Include infrun.h.
6331 * remote-mips.c: Include infrun.h.
6332 * remote-notif.c: Include infrun.h.
6333 * remote-sim.c: Include infrun.h.
6334 * remote.c: Include infrun.h.
6335 * reverse.c: Include infrun.h.
6336 * rs6000-tdep.c: Include infrun.h.
6337 * s390-linux-tdep.c: Include infrun.h.
6338 * solib-irix.c: Include infrun.h.
6339 * solib-osf.c: Include infrun.h.
6340 * solib-svr4.c: Include infrun.h.
6341 * target.c: Include infrun.h.
6342 * top.c: Include infrun.h.
6343 * windows-nat.c: Include infrun.h.
6344 * mi/mi-interp.c: Include infrun.h.
6345 * mi/mi-main.c: Include infrun.h.
6346 * python/py-threadevent.c: Include infrun.h.
6348 2014-05-22 Pedro Alves <palves@redhat.com>
6350 * infrun.c (handle_inferior_event): Store the exit code for
6351 --return-child-result here, instead of ...
6352 (print_exited_reason): ... here.
6354 2014-05-21 Pedro Alves <palves@redhat.com>
6357 * gdbthread.h (struct thread_control_state): New field
6359 * infrun.c (follow_fork): Copy the new thread control field to the
6361 (clear_proceed_status_thread): Clear the new thread control field.
6362 (proceed): Set the new thread control field.
6363 * interps.h (command_interp): Declare.
6364 * interps.c (command_interpreter): New global.
6365 (command_interp): New function.
6366 (interp_exec): Set `command_interpreter' while here.
6367 * cli-out.c (cli_uiout_dtor): New function.
6368 (cli_ui_out_impl): Install it.
6369 * mi/mi-interp.c: Include cli-out.h.
6370 (mi_cmd_interpreter_exec): Add comment.
6371 (restore_current_uiout_cleanup): New function.
6372 (ui_out_free_cleanup): New function.
6373 (mi_on_normal_stop): If finishing an execution command started by
6374 a CLI command, or any kind of breakpoint-like event triggered,
6375 print the stop event to the output (CLI) stream.
6376 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6378 2014-05-21 Pedro Alves <palves@redhat.com>
6380 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6381 current source line having changed.
6382 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6383 * infrun.c (normal_stop): Adjust call to
6384 set_current_sal_from_frame.
6385 * source.c (clear_lines_listed_range): New function.
6386 (set_current_source_symtab_and_line, identify_source_line): Clear
6387 the lines listed range.
6388 (line_info): Handle the first "info line" after the current source
6389 line having changed.
6390 * stack.c (print_stack_frame): Remove center handling.
6391 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6394 2014-05-21 Pedro Alves <palves@redhat.com>
6396 * inf-child.c (inf_child_mourn_inferior): New function.
6397 * inf-child.h (inf_child_mourn_inferior): New declaration.
6398 * darwin-nat.c (darwin_mourn_inferior): Use
6399 inf_child_mourn_inferior.
6400 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6401 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6402 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6403 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6404 * windows-nat.c (windows_mourn_inferior): Likewise.
6406 2014-05-21 Doug Evans <xdje42@gmail.com>
6408 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6410 2014-05-21 Doug Evans <xdje42@gmail.com>
6412 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6413 (gdbscm_out_of_range_error): Ditto.
6414 (gdbscm_memory_error): Ditto.
6415 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6416 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6417 (gdbscm_out_of_range_error): Update.
6418 (gdbscm_memory_error): Update.
6419 (gdbscm_scm_to_target_string_unsafe): Delete.
6421 2014-05-21 Pedro Alves <palves@redhat.com>
6423 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6425 (inf_child_open_target): New function.
6426 (inf_child_open): Use inf_child_open_target to push the target
6427 instead of erroring out.
6428 (inf_child_disconnect, inf_child_close)
6429 (inf_child_maybe_unpush_target): New functions.
6430 (inf_child_target): Install inf_child_disconnect and
6431 inf_child_close. Store a pointer to the returned object.
6432 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6434 * target.c (auto_connect_native_target): New global.
6435 (show_default_run_target): New function.
6436 (find_default_run_target): Return NULL if automatically connecting
6437 to the native target is disabled.
6438 (_initialize_target): Install set/show auto-connect-native-target.
6439 * NEWS: Mention "set auto-connect-native-target", and "target
6441 * linux-nat.c (super_close): New global.
6442 (linux_nat_close): Call super_close.
6443 (linux_nat_add_target): Store a pointer to the base class's
6445 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6446 inf_child_maybe_unpush.
6447 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6449 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6450 the inferior. Use inf_child_maybe_unpush_target.
6451 (inf_ttrace_attach): Don't push the target if it is already
6453 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6454 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6455 after mourning the inferior. Use inf_child_maybe_unpush_target.
6456 (darwin_attach_pid): Don't push the target if it is already
6458 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6459 mourning the inferior. Use inf_child_maybe_unpush_target.
6460 (gnu_detach): Use inf_child_maybe_unpush_target.
6461 * go32-nat.c (go32_create_inferior): Don't push the target if it
6463 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6464 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6465 (procfs_open): Rename to ...
6466 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6467 comments. Can target_preopen before changing node. Call
6468 inf_child_open_target to push the target explicitly.
6469 (procfs_attach): Don't push the target if it is already pushed.
6470 (procfs_detach): Use inf_child_maybe_unpush_target.
6471 (procfs_create_inferior): Don't push the target if it is already
6473 (nto_native_ops): New global.
6474 (procfs_open): Reimplement.
6475 (procfs_native_open): New function.
6476 (init_procfs_targets): Install procfs_native_open as to_open of
6477 "target native". Store a pointer to the "native" target in
6479 * procfs.c (procfs_attach): Don't push the target if it is already
6481 (procfs_detach): Use inf_child_maybe_unpush_target.
6482 (procfs_mourn_inferior): Only unpush the target after mourning the
6483 inferior. Use inf_child_maybe_unpush_target.
6484 (procfs_init_inferior): Don't push the target if it is already
6486 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6487 if it is already pushed.
6489 2014-05-21 Pedro Alves <palves@redhat.com>
6491 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6492 and "procfs" targets are now called "native" instead.
6494 2014-05-21 Pedro Alves <palves@redhat.com>
6496 * go32-nat.c (go32_open): Delete.
6497 (go32_target): Don't override the to_open method.
6499 2014-05-21 Pedro Alves <palves@redhat.com>
6501 * nto-procfs.c (procfs_can_run): New function.
6502 (nto_procfs_ops): New global.
6503 (init_procfs_targets): New, based on procfs_target. Install
6504 "target native" in addition to "target procfs".
6505 (_initialize_procfs): Call init_procfs_targets instead of adding
6508 2014-05-21 Pedro Alves <palves@redhat.com>
6510 * windows-nat.c (windows_target): Don't override to_shortname,
6511 to_longname or to_doc.
6513 2014-05-21 Pedro Alves <palves@redhat.com>
6515 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6518 2014-05-21 Pedro Alves <palves@redhat.com>
6520 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6521 to_shortname, to_longname or to_doc.
6523 2014-05-21 Pedro Alves <palves@redhat.com>
6525 * go32-nat.c (go32_target): Don't override to_shortname,
6526 to_longname or to_doc.
6528 2014-05-21 Pedro Alves <palves@redhat.com>
6530 * inf-child.c (inf_child_open): Remove mention of "child".
6531 (inf_child_target): Rename target to "native" instead of "child".
6533 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6535 * Makefile.in (SFILES): Delete "regset.c".
6536 (COMMON_OBS): Delete "regset.o".
6538 * regset.h (regset_alloc): Delete prototype.
6540 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6542 * sparc-linux-tdep.c (sparc32_linux_gregset)
6543 (sparc32_linux_fpregset): New static regset structures.
6544 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6545 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6547 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6548 (sparc64_linux_fpregset): New static regset structures.
6549 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6550 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6551 New static regset structures.
6552 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6553 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6554 New static regset structures.
6555 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6556 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6557 New static regset structures.
6558 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6559 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6560 New static regset structures.
6561 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6563 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6565 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6566 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6567 register maps ("regmaps") from "*regset" to "*regmap". Do this
6568 for all regmap types and variables.
6569 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6570 (sparc32_linux_supply_core_gregset)
6571 (sparc32_linux_collect_core_gregset)
6572 (sparc32_linux_supply_core_fpregset)
6573 (sparc32_linux_collect_core_fpregset): Likewise.
6574 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6575 (sparc_gregmap, sparc_fpregmap): ... these.
6576 (sparc_supply_gregset, sparc_collect_gregset)
6577 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6578 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6579 (_initialize_sparc_nat): Rename regmaps.
6580 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6581 (sparc_gregmap, sparc_fpregmap): ... these.
6582 (sparc_supply_gregset, sparc_collect_gregset)
6583 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6584 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6586 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6587 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6589 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6591 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6592 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6593 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6595 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6596 (sparc32_bsd_fpregset): Rename to...
6597 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6598 (sparc32_bsd_fpregmap): ... these.
6599 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6600 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6601 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6602 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6603 (struct sparc_gregmap, struct sparc_fpregmap)
6604 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6605 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6606 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6607 (sparc32_supply_regset, sparc32_collect_gregset)
6608 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6610 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6611 (sparc64_linux_ptrace_gregmap): ... this.
6612 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6613 (_initialize_sparc64_linux_nat): Rename regmaps.
6614 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6615 (sparc64_linux_core_gregmap): ... this.
6616 (sparc64_linux_supply_core_gregset)
6617 (sparc64_linux_collect_core_gregset)
6618 (sparc64_linux_supply_core_fpregset)
6619 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6620 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6621 (sparc64_sol2_fpregset): Rename to...
6622 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6623 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6624 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6626 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6627 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6628 (sparc64_bsd_fpregset): Rename to...
6629 (struct sparc_gregmap, sparc64_sol2_gregmap)
6630 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6631 (sparc64_bsd_fpregmap): ... these.
6632 (sparc64_supply_gregset, sparc64_collect_gregset)
6633 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6635 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6636 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6637 (sparc64fbsd_gregmap): ... this.
6638 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6639 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6641 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6642 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6643 (sparc64nbsd_collect_fpregset): Likewise.
6644 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6645 (sparc64nbsd_gregmap): ... this.
6646 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6648 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6649 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6650 (sparc64obsd_gregmap): ... this.
6651 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6653 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6654 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6655 (sparc32nbsd_gregmap): ... this.
6656 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6659 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6661 * score-tdep.c (score7_linux_gregset): New static regset
6663 (score7_linux_regset_from_core_section): Remove dynamic regset
6665 (score_gdbarch_init): Drop allocation of tdep structure.
6666 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6668 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6670 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6672 (am33_regset_from_core_section): Remove dynamic regset
6675 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6677 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6678 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6680 (mips_linux_regset_from_core_section): Remove dynamic regset
6682 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6683 'gregset64', 'fpregset', and 'fpregset64'.
6684 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6685 deleted tdep fields.
6687 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6689 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6691 (amd64_regset_from_core_section): Remove dynamic regset
6693 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6695 (amd64obsd_regset_from_core_section): Remove dynamic regset
6697 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6699 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6700 x86-common regset supply function.
6701 * i386-tdep.c (i386_collect_gregset): Make static.
6702 (i386_gregset): New global regset structure.
6703 (i386_fpregset, i386_xstateregset): New static regset structures.
6704 (i386_regset_from_core_section): Remove dynamic regset
6706 (i386_gdbarch_init): Remove initialization of tdep fields
6707 'gregset', 'fpregset', and 'xstateregset'.
6708 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6709 'fpregset', and 'xstateregset'.
6710 (i386_collect_gregset): Remove prototype.
6711 (i386_gregset): New declaration.
6712 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6714 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6717 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6719 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6720 (arm_linux_vfpregset): New static regset structures.
6721 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6723 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6724 and 'vfpregset' fields.
6726 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6728 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6729 (aarch64_linux_fpregset): New static regset structures.
6730 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6731 of regset structures.
6732 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6735 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6737 * regset.h (struct regset): Remove gdbarch field.
6738 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6739 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6740 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6742 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6743 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6744 (ppc32_linux_vsxregset): Likewise.
6745 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6746 via the regcache instead of the regset.
6747 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6748 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6749 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6750 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6753 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6755 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6756 Constify structures.
6757 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6758 (alphanbsd_aout_gregset): Likewise.
6759 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6760 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6762 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6763 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6765 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6766 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6767 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6768 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6769 * m88k-tdep.c (m88k_gregset): Likewise.
6770 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6771 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6772 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6773 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6774 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6775 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6776 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6777 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6778 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6780 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6781 * sh-tdep.h (sh_corefile_gregset): Likewise.
6782 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6783 * vax-tdep.c (vax_gregset): Likewise.
6785 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6787 Fix TLS access for -static -pthread.
6788 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6789 (try_thread_db_load_1): Initialize it.
6790 (thread_db_get_thread_local_address): Call it if LM is zero.
6791 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6792 * target.h (struct target_ops) (to_get_thread_local_address): Add
6793 load_module_addr comment.
6795 2014-05-21 Pedro Alves <palves@redhat.com>
6797 * dcache.c (dcache_read_memory_partial): If reading the cache line
6798 fails, fallback to reading just the memory the caller wanted.
6800 2014-05-20 Doug Evans <dje@google.com>
6802 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6803 instead of get_current_arch.
6805 2014-05-20 Pedro Alves <palves@redhat.com>
6807 * NEWS: Mention that compare-sections now works with all targets.
6809 * remote.c (PACKET_qCRC): New enum value.
6810 (remote_verify_memory): Don't send qCRC if the target has no
6811 execution. Use packet_support/packet_ok. If the target doesn't
6812 support the qCRC packet, fallback to a deep memory copy.
6813 (compare_sections_command): Say "target image" instead of "remote
6815 (_initialize_remote): Add PACKET_qCRC to the list of config
6816 packets that have no associated command. Extend comment.
6817 * target.c (simple_verify_memory, default_verify_memory): New
6819 * target.h (struct target_ops) <to_verify_memory>: Default to
6820 default_verify_memory.
6821 (simple_verify_memory): New declaration.
6822 * target-delegates.c: Regenerate.
6824 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6826 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6828 2014-05-20 Hui Zhu <hui@codesourcery.com>
6829 Yao Qi <yao@codesourcery.com>
6832 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6833 and change address of sp and pc.
6835 2014-05-19 Tom Tromey <tromey@redhat.com>
6837 * gdbtypes.c (rank_function): Use XNEWVEC.
6838 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6840 2014-05-19 Doug Evans <dje@google.com>
6842 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6843 build_type_unit_groups and moved closer to only caller. Remove
6844 arguments. All references updated. Remove outdated .gdb_index
6846 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6847 build_type_psymtabs_1.
6849 2014-05-19 Doug Evans <dje@google.com>
6851 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6852 n_type_unit_groups, all_type_unit_groups. All uses removed.
6853 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6854 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6855 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6856 (add_type_unit_group_to_table): Delete.
6858 2014-05-19 Doug Evans <dje@google.com>
6860 * eval.c (evaluate_subexp_standard): Add some comments.
6862 2014-05-17 Doug Evans <xdje42@gmail.com>
6864 * progspace.c (remove_program_space): Delete, unused.
6865 * progspace.h (remove_program_space): Ditto.
6867 2014-05-17 Doug Evans <xdje42@gmail.com>
6869 * inferior.c (prune_inferiors): Fix comment.
6870 (remove_inferior_command): Call prune_program_spaces.
6872 2014-05-16 Doug Evans <dje@google.com>
6874 New command line option -D.
6876 * main.c (set_gdb_data_directory): New function.
6877 (captured_main): Recognize -D. Flag error for --data-directory "".
6878 Call set_gdb_data_directory.
6879 (print_gdb_help): Print --data-directory, -D.
6880 * main.h (set_gdb_data_directory): Declare.
6881 * top.c (staged_gdb_datadir): New static global.
6882 (set_gdb_datadir): Call set_gdb_data_directory
6883 (show_gdb_datadir): New function.
6884 (init_main): Update init of data-directory parameter.
6886 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6888 Import the "dirfd" gnulib module.
6889 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6890 * gnulib/aclocal.m4: Update.
6891 * gnulib/config.in: Update.
6892 * gnulib/configure: Update.
6893 * gnulib/import/Makefile.am: Update.
6894 * gnulib/import/Makefile.in: Update.
6895 * gnulib/import/dirfd.c: New.
6896 * gnulib/import/m4/dirfd.m4: New.
6897 * gnulib/import/m4/gnulib-cache.m4: Update.
6898 * gnulib/import/m4/gnulib-comp.m4: Update.
6900 2014-05-16 Pierre Muller <muller@sourceware.org>
6901 Yao Qi <yao@codesourcery.com>
6903 * valprint.c (print_wchar): Move the code on checking whether
6904 W is a printable wide char to the default branch of switch
6905 statement below. Call wchar_printable instead of gdb_iswprint.
6907 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6909 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6910 ldr.w and ldrd instructions.
6912 2014-05-15 Doug Evans <dje@google.com>
6914 * dwarf2read.c (read_structure_type): Delete outdated comments.
6916 2014-05-14 Tom Tromey <tromey@redhat.com>
6918 * macrocmd.c (print_macro_definition): Reindent.
6920 2014-05-13 Doug Evans <xdje42@gmail.com>
6922 * python/py-cmd.c (cmdpy_completer): Add comment.
6923 (completers): Make const.
6925 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6927 * infrun.c (resume): Remove should_resume (unused). Move up
6928 declaration of resume_ptid.
6930 2014-05-13 Tom Tromey <tromey@redhat.com>
6932 * language.h (unop_type_check): Remove.
6933 (binop_type_check): Don't declare.
6935 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6937 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6938 call to regcache_raw_collect.
6940 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6942 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6943 mi_console->quote as the quoting character.
6945 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6947 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6949 2014-04-29 Tom Tromey <tromey@redhat.com>
6951 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6952 "show debug varobj".
6954 2014-05-07 Kyle McMartin <kyle@redhat.com>
6956 Pushed by Joel Brobecker <brobecker@adacore.com>.
6957 * aarch64-tdep.c (aarch64_software_single_step): New function.
6958 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6959 with aarch64_software_single_step.
6961 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6965 2014-05-05 Keith Seitz <keiths@redhat.com>
6967 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6968 variable or history value is successfully parsed.
6970 2014-05-05 Yao Qi <yao@codesourcery.com>
6971 Pedro Alves <palves@redhat.com>
6973 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6974 address of blocks that intersects the requested range. Trim
6975 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6977 * ctf.c (ctf_xfer_partial): Likewise.
6979 2014-05-05 Yao Qi <yao@codesourcery.com>
6981 * printcmd.c (display_command): Remove the check to
6982 target_has_execution.
6984 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6986 * ppcobsd-nat.c: Include "obsd-nat.h".
6987 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6989 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6991 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6993 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6994 and 16-bit signed and unsigned arguments. Update comment.
6995 (stap_parse_probe_arguments): Extend code to handle such
6996 arguments. Use warning instead of complaint to notify about
6997 unrecognized bitness.
6999 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7001 PR breakpoints/16889
7002 * stap-probe.c (stap_parse_probe_arguments): Simplify
7003 check for non-prefixed probes (i.e., probes whose
7004 arguments do not start with "N@"). Always set the
7005 argument type to a sane value.
7007 2014-05-01 David Taylor <dtaylor@emc.com>
7009 * remote.c (compare_sections_command): Add -r option to compare
7010 all loadable read-only sections.
7012 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7014 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7015 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7017 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7018 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7019 Remove unused CORE_ADDR argument. Update all callers.
7021 2014-04-29 Pedro Alves <palves@redhat.com>
7023 * remote.c (struct packet_config) <detect>: Extend comment.
7024 (add_packet_config_cmd): Don't set the config's detect or support
7026 (init_all_packet_configs): Also initialize the config's 'detect'
7028 (reset_all_packet_configs_support): New function.
7029 (remote_open_1): Call reset_all_packet_configs_support instead of
7030 init_all_packet_configs.
7031 (_initialize_remote): Initialize all packet configs. Assert that
7032 all packets have an associated command, except a few known
7035 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7037 * dwarf2read.c (read_subrange_type): Handle dynamic
7038 DW_AT_lower_bound attributes.
7040 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7042 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7043 dynamic bounds before computing its upper bound.
7044 (ada_discrete_type_low_bound): Same as above with the lower bound.
7046 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7048 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7049 range types. Adjust the array handling implementation to
7050 take advantage of this change.
7051 (resolve_dynamic_range): New function, mostly extracted from
7052 resolve_dynamic_bounds.
7053 (resolve_dynamic_array): New function, mostly extracted from
7054 resolve_dynamic_bounds.
7055 (resolve_dynamic_bounds): Delete.
7056 (resolve_dynamic_type): Reimplement. Add handling of
7057 TYPE_CODE_RANGE types.
7059 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7061 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7062 handling of parallel ___XA types.
7064 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7066 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7067 unnecessary second call to static_unwrap_type.
7069 2014-04-27 Hui Zhu <hui@codesourcery.com>
7071 * stack.c (print_frame_info): Call do_gdb_disassembly with
7072 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7074 2014-04-26 Doug Evans <xdje42@gmail.com>
7076 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7078 2014-04-25 Pedro Alves <palves@redhat.com>
7081 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7082 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7083 and newline from built string.
7084 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7085 (linux_ptrace_attach_fail_reason): ... this.
7086 * linux-nat.c (linux_nat_attach): Adjust to use
7087 linux_ptrace_attach_fail_reason.
7089 2014-04-25 Pedro Alves <palves@redhat.com>
7091 * remote.c (struct remote_state): Remove multi_process_aware,
7092 non_stop_aware, cond_tracepoints, cond_breakpoints,
7093 breakpoint_commands, fast_tracepoints, static_tracepoints,
7094 install_in_trace, disconnected_tracing,
7095 enable_disable_tracepoints, string_tracing, and
7096 augmented_libraries_svr4_read fields.
7097 (remote_multi_process_p): Move further below in the file.
7098 (struct packet_config): Add comments.
7099 (update_packet_config): Delete function.
7100 (show_packet_config_cmd): Use packet_config_support.
7101 (add_packet_config_cmd): Use NULL as set callback.
7102 (packet_ok): "set remote foo-packet"-style commands no longer
7103 change config->supported -- adjust.
7104 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7105 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7106 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7107 (PACKET_QNonStop, PACKET_multiprocess_feature)
7108 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7109 (PACKET_DisconnectedTracing_feature)
7110 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7111 (set_remote_protocol_packet_cmd): Delete function.
7112 (packet_config_support, packet_support): New functions.
7113 (set_remote_protocol_Z_packet_cmd): Don't call
7114 update_packet_config.
7115 (remote_query_attached, remote_pass_signals)
7116 (remote_program_signals, remote_threads_info)
7117 (remote_threads_extra_info, remote_start_remote): Use
7119 (remote_start_remote): Use packet_config_support and
7121 (init_all_packet_configs): Set all packets to unknown support,
7122 instead of calling update_packet_config.
7123 (remote_check_symbols): Use packet_support.
7124 (remote_supported_packet): Unconditionally set the packet config's
7126 (remote_multi_process_feature, remote_non_stop_feature)
7127 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7128 (remote_breakpoint_commands_feature)
7129 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7130 (remote_install_in_trace_feature)
7131 (remote_disconnected_tracing_feature)
7132 (remote_enable_disable_tracepoint_feature)
7133 (remote_string_tracing_feature)
7134 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7135 (remote_protocol_features): Adjust to use remote_supported_packet
7136 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7137 "ConditionalTracepoints", "ConditionalBreakpoints",
7138 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7139 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7140 "EnableDisableTracepoints", and "tracenz".
7141 (remote_query_supported): Use packet_support.
7142 (remote_open_1): Adjust.
7143 (extended_remote_attach_1): Use packet_support. Switch on the
7144 result of packet_ok instead of checking whether the packet ended
7146 (remote_vcont_resume): Use packet_support.
7147 (remote_resume, remote_stop_ns, fetch_register_using_p)
7148 (remote_prepare_to_store, store_register_using_P)
7149 (check_binary_download, remote_write_bytes): Use packet_support.
7150 (remote_vkill): Use packet_support. Switch on the result of
7151 packet_ok instead of checking whether the packet ended up
7153 (extended_remote_supports_disable_randomization): Use
7155 (extended_remote_run): Switch on the result of packet_ok instead
7156 of checking whether the packet ended up disabled.
7157 (remote_insert_breakpoint, remote_remove_breakpoint)
7158 (remote_insert_watchpoint, remote_remove_watchpoint)
7159 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7161 (remote_search_memory): Use packet_config_support.
7162 (remote_get_thread_local_address, remote_get_tib_address)
7163 (remote_hostio_send_command, remote_can_execute_reverse): Use
7165 (remote_supports_cond_tracepoints)
7166 (remote_supports_cond_breakpoints)
7167 (remote_supports_fast_tracepoints)
7168 (remote_supports_static_tracepoints)
7169 (remote_supports_install_in_trace)
7170 (remote_supports_enable_disable_tracepoint)
7171 (remote_supports_string_tracing)
7172 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7173 the packet config says the feature is enabled or disabled.
7174 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7175 (remote_get_trace_status): Use packet_support.
7176 (remote_set_disconnected_tracing): Adjust to check whether the
7177 feature is enabled with packet_support.
7178 (remote_set_trace_buffer_size, remote_use_agent)
7179 (remote_can_use_agent, remote_supports_btrace): Use
7181 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7182 Use packet_config_support.
7183 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7184 the packet config says the feature is enabled or disabled.
7185 (set_range_stepping): Use packet_support.
7187 2014-04-25 Tom Tromey <tromey@redhat.com>
7189 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7192 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7194 * NEWS: Mention support for C99 variable length arrays.
7196 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7198 * ada-lang.c (standard_exc): Expand introductory comment.
7200 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7201 Walfred Tedeschi <walfred.tedeschi@intel.com>
7203 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7205 (amd64_linux_read_description): Add code to handle AVX512 xstate
7206 mask and return respective tdesc.
7207 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7208 and features/i386/x32-avx512-linux.c.
7209 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7210 (amd64_linux_core_read_description): Add code to handle AVX512
7211 xstate mask and return respective tdesc.
7212 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7213 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7215 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7216 (tdesc_amd64_avx512_linux): New prototype.
7217 (tdesc_x32_avx512_linux): Likewise.
7218 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7219 features/i386/x32-avx512.c.
7220 (amd64_ymm_avx512_names): New register names for pseudo
7222 (amd64_ymmh_avx512_names): New register names for raw registers
7224 (amd64_k_names): New register names for K registers.
7225 (amd64_zmmh_names): New register names for ZMM raw registers.
7226 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7227 (amd64_xmm_avx512_names): New register names for XMM16-31
7229 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7231 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7232 if feature is present.
7233 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7234 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7235 (AMD64_NUM_REGS): Adjust to new number of registers.
7236 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7237 registers supplied via XSTATE by AVX512 registers.
7238 (i386_linux_read_description): Add case for AVX512.
7239 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7240 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7241 (i386_linux_core_read_description): Add case for AVX512.
7242 (i386_linux_init_abi): Install supported register note section
7244 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7246 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7247 registers to be number of zmm7h + 1.
7248 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7249 * i386-tdep.c: Include features/i386/i386-avx512.c.
7250 (i386_zmm_names): Add ZMM pseudo register names array.
7251 (i386_zmmh_names): Add ZMM raw register names array.
7252 (i386_k_names): Add K raw register names array.
7253 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7254 registers. AVX512 has 16 more ZMM registers than there are YMM
7256 (i386_zmmh_regnum_p): Add function to look up register number of
7258 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7259 (i386_k_regnum_p): Likewise for K raw registers.
7260 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7261 registers added by AVX512.
7262 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7263 registers added by AVX512.
7264 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7266 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7267 (i386_pseudo_register_name): Add ZMM pseudo registers.
7268 (i386_zmm_type): Construct and return vector registers type for ZMM
7270 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7271 ZMM0-31 pseudo registers and K registers.
7272 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7273 and YMM16-31 registers from register cache.
7274 (i386_pseudo_register_write): Add code to write K, ZMM and
7276 (i386_register_reggroup_p): Add code to include/exclude AVX512
7277 registers in/from respective register groups.
7278 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7279 registers if feature is present in xcr0.
7280 (i386_gdbarch_init): Add code to initialize AVX512 feature
7281 variables in tdep structure, wire in pseudo registers and call
7282 initialize_tdesc_i386_avx512.
7283 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7285 (i386_regnum): Add AVX512 registers.
7286 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7287 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7288 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7289 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7291 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7292 (i386_ymm_avx512_regnum_p): Likewise.
7293 (i386_k_regnum_p): Likewise.
7294 (i386_zmm_regnum_p): Likewise.
7295 (i386_zmmh_regnum_p): Likewise.
7296 * i387-tdep.c : Update year in copyright notice.
7297 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7299 (XSAVE_YMM_AVX512_ADDR): New macro.
7300 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7302 (XSAVE_XMM_AVX512_ADDR): New macro.
7303 (xsave_avx512_k_offset): New table for K register offsets in
7305 (XSAVE_AVX512_K_ADDR): New macro.
7306 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7308 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7309 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7311 (i387_collect_xsave): Add code to collect AVX512 registers from
7313 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7314 of XMM16-31 registers.
7315 (I387_NUM_K_REGS): New define for number of K registers.
7316 (I387_K0_REGNUM): New define for K0 register number.
7317 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7318 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7319 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7321 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7322 (I387_XMM16_REGNUM): New define for XMM16 register number.
7323 (I387_YMM0_REGNUM): New define for YMM0 register number.
7324 (I387_KEND_REGNUM): New define for last K register number.
7325 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7326 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7328 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7330 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7332 * features/Makefile: Add AVX512 related files.
7333 * features/i386/32bit-avx512.xml: New file.
7334 * features/i386/64bit-avx512.xml: Likewise.
7335 * features/i386/amd64-avx512-linux.c: Likewise.
7336 * features/i386/amd64-avx512-linux.xml: Likewise.
7337 * features/i386/amd64-avx512.c: Likewise.
7338 * features/i386/amd64-avx512.xml: Likewise.
7339 * features/i386/i386-avx512-linux.c: Likewise.
7340 * features/i386/i386-avx512-linux.xml: Likewise.
7341 * features/i386/i386-avx512.c: Likewise.
7342 * features/i386/i386-avx512.xml: Likewise.
7343 * features/i386/x32-avx512-linux.c: Likewise.
7344 * features/i386/x32-avx512-linux.xml: Likewise.
7345 * features/i386/x32-avx512.c: Likewise.
7346 * features/i386/x32-avx512.xml: Likewise.
7347 * regformats/i386/amd64-avx512-linux.dat: New file.
7348 * regformats/i386/amd64-avx512.dat: Likewise.
7349 * regformats/i386/i386-avx512-linux.dat: Likewise.
7350 * regformats/i386/i386-avx512.dat: Likewise.
7351 * regformats/i386/x32-avx512-linux.dat: Likewise.
7352 * regformats/i386/x32-avx512.dat: Likewise.
7353 * NEWS: Add note about new support for AVX512.
7356 2014-04-23 Pedro Alves <palves@redhat.com>
7358 * breakpoint.c (insert_bp_location): Tolerate errors if the
7359 breakpoint is set in a user-loaded objfile.
7360 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7361 location is marked shlib_disabled. If the breakpoint is set in a
7362 user-loaded objfile is a GDB-side memory breakpoint, validate it
7363 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7364 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7366 * mem-break.c (memory_validate_breakpoint): New function.
7367 * objfiles.c (userloaded_objfile_contains_address_p): New
7369 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7370 * target.h (memory_validate_breakpoint): New declaration.
7372 2014-04-23 Pedro Alves <palves@redhat.com>
7374 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7375 the breakpoint is set in a shared library, only suppress
7376 errors for software breakpoints, not hardware breakpoints.
7378 2014-04-22 Pedro Alves <palves@redhat.com>
7380 * infrun.c (schedlock_applies): New function, factored out from
7381 find_thread_needs_step_over.
7382 (find_thread_needs_step_over): Use it.
7383 (switch_back_to_stepped_thread): Always clear trap_expected if the
7384 step over is finished. Return early if scheduler locking applies.
7385 Look for the stepping thread and a potential step-over thread with
7387 (currently_stepping_or_nexting_callback): Delete.
7389 2014-04-22 Nick Clifton <nickc@redhat.com>
7391 * NEWS: Mention that ARM sim now supports tracing.
7393 2014-04-22 Yao Qi <yao@codesourcery.com>
7395 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7397 * tracefile.c (tracefile_fetch_registers): ... it. New
7399 * tracefile.h (tracefile_fetch_registers): Declare.
7400 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7401 tracefile_fetch_registers.
7403 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7406 * windows-nat.c (thread_rec): Don't display a warning when
7407 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7408 fails for any reason, set th->suspended to -1, so that we don't
7409 try to resume such a thread. Also, don't return NULL in these
7410 cases, to avoid completely ruin the session due to "PC register is
7411 not available" error.
7412 (do_windows_fetch_inferior_registers): Check errors in
7413 GetThreadContext call.
7414 (windows_continue): Accept an additional argument KILLED; if not
7415 zero, ignore errors in the SetThreadContext call, since the
7416 inferior was killed and is shutting down.
7417 (windows_resume, get_windows_debug_event)
7418 (windows_create_inferior, windows_mourn_inferior)
7419 (windows_kill_inferior): All callers of windows_continue changed
7420 to adjust to its new calling sequence.
7422 2014-04-19 Yao Qi <yao@codesourcery.com>
7424 * ctf.c (ctf_open): Call post_create_inferior.
7426 2014-04-19 Yao Qi <yao@codesourcery.com>
7428 * ctf.c (handle_id): New static variable.
7429 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7430 value. Get the declaration of event "register" and get length
7431 of field "contents".
7433 2014-04-19 Yao Qi <yao@codesourcery.com>
7435 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7437 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7439 * valops.c (oload_method_static): Remove unnecessary argument
7440 METHOD. Update all callers.
7442 2014-04-18 Pedro alves <palves@redhat.com>
7443 Tom Tromey <tromey@redhat.com>
7446 * frame.c (get_prev_frame_1): Rename to ...
7447 (get_prev_frame_always): ... this, and make extern. Adjust.
7448 (skip_artificial_frames): Use get_prev_frame_always.
7449 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7450 (get_frame_unwind_stop_reason): Adjust to rename.
7451 * frame.h (get_prev_frame_always): Declare.
7452 * inline-frame.c: Include frame.h.
7453 (inline_frame_this_id): Use get_prev_frame_always.
7455 2014-04-18 Tristan Gingold <gingold@adacore.com>
7457 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7458 code by using bfd_mach_o_get_base_address.
7460 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7462 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7463 (spu_ax_pseudo_register_collect): New function.
7464 (spu_ax_pseudo_register_push_stack): Likewise.
7465 (spu_dwarf_reg_to_regnum): Likewise.
7466 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7468 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7470 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7471 Replace FRAME argument with FRAME_ID.
7472 * gdbarch.c, gdbarch.h: Regenerate.
7473 * findvar.c (default_value_from_register): Add GDBARCH argument;
7474 replace FRAME by FRAME_ID. No longer call get_frame_id.
7475 (value_from_register): Update call to gdbarch_value_from_register.
7476 * value.h (default_value_from_register): Update prototype.
7477 * s390-linux-tdep.c (s390_value_from_register): Update interface
7478 and call to default_value_from_register.
7479 * spu-tdep.c (spu_value_from_register): Likewise.
7481 * findvar.c (address_from_register): Remove TYPE argument.
7482 Do not call value_from_register; use gdbarch_value_from_register
7483 with null_frame_id instead.
7484 * value.h (address_from_register): Update prototype.
7485 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7486 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7487 address_from_register interface change.
7489 2014-04-17 Yao Qi <yao@codesourcery.com>
7491 * gdbtypes.h: Update comments to link to types and macros'
7494 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7496 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7498 2014-04-16 Keith Seitz <keiths@redhat.com>
7501 * dwarf2read.c (skip_one_die): Check that all relative-offset
7502 sibling DIEs fall within range of the current reader's buffer.
7503 (read_partial_die): Likewise.
7505 2014-04-16 Keith Seitz <keiths@redhat.com>
7508 * cp-namespace.c (lookup_symbol_file): If the type name of
7509 `this' is NULL, return immediately.
7511 2014-04-14 Keith Seitz <keiths@redhat.com>
7514 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7515 from symbol_matches_domain in symtab.c. All local callers
7516 of symbol_matches_domain updated.
7517 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7518 search STRUCT_DOMAIN.
7519 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7520 independently. standard_lookup will do that automatically.
7521 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7522 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7523 (cp_lookup_symbol_in_namespace): Likewise.
7524 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7525 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7526 may return a STRUCT_DOMAIN match.
7527 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7528 * cp-support.c: Include language.h.
7529 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7531 * psymtab.c (match_partial_symbol): Compare the requested
7532 domain with the symbol's domain directly.
7533 (lookup_partial_symbol): Likewise.
7534 * symtab.c (lookup_symbol_in_language): Explain when/why
7535 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7536 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7537 appropriate languages.
7538 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7539 and moved to ada-lang.c
7540 (lookup_block_symbol): Explain that this function only returns
7541 symbol matching the requested DOMAIN.
7542 Compare the requested domain with the symbol's domain directly.
7543 (iterate_over_symbols): Compare the requested domain with the
7544 symbol's domain directly.
7545 * symtab.h (symbol_matches_domain): Remove.
7547 2014-04-14 Tom Tromey <tromey@redhat.com>
7550 * c-exp.y (type_aggregate_p): New function.
7551 (qualified_name, classify_inner_name): Use it.
7552 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7553 and TYPE_TARGET_TYPE of an enum type.
7554 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7556 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7557 handle TYPE_DECLARED_CLASS.
7558 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7560 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7561 * valops.c (enum_constant_from_type): New function.
7562 (value_aggregate_elt): Use it.
7563 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7566 2014-04-14 Tom Tromey <tromey@redhat.com>
7568 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7569 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7571 * value.h (value_aggregate_elt): Update.
7573 2014-04-14 Tom Tromey <tromey@redhat.com>
7575 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7577 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7579 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7580 (evaluate_subexp_standard): Pass noside argument.
7581 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7582 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7583 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7584 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7585 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7587 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7589 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7590 points to a constant blob.
7592 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7594 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7595 property and store it as the high bound and flag the range accordingly.
7596 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7597 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7598 * gdbtypes.h (enum range_flags): New enum.
7599 (struct range_bounds): Add flags member.
7601 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7603 * c-typeprint.c (c_type_print_varspec_suffix): Added
7604 check for not yet resolved high bound. If unresolved, print
7605 "variable length" string to the console instead of random
7608 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7610 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7612 (ada_template_to_fixed_record_type_1): Likewise.
7613 (ada_to_fixed_type_1): Likewise.
7614 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7615 (cp_print_value): Likewise.
7616 * d-valprint.c (dynamic_array_type): Likewise.
7617 * findvar.c (address_of_variable): Likewise.
7618 * jv-valprint.c (java_value_print): Likewise.
7619 * valops.c (value_ind): Likewise.
7620 * value.c (coerce_ref): Likewise.
7622 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7624 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7625 value and retrieve the dynamic type size.
7627 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7629 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7630 passed to sizeof is dynamic evaluate the argument to compute the length.
7632 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7633 Joel Brobecker <brobecker@adacore.com>
7635 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7636 (dwarf2_evaluate_property): New function.
7637 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7638 * dwarf2read.c (attr_to_dynamic_prop): New function.
7639 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7641 * gdbtypes.c: Include dwarf2loc.h.
7642 (is_dynamic_type): New function.
7643 (resolve_dynamic_type): New function.
7644 (resolve_dynamic_bounds): New function.
7645 (get_type_length): New function.
7646 (check_typedef): Use get_type_length to compute type length.
7647 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7648 (TYPE_LOW_BOUND_KIND): New macro.
7649 (is_dynamic_type): New function prototype.
7650 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7651 to resolve dynamic properties of the type. Update comment.
7652 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7654 2014-04-14 Richard Henderson <rth@redhat.com>
7656 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7658 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7659 Doug Evans <xdje42@gmail.com>
7661 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7662 dereference TYPE_CODE_REF values.
7664 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7666 Revert the following changes due to regressions:
7668 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7669 (dwarf2_evaluate_property): New function.
7670 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7671 * dwarf2read.c (attr_to_dynamic_prop): New function.
7672 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7674 * gdbtypes.c: Include dwarf2loc.h.
7675 (is_dynamic_type): New function.
7676 (resolve_dynamic_type): New function.
7677 (resolve_dynamic_bounds): New function.
7678 (get_type_length): New function.
7679 (check_typedef): Use get_type_length to compute type length.
7680 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7681 (TYPE_LOW_BOUND_KIND): New macro.
7682 (is_dynamic_type): New function prototype.
7683 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7684 to resolve dynamic properties of the type. Update comment.
7685 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7687 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7688 passed to sizeof is dynamic evaluate the argument to compute the length.
7690 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7691 value and retrieve the dynamic type size.
7693 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7694 (ada_template_to_fixed_record_type_1): Likewise.
7695 (ada_to_fixed_type_1): Likewise.
7696 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7697 (cp_print_value): Likewise.
7698 * d-valprint.c (dynamic_array_type): Likewise.
7699 * eval.c (evaluate_subexp_with_coercion): Likewise.
7700 * findvar.c (address_of_variable): Likewise.
7701 * jv-valprint.c (java_value_print): Likewise.
7702 * valops.c (value_ind): Likewise.
7703 * value.c (coerce_ref): Likewise.
7705 * c-typeprint.c (c_type_print_varspec_suffix): Added
7706 check for not yet resolved high bound. If unresolved, print
7707 "variable length" string to the console instead of random
7710 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7711 property and store it as the high bound and flag the range accordingly.
7712 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7713 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7714 * gdbtypes.h (enum range_flags): New enum.
7715 (struct range_bounds): Add flags member.
7717 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7718 points to a constant blob.
7720 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7721 (evaluate_subexp_standard): Pass noside argument.
7722 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7723 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7724 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7725 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7726 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7728 2014-04-11 Keith Seitz <keiths@redhat.com>
7731 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7732 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7735 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7737 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7738 (evaluate_subexp_standard): Pass noside argument.
7739 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7740 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7741 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7742 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7743 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7745 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7747 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7748 points to a constant blob.
7750 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7752 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7753 property and store it as the high bound and flag the range accordingly.
7754 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7755 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7756 * gdbtypes.h (enum range_flags): New enum.
7757 (struct range_bounds): Add flags member.
7759 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7761 * c-typeprint.c (c_type_print_varspec_suffix): Added
7762 check for not yet resolved high bound. If unresolved, print
7763 "variable length" string to the console instead of random
7766 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7768 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7769 (ada_template_to_fixed_record_type_1): Likewise.
7770 (ada_to_fixed_type_1): Likewise.
7771 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7772 (cp_print_value): Likewise.
7773 * d-valprint.c (dynamic_array_type): Likewise.
7774 * eval.c (evaluate_subexp_with_coercion): Likewise.
7775 * findvar.c (address_of_variable): Likewise.
7776 * jv-valprint.c (java_value_print): Likewise.
7777 * valops.c (value_ind): Likewise.
7778 * value.c (coerce_ref): Likewise.
7780 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7782 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7783 value and retrieve the dynamic type size.
7785 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7787 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7788 passed to sizeof is dynamic evaluate the argument to compute the length.
7790 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7792 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7793 (dwarf2_evaluate_property): New function.
7794 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7795 * dwarf2read.c (attr_to_dynamic_prop): New function.
7796 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7798 * gdbtypes.c: Include dwarf2loc.h.
7799 (is_dynamic_type): New function.
7800 (resolve_dynamic_type): New function.
7801 (resolve_dynamic_bounds): New function.
7802 (get_type_length): New function.
7803 (check_typedef): Use get_type_length to compute type length.
7804 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7805 (TYPE_LOW_BOUND_KIND): New macro.
7806 (is_dynamic_type): New function prototype.
7807 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7808 to resolve dynamic properties of the type. Update comment.
7809 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7811 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7813 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7814 declaring high/low bounds and change uses accordingly. Call
7815 create_range_type instead of create_static_range_type.
7816 * gdbtypes.c (create_range_type): New function.
7817 (create_range_type): Convert bounds into struct bound_prop and pass
7818 them to create_range_type.
7819 * gdbtypes.h (struct bound_prop): New struct.
7820 (create_range_type): New function prototype.
7821 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7822 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7823 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7825 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7827 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7829 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7830 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7831 * ada-lang.c: All uses of create_range_type updated.
7832 * coffread.c: All uses of create_range_type updated.
7833 * dwarf2read.c: All uses of create_range_type updated.
7834 * f-exp.y: All uses of create_range_type updated.
7835 * m2-valprint.c: All uses of create_range_type updated.
7836 * mdebugread.c: All uses of create_range_type updated.
7837 * stabsread.c: All uses of create_range_type updated.
7838 * valops.c: All uses of create_range_type updated.
7839 * valprint.c: All uses of create_range_type updated.
7841 2014-04-10 Pedro Alves <palves@redhat.com>
7843 * breakpoint.c (single_step_breakpoints)
7844 (single_step_gdbarch): Move up in the file.
7845 (one_breakpoint_xfer_memory): New function, factored out from ...
7846 (breakpoint_xfer_memory): ... here. Also process single-step
7849 2014-04-09 Tristan Gingold <gingold@adacore.com>
7851 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7853 (darwin_decode_exception_message): Free port only after use.
7855 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7857 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7858 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7859 when setting the size of call_length.
7861 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7863 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7864 dereference TYPE_CODE_REF values.
7866 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7868 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7869 end of warning message.
7871 2014-04-03 Doug Evans <dje@google.com>
7873 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7874 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7876 2014-04-02 Alan Modra <amodra@gmail.com>
7878 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7879 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7880 (struct symbol_file_add_from_memory_args): Add size field.
7881 (find_vdso_size): New function.
7882 (add_vsyscall_page): Attempt to find vdso size.
7884 2014-04-01 Doug Evans <dje@google.com>
7886 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7888 2014-04-01 Tristan Gingold <gingold@adacore.com>
7890 * darwin-nat.c (darwin_encode_reply): Add prototype.
7891 (darwin_decode_exception_message): Reply to unknown inferiors.
7892 (darwin_decode_message): Handle message by id. Ignore message
7893 to unknown inferior.
7894 (darwin_wait): Discard unknown messages, add debug trace.
7896 2014-03-31 Doug Evans <dje@google.com>
7898 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7901 2014-03-31 Doug Evans <dje@google.com>
7903 New option "set print symbol-loading".
7905 * solib.c (solib_read_symbols): Only print symbol loading messages
7907 (solib_add): If symbol loading is in "brief" mode, notify user
7908 symbols are being loaded.
7909 (reload_shared_libraries_1): Ditto.
7910 * symfile.c (print_symbol_loading_off): New static global.
7911 (print_symbol_loading_brief): New static global.
7912 (print_symbol_loading_full): New static global.
7913 (print_symbol_loading_enums): New static global.
7914 (print_symbol_loading): New static global.
7915 (print_symbol_loading_p): New function.
7916 (symbol_file_add_with_addrs): Only print symbol loading messages
7918 (_initialize_symfile): Register "print symbol-loading" set/show
7920 * symfile.h (print_symbol_loading_p): Declare.
7922 2014-03-30 Doug Evans <xdje42@gmail.com>
7924 * infrun.c (set_last_target_status): New function.
7925 (handle_inferior_event): Call it.
7927 2014-03-30 Doug Evans <xdje42@gmail.com>
7929 * inferior.h (enum stop_kind): Improve comment.
7931 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7933 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7934 a reference, strip the reference layer before calling
7935 the lang_ops value_has_mutated callback.
7937 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7939 Remove some globals from our parser.
7940 * language.c (unk_lang_parser): Add "struct parser_state"
7942 * language.h (struct language_defn) <la_parser>: Likewise.
7943 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7944 (initialize_expout): Add "struct parser_state" argument.
7945 Rewrite function to use the parser state.
7946 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7947 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7948 write_exp_elt_longcst, write_exp_elt_dblcst,
7949 write_exp_elt_decfloatcst, write_exp_elt_type,
7950 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7951 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7952 write_dollar_variable): Likewise.
7953 (parse_exp_in_context_1): Use parser state.
7954 (insert_type_address_space): Add "struct parser_state" argument.
7956 (increase_expout_size): New function.
7957 * parser-defs.h: Forward declare "struct language_defn" and
7958 "struct parser_state".
7959 (expout, expout_size, expout_ptr): Remove extern declarations.
7960 (parse_gdbarch, parse_language): Rewrite macro declarations to
7961 accept the parser state.
7962 (struct parser_state): New struct.
7963 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7964 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7965 write_exp_elt_decfloatcst, write_exp_elt_type,
7966 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7967 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7968 write_exp_msymbol, write_dollar_variable,
7969 mark_struct_expression, insert_type_address_space): Add "struct
7970 parser_state" argument.
7971 (increase_expout_size): New function.
7972 * utils.c (do_clear_parser_state): New function.
7973 (make_cleanup_clear_parser_state): Likewise.
7974 * utils.h (make_cleanup_clear_parser_state): New function
7976 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7977 Update calls to write_exp* in order to pass the parser state.
7978 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7979 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7980 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7981 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7982 * stap-probe.c (stap_parse_register_operand): Likewise.
7983 (stap_parse_single_operand): Likewise.
7984 (stap_parse_argument_1): Likewise.
7985 (stap_parse_argument): Use parser state.
7986 * stap-probe.h: Include "parser-defs.h".
7987 (struct stap_parse_info) <pstate>: New field.
7988 * c-exp.y (parse_type): Rewrite to use parser state.
7989 (yyparse): Redefine to c_parse_internal.
7990 (pstate): New global variable.
7991 (parse_number): Add "struct parser_state" argument.
7992 (write_destructor_name): Likewise.
7993 (type_exp): Update calls to write_exp* and similars in order to
7995 (exp1, exp, variable, qualified_name, space_identifier,
7996 typename, typebase): Likewise.
7997 (write_destructor_name, parse_number, lex_one_token,
7998 classify_name, classify_inner_name, c_parse): Add "struct
7999 parser_state" argument. Update function to use parser state.
8000 * c-lang.h: Forward declare "struct parser_state".
8001 (c_parse): Add "struct parser_state" argument.
8002 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8003 (yyparse): Redefine macro to ada_parse_internal.
8004 (pstate): New variable.
8005 (write_int, write_object_renaming, write_var_or_type,
8006 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8007 type_int, type_long, type_long_long, type_float, type_double,
8008 type_long_double, type_char, type_boolean, type_system_address):
8009 Add "struct parser_state" argument.
8010 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8011 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8012 var_or_type, aggregate, aggregate_component_list,
8013 positional_list, others, component_group,
8014 component_associations): Update calls to write_exp* and similar
8015 functions in order to use parser state.
8016 (ada_parse, write_var_from_sym, write_int,
8017 write_exp_op_with_string, write_object_renaming,
8018 find_primitive_type, write_selectors, write_ambiguous_var,
8019 write_var_or_type, write_name_assoc, type_int, type_long,
8020 type_long_long, type_float, type_double, type_long_double,
8021 type_char, type_boolean, type_system_address): Add "struct
8022 parser_state" argument. Adjust function to use parser state.
8023 * ada-lang.c (parse): Likewise.
8024 * ada-lang.h: Forward declare "struct parser_state".
8025 (ada_parse): Add "struct parser_state" argument.
8026 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8027 calls to both functions.
8028 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8030 (yyparse): Redefine macro to f_parse_internal.
8031 (pstate): New variable.
8032 (parse_number): Add "struct parser_state" argument.
8033 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8034 and similars in order to use parser state.
8035 (parse_number): Adjust code to use parser state.
8037 (f_parse): New function.
8038 * f-lang.h: Forward declare "struct parser_state".
8039 (f_parse): Add "struct parser_state" argument.
8040 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8042 (yyparse): Redefine macro for java_parse_internal.
8043 (pstate): New variable.
8044 (push_expression_name, push_expression_name, insert_exp): Add
8045 "struct parser_state" argument.
8046 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8047 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8048 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8049 PostIncrementExpression, PostDecrementExpression,
8050 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8051 UnaryExpressionNotPlusMinus, CastExpression,
8052 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8053 RelationalExpression, EqualityExpression, AndExpression,
8054 ExclusiveOrExpression, InclusiveOrExpression,
8055 ConditionalAndExpression, ConditionalOrExpression,
8056 ConditionalExpression, Assignment, LeftHandSide): Update
8057 calls to write_exp* and similars in order to use parser state.
8058 (parse_number): Ajust code to use parser state.
8060 (java_parse): New function.
8061 (push_variable): Add "struct parser_state" argument. Adjust
8062 code to user parser state.
8063 (push_fieldnames, push_qualified_expression_name,
8064 push_expression_name, insert_exp): Likewise.
8065 * jv-lang.h: Forward declare "struct parser_state".
8066 (java_parse): Add "struct parser_state" argument.
8067 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8069 (yyparse): Redefine macro to m2_parse_internal.
8070 (pstate): New variable.
8071 (type_exp, exp, fblock, variable, type): Update calls to
8072 write_exp* and similars to use parser state.
8074 (m2_parse): New function.
8075 * m2-lang.h: Forward declare "struct parser_state".
8076 (m2_parse): Add "struct parser_state" argument.
8077 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8078 * objc-lang.h: Forward declare "struct parser_state".
8079 (end_msglist): Add "struct parser_state" argument.
8080 * p-exp.y (parse_type): Rewrite macro to use parser state.
8081 (yyparse): Redefine macro to pascal_parse_internal.
8082 (pstate): New variable.
8083 (parse_number): Add "struct parser_state" argument.
8084 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8085 write_exp* and similars in order to use parser state.
8086 (parse_number, yylex): Adjust code to use parser state.
8087 (pascal_parse): New function.
8088 * p-lang.h: Forward declare "struct parser_state".
8089 (pascal_parse): Add "struct parser_state" argument.
8090 * go-exp.y (parse_type): Rewrite macro to use parser state.
8091 (yyparse): Redefine macro to go_parse_internal.
8092 (pstate): New variable.
8093 (parse_number): Add "struct parser_state" argument.
8094 (type_exp, exp1, exp, variable, type): Update calls to
8095 write_exp* and similars in order to use parser state.
8096 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8097 to use parser state.
8098 (go_parse): Likewise.
8099 * go-lang.h: Forward declare "struct parser_state".
8100 (go_parse): Add "struct parser_state" argument.
8102 2014-03-27 Doug Evans <dje@google.com>
8104 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8106 2014-03-27 Doug Evans <dje@google.com>
8108 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8109 Remove argument abbrev_section. All callers updated.
8111 2014-03-27 Doug Evans <dje@google.com>
8113 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8114 addr_base, ranges_base.
8116 2014-03-26 Keith Seitz <keiths@redhat.com>
8118 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8119 types, not VAR_DOMAIN.
8121 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8123 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8125 * features/nios2-linux.c: Regenerated.
8126 * features/nios2.c: Regenerated.
8128 2014-03-25 Pedro Alves <palves@redhat.com>
8130 * cli/cli-script.c (script_from_file): Force the interpreter to
8133 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8135 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8136 small stack allocation.
8138 2014-03-24 Tristan Gingold <gingold@adacore.com>
8140 * darwin-nat.c (exc_server): Remove unused prototype.
8141 (darwin_dump_message): Correctly display data on x86_64.
8142 (darwin_encode_reply): Fix style.
8143 Add comments and fix indentation.
8145 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8147 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8149 2014-03-22 Doug Evans <xdje42@gmail.com>
8151 * infcmd.c: Whitespace fixes.
8152 (interrupt_command): Merge two function comments into one.
8154 2014-03-22 Doug Evans <xdje42@gmail.com>
8156 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8159 2014-03-22 Yao Qi <yao@codesourcery.com>
8161 * remote.c (target_read_live_memory): Remove.
8162 (memory_xfer_live_readonly_partial): Rename it to
8163 remote_xfer_live_readonly_partial. Remove argument 'object'.
8164 All callers updated. Call remote_read_bytes_1
8165 instead of target_read_live_memory.
8166 * tracepoint.c (set_traceframe_number): Remove.
8167 (make_cleanup_restore_traceframe_number): Likewise .
8168 * tracepoint.h (set_traceframe_number): Remove declaration.
8169 (make_cleanup_restore_traceframe_number): Likewise.
8171 2014-03-22 Yao Qi <yao@codesourcery.com>
8173 * remote.c (remote_read_bytes): Move code on reading from the
8175 (remote_read_bytes_1): ... here. New function.
8177 2014-03-22 Yao Qi <yao@codesourcery.com>
8179 * ctf.c (ctf_xfer_partial): Check the return value of
8180 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8181 return TARGET_XFER_UNAVAILABLE.
8182 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8183 * target.c (target_read_live_memory): Move it to remote.c.
8184 (memory_xfer_live_readonly_partial): Likewise.
8185 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8186 * remote.c (target_read_live_memory): Moved from target.c.
8187 (memory_xfer_live_readonly_partial): Likewise.
8188 (remote_read_bytes): Factored out from
8189 memory_xfer_partial_1.
8191 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8193 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8196 2014-03-21 Pedro Alves <palves@redhat.com>
8198 * infrun.c (normal_stop): Extend comment.
8200 2014-03-21 Hui Zhu <hui@codesourcery.com>
8201 Pedro Alves <palves@redhat.com>
8203 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8205 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8206 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8207 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8209 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8211 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8212 `z' formatted output modifier.
8214 2014-03-20 Tom Tromey <tromey@redhat.com>
8215 Sergio Durigan Junior <sergiodj@redhat.com>
8217 * probe.c (parse_probes): Turn assert into an ordinary error.
8218 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8219 exceptions when parsing probes. Rearrange the code for clarity.
8221 2014-03-20 Tom Tromey <tromey@redhat.com>
8224 * top.c (execute_command): Only dispatch events if the command
8227 2014-03-20 Tom Tromey <tromey@redhat.com>
8230 * infcall.c: Include event-top.h.
8231 (run_inferior_call): Call async_disable_stdin if needed.
8233 2014-03-20 Pedro Alves <palves@redhat.com>
8235 * infrun.c (prepare_to_proceed): Delete.
8236 (thread_still_needs_step_over): New function.
8237 (find_thread_needs_step_over): New function.
8238 (proceed): If the current thread needs a step-over, set its
8239 steping_over_breakpoint flag. Adjust to use
8240 find_thread_needs_step_over instead of prepare_to_proceed.
8241 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8242 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8244 (switch_back_to_stepped_thread): Step over breakpoints of all
8245 threads not the stepping thread, before switching back to the
8248 2014-03-20 Pedro Alves <palves@redhat.com>
8250 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8252 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8253 * infrun.c (saved_singlestep_ptid)
8254 (stepping_past_singlestep_breakpoint): Delete.
8255 (resume): Remove stepping_past_singlestep_breakpoint handling.
8256 (proceed): Store the prev_pc of the stepping thread too.
8257 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8259 (enum infwait_states): Delete infwait_thread_hop_state.
8260 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8262 (handle_inferior_event): Adjust.
8263 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8264 handling and the thread-hop code. Before removing single-step
8265 breakpoints, check whether the thread hit a single-step breakpoint
8266 of another thread. If it did, the trap is not a random signal.
8267 (switch_back_to_stepped_thread): If the event thread hit a
8268 single-step breakpoint, unblock it before switching to the
8269 stepping thread. Handle the case of the stepped thread having
8271 (keep_going): Handle the case of the current thread moving past a
8272 single-step breakpoint.
8274 2014-03-20 Pedro Alves <palves@redhat.com>
8277 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8278 are being stepped over.
8279 (breakpoint_address_match): Make extern.
8280 * breakpoint.h (breakpoint_address_match): New declaration.
8281 * inferior.h (stepping_past_instruction_at): New declaration.
8282 * infrun.c (struct step_over_info): New type.
8283 (step_over_info): New global.
8284 (set_step_over_info, clear_step_over_info)
8285 (stepping_past_instruction_at): New functions.
8286 (handle_inferior_event): Clear the step-over info when
8287 trap_expected is cleared.
8288 (resume): Remove now stale comment.
8289 (clear_proceed_status): Clear step-over info.
8290 (proceed): Adjust step-over handling to set or clear the step-over
8291 info instead of removing all breakpoints.
8292 (handle_signal_stop): When setting up a thread-hop, don't remove
8294 (stop_stepping): Clear step-over info.
8295 (keep_going): Adjust step-over handling to set or clear step-over
8296 info and then always inserting breakpoints, instead of removing
8297 all breakpoints when stepping over one.
8299 2014-03-20 Pedro Alves <palves@redhat.com>
8301 * infrun.c (previous_inferior_ptid): Adjust comment.
8302 (deferred_step_ptid): Delete.
8303 (infrun_thread_ptid_changed, prepare_to_proceed)
8304 (init_wait_for_inferior): Adjust.
8305 (handle_signal_stop): Delete deferred_step_ptid handling.
8307 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8310 * defs.h (sync_quit_force_run): New declaration.
8311 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8312 * event-top.c (async_sigterm_handler): New declaration.
8313 (async_sigterm_token): New variable.
8314 (async_init_signals): Create also async_sigterm_token.
8315 (async_sigterm_handler): New function.
8316 (sync_quit_force_run): New variable.
8317 (handle_sigterm): Replace quit_force call by other calls.
8318 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8320 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8322 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8323 offset into SPE pseudo registers.
8325 2014-03-18 Pedro Alves <palves@redhat.com>
8328 * inferior.h (print_stop_event): Declare.
8329 * infrun.c (print_stop_event): New, factored out from ...
8330 (normal_stop): ... this.
8331 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8332 of bpstat_print/print_stack_frame.
8334 2014-03-17 Tom Tromey <tromey@redhat.com>
8336 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8338 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8340 * ada-lang.c (decode_constrained_packed_array): Perform a
8341 minimal coercion for reference with coerce_ref instead of
8344 2014-03-17 Tristan Gingold <gingold@adacore.com>
8346 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8347 (darwin_solib_create_inferior_hook): Emit a warning if version
8350 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8352 * python/py-value.c (get_field_flag): Cast flag_name argument to
8353 PyObject_GetAttrString to support Python 2.4.
8355 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8357 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8358 (Global Maintainers): Remove Jan Kratochvil.
8360 2014-03-14 Pedro Alves <palves@redhat.com>
8362 * inferior.h (terminal_ours_for_output): Rename to ...
8363 (child_terminal_ours_for_output): ... this.
8364 (terminal_save_ours): Rename to ...
8365 (child_terminal_save_ours): ... this.
8366 (terminal_ours): Rename to ...
8367 (child_terminal_ours): ... this.
8368 (terminal_inferior): Rename to ...
8369 (child_terminal_inferior): ... this.
8370 (terminal_init_inferior): Rename to ...
8371 (child_terminal_init_inferior): ... this.
8372 (terminal_init_inferior_with_pgrp): Rename to ...
8373 (child_terminal_init_inferior_with_pgrp): ... this.
8374 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8375 (child_terminal_init_with_pgrp): ... this.
8376 (terminal_save_ours): Rename to ...
8377 (child_terminal_save_ours): ... this.
8378 (terminal_init_inferior): Rename to ...
8379 (child_terminal_init): ... this. Adjust.
8380 (terminal_inferior): Rename to ...
8381 (child_terminal_inferior): ... this.
8382 (terminal_ours_for_output): Rename to ...
8383 (child_terminal_ours_for_output): ... this. Adjust.
8384 (terminal_ours): Rename to ...
8385 (child_terminal_ours): ... this.
8386 (terminal_ours_1): Rename to ...
8387 (child_terminal_ours_1): ... this. Adjust.
8388 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8389 * windows-nat.c (do_initial_windows_stuff): Adjust.
8390 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8391 (gnu_terminal_init): ... this. Adjust.
8392 (gnu_target): Adjust.
8393 * inf-child.c (inf_child_target): Adjust.
8395 2014-03-13 Doug Evans <xdje42@gmail.com>
8398 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8401 2014-03-13 Doug Evans <xdje42@gmail.com>
8403 * value.c (record_latest_value): Call release_value_or_incref
8404 instead of release_value.
8406 2014-03-13 Pedro Alves <palves@redhat.com>
8408 * procfs.c (procfs_target): Don't override to_shortname,
8409 to_longname or to_doc.
8411 2014-03-13 Pedro Alves <palves@redhat.com>
8413 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8414 Unix in user visible strings.
8416 2014-03-12 Stan Shebs <stan@codesourcery.com>
8418 * gdbtypes.h: Annotate comments for Doxygen, add a page
8419 block comment with some general info.
8421 2014-03-12 Pedro Alves <palves@redhat.com>
8423 * infcmd.c (prepare_execution_command): New function, factored out
8424 from several execution commands.
8425 (run_command_1, continue_command, step_1, jump_command)
8426 (signal_command, until_command, advance_command, finish_command)
8427 (attach_command): Use prepare_execution_command.
8429 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8431 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8434 (struct arm_linux_thread_points): Removed.
8435 (struct arm_linux_process_info): New.
8436 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8437 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8438 (arm_linux_find_breakpoints_by_tid): Removed.
8439 (struct arch_lwp_info): New.
8440 (arm_linux_find_process_pid): New functions.
8441 (arm_linux_add_process): New functions.
8442 (arm_linux_process_info_get): New functions.
8443 (arm_linux_forget_process): New function.
8444 (arm_linux_get_debug_reg_state): New function.
8445 (struct update_registers_data): New.
8446 (update_registers_callback): New function.
8447 (arm_linux_insert_hw_breakpoint1): Updated.
8448 (arm_linux_remove_hw_breakpoint1): Updated.
8449 (arm_linux_insert_hw_breakpoint): Updated.
8450 (arm_linux_remove_hw_breakpoint): Updated.
8451 (arm_linux_insert_watchpoint): Updated.
8452 (arm_linux_remove_watchpoint): Updated.
8453 (arm_linux_new_thread): Updated.
8454 (arm_linux_prepare_to_resume): New function.
8455 (arm_linux_new_fork): New function.
8456 (_initialize_arm_linux_nat): Updated.
8458 2014-03-12 Pedro Alves <palves@redhat.com>
8460 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8462 2014-03-12 Tom Tromey <tromey@redhat.com>
8464 * inf-child.c (return_zero): New function.
8465 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8466 * aix-thread.c (aix_thread_inferior_created): New function.
8467 (aix_thread_attach): Remove.
8468 (init_aix_thread_ops): Don't set to_attach.
8469 (_initialize_aix_thread): Register inferior_created observer.
8470 * corelow.c (init_core_ops): Don't set to_attach or
8472 * exec.c (init_exec_ops): Don't set to_attach or
8474 * infcmd.c (run_command_1): Use find_run_target. Make direct
8476 (attach_command): Use find_attach_target. Make direct target
8478 * record-btrace.c (init_record_btrace_ops): Don't set
8480 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8482 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8483 set to_create_inferior.
8484 * target.c (complete_target_initialization): Add assertion.
8485 (target_create_inferior): Remove.
8486 (find_default_attach, find_default_create_inferior): Remove.
8487 (find_attach_target, find_run_target): New functions.
8488 (find_default_is_async_p, find_default_can_async_p)
8489 (target_supports_non_stop, target_attach): Remove.
8490 (init_dummy_target): Don't set to_create_inferior or
8491 to_supports_non_stop.
8492 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8493 TARGET_DEFAULT_FUNC.
8494 <to_create_inferior>: Add comment.
8495 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8496 TARGET_DEFAULT_RETURN.
8497 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8498 (find_attach_target, find_run_target): Declare.
8499 (target_create_inferior): Remove.
8500 (target_has_execution_1): Update comment.
8501 (target_supports_non_stop): Remove.
8502 * target-delegates.c: Rebuild.
8504 2014-03-12 Pedro Alves <palves@redhat.com>
8506 * inf-child.h: Update comment to not mention Unix.
8508 2014-03-12 Pedro Alves <palves@redhat.com>
8510 * inf-child.c: Update top comment to not mention Unix. Add
8511 generic comment describing how this target is meant to be used.
8512 (inf_child_post_attach, inf_child_post_startup_inferior)
8513 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8516 2014-03-12 Pedro Alves <palves@redhat.com>
8518 * nto-procfs.c: Include inf-child.h.
8519 (procfs_ops): Delete global.
8520 (procfs_can_run): Delete method.
8521 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8522 target pointer instead of referencing procfs_ops.
8523 (procfs_prepare_to_store): Delete.
8524 (init_procfs_ops): Delete function.
8525 (procfs_target): New function, based on init_procfs_ops, but
8526 inherit inf_child_target.
8527 (_initialize_procfs): Use procfs_target.
8529 2014-03-12 Pedro Alves <palves@redhat.com>
8531 * windows-nat.c: Include inf-child.h.
8532 (windows_ops): Delete global.
8533 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8535 (init_windows_ops): Delete function.
8536 (windows_target): New function, based on init_windows_ops, but
8537 inherit inf_child_target.
8538 (_initialize_windows_nat): Use windows_target. Install x86
8539 specific target methods here.
8541 2014-03-10 Doug Evans <xdje42@gmail.com>
8543 * guile/guile.c (call_initialize_gdb_module): New function.
8544 (initialize_guile): Replace call to scm_init_guile with call to
8547 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8549 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8550 in call to TYPE_CODE macro.
8552 2014-03-10 Jerome Guitton <guitton@adacore.com>
8554 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8555 Resolve tagged types to full view.
8557 2014-03-10 Hui Zhu <hui@codesourcery.com>
8559 * target.h (target_insert_breakpoint): Remove "hardware" from its
8562 2014-03-07 Doug Evans <dje@google.com>
8564 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8566 2014-03-07 Doug Evans <dje@google.com>
8568 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8569 Remove unused local comp_dir_attr. Assert exactly one of
8570 stub_comp_unit_die, stub_comp_dir is non-NULL.
8572 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8574 * target.h (complete_target_initialization, add_target):
8577 2014-03-07 Pedro Alves <palves@redhat.com>
8579 * go32-nat.c: Include inf-child.h.
8580 (go32_ops): Delete global.
8581 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8583 (go32_create_inferior): Push the passed in target pointer instead
8584 of referencing go32_ops.
8585 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8586 (go32_target): New function, based on init_go32_ops, but inherit
8588 (_initialize_go32_nat): Use go32_target. Move parts of
8591 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8593 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8594 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8595 SYMBOL_VALUE_ADDRESS.
8596 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8598 2014-03-06 Yao Qi <yao@codesourcery.com>
8600 * breakpoint.c (get_tracepoint_by_number): Remove argument
8601 optional_p. All callers updated. Adjust comments. Update
8603 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8605 2014-03-06 Yao Qi <yao@codesourcery.com>
8607 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8608 early if get_number returns zero. Use 'p' instead of 'args'.
8610 2014-03-06 Yao Qi <yao@codesourcery.com>
8612 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8615 2014-03-06 Yao Qi <yao@codesourcery.com>
8617 PR breakpoints/16508
8618 * tracepoint.c (check_trace_running): New function.
8619 (trace_find_command): Move code to check_trace_running and
8620 call check_trace_running.
8621 (trace_find_pc_command): Likewise.
8622 (trace_find_tracepoint_command): Likewise.
8623 (trace_find_line_command): Likewise.
8624 (trace_find_range_command): Likewise.
8625 * tracepoint.h (check_trace_running): Likewise.
8626 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8628 2014-03-06 Yao Qi <yao@codesourcery.com>
8630 * target.h (struct target_ops) <to_traceframe_info>: Use
8631 TARGET_DEFAULT_NORETURN (tcomplain ()).
8632 * target-delegates.c: Regenerated.
8634 2014-03-05 Pedro Alves <palves@redhat.com>
8637 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8638 void. Update comment.
8639 (dcache_xfer_memory): Delete.
8640 (dcache_read_memory_partial): New, based on the read bits of
8642 (dcache_update): Add status parameter. Use ULONGEST for len, and
8643 adjust. Discard cache lines if the reason for the update was
8645 * dcache.h (dcache_xfer_memory): Delete declaration.
8646 (dcache_read_memory_partial): New declaration.
8647 (dcache_update): Update prototype.
8648 * target.c (raw_memory_xfer_partial): Update the dcache here.
8649 (memory_xfer_partial_1): Don't handle dcache writes here.
8651 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8653 * remote-sim.c (gdbsim_load): Add const to prog.
8655 2014-03-03 Tom Tromey <tromey@redhat.com>
8657 * elfread.c (probe_key): Change to bfd_data.
8658 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8659 now per-BFD, not per-objfile.
8660 * stap-probe.c (stap_probe_destroy): Update comment.
8661 (handle_stap_probe): Allocate on the per-BFD obstack.
8663 2014-03-03 Tom Tromey <tromey@redhat.com>
8665 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8666 * breakpoint.c (create_longjmp_master_breakpoint): Use
8668 (add_location_to_breakpoint, bkpt_probe_insert_location)
8669 (bkpt_probe_remove_location): Update.
8670 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8671 * elfread.c (elf_symfile_relocate_probe): Remove.
8672 (elf_probe_fns): Update.
8673 (insert_exception_resume_breakpoint): Change type of "probe"
8674 parameter to bound_probe.
8675 (check_exception_resume): Update.
8676 * objfiles.c (objfile_relocate1): Don't relocate probes.
8677 * probe.c (bound_probe_s): New typedef.
8678 (parse_probes): Use get_probe_address. Set sal's objfile.
8679 (find_probe_by_pc): Return a bound_probe.
8680 (collect_probes): Return a VEC(bound_probe_s).
8681 (compare_probes): Update.
8682 (gen_ui_out_table_header_info): Change type of "probes"
8684 (info_probes_for_ops): Update.
8685 (get_probe_address): New function.
8686 (probe_safe_evaluate_at_pc): Update.
8687 * probe.h (struct probe_ops) <get_probe_address>: New field.
8688 <set_semaphore, clear_semaphore>: Add objfile parameter.
8689 (struct probe) <objfile>: Remove field.
8691 <address>: Update comment.
8692 (struct bound_probe): New.
8693 (find_probe_by_pc): Return a bound_probe.
8694 (get_probe_address): Declare.
8695 * solib-svr4.c (struct probe_and_action) <address>: New field.
8696 (hash_probe_and_action, equal_probe_and_action): Update.
8697 (register_solib_event_probe): Add address parameter.
8698 (solib_event_probe_at): Update.
8699 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8701 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8702 (stap_get_probe_address): New function.
8703 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8704 (compile_probe_arg): Update.
8705 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8707 (handle_stap_probe): Don't relocate the probe.
8708 (stap_relocate): Remove.
8709 (stap_gen_info_probes_table_values): Update.
8710 (stap_probe_ops): Remove stap_relocate.
8711 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8712 (debug_sym_probe_fns): Update.
8713 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8714 * symtab.c (init_sal): Use memset.
8715 * symtab.h (struct symtab_and_line) <objfile>: New field.
8716 * tracepoint.c (start_tracing, stop_tracing): Update.
8718 2014-03-03 Tom Tromey <tromey@redhat.com>
8720 * probe.h (parse_probes, find_probe_by_pc)
8721 (find_probes_in_objfile): Fix comments.
8723 2014-03-02 Doug Evans <xdje42@gmail.com>
8725 * infrun.c (handle_signal_stop): Replace test for
8726 TARGET_WAITKIND_STOPPED with an assert.
8728 2014-03-02 Doug Evans <xdje42@gmail.com>
8730 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8732 2014-03-02 Doug Evans <xdje42@gmail.com>
8734 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8736 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8738 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8740 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8742 * i386obsd-nat.c: Include "obsd-nat.h".
8743 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8745 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8747 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8749 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8751 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8753 * mips64obsd-nat.c: Include "obsd-nath".
8754 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8756 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8758 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8760 * amd64obsd-nat.c: Include "obsd-nat,h.
8761 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8763 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8765 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8767 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8768 (find_overload_match): Update call to find_oload_champ.
8769 (find_oload_champ_namespace_loop): Likewise
8771 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8773 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8775 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8776 * config/sparc/obsd64.mh: New file.
8777 * sparc64obsd-nat.c: New file.
8779 * obsd-nat.h: New file.
8780 * obsd-nat.c: New file.
8781 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8782 (ALLDEPFILES): Add obsd-nat.c.
8784 2014-02-28 Tom Tromey <tromey@redhat.com>
8786 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8787 * cli-out.h (cli_ui_out_impl): Now const.
8788 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8789 * ui-out.c (struct ui_out) <impl>: Now const.
8790 (default_ui_out_impl): Now const.
8791 (ui_out_new): Make 'impl' parameter const.
8792 * ui-out.h (ui_out_new): Update.
8794 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8796 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8798 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8800 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8802 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8804 Additional PR 8882 fix.
8805 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8807 2014-02-27 Pedro Alves <palves@redhat.com>
8809 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8812 2014-02-27 Pedro Alves <palves@redhat.com>
8815 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8816 * nat/linux-waitpid.c: Include string.h.
8817 (status_to_str): Moved here and made extern.
8818 * nat/linux-waitpid.h (status_to_str): New declaration.
8820 2014-02-27 Hui Zhu <hui@codesourcery.com>
8823 * infrun.c (ptid_match): Move ...
8824 * common/ptid.c (ptid_match): ... here.
8825 * inferior.h (ptid_match): Move ...
8826 * common/ptid.h (ptid_match): ... here.
8828 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8830 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8831 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8834 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8836 * obsd-tdep.c (obsd_auxv_parse): New function.
8837 (obsd_init_abi): Set auxv_parse.
8839 * gdbarch.sh (auxv_parse): New.
8840 * gdbarch.h: Regenerated.
8841 * gdbarch.c: Regenerated.
8842 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8844 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8846 * guile/scm-value.c (gdbscm_history_append_x): New function.
8847 (value_functions): Add it.
8849 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8851 * dwarf2read.c (attr_value_as_address): New function.
8852 (dwarf2_find_base_address, read_call_site_scope): Use
8853 attr_value_as_address in place of DW_ADDR.
8854 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8855 the low and high addresses. Slight rework of the handling
8856 of the high pc being a constant form, and limit it to
8857 DWARF verson 4 or higher.
8858 (dwarf2_record_block_ranges): Likewise.
8859 (read_partial_die): Likewise.
8860 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8862 2014-02-26 Tom Tromey <tromey@redhat.com>
8864 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8866 2014-02-26 Tom Tromey <tromey@redhat.com>
8868 * elfread.c (elf_read_minimal_symbols): Return early if
8869 minimal symbols have already been read. Add "ei" parameter.
8870 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8871 * minsyms.c (prim_record_minimal_symbol_full): Update.
8872 * objfiles.h (struct objstats) <n_minsyms>: Move...
8873 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8874 * symmisc.c (print_objfile_statistics): Update.
8876 2014-02-26 Tom Tromey <tromey@redhat.com>
8878 * elfread.c (elf_read_minimal_symbols): New function, from
8880 (elf_symfile_read): Call it.
8882 2014-02-26 Tom Tromey <tromey@redhat.com>
8884 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8885 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8886 (lookup_minimal_symbol_solib_trampoline)
8887 (lookup_minimal_symbol_by_pc_section_1)
8888 (lookup_minimal_symbol_and_objfile): Update.
8889 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8890 Don't allocate a minimal symbol if minsyms have already been read.
8891 (build_minimal_symbol_hash_tables): Update.
8892 (install_minimal_symbols): Do nothing if minsyms already read.
8893 Use the per-BFD obstack.
8894 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8895 * objfiles.c (allocate_objfile): Call
8896 terminate_minimal_symbol_table later.
8897 (have_minimal_symbols): Update.
8898 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8899 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8900 Move from struct objfile.
8901 <minsyms_read>: New field.
8902 (struct objfile) <msymbols, minimal_symbol_count,
8903 msymbol_hash, msymbol_demangled_hash>: Move.
8904 (ALL_OBJFILE_MSYMBOLS): Update.
8905 * symfile.c (read_symbols): Set minsyms_read.
8906 (reread_symbols): Update.
8907 * symmisc.c (dump_objfile, dump_msymbols): Update.
8909 2014-02-26 Tom Tromey <tromey@redhat.com>
8911 * minsyms.c (msymbols_sort): Remove.
8912 * minsyms.h (msymbols_sort): Remove.
8913 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8914 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8915 * elfread.c (elf_symtab_read): Don't add section offsets.
8916 * xcoffread.c (record_minimal_symbol): Don't add section offset
8917 to minimal symbol address.
8918 * somread.c (text_offset, data_offset): Remove.
8919 (som_symtab_read): Don't add section offsets to minimal symbol
8921 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8922 Don't add section offsets to minimal symbols.
8923 * coffread.c (coff_symtab_read): Don't add section offsets
8924 to minimal symbol addresses.
8925 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8926 to minimal symbol addresses.
8927 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8928 section offset to minimal symbol addresses.
8929 * mdebugread.c (parse_partial_symbols): Don't add section
8930 offset to minimal symbol addresses.
8931 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8932 offset to minimal symbol addresses.
8934 2014-02-26 Tom Tromey <tromey@redhat.com>
8936 * ada-lang.c (ada_main_name): Update.
8937 (ada_add_standard_exceptions): Update.
8938 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8939 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8940 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8941 * auxv.c (ld_so_xfer_auxv): Update.
8942 * avr-tdep.c (avr_scan_prologue): Update.
8943 * ax-gdb.c (gen_var_ref): Update.
8944 * blockframe.c (get_pc_function_start)
8945 (find_pc_partial_function_gnu_ifunc): Update.
8946 * breakpoint.c (create_overlay_event_breakpoint)
8947 (create_longjmp_master_breakpoint)
8948 (create_std_terminate_master_breakpoint)
8949 (create_exception_master_breakpoint): Update.
8950 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8951 * c-valprint.c (c_val_print): Update.
8952 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8953 * common/agent.c (agent_look_up_symbols): Update.
8954 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8955 * dwarf2loc.c (call_site_to_target_addr): Update.
8956 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8957 * elfread.c (elf_gnu_ifunc_record_cache)
8958 (elf_gnu_ifunc_resolve_by_got): Update.
8959 * findvar.c (default_read_var_value): Update.
8960 * frame.c (inside_main_func): Update.
8961 * frv-tdep.c (frv_frame_this_id): Update.
8962 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8963 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8965 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8966 (hppa_hpux_find_dummy_bpaddr): Update.
8967 * hppa-tdep.c (hppa_symbol_address): Update.
8968 * infcmd.c (until_next_command): Update.
8969 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8971 * linespec.c (minsym_found, add_minsym): Update.
8972 * linux-nat.c (get_signo): Update.
8973 * linux-thread-db.c (inferior_has_bug): Update.
8974 * m32c-tdep.c (m32c_return_value)
8975 (m32c_m16c_address_to_pointer): Update.
8976 * m32r-tdep.c (m32r_frame_this_id): Update.
8977 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8978 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8979 * maint.c (maintenance_translate_address): Update.
8980 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8981 (frob_address): New function.
8982 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8983 frob_address. Rename parameter to "pc_in".
8984 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8986 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8988 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8989 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8990 * objc-lang.c (find_objc_msgsend): Update.
8991 * objfiles.c (objfile_relocate1): Update.
8992 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8993 * p-valprint.c (pascal_val_print): Update.
8994 * parse.c (write_exp_msymbol): Update.
8995 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8996 (ppc_elfv2_skip_entrypoint): Update.
8997 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8998 * printcmd.c (build_address_symbolic, msym_info)
8999 (address_info): Update.
9000 * proc-service.c (ps_pglobal_lookup): Update.
9001 * psymtab.c (find_pc_sect_psymtab_closer)
9002 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9003 Change msymbol parameter to bound_minimal_symbol.
9004 * ravenscar-thread.c (get_running_thread_id): Update.
9005 * remote.c (remote_check_symbols): Update.
9006 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9008 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9009 * solib-dsbt.c (lm_base): Update.
9010 * solib-frv.c (lm_base, main_got): Update.
9011 * solib-irix.c (locate_base): Update.
9012 * solib-som.c (som_solib_create_inferior_hook)
9013 (link_map_start): Update.
9014 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9015 * solib-svr4.c (elf_locate_base, enable_break): Update.
9016 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9017 (flush_ea_cache): Update.
9018 * stabsread.c (define_symbol, scan_file_globals): Update.
9019 * stack.c (find_frame_funname): Update.
9020 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9021 (debug_qf_find_pc_sect_symtab): Update.
9022 * symfile.c (simple_read_overlay_table)
9023 (simple_overlay_update): Update.
9024 * symfile.h (struct quick_symbol_functions)
9025 <find_pc_sect_symtab>: Change type of msymbol to
9026 bound_minimal_symbol.
9027 * symmisc.c (dump_msymbols): Update.
9028 * symtab.c (find_pc_sect_symtab_via_partial)
9029 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9030 (search_symbols, print_msymbol_info): Update.
9031 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9032 (MSYMBOL_VALUE_ADDRESS): Redefine.
9033 (BMSYMBOL_VALUE_ADDRESS): New macro.
9034 * tracepoint.c (scope_info): Update.
9035 * tui/tui-disasm.c (tui_find_disassembly_address)
9036 (tui_get_begin_asm_address): Update.
9037 * valops.c (find_function_in_inferior): Update.
9038 * value.c (value_static_field, value_fn_field): Update.
9040 2014-02-26 Tom Tromey <tromey@redhat.com>
9042 * ada-lang.c (ada_update_initial_language): Update.
9043 (ada_main_name, ada_has_this_exception_support): Update.
9044 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9045 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9046 * arm-tdep.c (arm_skip_stub): Update.
9047 * auxv.c (ld_so_xfer_auxv): Update.
9048 * avr-tdep.c (avr_scan_prologue): Update.
9049 * ax-gdb.c (gen_var_ref): Update.
9050 * breakpoint.c (struct breakpoint_objfile_data)
9051 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9052 type to bound_minimal_symbol.
9053 (create_overlay_event_breakpoint)
9054 (create_longjmp_master_breakpoint)
9055 (create_std_terminate_master_breakpoint)
9056 (create_exception_master_breakpoint): Update.
9057 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9058 * c-exp.y (classify_name): Update.
9059 * coffread.c (coff_symfile_read): Update.
9060 * common/agent.c (agent_look_up_symbols): Update.
9061 * d-lang.c (d_main_name): Update.
9062 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9063 * dec-thread.c (enable_dec_thread): Update.
9064 * dwarf2loc.c (call_site_to_target_addr): Update.
9065 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9066 * eval.c (evaluate_subexp_standard): Update.
9067 * findvar.c (struct minsym_lookup_data) <result>: Change type
9068 to bound_minimal_symbol.
9070 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9071 * frame.c (inside_main_func): Update.
9072 * frv-tdep.c (frv_frame_this_id): Update.
9073 * gcore.c (call_target_sbrk): Update.
9074 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9075 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9077 * go-lang.c (go_main_name): Update.
9078 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9079 (hppa_hpux_find_import_stub_for_addr): Update.
9080 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9081 Update. Change return type.
9082 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9084 * jit.c (jit_breakpoint_re_set_internal): Update.
9085 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9087 * linux-nat.c (get_signo): Update.
9088 * linux-thread-db.c (inferior_has_bug): Update
9089 * m32c-tdep.c (m32c_return_value)
9090 (m32c_m16c_address_to_pointer): Update.
9091 * m32r-tdep.c (m32r_frame_this_id): Update.
9092 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9093 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9094 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9095 lookup_minimal_symbol. Change return type.
9096 (lookup_minimal_symbol): Remove.
9097 (lookup_bound_minimal_symbol): Update.
9098 (lookup_minimal_symbol_text): Change return type.
9099 (lookup_minimal_symbol_solib_trampoline): Change return type.
9100 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9101 (lookup_minimal_symbol_solib_trampoline): Change return type.
9102 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9103 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9104 (value_nsstring, find_imps): Update.
9105 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9106 * p-lang.c (pascal_main_name): Update.
9107 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9108 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9109 * proc-service.c (ps_pglobal_lookup): Update.
9110 * ravenscar-thread.c (get_running_thread_msymbol): Change
9112 (has_ravenscar_runtime, get_running_thread_id): Update.
9113 * remote.c (remote_check_symbols): Update.
9114 * sol-thread.c (ps_pglobal_lookup): Update.
9115 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9116 * solib-dsbt.c (lm_base): Update.
9117 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9119 * solib-irix.c (locate_base): Update.
9120 * solib-som.c (som_solib_create_inferior_hook)
9121 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9123 * solib-spu.c (spu_enable_break): Update.
9124 * solib-svr4.c (elf_locate_base, enable_break): Update.
9125 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9126 (flush_ea_cache): Update.
9127 * stabsread.c (define_symbol): Update.
9128 * symfile.c (simple_read_overlay_table): Update.
9129 * symtab.c (find_pc_sect_line): Update.
9130 * tracepoint.c (scope_info): Update.
9131 * tui-disasm.c (tui_get_begin_asm_address): Update.
9132 * value.c (value_static_field): Update.
9134 2014-02-26 Tom Tromey <tromey@redhat.com>
9136 * minsyms.c (prim_record_minimal_symbol_full): Use
9137 SET_MSYMBOL_VALUE_ADDRESS.
9138 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9139 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9140 SET_MSYMBOL_VALUE_ADDRESS.
9141 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9142 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9144 2014-02-26 Tom Tromey <tromey@redhat.com>
9146 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9147 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9148 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9149 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9150 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9151 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9152 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9153 * ada-lang.c (ada_main_name): Update.
9154 (ada_lookup_simple_minsym): Update.
9155 (ada_make_symbol_completion_list): Update.
9156 (ada_add_standard_exceptions): Update.
9157 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9158 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9159 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9160 * arm-tdep.c (skip_prologue_function): Update.
9161 (arm_skip_stack_protector, arm_skip_stub): Update.
9162 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9163 (arm_wince_skip_main_prologue): Update.
9164 * auxv.c (ld_so_xfer_auxv): Update.
9165 * avr-tdep.c (avr_scan_prologue): Update.
9166 * ax-gdb.c (gen_var_ref): Update.
9167 * block.c (call_site_for_pc): Update.
9168 * blockframe.c (get_pc_function_start): Update.
9169 (find_pc_partial_function_gnu_ifunc): Update.
9170 * breakpoint.c (create_overlay_event_breakpoint): Update.
9171 (create_longjmp_master_breakpoint): Update.
9172 (create_std_terminate_master_breakpoint): Update.
9173 (create_exception_master_breakpoint): Update.
9174 (resolve_sal_pc): Update.
9175 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9176 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9178 * c-valprint.c (c_val_print): Update.
9179 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9180 * coffread.c (coff_symfile_read): Update.
9181 * common/agent.c (agent_look_up_symbols): Update.
9182 * dbxread.c (find_stab_function_addr): Update.
9183 (end_psymtab): Update.
9184 * dwarf2loc.c (call_site_to_target_addr): Update.
9185 (func_verify_no_selftailcall): Update.
9186 (tailcall_dump): Update.
9187 (call_site_find_chain_1): Update.
9188 (dwarf_expr_reg_to_entry_parameter): Update.
9189 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9190 (elf_gnu_ifunc_resolve_by_got): Update.
9191 * f-valprint.c (info_common_command): Update.
9192 * findvar.c (read_var_value): Update.
9193 * frame.c (get_prev_frame_1): Update.
9194 (inside_main_func): Update.
9195 * frv-tdep.c (frv_skip_main_prologue): Update.
9196 (frv_frame_this_id): Update.
9197 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9198 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9199 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9200 (gnuv3_skip_trampoline): Update.
9201 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9202 (hppa64_hpux_in_solib_call_trampoline): Update.
9203 (hppa_hpux_skip_trampoline_code): Update.
9204 (hppa64_hpux_search_dummy_call_sequence): Update.
9205 (hppa_hpux_find_import_stub_for_addr): Update.
9206 (hppa_hpux_find_dummy_bpaddr): Update.
9207 * hppa-tdep.c (hppa_symbol_address)
9208 (hppa_lookup_stub_minimal_symbol): Update.
9209 * i386-tdep.c (i386_skip_main_prologue): Update.
9210 (i386_pe_skip_trampoline_code): Update.
9211 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9212 * infcall.c (get_function_name): Update.
9213 * infcmd.c (until_next_command): Update.
9214 * jit.c (jit_breakpoint_re_set_internal): Update.
9215 (jit_inferior_init): Update.
9216 * linespec.c (minsym_found): Update.
9217 (add_minsym): Update.
9218 * linux-fork.c (info_checkpoints_command): Update.
9219 * linux-nat.c (get_signo): Update.
9220 * linux-thread-db.c (inferior_has_bug): Update.
9221 * m32c-tdep.c (m32c_return_value): Update.
9222 (m32c_m16c_address_to_pointer): Update.
9223 (m32c_m16c_pointer_to_address): Update.
9224 * m32r-tdep.c (m32r_frame_this_id): Update.
9225 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9226 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9227 * maint.c (maintenance_translate_address): Update.
9228 * minsyms.c (add_minsym_to_hash_table): Update.
9229 (add_minsym_to_demangled_hash_table): Update.
9230 (msymbol_objfile): Update.
9231 (lookup_minimal_symbol): Update.
9232 (iterate_over_minimal_symbols): Update.
9233 (lookup_minimal_symbol_text): Update.
9234 (lookup_minimal_symbol_by_pc_name): Update.
9235 (lookup_minimal_symbol_solib_trampoline): Update.
9236 (lookup_minimal_symbol_by_pc_section_1): Update.
9237 (lookup_minimal_symbol_and_objfile): Update.
9238 (prim_record_minimal_symbol_full): Update.
9239 (compare_minimal_symbols): Update.
9240 (compact_minimal_symbols): Update.
9241 (build_minimal_symbol_hash_tables): Update.
9242 (install_minimal_symbols): Update.
9243 (terminate_minimal_symbol_table): Update.
9244 (find_solib_trampoline_target): Update.
9245 (minimal_symbol_upper_bound): Update.
9246 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9247 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9248 (mips_skip_pic_trampoline_code): Update.
9249 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9250 * objc-lang.c (selectors_info): Update.
9251 (classes_info): Update.
9252 (find_methods): Update.
9253 (find_imps): Update.
9254 (find_objc_msgsend): Update.
9255 * objfiles.c (objfile_relocate1): Update.
9256 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9257 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9258 * p-valprint.c (pascal_val_print): Update.
9259 * parse.c (write_exp_msymbol): Update.
9260 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9261 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9262 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9263 * printcmd.c (build_address_symbolic): Update.
9265 (address_info): Update.
9266 * proc-service.c (ps_pglobal_lookup): Update.
9267 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9268 (find_pc_sect_psymtab): Update.
9269 * python/py-framefilter.c (py_print_frame): Update.
9270 * ravenscar-thread.c (get_running_thread_id): Update.
9271 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9273 * remote.c (remote_check_symbols): Update.
9274 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9275 (rs6000_skip_trampoline_code): Update.
9276 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9277 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9278 * solib-dsbt.c (lm_base): Update.
9279 * solib-frv.c (lm_base): Update.
9281 * solib-irix.c (locate_base): Update.
9282 * solib-som.c (som_solib_create_inferior_hook): Update.
9283 (som_solib_desire_dynamic_linker_symbols): Update.
9284 (link_map_start): Update.
9285 * solib-spu.c (spu_enable_break): Update.
9286 (ocl_enable_break): Update.
9287 * solib-svr4.c (elf_locate_base): Update.
9288 (enable_break): Update.
9289 * spu-tdep.c (spu_get_overlay_table): Update.
9290 (spu_catch_start): Update.
9291 (flush_ea_cache): Update.
9292 * stabsread.c (define_symbol): Update.
9293 (scan_file_globals): Update.
9294 * stack.c (find_frame_funname): Update.
9295 (frame_info): Update.
9296 * symfile.c (simple_read_overlay_table): Update.
9297 (simple_overlay_update): Update.
9298 * symmisc.c (dump_msymbols): Update.
9299 * symtab.c (fixup_section): Update.
9300 (find_pc_sect_line): Update.
9301 (skip_prologue_sal): Update.
9302 (search_symbols): Update.
9303 (print_msymbol_info): Update.
9304 (rbreak_command): Update.
9305 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9306 (completion_list_objc_symbol): Update.
9307 (default_make_symbol_completion_list_break_on): Update.
9308 * tracepoint.c (scope_info): Update.
9309 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9310 (tui_get_begin_asm_address): Update.
9311 * valops.c (find_function_in_inferior): Update.
9312 * value.c (value_static_field): Update.
9313 (value_fn_field): Update.
9315 2014-02-26 Tom Tromey <tromey@redhat.com>
9317 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9318 bound minimal symbols. Move code that knows about minsym
9320 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9322 * minsyms.h (minimal_symbol_upper_bound): Declare.
9323 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9324 minimal_symbol_upper_bound.
9326 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9328 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9329 Use the type's name if its basic type does not have a tag.
9331 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9333 * dwarf2read.c (read_subrange_type): Add comment.
9335 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9337 * dwarf2read.c (update_enumeration_type_from_children): New
9338 function, mostly extracted from process_structure_scope.
9339 (read_enumeration_type): Call update_enumeration_type_from_children.
9340 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9341 and flag_flag_enum fields.
9343 2014-02-26 Pedro Alves <palves@redhat.com>
9345 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9346 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9347 to_xfer_partial method.
9349 2014-02-26 Pedro Alves <palves@redhat.com>
9351 * target.c (complete_target_initialization): Don't install
9352 default_xfer_partial as to_xfer_partial hook.
9354 (update_current_target): Don't INHERIT nor de_fault
9355 deprecated_xfer_memory. Delete de_fault macro.
9356 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9357 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9358 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9361 2014-02-26 Pedro Alves <palves@redhat.com>
9363 * go32-nat.c (my_write_child): New function.
9364 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9365 (go32_xfer_partial): New function.
9366 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9367 Instead install a to_xfer_partial hook.
9369 2014-02-26 Pedro Alves <palves@redhat.com>
9371 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9372 to_xfer_partial helper. Rewrite.
9373 (procfs_xfer_partial): New function.
9374 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9375 Install a to_xfer_partial hook.
9377 2014-02-26 Pedro Alves <palves@redhat.com>
9379 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9380 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9381 (m32r_xfer_partial): New function.
9382 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9383 Install a to_xfer_partial hook.
9385 2014-02-26 Pedro Alves <palves@redhat.com>
9387 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9389 (mips_xfer_partial): New function.
9390 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9391 hook. Install a to_xfer_partial hook.
9393 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9395 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9396 * gdbtypes.c (create_array_type_with_stride): New function,
9397 renaming create_array_type, but with an added parameter
9398 called "bit_stride".
9399 (create_array_type): Re-implement using
9400 create_array_type_with_stride.
9401 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9402 and DW_AT_bit_stride attributes.
9404 2014-02-26 Pedro Alves <palves@redhat.com>
9406 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9407 task-specific breakpoints.
9409 2014-02-25 Pedro Alves <palves@redhat.com>
9411 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9412 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9414 2014-02-25 Stan Shebs <stan@codesourcery.com>
9416 * defs.h: Annotate comments for Doxygen.
9418 2014-02-25 Tom Tromey <tromey@redhat.com>
9420 * target.h (target_ignore): Don't declare.
9421 * target.c (target_ignore): Remove.
9423 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9426 * auto-load.c (auto_load_objfile_script_1): Change filename to
9429 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9431 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9432 documentation. Adjust prototype to match the target_ops
9433 to_xfer_partial method. Adjust implementation accordingly.
9435 2014-02-25 Hui Zhu <hui@codesourcery.com>
9437 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9440 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9442 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9443 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9444 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9445 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9446 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9447 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9448 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9449 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9451 (rl78_register_type): Use a data pointer type for SP and
9452 new pseudo registers mentioned above. Use a 16 bit integer
9453 type for all other register pairs.
9454 (rl78_register_name, rl78_g10_register_name): Update for
9455 new pseudo registers.
9456 (rl78_pseudo_register_read): Likewise.
9457 (rl78_pseudo_register_write): Likewise.
9458 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9459 to the newly added pseudo registers.
9461 2014-02-24 Doug Evans <dje@google.com>
9463 * value.c (record_latest_value): Fix comment.
9464 * printcmd.c (print_command_1): Remove code to handle -1 return from
9465 record_latest_value.
9467 2014-02-24 Pedro Alves <palves@redhat.com>
9469 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9470 deprecated_xfer_memory hook.
9471 (procfs_xfer_partial): Call procfs_xfer_memory instead
9472 of the deprecated_xfer_memory target hook.
9473 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9476 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9478 * windows-nat.c (windows_xfer_shared_libraries): Return
9479 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9480 requested object is TARGET_OBJECT_LIBRARIES.
9482 2014-02-24 Yao Qi <yao@codesourcery.com>
9484 * target.h (enum target_xfer_status)
9485 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9486 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9488 * corefile.c (memory_error_message): User updated.
9489 * exec.c (section_table_read_available_memory): Likewise.
9490 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9491 * target.c (target_xfer_status_to_string): Likewise.
9492 (raw_memory_xfer_partial): Likewise.
9493 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9494 * valops.c (read_value_memory): Likewise.
9495 * exec.h: Update comments.
9497 2014-02-24 Yao Qi <yao@codesourcery.com>
9499 * target.c (target_xfer_status_to_string): Rename argument err
9501 * target.h (target_xfer_status_to_string): Update declaration.
9502 Replace target_xfer_error_to_string with
9503 target_xfer_status_to_string in comment.
9505 2014-02-24 Yao Qi <yao@codesourcery.com>
9507 * mips-linux-nat.c (super_close): Update its type.
9508 (mips_linux_close): Pass 'self' to super_close.
9510 2014-02-24 Yao Qi <yao@codesourcery.com>
9512 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9513 * corefile.c (read_memory): Adjusted.
9514 * target.c (target_write_with_progress): Adjusted.
9516 2014-02-23 Yao Qi <yao@codesourcery.com>
9520 2013-10-25 Yao Qi <yao@codesourcery.com>
9522 * remote.c (remote_traceframe_info): Return early if
9523 traceframe is not selected.
9525 2013-07-19 Yao Qi <yao@codesourcery.com>
9527 * target.c (update_current_target): Change the default action
9528 of 'to_traceframe_info' from tcomplain to return_zero.
9529 * target.h (struct target_ops) <to_traceframe_info>: Add more
9532 2014-02-23 Yao Qi <yao@codesourcery.com>
9534 * valops.c (read_value_memory): Rewrite it. Call
9535 target_xfer_partial in a loop.
9536 * exec.h (section_table_available_memory): Remove declaration.
9537 Move comments to ...
9538 * exec.c (section_table_available_memory): ... here. Make it
9541 2014-02-23 Yao Qi <yao@codesourcery.com>
9543 * exec.c (section_table_read_available_memory): New function.
9544 * exec.h (section_table_read_available_memory): Declare.
9545 * ctf.c (ctf_xfer_partial): Call
9546 section_table_read_available_memory.
9547 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9549 2014-02-23 Yao Qi <yao@codesourcery.com>
9551 * ctf.c (ctf_xfer_partial): Move code to ...
9552 * exec.c (exec_read_partial_read_only): ... it. New function.
9553 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9554 * tracefile.c: Include "exec.h".
9555 * exec.h (exec_read_partial_read_only): Declare.
9557 2014-02-23 Yao Qi <yao@codesourcery.com>
9559 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9560 (tfile_has_memory): Remove.
9561 (init_tfile_ops): Don't set fields to_has_all_memory and
9562 to_has_memory of tfile_ops.
9563 * tracefile.c (tracefile_has_all_memory): New function.
9564 (tracefile_has_memory): New function.
9565 (init_tracefile_ops): Initialize fields to_has_all_memory and
9566 to_has_memory of 'ops'.
9568 2014-02-23 Yao Qi <yao@codesourcery.com>
9570 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9571 (ctf_thread_alive, ctf_get_trace_status): Remove.
9572 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9574 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9575 (tfile_has_stack, tfile_has_registers): Remove.
9576 (tfile_thread_alive): Remove.
9577 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9579 * tracefile.c (tracefile_has_stack): New function.
9580 (tracefile_has_registers): New function.
9581 (tracefile_thread_alive): New function.
9582 (tracefile_get_trace_status): New function.
9583 (init_tracefile_ops): New function.
9584 * tracefile.h (init_tracefile_ops): Declare.
9586 2014-02-23 Yao Qi <yao@codesourcery.com>
9588 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9589 (O_LARGEFILE): Likewise.
9590 (tfile_ops): Likewise.
9591 (TRACE_HEADER_SIZE): Likewise.
9592 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9593 (cur_data_size): Likewise.
9594 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9595 (tfile_close, tfile_files_info): Likewise.
9596 (tfile_get_trace_status): Likewise.
9597 (tfile_get_tracepoint_status): Likewise.
9598 (tfile_get_traceframe_address): Likewise.
9599 (tfile_trace_find, match_blocktype): Likewise.
9600 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9601 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9602 (tfile_get_trace_state_variable_value): Likewise.
9603 (tfile_has_all_memory, tfile_has_memory): Likewise.
9604 (tfile_has_stack, tfile_has_registers): Likewise.
9605 (tfile_thread_alive, build_traceframe_info): Likewise.
9606 (tfile_traceframe_info, init_tfile_ops): Likewise.
9607 (_initialize_tracepoint): Don't call init_tfile_ops
9608 and add_target_with_completer.
9609 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9610 exec.h, completer.h and filenames.h.
9611 (_initialize_tracefile_tfile): New function.
9613 2014-02-23 Yao Qi <yao@codesourcery.com>
9615 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9617 (HFILES_NO_SRCDIR): Add tracefile.h.
9618 * ctf.c: Include "tracefile.h".
9619 * tracefile.h: New file.
9620 * tracefile.c: New file
9621 * tracefile-tfile.c: New file.
9622 * tracepoint.c: Include "tracefile.h".
9623 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9624 (stop_reason_names): Add const.
9625 (trace_file_writer_xfree): Move it to tracefile.c.
9626 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9627 (trace_save_ctf): Likewise.
9628 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9629 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9630 (tfile_write_header, tfile_write_regblock_type): Likewise.
9631 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9632 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9633 (tfile_write_raw_data, tfile_end): Likewise.
9634 (tfile_trace_file_writer_new): Likewise.
9635 (free_uploaded_tp): Make it extern.
9636 (free_uploaded_tsv): Make it extern.
9637 (_initialize_tracepoint): Move code to register command 'tsave'
9639 * tracepoint.h (stop_reason_names): Declare.
9640 (struct trace_frame_write_ops): Move it to tracefile.h.
9641 (struct trace_file_write_ops): Likewise.
9642 (struct trace_file_writer): Likewise.
9643 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9645 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9648 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9650 (get_cores_used_by_process): New parameter num_cores, use it.
9651 (linux_xfer_osdata_processes): Pass num_cores to it.
9652 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9655 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9657 * target.c (memory_xfer_partial): Fix length arg in call to
9658 breakpoint_xfer_memory.
9660 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9663 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9664 number comes after the + or - signs. Adjust length of register
9665 name to be extracted.
9667 2014-02-20 Tom Tromey <tromey@redhat.com>
9669 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9670 (ada_varobj_ops): Mark "extern".
9672 2014-02-20 Tom Tromey <tromey@redhat.com>
9674 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9676 2014-02-20 Doug Evans <xdje42@gmail.com>
9678 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9679 All callers updated.
9680 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9681 All callers updated.
9682 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9683 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9685 2014-02-20 lin zuojian <manjian2006@gmail.com>
9686 Joel Brobecker <brobecker@adacore.com>
9687 Doug Evans <xdje42@gmail.com>
9690 * dwarf2read.c (struct die_info): New member in_process.
9691 (reset_die_in_process): New function.
9692 (process_die): Set it at the start, reset when returning.
9693 (inherit_abstract_dies): Only call process_die if origin_child_die
9694 not already being processed.
9696 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9698 * windows-nat.c (handle_unload_dll): Add function documentation.
9699 (do_initial_windows_stuff): Add comment explaining why we wait
9700 until after inferior initialization has finished before
9701 processing all DLLs.
9703 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9705 * windows-nat.c (get_module_name): Delete.
9706 (windows_get_exec_module_filename): New function, mostly
9707 inspired from get_module_name.
9708 (windows_pid_to_exec_file): Replace call to get_module_name
9709 by call to windows_get_exec_module_filename.
9711 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9713 * windows-nat.c (handle_load_dll): Rewrite this function's
9714 introductory comment. Remove code using get_module_name
9715 to get the DLL's name.
9717 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9719 * windows-nat.c (get_windows_debug_event): Ignore
9720 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9721 if windows_initialization_done == 0.
9722 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9723 Adjust implementation to always load all DLLs.
9724 (do_initial_windows_stuff): Replace call to
9725 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9727 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9729 * windows-nat.c (_initialize_windows_nat): Deprecate the
9730 "dll-symbols" command. Turn the "add-shared-symbol-files"
9731 and "assf" aliases into commands, and deprecate them as well.
9732 * NEWS: Add entry explaining that "dll-symbols" and its two
9733 aliases are now deprecated.
9735 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9737 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9738 new-line in debug string. Remove trailing spaces.
9740 2014-02-19 Stan Shebs <stan@codesourcery.com>
9742 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9744 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9746 * NEWS: Add entry for the new feature
9747 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9750 2014-02-19 Stan Shebs <stan@codesourcery.com>
9752 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9754 2014-02-19 Pedro Alves <palves@redhat.com>
9756 * common/ptid.h (struct ptid): Mention that process_stratum
9757 targets should prefer ptid.lwp.
9759 2014-02-19 Pedro Alves <palves@redhat.com>
9761 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9762 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9763 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9764 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9765 store remote thread ids rather than ptid.tid.
9766 (_initialize_remote): Adjust.
9768 2014-02-19 Tom Tromey <tromey@redhat.com>
9770 * target.c (target_get_unwinder): Rewrite.
9771 (target_get_tailcall_unwinder): Rewrite.
9772 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9773 (record_btrace_to_get_tailcall_unwinder): New function.
9774 (init_record_btrace_ops): Update.
9775 * target.h (struct target_ops) <to_get_unwinder,
9776 to_get_tailcall_unwinder>: Now function pointers. Use
9777 TARGET_DEFAULT_RETURN.
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9783 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9787 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9789 * target-delegates.c: Rebuild.
9790 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9791 TARGET_DEFAULT_FUNC.
9792 * target.c (default_target_decr_pc_after_break): Rename from
9793 forward_target_decr_pc_after_break. Simplify.
9794 (target_decr_pc_after_break): Rely on delegation.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * target.c (update_current_target): Do not INHERIT to_doc or
9799 to_magic. Do not de_fault to_open or to_close.
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9803 * gcore.h (objfile_find_memory_regions): Declare.
9804 * gcore.c (objfile_find_memory_regions): No longer static. Add
9806 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9807 * exec.c: Include gcore.h.
9808 (exec_set_find_memory_regions): Remove.
9809 (exec_find_memory_regions): Remove.
9810 (exec_do_find_memory_regions): Remove.
9811 (init_exec_ops): Update.
9812 * defs.h (exec_set_find_memory_regions): Remove.
9814 2014-02-19 Tom Tromey <tromey@redhat.com>
9816 * target-delegates.c: Rebuild.
9817 * target.h (struct target_ops) <to_extra_thread_info,
9818 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9819 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9820 not 0, in TARGET_DEFAULT_RETURN.
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9824 * target.c (complete_target_initialization): Remove casts. Use
9825 return_zero_has_execution.
9826 (return_zero): Add "ignore" argument.
9827 (return_zero_has_execution): New function.
9828 (init_dummy_target): Remove casts. Use
9829 return_zero_has_execution.
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9833 * target.c (update_current_target): Update comments. Do not
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9838 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9840 * corelow.c (core_read_description): Delegate when needed.
9841 * remote.c (remote_read_description): Delegate when needed.
9842 * target-delegates.c: Rebuild.
9843 * target.c (target_read_description): Rewrite.
9844 * target.h (struct target_ops) <to_read_description>: Update
9845 comment. Use TARGET_DEFAULT_RETURN.
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9849 * target-delegates.c: Rebuild.
9850 * target.c (update_current_target): Don't inherit or default
9852 (find_default_run_target): Check against delegate_can_run.
9853 * target.h (struct target_ops) <to_can_run>: Use
9854 TARGET_DEFAULT_RETURN.
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9858 * target-delegates.c: Rebuild.
9859 * target.c (target_disconnect): Unconditionally delegate.
9860 * target.h (struct target_ops) <to_disconnect>: Use
9861 TARGET_DEFAULT_NORETURN.
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9865 * record.c (record_stop): Unconditionally delegate.
9866 * target-delegates.c: Rebuild.
9867 * target.c (target_stop_recording): Unconditionally delegate.
9868 * target.h (struct target_ops) <to_stop_recording>: Use
9869 TARGET_DEFAULT_IGNORE.
9871 2014-02-19 Tom Tromey <tromey@redhat.com>
9873 * target-delegates.c: Rebuild.
9874 * target.c (target_enable_btrace): Unconditionally delegate.
9875 * target.h (struct target_ops) <to_enable_btrace>: Use
9876 TARGET_DEFAULT_NORETURN.
9878 2014-02-19 Tom Tromey <tromey@redhat.com>
9880 * target-delegates.c: Rebuild.
9881 * target.c (target_read_btrace): Unconditionally delegate.
9882 * target.h (struct target_ops) <to_read_btrace>: Use
9883 TARGET_DEFAULT_NORETURN.
9885 2014-02-19 Tom Tromey <tromey@redhat.com>
9887 * target-delegates.c: Rebuild.
9888 * target.c (target_teardown_btrace): Unconditionally delegate.
9889 * target.h (struct target_ops) <to_teardown_btrace>: Use
9890 TARGET_DEFAULT_NORETURN.
9892 2014-02-19 Tom Tromey <tromey@redhat.com>
9894 * target-delegates.c: Rebuild.
9895 * target.c (target_disable_btrace): Unconditionally delegate.
9896 * target.h (struct target_ops) <to_disable_btrace>: Use
9897 TARGET_DEFAULT_NORETURN.
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9901 * target-delegates.c: Rebuild.
9902 * target.c (default_search_memory): New function.
9903 (simple_search_memory): Update comment.
9904 (target_search_memory): Unconditionally delegate.
9905 * target.h (struct target_ops) <to_search_memory>: Use
9906 TARGET_DEFAULT_FUNC.
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9910 * auxv.c (default_auxv_parse): No longer static.
9911 (target_auxv_parse): Unconditionally delegate.
9912 * auxv.h (default_auxv_parse): Declare.
9913 * target-delegates.c: Rebuild.
9914 * target.c: Include auxv.h.
9915 * target.h (struct target_ops) <to_auxv_parse>: Use
9916 TARGET_DEFAULT_FUNC.
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9920 * target-delegates.c: Rebuild.
9921 * target.c (target_memory_map): Unconditionally delegate.
9922 * target.h (struct target_ops) <to_memory_map>: Use
9923 TARGET_DEFAULT_RETURN.
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9927 * target-delegates.c: Rebuild.
9928 * target.c (target_thread_alive): Unconditionally delegate.
9929 * target.h (struct target_ops) <to_thread_alive>: Use
9930 TARGET_DEFAULT_RETURN.
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9934 * target-delegates.c: Rebuild.
9935 * target.c (target_save_record): Unconditionally delegate.
9936 * target.h (struct target_ops) <to_save_record>: Use
9937 TARGET_DEFAULT_NORETURN.
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9941 * target-delegates.c: Rebuild.
9942 * target.c (target_delete_record): Unconditionally delegate.
9943 * target.h (struct target_ops) <to_delete_record>: Use
9944 TARGET_DEFAULT_NORETURN.
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9948 * target-delegates.c: Rebuild.
9949 * target.c (target_record_is_replaying): Unconditionally
9951 * target.h (struct target_ops) <to_record_is_replaying>: Use
9952 TARGET_DEFAULT_RETURN.
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9956 * target-delegates.c: Rebuild.
9957 * target.c (target_goto_record_begin): Unconditionally delegate.
9958 * target.h (struct target_ops) <to_goto_record_begin>: Use
9959 TARGET_DEFAULT_NORETURN.
9961 2014-02-19 Tom Tromey <tromey@redhat.com>
9963 * target-delegates.c: Rebuild.
9964 * target.c (target_goto_record_end): Unconditionally delegate.
9965 * target.h (struct target_ops) <to_goto_record_end>: Use
9966 TARGET_DEFAULT_NORETURN.
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9970 * target-delegates.c: Rebuild.
9971 * target.c (target_goto_record): Unconditionally delegate.
9972 * target.h (struct target_ops) <to_goto_record>: Use
9973 TARGET_DEFAULT_NORETURN.
9975 2014-02-19 Tom Tromey <tromey@redhat.com>
9977 * target-delegates.c: Rebuild.
9978 * target.c (target_insn_history): Unconditionally delegate.
9979 * target.h (struct target_ops) <to_insn_history>: Use
9980 TARGET_DEFAULT_NORETURN.
9982 2014-02-19 Tom Tromey <tromey@redhat.com>
9984 * target-delegates.c: Rebuild.
9985 * target.c (target_insn_history_from): Unconditionally delegate.
9986 * target.h (struct target_ops) <to_insn_history_from>: Use
9987 TARGET_DEFAULT_NORETURN.
9989 2014-02-19 Tom Tromey <tromey@redhat.com>
9991 * target-delegates.c: Rebuild.
9992 * target.c (target_insn_history_range): Unconditionally delegate.
9993 * target.h (struct target_ops) <to_insn_history_range>: Use
9994 TARGET_DEFAULT_NORETURN.
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9998 * target-delegates.c: Rebuild.
9999 * target.c (target_call_history): Unconditionally delegate.
10000 * target.h (struct target_ops) <to_call_history>: Use
10001 TARGET_DEFAULT_NORETURN.
10003 2014-02-19 Tom Tromey <tromey@redhat.com>
10005 * target-delegates.c: Rebuild.
10006 * target.c (target_call_history_from): Unconditionally delegate.
10007 * target.h (struct target_ops) <to_call_history_from>: Use
10008 TARGET_DEFAULT_NORETURN.
10010 2014-02-19 Tom Tromey <tromey@redhat.com>
10012 * target-delegates.c: Rebuild.
10013 * target.c (target_call_history_range): Unconditionally delegate.
10014 * target.h (struct target_ops) <to_call_history_range>: Use
10015 TARGET_DEFAULT_NORETURN.
10017 2014-02-19 Tom Tromey <tromey@redhat.com>
10019 * target-delegates.c: Rebuild.
10020 * target.c (target_verify_memory): Unconditionally delegate.
10021 * target.h (struct target_ops) <to_verify_memory>: Use
10022 TARGET_DEFAULT_NORETURN.
10024 2014-02-19 Tom Tromey <tromey@redhat.com>
10026 * target-delegates.c: Rebuild.
10027 * target.c (target_core_of_thread): Unconditionally delegate.
10028 * target.h (struct target_ops) <to_core_of_thread>: Use
10029 TARGET_DEFAULT_RETURN.
10031 2014-02-19 Tom Tromey <tromey@redhat.com>
10033 * target-delegates.c: Rebuild.
10034 * target.c (target_flash_done): Unconditionally delegate.
10035 * target.h (struct target_ops) <to_flash_done>: Use
10036 TARGET_DEFAULT_NORETURN.
10038 2014-02-19 Tom Tromey <tromey@redhat.com>
10040 * target-delegates.c: Rebuild.
10041 * target.c (target_flash_erase): Unconditionally delegate.
10042 * target.h (struct target_ops) <to_flash_erase>: Use
10043 TARGET_DEFAULT_NORETURN.
10045 2014-02-19 Tom Tromey <tromey@redhat.com>
10047 * target-delegates.c: Rebuild.
10048 * target.c (target_get_section_table): Unconditionally delegate.
10049 * target.h (struct target_ops) <to_get_section_table>: Use
10050 TARGET_DEFAULT_RETURN.
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10054 * target-delegates.c: Rebuild.
10055 * target.c (target_pid_to_str): Unconditionally delegate.
10056 (init_dummy_target): Don't initialize to_pid_to_str.
10057 (default_pid_to_str): Rename from dummy_pid_to_str.
10058 * target.h (struct target_ops) <to_pid_to_str>: Use
10059 TARGET_DEFAULT_FUNC.
10061 2014-02-19 Tom Tromey <tromey@redhat.com>
10063 * target-delegates.c: Rebuild.
10064 * target.c (target_find_new_threads): Unconditionally delegate.
10065 * target.h (struct target_ops) <to_find_new_threads>: Use
10066 TARGET_DEFAULT_RETURN.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target-delegates.c: Rebuild.
10071 * target.c (target_program_signals): Unconditionally delegate.
10072 * target.h (struct target_ops) <to_program_signals>: Use
10073 TARGET_DEFAULT_IGNORE.
10075 2014-02-19 Tom Tromey <tromey@redhat.com>
10077 * target-delegates.c: Rebuild.
10078 * target.c (target_pass_signals): Unconditionally delegate.
10079 * target.h (struct target_ops) <to_pass_signals>: Use
10080 TARGET_DEFAULT_IGNORE.
10082 2014-02-19 Tom Tromey <tromey@redhat.com>
10084 * target-delegates.c: Rebuild.
10085 * target.c (default_mourn_inferior): New function.
10086 (target_mourn_inferior): Unconditionally delegate.
10087 * target.h (struct target_ops) <to_mourn_inferior>: Use
10088 TARGET_DEFAULT_FUNC.
10090 2014-02-19 Tom Tromey <tromey@redhat.com>
10092 * target-delegates.c: Rebuild.
10093 * target.c (default_follow_fork): New function.
10094 (target_follow_fork): Unconditionally delegate.
10095 * target.h (struct target_ops) <to_follow_fork>: Use
10096 TARGET_DEFAULT_FUNC.
10098 2014-02-19 Tom Tromey <tromey@redhat.com>
10100 * target-delegates.c: Rebuild.
10101 * target.c (target_kill): Unconditionally delegate.
10102 * target.h (struct target_ops) <to_kill>: Use
10103 TARGET_DEFAULT_NORETURN.
10105 2014-02-19 Tom Tromey <tromey@redhat.com>
10107 * target-delegates.c: Rebuild.
10108 * target.c (target_masked_watch_num_registers): Unconditionally
10110 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10111 Use TARGET_DEFAULT_RETURN.
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10115 * target-delegates.c: Rebuild.
10116 * target.c (target_remove_mask_watchpoint): Unconditionally
10118 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10119 TARGET_DEFAULT_RETURN.
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10123 * target-delegates.c: Rebuild.
10124 * target.c (target_insert_mask_watchpoint): Unconditionally
10126 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10127 TARGET_DEFAULT_RETURN.
10129 2014-02-19 Tom Tromey <tromey@redhat.com>
10131 * target-delegates.c: Rebuild.
10132 * target.c (target_ranged_break_num_registers): Unconditionally
10134 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10135 Use TARGET_DEFAULT_RETURN.
10137 2014-02-19 Tom Tromey <tromey@redhat.com>
10139 * target-delegates.c: Rebuild.
10140 * target.c (target_fetch_registers): Unconditionally delegate.
10141 * target.h (struct target_ops) <to_fetch_registers>: Use
10142 TARGET_DEFAULT_NORETURN.
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10146 * target-delegates.c: Rebuild.
10147 * target.c (update_current_target): Don't inherit or default
10149 * target.h (struct target_ops) <to_stop>: Use
10150 TARGET_DEFAULT_IGNORE.
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10154 * target-delegates.c: Rebuild.
10155 * target.c (update_current_target): Don't inherit or default
10156 to_can_run_breakpoint_commands.
10157 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10158 Use TARGET_DEFAULT_RETURN.
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10162 * target-delegates.c: Rebuild.
10163 * target.c (update_current_target): Don't inherit or default
10164 to_supports_evaluation_of_breakpoint_conditions.
10165 * target.h (struct target_ops)
10166 <to_supports_evaluation_of_breakpoint_conditions>: Use
10167 TARGET_DEFAULT_RETURN.
10169 2014-02-19 Tom Tromey <tromey@redhat.com>
10171 * target-delegates.c: Rebuild.
10172 * target.c (update_current_target): Don't inherit or default
10173 to_augmented_libraries_svr4_read.
10174 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10175 Use TARGET_DEFAULT_RETURN.
10177 2014-02-19 Tom Tromey <tromey@redhat.com>
10179 * target-delegates.c: Rebuild.
10180 * target.c (update_current_target): Don't inherit or default
10182 * target.h (struct target_ops) <to_can_use_agent>: Use
10183 TARGET_DEFAULT_RETURN.
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10187 * target-delegates.c: Rebuild.
10188 * target.c (update_current_target): Don't inherit or default
10190 * target.h (struct target_ops) <to_use_agent>: Use
10191 TARGET_DEFAULT_NORETURN.
10193 2014-02-19 Tom Tromey <tromey@redhat.com>
10195 * target-delegates.c: Rebuild.
10196 * target.c (update_current_target): Don't inherit or default
10197 to_traceframe_info.
10198 (return_null): Remove.
10199 * target.h (struct target_ops) <to_traceframe_info>: Use
10200 TARGET_DEFAULT_RETURN.
10202 2014-02-19 Tom Tromey <tromey@redhat.com>
10204 * target-delegates.c: Rebuild.
10205 * target.c (update_current_target): Don't inherit or default
10206 to_static_tracepoint_markers_by_strid.
10207 * target.h (struct target_ops)
10208 <to_static_tracepoint_markers_by_strid>: Use
10209 TARGET_DEFAULT_NORETURN.
10211 2014-02-19 Tom Tromey <tromey@redhat.com>
10213 * target-delegates.c: Rebuild.
10214 * target.c (update_current_target): Don't inherit or default
10215 to_static_tracepoint_marker_at.
10216 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10217 Use TARGET_DEFAULT_RETURN.
10219 2014-02-19 Tom Tromey <tromey@redhat.com>
10221 * target-delegates.c: Rebuild.
10222 * target.c (update_current_target): Don't inherit or default
10223 to_set_permissions.
10224 * target.h (struct target_ops) <to_set_permissions>: Use
10225 TARGET_DEFAULT_IGNORE.
10227 2014-02-19 Tom Tromey <tromey@redhat.com>
10229 * target-delegates.c: Rebuild.
10230 * target.c (update_current_target): Don't inherit or default
10231 to_get_tib_address.
10232 * target.h (struct target_ops) <to_get_tib_address>: Use
10233 TARGET_DEFAULT_NORETURN.
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10237 * target-delegates.c: Rebuild.
10238 * target.c (update_current_target): Don't inherit or default
10239 to_set_trace_notes.
10240 * target.h (struct target_ops) <to_set_trace_notes>: Use
10241 TARGET_DEFAULT_RETURN.
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10245 * target-delegates.c: Rebuild.
10246 * target.c (update_current_target): Don't initialize
10247 to_set_trace_buffer_size.
10248 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10249 TARGET_DEFAULT_IGNORE.
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10253 * target-delegates.c: Rebuild.
10254 * target.c (update_current_target): Don't inherit or default
10255 to_set_circular_trace_buffer.
10256 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10257 TARGET_DEFAULT_IGNORE.
10259 2014-02-19 Tom Tromey <tromey@redhat.com>
10261 * target-delegates.c: Rebuild.
10262 * target.c (update_current_target): Don't inherit or default
10263 to_set_disconnected_tracing.
10264 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10265 TARGET_DEFAULT_IGNORE.
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10269 * target-delegates.c: Rebuild.
10270 * target.c (update_current_target): Don't inherit or default
10271 to_get_min_fast_tracepoint_insn_len.
10272 (return_minus_one): Remove.
10273 * target.h (struct target_ops)
10274 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10278 * target-delegates.c: Rebuild.
10279 * target.c (update_current_target): Don't inherit or default
10280 to_get_raw_trace_data.
10281 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10282 TARGET_DEFAULT_NORETURN.
10284 2014-02-19 Tom Tromey <tromey@redhat.com>
10286 * target-delegates.c: Rebuild.
10287 * target.c (update_current_target): Don't inherit or default
10288 to_upload_trace_state_variables.
10289 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10290 Use TARGET_DEFAULT_RETURN.
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10294 * target-delegates.c: Rebuild.
10295 * target.c (update_current_target): Don't inherit or default
10296 to_upload_tracepoints.
10297 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10298 TARGET_DEFAULT_RETURN.
10300 2014-02-19 Tom Tromey <tromey@redhat.com>
10302 * target-delegates.c: Rebuild.
10303 * target.c (update_current_target): Don't inherit or default
10304 to_save_trace_data.
10305 * target.h (struct target_ops) <to_save_trace_data>: Use
10306 TARGET_DEFAULT_NORETURN.
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10310 * target-delegates.c: Rebuild.
10311 * target.c (update_current_target): Don't inherit or default
10312 to_get_trace_state_variable_value.
10313 * target.h (struct target_ops)
10314 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10318 * target-delegates.c: Rebuild.
10319 * target.c (update_current_target): Don't inherit or default
10321 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10325 * target-delegates.c: Rebuild.
10326 * target.c (update_current_target): Don't inherit or default
10328 * target.h (struct target_ops) <to_trace_stop>: Use
10329 TARGET_DEFAULT_NORETURN.
10331 2014-02-19 Tom Tromey <tromey@redhat.com>
10333 * target-delegates.c: Rebuild.
10334 * target.c (update_current_target): Don't inherit or default
10335 to_get_tracepoint_status.
10336 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10337 TARGET_DEFAULT_NORETURN.
10339 2014-02-19 Tom Tromey <tromey@redhat.com>
10341 * target-delegates.c: Rebuild.
10342 * target.c (update_current_target): Don't inherit or default
10343 to_get_trace_status.
10344 * target.h (struct target_ops) <to_get_trace_status>: Use
10345 TARGET_DEFAULT_RETURN.
10347 2014-02-19 Tom Tromey <tromey@redhat.com>
10349 * target-delegates.c: Rebuild.
10350 * target.c (update_current_target): Don't inherit or default
10352 * target.h (struct target_ops) <to_trace_start>: Use
10353 TARGET_DEFAULT_NORETURN.
10355 2014-02-19 Tom Tromey <tromey@redhat.com>
10357 * target-delegates.c: Rebuild.
10358 * target.c (update_current_target): Don't inherit or default
10359 to_trace_set_readonly_regions.
10360 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10361 Use TARGET_DEFAULT_NORETURN.
10363 2014-02-19 Tom Tromey <tromey@redhat.com>
10365 * target-delegates.c: Rebuild.
10366 * target.c (update_current_target): Don't inherit or default
10367 to_disable_tracepoint.
10368 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10369 TARGET_DEFAULT_NORETURN.
10371 2014-02-19 Tom Tromey <tromey@redhat.com>
10373 * target-delegates.c: Rebuild.
10374 * target.c (update_current_target): Don't inherit or default
10375 to_enable_tracepoint.
10376 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10377 TARGET_DEFAULT_NORETURN.
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target-delegates.c: Rebuild.
10382 * target.c (update_current_target): Don't inherit or default
10383 to_download_trace_state_variable.
10384 * target.h (struct target_ops) <to_download_trace_state_variable>:
10385 Use TARGET_DEFAULT_NORETURN.
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10389 * target-delegates.c: Rebuild.
10390 * target.c (update_current_target): Don't inherit or default
10391 to_can_download_tracepoint.
10392 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10393 TARGET_DEFAULT_RETURN.
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target-delegates.c: Rebuild.
10398 * target.c (update_current_target): Don't inherit or default
10399 to_download_tracepoint.
10400 * target.h (struct target_ops) <to_download_tracepoint>: Use
10401 TARGET_DEFAULT_NORETURN.
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10405 * target-delegates.c: Rebuild.
10406 * target.c (update_current_target): Don't inherit or default
10408 * target.h (struct target_ops) <to_trace_init>: Use
10409 TARGET_DEFAULT_RETURN.
10411 2014-02-19 Tom Tromey <tromey@redhat.com>
10413 * target-delegates.c: Rebuild.
10414 * target.c (update_current_target): Don't inherit or default
10415 to_supports_string_tracing.
10416 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10417 TARGET_DEFAULT_RETURN.
10419 2014-02-19 Tom Tromey <tromey@redhat.com>
10421 * target-delegates.c: Rebuild.
10422 * target.c (update_current_target): Don't inherit or default
10423 to_supports_enable_disable_tracepoint.
10424 * target.h (struct target_ops)
10425 <to_supports_enable_disable_tracepoint>: Use
10426 TARGET_DEFAULT_RETURN.
10428 2014-02-19 Tom Tromey <tromey@redhat.com>
10430 * target-delegates.c: Rebuild.
10431 * target.c (update_current_target): Don't inherit or default
10432 to_supports_multi_process.
10433 * target.h (struct target_ops) <to_supports_multi_process>: Use
10434 TARGET_DEFAULT_RETURN.
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10438 * target-delegates.c: Rebuild.
10439 * target.c (update_current_target): Don't inherit or default
10440 to_get_ada_task_ptid.
10441 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10442 TARGET_DEFAULT_FUNC.
10444 2014-02-19 Tom Tromey <tromey@redhat.com>
10446 * target-delegates.c: Rebuild.
10447 * target.c (update_current_target): Don't inherit or default
10448 to_thread_architecture.
10449 * target.h (struct target_ops) <to_thread_architecture>: Use
10450 TARGET_DEFAULT_FUNC.
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10454 * target-delegates.c: Rebuild.
10455 * target.c (update_current_target): Don't inherit or default
10456 to_execution_direction.
10457 * target.h (struct target_ops) <to_execution_direction>: Use
10458 TARGET_DEFAULT_FUNC.
10460 2014-02-19 Tom Tromey <tromey@redhat.com>
10462 * target-delegates.c: Rebuild.
10463 * target.c (update_current_target): Don't inherit or default
10464 to_can_execute_reverse.
10465 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10466 TARGET_DEFAULT_RETURN.
10467 (target_can_execute_reverse): Unconditionally delegate.
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10471 * target-delegates.c: Rebuild.
10472 * target.c (update_current_target): Don't inherit or default
10474 (dummy_goto_bookmark): Remove.
10475 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10476 * target.h (struct target_ops) <to_goto_bookmark>: Use
10477 TARGET_DEFAULT_NORETURN.
10479 2014-02-19 Tom Tromey <tromey@redhat.com>
10481 * target-delegates.c: Rebuild.
10482 * target.c (update_current_target): Don't inherit or default
10484 (dummy_get_bookmark): Remove.
10485 (init_dummy_target): Don't inherit or default to_get_bookmark.
10486 * target.h (struct target_ops) <to_get_bookmark>: Use
10487 TARGET_DEFAULT_NORETURN
10489 2014-02-19 Tom Tromey <tromey@redhat.com>
10491 * target-delegates.c: Rebuild.
10492 * target.c (update_current_target): Don't inherit or default
10493 to_make_corefile_notes.
10494 (init_dummy_target): Don't initialize to_make_corefile_notes.
10495 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10496 TARGET_DEFAULT_FUNC.
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10500 * target-delegates.c: Rebuild.
10501 * target.c (update_current_target): Don't inherit or default
10502 to_find_memory_regions.
10503 (init_dummy_target): Don't initialize to_find_memory_regions.
10504 * target.h (struct target_ops) <to_find_memory_regions>: Use
10505 TARGET_DEFAULT_FUNC.
10507 2014-02-19 Tom Tromey <tromey@redhat.com>
10509 * target-delegates.c: Rebuild.
10510 * target.c (update_current_target): Don't inherit or default
10512 * target.h (struct target_ops) <to_log_command>: Use
10513 TARGET_DEFAULT_IGNORE.
10514 (target_log_command): Unconditionally delegate.
10516 2014-02-19 Tom Tromey <tromey@redhat.com>
10518 * target-delegates.c: Rebuild.
10519 * target.c (update_current_target): Don't inherit or default
10520 to_pid_to_exec_file.
10521 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10522 TARGET_DEFAULT_RETURN.
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10526 * target-delegates.c: Rebuild.
10527 * target.c (update_current_target): Don't inherit or default
10529 (target_thread_name): Unconditionally delegate.
10530 * target.h (struct target_ops) <to_thread_name>: Use
10531 TARGET_DEFAULT_RETURN.
10533 2014-02-19 Tom Tromey <tromey@redhat.com>
10535 * target-delegates.c: Rebuild.
10536 * target.c (update_current_target): Don't inherit or default
10537 to_extra_thread_info.
10538 * target.h (struct target_ops) <to_extra_thread_info>: Use
10539 TARGET_DEFAULT_RETURN.
10541 2014-02-19 Tom Tromey <tromey@redhat.com>
10543 * target-delegates.c: Rebuild.
10544 * target.c (update_current_target): Don't inherit or default
10546 * target.h (struct target_ops) <to_has_exited>: Use
10547 TARGET_DEFAULT_RETURN..
10549 2014-02-19 Tom Tromey <tromey@redhat.com>
10551 * target-delegates.c: Rebuild.
10552 * target.c (update_current_target): Don't inherit or default
10553 to_set_syscall_catchpoint.
10554 (return_one): Remove.
10555 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10556 TARGET_DEFAULT_RETURN.
10558 2014-02-19 Tom Tromey <tromey@redhat.com>
10560 * target-delegates.c: Rebuild.
10561 * target.c (update_current_target): Don't inherit or default
10562 to_insert_exec_catchpoint.
10563 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10564 TARGET_DEFAULT_RETURN.
10566 2014-01-08 Tom Tromey <tromey@redhat.com>
10568 * target-delegates.c: Rebuild.
10569 * target.c (update_current_target): Don't inherit or default
10570 to_insert_exec_catchpoint.
10571 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10572 TARGET_DEFAULT_RETURN.
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10576 * target-delegates.c: Rebuild.
10577 * target.c (update_current_target): Don't inherit or default
10578 to_remove_vfork_catchpoint.
10579 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10580 TARGET_DEFAULT_RETURN.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target-delegates.c: Rebuild.
10585 * target.c (update_current_target): Don't inherit or default
10586 to_insert_vfork_catchpoint.
10587 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10588 TARGET_DEFAULT_RETURN.
10590 2014-02-19 Tom Tromey <tromey@redhat.com>
10592 * target-delegates.c: Rebuild.
10593 * target.c (update_current_target): Don't inherit or default
10594 to_remove_fork_catchpoint.
10595 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10596 TARGET_DEFAULT_RETURN.
10598 2014-02-19 Tom Tromey <tromey@redhat.com>
10600 * target-delegates.c: Rebuild.
10601 * target.c (update_current_target): Don't inherit or default
10602 to_insert_fork_catchpoint.
10603 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10604 TARGET_DEFAULT_RETURN.
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10608 * target-delegates.c: Rebuild.
10609 * target.c (update_current_target): Don't inherit or default
10610 to_post_startup_inferior.
10611 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10612 TARGET_DEFAULT_IGNORE.
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10616 * target-delegates.c: Rebuild.
10617 * target.c (update_current_target): Don't inherit or default
10619 * target.h (struct target_ops) <to_load>: Use
10620 TARGET_DEFAULT_NORETURN.
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10624 * target-delegates.c: Rebuild.
10625 * target.c (update_current_target): Don't inherit or default
10627 * target.h (struct target_ops) <to_terminal_info>: Use
10628 TARGET_DEFAULT_FUNC.
10630 2014-02-19 Tom Tromey <tromey@redhat.com>
10632 * target-delegates.c: Rebuild.
10633 * target.c (update_current_target): Don't inherit or default
10634 to_terminal_save_ours.
10635 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10636 TARGET_DEFAULT_IGNORE.
10638 2014-02-19 Tom Tromey <tromey@redhat.com>
10640 * target-delegates.c: Rebuild.
10641 * target.c (update_current_target): Don't inherit or default
10643 * target.h (struct target_ops) <to_terminal_ours>: Use
10644 TARGET_DEFAULT_IGNORE.
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10648 * target-delegates.c: Rebuild.
10649 * target.c (update_current_target): Don't inherit or default
10650 to_terminal_ours_for_output.
10651 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10652 TARGET_DEFAULT_IGNORE.
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10656 * target-delegates.c: Rebuild.
10657 * target.c (update_current_target): Don't inherit or default
10658 to_terminal_inferior.
10659 * target.h (struct target_ops) <to_terminal_inferior>: Use
10660 TARGET_DEFAULT_IGNORE.
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10664 * target-delegates.c: Rebuild.
10665 * target.c (update_current_target): Don't inherit or default
10667 * target.h (struct target_ops) <to_terminal_init>: Use
10668 TARGET_DEFAULT_IGNORE.
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10672 * target-delegates.c: Rebuild.
10673 * target.c (update_current_target): Don't inherit or default
10674 to_can_accel_watchpoint_condition.
10675 * target.h (struct target_ops)
10676 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10680 * target-delegates.c: Rebuild.
10681 * target.c (update_current_target): Don't inherit or default
10682 to_region_ok_for_hw_watchpoint.
10683 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10684 Use TARGET_DEFAULT_FUNC.
10686 2014-02-19 Tom Tromey <tromey@redhat.com>
10688 * target-delegates.c: Rebuild.
10689 * target.c (update_current_target): Don't inherit or default
10690 to_watchpoint_addr_within_range.
10691 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10692 Use TARGET_DEFAULT_FUNC.
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10696 * target-delegates.c: Rebuild.
10697 * target.c (update_current_target): Don't inherit or default
10698 to_remove_watchpoint.
10699 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10700 TARGET_DEFAULT_NORETURN.
10702 2014-02-19 Tom Tromey <tromey@redhat.com>
10704 * target-delegates.c: Rebuild.
10705 * target.c (update_current_target): Don't inherit or default
10706 to_insert_watchpoint.
10707 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10708 TARGET_DEFAULT_RETURN.
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10712 * target-delegates.c: Rebuild.
10713 * target.c (update_current_target): Don't inherit or default
10714 to_remove_hw_breakpoint.
10715 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10716 TARGET_DEFAULT_RETURN.
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10720 * target-delegates.c: Rebuild.
10721 * target.c (update_current_target): Don't inherit or default
10722 to_insert_hw_breakpoint.
10723 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10724 TARGET_DEFAULT_RETURN.
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10728 * target-delegates.c: Rebuild.
10729 * target.c (update_current_target): Don't inherit or default
10730 to_can_use_hw_breakpoint.
10731 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10732 TARGET_DEFAULT_RETURN.
10734 2014-02-19 Tom Tromey <tromey@redhat.com>
10736 * target-delegates.c: Rebuild.
10737 * target.c (update_current_target): Don't inherit or default
10739 * target.h (struct target_ops) <to_files_info>: Use
10740 TARGET_DEFAULT_IGNORE.
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10744 * target-delegates.c: Rebuild.
10745 * target.c (update_current_target): Don't inherit or default
10747 * target.h (struct target_ops) <to_store>: Use
10748 TARGET_DEFAULT_NORETURN.
10750 2014-02-19 Tom Tromey <tromey@redhat.com>
10752 * target-delegates.c: Rebuild.
10753 * target.c (update_current_target): Don't inherit or default
10755 * target.h (struct target_ops) <to_post_attach>: Use
10756 TARGET_DEFAULT_IGNORE.
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10760 * target-delegates.c: Rebuild.
10761 * target.c (update_current_target): Don't inherit or default
10763 (default_rcmd): New function.
10764 (do_monitor_command): Unconditionally delegate.
10765 * target.h (struct target_ops) <to_rmcd>: Use
10766 TARGET_DEFAULT_FUNC.
10768 2014-02-19 Tom Tromey <tromey@redhat.com>
10770 * target-delegates.c: Rebuild.
10771 * target.c (init_dummy_target): Don't initialize to_attach.
10772 (target_attach): Unconditionally delegate.
10773 * target.h (struct target_ops) <to_attach>: Use
10774 TARGET_DEFAULT_FUNC.
10776 2014-02-19 Tom Tromey <tromey@redhat.com>
10778 * target-delegates.c: Rebuild.
10779 * target.c (target_detach): Unconditionally delegate.
10780 (init_dummy_target): Don't initialize to_detach.
10781 * target.h (struct target_ops) <to_detach>: Use
10782 TARGET_DEFAULT_IGNORE.
10784 2014-02-19 Tom Tromey <tromey@redhat.com>
10786 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10788 (target_augmented_libraries_svr4_read): Add argument.
10789 * target.c (update_current_target): Update.
10790 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10793 2014-02-19 Tom Tromey <tromey@redhat.com>
10795 * target.h (struct target_ops) <to_call_history_range>: Add
10797 * target.c (target_call_history_range): Add argument.
10798 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10800 (record_btrace_call_history_from): Update.
10802 2014-02-19 Tom Tromey <tromey@redhat.com>
10804 * target.h (struct target_ops) <to_call_history_from>: Add
10806 * target.c (target_call_history_from): Add argument.
10807 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10812 * target.h (struct target_ops) <to_call_history>: Add argument.
10813 * target.c (target_call_history): Add argument.
10814 * record-btrace.c (record_btrace_call_history): Add 'self'
10817 2014-02-19 Tom Tromey <tromey@redhat.com>
10819 * target.h (struct target_ops) <to_insn_history_range>: Add
10821 * target.c (target_insn_history_range): Add argument.
10822 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10824 (record_btrace_insn_history_from): Update.
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target.h (struct target_ops) <to_insn_history_from>: Add
10830 * target.c (target_insn_history_from): Add argument.
10831 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * target.h (struct target_ops) <to_insn_history>: Add argument.
10837 * target.c (target_insn_history): Add argument.
10838 * record-btrace.c (record_btrace_insn_history): Add 'self'
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10843 * target.h (struct target_ops) <to_goto_record>: Add argument.
10844 * target.c (target_goto_record): Add argument.
10845 * record-full.c (record_full_goto): Add 'self' argument.
10846 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10850 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10851 * target.c (target_goto_record_end): Add argument.
10852 * record-full.c (record_full_goto_end): Add 'self' argument.
10853 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10855 2014-02-19 Tom Tromey <tromey@redhat.com>
10857 * target.h (struct target_ops) <to_goto_record_begin>: Add
10859 * target.c (target_goto_record_begin): Add argument.
10860 * record-full.c (record_full_goto_begin): Add 'self' argument.
10861 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10864 2014-02-19 Tom Tromey <tromey@redhat.com>
10866 * target.h (struct target_ops) <to_record_is_replaying>: Add
10868 * target.c (target_record_is_replaying): Add argument.
10869 * record-full.c (record_full_is_replaying): Add 'self' argument.
10870 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10872 (record_btrace_xfer_partial, record_btrace_store_registers)
10873 (record_btrace_prepare_to_store, record_btrace_resume)
10874 (record_btrace_wait, record_btrace_decr_pc_after_break)
10875 (record_btrace_find_new_threads, record_btrace_thread_alive):
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10880 * target.h (struct target_ops) <to_delete_record>: Add argument.
10881 * target.c (target_delete_record): Add argument.
10882 * record-full.c (record_full_delete): Add 'self' argument.
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10886 * target.h (struct target_ops) <to_save_record>: Add argument.
10887 * target.c (target_save_record): Add argument.
10888 * record-full.c (record_full_save): Add 'self' argument.
10889 (record_full_save): Add 'self' argument.
10891 2014-02-19 Tom Tromey <tromey@redhat.com>
10893 * target.h (struct target_ops) <to_info_record>: Add argument.
10894 * target.c (target_info_record): Add argument.
10895 * record.c (info_record_command): Add argument.
10896 * record-full.c (record_full_info): Add 'self' argument.
10897 * record-btrace.c (record_btrace_info): Add 'self' argument.
10899 2014-02-19 Tom Tromey <tromey@redhat.com>
10901 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10902 * target.c (target_stop_recording): Add argument.
10903 * record.c (record_stop): Add argument.
10904 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10907 2014-02-19 Tom Tromey <tromey@redhat.com>
10909 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10910 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10911 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10913 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10914 (_initialize_amd64_linux_nat): Use it.
10915 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10916 (_initialize_i386_linux_nat): Use it.
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10920 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10921 * target.c (target_teardown_btrace): Add argument.
10922 * remote.c (remote_teardown_btrace): Add 'self' argument.
10923 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10925 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10930 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10931 * target.c (target_disable_btrace): Add argument.
10932 * remote.c (remote_disable_btrace): Add 'self' argument.
10933 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10935 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10938 2014-02-19 Tom Tromey <tromey@redhat.com>
10940 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10941 * target.c (target_enable_btrace): Add argument.
10942 * remote.c (remote_enable_btrace): Add 'self' argument.
10943 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10945 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10950 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10951 (target_can_use_agent): Add argument.
10952 * target.c (update_current_target): Update.
10953 * remote.c (remote_can_use_agent): Add 'self' argument.
10954 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10958 * target.h (struct target_ops) <to_use_agent>: Add argument.
10959 (target_use_agent): Add argument.
10960 * target.c (update_current_target): Update.
10961 * remote.c (remote_use_agent): Add 'self' argument.
10962 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10964 2014-02-19 Tom Tromey <tromey@redhat.com>
10966 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10967 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10968 (target_traceframe_info): Add argument.
10969 * target.c (update_current_target): Update.
10970 * remote.c (remote_traceframe_info): Add 'self' argument.
10971 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10973 2014-02-19 Tom Tromey <tromey@redhat.com>
10975 * target.h (target_static_tracepoint_markers_by_strid): Add
10977 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10979 * target.c (update_current_target): Update.
10980 * remote.c (struct target_ops)
10981 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10982 * linux-nat.c (struct target_ops)
10983 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10985 2014-02-19 Tom Tromey <tromey@redhat.com>
10987 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10989 (target_static_tracepoint_marker_at): Add argument.
10990 * target.c (update_current_target): Update.
10991 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10994 2014-02-19 Tom Tromey <tromey@redhat.com>
10996 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10997 (target_set_permissions): Add argument.
10998 * target.c (update_current_target): Update.
10999 * remote.c (remote_set_permissions): Add 'self' argument.
11000 (remote_start_remote): Update.
11002 2014-02-19 Tom Tromey <tromey@redhat.com>
11004 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11005 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11006 (target_get_tib_address): Add argument.
11007 * target.c (update_current_target): Update.
11008 * remote.c (remote_get_tib_address): Add 'self' argument.
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11012 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11013 (target_set_trace_notes): Add argument.
11014 * target.c (update_current_target): Update.
11015 * remote.c (remote_set_trace_notes): Add 'self' argument.
11017 2014-02-19 Tom Tromey <tromey@redhat.com>
11019 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11021 (target_set_trace_buffer_size): Add argument.
11022 * target.c (update_current_target): Update.
11023 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11025 2014-02-19 Tom Tromey <tromey@redhat.com>
11027 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11029 (target_set_circular_trace_buffer): Add argument.
11030 * target.c (update_current_target): Update.
11031 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11038 (target_set_disconnected_tracing): Add argument.
11039 * target.c (update_current_target): Update.
11040 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11042 2014-02-19 Tom Tromey <tromey@redhat.com>
11044 * target.h (struct target_ops)
11045 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11046 (target_get_min_fast_tracepoint_insn_len): Add argument.
11047 * target.c (update_current_target): Update.
11048 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11053 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11055 (target_get_raw_trace_data): Add argument.
11056 * target.c (update_current_target): Update.
11057 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11061 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11063 (target_upload_trace_state_variables): Add argument.
11064 * target.c (update_current_target): Update.
11065 * remote.c (remote_upload_trace_state_variables): Add 'self'
11067 (remote_start_remote): Update.
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11071 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11073 (target_upload_tracepoints): Add argument.
11074 * target.c (update_current_target): Update.
11075 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11076 (remote_start_remote): Update.
11078 2014-02-19 Tom Tromey <tromey@redhat.com>
11080 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11081 (target_save_trace_data): Add argument.
11082 * target.c (update_current_target): Update.
11083 * remote.c (remote_save_trace_data): Add 'self' argument.
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11087 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11089 * target.h (struct target_ops)
11090 <to_get_trace_state_variable_value>: Add argument.
11091 (target_get_trace_state_variable_value): Add argument.
11092 * target.c (update_current_target): Update.
11093 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11095 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11097 2014-02-19 Tom Tromey <tromey@redhat.com>
11099 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11100 * target.h (struct target_ops) <to_trace_find>: Add argument.
11101 (target_trace_find): Add argument.
11102 * target.c (update_current_target): Update.
11103 * remote.c (remote_trace_find): Add 'self' argument.
11104 * ctf.c (ctf_trace_find): Add 'self' argument.
11106 2014-02-19 Tom Tromey <tromey@redhat.com>
11108 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11109 (target_trace_stop): Add argument.
11110 * target.c (update_current_target): Update.
11111 * remote.c (remote_trace_stop): Add 'self' argument.
11113 2014-02-19 Tom Tromey <tromey@redhat.com>
11115 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11116 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11118 (target_get_tracepoint_status): Add argument.
11119 * target.c (update_current_target): Update.
11120 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11124 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11125 * target.h (struct target_ops) <to_get_trace_status>: Add
11127 (target_get_trace_status): Add argument.
11128 * target.c (update_current_target): Update.
11129 * remote.c (remote_get_trace_status): Add 'self' argument.
11130 (remote_start_remote, remote_can_download_tracepoint): Update.
11131 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11135 * target.h (struct target_ops) <to_trace_start>: Add argument.
11136 (target_trace_start): Add argument.
11137 * target.c (update_current_target): Update.
11138 * remote.c (remote_trace_start): Add 'self' argument.
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11142 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11144 (target_trace_set_readonly_regions): Add argument.
11145 * target.c (update_current_target): Update.
11146 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11151 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11153 (target_disable_tracepoint): Add argument.
11154 * target.c (update_current_target): Update.
11155 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11161 (target_enable_tracepoint): Add argument.
11162 * target.c (update_current_target): Update.
11163 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11167 * target.h (struct target_ops) <to_download_trace_state_variable>:
11169 (target_download_trace_state_variable): Add argument.
11170 * target.c (update_current_target): Update.
11171 * remote.c (remote_download_trace_state_variable): Add 'self'
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11176 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11178 (target_can_download_tracepoint): Add argument.
11179 * target.c (update_current_target): Update.
11180 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11184 * target.h (struct target_ops) <to_download_tracepoint>: Add
11186 (target_download_tracepoint): Add argument.
11187 * target.c (update_current_target): Update.
11188 * remote.c (remote_download_tracepoint): Add 'self' argument.
11190 2014-02-19 Tom Tromey <tromey@redhat.com>
11192 * target.h (struct target_ops) <to_trace_init>: Add argument.
11193 (target_trace_init): Add argument.
11194 * target.c (update_current_target): Update.
11195 * remote.c (remote_trace_init): Add 'self' argument.
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11199 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11200 * target.c (target_fileio_readlink): Add argument.
11201 * remote.c (remote_hostio_readlink): Add 'self' argument.
11202 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11204 2014-02-19 Tom Tromey <tromey@redhat.com>
11206 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11207 * target.c (target_fileio_unlink): Add argument.
11208 * remote.c (remote_hostio_unlink): Add 'self' argument.
11209 (remote_file_delete): Update.
11210 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11212 2014-02-19 Tom Tromey <tromey@redhat.com>
11214 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11215 * target.c (target_fileio_close): Add argument.
11216 * remote.c (remote_hostio_close): Add 'self' argument.
11217 (remote_hostio_close_cleanup): Update.
11218 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11220 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11224 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11225 * target.c (target_fileio_pread): Add argument.
11226 * remote.c (remote_hostio_pread): Add 'self' argument.
11227 (remote_bfd_iovec_pread, remote_file_get): Update.
11228 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11232 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11233 * target.c (target_fileio_pwrite): Add argument.
11234 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11235 (remote_file_put): Update.
11236 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11241 * target.c (target_fileio_open): Add argument.
11242 * remote.c (remote_hostio_open): Add 'self' argument.
11243 (remote_bfd_iovec_open): Add 'self' argument.
11244 (remote_file_put): Add 'self' argument.
11245 (remote_file_get): Add 'self' argument.
11246 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11248 2014-02-19 Tom Tromey <tromey@redhat.com>
11250 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11252 (target_can_run_breakpoint_commands): Add argument.
11253 * target.c (update_current_target): Update.
11254 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11256 (remote_insert_breakpoint): Add 'self' argument.
11257 (remote_insert_hw_breakpoint): Add 'self' argument.
11258 (remote_can_run_breakpoint_commands): Add 'self' argument.
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11262 * target.h (struct target_ops)
11263 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11264 (target_supports_evaluation_of_breakpoint_conditions): Add
11266 * target.c (update_current_target): Update.
11267 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11269 (remote_insert_breakpoint): Add 'self' argument.
11270 (remote_insert_hw_breakpoint): Add 'self' argument.
11271 (remote_supports_cond_breakpoints): Add 'self' argument.
11273 2014-02-19 Tom Tromey <tromey@redhat.com>
11275 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11277 (target_supports_string_tracing): Add argument.
11278 * target.c (update_current_target): Update.
11279 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11283 * target.h (struct target_ops)
11284 <to_supports_disable_randomization>: Add argument.
11285 * target.c (find_default_supports_disable_randomization): Add
11287 (target_supports_disable_randomization): Add argument.
11288 (find_default_supports_disable_randomization): Add 'self'
11290 * remote.c (extended_remote_supports_disable_randomization): Add
11292 (remote_supports_disable_randomization): Add 'self' argument.
11293 (extended_remote_create_inferior): Update.
11294 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11297 2014-02-19 Tom Tromey <tromey@redhat.com>
11299 * target.h (struct target_ops)
11300 <to_supports_enable_disable_tracepoint>: Add argument.
11301 (target_supports_enable_disable_tracepoint): Add argument.
11302 * target.c (update_current_target): Update.
11303 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11308 * target.h (struct target_ops) <to_supports_multi_process>: Add
11310 (target_supports_multi_process): Add argument.
11311 * target.c (update_current_target): Update.
11312 * remote.c (remote_supports_multi_process): Add 'self' argument.
11313 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11315 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11318 2014-02-19 Tom Tromey <tromey@redhat.com>
11320 * target.h (struct target_ops) <to_execution_direction>: Add
11322 (target_execution_direction): Add argument.
11323 * target.c (default_execution_direction): Add 'self' argument.
11324 * record-full.c (record_full_execution_direction): Add 'self'
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11329 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11331 (target_can_execute_reverse): Add argument.
11332 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11333 * record-full.c (record_full_can_execute_reverse): Add 'self'
11335 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11340 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11341 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11343 (target_get_ada_task_ptid): Add argument.
11344 * target.c (update_current_target): Update.
11345 (default_get_ada_task_ptid): Add 'self' argument.
11346 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11347 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11348 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11350 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11352 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11354 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11356 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11357 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11362 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11363 (target_goto_bookmark): Add argument.
11364 * target.c (dummy_goto_bookmark): Add 'self' argument.
11365 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11369 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11370 (target_get_bookmark): Add argument.
11371 * target.c (dummy_get_bookmark): Add 'self' argument.
11372 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11374 2014-02-19 Tom Tromey <tromey@redhat.com>
11376 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11378 (target_make_corefile_notes): Add argument.
11379 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11380 * procfs.c (procfs_make_note_section): Add 'self' argument.
11381 (procfs_make_note_section): Add 'self' argument.
11382 (procfs_make_note_section): Add 'self' argument.
11383 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11385 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11386 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11387 * exec.c (exec_make_note_section): Add 'self' argument.
11388 (exec_make_note_section): Add 'self' argument.
11390 2014-02-19 Tom Tromey <tromey@redhat.com>
11392 * target.h (struct target_ops) <to_find_memory_regions>: Add
11394 (target_find_memory_regions): Add argument.
11395 * target.c (dummy_find_memory_regions): Add 'self' argument.
11396 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11397 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11398 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11399 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11400 * exec. (exec_do_find_memory_regions): New global.
11401 (exec_set_find_memory_regions): Rewrite.
11402 (exec_find_memory_regions): New function.
11403 (init_exec_ops): Use exec_find_memory_regions.
11405 2014-02-19 Tom Tromey <tromey@redhat.com>
11407 * target.h (struct target_ops) <to_supports_non_stop>: Add
11409 * target.c (find_default_supports_non_stop): Add argument.
11410 (target_supports_non_stop): Add argument.
11411 (find_default_supports_non_stop): Add 'self' argument.
11412 * remote.c (remote_supports_non_stop): Add 'self' argument.
11413 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11415 2014-02-19 Tom Tromey <tromey@redhat.com>
11417 * target.h (struct target_ops) <to_log_command>: Add argument.
11418 (target_log_command): Add argument.
11419 * serial.h (serial_log_command): Add 'self' argument.
11420 * serial.c (serial_log_command): Add 'self' argument.
11422 2014-02-19 Tom Tromey <tromey@redhat.com>
11424 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11425 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11427 (target_pid_to_exec_file): Add argument.
11428 * target.c (debug_to_pid_to_exec_file): Add argument.
11429 (update_current_target): Update.
11430 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11431 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11432 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11433 (linux_handle_extended_wait): Update.
11434 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11435 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11436 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11437 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * target.h (struct target_ops) <to_rcmd>: Add argument.
11442 (target_rcmd): Add argument.
11443 * target.c (debug_to_rcmd): Add argument.
11444 (update_current_target, do_monitor_command): Update.
11445 * remote.c (remote_rcmd): Add 'self' argument.
11446 * monitor.c (monitor_rcmd): Add 'self' argument.
11448 2014-02-19 Tom Tromey <tromey@redhat.com>
11450 * windows-nat.c (windows_stop): Add 'self' argument.
11451 * target.h (struct target_ops) <to_stop>: Add argument.
11452 * target.c (target_stop): Add argument.
11453 (debug_to_stop): Add argument.
11454 (update_current_target): Update.
11455 * remote.c (remote_stop): Add 'self' argument.
11456 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11457 (gdbsim_cntrl_c): Update.
11458 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11459 * procfs.c (procfs_stop): Add 'self' argument.
11460 * nto-procfs.c (procfs_stop): Add 'self' argument.
11461 * monitor.c (monitor_stop): Add 'self' argument.
11462 (monitor_open): Update.
11463 * linux-nat.c (linux_nat_stop): Add argument.
11464 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11465 * gnu-nat.c (gnu_stop): Add 'self' argument.
11466 * darwin-nat.c (darwin_stop): Add 'self' argument.
11468 2014-02-19 Tom Tromey <tromey@redhat.com>
11470 * target.h (struct target_ops) <to_thread_name>: Add argument.
11471 * target.c (target_thread_name): Add argument.
11472 (update_current_target): Update.
11473 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11477 * target.h (struct target_ops) <to_extra_thread_info>: Add
11479 (target_extra_thread_info): Add argument.
11480 * target.c (update_current_target): Update.
11481 * remote.c (remote_threads_extra_info): Add 'self' argument.
11482 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11484 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11485 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11486 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11488 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11490 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11492 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11495 2014-02-19 Tom Tromey <tromey@redhat.com>
11497 * target.h (struct target_ops) <to_program_signals>: Add argument.
11498 * target.c (target_program_signals): Add argument.
11499 * remote.c (remote_program_signals): Add 'self' argument.
11501 2014-02-19 Tom Tromey <tromey@redhat.com>
11503 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11504 * target.c (target_pass_signals): Add argument.
11505 * remote.c (remote_pass_signals): Add 'self' argument.
11506 (remote_start_remote): Update.
11507 * procfs.c (procfs_pass_signals): Add 'self' argument.
11508 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11509 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11510 (linux_nat_create_inferior, linux_nat_attach): Update.
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11514 * windows-nat.c (windows_can_run): Add 'self' argument.
11515 * target.h (struct target_ops) <to_can_run>: Add argument.
11516 (target_can_run): Add argument.
11517 * target.c (debug_to_can_run): Add argument.
11518 (update_current_target): Update.
11519 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11520 * inf-child.c (inf_child_can_run): Add 'self' argument.
11521 * go32-nat.c (go32_can_run): Add 'self' argument.
11523 2014-02-19 Tom Tromey <tromey@redhat.com>
11525 * target.h (struct target_ops) <to_has_exited>: Add argument.
11526 (target_has_exited): Add argument.
11527 * target.c (debug_to_has_exited): Add argument.
11528 (update_current_target): Update.
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11532 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11534 (target_set_syscall_catchpoint): Add argument.
11535 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11537 * target.c (update_current_target): Update.
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11541 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11543 (target_remove_exec_catchpoint): Add argument.
11544 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11545 (update_current_target): Update.
11546 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11549 2014-02-19 Tom Tromey <tromey@redhat.com>
11551 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11553 (target_insert_exec_catchpoint): Add argument.
11554 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11555 (update_current_target): Update.
11556 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11559 2014-02-19 Tom Tromey <tromey@redhat.com>
11561 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11563 (target_remove_vfork_catchpoint): Add argument.
11564 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11565 (update_current_target): Update.
11566 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11571 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11573 (target_insert_vfork_catchpoint): Add argument.
11574 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11575 (update_current_target): Update.
11576 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11581 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11583 (target_remove_fork_catchpoint): Add argument.
11584 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11585 (update_current_target): Update.
11586 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11589 2014-02-19 Tom Tromey <tromey@redhat.com>
11591 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11593 (target_insert_fork_catchpoint): Add argument.
11594 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11595 (update_current_target): Update.
11596 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11599 2014-02-19 Tom Tromey <tromey@redhat.com>
11601 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11603 (target_post_startup_inferior): Add argument.
11604 * target.c (debug_to_post_startup_inferior): Add argument.
11605 (update_current_target): Update.
11606 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11608 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11610 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11612 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11614 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11616 (super_post_startup_inferior): Likewise.
11617 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11619 (super_post_startup_inferior): Likewise.
11620 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11621 Add 'self' argument.
11622 (super_post_startup_inferior): Likewise.
11624 2014-02-19 Tom Tromey <tromey@redhat.com>
11626 * target.h (struct target_ops) <to_load>: Add argument.
11627 * target.c (target_load): Add argument.
11628 (debug_to_load): Add argument.
11629 (update_current_target): Update.
11630 * remote.c (remote_load): Add 'self' argument.
11631 * remote-sim.c (gdbsim_load): Add 'self' argument.
11632 * remote-mips.c (mips_load): Add 'self' argument.
11633 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11634 * monitor.c (monitor_load): Add 'self' argument.
11635 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11637 2014-02-19 Tom Tromey <tromey@redhat.com>
11639 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11640 (target_terminal_info): Add argument.
11641 * target.c (debug_to_terminal_info): Add argument.
11642 (default_terminal_info): Likewise.
11643 * inflow.c (child_terminal_info): Add 'self' argument.
11644 * inferior.h (child_terminal_info): Add 'self' argument.
11645 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11647 2014-02-19 Tom Tromey <tromey@redhat.com>
11649 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11651 (target_terminal_save_ours): Add argument.
11652 * target.c (debug_to_terminal_save_ours): Add argument.
11653 (update_current_target): Update.
11654 * inflow.c (terminal_save_ours): Add 'self' argument.
11655 * inferior.h (terminal_save_ours): Add 'self' argument.
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11659 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11660 (target_terminal_ours): Add argument.
11661 * target.c (debug_to_terminal_ours): Add argument.
11662 (update_current_target): Update.
11663 * remote.c (remote_terminal_ours): Add 'self' argument.
11664 (remote_close): Update.
11665 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11666 * inflow.c (terminal_ours): Add 'self' argument.
11667 * inferior.h (terminal_ours): Add 'self' argument.
11668 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11670 2014-02-19 Pedro Alves <palves@redhat.com>
11671 Tom Tromey <tromey@redhat.com>
11673 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11675 (target_terminal_ours_for_output): Add argument.
11676 * target.c (debug_to_terminal_ours_for_output): Add argument.
11677 (update_current_target): Update.
11678 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11679 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11680 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11684 * target.h (struct target_ops) <to_terminal_inferior>: Add
11686 * target.c (target_terminal_inferior): Add argument.
11687 (update_current_target): Update.
11688 * remote.c (remote_terminal_inferior): Add 'self' argument.
11689 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11690 * inflow.c (terminal_inferior): Add 'self' argument.
11691 * inferior.h (terminal_inferior): Add 'self' argument.
11692 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11693 (go32_terminal_inferior): Add 'self' argument.
11695 2014-02-19 Tom Tromey <tromey@redhat.com>
11697 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11698 (target_terminal_init): Add argument.
11699 * target.c (debug_to_terminal_init): Add argument.
11700 (update_current_target): Update.
11701 * inflow.c (terminal_init_inferior): Add 'self' argument.
11702 * inferior.h (terminal_init_inferior): Add 'self' argument.
11703 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11704 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11706 2014-02-19 Tom Tromey <tromey@redhat.com>
11708 * target.h (struct target_ops)
11709 <to_can_accel_watchpoint_condition>: Add argument.
11710 (target_can_accel_watchpoint_condition): Add argument.
11711 * target.c (debug_to_can_accel_watchpoint_condition): Add
11713 (update_current_target): Update.
11714 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11717 2014-02-19 Tom Tromey <tromey@redhat.com>
11719 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11721 (target_region_ok_for_hw_watchpoint): Add argument.
11722 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11723 (default_region_ok_for_hw_watchpoint): Add argument.
11724 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11725 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11727 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11729 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11731 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11733 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11735 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11737 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11738 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11740 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11741 Add 'self' argument.
11743 2014-02-19 Tom Tromey <tromey@redhat.com>
11745 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11747 (target_insert_watchpoint): Add argument.
11748 * target.c (debug_to_insert_watchpoint): Add argument.
11749 (update_current_target): Update.
11750 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11751 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11752 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11753 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11754 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11755 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11757 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11758 (procfs_insert_hw_watchpoint): Add 'self' argument.
11759 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11761 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11763 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11765 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11766 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11768 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11771 2014-02-19 Tom Tromey <tromey@redhat.com>
11773 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11775 (target_remove_watchpoint): Add argument.
11776 * target.c (debug_to_remove_watchpoint): Add argument.
11777 (update_current_target): Update.
11778 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11779 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11780 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11781 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11782 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11783 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11785 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11786 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11788 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11790 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11792 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11793 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11795 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11798 2014-02-19 Tom Tromey <tromey@redhat.com>
11800 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11802 (target_remove_hw_breakpoint): Add argument.
11803 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11804 (update_current_target): Update.
11805 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11806 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11808 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11809 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11811 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11816 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11818 (target_insert_hw_breakpoint): Add argument.
11819 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11820 (update_current_target): Update.
11821 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11822 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11824 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11825 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11826 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11828 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11831 2014-02-19 Tom Tromey <tromey@redhat.com>
11833 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11835 (target_can_use_hardware_watchpoint): Add argument.
11836 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11837 (update_current_target): Update.
11838 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11840 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11842 * remote.c (remote_check_watch_resources): Add 'self' argument.
11843 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11844 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11846 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11847 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11849 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11851 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11853 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11855 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11857 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11859 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11860 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11862 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11865 2014-02-19 Tom Tromey <tromey@redhat.com>
11867 * target.h (struct target_ops) <to_post_attach>: Add argument.
11868 (target_post_attach): Add argument.
11869 * target.c (debug_to_post_attach): Add argument.
11870 (update_current_target): Update.
11871 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11872 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11873 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11874 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11875 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11877 2014-02-19 Tom Tromey <tromey@redhat.com>
11879 * windows-nat.c (windows_close): Add 'self' argument.
11880 * tracepoint.c (tfile_close): Add 'self' argument.
11881 * target.h (struct target_ops) <to_close>: Add argument.
11882 * target.c (target_close): Add argument.
11883 (update_current_target): Update.
11884 * remote.c (remote_close): Add 'self' argument.
11885 * remote-sim.c (gdbsim_close): Add 'self' argument.
11886 * remote-mips.c (mips_close): Add 'self' argument.
11887 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11888 * record-full.c (record_full_close): Add 'self' argument.
11889 * record-btrace.c (record_btrace_close): Add 'self' argument.
11890 * monitor.h (monitor_close): Add 'self' argument.
11891 * monitor.c (monitor_close): Add 'self' argument.
11892 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11893 * linux-nat.c (linux_nat_close): Add argument.
11894 * go32-nat.c (go32_close): Add 'self' argument.
11895 * exec.c (exec_close_1): Add 'self' argument.
11896 * ctf.c (ctf_close): Add 'self' argument.
11897 * corelow.c (core_close): Add 'self' argument.
11898 (core_close_cleanup): Update.
11899 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11900 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11902 2014-02-19 Tom Tromey <tromey@redhat.com>
11904 * remote.c (remote_load): New function.
11905 (init_remote_ops): Use it.
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11909 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11911 * common/linux-btrace.h (linux_supports_btrace): Update.
11912 * remote.c (remote_supports_btrace): Add "self" argument.
11913 * target-delegates.c: Rebuild.
11914 * target.c (target_supports_btrace): Remove.
11915 * target.h (struct target_ops) <to_supports_btrace>: Add
11916 target_ops argument.
11917 (target_supports_btrace): New define.
11919 2014-02-19 Tom Tromey <tromey@redhat.com>
11921 * record-full.c (record_full_beneath_to_resume_ops)
11922 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11923 (record_full_beneath_to_wait)
11924 (record_full_beneath_to_store_registers_ops)
11925 (record_full_beneath_to_store_registers)
11926 (record_full_beneath_to_xfer_partial_ops)
11927 (record_full_beneath_to_xfer_partial)
11928 (record_full_beneath_to_insert_breakpoint_ops)
11929 (record_full_beneath_to_insert_breakpoint)
11930 (record_full_beneath_to_remove_breakpoint_ops)
11931 (record_full_beneath_to_remove_breakpoint)
11932 (record_full_beneath_to_stopped_by_watchpoint)
11933 (record_full_beneath_to_stopped_data_address)
11934 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11935 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11936 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11937 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11938 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11939 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11940 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11941 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11942 (record_full_resume, record_full_wait_1)
11943 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11944 (record_full_store_registers, record_full_xfer_partial)
11945 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11946 (record_full_async, record_full_core_xfer_partial): Use target
11948 * target-delegates.c: Rebuild.
11949 * target.c (current_xfer_partial): Remove.
11950 (update_current_target): Do not INHERIT or de_fault
11951 to_insert_breakpoint, to_remove_breakpoint,
11952 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11953 to_is_async_p, to_async. Do not set to_xfer_partial field.
11954 (default_xfer_partial): Simplify.
11955 (current_xfer_partial): Remove.
11956 (target_wait, target_resume): Simplify.
11957 (find_default_can_async_p, find_default_is_async_p): Update.
11958 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11959 to_xfer_partial, to_stopped_by_watchpoint,
11960 to_stopped_data_address.
11961 (target_store_registers): Simplify.
11962 (forward_target_remove_breakpoint)
11963 (forward_target_insert_breakpoint): Remove.
11964 (target_remove_breakpoint, target_insert_breakpoint)
11965 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11966 * target.h (struct target_ops) <to_resume, to_wait,
11967 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11968 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11969 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11971 (forward_target_remove_breakpoint)
11972 (forward_target_insert_breakpoint): Remove.
11973 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11975 (record_btrace_insert_breakpoint): Delegate directly.
11977 2014-02-19 Tom Tromey <tromey@redhat.com>
11980 * target-delegates.c: New file.
11981 * target.c: Include target-delegates.c.
11982 (init_dummy_target): Call install_dummy_methods.
11983 (complete_target_initialization): Call install_delegators.
11984 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11985 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11986 * make-target-delegates: New file.
11988 2014-02-19 Tom Tromey <tromey@redhat.com>
11990 * record.c (find_record_target): Use find_target_at.
11991 * target.c (find_target_at): New function.
11992 * target.h (find_target_at): Declare.
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11996 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11997 Add 'ops' argument.
11998 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12000 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12001 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12003 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12005 * linux-nat.c (save_sigtrap): Update.
12006 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12007 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12008 (linux_nat_close): Update.
12009 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12011 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12013 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12014 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12015 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12016 (tmp_to_async): Add 'ops' argument.
12017 (record_full_stopped_by_watchpoint, record_full_async)
12018 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12020 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12021 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12022 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12023 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12024 (remote_is_async_p, remote_async): Add 'ops' argument.
12025 (remote_stopped_data_address): Update.
12026 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12027 * target.c (update_current_target)
12028 (find_default_can_async_p, find_default_is_async_p): Update.
12029 (init_dummy_target): Update.
12030 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12031 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12032 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12033 (target_can_async_p, target_is_async_p, target_async)
12034 (target_stopped_by_watchpoint): Update.
12036 2014-02-19 Yao Qi <yao@codesourcery.com>
12039 * gdbarch.sh: Remove startup_gdbarch.
12040 * gdbarch.c: Regenerated.
12041 * gdbarch.h: Likewise.
12043 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12045 * rl78-tdep.c (rl78_g10_register_name): New function.
12046 (rl78_return_value): Add g10 support.
12047 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12050 2014-02-17 Doug Evans <xdje42@gmail.com>
12052 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12053 (SUBDIR_GUILE_SRCS): Ditto.
12054 (scm-gsmob.o): Ditto.
12056 2014-02-17 Yao Qi <yao@codesourcery.com>
12058 * gnu-nat.c (ILL_RPC): Declare defined function.
12060 2014-02-17 Yao Qi <yao@codesourcery.com>
12062 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12063 mach_msg_type_number_t.
12064 (gnu_write_inferior): Likewise.
12066 2014-02-17 Yao Qi <yao@codesourcery.com>
12068 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12070 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12071 (inf_validate_procs, inf_signal): Likewise.
12072 (S_exception_raise_request): Likewise.
12073 (do_mach_notify_dead_name): Likewise.
12074 (steal_exc_port): Likewise.
12075 (gnu_read_inferior): Change 'copy_count''s type to
12076 mach_msg_type_number_t.
12077 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12080 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12082 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12083 flag. Adjust all users; in particular...
12084 (gnu_wait): ..., don't decrement its value in here...
12085 (gnu_create_inferior): ..., and instead set the flag in here,
12086 around the startup_inferior call, and call that one with
12087 START_INFERIOR_TRAPS_EXPECTED.
12089 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12090 (ILL_RPC): ... new macro.
12091 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12092 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12093 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12094 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12095 functions with ILL_RPC macro.
12096 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12097 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12098 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12099 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12100 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12101 (S_proc_getlogin_reply, S_proc_getsid_reply)
12102 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12103 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12104 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12105 (S_proc_getnports_reply, S_proc_is_important_reply)
12106 (S_proc_get_code_reply): New stub functions, generated with
12109 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12110 collected the type check structures.
12112 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12114 2014-02-14 Doug Evans <dje@google.com>
12116 * target.c (target_write_partial): Fix result type.
12118 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12120 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12121 the proper offsets to access fpregset_t.
12123 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12125 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12126 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12127 * h8300-tdep.c (setmachinelist): Remove global.
12128 * hppa-tdep.c (hppa_sigtramp): Remove global.
12129 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12130 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12131 * ravenscar-thread.c (update_target_observer): Remove global.
12132 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12134 2014-02-12 Tom Tromey <tromey@redhat.com>
12136 * common/rsp-low.c: Update comments.
12137 * common/rsp-low.h: Update comments.
12139 2014-02-12 Tom Tromey <tromey@redhat.com>
12141 * common/rsp-low.c (convert_ascii_to_int): Remove.
12142 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12144 2014-02-12 Tom Tromey <tromey@redhat.com>
12146 * common/rsp-low.h (unhexify): Don't declare.
12147 * common/rsp-low.c (unhexify): Remove.
12149 2014-02-12 Tom Tromey <tromey@redhat.com>
12151 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12152 * common/rsp-low.c (convert_int_to_ascii): Remove.
12154 2014-02-12 Tom Tromey <tromey@redhat.com>
12156 * common/rsp-low.h (hexify): Don't declare.
12157 * common/rsp-low.c (hexify): Remove.
12159 2014-02-12 Tom Tromey <tromey@redhat.com>
12161 * common/rsp-low.c (hexify): Never take strlen of argument.
12163 2014-02-12 Tom Tromey <tromey@redhat.com>
12165 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12166 * remote.c (extended_remote_run, remote_rcmd)
12167 (remote_download_trace_state_variable, remote_save_trace_data)
12168 (remote_set_trace_notes): Update.
12169 * tracepoint.c (encode_source_string, tfile_write_status)
12170 (tfile_write_uploaded_tsv): Update.
12172 2014-02-12 Tom Tromey <tromey@redhat.com>
12174 * tracepoint.c: Include rsp-low.h.
12175 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12176 * remote.c: Include rsp-low.h.
12177 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12178 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12179 (remote_unescape_input): Move to common/rsp-low.c.
12180 * common/rsp-low.h: New file.
12181 * common/rsp-low.c: New file.
12182 * Makefile.in (SFILES): Add common/rsp-low.c.
12183 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12184 (COMMON_OBS): Add rsp-low.o.
12185 (rsp-low.o): New target.
12187 2014-02-12 Tom Tromey <tromey@redhat.com>
12189 * utils.h: Include print-utils.h.
12190 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12191 (int_string, core_addr_to_string, core_addr_to_string_nz)
12192 (hex_string, hex_string_custom): Don't declare.
12193 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12194 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12195 (hex_string_custom, int_string, core_addr_to_string)
12196 (core_addr_to_string_nz, host_address_to_string): Move to
12197 common/print-utils.c.
12198 * common/print-utils.h: New file.
12199 * common/print-utils.c: New file
12200 * Makefile.in (SFILES): Add common/print-utils.c.
12201 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12202 (COMMON_OBS): Add print-utils.o.
12203 (print-utils.o): New target.
12205 2014-02-12 Tom Tromey <tromey@redhat.com>
12207 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12209 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12211 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12213 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12215 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12216 if a PT_IO ptrace request returns sucessfully but indicates that 0
12217 bytes were transferred.
12219 2014-02-12 Pedro Alves <palves@redhat.com>
12220 Kevin Buettner <kevinb@redhat.com>
12222 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12223 TYPE_INSTANCE_FLAG_CODE_SPACE.
12225 2014-02-12 Pedro Alves <palves@redhat.com>
12227 * h8300-tdep.c (pseudo_from_raw_register)
12228 (raw_from_pseudo_register): New functions.
12229 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12232 2014-02-12 Pedro Alves <palves@redhat.com>
12234 * h8300-tdep.c (h8300_register_sim_regno): New function.
12235 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12236 gdbarch_register_sim_regno hook.
12238 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12240 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12242 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12244 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12246 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12248 * obsd-tdep.h (obsd_init_abi): New prototype.
12249 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12250 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12251 (obsd_init_abi): New functions.
12252 * i386obsd-tdep.c: Include "obsd-tdep.h".
12253 (i386obsd_init_abi): Call obsd_init_abi.
12254 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12255 (amd64obsd_init_abi): Call obsd_init_abi.
12256 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12257 obsd-tdep.c to gdb_target_obs.
12259 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12261 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12262 double float arguments to 16-byte in the argument slots.
12264 2014-02-11 Doug Evans <xdje42@gmail.com>
12266 * configure.ac: Don't crash if pkg-config is not found and guile
12267 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12269 * configure: Regenerate.
12271 2014-02-11 Yao Qi <yao@codesourcery.com>
12273 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12274 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12275 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12276 * gnu-nat.c (gnu_xfer_memory): Likewise.
12277 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12278 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12279 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12280 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12282 2014-02-11 Yao Qi <yao@codesourcery.com>
12284 * target.h (enum target_xfer_error): Rename to ...
12285 (enum target_xfer_status): ... it. New. All users updated.
12286 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12288 (TARGET_XFER_STATUS_ERROR_P): New macro.
12289 (target_xfer_error_to_string): Remove declaration.
12290 (target_xfer_status_to_string): Declare.
12291 (target_xfer_partial_ftype): Adjust it.
12292 (struct target_ops) <to_xfer_partial>: Return
12293 target_xfer_status. Add argument xfered_len. Update
12295 * target.c (target_xfer_error_to_string): Rename to ...
12296 (target_xfer_status_to_string): ... it. New. All callers
12298 (target_read_live_memory): Likewise. Call target_xfer_partial
12299 instead of target_read.
12300 (memory_xfer_live_readonly_partial): Return
12301 target_xfer_status. Add argument xfered_len.
12302 (raw_memory_xfer_partial): Likewise.
12303 (memory_xfer_partial_1): Likewise.
12304 (memory_xfer_partial): Likewise.
12305 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12306 properly. Update debug message.
12307 (default_xfer_partial, current_xfer_partial): Likewise.
12308 (target_write_partial): Likewise.
12309 (target_read_partial): Likewise. All callers updated.
12310 (read_whatever_is_readable): Likewise.
12311 (target_write_with_progress): Likewise.
12312 (target_read_alloc_1): Likewise.
12314 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12315 * auxv.c (procfs_xfer_auxv): Likewise.
12316 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12317 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12318 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12319 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12320 * corefile.c (read_memory): Adjust.
12321 * corelow.c (core_xfer_partial): Likewise.
12322 * ctf.c (ctf_xfer_partial): Likewise.
12323 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12325 (darwin_xfer_partial): Likewise.
12326 * exec.c (section_table_xfer_memory_partial): Likewise. All
12328 (exec_xfer_partial): Likewise.
12329 * exec.h (section_table_xfer_memory_partial): Update
12331 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12333 (gnu_xfer_partial): Likewise.
12334 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12335 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12336 (ia64_hpux_xfer_solib_got): Likewise.
12337 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12338 type of 'partial_len' to ULONGEST.
12339 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12340 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12341 (linux_nat_xfer_partial): Likewise.
12342 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12343 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12344 * monitor.c (monitor_xfer_memory): Likewise.
12345 (monitor_xfer_partial): Likewise.
12346 * procfs.c (procfs_xfer_partial): Likewise.
12347 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12348 * record-full.c (record_full_xfer_partial): Likewise.
12349 (record_full_core_xfer_partial): Likewise.
12350 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12351 (gdbsim_xfer_partial): Likewise.
12352 * remote.c (remote_write_bytes_aux): Likewise. All callers
12354 (remote_write_bytes, remote_read_bytes): Likewise. All
12356 (remote_flash_erase): Likewise. All callers updated.
12357 (remote_write_qxfer): Likewise. All callers updated.
12358 (remote_read_qxfer): Likewise. All callers updated.
12359 (remote_xfer_partial): Likewise.
12360 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12361 (rs6000_xfer_shared_libraries): Likewise.
12362 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12363 (sol_thread_xfer_partial): Likewise.
12364 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12365 (sparc_xfer_partial): Likewise.
12366 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12368 (spu_xfer_partial): Likewise.
12369 * spu-multiarch.c (spu_xfer_partial): Likewise.
12370 * tracepoint.c (tfile_xfer_partial): Likewise.
12371 * windows-nat.c (windows_xfer_memory): Likewise.
12372 (windows_xfer_shared_libraries): Likewise.
12373 (windows_xfer_partial): Likewise.
12374 * valprint.c: Replace 'target_xfer_error' with
12375 'target_xfer_status' in comments.
12377 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12379 Checked in by Joel Brobecker <brobecker@adacore.com>.
12380 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12382 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12384 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12385 function parameters.
12387 2014-02-10 Will Newton <will.newton@linaro.org>
12389 * elfread.c (elf_rel_plt_read): Look for a .got section if
12390 looking up .got.plt fails.
12391 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12392 on address passed to elf_gnu_ifunc_record_cache.
12393 (elf_gnu_ifunc_resolve_addr): Likewise.
12394 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12396 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12398 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12399 (X_RETTURN): New macro.
12400 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12402 * sparc64-tdep.c (sparc64_init_abi): Hook
12403 sparc_in_function_epilogue_p.
12405 2014-02-10 Gary Benson <gbenson@redhat.com>
12407 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12408 Rename name_matcher to symbol_matcher.
12410 2014-02-10 Gary Benson <gbenson@redhat.com>
12412 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12413 Use expand_symtabs_file_matcher_ftype and
12414 expand_symtabs_symbol_matcher_ftype.
12416 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12418 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12419 (struct ada_symbol_cache): New.
12420 (ada_free_symbol_cache): Forward declare.
12421 (struct ada_pspace_data): New.
12422 (ada_pspace_data_handle): New static global.
12423 (get_ada_pspace_data, ada_pspace_data_cleanup)
12424 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12425 (cache_space, cache): Delete, now folded inside struct
12427 (ada_get_symbol_cache): New function.
12428 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12430 (_initialize_ada_language): Remove initialization of cache_space.
12431 Move call to observer_attach_inferior_exit up, grouping it
12432 with the other observer registrations inside this function.
12433 Rename command to be more general. Add call to
12434 register_program_space_data_with_cleanup.
12436 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12438 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12439 ada_new_objfile_observer.
12440 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12441 (_initialize_tasks): Update uses of ada_new_objfile_observer
12442 and ada_tasks_normal_stop_observer.
12444 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12446 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12447 returned by the 'Length attribute to integer.
12449 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12451 * ada-lang.c (_initialize_ada_language): Initialize
12452 cache_space obstack.
12454 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12456 * ada-lang.c (HASH_SIZE): New macro.
12457 (struct cache_entry): New type.
12458 (cache_space, cache): New static globals.
12459 (ada_clear_symbol_cache, find_entry): New functions.
12460 (lookup_cached_symbol, cache_symbol): Implement.
12461 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12462 (_initialize_ada_language): Attach ada_new_objfile_observer
12463 and ada_free_objfile_observer.
12465 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12467 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12468 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12469 struct block * parameter.
12470 (ada_lookup_symbol_list_worker): Constify local variable "block".
12471 Remove cast which is no longer necessary.
12473 2014-02-10 Doug Evans <xdje42@gmail.com>
12475 Add Guile as an extension language.
12476 * NEWS: Mention Guile scripting.
12477 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12478 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12479 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12480 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12481 (CLIBS): Add GUILE_LIBS.
12482 (install-guile): New rule.
12483 (guile.o): New rule.
12484 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12485 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12486 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12487 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12488 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12489 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12490 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12491 * configure.ac: New option --with-guile.
12492 * configure: Regenerate.
12493 * config.in: Regenerate.
12494 * auto-load.c: Remove #include "python/python.h". Add #include
12495 "gdb/section-scripts.h".
12496 (source_section_scripts): Handle Guile scripts.
12497 (_initialize_auto_load): Add name of Guile objfile script to
12498 scripts-directory help text.
12499 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12500 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12501 (struct breakpoint): New member scm_bp_object.
12502 * defs.h (enum command_control_type): New value guile_control.
12503 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12505 (show_user): Update comment.
12506 (_initialize_cli_cmds): Update help text for "show user". Update help
12507 text for max-user-call-depth.
12508 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12510 (multi_line_command_p): Add guile_control.
12511 (print_command_lines): Handle guile_control.
12512 (execute_control_command, recurse_read_control_structure): Ditto.
12513 (process_next_line): Recognize "guile" commands.
12514 * disasm.c (gdb_disassemble_info): Make non-static.
12515 * disasm.h: #include "dis-asm.h".
12516 (struct gdbarch): Add forward decl.
12517 (gdb_disassemble_info): Declare.
12518 * extension.c: #include "guile/guile.h".
12519 (extension_languages): Add guile.
12520 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12521 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12522 * gdbtypes.c (get_unsigned_type_max): New function.
12523 (get_signed_type_minmax): New function.
12524 * gdbtypes.h (get_unsigned_type_max): Declare.
12525 (get_signed_type_minmax): Declare.
12526 * guile/README: New file.
12527 * guile/guile-internal.h: New file.
12528 * guile/guile.c: New file.
12529 * guile/guile.h: New file.
12530 * guile/scm-arch.c: New file.
12531 * guile/scm-auto-load.c: New file.
12532 * guile/scm-block.c: New file.
12533 * guile/scm-breakpoint.c: New file.
12534 * guile/scm-disasm.c: New file.
12535 * guile/scm-exception.c: New file.
12536 * guile/scm-frame.c: New file.
12537 * guile/scm-gsmob.c: New file.
12538 * guile/scm-iterator.c: New file.
12539 * guile/scm-lazy-string.c: New file.
12540 * guile/scm-math.c: New file.
12541 * guile/scm-objfile.c: New file.
12542 * guile/scm-ports.c: New file.
12543 * guile/scm-pretty-print.c: New file.
12544 * guile/scm-safe-call.c: New file.
12545 * guile/scm-string.c: New file.
12546 * guile/scm-symbol.c: New file.
12547 * guile/scm-symtab.c: New file.
12548 * guile/scm-type.c: New file.
12549 * guile/scm-utils.c: New file.
12550 * guile/scm-value.c: New file.
12551 * guile/lib/gdb.scm: New file.
12552 * guile/lib/gdb/boot.scm: New file.
12553 * guile/lib/gdb/experimental.scm: New file.
12554 * guile/lib/gdb/init.scm: New file.
12555 * guile/lib/gdb/iterator.scm: New file.
12556 * guile/lib/gdb/printing.scm: New file.
12557 * guile/lib/gdb/types.scm: New file.
12558 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12559 (VPATH): Add $(GUILE_SRCDIR).
12560 (GUILE_DIR): New variable.
12561 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12562 (all): Add stamp-guile dependency.
12563 (stamp-guile): New rule.
12564 (clean-guile, install-guile, uninstall-guile): New rules.
12565 (install-only): Add install-guile dependency.
12566 (uninstall): Add uninstall-guile dependency.
12567 (clean): Add clean-guile dependency.
12569 2014-02-09 Doug Evans <xdje42@gmail.com>
12571 Revert this patch (which I approved, mea culpa).
12573 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12575 * Makefile.in (all-lib): Remove.
12576 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12578 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12580 Fix Python stack corruption.
12581 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
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-07 Doug Evans <dje@google.com>
12591 * extension-priv.h (extension_language_script_ops): Add comment.
12592 (extension_language_ops): Add comment.
12593 (active_ext_lang_state): Fix typo in comment.
12595 2014-02-07 Pedro Alves <palves@redhat.com>
12597 PR breakpoints/16292
12598 * infrun.c (handle_signal_stop) <signal arrives while stepping
12599 over a breakpoint>: Switch back to the stepping thread.
12601 2014-02-07 Yao Qi <yao@codesourcery.com>
12603 * target.c (target_xfer_partial): Return zero if LEN is zero.
12605 2014-02-07 Yao Qi <yao@codesourcery.com>
12607 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12608 (ld_so_xfer_auxv): Likewise.
12609 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12610 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12611 * corelow.c (core_xfer_partial): Likewise.
12612 * ctf.c (ctf_xfer_partial): Likewise.
12613 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12614 (darwin_xfer_partial): Likewise.
12615 * exec.c (exec_xfer_partial): Likewise.
12616 * gnu-nat.c (gnu_xfer_partial): Likewise.
12617 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12618 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12619 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12620 * linux-nat.c (linux_xfer_siginfo): Likewise.
12621 (linux_proc_xfer_spu): Likewise.
12622 * procfs.c (procfs_xfer_partial): Likewise.
12623 * record-full.c (record_full_xfer_partial): Likewise.
12624 (record_full_core_xfer_partial): Likewise.
12625 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12626 * remote.c (remote_write_qxfer): Likewise.
12627 (remote_write_qxfer, remote_read_qxfer): Likewise.
12628 (remote_xfer_partial): Likewise.
12629 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12630 (rs6000_xfer_shared_libraries): Likewise.
12631 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12632 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12633 (spu_xfer_partial): Likewise.
12634 * target.c (memory_xfer_partial_1): Likewise.
12635 * tracepoint.c (tfile_xfer_partial): Likewise.
12636 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12637 (windows_xfer_partial): Likewise.
12639 2014-02-07 Yao Qi <yao@codesourcery.com>
12641 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12643 (core_xfer_shared_libraries_aix): Likewise.
12644 * gdbarch.c, gdbarch.h: Regenerated.
12645 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12646 ULONGEST. Change 'len_avail' type to ULONGEST.
12647 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12648 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12650 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12652 2014-02-07 Yao Qi <yao@codesourcery.com>
12654 * corefile.c (memory_error): Get 'exception' from ERR and pass
12655 'exception' to throw_error.
12657 2014-02-06 Doug Evans <xdje42@gmail.com>
12659 * configure.ac (libpython checking): Remove all but python.o from
12660 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12661 * configure: Regenerate.
12663 * Makefile.in (SFILES): Add extension.c.
12664 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12665 (COMMON_OBS): Add extension.o.
12666 * extension.h: New file.
12667 * extension-priv.h: New file.
12668 * extension.c: New file.
12670 * python/python-internal.h: #include "extension.h".
12671 (gdbpy_auto_load_enabled): Declare.
12672 (gdbpy_apply_val_pretty_printer): Declare.
12673 (gdbpy_apply_frame_filter): Declare.
12674 (gdbpy_preserve_values): Declare.
12675 (gdbpy_breakpoint_cond_says_stop): Declare.
12676 (gdbpy_breakpoint_has_cond): Declare.
12677 (void source_python_script_for_objfile): Delete.
12678 * python/python.c: #include "extension-priv.h".
12679 Delete inclusion of "observer.h".
12680 (extension_language_python): Moved here and renamed from
12681 script_language_python in py-auto-load.c.
12682 Redefined to be of type extension_language_defn.
12683 (python_extension_script_ops): New global.
12684 (python_extension_ops): New global.
12685 (struct python_env): New member previous_active.
12686 (restore_python_env): Call restore_active_ext_lang.
12687 (ensure_python_env): Call set_active_ext_lang.
12688 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12690 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12692 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12694 (gdbpy_eval_from_control_command): Renamed from
12695 eval_python_from_control_command, made static. New arg extlang.
12696 (gdbpy_source_script) Renamed from source_python_script, made static.
12698 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12699 result to int. New arg extlang.
12700 (gdbpy_source_objfile_script): Renamed from
12701 source_python_script_for_objfile, made static. New arg extlang.
12702 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12703 static. New args extlang, extlang_printers. Change result type to
12705 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12706 static. New arg extlang. Rename arg printers to extlang_printers
12707 and change type to ext_lang_type_printers *.
12708 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12709 static. Replace argument arg with extlang, extlang_printers.
12710 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12711 (!HAVE_PYTHON, source_python_script): Delete.
12712 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12713 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12714 (!HAVE_PYTHON, start_type_printers): Delete.
12715 (!HAVE_PYTHON, apply_type_printers): Delete.
12716 (!HAVE_PYTHON, free_type_printers): Delete.
12717 (_initialize_python): Delete call to observer_attach_before_prompt.
12718 (finalize_python): Set/restore active extension language.
12719 (gdbpy_finish_initialization) Renamed from
12720 finish_python_initialization, made static. New arg extlang.
12721 (gdbpy_initialized): New function.
12722 * python/python.h: #include "extension.h". Delete #include
12723 "value.h", "mi/mi-cmds.h".
12724 (extension_language_python): Declare.
12725 (GDBPY_AUTO_FILE_NAME): Delete.
12726 (enum py_bt_status): Moved to extension.h and renamed to
12727 ext_lang_bt_status.
12728 (enum frame_filter_flags): Moved to extension.h.
12729 (enum py_frame_args): Moved to extension.h and renamed to
12730 ext_lang_frame_args.
12731 (finish_python_initialization): Delete.
12732 (eval_python_from_control_command): Delete.
12733 (source_python_script): Delete.
12734 (apply_val_pretty_printer): Delete.
12735 (apply_frame_filter): Delete.
12736 (preserve_python_values): Delete.
12737 (gdbpy_script_language_defn): Delete.
12738 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12739 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12741 * auto-load.c: #include "extension.h".
12742 (GDB_AUTO_FILE_NAME): Delete.
12743 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12744 (script_language_gdb): Delete, moved to extension.c and renamed to
12745 extension_language_gdb.
12746 (source_gdb_script_for_objfile): Delete.
12747 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12748 (loaded_script): Change type of language member to
12749 struct extension_language_defn *.
12750 (init_loaded_scripts_info): Initialize
12751 unsupported_script_warning_printed.
12752 (maybe_add_script): Make static. Change type of language arg to
12753 struct extension_language_defn *.
12754 (clear_section_scripts): Reset unsupported_script_warning_printed.
12755 (auto_load_objfile_script_1): Rewrite to use extension language API.
12756 (auto_load_objfile_script): Make public. Remove support-compiled-in
12757 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12758 (source_section_scripts): Rewrite to use extension language API.
12759 (load_auto_scripts_for_objfile): Rewrite to use
12760 auto_load_scripts_for_objfile.
12761 (collect_matching_scripts_data): Change type of language member to
12762 struct extension_language_defn *.
12763 (auto_load_info_scripts): Change type of language arg to
12764 struct extension_language_defn *.
12765 (unsupported_script_warning_print): New function.
12766 (script_not_found_warning_print): Make static.
12767 (_initialize_auto_load): Rewrite construction of scripts-directory
12769 * auto-load.h (struct objfile): Add forward decl.
12770 (struct script_language): Delete.
12771 (struct auto_load_pspace_info): Add forward decl.
12772 (struct extension_language_defn): Add forward decl.
12773 (maybe_add_script): Delete.
12774 (auto_load_objfile_script): Declare.
12775 (script_not_found_warning_print): Delete.
12776 (auto_load_info_scripts): Update prototype.
12777 (auto_load_gdb_scripts_enabled): Declare.
12778 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12779 auto_load_python_scripts_enabled and made public.
12780 (script_language_python): Delete, moved to python.c.
12781 (gdbpy_script_language_defn): Delete.
12782 (info_auto_load_python_scripts): Update to use
12783 extension_language_python.
12785 * breakpoint.c (condition_command): Replace call to
12786 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12787 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12788 with call to breakpoint_ext_lang_cond_says_stop.
12789 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12790 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12791 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12792 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12794 (local_setattro): Print name of extension language with existing
12797 * valprint.c (val_print, value_print): Update to call
12798 apply_ext_lang_val_pretty_printer.
12799 * cp-valprint.c (cp_print_value): Update call to
12800 apply_ext_lang_val_pretty_printer.
12801 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12802 (gdbpy_apply_val_pretty_printer): Renamed from
12803 apply_val_pretty_printer. New arg extlang.
12804 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12806 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12807 extension language API.
12808 * cli/cli-script.c (execute_control_command): Update to call
12809 eval_ext_lang_from_control_command.
12811 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12812 enum ext_lang_bt_status values. Update call to
12813 apply_ext_lang_frame_filter.
12814 (mi_cmd_stack_list_locals): Ditto.
12815 (mi_cmd_stack_list_args): Ditto.
12816 (mi_cmd_stack_list_variables): Ditto.
12817 * mi/mi-main.c: Delete #include "python/python-internal.h".
12818 Add #include "extension.h".
12819 (mi_cmd_list_features): Replace reference to python internal variable
12820 gdb_python_initialized with call to ext_lang_initialized_p.
12822 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12823 Update to use enum ext_lang_frame_args. Update to call
12824 apply_ext_lang_frame_filter.
12825 * python/py-framefilter.c (extract_sym): Update to use enum
12826 ext_lang_bt_status.
12827 (extract_value, py_print_type, py_print_value): Ditto.
12828 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12829 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12830 (py_print_frame): Ditto.
12831 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12832 New arg extlang. Update to use enum ext_lang_bt_status.
12834 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12835 finish_python_initialization. Replace with call to
12836 finish_ext_lang_initialization.
12838 * typeprint.c (do_free_global_table): Update to call
12839 free_ext_lang_type_printers.
12840 (create_global_typedef_table): Update to call
12841 start_ext_lang_type_printers.
12842 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12843 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12844 (type_print_options): Change type of global_printers from "void *"
12845 to "struct ext_lang_type_printers *".
12847 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12848 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12849 (gdbpy_preserve_values): Renamed from preserve_python_values.
12851 (!HAVE_PYTHON, preserve_python_values): Delete.
12853 * utils.c (quit_flag): Delete, moved to extension.c.
12854 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12857 * eval.c: Delete #include "python/python.h".
12858 * main.c: Delete #include "python/python.h".
12860 * defs.h: Update comment.
12862 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12866 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12868 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12871 2014-02-05 Yao Qi <yao@codesourcery.com>
12873 * remote.c (remote_pass_signals): Remove local 'buf' and use
12875 (remote_program_signals): Likewise.
12877 2014-02-05 Yao Qi <yao@codesourcery.com>
12879 * ctf.c: Include "inferior.h" and "gdbthread.h".
12880 (CTF_PID): A new macro.
12881 (ctf_open): Call inferior_appeared and add_thread_silent.
12882 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12883 (ctf_thread_alive): New function.
12884 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12886 2014-02-05 Yao Qi <yao@codesourcery.com>
12890 2013-05-24 Yao Qi <yao@codesourcery.com>
12892 * tracepoint.c (TFILE_PID): Remove.
12893 (tfile_open): Don't add thread and inferior.
12894 (tfile_close): Don't set 'inferior_ptid'. Don't call
12895 exit_inferior_silent.
12896 (tfile_thread_alive): Remove.
12897 (init_tfile_ops): Don't set field 'to_thread_alive' of
12900 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12902 * remote.c (remote_start_remote): Call remote_check_symbols even
12903 if only symbol-file (not file) has been given.
12905 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12907 * gdbarch.sh (skip_entrypoint): New callback.
12908 * gdbarch.c, gdbarch.h: Regenerate.
12909 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12910 * infrun.c (fill_in_stop_func): Likewise.
12911 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12912 (ppc_elfv2_elf_make_msymbol_special): New function.
12913 (ppc_elfv2_skip_entrypoint): Likewise.
12914 (ppc_linux_init_abi): Install them for ELFv2.
12916 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12918 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12919 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12920 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12921 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12922 structures returned in GPRs.
12924 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12926 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12927 offset to the stack parameter list for the ELFv2 ABI.
12929 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12931 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12932 set_gdbarch_convert_from_func_ptr_addr and
12933 set_gdbarch_elf_make_msymbol_special for ELFv1.
12934 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12935 function descriptors on ELFv1.
12936 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12937 set up r12 at function entry.
12939 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12941 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12942 (struct gdbarch_tdep): New member elf_abi.
12944 * rs6000-tdep.c: Include "elf/ppc64.h".
12945 (rs6000_gdbarch_init): Detect ELF ABI version.
12947 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12949 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12950 within a register pair holding a DFP 128-bit value on little-endian.
12951 (ppc64_sysv_abi_return_value_base): Likewise.
12952 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12953 (dfp_pseudo_register_write): Likewise.
12955 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12957 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12958 offset on little-endian when passing _Decimal32.
12959 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12961 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12963 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12964 of the overlapped FP register within the VSX register on little-
12966 (efpr_pseudo_register_write): Likewise.
12968 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12970 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12971 offset on little-endian when passing small structures.
12973 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12975 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12976 (struct ppc64_sysv_argpos): New data structure.
12977 (ppc64_sysv_abi_push_float): Remove.
12978 (ppc64_sysv_abi_push_val): New function.
12979 (ppc64_sysv_abi_push_integer): Likewise.
12980 (ppc64_sysv_abi_push_freg): Likewise.
12981 (ppc64_sysv_abi_push_vreg): Likewise.
12982 (ppc64_sysv_abi_push_param): Likewise.
12983 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12984 (ppc64_sysv_abi_return_value_base): New function.
12985 (ppc64_sysv_abi_return_value): Refactor to use it.
12987 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12989 * NEWS: Document new target powerpc64le-*-linux*.
12991 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12993 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12994 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12996 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12997 register set used in ELF core dumps. Add floating-point register set.
12999 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13001 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13002 dwarf2_to_gdb[] table using symbolic constants. Adjust
13003 penultimate entry from number representing the PC register
13004 to symbolic constant representing the MDR register. Add
13005 constant for the PC register to the end of the table.
13007 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13009 * bsd-kvm.c: Include <sys/param.h>
13011 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13013 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13015 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13017 * ada-lang.h (clear_ada_sym_cache): Delete.
13019 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13021 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13023 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13025 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13026 the sigreturn register save area only if the syscall is
13029 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13031 * valops.c (value_slice): Minor reformatting.
13033 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13035 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13037 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13039 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13040 New static globals.
13041 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13042 (ada_ignore_descriptive_types_p): New static global.
13043 (find_parallel_type_by_descriptive_type): Return immediately
13044 if ada_ignore_descriptive_types_p is set.
13045 (_initialize_ada_language): Register new commands "maintenance
13046 set ada", "maintenance show ada", "maintenance set ada
13047 ignore-descriptive-types" and "maintenance show ada
13048 ignore-descriptive-types".
13049 * NEWS: Add entry for new "maint ada set/show
13050 ignore-descriptive-types" commands.
13052 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13054 * record-btrace.c (record_btrace_close): Call btrace_teardown
13057 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13059 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13062 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13064 * ada-typeprint (type_is_full_subrange_of_target_type):
13066 (print_range): Add parameter bounds_prefered_p. If not set,
13067 try printing range types using the name of their base type.
13068 (print_range_type): Add parameter bounds_prefered_p.
13069 Use it in call to print_range.
13070 (print_array_type, ada_print_type): Update calls to print_range
13071 and print_range_type.
13073 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13075 * ada-typeprint.c (print_array_type, print_choices, print_range)
13076 (print_range_bound, print_dynamic_range_bound, print_range_type):
13077 Remove declaration.
13079 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13081 * ada-typeprint.c (print_range): Add missing empty line
13082 after local declaration.
13084 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13086 * ada-valprint.c (print_optional_low_bound): Get index_type's
13087 target type for as long as it is a TYPE_CODE_RANGE.
13089 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13091 * procfs.c (procfs_make_note_section): Remove assertion and
13092 associated comment.
13094 2014-01-24 Yao Qi <yao@codesourcery.com>
13096 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13097 * corelow.c (get_core_siginfo): Likewise.
13099 2014-01-24 Yao Qi <yao@codesourcery.com>
13101 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13102 ULONGEST. Don't check 'len' is negative.
13103 (remote_write_bytes): Change type of 'len' to ULONGEST.
13105 2014-01-23 Tom Tromey <tromey@redhat.com>
13108 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13109 Handle exception from frame.block.
13110 (FrameVars.fetch_frame_locals): Likewise.
13112 2014-01-23 Tom Tromey <tromey@redhat.com>
13115 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13116 on a NULL pointer. Move "goto error" to correct place.
13118 2014-01-23 Tom Tromey <tromey@redhat.com>
13121 * python/py-framefilter.c (apply_frame_filter): Call
13122 ensure_python_env after computing gdbarch.
13124 2014-01-23 Yao Qi <yao@codesourcery.com>
13126 * target.c (raw_memory_xfer_partial): Change argument type
13127 from void * to gdb_byte *.
13128 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13130 2014-01-22 Doug Evans <dje@google.com>
13132 New gdbserver option --debug-format=timestamp.
13133 * NEWS: Mention it.
13135 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13137 * syscalls/s390x-linux.xml: New file.
13138 * syscalls/s390-linux.xml: New file.
13139 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13140 (XML_SYSCALL_FILENAME_S390X): Likewise.
13141 (op_svc): New enum value for SVC opcode.
13142 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13143 (s390_linux_get_syscall_number): New function.
13144 (s390_gdbarch_init): Register '*get_syscall_number' and the
13145 syscall xml file name.
13146 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13147 "s390-linux.xml" and "s390x-linux.xml".
13148 * NEWS: Announce new feature.
13150 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13152 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13154 2014-01-22 Pedro Alves <palves@redhat.com>
13156 * xtensa-config.c: Include defs.h.
13158 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13160 * common/common-utils.h: Add "ARI:" comment beside __func__
13163 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13165 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13166 documentation a bit.
13168 2014-01-21 Roland McGrath <mcgrathr@google.com>
13170 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13171 * configure: Regenerate.
13172 * aclocal.m4: Regenerate.
13173 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13174 New substituted variables.
13175 (install-strip): New target.
13176 (INSTALL_SCRIPT): New substituted variable.
13177 (FLAGS_TO_PASS): Add it.
13178 (install-only): Use $(INSTALL_SCRIPT) rather than
13179 $(INSTALL_PROGRAM) for gcore.
13181 2014-01-20 Tom Tromey <tromey@redhat.com>
13183 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13186 2014-01-20 Tom Tromey <tromey@redhat.com>
13188 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13189 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13190 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13191 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13192 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13193 (struct cmd_list_element) <flags>: Remove.
13194 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13195 doc_allocated>: New fields.
13196 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13198 * maint.c (maintenance_do_deprecate): Update.
13199 * top.c (execute_command): Update.
13201 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13203 * xtensa-linux-nat.c: Include asm/ptrace.h.
13205 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13207 * Makefile.in (SFILES): Add d-support.c.
13208 (COMMON_OBS): Add d-support.o.
13209 * d-lang.h (d_parse_symbol): Add comment, now defined in
13211 * d-lang.c (parse_call_convention)
13212 (parse_attributes, parse_function_types)
13213 (parse_function_args, parse_type, parse_identifier)
13214 (call_convention_p, d_parse_symbol): Move functions to ...
13215 * d-support.c: ... New file.
13217 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13219 * d-lang.h (d_parse_symbol): Add declaration.
13220 * d-lang.c (extract_identifiers)
13221 (extract_type_info): Remove functions.
13222 (parse_call_convention, parse_attributes)
13223 (parse_function_types, parse_function_args)
13224 (parse_type, parse_identifier, call_convention_p)
13225 (d_parse_symbol): New functions.
13226 (d_demangle): Use d_parse_symbol to demangle D symbols.
13228 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13230 * d-lang.h (struct builtin_d_type): New data type.
13231 (builtin_d_type): Add declaration.
13232 * d-lang.c (d_language_arch_info, build_d_types)
13233 (builtin_d_type): New functions.
13234 (enum d_primitive_types): New data type.
13235 (d_language_defn): Change c_language_arch_info to
13236 d_language_arch_info.
13237 (d_type_data): New static variable.
13238 (_initialize_d_language): Initialize d_type_data.
13240 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13242 * d-lang.h (d_main_name): Add declaration.
13243 * d-lang.c (d_main_name): New function.
13244 * symtab.c (find_main_name): Add call to d_main_name.
13246 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13248 * d-lang.c (d_language_defn): Change macro_expansion_c to
13249 macro_expansion_no.
13251 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13253 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13255 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13257 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13258 gdb_exception" declaration.
13259 * remote.c (getpkt_or_notif_sane): Likewise.
13261 2014-01-17 Doug Evans <dje@google.com>
13263 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13264 function, contents of dirnames_to_char_ptr_vec_append moved here.
13265 (delim_string_to_char_ptr_vec): New function.
13266 (dirnames_to_char_ptr_vec_append): Rewrite.
13267 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13269 2014-01-17 Doug Evans <dje@google.com>
13271 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13273 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13274 #include "common-utils.h".
13275 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13276 * common/vec.h (VEC_ASSERT_PASS): Update.
13277 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13278 (MACH_CHECK_ERROR): Update.
13280 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13282 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13284 * gdbarch.h: Regenerate.
13286 2014-01-16 Tom Tromey <tromey@redhat.com>
13288 * value.c (struct value) <regnum>: Move earlier.
13290 2014-01-16 Tom Tromey <tromey@redhat.com>
13292 * remote.c (extended_remote_create_inferior): Rename from
13293 extended_remote_create_inferior_1. Add "ops" argument. Remove
13294 old implementation.
13296 2014-01-16 Pedro Alves <palves@redhat.com>
13298 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13299 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13302 2014-01-16 Doug Evans <dje@google.com>
13304 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13306 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13308 * btrace.h (btrace_thread_flag): New.
13309 (struct btrace_thread_info) <flags>: New.
13310 * record-btrace.c (record_btrace_resume_thread)
13311 (record_btrace_find_thread_to_move, btrace_step_no_history)
13312 (btrace_step_stopped, record_btrace_start_replaying)
13313 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13314 (record_btrace_find_resume_thread): New.
13315 (record_btrace_resume, record_btrace_wait): Extend.
13316 (record_btrace_can_execute_reverse): New.
13317 (record_btrace_open): Fail in non-stop mode.
13318 (record_btrace_set_replay): Split into this, ...
13319 (record_btrace_stop_replaying): ... this, ...
13320 (record_btrace_clear_histories): ... and this.
13321 (init_record_btrace_ops): Init to_can_execute_reverse.
13322 * NEWS: Announce it.
13324 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13326 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13327 (forward_target_decr_pc_after_break)
13328 (target_decr_pc_after_break): New.
13329 * target.c (forward_target_decr_pc_after_break)
13330 (target_decr_pc_after_break): New.
13331 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13332 instead of gdbarch_decr_pc_after_break.
13333 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13334 instead of gdbarch_decr_pc_after_break.
13335 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13336 instead of gdbarch_decr_pc_after_break.
13337 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13338 instead of gdbarch_decr_pc_after_break.
13339 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13340 instead of gdbarch_decr_pc_after_break.
13341 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13342 instead of gdbarch_decr_pc_after_break.
13344 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13346 * btrace.c: Include regcache.h.
13347 (btrace_add_pc): New.
13348 (btrace_enable): Call btrace_add_pc.
13349 (btrace_is_empty): New.
13350 * btrace.h (btrace_is_empty): New.
13351 * record-btrace.c (require_btrace, record_btrace_info): Call
13354 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13356 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13357 Support delta reads.
13358 (linux_disable_btrace): Change return type.
13359 * common/linux-btrace.h (linux_read_btrace): Change parameters
13360 and return type to allow error reporting. Update users.
13361 (linux_disable_btrace): Change return type. Update users.
13362 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13364 (btrace_error): New.
13365 (btrace_block) <begin>: Comment on BEGIN == 0.
13366 * btrace.c (btrace_compute_ftrace): Start from the end of
13368 (btrace_stitch_trace, btrace_clear_history): New.
13369 (btrace_fetch): Read delta trace, return if replaying.
13370 (btrace_clear): Move clear history code to btrace_clear_history.
13371 (parse_xml_btrace): Throw an error if parsing failed.
13372 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13373 and return type to allow error reporting.
13374 (target_read_btrace): Change parameters and return type to allow
13376 * target.c (target_read_btrace): Update.
13377 * remote.c (remote_read_btrace): Support delta reads. Pass
13379 * NEWS: Announce it.
13381 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13383 * record.h (record_btrace_frame_unwind)
13384 (record_btrace_tailcall_frame_unwind): New declarations.
13385 * dwarf2-frame: Include record.h
13386 (dwarf2_frame_cfa): Throw an error for btrace frames.
13387 * record-btrace.c: Include hashtab.h.
13388 (btrace_get_bfun_name): New.
13389 (btrace_call_history): Call btrace_get_bfun_name.
13390 (struct btrace_frame_cache): New.
13392 (bfcache_hash, bfcache_eq, bfcache_new): New.
13393 (btrace_get_frame_function): New.
13394 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13395 (record_btrace_frame_this_id): Compute own id.
13396 (record_btrace_frame_prev_register): Provide PC, throw_error
13397 for all other registers.
13398 (record_btrace_frame_sniffer): Detect btrace frames.
13399 (record_btrace_tailcall_frame_sniffer): New.
13400 (record_btrace_frame_dealloc_cache): New.
13401 (record_btrace_frame_unwind): Add new functions.
13402 (record_btrace_tailcall_frame_unwind): New.
13403 (_initialize_record_btrace): Allocate cache.
13404 * btrace.c (btrace_clear): Call reinit_frame_cache.
13405 * NEWS: Announce it.
13407 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13409 * record-btrace.c (record_btrace_set_replay)
13410 (record_btrace_goto_begin, record_btrace_goto_end)
13411 (record_btrace_goto): New.
13412 (init_record_btrace_ops): Initialize them.
13413 * NEWS: Announce it.
13415 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13417 * record-btrace.c (record_btrace_find_new_threads)
13418 (record_btrace_thread_alive): New.
13419 (init_record_btrace_ops): Initialize to_find_new_threads and
13422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13424 * record-btrace.c (record_btrace_resume): New.
13425 (record_btrace_wait): New.
13426 (init_record_btrace_ops): Initialize to_wait and to_resume.
13428 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13430 * record-btrace.c (record_btrace_xfer_partial)
13431 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13432 (record_btrace_allow_memory_access): New.
13433 (init_record_btrace_ops): Initialize new methods.
13434 * target.c (raw_memory_xfer_partial): Bail out if target reports
13435 that this memory is not available.
13437 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13439 * target.h (target_ops) <to_insert_breakpoint>
13440 <to_remove_breakpoint>: Add target_ops parameter.
13441 (forward_target_insert_breakpoint): New.
13442 (forward_target_remove_breakpoint): New.
13443 (memory_remove_breakpoint, memory_insert_breakpoint):
13444 Add target_ops parameter.
13445 * target.c (target_insert_breakpoint): Split into this and ...
13446 (forward_target_insert_breakpoint): ... this.
13447 (target_remove_breakpoint): Split into this and ...
13448 (forward_target_remove_breakpoint): ... this.
13449 (debug_to_insert_breakpoint): Add target_ops parameter.
13450 Call forward_target_insert_breakpoint.
13451 (debug_to_remove_breakpoint): Add target_ops parameter.
13452 Call forward_target_remove_breakpoint.
13453 (update_current_target): Do not inherit or default to_insert_breakpoint
13454 and to_remove_breakpoint.
13455 * corelow.c (ignore): Add target_ops parameter.
13456 * exec.c (ignore): Add target_ops parameter.
13457 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13458 Add target_ops parameter.
13459 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13460 Add target_ops parameter.
13461 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13462 Add target_ops parameter.
13463 * record-full.c (record_full_beneath_to_insert_breakpoint)
13464 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13465 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13466 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13467 (record_full_core_remove_breakpoint): Add target_ops parameter.
13469 (record_full_beneath_to_insert_breakpoint_ops)
13470 (record_full_beneath_to_remove_breakpoint_ops)
13471 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13472 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13473 tmp_to_remove_breakpoint_ops,
13474 record_full_beneath_to_insert_breakpoint_ops, and
13475 record_full_beneath_to_remove_breakpoint_ops.
13476 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13477 (m32r_remove_breakpoint): Add target_ops parameter.
13478 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13479 Add target_ops parameter.
13480 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13481 Add target_ops parameter.
13483 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13484 Markus Metzger <markus.t.metzger@intel.com>
13486 * record-btrace.c: Include frame-unwind.h.
13487 (record_btrace_frame_unwind_stop_reason)
13488 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13489 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13491 (init_record_btrace_ops): Install it.
13493 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13495 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13498 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13500 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13503 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13505 * frame-unwind.c: Include target.h.
13506 (frame_unwind_try_unwinder): New function with code from ...
13507 (frame_unwind_find_by_frame): ... here. New variable
13508 unwinder_from_target, call also target_get_unwinder)
13509 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13510 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13511 * target.h (struct target_ops): New fields to_get_unwinder and
13512 to_get_tailcall_unwinder.
13513 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13517 * record-btrace.c (record_btrace_fetch_registers)
13518 (record_btrace_store_registers)
13519 (record_btrace_to_prepare_to_store): New.
13520 (init_record_btrace_ops): Add the above.
13522 2014-01-16 Tom Tromey <tromey@redhat.com>
13524 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13525 * target.h (struct target_ops) <to_prepare_to_store>: Add
13527 (target_prepare_to_store): Add argument.
13528 * target.c (debug_to_prepare_to_store): Add argument.
13529 (update_current_target): Update.
13530 * remote.c (remote_prepare_to_store): Add 'self' argument.
13531 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13532 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13533 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13534 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13536 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13537 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13538 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13539 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13540 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13542 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13544 * btrace.h (replay) <replay>: New.
13545 (btrace_is_replaying): New.
13546 * btrace.c (btrace_clear): Free replay iterator.
13547 (btrace_is_replaying): New.
13548 * record-btrace.c (record_btrace_is_replaying): New.
13549 (record_btrace_info): Print insn number if replaying.
13550 (record_btrace_insn_history): Start at replay position.
13551 (record_btrace_call_history): Start at replay position.
13552 (init_record_btrace_ops): Init to_record_is_replaying.
13554 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13556 * record-btrace.c (record_btrace_insn_history_range): Include
13558 (record_btrace_insn_history_from): Adjust range.
13559 (record_btrace_call_history_range): Include
13561 (record_btrace_call_history_from): Adjust range.
13562 * NEWS: Announce changes.
13564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13566 * record.h (enum record_print_flag)
13567 <record_print_indent_calls>: New.
13568 * record.c (get_call_history_modifiers): Recognize /c modifier.
13569 (_initialize_record): Document /c modifier.
13570 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13571 Reorder fields. Optionally indent the function name. Update
13573 * NEWS: Announce changes.
13575 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13577 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13581 * btrace.c (ftrace_new_function): Start counting at one.
13582 * record-btrace.c (record_btrace_info): Adjust number of calls
13584 * NEWS: Announce it.
13586 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13588 * record-btrace.c (btrace_call_history_insn_range): Print
13589 insn range as [begin, end].
13591 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13593 * btrace.h (struct btrace_func_link): New.
13594 (enum btrace_function_flag): New.
13595 (struct btrace_inst): Rename to ...
13596 (struct btrace_insn): ...this. Update all users.
13597 (struct btrace_func) <ibegin, iend>: Remove.
13598 (struct btrace_func_link): New.
13599 (struct btrace_func): Rename to ...
13600 (struct btrace_function): ...this. Update all users.
13601 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13602 (number, level, flags>: New.
13603 (struct btrace_insn_iterator): Rename to ...
13604 (struct btrace_insn_history): ...this.
13606 (struct btrace_insn_iterator, btrace_call_iterator): New.
13607 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13608 (struct btrace_target_info) <begin, end, level>
13609 <insn_history, call_history>: New.
13610 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13611 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13612 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13613 (btrace_call_number, btrace_call_begin, btrace_call_end)
13614 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13615 (btrace_find_function_by_number, btrace_set_insn_history)
13616 (btrace_set_call_history): New.
13617 * btrace.c (btrace_init_insn_iterator)
13618 (btrace_init_func_iterator, compute_itrace): Remove.
13619 (ftrace_print_function_name, ftrace_print_filename)
13620 (ftrace_skip_file): Change
13621 parameter to const.
13622 (ftrace_init_func): Remove.
13623 (ftrace_debug): Use new btrace_function fields.
13624 (ftrace_function_switched): Also consider gaining and
13625 losing symbol information).
13626 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13627 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13628 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13630 (ftrace_new_function): Move. Remove debug print.
13631 (ftrace_update_lines, ftrace_update_insns): New.
13632 (ftrace_update_function): Check for call, ret, and jump.
13633 (compute_ftrace): Renamed to ...
13634 (btrace_compute_ftrace): ...this. Rewritten to compute call
13636 (btrace_fetch, btrace_clear): Updated.
13637 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13638 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13639 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13640 (btrace_call_number, btrace_call_begin, btrace_call_end)
13641 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13642 (btrace_find_function_by_number, btrace_set_insn_history)
13643 (btrace_set_call_history): New.
13644 * record-btrace.c (require_btrace): Use new btrace thread
13646 (record_btrace_info, btrace_insn_history)
13647 (record_btrace_insn_history, record_btrace_insn_history_range):
13648 Use new btrace thread info fields and new iterator.
13649 (btrace_func_history_src_line): Rename to ...
13650 (btrace_call_history_src_line): ...this. Use new btrace
13651 thread info fields.
13652 (btrace_func_history): Rename to ...
13653 (btrace_call_history): ...this. Use new btrace thread info
13654 fields and new iterator.
13655 (record_btrace_call_history, record_btrace_call_history_range):
13656 Use new btrace thread info fields and new iterator.
13658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13660 * frame.h (frame_id_build_unavailable_stack_special): New.
13661 * frame.c (frame_id_build_unavailable_stack_special): New.
13663 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13665 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13666 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13667 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13669 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13670 (i386_insn_is_jump, i386_jmp_p): New.
13671 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13672 insn_is_jump to gdbarch.
13673 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13674 * gdbarch.h: Regenerated.
13675 * gdbarch.c: Regenerated.
13676 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13677 (default_insn_is_jump): New.
13678 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13679 (default_insn_is_jump): New.
13681 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13683 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13685 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13686 (btrace_read_type) <btrace_read_new>: Change to ...
13687 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13689 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13691 * common/linux-btrace.c (linux_read_btrace): Free trace from
13692 previous iteration.
13694 2014-01-15 Doug Evans <dje@google.com>
13696 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13699 2014-01-15 Tom Tromey <tromey@redhat.com>
13701 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13702 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13703 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13704 (set_objfile_main_name): New function.
13705 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13706 language_of_main>: New fields.
13707 (set_objfile_main_name): Declare.
13708 * symtab.c (find_main_name): Loop over objfiles to find the main
13710 (set_main_name): Now static.
13711 (get_main_info): Add comment.
13712 * symtab.h (set_main_name): Don't declare.
13714 2014-01-15 Tom Tromey <tromey@redhat.com>
13716 * symtab.c (main_progspace_key): New global.
13717 (struct main_info): New.
13718 (name_of_main, language_of_main): Remove.
13719 (get_main_info, main_info_cleanup): New function.
13720 (set_main_name, main_name, main_language): Use get_main_info.
13721 (_initialize_symtab): Initialize main_progspace_key.
13723 2014-01-15 Tom Tromey <tromey@redhat.com>
13725 * dbxread.c (process_one_symbol): Update.
13726 * dwarf2read.c (read_partial_die): Update.
13727 * symfile.c (set_initial_language): Call main_language.
13728 * symtab.c (language_of_main): Now static.
13729 (set_main_name): Add 'lang' parameter.
13730 (find_main_name): Update.
13731 (main_language): New function.
13732 (symtab_observer_executable_changed): Update.
13733 * symtab.h (set_main_name): Update.
13734 (language_of_main): Remove.
13735 (main_language): Declare.
13737 2014-01-15 Tom Tromey <tromey@redhat.com>
13739 * symfile.c (init_entry_point_info): Use new "initialized" field.
13741 * objfiles.h (struct entry_point) <initialized>: New field.
13742 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13743 (struct objfile) <ei>: ...here. Remove.
13744 * objfiles.c (entry_point_address_query): Update.
13746 2014-01-15 Tom Tromey <tromey@redhat.com>
13748 * objfiles.c (entry_point_address_query): Relocate entry point
13750 (objfile_relocate1): Do not relocate entry point address.
13751 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13752 <the_bfd_section_index>: New field.
13753 * symfile.c (init_entry_point_info): Find the entry point's
13756 2014-01-15 Tom Tromey <tromey@redhat.com>
13758 * solib-frv.c (enable_break): Use entry_point_address_query.
13760 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13762 * NEWS: Add note on improved process record-replay on
13763 arm*-linux* targets.
13765 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13767 * arm-tdep.c (enum arm_record_result): New enum.
13768 (arm_record_unsupported_insn): New function.
13769 (arm_record_coproc_data_proc): Removed.
13770 (thumb2_record_ld_st_multiple): New function.
13771 (thumb2_record_ld_st_dual_ex_tbb): New function.
13772 (thumb2_record_data_proc_sreg_mimm): New function.
13773 (thumb2_record_ps_dest_generic): New function.
13774 (thumb2_record_branch_misc_cntrl): New function.
13775 (thumb2_record_str_single_data): New function.
13776 (thumb2_record_ld_mem_hints): New function.
13777 (thumb2_record_ld_word): New function.
13778 (thumb2_record_lmul_lmla_div): New function.
13779 (thumb2_record_decode_insn_handler): New function.
13780 (decode_insn): Add thumb32 instruction handlers.
13782 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13784 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13785 (struct arm_linux_record_tdep): Declare.
13786 (arm_canonicalize_syscall): New function.
13787 (arm_all_but_pc_registers_record): New function.
13788 (arm_linux_syscall_record): New function.
13789 (arm_linux_init_abi): Add syscall recording constructs.
13790 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13791 decoding. (arm_record_coproc_data_proc): Update arm syscall
13793 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13794 <arm_syscall_record>: New field.
13795 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13798 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13800 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13801 register for push instruction recording.
13803 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13805 * arm-tdep.c (thumb_record_misc): Update to correct logical
13806 error while recording ldm, ldmia and pop instructions.
13808 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13810 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13812 2014-01-15 Pedro Alves <palves@redhat.com>
13814 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13815 (go32_resume, go32_fetch_registers, store_register)
13816 (go32_store_registers, go32_prepare_to_store)
13817 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13818 (go32_create_inferior, go32_can_run, go32_terminal_init)
13819 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13822 2014-01-15 Tom Tromey <tromey@redhat.com>
13824 * target.h (async_callback_ftype): New typedef.
13825 (struct target_ops) <to_async>: Use it.
13827 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13829 * python/py-value.c (get_field_type): Remove unnecessary curly
13830 braces for single-statement if block.
13832 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13834 * python/py-type.c (convert_field): Add missing empty line
13835 after declarations.
13837 2014-01-14 Doug Evans <dje@google.com>
13839 * symfile.h (expand_symtabs_matching): Renamed from
13840 expand_partial_symbol_names. Update prototype.
13841 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13842 * symfile.c (expand_symtabs_matching): Renamed from
13843 expand_partial_symbol_names. New args file_matcher, kind.
13844 Rename arg fun to symbol_matcher.
13845 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13846 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13847 ada_expand_partial_symbol_name.
13848 (ada_make_symbol_completion_list): Update to call
13849 expand_symtabs_matching.
13850 (ada_add_global_exceptions): Call expand_symtabs_matching.
13851 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13852 call map_symbol_filenames.
13853 * symtab.c (sources_info): Update to call map_symbol_filenames.
13854 (search_symbols): Call expand_symtabs_matching.
13855 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13856 (default_make_symbol_completion_list_break_on): Update to call
13857 expand_symtabs_matching.
13858 (make_source_files_completion_list): Update to call
13859 map_symbol_filenames.
13861 2014-01-14 Doug Evans <dje@google.com>
13863 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13864 (expand_symtabs_symbol_matcher_ftype): New typedef.
13865 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13866 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13867 * symfile.c (expand_partial_symbol_names): Update to use
13868 expand_symtabs_symbol_matcher_ftype.
13869 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13870 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13871 Arg name_matcher renamed to symbol_matcher.
13872 * psymtab.c (recursively_search_psymtabs): Update to use
13873 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13875 (expand_symtabs_matching_via_partial): Update to use
13876 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13877 Arg name_matcher renamed to symbol_matcher.
13879 2014-01-14 Doug Evans <dje@google.com>
13881 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13882 (map_partial_symbol_filenames): Ditto.
13883 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13884 (map_partial_symbol_filenames): Ditto.
13885 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13886 (map_partial_symbol_filenames): Ditto.
13887 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13888 (map_partial_symbol_filenames): Ditto.
13889 * symtab.c: Delete #include "psymtab.h".
13891 2014-01-14 Pedro Alves <palves@redhat.com>
13892 Tom Tromey <tromey@redhat.com>
13894 * infrun.c (use_displaced_stepping): Use find_record_target
13895 instead of RECORD_IS_USED.
13896 (adjust_pc_after_break): Use record_full_is_used instead of
13898 * record-btrace.c (record_btrace_open): Call record_preopen
13899 instead of checking RECORD_IS_USED.
13900 * record-full.c (record_full_shortname)
13901 (record_full_core_shortname): New globals.
13902 (record_full_is_used): New function.
13903 (find_full_open): Call record_preopen instead of checking
13905 (init_record_full_ops): Set the target's shortname to
13906 record_full_shortname.
13907 (init_record_full_core_ops): Set the target's shortname to
13908 record_full_core_shortname.
13909 * record-full.h (record_full_is_used): Declare.
13910 * record.c (find_record_target): Make extern.
13911 (record_preopen): New function.
13912 * record.h (RECORD_IS_USED): Delete macro.
13913 (find_record_target, record_preopen): Declare functions.
13915 2014-01-14 Yao Qi <yao@codesourcery.com>
13917 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13918 'len''s type to ULONGEST.
13919 (core_xfer_shared_libraries_aix): Likewise.
13920 * gdbarch.c, gdbarch.h: Regenerated.
13921 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13922 Change type of 'len' to ULONGEST.
13923 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13924 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13926 2014-01-14 Yao Qi <yao@codesourcery.com>
13928 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13929 type of 'len' to ULONGEST.
13930 (linux_xfer_osdata_processgroups): Likewise.
13931 (linux_xfer_osdata_threads): Likewise.
13932 (linux_xfer_osdata_fds): Likewise.
13933 (linux_xfer_osdata_isockets): Likewise.
13934 (linux_xfer_osdata_shm): Likewise.
13935 (linux_xfer_osdata_sem): Likewise.
13936 (linux_xfer_osdata_msg): Likewise.
13937 (linux_common_xfer_osdata): Likewise.
13938 (struct osdata_type) <getter>: Likewise.
13939 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13942 2014-01-14 Yao Qi <yao@codesourcery.com>
13944 * target.h (target_xfer_partial_ftype): Update.
13945 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13947 * aix-thread.c (aix_thread_xfer_partial): Change type of
13948 argument 'len' to ULONGEST.
13949 * auxv.c (procfs_xfer_auxv): Likewise.
13950 (ld_so_xfer_auxv): Likewise.
13951 (memory_xfer_auxv): Likewise.
13952 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13953 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13954 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13955 * corelow.c (core_xfer_partial): Likewise.
13956 * ctf.c (ctf_xfer_partial): Likewise.
13957 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13959 (darwin_read_dyld_info): Likewise.
13960 (darwin_xfer_partial): Likewise.
13961 * exec.c (section_table_xfer_memory_partial): Likewise.
13962 (exec_xfer_partial): Likewise.
13963 * exec.h (section_table_xfer_memory_partial): Update
13965 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13966 instead of plongest.
13967 (gnu_xfer_partial): Likewise.
13968 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13969 (ia64_hpux_xfer_solib_got): Likewise.
13970 (ia64_hpux_xfer_partial): Likewise.
13971 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13972 * inf-ptrace.c (inf_ptrace_xfer_partial):
13973 * inf-ttrace.c (inf_ttrace_xfer_partial):
13974 * linux-nat.c (linux_xfer_siginfo): Likewise.
13975 (linux_nat_xfer_partial): Likewise.
13976 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13977 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13978 * monitor.c (monitor_xfer_memory): Likewise.
13979 (monitor_xfer_partial): Likewise.
13980 * procfs.c (procfs_xfer_partial): Likewise.
13981 * record-full.c (record_full_xfer_partial): Likewise.
13982 (record_full_core_xfer_partial): Likewise.
13983 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13984 instead of plongest.
13985 (gdbsim_xfer_partial): Likewise.
13986 * remote.c (remote_xfer_partial): Likewise.
13987 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13988 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13990 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13991 (rs6000_xfer_shared_libraries): Likewise.
13992 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13993 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13994 (sparc_xfer_partial): Likewise.
13995 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13996 (spu_xfer_partial): Likewise.
13997 * spu-multiarch.c (spu_xfer_partial): Likewise.
13998 * target.c (target_read_live_memory): Likewise.
13999 (memory_xfer_live_readonly_partial): Likewise.
14000 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14001 (target_xfer_partial, default_xfer_partial): Likewise.
14002 (current_xfer_partial): Likewise.
14003 * tracepoint.c (tfile_xfer_partial): Likewise.
14004 * windows-nat.c (windows_xfer_memory): Likewise. Call
14005 pulongest instead of plongest.
14006 (windows_xfer_partial): Likewise.
14007 (windows_xfer_shared_libraries): Likewise.
14009 2014-01-14 Yao Qi <yao@codesourcery.com>
14011 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14012 target_xfer_partial_ftype.
14014 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14018 * valops.c (value_struct_elt_bitpos): New function
14019 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14020 object to 'None' if the field name is an empty string ("").
14021 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14022 attribute to look for a field when 'name' is 'None'.
14023 (get_field_type): New function
14025 2014-01-13 Doug Evans <dje@google.com>
14028 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14029 (try_open_dwop_file): Ditto.
14030 * gdb_bfd.c: #include "vec.h".
14031 (bfdp): New typedef.
14032 (struct gdb_bfd_data): New member included_bfds.
14033 (gdb_bfd_unref): Unref all included bfds.
14034 (gdb_bfd_record_inclusion): New function.
14035 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14037 2014-01-13 Tom Tromey <tromey@redhat.com>
14039 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14041 2014-01-13 Tom Tromey <tromey@redhat.com>
14043 * defs.h (use_windows): Remove.
14044 * gdb.c (main): Update.
14045 * main.c (captured_main, gdb_main): Update.
14046 * main.h (struct captured_main_args) <use_windows>: Remove.
14047 * top.c (use_windows): Remove.
14049 2014-01-13 Tom Tromey <tromey@redhat.com>
14051 * defs.h (deprecated_flush_hook): Remove.
14053 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14056 * linux-thread-db.c (try_thread_db_load): Add parameter
14057 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14058 (try_thread_db_load_from_pdir_1): Move it there from here.
14059 (try_thread_db_load_from_sdir): Update caller.
14060 (try_thread_db_load_from_dir): Move it there from here.
14062 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14064 * regformats/regdat.sh: Always rewrite the register file.
14066 2014-01-13 Pedro Alves <palves@redhat.com>
14068 * Makefile.in (CHECK_HEADERS): New variable.
14069 (check-headers:): New rule.
14071 2014-01-13 Tom Tromey <tromey@redhat.com>
14073 * cli/cli-setshow.c (do_set_command): Update.
14074 * defs.h (deprecated_set_hook): Remove.
14075 * top.c (deprecated_set_hook): Remove.
14077 2014-01-13 Pedro Alves <palves@redhat.com>
14079 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14080 the tracepoint if the PC is a pseudo-register.
14082 2014-01-13 Tom Tromey <tromey@redhat.com>
14084 * defs.h (XCALLOC): Remove.
14085 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14086 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14087 * dwarf2loc.c (allocate_piece_closure): Likewise.
14088 * elfread.c (elf_symfile_segments): Likewise.
14089 (elf_symfile_segments): Likewise.
14090 * gdbtypes.c (copy_type_recursive): Likewise.
14091 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14092 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14093 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14095 * mt-tdep.c (mt_gdbarch_init): Likewise.
14096 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14098 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14099 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14100 * registry.c (registry_alloc_data): Likewise.
14101 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14102 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14103 * serial.c (serial_fdopen_ops): Likewise.
14104 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14106 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14107 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14110 2014-01-13 Tom Tromey <tromey@redhat.com>
14112 * defs.h (XMALLOC): Remove.
14113 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14114 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14115 * cli-out.c (struct ui_out *): Likewise.
14116 * cli/cli-dump.c (add_dump_command): Likewise.
14117 (add_dump_command): Likewise.
14118 * complaints.c (get_complaints): Likewise.
14119 (find_complaint): Likewise.
14120 * dwarf2-frame.c (execute_cfa_program): Likewise.
14121 * dwarf2read.c (abbrev_table_read_table): Likewise.
14122 * gdbarch.sh: Likewise.
14123 * gdbarch.c: Rebuild.
14124 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14125 * interps.c (interp_new): Likewise.
14126 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14127 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14128 * mi/mi-console.c (mi_console_file_new): Likewise.
14129 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14130 * mi/mi-out.c (mi_out_new): Likewise.
14131 * mi/mi-parse.c (mi_parse): Likewise.
14132 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14133 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14134 * observer.c (xalloc_observer_list_node): Likewise.
14135 * regcache.c (regcache_xmalloc_1): Likewise.
14136 * reggroups.c (reggroup_new): Likewise.
14137 (_initialize_reggroup): Likewise.
14138 * registry.c (register_data_with_cleanup): Likewise.
14139 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14140 * ser-base.c (serial_ttystate): Likewise.
14141 * ser-mingw.c (make_pipe_state): Likewise.
14142 * ser-pipe.c (pipe_open): Likewise.
14143 * serial.c (serial_open): Likewise.
14144 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14145 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14146 (tui_alloc_win_info): Likewise.
14147 (tui_add_content_elements): Likewise.
14148 * tui/tui-file.c (tui_file_new): Likewise.
14149 * tui/tui-out.c (tui_out_new): Likewise.
14150 * ui-file.c (mem_file_new): Likewise.
14151 * ui-out.c (push_level): Likewise.
14152 (make_cleanup_ui_out_end): Likewise.
14153 (append_header_to_list): Likewise.
14154 (ui_out_new): Likewise.
14155 * user-regs.c (user_reg_add_builtin): Likewise.
14157 2014-01-13 Tom Tromey <tromey@redhat.com>
14159 * defs.h (XZALLOC): Remove.
14160 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14161 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14162 (get_ada_tasks_inferior_data): Likewise.
14163 * auto-load.c (get_auto_load_pspace_data): Likewise.
14164 * auxv.c (get_auxv_inferior_data): Likewise.
14165 * bfd-target.c (target_bfd_reopen): Likewise.
14166 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14167 (deprecated_insert_raw_breakpoint): Likewise.
14168 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14169 * corelow.c (core_open): Likewise.
14170 * darwin-nat.c (darwin_check_new_threads): Likewise.
14171 (darwin_attach_pid): Likewise.
14172 * dummy-frame.c (dummy_frame_push): Likewise.
14173 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14174 * dwarf2loc.c (allocate_piece_closure): Likewise.
14175 * elfread.c (elf_symfile_segments): Likewise.
14176 * eval.c (ptrmath_type_p): Likewise.
14177 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14178 * gdbtypes.c (alloc_type_arch): Likewise.
14179 (alloc_type_instance): Likewise.
14180 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14181 * inf-child.c (inf_child_can_use_agent): Likewise.
14182 * inflow.c (get_inflow_inferior_data): Likewise.
14183 * infrun.c (save_infcall_suspend_state): Likewise.
14184 * jit.c (jit_reader_load): Likewise.
14185 (get_jit_objfile_data): Likewise.
14186 (get_jit_program_space_data): Likewise.
14187 (jit_object_open_impl): Likewise.
14188 (jit_symtab_open_impl): Likewise.
14189 (jit_block_open_impl): Likewise.
14190 (jit_frame_sniffer): Likewise.
14191 * linux-fork.c (add_fork): Likewise.
14192 * maint.c (make_command_stats_cleanup): Likewise.
14193 * objfiles.c (get_objfile_pspace_data): Likewise.
14194 * opencl-lang.c (struct lval_closure): Likewise.
14195 * osdata.c (osdata_start_osdata): Likewise.
14196 * progspace.c (new_address_space): Likewise.
14197 (add_program_space): Likewise.
14198 * remote-sim.c (get_sim_inferior_data): Likewise.
14199 * sh-tdep.c (sh_gdbarch_init): Likewise.
14200 * skip.c (Ignore): Likewise.
14201 (skip_delete_command): Likewise.
14202 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14203 (library_list_start_library): Likewise.
14204 (solib_aix_current_sos): Likewise.
14205 * solib-darwin.c (get_darwin_info): Likewise.
14206 (darwin_current_sos): Likewise.
14207 * solib-dsbt.c (get_dsbt_info): Likewise.
14208 * solib-ia64-hpux.c (new_so_list): Likewise.
14209 (ia64_hpux_get_solib_linkage_addr): Likewise.
14210 * solib-spu.c (append_ocl_sos): Likewise.
14211 (spu_current_sos): Likewise.
14212 * solib-svr4.c (get_svr4_info): Likewise.
14213 (svr4_keep_data_in_core): Likewise.
14214 (library_list_start_library): Likewise.
14215 (svr4_default_sos): Likewise.
14216 (svr4_read_so_list): Likewise.
14217 * solib-target.c (library_list_start_library): Likewise.
14218 (solib_target_current_sos): Likewise.
14219 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14220 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14221 * symfile.c (default_symfile_segments): Likewise.
14222 * target-descriptions.c (tdesc_data_init): Likewise.
14223 (tdesc_create_reg): Likewise.
14224 (struct tdesc_type *): Likewise.
14225 (tdesc_create_vector): Likewise.
14226 (tdesc_set_struct_size): Likewise.
14227 (struct tdesc_type *): Likewise.
14228 (tdesc_free_feature): Likewise.
14229 (tdesc_create_feature): Likewise.
14230 * windows-nat.c (windows_add_thread): Likewise.
14231 (windows_make_so): Likewise.
14232 * xml-support.c (gdb_xml_body_text): Likewise.
14233 (gdb_xml_create_parser_and_cleanup): Likewise.
14234 (xml_process_xincludes): Likewise.
14235 * xml-syscall.c (allocate_syscalls_info): Likewise.
14236 (syscall_create_syscall_desc): Likewise.
14238 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14240 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14241 function, with code from i386_stap_parse_special_token.
14242 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14243 (i386_stap_parse_special_token): Move code to the two functions
14244 above; simplify it.
14246 2014-01-09 Pedro Alves <palves@redhat.com>
14247 Hui Zhu <hui@codesourcery.com>
14250 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14251 bp_err_string. Don't mark the location shlib_disabled if the
14252 error thrown wasn't a generic or memory error. Catch errors
14253 thrown while inserting breakpoints in overlayed code. Output
14254 error message of software breakpoints.
14255 * remote.c (remote_insert_breakpoint): If this breakpoint has
14256 target-side commands but this stub doesn't support Z0 packets,
14257 throw NOT_SUPPORTED_ERROR error.
14258 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14259 * target.h (target_insert_breakpoint): Extend comment.
14260 (target_insert_hw_breakpoint): Add comment.
14262 2014-01-08 Pedro Alves <palves@redhat.com>
14264 * remote.c (remote_add_thread): Add threads silently if starting
14266 (remote_notice_new_inferior): If in all-stop, and starting up,
14267 don't call notice_new_inferior.
14268 (get_current_thread): New function, factored out from ...
14269 (add_current_inferior_and_thread): ... this. Adjust.
14270 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14271 found any thread, then select the remote's current thread as GDB's
14272 current thread too.
14274 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14276 * NEWS: Create a new section for the next release branch.
14277 Rename the section of the current branch, now that it has
14280 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14282 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14283 * version.in: Bump version to 7.7.50.DATE-cvs.
14285 2014-01-08 Yao Qi <yao@codesourcery.com>
14287 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14288 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14289 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14291 2014-01-08 Yao Qi <yao@codesourcery.com>
14293 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14294 return value of bfd_get_filename to symbol_file_add_from_bfd.
14296 2014-01-08 Pierre Muller <muller@sourceware.org>
14299 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14300 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14301 to prim_record_mininal_symbol_and_info.
14302 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14303 in call to prim_record_minimal_symbol_and_info.
14304 (read_pe_exported_syms): Set index field of section_data.
14306 2014-01-07 Andrew Pinski <apinski@cavium.com>
14308 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14309 * features/aarch64.c: Regenerate.
14311 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14313 * target.c (return_null): Define.
14314 (update_current_target): Use it instead of return_zero for
14315 functions that return a pointer.
14317 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14319 * source.c (add_path): Fix check for duplicated paths in the previously
14322 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14324 * ada-lang.c: Remove duplicated include statements.
14325 * alphabsd-nat.c: Ditto.
14326 * amd64-darwin-tdep.c: Ditto.
14327 * amd64fbsd-nat.c: Ditto.
14328 * auto-load.c: Ditto.
14330 * breakpoint.c: Ditto.
14331 * dbxread.c: Ditto.
14332 * fork-child.c: Ditto.
14333 * gdb_usleep.c: Ditto.
14334 * i386-darwin-tdep.c: Ditto.
14335 * i386fbsd-nat.c: Ditto.
14337 * inferior.c: Ditto.
14338 * jv-lang.c: Ditto.
14339 * linux-nat.c: Ditto.
14340 * linux-tdep.c: Ditto.
14341 * m68kbsd-nat.c: Ditto.
14342 * m68klinux-nat.c: Ditto.
14343 * microblaze-tdep.c: Ditto.
14344 * mips-linux-tdep.c: Ditto.
14345 * mn10300-tdep.c: Ditto.
14346 * nto-tdep.c: Ditto.
14347 * opencl-lang.c: Ditto.
14349 * printcmd.c: Ditto.
14350 * regcache.c: Ditto.
14351 * remote-m32r-sdi.c: Ditto.
14353 * symfile.c: Ditto.
14355 * tilegx-linux-nat.c: Ditto.
14356 * tilegx-tdep.c: Ditto.
14357 * tracepoint.c: Ditto.
14359 * vaxbsd-nat.c: Ditto.
14360 * windows-nat.c: Ditto.
14361 * xtensa-tdep.c: Ditto.
14363 2014-01-07 Yao Qi <yao@codesourcery.com>
14365 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14367 2014-01-07 Yao Qi <yao@codesourcery.com>
14368 Joel Brobecker <brobecker@adacore.com>
14370 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14371 (pdc_write_regs): Likewise.
14372 (fetch_regs_kernel_thread): Likewise.
14373 (store_regs_kernel_thread): Likewise.
14375 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14377 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14378 tagged type objects to their actual type.
14380 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14382 * ada-valprint.c (print_field_values): Add "language" parameter.
14383 Update calls to print_field_values and print_variant_part.
14384 Pass new parameter "language" in call to val_print instead
14385 of "current_language". Replace call to ada_val_print by call
14387 (print_variant_part): Add "language" parameter.
14388 (ada_val_print_struct_union): Update call to print_field_values.
14390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14392 * ada-valprint.c (ui_memcpy): Delete.
14393 (ada_print_floating): Update documentation. Add empty line
14394 between between function documentation and implementation.
14395 Delete variable "buffer". Use ui_file_xstrdup in place of
14396 ui_file_put. Minor adjustments following this change.
14398 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14400 * ada-valprint.c (ada_val_print_string): New function,
14401 extracted from ada_val_print_array.
14402 (ada_val_print_array): Replace extracted code by call
14403 to ada_val_print_string followed by a return. Move
14404 "else" branch to the function's top block.
14406 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14408 * ada-valprint.c (ada_val_print_array): Move implementation
14409 down. Rename parameter "offset" and "val" into "offset_aligned"
14410 and "original_value" respectively. Add parameter "offset".
14412 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14414 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14415 re-organizing the code. Change the "???" message printed
14416 when target type is a TYPE_CODE_UNDEF into
14417 "<ref to undefined type>".
14419 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14421 * ada-valprint.c (print_record): Delete, implementation inlined...
14422 (ada_val_print_struct_union): ... here. Remove call to
14423 ada_check_typedef in inlined implementation.
14425 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14427 * ada-valprint.c (ada_val_print_gnat_array): New function,
14428 extracted from ada_val_print_1;
14429 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14430 (ada_val_print_flt, ada_val_print_struct_union)
14431 (ada_val_print_ref): Likewise.
14432 (ada_val_print_1): Delete variables i and elttype.
14433 Replace extracted-out code by call to corresponding
14436 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14438 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14440 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14442 * ada-valprint.c (ada_val_print_1): Replace calls to
14443 ada_val_print_1 by calls to val_print.
14445 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14447 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14448 Update calls to self accordingly. Replace calls to c_val_print
14449 by calls to val_print.
14451 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14453 * ada-valprint.c (print_record): Delete declaration.
14454 (adjust_type_signedness, ada_val_print_1): Likewise.
14455 (ada_val_print): Move function implementation down.
14456 (print_variant_part, print_field_values, print_record):
14457 Move function implementation up.
14459 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14461 * python/py-type.c (typy_get_name): New function.
14462 (type_object_getset): Add entry for attribute "name".
14463 * NEWS: Add entry mentioning this new attribute.
14465 2014-01-07 Yao Qi <yao@codesourcery.com>
14467 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14470 2014-01-07 Yao Qi <yao@codesourcery.com>
14472 * gnu-nat.c (info_port_rights): Add qualifier const to
14475 2014-01-07 Yao Qi <yao@codesourcery.com>
14477 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14479 2014-01-07 Yao Qi <yao@codesourcery.com>
14481 * gnu-nat.c (make_inf) Update declaration.
14482 (make_inf): Make it static.
14483 (inf_set_traced): Likewise.
14484 (inf_port_to_thread, inf_task_died_status): Likewise.
14486 2014-01-07 Yao Qi <yao@codesourcery.com>
14488 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14490 2014-01-07 Yao Qi <yao@codesourcery.com>
14492 * gnu-nat.c (_initialize_gnu_nat): Declare.
14494 2014-01-07 Yao Qi <yao@codesourcery.com>
14496 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14498 (struct gdbarch_info) <byte_order>: Change type to
14500 <byte_order_for_code>: Likewise.
14501 * gdbarch.c, gdbarch.h: Regenerated.
14503 2014-01-06 Sasha Smundak <asmundak@google.com>
14505 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14507 2014-01-06 Tom Tromey <tromey@redhat.com>
14509 * doublest.c (convert_doublest_to_floatformat): Use const, not
14511 * somread.c (som_symtab_read): Likewise.
14513 2014-01-07 Hui Zhu <hui@codesourcery.com>
14515 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14516 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14517 (gdb_bfd_fopen): Ditto.
14518 (gdb_bfd_openr): Ditto.
14519 (gdb_bfd_openw): Ditto.
14520 (gdb_bfd_openr_iovec): Ditto.
14521 (gdb_bfd_fdopenr): Ditto.
14522 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14523 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14525 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14527 * symfile-mem.c (symbol_file_add_from_memory): Removed
14528 gdb_bfd_stash_filename.
14530 2014-01-03 Doug Evans <dje@google.com>
14532 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14535 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14537 Update year range in copyright notice of all files.
14539 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14541 * top.c (print_gdb_version): Set copyright year to 2014.
14543 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14545 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14547 For older changes see ChangeLog-2013.
14553 version-control: never