1 2014-10-26 Doug Evans <xdje42@gmail.com>
3 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
5 2014-10-26 Doug Evans <xdje42@gmail.com>
7 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
8 parameter "kind" to "block_index".
9 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
11 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
13 2014-10-26 Doug Evans <xdje42@gmail.com>
15 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
17 2014-10-26 Doug Evans <xdje42@gmail.com>
19 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
22 2014-10-26 Doug Evans <xdje42@gmail.com>
24 * parser-defs.h (block_found): Move decl from here ...
25 * symtab.h (block_found): ... to here.
27 2014-10-26 Doug Evans <xdje42@gmail.com>
29 * symtab.h (struct field_of_this_result): Fix typo in comment.
30 (lookup_symbol_in_language): Move function comment here.
31 (lookup_symbol): Improve function comment.
32 (basic_lookup_symbol_nonlocal): Ditto.
33 (lookup_symbol_static, lookup_symbol_global): Ditto.
34 (lookup_symbol_aux_block): Ditto.
35 (lookup_language_this): Add function comment.
36 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
38 (lookup_block_symbol): Improve function comment.
39 (lookup_struct): Fix capitalization in function comment.
40 (lookup_transparent_type): Add function comment.
41 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
42 Improve function comment.
43 (lookup_objfile_from_block): Add function comment.
44 * symtab.c (lookup_symbol_in_language): Update function comment.
45 (lookup_symbol, lookup_language_this): Ditto.
46 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
47 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
48 (basic_lookup_symbol_nonlocal): Ditto.
49 (lookup_symbol_static, lookup_symbol_global): Ditto.
50 (lookup_transparent_type, lookup_block_symbol): Ditto.
52 2014-10-25 Doug Evans <xdje42@gmail.com>
54 * symtab.c (types_info): Delete forward decl.
55 (functions_info, variables_info, sources_info): Ditto.
56 (_initialize_symtab): Rewrite forward decl to use
57 initialize_file_ftype.
59 2014-10-25 Doug Evans <xdje42@gmail.com>
61 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
63 2014-10-25 Doug Evans <xdje42@gmail.com>
65 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
66 of local var child_die.
68 2014-10-24 Don Breazeal <donb@codesourcery.com>
70 * infrun.c (follow_fork_inferior): Update fork message printing
71 to use target_terminal_ours_for_output instead of
72 target_terminal_ours, to use _() for all format strings, to print
73 "vfork" instead of "fork" for vforks, and to add a detach message.
74 (handle_vfork_child_exec_or_exit): Update message printing to use
75 target_terminal_ours_for_output instead of target_terminal_ours, to
76 use _() for all format strings, and to fix some formatting.
78 2014-10-24 Pedro Alves <palves@redhat.com>
80 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
81 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
82 * config/vax/vax.mh: Delete.
83 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
84 obsolete configurations section.
85 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
86 * vax-nat.c: Delete file.
88 2014-10-24 Pedro Alves <palves@redhat.com>
90 * NEWS (Removed targets): Add OS/arch column.
92 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
94 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
95 on the arg type of a constructor only if it is of reference type.
97 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
99 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
100 accessors and constants from nios2 opcodes update.
101 (nios2_get_next_pc): Likewise.
103 2014-10-19 Doug Evans <xdje42@gmail.com>
105 * gdbthread.h (set_running): Fix comment.
106 (set_executing, finish_thread_state): Fix comment.
108 2014-10-18 Doug Evans <xdje42@gmail.com>
110 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
112 2014-10-17 Doug Evans <dje@google.com>
114 * NEWS: Mention new event gdb.clear_objfiles.
115 * python/py-event.h (emit_clear_objfiles_event): Clear
116 * python/py-events.h (events_object): New member clear_objfiles.
117 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
119 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
120 emit clear_objfiles event.
121 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
123 (emit_clear_objfiles_event): New function.
124 (clear_objfiles): New event.
125 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
127 * python/python.c (_initialize_python): Call
128 gdbpy_initialize_clear_objfiles_event.
130 2014-10-17 Doug Evans <dje@google.com>
132 * NEWS: Mention new gdb.Objfile.progspace attribute.
133 * python/py-objfile.c (objfpy_get_progspace): New function.
134 (objfile_getset): New entry for "progspace".
136 2014-10-17 Pedro Alves <palves@redhat.com>
139 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
140 returns a copy of the input.
141 (run_command_1, continue_command, step_1, jump_command)
142 (signal_command, until_command, advance_command, finish_command)
143 (attach_command): Adjust and install a cleanup to free the
146 2014-10-17 Pedro Alves <palves@redhat.com>
149 * infcmd.c (continue_1): If continuing all threads in the
150 foreground, make sure the inferior's terminal settings are put in
153 2014-10-17 Pedro Alves <palves@redhat.com>
156 * annotate.c (annotate_breakpoints_invalid): Use
157 target_terminal_our_for_output instead of target_terminal_ours.
158 Give back the terminal to the target.
159 (annotate_frames_invalid): Likewise.
161 2014-10-17 Pedro Alves <palves@redhat.com>
163 * target.c (enum terminal_state): New enum.
164 (terminal_state): New global.
165 (target_terminal_init): New function.
166 (target_terminal_inferior): Skip if inferior already owns the
168 (target_terminal_ours, target_terminal_ours_for_output): New
170 * target.h (target_terminal_init): Convert to function prototype.
171 (target_terminal_ours_for_output): Convert to function prototype
173 (target_terminal_ours): Convert to function prototype and tweak
175 * windows-nat.c (do_initial_windows_stuff): Call
176 target_terminal_init instead of child_terminal_init_with_pgrp.
178 2014-10-17 Pedro Alves <palves@redhat.com>
180 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
181 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
182 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
184 * NEWS: Mention that support for alpha*-*-osf* has been removed.
185 * ada-lang.h [__alpha__ && __osf__]
186 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
187 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
188 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
190 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
192 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
193 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
194 * configure: Regenerate.
195 * configure.ac: Remove references to osf.
196 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
197 section. Remove all other references to osf.
198 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
199 Remove all other references to osf.
200 * dec-thread.c: Delete file.
201 * defs.h (GDB_OSABI_OSF1): Delete.
202 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
204 * osabi.c (gdb_osabi_names): Delete "OSF/1".
205 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
207 (unconditionally_kill_inferior)
208 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
209 * solib-osf.c: Delete file.
211 2014-10-17 Pedro Alves <palves@redhat.com>
213 * remote.c (clear_threads_listing_context): Move higher up, out of
214 the HAVE_LIBEXPAT guard.
216 2014-10-16 Tristan Gingold <gingold@adacore.com>
218 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
219 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
222 2014-10-15 Pedro Alves <palves@redhat.com>
224 * dec-thread.c (dec_thread_count_gdb_threads)
225 (dec_thread_add_gdb_thread): Delete.
226 (dec_thread_update_thread_list): Delete.
227 (dec_thread_find_new_threads): Rename to ...
228 (dec_thread_update_thread_list): ... this. Delete GDB-size
229 threads that are no longer found in dec_thread_list.
230 (resync_thread_list): Delete.
231 (dec_thread_wait): Call dec_thread_update_thread_list instead of
234 2014-10-15 Pedro Alves <palves@redhat.com>
236 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
237 * remote.c (remote_update_thread_list): Skip calling prune_threads
238 if any thread listing method is supported, and instead walk over
239 the set of remote threads listed, deleting those that are not
240 found in GDB's thread list.
242 2014-10-15 Pedro Alves <palves@redhat.com>
244 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
245 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
246 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
247 (bsd_uthread_target): Adjust.
248 * corelow.c (core_open): Adjust.
249 * dec-thread.c (dec_thread_find_new_threads): Update comment.
250 (dec_thread_update_thread_list): New function.
251 (init_dec_thread_ops): Adjust.
252 * gdbthread.h (prune_threads): New declaration.
253 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
254 (thread_db_update_thread_list): ... this. Call prune_threads.
255 (init_thread_db_ops): Adjust.
256 * nto-procfs.c (procfs_find_new_threads): Rename to ...
257 (procfs_update_thread_list): ... this. Call prune_threads.
258 (procfs_attach, procfs_create_inferior, init_procfs_targets):
260 * obsd-nat.c (obsd_find_new_threads): Rename to ...
261 (obsd_update_thread_list): ... this. Call prune_threads.
262 (obsd_add_target): Adjust.
263 * procfs.c (procfs_target): Adjust.
264 (procfs_notice_thread): Update comment.
265 (procfs_find_new_threads): Rename to ...
266 (procfs_update_thread_list): ... this. Call prune_threads.
267 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
269 (ravenscar_wait): Adjust.
270 (ravenscar_find_new_threads): Rename to ...
271 (ravenscar_update_thread_list): ... this. Call prune_threads.
272 (init_ravenscar_thread_ops): Adjust.
273 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
274 (record_btrace_update_thread_list): ... this. Adjust comment.
275 (init_record_btrace_ops): Adjust.
276 * remote.c (remote_threads_info): Rename to ...
277 (remote_update_thread_list): ... this. Call prune_threads.
278 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
280 * sol-thread.c (check_for_thread_db): Adjust.
281 (sol_find_new_threads_callback): Rename to ...
282 (sol_update_thread_list_callback): ... this.
283 (sol_find_new_threads): Rename to ...
284 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
285 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
286 * target-delegates.c: Regenerate.
287 * target.c (target_find_new_threads): Rename to ...
288 (target_update_thread_list): ... this.
289 * target.h (struct target_ops): Rename to_find_new_threads field
290 to to_update_thread_list.
291 (target_find_new_threads): Rename to ...
292 (target_update_thread_list): ... this.
293 * thread.c (prune_threads): Make extern.
294 (update_thread_list): Adjust.
296 2014-10-15 Pedro Alves <palves@redhat.com>
298 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
299 Add describing comment. Return -1 if the qL packet is not
301 (struct thread_item, thread_item_t): Move higher up in
302 the file. Add comments.
303 (struct threads_parsing_context): Move higher up in
304 the file, add comments, and remote to ...
305 (struct threads_listing_context): ... this.
306 (remote_newthread_step): Don't add the thread to GDB's thread
307 database here. Instead push it to the thread_listing_context
309 (remote_find_new_threads): Rename to ...
310 (remote_get_threads_with_ql): ... this. Add target_ops and
311 targets_listing_context parameters. Pass down context.
312 (start_thread): Adjust.
313 (clear_threads_parsing_context): Rename to ...
314 (clear_threads_listing_context): ... this.
315 (remote_get_threads_with_qxfer): New, with parts salvaged from old
317 (remote_get_threads_with_qthreadinfo): Ditto.
318 (remote_threads_info): Reimplement.
320 2014-10-15 Pedro Alves <palves@redhat.com>
322 * infrun.c (resume): Don't force displaced-stepping for all
323 single-steps on software single-stepping archs.
325 2014-10-15 Pedro Alves <palves@redhat.com>
327 * breakpoint.c (single_step_breakpoints): Delete global.
328 (insert_single_step_breakpoint): Adjust to store the breakpoint
329 pointer in the current thread.
330 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
331 (cancel_single_step_breakpoints): Delete functions.
332 (breakpoint_has_location_inserted_here): Make extern.
333 (single_step_breakpoint_inserted_here_p): Adjust to walk the
335 * breakpoint.h (breakpoint_has_location_inserted_here): New
337 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
338 (cancel_single_step_breakpoints): Remove declarations.
339 * gdbthread.h (struct thread_control_state)
340 <single_step_breakpoints>: New field.
341 (delete_single_step_breakpoints)
342 (thread_has_single_step_breakpoints_set)
343 (thread_has_single_step_breakpoint_here): New declarations.
344 * infrun.c (follow_exec): Also clear the single-step breakpoints.
345 (singlestep_breakpoints_inserted_p, singlestep_ptid)
346 (singlestep_pc): Delete globals.
347 (infrun_thread_ptid_changed): Remove references to removed
349 (resume_cleanups): Delete the current thread's single-step
351 (maybe_software_singlestep): Remove references to removed globals.
352 (resume): Adjust to use thread_has_single_step_breakpoints_set and
353 delete_single_step_breakpoints.
354 (init_wait_for_inferior): Remove references to removed globals.
355 (delete_thread_infrun_breakpoints): Delete the thread's
356 single-step breakpoints too.
357 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
358 single-step breakpoints here.
359 (delete_stopped_threads_single_step_breakpoints): New function.
360 (adjust_pc_after_break): Adjust to use
361 thread_has_single_step_breakpoints_set.
362 (handle_inferior_event): Remove references to removed globals.
363 Use delete_stopped_threads_single_step_breakpoints.
364 (handle_signal_stop): Adjust to per-thread single-step
365 breakpoints. Swap test order to do cheaper tests first.
366 (switch_back_to_stepped_thread): Extend debug output. Remove
367 references to removed globals.
368 * record-full.c (record_full_wait_1): Adjust to per-thread
369 single-step breakpoints.
370 * thread.c (delete_single_step_breakpoints)
371 (thread_has_single_step_breakpoints_set)
372 (thread_has_single_step_breakpoint_here): New functions.
373 (clear_thread_inferior_resources): Also delete the thread's
374 single-step breakpoints.
376 2014-10-15 Pedro Alves <palves@redhat.com>
378 * thread.c (delete_thread_breakpoint): New function.
379 (delete_step_resume_breakpoint)
380 (delete_exception_resume_breakpoint): Use it.
381 (delete_at_next_stop): New function.
382 (clear_thread_inferior_resources): Use delete_at_next_stop.
384 2014-10-15 Pedro Alves <palves@redhat.com>
386 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
387 (breakpoint_inserted_here_p): ... here. Remove special case for
388 software single-step breakpoints.
389 (find_non_raw_software_breakpoint_inserted_here): Inline ...
390 (software_breakpoint_inserted_here_p): ... here. Remove special
391 case for software single-step breakpoints.
392 (bp_target_info_copy_insertion_state)
393 (deprecated_insert_raw_breakpoint)
394 (deprecated_remove_raw_breakpoint): Delete functions.
395 * breakpoint.h (deprecated_insert_raw_breakpoint)
396 (deprecated_remove_raw_breakpoint): Remove declarations.
398 2014-10-15 Pedro Alves <palves@redhat.com>
401 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
402 Delete array globals.
403 (single_step_breakpoints): New global.
404 (breakpoint_xfer_memory): Remove special handling for single-step
406 (update_breakpoints_after_exec): Delete bp_single_step
408 (detach_breakpoints): Remove special handling for single-step
410 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
411 (bpstat_stop_status): Add comment.
412 (bpstat_what, bptype_string, print_one_breakpoint_location)
413 (adjust_breakpoint_address, init_bp_location): Handle
415 (new_single_step_breakpoint): New function.
416 (set_momentary_breakpoint, bkpt_remove_location): Remove special
417 handling for single-step breakpoints.
418 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
419 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
421 (detach_single_step_breakpoints, find_single_step_breakpoint):
423 (breakpoint_has_location_inserted_here): New function.
424 (single_step_breakpoint_inserted_here_p): Rewrite.
425 * breakpoint.h: Remove FIXME.
426 (enum bptype) <bp_single_step>: New enum value.
427 (insert_single_step_breakpoint): Update comment.
428 * infrun.c (resume_cleanups)
429 (delete_step_thread_step_resume_breakpoint): Remove single-step
431 (fetch_inferior_event): Install a cleanup that removes infrun
433 (switch_back_to_stepped_thread) <expect thread advanced also>:
434 Clear step-over info.
436 2014-10-15 Pedro Alves <palves@redhat.com>
438 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
439 (delete_thread_infrun_breakpoints): New function, with parts
440 salvaged from delete_step_resume_breakpoint_callback.
441 (delete_step_thread_step_resume_breakpoint): Delete.
442 (for_each_just_stopped_thread_callback_func): New typedef.
443 (for_each_just_stopped_thread): New function.
444 (delete_just_stopped_threads_infrun_breakpoints): New function.
445 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
446 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
448 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
450 2014-10-15 Pedro Alves <palves@redhat.com>
452 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
453 trying to step past a non-steppable watchpoint.
454 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
456 * infrun.c (struct step_over_info): Add new field
457 'nonsteppable_watchpoint_p' and adjust comments.
458 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
460 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
461 (stepping_past_nonsteppable_watchpoint): New function.
462 (step_over_info_valid_p): Also return true if stepping past a
463 nonsteppable watchpoint.
464 (proceed): Adjust call to set_step_over_info. Remove reference to
466 (init_wait_for_inferior): Remove reference to init_infwait_state.
467 (waiton_ptid): Delete global.
468 (struct execution_control_state)
469 <stepped_after_stopped_by_watchpoint>: Delete field.
470 (wait_for_inferior, fetch_inferior_event): Always pass
471 minus_one_ptid to target_wait.
472 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
474 (init_infwait_state): Delete function.
475 (handle_inferior_event): Remove infwait_state handling.
476 (handle_signal_stop) <watchpoints handling>: Adjust after
477 stepped_after_stopped_by_watchpoint removal. Don't remove
478 breakpoints here nor set infwait_state. Set the thread's
479 stepping_over_watchpoint flag, and call keep_going instead.
480 (keep_going): Handle stepping_over_watchpoint. Adjust
481 set_step_over_info calls.
482 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
485 2014-10-15 Pedro Alves <palves@redhat.com>
487 * infrun.c (step_over_info_valid_p): New function.
488 (resume): Use step_over_info_valid_p instead of checking the
489 threads's trap_expected flag.
491 2014-10-15 Doug Evans <dje@google.com>
492 Walfred Tedeschi <walfred.tedeschi@intel.com>
495 * python/lib/gdb/__init__.py (packages): Add "printer".
496 * python/lib/gdb/command/bound_registers.py: Moved to ...
497 * python/lib/gdb/printer/bound_registers.py: ... here.
498 Add printer to global set of builtin printers. Rename printer from
499 "bound" to "mpx_bound128".
500 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
501 registered as global "builtin" printer.
502 (add_builtin_pretty_printer): New function.
503 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
504 gdb/printer/__init__.py.
506 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
508 * Makefile.in (SFILES): Remove d-support.c.
509 (COMMON_OBS): Remove d-support.o.
510 * d-lang.h (d_parse_symbol): Remove declaration.
511 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
512 * d-support.c: Remove file.
514 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
516 * gdb/infrun.c (process_event_stop_test): Apply
517 gdbarch_addr_bits_remove to longjmp resume address.
519 2014-10-15 Pedro Alves <palves@redhat.com>
521 * regformats/microblaze.dat: Delete file.
523 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
525 * features/Makefile (microblaze-expedite): Replace pc with rpc.
526 * regformats/microblaze-with-stack-protect.dat: Regenerate.
528 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
530 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
533 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
537 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
540 2014-10-14 Joel Brobecker <brobecker@adacore.com>
542 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
543 of the case where the second operand is a pointer.
544 <BINOP_SUB>: Likewise.
546 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
548 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
549 only if it is not NULL.
550 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
551 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
552 (struct probe_ops) <clear_semaphore>: Likewise.
553 * tracepoint.c (start_tracing): Call set_semaphore only if it is
555 (stop_tracing): Likewise, for clear_semaphore.
557 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
559 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
560 using language_c, instead of current_language.
562 2014-10-13 Doug Evans <dje@google.com>
564 * python/py-objfile.c (objfpy_initialize): New function.
565 (objfpy_new, objfile_to_objfile_object): Call it.
566 * python/py-progspace.c (pspy_initialize): New function.
567 (pspy_new, pspace_to_pspace_object): Call it.
569 2014-10-13 Miroslav Franc <mfranc@redhat.com>
570 Jan Kratochvil <jan.kratochvil@redhat.com>
572 Fix "save breakpoints" for "catch" command.
573 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
576 2014-10-12 Miroslav Franc <mfranc@redhat.com>
578 Fix "save breakpoints" for "disable $bpnum" command.
579 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
581 2014-10-10 Pedro Alves <palves@redhat.com>
583 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
584 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
585 (HFILES_NO_SRCDIR): Remove solib-irix.h.
586 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
588 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
589 * configure.ac: Remove references to IRIX.
590 * configure.host: Add *-*-irix* to the obsolete hosts section.
591 Remove all other references to irix.
592 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
595 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
597 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
598 isn't valid, release the tdesc arch data and return NULL.
600 2014-10-10 Pedro Alves <palves@redhat.com>
602 * linux-tdep.c: Include observer.h.
603 (linux_inferior_data): New global.
604 (struct linux_info): New structure.
605 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
606 (get_linux_inferior_data): New functions.
607 (linux_vsyscall_range): Rename to ...
608 (linux_vsyscall_range_raw): ... this.
609 (linux_vsyscall_range): New function; handles caching.
610 (_initialize_linux_tdep): Register linux_inferior_data. Install
611 inferior_exit and inferior_appeared observers.
613 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
614 Pedro Alves <palves@redhat.com>
617 * solib-svr4.c (svr4_read_so_list): Rename to ...
618 (svr4_current_sos_1): ... this and change the function comment.
619 (svr4_current_sos): New function.
621 2014-10-10 Pedro Alves <palves@redhat.com>
623 * arch-utils.c (default_vsyscall_range): New function.
624 * arch-utils.h (default_vsyscall_range): New declaration.
625 * gdbarch.sh (vsyscall_range): New hook.
626 * gdbarch.h, gdbarch.c: Regenerate.
627 * linux-tdep.c (linux_vsyscall_range): New function.
628 (linux_init_abi): Install linux_vsyscall_range as
629 vsyscall_range gdbarch hook.
630 * memrange.c (address_in_mem_range): New function.
631 * memrange.h (address_in_mem_range): New declaration.
632 * symfile-mem.c (find_vdso_size): Delete function.
633 (add_vsyscall_page): Use gdbarch_vsyscall_range.
635 2014-10-10 Pedro Alves <palves@redhat.com>
637 * infrun.c (normal_stop): Fix typo in comment.
639 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
642 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
643 typo when using logical AND to determine instruction type.
645 2014-10-09 Yao Qi <yao@codesourcery.com>
647 * infrun.c (handle_signal_stop): Remove local variable
650 2014-10-08 Stan Shebs <stan@codesourcery.com>
652 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
654 2014-10-08 Gary Benson <gbenson@redhat.com>
656 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
658 2014-10-08 Gary Benson <gbenson@redhat.com>
660 * common/common-defs.h: Include common-exceptions.h.
661 * exceptions.h: Do not include common-exceptions.h.
663 2014-10-08 Gary Benson <gbenson@redhat.com>
665 * common/common-defs.h: Include cleanups.h.
666 * common/common-exceptions.c: Do not include cleanups.h.
669 2014-10-08 Gary Benson <gbenson@redhat.com>
671 * ada-lang.c: Do not include exceptions.h.
672 * ada-valprint.c: Likewise.
673 * amd64-tdep.c: Likewise.
674 * auto-load.c: Likewise.
676 * break-catch-throw.c: Likewise.
677 * breakpoint.c: Likewise.
678 * btrace.c: Likewise.
679 * c-lang.c: Likewise.
680 * cli/cli-cmds.c: Likewise.
681 * cli/cli-interp.c: Likewise.
682 * cli/cli-script.c: Likewise.
683 * completer.c: Likewise.
684 * corefile.c: Likewise.
685 * corelow.c: Likewise.
686 * cp-abi.c: Likewise.
687 * cp-support.c: Likewise.
688 * cp-valprint.c: Likewise.
689 * darwin-nat.c: Likewise.
690 * dwarf2-frame-tailcall.c: Likewise.
691 * dwarf2-frame.c: Likewise.
692 * dwarf2loc.c: Likewise.
693 * dwarf2read.c: Likewise.
695 * event-loop.c: Likewise.
696 * event-top.c: Likewise.
697 * f-valprint.c: Likewise.
698 * frame-unwind.c: Likewise.
700 * gdbtypes.c: Likewise.
701 * gnu-v2-abi.c: Likewise.
702 * gnu-v3-abi.c: Likewise.
703 * guile/scm-auto-load.c: Likewise.
704 * guile/scm-breakpoint.c: Likewise.
705 * guile/scm-cmd.c: Likewise.
706 * guile/scm-frame.c: Likewise.
707 * guile/scm-lazy-string.c: Likewise.
708 * guile/scm-param.c: Likewise.
709 * guile/scm-symbol.c: Likewise.
710 * guile/scm-type.c: Likewise.
711 * hppa-hpux-tdep.c: Likewise.
712 * i386-tdep.c: Likewise.
713 * inf-loop.c: Likewise.
714 * infcall.c: Likewise.
715 * infcmd.c: Likewise.
716 * infrun.c: Likewise.
717 * interps.c: Likewise.
718 * interps.h: Likewise.
720 * linespec.c: Likewise.
721 * linux-nat.c: Likewise.
722 * linux-thread-db.c: Likewise.
723 * m32r-rom.c: Likewise.
725 * memory-map.c: Likewise.
726 * mi/mi-cmd-break.c: Likewise.
727 * mi/mi-cmd-stack.c: Likewise.
728 * mi/mi-interp.c: Likewise.
729 * mi/mi-main.c: Likewise.
730 * monitor.c: Likewise.
731 * nto-procfs.c: Likewise.
732 * objc-lang.c: Likewise.
733 * p-valprint.c: Likewise.
735 * ppc-linux-tdep.c: Likewise.
736 * printcmd.c: Likewise.
738 * python/py-auto-load.c: Likewise.
739 * python/py-breakpoint.c: Likewise.
740 * python/py-cmd.c: Likewise.
741 * python/py-finishbreakpoint.c: Likewise.
742 * python/py-frame.c: Likewise.
743 * python/py-framefilter.c: Likewise.
744 * python/py-function.c: Likewise.
745 * python/py-gdb-readline.c: Likewise.
746 * python/py-inferior.c: Likewise.
747 * python/py-infthread.c: Likewise.
748 * python/py-lazy-string.c: Likewise.
749 * python/py-linetable.c: Likewise.
750 * python/py-param.c: Likewise.
751 * python/py-prettyprint.c: Likewise.
752 * python/py-symbol.c: Likewise.
753 * python/py-type.c: Likewise.
754 * python/py-value.c: Likewise.
755 * python/python-internal.h: Likewise.
756 * python/python.c: Likewise.
757 * record-btrace.c: Likewise.
758 * record-full.c: Likewise.
759 * regcache.c: Likewise.
760 * remote-fileio.c: Likewise.
761 * remote-mips.c: Likewise.
762 * remote.c: Likewise.
763 * rs6000-aix-tdep.c: Likewise.
764 * rs6000-nat.c: Likewise.
766 * solib-darwin.c: Likewise.
767 * solib-dsbt.c: Likewise.
768 * solib-frv.c: Likewise.
769 * solib-ia64-hpux.c: Likewise.
770 * solib-spu.c: Likewise.
771 * solib-svr4.c: Likewise.
773 * spu-tdep.c: Likewise.
775 * stap-probe.c: Likewise.
776 * symfile-mem.c: Likewise.
777 * symmisc.c: Likewise.
778 * target.c: Likewise.
779 * thread.c: Likewise.
781 * tracepoint.c: Likewise.
782 * tui/tui-interp.c: Likewise.
783 * typeprint.c: Likewise.
785 * valarith.c: Likewise.
786 * valops.c: Likewise.
787 * valprint.c: Likewise.
789 * varobj.c: Likewise.
790 * windows-nat.c: Likewise.
791 * xml-support.c: Likewise.
793 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
795 * mips-tdep.c (add_offset_16): Rewrite to implement what the
797 (extended_mips16_next_pc): Update accordingly.
799 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
801 * mips-tdep.c (mips16_instruction_is_compact_branch): New
803 (micromips_instruction_is_compact_branch): Likewise.
804 (mips16_scan_prologue): Terminate scanning upon seeing a branch
805 or a compact jump, reaching a jump delay slot, or seeing a
806 second non-prologue instruction.
807 (micromips_scan_prologue): Also terminate scanning upon seeing a
808 compact branch or jump, or reaching a branch or jump delay slot.
809 (mips32_scan_prologue): Terminate scanning upon reaching a branch
810 or jump delay slot, or seeing a second non-prologue instruction.
811 (mips32_instruction_has_delay_slot): Retain instruction
812 examination code only, update arguments accordingly and move
813 instruction fetch pieces to...
814 (mips32_insn_at_pc_has_delay_slot): ... this new function.
815 (micromips_instruction_has_delay_slot): Likewise and to...
816 (micromips_insn_at_pc_has_delay_slot): ... this new function.
817 (mips16_instruction_has_delay_slot): Likewise and to...
818 (mips16_insn_at_pc_has_delay_slot): ... this new function.
819 (mips_single_step_through_delay): Update accordingly.
820 (mips_adjust_breakpoint_address): Likewise.
822 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
824 * mips-tdep.c (micromips_instruction_has_delay_slot): When
825 !mustbe32 also return 1 for 32-bit instructions.
826 (mips16_instruction_has_delay_slot): Likewise. Add an
829 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
831 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
834 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
836 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
838 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
839 for the breakpoint's address. Don't preinitialize `placed_size'.
840 (insert_bp_location): Set `reqstd_address' rather than
842 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
843 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
845 (bkpt_remove_location): Likewise.
846 (deprecated_insert_raw_breakpoint): Likewise.
847 (deprecated_remove_raw_breakpoint): Likewise.
848 (find_single_step_breakpoint): Likewise.
849 * mem-break.c (default_memory_insert_breakpoint): Use
850 `reqstd_address' for the breakpoint's address. Don't set
851 `placed_address' or `placed_size' if breakpoint contents couldn't
852 have been determined.
853 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
854 the breakpoint's address.
855 (remote_insert_hw_breakpoint): Likewise. Don't set
856 `placed_address' or `placed_size' if breakpoint couldn't have been
858 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
859 `reqstd_address' for the breakpoint's address.
860 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
861 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
862 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
863 * microblaze-linux-tdep.c
864 (microblaze_linux_memory_remove_breakpoint): Likewise.
865 * monitor.c (monitor_insert_breakpoint): Likewise.
866 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
867 (procfs_insert_hw_breakpoint): Likewise.
868 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
869 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
870 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
871 * remote-mips.c (mips_insert_breakpoint): Likewise.
872 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
874 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
876 * valops.c (value_assign): Check for bit field assignments
877 before calling architecture-specific register value
878 conversion functions.
880 2014-10-03 Pierre Muller <muller@sourceware.org>
882 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
884 2014-10-02 Pedro Alves <palves@redhat.com>
886 * breakpoint.c (breakpoints_should_be_inserted_now): Use
887 threads_are_executing.
888 * breakpoint.h (breakpoints_should_be_inserted_now): Add
890 * gdbthread.h (threads_are_executing): Declare.
891 (handle_signal_stop) <random signals>: Don't print about the
892 signal here if stopping.
893 (end_stepping_range): Don't notify observers here.
894 (normal_stop): Update the thread list. If stopped by a random
895 signal or a stepping range ended, notify observers.
896 * thread.c (threads_executing): New global.
897 (init_thread_list): Clear 'threads_executing'.
898 (set_executing): Set or clear 'threads_executing'.
899 (threads_are_executing): New function.
900 (update_threads_executing): New function.
901 (update_thread_list): Use it.
903 2014-10-02 Pedro Alves <palves@redhat.com>
906 * breakpoint.c (update_breakpoints_after_exec): Don't create
907 overlay, longjmp, std terminate nor exception breakpoints here.
909 2014-10-02 Pedro Alves <palves@redhat.com>
911 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
913 * inferior.c (find_inferior_for_program_space): Give preference to
914 the current inferior.
915 * inferior.h (find_inferior_for_program_space): Update comment.
916 * progspace.c (switch_to_program_space_and_thread): Prefer the
917 current inferior if it's bound to the program space requested. If
918 the inferior found doesn't have a PID yet, don't bother looking up
920 * progspace.h (switch_to_program_space_and_thread): Adjust
922 * thread.c (any_thread_of_process, any_live_thread_of_process):
923 Give preference to the current thread.
925 2014-10-01 Pedro Alves <palves@redhat.com>
927 * breakpoint.c (insert_bp_location): Error out if inserting a
928 software breakpoint at a read-only address.
929 * target.c (memory_xfer_check_region): New function, factored out
931 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
933 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
934 against the memory region attributes.
936 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
938 * NEWS: Announce new exit-code field in -list-thread-groups
940 * inferior.c (exit_inferior_1): Don't clear exit code.
941 (inferior_appeared): Clear exit code.
942 * mi/mi-main.c (print_one_inferior): Add printing of the exit
945 2014-10-01 Pedro Alves <palves@redhat.com>
947 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
948 GENERATED" along with emacs/vi read-only markers.
949 * regformats/aarch64.dat: Regenerate.
950 * regformats/arm-with-iwmmxt.dat: Regenerate.
951 * regformats/arm-with-neon.dat: Regenerate.
952 * regformats/arm-with-vfpv2.dat: Regenerate.
953 * regformats/arm-with-vfpv3.dat: Regenerate.
954 * regformats/i386/amd64-avx-linux.dat: Regenerate.
955 * regformats/i386/amd64-avx.dat: Regenerate.
956 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
957 * regformats/i386/amd64-avx512.dat: Regenerate.
958 * regformats/i386/amd64-linux.dat: Regenerate.
959 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
960 * regformats/i386/amd64-mpx.dat: Regenerate.
961 * regformats/i386/amd64.dat: Regenerate.
962 * regformats/i386/i386-avx-linux.dat: Regenerate.
963 * regformats/i386/i386-avx.dat: Regenerate.
964 * regformats/i386/i386-avx512-linux.dat: Regenerate.
965 * regformats/i386/i386-avx512.dat: Regenerate.
966 * regformats/i386/i386-linux.dat: Regenerate.
967 * regformats/i386/i386-mmx-linux.dat: Regenerate.
968 * regformats/i386/i386-mmx.dat: Regenerate.
969 * regformats/i386/i386-mpx-linux.dat: Regenerate.
970 * regformats/i386/i386-mpx.dat: Regenerate.
971 * regformats/i386/i386.dat: Regenerate.
972 * regformats/i386/x32-avx-linux.dat: Regenerate.
973 * regformats/i386/x32-avx.dat: Regenerate.
974 * regformats/i386/x32-avx512-linux.dat: Regenerate.
975 * regformats/i386/x32-avx512.dat: Regenerate.
976 * regformats/i386/x32-linux.dat: Regenerate.
977 * regformats/i386/x32.dat: Regenerate.
978 * regformats/microblaze-with-stack-protect.dat: Regenerate.
979 * regformats/mips-dsp-linux.dat: Regenerate.
980 * regformats/mips-linux.dat: Regenerate.
981 * regformats/mips64-dsp-linux.dat: Regenerate.
982 * regformats/mips64-linux.dat: Regenerate.
983 * regformats/nios2-linux.dat: Regenerate.
984 * regformats/rs6000/powerpc-32.dat: Regenerate.
985 * regformats/rs6000/powerpc-32l.dat: Regenerate.
986 * regformats/rs6000/powerpc-64l.dat: Regenerate.
987 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
988 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
989 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
990 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
991 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
992 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
993 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
994 * regformats/s390-linux32.dat: Regenerate.
995 * regformats/s390-linux32v1.dat: Regenerate.
996 * regformats/s390-linux32v2.dat: Regenerate.
997 * regformats/s390-linux64.dat: Regenerate.
998 * regformats/s390-linux64v1.dat: Regenerate.
999 * regformats/s390-linux64v2.dat: Regenerate.
1000 * regformats/s390-te-linux64.dat: Regenerate.
1001 * regformats/s390x-linux64.dat: Regenerate.
1002 * regformats/s390x-linux64v1.dat: Regenerate.
1003 * regformats/s390x-linux64v2.dat: Regenerate.
1004 * regformats/s390x-te-linux64.dat: Regenerate.
1005 * regformats/tic6x-c62x-linux.dat: Regenerate.
1006 * regformats/tic6x-c62x.dat: Regenerate.
1007 * regformats/tic6x-c64x-linux.dat: Regenerate.
1008 * regformats/tic6x-c64x.dat: Regenerate.
1009 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1010 * regformats/tic6x-c64xp.dat: Regenerate.
1012 2014-10-01 Pedro Alves <palves@redhat.com>
1014 * features/Makefile: Update comments.
1015 (XMLTOC): List all xml files we build C files from.
1016 (clean-cfiles): New rule.
1018 2014-10-01 Pedro Alves <palves@redhat.com>
1020 * features/i386/amd64-avx512-linux.c: Regenerate.
1021 * features/i386/amd64-avx512.c: Regenerate.
1022 * features/i386/x32-avx512-linux.c: Regenerate.
1023 * features/i386/x32-avx512.c: Regenerate.
1025 2014-10-01 Pedro Alves <palves@redhat.com>
1027 * features/Makefile (WHICH): Remove arm-with-m,
1028 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1030 2014-10-01 Pedro Alves <palves@redhat.com>
1032 * features/Makefile (clean): New rule.
1034 2014-10-01 Pedro Alves <palves@redhat.com>
1036 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1037 (zmm14h): Add missing end quotes.
1039 2014-10-01 Pedro Alves <palves@redhat.com>
1041 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1042 * features/aarch64.c: Regenerate.
1044 2014-09-30 Don Breazeal <donb@codesourcery.com>
1046 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1047 code so as to work with follow_fork_inferior.
1048 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1049 (inf_ttrace_create_inferior): Remove reference to
1050 inf_ttrace_vfork_ppid.
1051 (inf_ttrace_attach): Ditto.
1052 (inf_ttrace_detach): Ditto.
1053 (inf_ttrace_kill): Use current_inferior instead of
1054 inf_ttrace_vfork_ppid.
1055 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1056 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1057 inferior away from the parent.
1058 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1060 (follow_fork_inferior): New function.
1061 (follow_inferior_reset_breakpoints): Make function static.
1062 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1063 * linux-nat.c (linux_child_follow_fork): Move target-independent
1064 code to infrun.c:follow_fork_inferior.
1066 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1068 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1069 * gdbarch.c: Regenerate.
1070 * gdbarch.h: Likewise.
1071 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1072 gdbarch method 'regset_from_core_section'.
1073 (get_core_register_section): Remove handling for the case that
1074 regset == NULL and regset_from_core_section is defined.
1075 (get_core_registers): Drop check for deleted method.
1076 * procfs.c (procfs_do_thread_registers): Adjust comment.
1078 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1080 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1081 (linux_nat_make_corefile_notes): Remove.
1082 (linux_target_install_ops): Do not set target method
1083 'make_corefile_notes'.
1084 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1086 (linux_corefile_thread_callback): Instead of args->collect, call
1087 linux_collect_thread_registers.
1088 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1089 NULL unless there is a regset iterator.
1090 (linux_make_corefile_notes_1): Remove.
1091 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1092 by linux_make_corefile_notes.
1093 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1095 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1097 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1098 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1100 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1102 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1104 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1105 (xtensa_iterate_over_regset_sections): New.
1106 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1108 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1110 * vax-tdep.c (vax_regset_from_core_section): Remove.
1111 (vax_iterate_over_regset_sections): New.
1112 (vax_gdbarch_init): Adjust gdbarch initialization.
1114 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1116 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1117 (tilegx_regset_from_core_section): Remove.
1118 (tilegx_iterate_over_regset_sections): New.
1119 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1121 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1123 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1124 (sparc_iterate_over_regset_sections): New.
1125 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1126 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1128 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1129 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1130 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1131 target method 'make_corefile_notes'.
1133 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1135 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1136 'sizeof_gregset' and 'sizeof_fpregset'.
1137 * sh-tdep.c (sh_regset_from_core_section): Remove.
1138 (sh_iterate_over_regset_sections): New.
1139 (sh_gdbarch_init): Adjust gdbarch initialization.
1140 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1142 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1145 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1147 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1148 (score7_linux_iterate_over_regset_sections): New.
1149 (score_gdbarch_init): Adjust gdbarch initialization.
1151 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1153 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1155 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1156 method 'make_corefile_notes'.
1157 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1158 (ppcfbsd_regset_from_core_section): Remove.
1159 (ppcfbsd_iterate_over_regset_sections): New.
1160 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1162 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1163 (ppcnbsd_iterate_over_regset_sections): New.
1164 (ppcnbsd_init_abi): Adjust.
1165 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1166 (ppcobsd_iterate_over_regset_sections): New.
1167 (ppcobsd_init_abi): Adjust.
1168 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1169 (rs6000_aix_iterate_over_regset_sections): New.
1170 (rs6000_aix_init_osabi): Adjust.
1172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1174 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1175 (nios2_regset_from_core_section): Remove.
1176 (nios2_iterate_over_regset_sections): New.
1177 (nios2_linux_init_abi): Adjust gdbarch initialization.
1179 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1181 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1182 (am33_iterate_over_regset_sections): New.
1183 (am33_linux_init_osabi): Adjust gdbarch initialization.
1185 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1187 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1188 (mips_linux_iterate_over_regset_sections): New.
1189 (mips_linux_init_abi): Adjust gdbarch initialization.
1190 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1191 (mips64obsd_iterate_over_regset_sections): New.
1192 (mips64obsd_init_abi): Adjust.
1193 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1194 (mipsnbsd_iterate_over_regset_sections): New.
1195 (mipsnbsd_init_abi): Adjust.
1197 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1199 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1200 (m88k_iterate_over_regset_sections): New.
1201 (m88k_gdbarch_init): Adjust gdbarch initialization.
1203 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1205 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1206 (ia64_linux_iterate_over_regset_sections): New.
1207 (ia64_linux_init_abi): Adjust gdbarch initialization.
1209 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1211 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1212 (m68kbsd_iterate_over_regset_sections): New.
1213 (m68kbsd_init_abi): Adjust gdbarch initialization.
1214 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1215 (m68k_linux_iterate_over_regset_sections): New.
1216 (m68k_linux_init_abi): Adjust gdbarch initialization.
1218 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1220 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1221 (m32r_linux_regset_from_core_section): Remove.
1222 (m32r_linux_iterate_over_regset_sections): New.
1223 (m32r_linux_init_abi): Adjust gdbarch initialization.
1225 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1227 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1228 (amd64obsd_iterate_over_regset_sections): New.
1229 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1230 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1232 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1233 regset_from_core_section initialization.
1234 * i386-tdep.c (i386_regset_from_core_section): Remove.
1235 (i386_iterate_over_regset_sections): New.
1236 (i386_gdbarch_init): Adjust gdbarch initialization.
1237 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1238 (i386_iterate_over_regset_sections): New prototype.
1239 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1241 (i386obsd_aout_iterate_over_regset_sections): New.
1242 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1243 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1245 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1246 (amd64fbsd_init_abi): Call fbsd_init_abi.
1247 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1248 (i386fbsd4_init_abi): Call fbsd_init_abi.
1249 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1250 target method 'make_corefile_notes'.
1251 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1253 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1255 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1256 (hppa_hpux_iterate_over_regset_sections): New.
1257 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1258 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1259 (hppa_linux_iterate_over_regset_sections): New.
1260 (hppa_linux_init_abi): Adjust.
1261 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1262 (hppanbsd_iterate_over_regset_sections): New.
1263 (hppanbsd_init_abi): Adjust.
1264 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1265 (hppaobsd_iterate_over_regset_sections): New.
1266 (hppaobsd_init_abi): Adjust.
1268 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1270 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1271 (frv_linux_iterate_over_regset_sections): New.
1272 (frv_linux_init_abi): Adjust gdbarch initialization.
1274 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1276 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1277 (armbsd_iterate_over_regset_sections): New prototype.
1278 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1279 (armbsd_iterate_over_regset_sections): New.
1280 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1285 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1286 (alpha_linux_iterate_over_regset_sections): New.
1287 (alpha_linux_init_abi): Adjust gdbarch initialization.
1288 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1290 (alphanbsd_iterate_over_regset_sections): New prototype.
1292 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1294 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1296 (aarch64_linux_iterate_over_regset_sections): New.
1297 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1299 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1301 * fbsd-tdep.c: New file.
1302 * fbsd-tdep.h: New file.
1303 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1304 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1305 (ALLDEPFILES): Add fbsd-tdep.c.
1307 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1309 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1311 * gdbarch.h: Regenerate.
1312 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1314 (get_core_register_section): Add parameter 'regset' and use it, if
1315 set. Add parameter 'min_size' and verify the bfd section size
1317 (get_core_registers_cb): Add parameter 'regset' and pass it to
1318 get_core_register section. For the "standard" register sections
1319 ".reg" and ".reg2", set an appropriate default for human_name.
1320 (get_core_registers): Don't abort when the gdbarch has an iterator
1321 but no regset_from_core_section. Add NULL/0 for parameters
1322 'regset'/'min_size' in calls to get_core_register_section.
1323 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1324 'regset' and use it instead of calling the
1325 regset_from_core_section gdbarch method.
1326 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1327 * i386-tdep.c (i386_supply_xstateregset)
1328 (i386_collect_xstateregset, i386_xstateregset): Moved to
1330 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1332 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1333 core file support only if the regset iterator hasn't been set.
1334 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1335 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1336 Moved from i386-tdep.c and renamed to *_linux*.
1337 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1338 each callback invocation. Allow any .reg-xstate size when reading
1340 * amd64-tdep.c (amd64_supply_xstateregset)
1341 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1343 (amd64_regset_from_core_section): Remove.
1344 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1345 install an amd64-specific regset_from_core_section gdbarch method.
1346 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1347 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1348 Moved from amd64-tdep.c and renamed to *_linux*.
1349 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1350 to each callback invocation. Allow any .reg-xstate size when
1351 reading from a core file.
1352 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1353 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1354 each callback invocation.
1355 (arm_linux_init_abi): No longer set the regset_from_core_section
1357 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1358 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1359 each callback invocation.
1360 (ppc_linux_init_abi): No longer set the regset_from_core_section
1362 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1363 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1364 (s390_regset_from_core_section): Remove.
1365 (s390_iterate_over_regset_sections): Add regset parameter to each
1366 callback invocation.
1367 (s390_gdbarch_init): No longer set the regset_from_core_section
1368 gdbarch method. Drop initialization of deleted tdep fields.
1370 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1372 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1373 (amd64_linux_iterate_over_regset_sections): New.
1374 (amd64_linux_init_abi_common): Don't install the regset section
1375 list, but the new iterator in gdbarch.
1376 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1377 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1378 (arm_linux_iterate_over_regset_sections): ...here. New function.
1379 (arm_linux_init_abi): Set iterator instead of section list.
1380 * corelow.c (get_core_registers_cb): New function, logic moved
1382 (get_core_registers): ...loop body here. Use new iterator method
1383 instead of walking through the regset section list.
1384 * gdbarch.sh: Remove 'core_regset_sections'. New method
1385 'iterate_over_regset_sections'. New typedef
1386 'iterate_over_regset_sections_cb'.
1387 * gdbarch.c: Regenerate.
1388 * gdbarch.h: Likewise.
1389 * i386-linux-tdep.c (i386_linux_regset_sections)
1390 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1392 (i386_linux_iterate_over_regset_sections): New.
1393 (i386_linux_init_abi): Don't choose a regset section list, but
1394 install new iterator in gdbarch.
1395 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1396 (linux_collect_regset_section_cb): New function, logic moved
1398 (linux_collect_thread_registers): ...loop body here. Use iterator
1399 method instead of walking through list.
1400 (linux_make_corefile_notes_1): Check for presence of iterator
1401 method instead of regset section list.
1402 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1403 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1404 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1405 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1406 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1407 (ppc_linux_init_abi): Don't choose from above regset section
1408 lists, but install new iterator in gdbarch.
1409 * regset.h (struct core_regset_section): Remove.
1410 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1411 have_linux_v1, have_linux_v2, and have_tdb.
1412 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1413 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1414 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1415 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1416 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1417 (s390_iterate_over_regset_sections): ...here. New function. Use
1419 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1420 regset section lists, but install new iterator.
1422 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1424 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1426 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1428 * progspace.c (print_program_space): Don't prune program spaces
1429 before printing them.
1431 2014-09-25 Pedro Alves <palves@redhat.com>
1433 * infrun.c (user_visible_resume_ptid): Don't check
1434 singlestep_breakpoints_inserted_p.
1436 2014-09-25 Pedro Alves <palves@redhat.com>
1438 * breakpoint.c (should_be_inserted): Add debug output.
1440 2014-09-25 Pedro Alves <palves@redhat.com>
1442 * infrun.c (stepping_past_instruction_at)
1443 (clear_exit_convenience_vars): Point at infrun.h instead of
1445 (handle_signal_stop): Fix typo.
1447 2014-09-24 Yao Qi <yao@codesourcery.com>
1449 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1452 2014-09-22 Gary Benson <gbenson@redhat.com>
1454 * target.c (target_stop): Updated comment.
1456 2014-09-22 Gary Benson <gbenson@redhat.com>
1458 * target/target.h (target_stop_ptid): Renamed as...
1459 (target_stop_and_wait): New function. Updated comment.
1461 (target_continue_ptid): Renamed as...
1462 (target_continue_no_signal): New function. Updated comment.
1465 2014-09-22 Pedro Alves <palves@redhat.com>
1467 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1469 * breakpoint.c (enum ugll_insert_mode): New enum.
1470 (always_inserted_mode): Now a plain boolean.
1471 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1472 (breakpoints_always_inserted_mode): Delete.
1473 (breakpoints_should_be_inserted_now): New function.
1474 (insert_breakpoints): Pass UGLL_INSERT to
1475 update_global_location_list instead of calling
1476 insert_breakpoint_locations manually.
1477 (create_solib_event_breakpoint_1): New, factored out from ...
1478 (create_solib_event_breakpoint): ... this.
1479 (create_and_insert_solib_event_breakpoint): Use
1480 create_solib_event_breakpoint_1 instead of calling
1481 insert_breakpoint_locations manually.
1482 (update_global_location_list): Change parameter type from boolean
1483 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1484 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1485 (update_global_location_list_nothrow): Change parameter type from
1486 boolean to enum ugll_insert_mode.
1487 (_initialize_breakpoint): "breakpoint always-inserted" option is
1488 now a boolean command. Update help text.
1489 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1490 (breakpoints_should_be_inserted_now): New declaration.
1491 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1492 Remove breakpoints_always_inserted_mode check.
1493 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1494 * remote.c (remote_start_remote): Likewise.
1496 2014-09-22 Pedro Alves <palves@redhat.com>
1498 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1499 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1500 Instead, pass UGLL_INSERT to update_global_location_list.
1501 (update_global_location_list): Change parameter type from boolean
1502 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1503 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1504 (create_solib_event_breakpoint_1): New, factored out from ...
1505 (create_solib_event_breakpoint): ... this.
1506 (create_and_insert_solib_event_breakpoint): Use
1507 create_solib_event_breakpoint_1 instead of calling
1508 insert_breakpoint_locations manually.
1509 (update_global_location_list): Handle UGLL_INSERT.
1511 2014-09-22 Pedro Alves <palves@redhat.com>
1513 * breakpoint.c (enum ugll_insert_mode): New enum.
1514 (update_global_location_list)
1515 (update_global_location_list_nothrow): Change parameter type from
1516 boolean to enum ugll_insert_mode. All callers adjusted.
1518 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1520 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1521 SystemTap support in GDB.
1523 2014-09-19 Don Breazeal <donb@codesourcery.com>
1525 * linux-nat.c (linux_handle_extended_wait): Call
1526 linux_ptrace_get_extended_event.
1527 (wait_lwp): Call linux_is_extended_waitstatus.
1528 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1529 and linux_is_extended_waitstatus.
1530 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1531 linux_ptrace_get_extended_event.
1532 (linux_ptrace_get_extended_event): New function.
1533 (linux_is_extended_waitstatus): New function.
1534 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1535 (linux_is_extended_waitstatus): New declarations.
1537 2014-09-19 Yao Qi <yao@codesourcery.com>
1539 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1540 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1541 comments. Callers update.
1542 (dwarf_decode_lines): Likewise.
1543 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1544 comments. Skip the line table if 'lowpc' is greater than
1545 'address'. Don't check
1546 dwarf2_per_objfile->has_section_at_zero.
1548 2014-09-18 Doug Evans <dje@google.com>
1550 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1551 * python/py-symtab.c (stpy_get_producer): New function.
1552 (symtab_object_getset): Add "producer" attribute.
1554 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1557 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1558 (do_captured_read_memory_integer): Remove.
1559 (safe_read_memory_integer): Use target_read_memory directly instead
1560 of catching errors in do_captured_read_memory_integer.
1562 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1564 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1567 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1569 * objc-lang.c (find_implementation_from_class): Remove dead code.
1571 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1574 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1575 "fprintf_unfiltered (gdb_stdlog...)".
1577 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1579 PR breakpoints/12526
1580 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1582 * breakpoint.c (watch_command_1): Use these fields to retain
1583 bitfield information.
1584 (extract_bitfield_from_watchpoint_value): New function.
1585 (watchpoint_check): Use it.
1586 (update_watchpoint): Use it. Optimize the address and length of a
1587 HW watchpoint pointing to a bitfield.
1588 * value.h (unpack_value_bitfield): New prototype.
1589 * value.c (unpack_value_bitfield): Make extern.
1591 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1593 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1595 * gnu-nat.c (inf_threads): New function.
1596 * gnu-nat.h (inf_threads_ftype): New typedef.
1597 (inf_threads): New declaration.
1598 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1599 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1600 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1601 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1602 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1603 (i386_gnu_dr_get_control): New functions.
1604 (reg_addr): New structure.
1605 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1606 i386 debugging register hooks.
1607 * NEWS: Mention this.
1609 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1611 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1612 vector data transfer instructions.
1613 (arm_record_coproc_data_proc): Updated.
1615 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1617 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1618 arm_record_exreg_ld_st_insn.
1619 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1622 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1624 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1625 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1626 processing instructions.
1628 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1630 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1631 for advance SIMD struct ld/st insn.
1632 (thumb2_record_decode_insn_handler): Replace stub handler with
1633 thumb2_record_asimd_struct_ld_st.
1635 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1637 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1638 for asimd, vfp and coprocessor insns.
1639 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1640 and coprocessor insns.
1641 (thumb2_record_coproc_insn): New function.
1642 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1644 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1647 2014-09-13 Doug Evans <xdje42@gmail.com>
1649 * NEWS: Mention new "queue-signal" command.
1650 * infcmd.c (queue_signal_command): New function.
1651 (_initialize_infcmd): Add new queue-signal command.
1653 2014-09-13 Doug Evans <xdje42@gmail.com>
1655 * linux-nat.c (wait_lwp): Add debugging printf.
1656 (linux_nat_wait_1): Ditto.
1658 2014-09-12 Pedro Alves <palves@redhat.com>
1660 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1661 (create_and_insert_solib_event_breakpoint): New functions.
1662 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1663 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1664 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1665 (remove_dbx_link_breakpoint): Delete function.
1666 (insert_dbx_link_bpt_in_file): Use
1667 create_and_insert_solib_event_breakpoint instead of
1668 deprecated_insert_raw_breakpoint.
1669 (procfs_wait): Don't check whether we hit __dbx_link here.
1670 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1672 * solib-irix.c (base_breakpoint): Delete global.
1673 (disable_break): Delete function.
1674 (enable_break): Use create_solib_event_breakpoint
1675 instead of deprecated_insert_raw_breakpoint.
1676 (irix_solib_handle_event): New function.
1677 (irix_solib_create_inferior_hook): Don't run the target or disable
1678 the mapping-complete breakpoint here.
1679 (_initialize_irix_solib): Install irix_solib_handle_event as
1680 so_ops->handle_event hook.
1682 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1683 Ulrich Weigand <uweigand@de.ibm.com>
1686 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1687 instead of read_memory_unsigned_integer.
1689 2014-09-12 Gary Benson <gbenson@redhat.com>
1691 * nat/linux-waitpid.c: Include common-defs.h.
1692 [GDBSERVER]: Add FIXME comment.
1693 [!GDBSERVER]: Don't include defs.h or signal.h.
1694 (linux_debug) [!GDBSERVER]: Remove empty block.
1696 2014-09-12 Gary Benson <gbenson@redhat.com>
1698 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1699 Don't include defs.h or server.h.
1701 2014-09-12 Gary Benson <gbenson@redhat.com>
1703 * nat/linux-btrace.c: Include common-defs.h.
1704 Don't include defs.h, server.h or gdbthread.h.
1705 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1707 2014-09-12 Gary Benson <gbenson@redhat.com>
1709 * common/agent.c: Include common-defs.h.
1710 Don't include defs.h or server.h.
1711 * common/buffer.c: Likewise.
1712 * common/common-debug.c: Likewise.
1713 * common/common-utils.c: Likewise.
1714 * common/errors.c: Likewise.
1715 * common/filestuff.c: Likewise.
1716 * common/format.c: Likewise.
1717 * common/gdb_vecs.c: Likewise.
1718 * common/print-utils.c: Likewise.
1719 * common/ptid.c: Likewise.
1720 * common/rsp-low.c: Likewise.
1721 * common/signals.c: Likewise.
1722 * common/vec.c: Likewise.
1723 * common/xml-utils.c: Likewise.
1724 * nat/linux-osdata.c: Likewise.
1725 * nat/linux-procfs.c: Likewise.
1726 * nat/linux-ptrace.c: Likewise.
1727 * nat/mips-linux-watch.c: Likewise.
1728 * target/waitstatus.c: Likewise.
1730 2014-09-12 Tom Tromey <tromey@redhat.com>
1731 Gary Benson <gbenson@redhat.com>
1733 * common/common-regcache.h: New file.
1734 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1735 * regcache.h: Include common-regcache.h.
1736 (regcache_read_pc): Don't declare.
1737 * regcache.c (get_thread_regcache_for_ptid): New function.
1738 * nat/linux-btrace.c: Don't include regcache.h.
1739 Include common-regcache.h.
1740 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1742 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1744 * regcache.h (struct regset): Declare.
1746 2014-09-11 Pedro Alves <palves@redhat.com>
1749 * main.c: Include "infrun.h".
1750 (catch_command_errors, catch_command_errors_const): Wait for the
1751 foreground command to complete.
1752 * top.c (maybe_wait_sync_command_done): New function, factored out
1754 (maybe_wait_sync_command_done): ... here.
1755 * top.h (maybe_wait_sync_command_done): New declaration.
1757 2014-09-11 Tom Tromey <tromey@redhat.com>
1758 Gary Benson <gbenson@redhat.com>
1760 * common/symbol.h: New file.
1761 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1762 * minsyms.c (find_minimal_symbol_address): New function.
1763 * common/agent.c: Include common/symbol.h.
1764 [!GDBSERVER]: Don't include objfiles.h.
1765 (agent_look_up_symbols): Use find_minimal_symbol_address.
1767 2014-09-11 Gary Benson <gbenson@redhat.com>
1769 * target/target.h (target_stop_ptid, target_continue_ptid):
1771 * target.c (target_stop_ptid, target_continue_ptid): New
1773 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1774 (agent_run_command): Always use target_stop_ptid and
1775 target_continue_ptid.
1777 2014-09-11 Tom Tromey <tromey@redhat.com>
1778 Gary Benson <gbenson@redhat.com>
1780 * target/target.h: New file.
1781 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1782 * target.h: Include target/target.h.
1783 (target_read_memory, target_write_memory): Don't declare.
1784 * target.c (target_read_uint32): New function.
1785 * common/agent.c: Include target/target.h.
1786 [!GDBSERVER]: Don't include target.h.
1787 (helper_thread_id): Type changed to uint32_t.
1788 (agent_get_helper_thread_id): Use target_read_uint32.
1789 (agent_run_command): Always use target_read_memory and
1790 target_write_memory.
1791 (agent_capability): Type changed to uint32_t.
1792 (agent_capability_check): Use target_read_uint32.
1794 2014-09-11 Gary Benson <gbenson@redhat.com>
1796 * common/common-debug.h (show_debug_regs): Declare.
1797 * common/common-debug.c (show_debug_regs): Define.
1798 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1799 all uses with show_debug_regs. Replace all uses that considered
1800 debug_hw_points as a multi-value integer with straight boolean
1802 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1803 with show_debug_regs.
1804 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1805 all uses with show_debug_regs.
1806 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1807 uses with show_debug_regs.
1809 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1811 * findvar.c (address_from_register): Handle targets requiring
1812 a special conversion routine even for plain pointer types.
1814 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1816 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1817 (store_register): Do not call exec_one_dummy_insn.
1819 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1821 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1822 dereference it first. Use value_enclosing_type instead of
1824 (ada_array_length): Likewise.
1826 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1828 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1829 Adjust function implementation and documentation accordingly.
1830 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1831 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1832 Update call to ada_value_ptr_subscript.
1834 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1836 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1837 instead of VAL's type.
1839 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1841 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1843 2014-09-09 Doug Evans <xdje42@gmail.com>
1846 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1847 last parameter to pkg-config, not first.
1848 * configure.ac: Pass --with-guile provided pkg-config path to
1849 GDB_GUILE_PROGRAM_NAMES.
1850 * configure: Regenerate.
1852 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1854 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1857 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1859 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1860 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1861 the list of sections determining GDB_OSABI_IRIX.
1863 2014-09-09 James Hogan <james.hogan@imgtec.com>
1865 * MAINTAINERS (Write After Approval): Add "James Hogan".
1867 2014-09-09 James Hogan <james.hogan@imgtec.com>
1869 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1871 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1873 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1875 2014-09-08 Doug Evans <xdje42@gmail.com>
1878 * guile.c: #include <signal.h>.
1879 (_initialize_guile): Block SIGCHLD while initializing Guile.
1881 Replaces the following, which is reverted.
1883 2014-07-26 Doug Evans <xdje42@gmail.com>
1886 * configure.ac: Add check for header gc/gc.h.
1887 Add check for function setenv.
1888 * configure: Regenerate.
1889 * config.in: Regenerate.
1890 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1892 2014-09-08 Doug Evans <xdje42@gmail.com>
1894 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1895 with named constant. Fix style of pointer comparison.
1896 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1898 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1901 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1902 decide whether we display the command on "show user".
1903 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1904 printing command name.
1905 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1906 * cli/cli-decode.c (cli_user_command_p): Create helper function
1907 to verify whether cmd_list_element is a user-defined command.
1909 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1912 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1913 Fix goto out of TRY_CATCH.
1915 2014-09-06 Doug Evans <xdje42@gmail.com>
1916 Tom Tromey <tromey@redhat.com>
1919 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1920 $_any_caller_matches.
1921 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1922 * python/lib/gdb/function/caller_is.py: New file.
1924 2014-09-06 Doug Evans <xdje42@gmail.com>
1926 * infcmd.c (program_info): Fix typo.
1928 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1931 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1932 'number'. New variable 'has_digit'. Rewrite code to deal with
1933 subexpressions on SDT probes.
1935 2014-09-04 Pedro Alves <palves@redhat.com>
1937 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1938 the input is only one character long.
1940 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1943 * f-valprint.c (f_val_print): Specify the correct print option to
1944 use when printing integer values.
1946 2014-09-04 Gary Benson <gbenson@redhat.com>
1948 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1949 Remove code to cope with LWPs wrapped as PIDs.
1950 Add assertions to ensure no wrapped LWPs are passed.
1952 2014-09-04 Pedro Alves <palves@redhat.com>
1954 * value.c (value_ranges_copy_adjusted): New function, factored out
1956 (value_contents_copy_raw): ... here.
1957 (unpack_value_bits_as_long_1): Rename back to ...
1958 (unpack_bits_as_long): ... this. Remove 'original_value' and
1959 'result' parameters. Change return type to LONGEST.
1960 (unpack_value_bits_as_long): Delete.
1961 (unpack_value_field_as_long_1): Delete.
1962 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1963 (unpack_value_bitfield): New function.
1964 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1965 (value_fetch_lazy): Use unpack_value_bitfield.
1966 * value.h (unpack_value_bits_as_long): Delete declaration.
1968 2014-09-03 Sasha Smundak <asmundak@google.com>
1970 * python/py-frame.c (frapy_read_register): New function.
1972 2014-09-03 James Hogan <james.hogan@imgtec.com>
1974 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1975 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1977 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1980 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1982 (add_cmd): Set "completer_handle_brkchars" to NULL.
1983 * cli/cli-decode.h (struct cmd_list_element)
1984 <completer_handle_brkchars>: New field.
1985 * command.h (completer_ftype_void): New typedef.
1986 (set_cmd_completer_handle_brkchars): New prototype.
1987 * completer.c (set_gdb_completion_word_break_characters): New
1989 (complete_line_internal): Call "completer_handle_brkchars"
1990 callback from command.
1991 * completer.h: Include "command.h".
1992 (set_gdb_completion_word_break_characters): New prototype.
1993 * python/py-cmd.c (cmdpy_completer_helper): New function.
1994 (cmdpy_completer_handle_brkchars): New function.
1995 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1996 (cmdpy_init): Set completer_handle_brkchars to
1997 cmdpy_completer_handle_brkchars.
1999 2014-09-03 Gary Benson <gbenson@redhat.com>
2001 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2002 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2003 Loop conditions changed to equivalent form.
2004 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2005 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2006 ALL_DEBUG_ADDRESS_REGISTERS.
2008 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2010 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2013 2014-09-02 Doug Evans <dje@google.com>
2015 * typeprint.c (find_global_typedef): Fix comment.
2017 2014-09-02 Gary Benson <gbenson@redhat.com>
2019 * i386-nat.h: Renamed as...
2020 * x86-nat.h: New file. All type, function and variable name
2021 prefixes changed from "i386_" to "x86_". All references updated.
2022 * i386-nat.c: Renamed as...
2023 * x86-nat.c: New file. All type, function and variable name
2024 prefixes changed from "i386_" to "x86_". All references updated.
2025 * common/i386-xstate.h: Renamed as...
2026 * common/x86-xstate.h: New file. All type, function and variable
2027 name prefixes changed from "i386_" to "x86_". All references
2029 * nat/i386-cpuid.h: Renamed as...
2030 * nat/x86-cpuid.h: New file. All type, function and variable name
2031 prefixes changed from "i386_" to "x86_". All references updated.
2032 * nat/i386-gcc-cpuid.h: Renamed as...
2033 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2034 name prefixes changed from "i386_" to "x86_". All references
2036 * nat/i386-dregs.h: Renamed as...
2037 * nat/x86-dregs.h: New file. All type, function and variable name
2038 prefixes changed from "i386_" to "x86_". All references updated.
2039 * nat/i386-dregs.c: Renamed as...
2040 * nat/x86-dregs.c: New file. All type, function and variable name
2041 prefixes changed from "i386_" to "x86_". All references updated.
2043 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2045 * varobj.c (_initialize_varobj): Move to the end of file.
2047 2014-08-29 Gary Benson <gbenson@redhat.com>
2049 * common/common-exceptions.h: New file.
2050 * common/common-exceptions.c: Likewise.
2051 * Makefile.in (SFILES): Add common/common-exceptions.c.
2052 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2053 (COMMON_OBS): Add common-exceptions.o.
2054 (common-exceptions.o): New rule.
2055 * exceptions.h (common-exceptions.h): Include.
2056 (gdb_setjmp.h): Do not include.
2057 (return_reason): Moved to common-exceptions.h.
2058 (enum return_reason): Likewise.
2059 (RETURN_MASK): Likewise.
2060 (typedef return_mask): Likewise.
2061 (enum errors): Likewise.
2062 (struct gdb_exception): Likewise.
2063 (exceptions_state_mc_init): Likewise.
2064 (exceptions_state_mc_action_iter): Likewise.
2065 (exceptions_state_mc_action_iter_1): Likewise.
2066 (TRY_CATCH): Likewise.
2067 (throw_exception): Likewise.
2068 (throw_verror): Likewise.
2069 (throw_vquit): Likewise.
2070 (throw_error): Likewise.
2071 (throw_quit): Likewise.
2072 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2073 (enum catcher_action): Likewise.
2074 (struct catcher): Likewise.
2075 (current_catcher): Likewise.
2076 (catcher_list_size): Likewise.
2077 (exceptions_state_mc_init): Likewise.
2078 (catcher_pop): Likewise.
2079 (exceptions_state_mc): Likewise.
2080 (exceptions_state_mc_action_iter): Likewise.
2081 (exceptions_state_mc_action_iter_1): Likewise.
2082 (throw_exception): Likewise.
2083 (exception_messages): Likewise.
2084 (exception_messages_size): Likewise.
2085 (throw_it): Likewise.
2086 (throw_verror): Likewise.
2087 (throw_vquit): Likewise.
2088 (throw_error): Likewise.
2089 (throw_quit): Likewise.
2090 (prepare_to_throw_exception): New function.
2092 2014-08-29 Gary Benson <gbenson@redhat.com>
2094 * common/gdb_setjmp.h: New file.
2095 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2096 * configure.ac: Move sigsetjmp check...
2097 * common/common.m4: ...here.
2098 * configure: Regenerate.
2099 * cp-support.c (SIGJMP_BUF): Delete.
2100 (SIGSETJMP): Likewise.
2101 (SIGLONGJMP): Likewise.
2102 * exceptions.h (gdb_setjmp.h): Include.
2103 (setjmp.h): Do not include.
2104 (EXCEPTIONS_SIGJMP_BUF): Delete.
2105 (EXCEPTIONS_SIGSETJMP): Likewise.
2106 (EXCEPTIONS_SIGLONGJMP): Likewise.
2107 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2109 * exceptions.c: Likewise.
2111 2014-08-29 Gary Benson <gbenson@redhat.com>
2113 * cleanups.h: Moved to...
2114 * common/cleanups.h: New file.
2115 * cleanups.c: Moved to...
2116 * common/cleanups.c: New file. Include common-defs.h and
2117 cleanups.h. Do not include defs.h.
2118 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2119 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2120 (cleanups.o): New rule.
2122 2014-08-29 Gary Benson <gbenson@redhat.com>
2124 * common/errors.h (internal_warning): New declaration.
2125 (internal_vwarning): Likewise.
2126 * common/errors.c (internal_warning): New function.
2127 * utils.h (internal_warning): Don't declare.
2128 (internal_vwarning): Likewise.
2129 * utils.c (internal_warning): Removed.
2131 2014-08-29 Gary Benson <gbenson@redhat.com>
2133 * main.c (captured_main): Use warning during startup.
2134 Prefix startup warning messages with command name.
2136 2014-08-29 Gary Benson <gbenson@redhat.com>
2138 * main.c (captured_main): Handle usage errors with error.
2140 2014-08-29 Gary Benson <gbenson@redhat.com>
2142 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2143 exit pair with a call to error. Wrap the message with _().
2145 2014-08-29 Gary Benson <gbenson@redhat.com>
2147 * main.c (captured_main): Replace a fprintf/exit
2148 pair with a call to error. Wrap the message with _().
2150 2014-08-29 Gary Benson <gbenson@redhat.com>
2152 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2153 pairs with calls to error. Wrap the message with _().
2155 2014-08-29 Gary Benson <gbenson@redhat.com>
2157 * utils.c (vwarning): Protect calls to target_terminal_ours
2160 2014-08-29 Gary Benson <gbenson@redhat.com>
2162 * exceptions.c (print_flush): Protect calls to
2163 target_terminal_ours and wrap_here.
2165 2014-08-29 Gary Benson <gbenson@redhat.com>
2167 * utils.h (filtered_printing_initialized): New declaration.
2168 * utils.c (abort_with_message): New function.
2169 (internal_vproblem): Use abort_with_message for first level
2170 recursive internal problems, and if gdb_stderr is not set up.
2171 Protect calls to target_terminal_ours, begin_line and query.
2173 2014-08-28 Doug Evans <dje@google.com>
2175 * symtab.c (in_prologue): Move definition to better spot.
2176 (skip_prologue_using_sal): Ditto.
2178 2014-08-28 Doug Evans <dje@google.com>
2180 * symtab.c (find_function_start_sal): Move definition to better spot.
2182 2014-08-28 Yao Qi <yao@codesourcery.com>
2184 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2185 found_stack_adjust in forward scan. Remove condition check
2186 on found_stack_adjust which is always true. Indent the code.
2188 2014-08-28 Yao Qi <yao@codesourcery.com>
2190 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2191 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2192 (dwarf_decode_lines): Remove argument
2193 want_line_info. Remove condition check on want_line_info.
2196 2014-08-27 Doug Evans <dje@google.com>
2198 * dwarf2read.c (dwarf_record_line): Fix typo.
2200 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2202 * target.h (struct target_ops::to_terminal_save_ours): Remove
2204 (target_terminal_save_ours): Remove macro.
2205 * target-delegates.c: Regenerate.
2206 * inf-child.c (inf_child_target): Don't set the nonexistent
2207 field to_terminal_save_ours.
2208 * inferior.h (child_terminal_save_ours): Remove declaration.
2209 * terminal.h (gdb_save_tty_state): New declaration.
2210 * inflow.c (child_terminal_save_ours): Rename to ...
2211 (gdb_save_tty_state): ... this.
2212 * tui/tui.c: Include terminal.h.
2213 (tui_enable): Use gdb_save_tty_state instead of
2214 target_terminal_save_ours.
2215 (tui_disable): Likewise.
2217 2014-08-25 Doug Evans <dje@google.com>
2219 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2220 Pass NULL instead of 0 for context pointer.
2222 2014-08-25 Yao Qi <yao@codesourcery.com>
2224 * dwarf2read.c: Fix grammatical error.
2226 2014-08-24 Yao Qi <yao@codesourcery.com>
2228 * dwarf2read.c (scan_partial_symbols): Update comments.
2229 Rename argument 'need_pc' with 'set_addrmap'.
2230 (add_partial_namespace): Rename argument 'need_pc' with
2232 (add_partial_module): Likewise.
2233 (add_partial_subprogram): Likewise. Update comments.
2234 (dwarf2_name): Fix typo.
2236 2014-08-22 Doug Evans <dje@google.com>
2239 * dwarf2read.c (dwarf_record_line_p): New function.
2240 (dwarf_decode_lines_1): Ignore subsequent line number entries
2241 for the same line if any entry had a non-zero discriminator.
2243 2014-08-22 Doug Evans <dje@google.com>
2245 * buildsym.h (record_line_ftype): New typedef.
2246 (record_line): Use it.
2247 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2248 (dwarf_decode_lines_1): Call them.
2250 2014-08-22 Yao Qi <yao@codesourcery.com>
2252 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2253 (ctf_end): Remove code.
2255 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2257 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2258 (linux_make_corefile_notes): call update_thread_list, protected against
2261 2014-08-21 Pedro Alves <palves@redhat.com>
2263 * infcmd.c (attach_command): Remove comment.
2265 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2267 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2268 unsigned LONGEST to ULONGEST.
2270 2014-08-20 Pedro Alves <palves@redhat.com>
2272 * Makefile.in (check-read1): New rule.
2274 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2276 * value.c (value_from_contents_and_address): Strip resolved_type's
2277 typedef layers before checking its TYPE_DATA_LOCATION.
2279 2014-08-20 Pedro Alves <palves@redhat.com>
2281 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2283 2014-08-20 Yao Qi <yao@codesourcery.com>
2285 * amd64-tdep.c (amd64_classify): Add a blank line after the
2286 example. Move "*/" to a new line.
2287 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2288 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2289 * dwarf2read.c (psymtab_include_file_name): Likewise.
2291 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2292 Pedro Alves <palves@redhat.com>
2296 * ada-lang.c (coerce_unspec_val_to_type): Use
2297 value_contents_copy_raw.
2298 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2299 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2300 * cp-valprint.c (cp_print_value_fields): Let the common printing
2301 code handle optimized out values.
2302 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2303 * d-valprint.c (dynamic_array_type): Use
2304 value_bits_any_optimized_out.
2305 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2306 check_any_valid fields.
2307 (check_pieced_value_bits): Delete and inline ...
2308 (check_pieced_synthetic_pointer): ... here.
2309 (check_pieced_value_validity): Delete.
2310 (check_pieced_value_invalid): Delete.
2311 (pieced_value_funcs): Remove check_validity and check_any_valid
2313 (read_pieced_value): Use mark_value_bits_optimized_out.
2314 (write_pieced_value): Switch to use
2315 mark_value_bytes_optimized_out.
2316 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2317 of assuming the whole value is optimized out.
2318 * findvar.c (read_frame_register_value): Remove special handling
2319 of optimized out registers.
2320 (value_from_register): Use mark_value_bytes_optimized_out.
2321 * frame-unwind.c (frame_unwind_got_optimized): Use
2322 mark_value_bytes_optimized_out.
2323 * jv-valprint.c (java_value_print): Adjust.
2324 (java_print_value_fields): Let the common printing code handle
2325 optimized out values.
2326 * mips-tdep.c (mips_print_register): Remove special handling of
2327 optimized out registers.
2328 * opencl-lang.c (lval_func_check_validity): Delete.
2329 (lval_func_check_any_valid): Delete.
2330 (opencl_value_funcs): Remove check_validity and check_any_valid
2332 * p-valprint.c (pascal_object_print_value_fields): Let the common
2333 printing code handle optimized out values.
2334 * stack.c (read_frame_arg): Remove special handling of optimized
2335 out values. Fetch both VAL and ENTRYVAL before comparing
2336 contents. Adjust to value_available_contents_eq rename.
2337 * valprint.c (valprint_check_validity)
2338 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2339 (val_print_array_elements): Adjust.
2340 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2341 (value_bits_any_optimized_out): New function.
2342 (value_entirely_covered_by_range_vector): New function, factored
2343 out from value_entirely_unavailable.
2344 (value_entirely_unavailable): Reimplement.
2345 (value_entirely_optimized_out): New function.
2346 (insert_into_bit_range_vector): New function, factored out from
2347 mark_value_bits_unavailable.
2348 (mark_value_bits_unavailable): Reimplement.
2349 (struct ranges_and_idx): New struct.
2350 (find_first_range_overlap_and_match): New function, factored out
2351 from value_available_contents_bits_eq.
2352 (value_available_contents_bits_eq): Rename to ...
2353 (value_contents_bits_eq): ... this. Check both unavailable
2354 contents and optimized out contents.
2355 (value_available_contents_eq): Rename to ...
2356 (value_contents_eq): ... this.
2357 (allocate_value_lazy): Remove reference to the old optimized_out
2359 (allocate_optimized_out_value): Use
2360 mark_value_bytes_optimized_out.
2361 (require_not_optimized_out): Adjust to check whether the
2362 optimized_out vec is empty.
2363 (ranges_copy_adjusted): New function, factored out from
2364 value_contents_copy_raw.
2365 (value_contents_copy_raw): Also copy the optimized out ranges.
2366 Assert the destination ranges aren't optimized out.
2367 (value_contents_copy): Update comment, remove call to
2368 require_not_optimized_out.
2369 (value_contents_equal): Adjust to check whether the optimized_out
2371 (set_value_optimized_out, value_optimized_out_const): Delete.
2372 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2374 (value_entirely_optimized_out, value_bits_valid): Delete.
2375 (value_copy): Take a VEC copy of the 'optimized_out' field.
2376 (value_primitive_field): Remove special handling of optimized out.
2377 (value_fetch_lazy): Assert that lazy values have no unavailable
2378 regions. Use value_bits_any_optimized_out. Remove some special
2379 handling for optimized out values.
2380 * value.h: Add intro comment about <optimized out> and
2382 (struct lval_funcs): Remove check_validity and check_any_valid
2384 (set_value_optimized_out, value_optimized_out_const): Remove.
2385 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2387 (value_bits_any_optimized_out): New declaration.
2388 (value_bits_valid): Delete declaration.
2389 (value_available_contents_eq): Rename to ...
2390 (value_contents_eq): ... this, and extend comments.
2392 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2394 Fix -fsanitize=address on unreadable inferior strings.
2395 * valprint.c (val_print_string): Fix access before BUFFER.
2397 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2399 * target.c (target_struct_size): Remove.
2400 (target_struct_allocsize): Remove.
2401 (DEFAULT_ALLOCSIZE): Remove.
2402 (target_ops_p): New typedef.
2403 (DEF_VEC_P (target_ops_p)): New vector type.
2404 (target_structs): Change type to VEC (target_ops_p).
2405 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2406 (find_default_run_target): Rewrite for loop following changes to
2409 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2411 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2412 Adjust code accordingly. Adjust function description comment.
2414 2014-08-19 Yao Qi <yao@codesourcery.com>
2416 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2419 2014-08-19 Alan Modra <amodra@gmail.com>
2421 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2422 * config.in: Regenerate.
2423 * configure: Regenerate.
2425 2014-08-19 Tom Tromey <tromey@redhat.com>
2426 Gary Benson <gbenson@redhat.com>
2428 * common/common-debug.h: New file.
2429 * common/common-debug.c: Likewise.
2430 * debug.c: Likewise.
2431 * Makefile.in (SFILES): Add common/common-debug.c.
2432 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2433 (COMMON_OBS): Add common-debug.o and debug.o.
2434 (common-debug.o): New rule.
2435 * common/common-defs.h: Include common-debug.h.
2436 * common/agent.c (debug_agent_printf): New function.
2437 (DEBUG_AGENT): Redefine.
2438 * nat/i386-dregs.c (debug_printf): Undefine.
2440 2014-08-19 Gary Benson <gbenson@redhat.com>
2442 * common/common-defs.h: Include print-utils.h.
2443 * utils.h: Do not include print-utils.h.
2445 2014-08-19 Tom Tromey <tromey@redhat.com>
2446 Gary Benson <gbenson@redhat.com>
2448 * common/common-types.h: New file.
2449 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2450 * common/common-defs.h: Include common-types.h.
2451 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2454 2014-08-19 Tom Tromey <tromey@redhat.com>
2455 Gary Benson <gbenson@redhat.com>
2457 * common/errors.h: New file.
2458 * common/errors.c: Likewise.
2459 * Makefile.in (SFILES): Add common/errors.c.
2460 (HFILES_NO_SRCDIR): Add common/errors.h.
2461 (COMMON_OBS): Add errors.o.
2462 (errors.o): New rule.
2463 * common/common-defs.h: Include errors.h.
2464 * utils.h (perror_with_name, error, verror, warning, vwarning):
2466 * common/common-utils.h: (malloc_failure, internal_error):
2469 2014-08-19 Gary Benson <gbenson@redhat.com>
2471 * utils.c (internal_vproblem): Always print the message.
2473 2014-08-18 Doug Evans <dje@google.com>
2475 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2477 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2479 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2480 Return 0 if TYPE is dynamic.
2481 (print_range): Add handling of dynamic ranges.
2483 2014-08-18 Keven Boell <keven.boell@intel.com>
2484 Joel Brobecker <brobecker@adacore.com>
2486 * gdbtypes.h (struct main_type): Add field "data_location".
2487 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2488 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2489 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2490 a dynamic data location.
2491 (resolve_dynamic_type): Add DW_AT_data_location handling.
2492 (copy_recursive, copy_type): Copy the data_location information
2494 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2495 * value.c (value_from_contents_and_address): Add
2496 DW_AT_data_location handling.
2498 2014-08-18 Keven Boell <keven.boell@intel.com>
2499 Joel Brobecker <brobecker@adacore.com>
2501 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2502 field "get_object_address".
2503 * dwarf2expr.c (execute_stack_op): Add handling for
2504 DW_OP_push_object_address.
2505 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2506 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2507 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2508 (dwarf_expr_get_obj_addr): New function.
2509 (dwarf_expr_ctx_funcs): Add get_object_address field.
2510 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2511 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2512 (dwarf2_evaluate_property): Add parameter "address". Use it.
2513 (needs_get_obj_addr): New function.
2514 (needs_frame_ctx_funcs): Add get_object_address field.
2515 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2516 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2517 (resolve_dynamic_array): Likewise.
2519 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2521 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2522 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2523 fixed value for records and unions for which some GNAT encodings
2526 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2528 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2529 rewrite to avoid "else if" and "else" constructs. Should be
2530 a no-op in practice.
2532 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2534 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2537 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2540 * eval.c: Update all calls to find_overload_match.
2541 * valarith.c: Likewise.
2542 (value_user_defined_cpp_op, value_user_defined_op): New
2543 argument NOSIDE. Update all callers.
2544 * valops.c (find_overload_match): New argument NOSIDE.
2545 * value.h (find_overload_match): Update signature.
2547 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2549 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2550 'items' methods instead of 'iteritems' method on dictionaries.
2552 2014-08-15 Doug Evans <dje@google.com>
2554 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2557 2014-08-15 Doug Evans <dje@google.com>
2559 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2561 2014-08-15 Doug Evans <dje@google.com>
2563 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2565 2014-08-15 Doug Evans <dje@google.com>
2567 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2570 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2572 * dcache.h: Include target.h, to avoid compile time warnings.
2574 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2576 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2577 frame_info" partial declaration.
2578 * gdbarch.h: Regenerate.
2580 2014-08-15 Yao Qi <yao@codesourcery.com>
2582 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2583 Add parameter 'decode_for_pst_p'. Callers update.
2585 2014-08-13 Yao Qi <yao@codesourcery.com>
2588 * configure.ac: Use local variable 'pos'.
2589 * configure: Regenerated.
2591 2014-08-11 Doug Evans <dje@google.com>
2593 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2594 message, it is redundant with "Reading symbols from ..." message.
2596 2014-08-10 Doug Evans <xdje42@gmail.com>
2598 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2600 2014-08-09 Yao Qi <yao@codesourcery.com>
2603 * remote.c (remote_xfer_partial): Remove dead code.
2605 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2607 * ia64-linux-tdep.c: Include "regset.h".
2608 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2609 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2610 (ia64_linux_supply_fpregset): New function.
2611 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2612 (ia64_linux_regset_from_core_section): New function.
2613 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2616 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2618 * m68klinux-tdep.c: Include "regset.h".
2619 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2620 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2621 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2622 (m68k_linux_regset_from_core_section): New function.
2623 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2626 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2628 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2629 function. Move logic to...
2630 (tilegx_linux_regmap): ... this new register map.
2631 (tilegx_linux_regset): Refer to register map, replace supply
2632 method by regcache_supply_regset, and add collect method.
2633 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2634 TILEGX_FIRST_EASY_REGNUM.
2636 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2638 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2639 that calls regcache_supply_regset and handles the EPC register
2640 separately. Move main logic to...
2641 (score7_linux_gregmap): ... this new register map.
2642 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2643 (score7_linux_gregset): Refer to register map. Add collect method.
2644 (score7_linux_regset_from_core_section): Replace
2645 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2646 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2647 (struct regset): Delete unused forward declaraction.
2648 (struct pt_regs): Delete structure definition.
2649 (elf_gregset_t): Delete typedef.
2651 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2653 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2654 (nios2_core_regset): Add collect method.
2656 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2658 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2659 platform-independent and don't write to read-only input buffer.
2660 (m32r_linux_collect_gregset): New function.
2661 (m32r_linux_gregset): Add collect method.
2663 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2665 * hppa-linux-tdep.c (greg_map): Rename to...
2666 (hppa_linux_gregmap): ... this. Also convert to
2667 regcache_map_entry format.
2668 (hppa_linux_supply_regset): Delete function.
2669 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2670 (hppa_linux_fpregmap): ... this new register map.
2671 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2672 register map, replace supply method by regcache_supply_regset, and
2673 add collect method regcache_collect_regset.
2675 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2677 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2678 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2679 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2680 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2681 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2682 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2683 (frv_linux_supply_gregset): Replace main logic by call to
2684 regcache_supply_regset, but keep clearing gr32-gr63.
2685 (frv_linux_supply_fpregset): Delete function.
2686 (frv_linux_gregset): Refer to appropriate register map and add
2687 regcache_collect_regset as the collect method.
2688 (frv_linux_fpregset): Likewise. Also exchange the supply method
2689 by regcache_supply_regset.
2691 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2693 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2694 by call to alpha_supply_int_regs.
2695 (alpha_linux_collect_gregset): New function.
2696 (alpha_linux_supply_fpregset): Replace logic by call to
2697 alpha_supply_fp_regs.
2698 (alpha_linux_collect_fpregset): New function.
2699 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2701 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2703 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2704 by call to regcache_collect_regset.
2705 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2706 instead of aarch64_linux_supply_gregset/_fpregset.
2707 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2708 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2709 header file instead.
2710 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2711 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2712 functions. Move logic to ...
2713 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2715 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2716 refer to new register maps, replace *_regset_from_core by
2717 regcache_supply_regset, and also use regcache_collect_regset.
2718 * aarch64-linux-tdep.h: Include "regset.h".
2719 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2721 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2722 macros, moved from C source file.
2723 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2724 variable declarations.
2726 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2728 * s390-linux-nat.c: Include "regset.h".
2729 (regmap_gregset): Delete macro.
2730 (s390_64_regmap_gregset): New register map for
2731 regcache_supply/_collect_regset.
2732 (s390_64_gregset): New regset.
2733 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2734 (regmap_fpregset): Delete macro.
2735 (s390_native_supply, s390_native_collect): Delete functions.
2736 (supply_gregset, fill_gregset): Replace s390-specific regmap
2737 handling by a call to regcache_supply/_collect_regset.
2738 (supply_fpregset, fill_fpregset): Call regcache_supply/
2739 _collect_regset instead of s390_native_supply/_collect.
2740 (fetch_regset, store_regset): Likewise. Also change the last
2741 parameter to a regset instead of a regmap.
2742 (s390_linux_fetch_inferior_registers)
2743 (390_linux_store_inferior_registers): Adjust last parameter in
2744 calls to fetch_regset and store_regset.
2745 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2746 (s390_gregmap): ... this. Also make static const and convert to
2747 regcache_map_entry format.
2748 (s390x_regmap_gregset): Delete.
2749 (s390_regmap_fpregset): Rename to...
2750 (s390_fpregmap): ... this. Make static const and convert to
2751 regcache_map_entry format.
2752 (s390_regmap_upper, s390_regmap_last_break)
2753 (s390x_regmap_last_break, s390_regmap_system_call)
2754 (s390_regmap_tdb): Likewise.
2755 (s390_supply_regset, s390_collect_regset): Remove functions.
2756 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2758 (s390_gregset, s390_fpregset, s390_upper_regset)
2759 (s390_last_break_regset, s390x_last_break_regset)
2760 (s390_system_call_regset, s390_tdb_regset): Make global and
2761 replace s390_supply/_collect_regset by regcache_supply/
2763 (s390x_gregset): Delete.
2764 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2765 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2766 (s390_regmap_fpregset, s390_regmap_last_break)
2767 (s390x_regmap_last_break, s390_regmap_system_call)
2768 (s390_regmap_tdb): Delete global variable declarations.
2769 (s390_gregset, s390_fpregset, s390_last_break_regset)
2770 (s390x_last_break_regset, s390_system_call_regset)
2771 (s390_tdb_regset): New global variable declarations.
2773 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2775 * regcache.c: Include "regset.h".
2776 (regcache_transfer_regset): New local function.
2777 (regcache_supply_regset, regcache_collect_regset): New functions.
2778 * regcache.h (struct regcache_map_entry): New structure.
2779 (REGCACHE_MAP_SKIP): New enum value.
2780 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2782 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2784 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2785 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2786 (ppc_linux_collect_gregset ): Likewise.
2787 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2788 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2789 (ppc_collect_vrregset): Likewise.
2790 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2793 2014-08-07 Yao Qi <yao@codesourcery.com>
2795 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2796 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2797 * remote.c (remote_read_bytes): Likewise.
2799 2014-08-07 Yao Qi <yao@codesourcery.com>
2801 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2803 2014-08-07 Yao Qi <yao@codesourcery.com>
2806 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2807 TARGET_XFER_OK instead of 0.
2809 2014-08-07 Gary Benson <gbenson@redhat.com>
2811 * common/common-defs.h: Include errno.h.
2812 * defs.h: Do not include errno.h.
2813 * ada-typeprint.c: Likewise.
2814 * c-typeprint.c: Likewise.
2815 * core-regset.c: Likewise.
2816 * corefile.c: Likewise.
2817 * corelow.c: Likewise.
2818 * event-loop.c: Likewise.
2819 * f-typeprint.c: Likewise.
2820 * gnu-nat.c: Likewise.
2821 * go32-nat.c: Likewise.
2822 * i386gnu-nat.c: Likewise.
2823 * m2-typeprint.c: Likewise.
2824 * nat/linux-btrace.c: Likewise.
2825 * p-typeprint.c: Likewise.
2826 * procfs.c: Likewise.
2827 * remote-sim.c: Likewise.
2828 * rs6000-nat.c: Likewise.
2829 * target.c: Likewise.
2830 * typeprint.c: Likewise.
2831 * ui-file.c: Likewise.
2832 * valops.c: Likewise.
2833 * valprint.c: Likewise.
2835 2014-08-07 Gary Benson <gbenson@redhat.com>
2837 * common/common-defs.h: Include string.h.
2838 * aarch64-tdep.c: Do not include string.h.
2839 * ada-exp.y: Likewise.
2840 * ada-lang.c: Likewise.
2841 * ada-lex.l: Likewise.
2842 * ada-typeprint.c: Likewise.
2843 * ada-valprint.c: Likewise.
2844 * aix-thread.c: Likewise.
2845 * alpha-linux-tdep.c: Likewise.
2846 * alpha-mdebug-tdep.c: Likewise.
2847 * alpha-nat.c: Likewise.
2848 * alpha-osf1-tdep.c: Likewise.
2849 * alpha-tdep.c: Likewise.
2850 * alphanbsd-tdep.c: Likewise.
2851 * amd64-dicos-tdep.c: Likewise.
2852 * amd64-linux-tdep.c: Likewise.
2853 * amd64-nat.c: Likewise.
2854 * amd64-sol2-tdep.c: Likewise.
2855 * amd64fbsd-tdep.c: Likewise.
2856 * amd64obsd-tdep.c: Likewise.
2857 * arch-utils.c: Likewise.
2858 * arm-linux-nat.c: Likewise.
2859 * arm-linux-tdep.c: Likewise.
2860 * arm-tdep.c: Likewise.
2861 * arm-wince-tdep.c: Likewise.
2862 * armbsd-tdep.c: Likewise.
2863 * armnbsd-nat.c: Likewise.
2864 * armnbsd-tdep.c: Likewise.
2865 * armobsd-tdep.c: Likewise.
2866 * avr-tdep.c: Likewise.
2867 * ax-gdb.c: Likewise.
2868 * ax-general.c: Likewise.
2869 * bcache.c: Likewise.
2870 * bfin-tdep.c: Likewise.
2871 * breakpoint.c: Likewise.
2872 * build-id.c: Likewise.
2873 * buildsym.c: Likewise.
2874 * c-exp.y: Likewise.
2875 * c-lang.c: Likewise.
2876 * c-typeprint.c: Likewise.
2877 * c-valprint.c: Likewise.
2878 * charset.c: Likewise.
2879 * cli-out.c: Likewise.
2880 * cli/cli-cmds.c: Likewise.
2881 * cli/cli-decode.c: Likewise.
2882 * cli/cli-dump.c: Likewise.
2883 * cli/cli-interp.c: Likewise.
2884 * cli/cli-logging.c: Likewise.
2885 * cli/cli-script.c: Likewise.
2886 * cli/cli-setshow.c: Likewise.
2887 * cli/cli-utils.c: Likewise.
2888 * coffread.c: Likewise.
2889 * common/agent.c: Likewise.
2890 * common/buffer.c: Likewise.
2891 * common/buffer.h: Likewise.
2892 * common/common-utils.c: Likewise.
2893 * common/filestuff.c: Likewise.
2894 * common/filestuff.c: Likewise.
2895 * common/format.c: Likewise.
2896 * common/print-utils.c: Likewise.
2897 * common/rsp-low.c: Likewise.
2898 * common/signals.c: Likewise.
2899 * common/vec.h: Likewise.
2900 * common/xml-utils.c: Likewise.
2901 * core-regset.c: Likewise.
2902 * corefile.c: Likewise.
2903 * corelow.c: Likewise.
2904 * cp-abi.c: Likewise.
2905 * cp-name-parser.y: Likewise.
2906 * cp-support.c: Likewise.
2907 * cp-valprint.c: Likewise.
2908 * cris-tdep.c: Likewise.
2909 * d-exp.y: Likewise.
2910 * darwin-nat.c: Likewise.
2911 * dbxread.c: Likewise.
2912 * dcache.c: Likewise.
2913 * demangle.c: Likewise.
2914 * dicos-tdep.c: Likewise.
2915 * disasm.c: Likewise.
2916 * doublest.c: Likewise.
2917 * dsrec.c: Likewise.
2918 * dummy-frame.c: Likewise.
2919 * dwarf2-frame.c: Likewise.
2920 * dwarf2loc.c: Likewise.
2921 * dwarf2read.c: Likewise.
2922 * elfread.c: Likewise.
2923 * environ.c: Likewise.
2925 * event-loop.c: Likewise.
2926 * exceptions.c: Likewise.
2928 * expprint.c: Likewise.
2929 * f-exp.y: Likewise.
2930 * f-lang.c: Likewise.
2931 * f-typeprint.c: Likewise.
2932 * f-valprint.c: Likewise.
2933 * fbsd-nat.c: Likewise.
2934 * findcmd.c: Likewise.
2935 * findvar.c: Likewise.
2936 * fork-child.c: Likewise.
2937 * frame.c: Likewise.
2938 * frv-linux-tdep.c: Likewise.
2939 * frv-tdep.c: Likewise.
2941 * gdb_bfd.c: Likewise.
2942 * gdbarch.c: Likewise.
2943 * gdbarch.sh: Likewise.
2944 * gdbtypes.c: Likewise.
2945 * gnu-nat.c: Likewise.
2946 * gnu-v2-abi.c: Likewise.
2947 * gnu-v3-abi.c: Likewise.
2948 * go-exp.y: Likewise.
2949 * go-lang.c: Likewise.
2950 * go32-nat.c: Likewise.
2951 * guile/guile.c: Likewise.
2952 * guile/scm-auto-load.c: Likewise.
2953 * hppa-hpux-tdep.c: Likewise.
2954 * hppa-linux-nat.c: Likewise.
2955 * hppanbsd-tdep.c: Likewise.
2956 * hppaobsd-tdep.c: Likewise.
2957 * i386-cygwin-tdep.c: Likewise.
2958 * i386-dicos-tdep.c: Likewise.
2959 * i386-linux-tdep.c: Likewise.
2960 * i386-nto-tdep.c: Likewise.
2961 * i386-sol2-tdep.c: Likewise.
2962 * i386-tdep.c: Likewise.
2963 * i386bsd-tdep.c: Likewise.
2964 * i386gnu-nat.c: Likewise.
2965 * i386nbsd-tdep.c: Likewise.
2966 * i386obsd-tdep.c: Likewise.
2967 * i387-tdep.c: Likewise.
2968 * ia64-libunwind-tdep.c: Likewise.
2969 * ia64-linux-nat.c: Likewise.
2970 * inf-child.c: Likewise.
2971 * inf-ptrace.c: Likewise.
2972 * inf-ttrace.c: Likewise.
2973 * infcall.c: Likewise.
2974 * infcmd.c: Likewise.
2975 * inflow.c: Likewise.
2976 * infrun.c: Likewise.
2977 * interps.c: Likewise.
2978 * iq2000-tdep.c: Likewise.
2979 * irix5-nat.c: Likewise.
2980 * jv-exp.y: Likewise.
2981 * jv-lang.c: Likewise.
2982 * jv-typeprint.c: Likewise.
2983 * jv-valprint.c: Likewise.
2984 * language.c: Likewise.
2985 * linux-fork.c: Likewise.
2986 * linux-nat.c: Likewise.
2987 * lm32-tdep.c: Likewise.
2988 * m2-exp.y: Likewise.
2989 * m2-typeprint.c: Likewise.
2990 * m32c-tdep.c: Likewise.
2991 * m32r-linux-nat.c: Likewise.
2992 * m32r-linux-tdep.c: Likewise.
2993 * m32r-rom.c: Likewise.
2994 * m32r-tdep.c: Likewise.
2995 * m68hc11-tdep.c: Likewise.
2996 * m68k-tdep.c: Likewise.
2997 * m68kbsd-tdep.c: Likewise.
2998 * m68klinux-nat.c: Likewise.
2999 * m68klinux-tdep.c: Likewise.
3000 * m88k-tdep.c: Likewise.
3001 * machoread.c: Likewise.
3002 * macrocmd.c: Likewise.
3004 * mdebugread.c: Likewise.
3005 * mem-break.c: Likewise.
3006 * memattr.c: Likewise.
3007 * memory-map.c: Likewise.
3008 * mep-tdep.c: Likewise.
3009 * mi/mi-cmd-break.c: Likewise.
3010 * mi/mi-cmd-disas.c: Likewise.
3011 * mi/mi-cmd-env.c: Likewise.
3012 * mi/mi-cmd-stack.c: Likewise.
3013 * mi/mi-cmd-var.c: Likewise.
3014 * mi/mi-cmds.c: Likewise.
3015 * mi/mi-console.c: Likewise.
3016 * mi/mi-getopt.c: Likewise.
3017 * mi/mi-interp.c: Likewise.
3018 * mi/mi-main.c: Likewise.
3019 * mi/mi-parse.c: Likewise.
3020 * microblaze-rom.c: Likewise.
3021 * microblaze-tdep.c: Likewise.
3022 * mingw-hdep.c: Likewise.
3023 * minidebug.c: Likewise.
3024 * minsyms.c: Likewise.
3025 * mips-irix-tdep.c: Likewise.
3026 * mips-linux-tdep.c: Likewise.
3027 * mips-tdep.c: Likewise.
3028 * mips64obsd-tdep.c: Likewise.
3029 * mipsnbsd-tdep.c: Likewise.
3030 * mipsread.c: Likewise.
3031 * mn10300-linux-tdep.c: Likewise.
3032 * mn10300-tdep.c: Likewise.
3033 * monitor.c: Likewise.
3034 * moxie-tdep.c: Likewise.
3035 * mt-tdep.c: Likewise.
3036 * nat/linux-btrace.c: Likewise.
3037 * nat/linux-osdata.c: Likewise.
3038 * nat/linux-procfs.c: Likewise.
3039 * nat/linux-ptrace.c: Likewise.
3040 * nat/linux-waitpid.c: Likewise.
3041 * nbsd-tdep.c: Likewise.
3042 * nios2-linux-tdep.c: Likewise.
3043 * nto-procfs.c: Likewise.
3044 * nto-tdep.c: Likewise.
3045 * objc-lang.c: Likewise.
3046 * objfiles.c: Likewise.
3047 * opencl-lang.c: Likewise.
3048 * osabi.c: Likewise.
3049 * osdata.c: Likewise.
3050 * p-exp.y: Likewise.
3051 * p-lang.c: Likewise.
3052 * p-typeprint.c: Likewise.
3053 * parse.c: Likewise.
3054 * posix-hdep.c: Likewise.
3055 * ppc-linux-nat.c: Likewise.
3056 * ppc-sysv-tdep.c: Likewise.
3057 * ppcfbsd-tdep.c: Likewise.
3058 * ppcnbsd-tdep.c: Likewise.
3059 * ppcobsd-tdep.c: Likewise.
3060 * printcmd.c: Likewise.
3061 * procfs.c: Likewise.
3062 * prologue-value.c: Likewise.
3063 * python/py-auto-load.c: Likewise.
3064 * python/py-gdb-readline.c: Likewise.
3065 * ravenscar-thread.c: Likewise.
3066 * regcache.c: Likewise.
3067 * registry.c: Likewise.
3068 * remote-fileio.c: Likewise.
3069 * remote-m32r-sdi.c: Likewise.
3070 * remote-mips.c: Likewise.
3071 * remote-notif.c: Likewise.
3072 * remote-sim.c: Likewise.
3073 * remote.c: Likewise.
3074 * reverse.c: Likewise.
3075 * rs6000-aix-tdep.c: Likewise.
3076 * ser-base.c: Likewise.
3077 * ser-go32.c: Likewise.
3078 * ser-mingw.c: Likewise.
3079 * ser-pipe.c: Likewise.
3080 * ser-tcp.c: Likewise.
3081 * ser-unix.c: Likewise.
3082 * serial.c: Likewise.
3083 * sh-tdep.c: Likewise.
3084 * sh64-tdep.c: Likewise.
3085 * shnbsd-tdep.c: Likewise.
3087 * sol-thread.c: Likewise.
3088 * solib-dsbt.c: Likewise.
3089 * solib-frv.c: Likewise.
3090 * solib-osf.c: Likewise.
3091 * solib-som.c: Likewise.
3092 * solib-spu.c: Likewise.
3093 * solib-target.c: Likewise.
3094 * solib.c: Likewise.
3095 * somread.c: Likewise.
3096 * source.c: Likewise.
3097 * sparc-nat.c: Likewise.
3098 * sparc-sol2-tdep.c: Likewise.
3099 * sparc-tdep.c: Likewise.
3100 * sparc64-tdep.c: Likewise.
3101 * sparc64fbsd-tdep.c: Likewise.
3102 * sparc64nbsd-tdep.c: Likewise.
3103 * sparcnbsd-tdep.c: Likewise.
3104 * spu-linux-nat.c: Likewise.
3105 * spu-multiarch.c: Likewise.
3106 * spu-tdep.c: Likewise.
3107 * stabsread.c: Likewise.
3108 * stack.c: Likewise.
3109 * std-regs.c: Likewise.
3110 * symfile.c: Likewise.
3111 * symmisc.c: Likewise.
3112 * symtab.c: Likewise.
3113 * target.c: Likewise.
3114 * thread.c: Likewise.
3115 * tilegx-linux-nat.c: Likewise.
3116 * tilegx-tdep.c: Likewise.
3118 * tracepoint.c: Likewise.
3119 * tui/tui-command.c: Likewise.
3120 * tui/tui-data.c: Likewise.
3121 * tui/tui-disasm.c: Likewise.
3122 * tui/tui-file.c: Likewise.
3123 * tui/tui-layout.c: Likewise.
3124 * tui/tui-out.c: Likewise.
3125 * tui/tui-regs.c: Likewise.
3126 * tui/tui-source.c: Likewise.
3127 * tui/tui-stack.c: Likewise.
3128 * tui/tui-win.c: Likewise.
3129 * tui/tui-windata.c: Likewise.
3130 * tui/tui-winsource.c: Likewise.
3131 * typeprint.c: Likewise.
3132 * ui-file.c: Likewise.
3133 * ui-out.c: Likewise.
3134 * user-regs.c: Likewise.
3135 * utils.c: Likewise.
3136 * v850-tdep.c: Likewise.
3137 * valarith.c: Likewise.
3138 * valops.c: Likewise.
3139 * valprint.c: Likewise.
3140 * value.c: Likewise.
3141 * varobj.c: Likewise.
3142 * vax-tdep.c: Likewise.
3143 * vaxnbsd-tdep.c: Likewise.
3144 * vaxobsd-tdep.c: Likewise.
3145 * windows-nat.c: Likewise.
3146 * xcoffread.c: Likewise.
3147 * xml-support.c: Likewise.
3148 * xstormy16-tdep.c: Likewise.
3149 * xtensa-linux-nat.c: Likewise.
3151 2014-08-07 Gary Benson <gbenson@redhat.com>
3153 * common/common-defs.h: Include gdb_assert.h.
3154 * aarch64-tdep.c: Do not include gdb_assert.h.
3155 * addrmap.c: Likewise.
3156 * aix-thread.c: Likewise.
3157 * alpha-linux-tdep.c: Likewise.
3158 * alpha-mdebug-tdep.c: Likewise.
3159 * alphanbsd-tdep.c: Likewise.
3160 * amd64-nat.c: Likewise.
3161 * amd64-tdep.c: Likewise.
3162 * amd64bsd-nat.c: Likewise.
3163 * amd64fbsd-nat.c: Likewise.
3164 * amd64fbsd-tdep.c: Likewise.
3165 * amd64nbsd-nat.c: Likewise.
3166 * amd64nbsd-tdep.c: Likewise.
3167 * amd64obsd-nat.c: Likewise.
3168 * amd64obsd-tdep.c: Likewise.
3169 * arch-utils.c: Likewise.
3170 * arm-tdep.c: Likewise.
3171 * armbsd-tdep.c: Likewise.
3173 * bcache.c: Likewise.
3174 * bfin-tdep.c: Likewise.
3175 * blockframe.c: Likewise.
3176 * breakpoint.c: Likewise.
3177 * bsd-kvm.c: Likewise.
3178 * bsd-uthread.c: Likewise.
3179 * buildsym.c: Likewise.
3180 * c-exp.y: Likewise.
3181 * c-lang.c: Likewise.
3182 * charset.c: Likewise.
3183 * cleanups.c: Likewise.
3184 * cli-out.c: Likewise.
3185 * cli/cli-decode.c: Likewise.
3186 * cli/cli-dump.c: Likewise.
3187 * cli/cli-logging.c: Likewise.
3188 * cli/cli-script.c: Likewise.
3189 * cli/cli-utils.c: Likewise.
3190 * coffread.c: Likewise.
3191 * common/common-utils.c: Likewise.
3192 * common/queue.h: Likewise.
3193 * common/signals.c: Likewise.
3194 * common/vec.h: Likewise.
3195 * complaints.c: Likewise.
3196 * completer.c: Likewise.
3197 * corelow.c: Likewise.
3198 * cp-abi.c: Likewise.
3199 * cp-name-parser.y: Likewise.
3200 * cp-namespace.c: Likewise.
3201 * cp-support.c: Likewise.
3202 * cris-tdep.c: Likewise.
3203 * dbxread.c: Likewise.
3204 * dictionary.c: Likewise.
3205 * doublest.c: Likewise.
3206 * dsrec.c: Likewise.
3207 * dummy-frame.c: Likewise.
3208 * dwarf2-frame-tailcall.c: Likewise.
3209 * dwarf2-frame.c: Likewise.
3210 * dwarf2expr.c: Likewise.
3211 * dwarf2loc.c: Likewise.
3212 * dwarf2read.c: Likewise.
3214 * event-loop.c: Likewise.
3215 * exceptions.c: Likewise.
3216 * expprint.c: Likewise.
3217 * f-valprint.c: Likewise.
3218 * fbsd-nat.c: Likewise.
3219 * findvar.c: Likewise.
3220 * frame-unwind.c: Likewise.
3221 * frame.c: Likewise.
3222 * frv-tdep.c: Likewise.
3223 * gcore.c: Likewise.
3224 * gdb-dlfcn.c: Likewise.
3225 * gdb_bfd.c: Likewise.
3226 * gdbarch.c: Likewise.
3227 * gdbarch.sh: Likewise.
3228 * gdbtypes.c: Likewise.
3229 * gnu-nat.c: Likewise.
3230 * gnu-v3-abi.c: Likewise.
3231 * go-lang.c: Likewise.
3232 * guile/scm-exception.c: Likewise.
3233 * guile/scm-gsmob.c: Likewise.
3234 * guile/scm-lazy-string.c: Likewise.
3235 * guile/scm-math.c: Likewise.
3236 * guile/scm-pretty-print.c: Likewise.
3237 * guile/scm-safe-call.c: Likewise.
3238 * guile/scm-utils.c: Likewise.
3239 * guile/scm-value.c: Likewise.
3240 * h8300-tdep.c: Likewise.
3241 * hppa-hpux-nat.c: Likewise.
3242 * hppa-tdep.c: Likewise.
3243 * hppanbsd-tdep.c: Likewise.
3244 * hppaobsd-tdep.c: Likewise.
3245 * i386-darwin-nat.c: Likewise.
3246 * i386-darwin-tdep.c: Likewise.
3247 * i386-nto-tdep.c: Likewise.
3248 * i386-tdep.c: Likewise.
3249 * i386bsd-nat.c: Likewise.
3250 * i386fbsd-tdep.c: Likewise.
3251 * i386gnu-nat.c: Likewise.
3252 * i386nbsd-tdep.c: Likewise.
3253 * i386obsd-tdep.c: Likewise.
3254 * i387-tdep.c: Likewise.
3255 * ia64-libunwind-tdep.c: Likewise.
3256 * ia64-tdep.c: Likewise.
3257 * inf-ptrace.c: Likewise.
3258 * inf-ttrace.c: Likewise.
3259 * infcall.c: Likewise.
3260 * infcmd.c: Likewise.
3261 * infrun.c: Likewise.
3262 * inline-frame.c: Likewise.
3263 * interps.c: Likewise.
3264 * jv-lang.c: Likewise.
3265 * jv-typeprint.c: Likewise.
3266 * linux-fork.c: Likewise.
3267 * linux-nat.c: Likewise.
3268 * linux-thread-db.c: Likewise.
3269 * m32c-tdep.c: Likewise.
3270 * m32r-linux-nat.c: Likewise.
3271 * m32r-tdep.c: Likewise.
3272 * m68k-tdep.c: Likewise.
3273 * m68kbsd-nat.c: Likewise.
3274 * m68kbsd-tdep.c: Likewise.
3275 * m88k-tdep.c: Likewise.
3276 * machoread.c: Likewise.
3277 * macroexp.c: Likewise.
3278 * macrotab.c: Likewise.
3279 * maint.c: Likewise.
3280 * mdebugread.c: Likewise.
3281 * memory-map.c: Likewise.
3282 * mep-tdep.c: Likewise.
3283 * mi/mi-common.c: Likewise.
3284 * microblaze-tdep.c: Likewise.
3285 * mingw-hdep.c: Likewise.
3286 * mips-linux-nat.c: Likewise.
3287 * mips-linux-tdep.c: Likewise.
3288 * mips-tdep.c: Likewise.
3289 * mips64obsd-tdep.c: Likewise.
3290 * mipsnbsd-tdep.c: Likewise.
3291 * mn10300-linux-tdep.c: Likewise.
3292 * mn10300-tdep.c: Likewise.
3293 * moxie-tdep.c: Likewise.
3294 * mt-tdep.c: Likewise.
3295 * nat/linux-btrace.c: Likewise.
3296 * nat/linux-osdata.c: Likewise.
3297 * nat/linux-ptrace.c: Likewise.
3298 * nat/mips-linux-watch.c: Likewise.
3299 * nios2-linux-tdep.c: Likewise.
3300 * nios2-tdep.c: Likewise.
3301 * objc-lang.c: Likewise.
3302 * objfiles.c: Likewise.
3303 * obsd-nat.c: Likewise.
3304 * opencl-lang.c: Likewise.
3305 * osabi.c: Likewise.
3306 * parse.c: Likewise.
3307 * ppc-linux-nat.c: Likewise.
3308 * ppc-sysv-tdep.c: Likewise.
3309 * ppcfbsd-nat.c: Likewise.
3310 * ppcfbsd-tdep.c: Likewise.
3311 * ppcnbsd-nat.c: Likewise.
3312 * ppcnbsd-tdep.c: Likewise.
3313 * ppcobsd-nat.c: Likewise.
3314 * ppcobsd-tdep.c: Likewise.
3315 * printcmd.c: Likewise.
3316 * procfs.c: Likewise.
3317 * prologue-value.c: Likewise.
3318 * psymtab.c: Likewise.
3319 * python/py-lazy-string.c: Likewise.
3320 * python/py-value.c: Likewise.
3321 * regcache.c: Likewise.
3322 * reggroups.c: Likewise.
3323 * registry.c: Likewise.
3324 * remote-sim.c: Likewise.
3325 * remote.c: Likewise.
3326 * rs6000-aix-tdep.c: Likewise.
3327 * rs6000-tdep.c: Likewise.
3328 * s390-linux-tdep.c: Likewise.
3329 * score-tdep.c: Likewise.
3330 * ser-base.c: Likewise.
3331 * ser-mingw.c: Likewise.
3332 * sh-tdep.c: Likewise.
3333 * sh64-tdep.c: Likewise.
3334 * solib-darwin.c: Likewise.
3335 * solib-spu.c: Likewise.
3336 * solib-svr4.c: Likewise.
3337 * source.c: Likewise.
3338 * sparc-nat.c: Likewise.
3339 * sparc-sol2-tdep.c: Likewise.
3340 * sparc-tdep.c: Likewise.
3341 * sparc64-sol2-tdep.c: Likewise.
3342 * sparc64-tdep.c: Likewise.
3343 * sparc64fbsd-tdep.c: Likewise.
3344 * sparc64nbsd-tdep.c: Likewise.
3345 * sparc64obsd-tdep.c: Likewise.
3346 * sparcnbsd-tdep.c: Likewise.
3347 * sparcobsd-tdep.c: Likewise.
3348 * spu-multiarch.c: Likewise.
3349 * spu-tdep.c: Likewise.
3350 * stabsread.c: Likewise.
3351 * stack.c: Likewise.
3352 * symfile.c: Likewise.
3353 * symtab.c: Likewise.
3354 * target-descriptions.c: Likewise.
3355 * target-memory.c: Likewise.
3356 * target.c: Likewise.
3357 * tic6x-linux-tdep.c: Likewise.
3358 * tic6x-tdep.c: Likewise.
3359 * tilegx-linux-nat.c: Likewise.
3360 * tilegx-tdep.c: Likewise.
3362 * tramp-frame.c: Likewise.
3363 * tui/tui-out.c: Likewise.
3364 * tui/tui-winsource.c: Likewise.
3365 * ui-out.c: Likewise.
3366 * user-regs.c: Likewise.
3367 * utils.c: Likewise.
3368 * v850-tdep.c: Likewise.
3369 * valops.c: Likewise.
3370 * value.c: Likewise.
3371 * varobj.c: Likewise.
3372 * vax-nat.c: Likewise.
3373 * xml-syscall.c: Likewise.
3374 * xml-tdesc.c: Likewise.
3375 * xstormy16-tdep.c: Likewise.
3376 * xtensa-linux-nat.c: Likewise.
3377 * xtensa-tdep.c: Likewise.
3379 2014-08-07 Gary Benson <gbenson@redhat.com>
3381 * common/common-defs.h: Include common-utils.h.
3382 * defs.h: Do not include common-utils.h.
3383 * common/gdb_assert.h: Likewise.
3384 * darwin-nat.h: Likewise.
3385 * nat/linux-btrace.c: Likewise.
3386 * target/waitstatus.h: Likewise.
3388 2014-08-07 Gary Benson <gbenson@redhat.com>
3390 * common/common-defs.h: Include ptid.h.
3391 * defs.h: Do not include ptid.h.
3392 * inferior.h: Likewise.
3393 * infrun.h: Likewise.
3394 * nat/linux-btrace.h: Likewise.
3395 * nat/linux-osdata.h: Likewise.
3396 * target/waitstatus.h: Likewise.
3398 2014-08-07 Gary Benson <gbenson@redhat.com>
3400 * common/common-defs.h: Include gdb_locale.h.
3401 * defs.h: Do not include gdb_locale.h.
3403 2014-08-07 Gary Benson <gbenson@redhat.com>
3405 * common/common-defs.h: Include gdb/signals.h.
3406 * defs.h: Do not include gdb/signals.h.
3408 2014-08-07 Gary Benson <gbenson@redhat.com>
3410 * common/common-defs.h: Include pathmax.h.
3411 * defs.h: Do not include pathmax.h.
3413 2014-08-07 Gary Benson <gbenson@redhat.com>
3415 * common/common-defs.h: Include libiberty.h.
3416 * defs.h: Do not include libiberty.h.
3417 * common/queue.h: Likewise.
3418 * cp-name-parser.y: Likewise.
3419 * mi/mi-cmd-catch.c: Likewise.
3420 * python/python.c: Likewise.
3422 2014-08-07 Gary Benson <gbenson@redhat.com>
3424 * common/common-defs.h: Include ansidecl.h.
3425 * defs.h: Do not include ansidecl.h.
3426 * common/buffer.h: Likewise.
3427 * common/common-utils.h: Likewise.
3429 2014-08-07 Gary Benson <gbenson@redhat.com>
3431 * common/common-defs.h: Include stddef.h.
3432 * defs.h: Do not include stddef.h.
3433 * common/common-utils.h: Likewise.
3434 * amd64fbsd-nat.c: Likewise.
3435 * bcache.c: Likewise.
3436 * charset.c: Likewise.
3437 * common/buffer.h: Likewise.
3438 * common/vec.h: Likewise.
3439 * i386bsd-nat.c: Likewise.
3440 * nat/linux-btrace.h: Likewise.
3441 * ppcfbsd-nat.c: Likewise.
3442 * ppcnbsd-tdep.h: Likewise.
3443 * ppcobsd-nat.c: Likewise.
3444 * ppcobsd-tdep.h: Likewise.
3445 * python/py-gdb-readline.c: Likewise.
3447 2014-08-07 Gary Benson <gbenson@redhat.com>
3449 * common/common-defs.h: Include stdarg.h.
3450 * defs.h: Do not include stdarg.h.
3451 * ada-lang.c: Likewise.
3452 * common/common-utils.h: Likewise.
3453 * guile/scm-string.c: Likewise.
3454 * guile/scm-utils.c: Likewise.
3455 * m32c-tdep.c: Likewise.
3457 2014-08-07 Gary Benson <gbenson@redhat.com>
3459 * common/common-defs.h: Include stdlib.h.
3460 * defs.h: Do not include stdlib.h.
3461 * addrmap.c: Likewise.
3462 * bcache.c: Likewise.
3463 * common/buffer.c: Likewise.
3464 * common/common-utils.c: Likewise.
3465 * cp-name-parser.y: Likewise.
3466 * go32-nat.c: Likewise.
3467 * mn10300-linux-tdep.c: Likewise.
3468 * nat/linux-osdata.c: Likewise.
3469 * tui/tui.c: Likewise.
3470 * windows-nat.c: Likewise.
3472 2014-08-07 Gary Benson <gbenson@redhat.com>
3474 * common/common-defs.h: Include stdio.h.
3475 * defs.h: Do not include stdio.h.
3476 * ada-lang.c: Likewise.
3477 * common/buffer.c: Likewise.
3478 * common/common-utils.c: Likewise.
3479 * cp-name-parser.y: Likewise.
3480 * gnu-nat.c: Likewise.
3481 * go32-nat.c: Likewise.
3482 * i386gnu-nat.c: Likewise.
3483 * proc-api.c: Likewise.
3484 * proc-events.c: Likewise.
3485 * proc-flags.c: Likewise.
3486 * proc-why.c: Likewise.
3487 * python/python-internal.h: Likewise.
3488 * target-memory.c: Likewise.
3489 * tui/tui-io.c: Likewise.
3490 * tui/tui.c: Likewise.
3492 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3494 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3495 (scan_dyntag_auxv): Same.
3497 2014-08-06 Yao Qi <yao@codesourcery.com>
3499 * amd64-linux-nat.c: Remove duplicated include
3501 * i386-linux-nat.c: Likewise.
3503 2014-08-06 Yao Qi <yao@codesourcery.com>
3505 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3506 operand" with "Special opcode" in comments.
3508 2014-08-05 Gary Benson <gbenson@redhat.com>
3510 * interps.c (initialize_interps): Remove prototype.
3511 (interpreter_initialized): Remove static global.
3512 (interp_add): Do not call initialize_interps.
3513 (initialize_interps): Remove function.
3515 2014-08-05 Gary Benson <gbenson@redhat.com>
3517 * utils.c (vwarning): Remove spurious va_end.
3519 2014-08-05 Alan Modra <amodra@gmail.com>
3521 * charset.c (convert_between_encodings): Cast result of obstack_base.
3522 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3523 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3524 (read_unwind_info): Use size_t for some locals.
3525 * jit.c (finalize_symtab): Likewise.
3526 * utils.c (hashtab_obstack_allocate): Likewise.
3527 * symmisc.c (print_objfile_statistics): Update format strings.
3529 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3531 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3532 (Changes in GDB 7.8): ... here.
3534 2014-08-04 Tom Tromey <tromey@redhat.com>
3536 * target.c (set_targetdebug): New function.
3537 (initialize_targets): Pass set_targetdebug when creating "set
3540 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3542 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3543 if detecting a variable-sized field that is not the last field.
3544 Fix struct type length computation.
3546 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3548 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3551 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3553 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3554 Remove "+ 8" offset in computation of CHAIN_VMA.
3556 2014-07-31 Doug Evans <dje@google.com>
3558 * inflow.c (child_terminal_inferior): Add comment.
3559 (child_terminal_ours_for_output): Add comment.
3560 (child_terminal_ours): Add comment.
3561 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3562 (linux_nat_terminal_ours): Add comment.
3564 2014-07-31 Gary Benson <gbenson@redhat.com>
3566 * common/btrace-common.h: Do not include defs.h or server.h.
3567 * nat/mips-linux-watch.h: Likewise.
3568 * gdb-dlfcn.h: Do not include defs.h.
3569 * tracefile.h: Likewise.
3571 2014-07-30 Roland McGrath <mcgrathr@google.com>
3573 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3575 2014-07-30 Tom Tromey <tromey@redhat.com>
3577 * bsd-kvm.c (bsd_kvm_open): Constify.
3578 * corelow.c (core_open): Constify.
3579 * ctf.c (ctf_open): Constify.
3580 * dbug-rom.c (dbug_open): Constify.
3581 * exec.c (exec_open): Constify.
3582 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3583 * microblaze-rom.c (picobug_open): Constify.
3584 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3586 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3587 * record-btrace.c (record_btrace_open): Constify.
3588 * record-full.c (record_full_core_open_1, record_full_open_1)
3589 (record_full_open): Constify.
3590 * remote-m32r-sdi.c (m32r_open): Constify.
3591 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3592 (rockhopper_open, lsi_open): Constify.
3593 * remote-sim.c (gdbsim_open): Constify.
3594 * remote.c (remote_open, extended_remote_open, remote_open_1):
3596 * target.h (struct target_ops) <to_open>: Make "arg" const.
3597 * tracefile-tfile.c (tfile_open): Constify.
3599 2014-07-30 Tom Tromey <tromey@redhat.com>
3601 * breakpoint.c (map_breakpoint_numbers): Update.
3602 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3603 (get_number_const): New function.
3604 (get_number): Rewrite using get_number_const.
3605 (init_number_or_range): Make "string" const.
3606 (number_is_in_list): Make "list" const.
3607 * cli/cli-utils.h (get_number_const): Declare.
3608 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3609 (init_number_or_range, number_is_in_list): Update.
3610 * printcmd.c (map_display_numbers): Update.
3611 * value.c (value_from_history_ref): Constify.
3612 * value.h (value_from_history_ref): Update.
3614 2014-07-30 Tom Tromey <tromey@redhat.com>
3616 * corefile.c (hook_type, call_extra_exec_file_hooks)
3617 (specify_exec_file_hook): Constify.
3618 * exec.c (exec_file_attach): Make "filename" const.
3619 * gdbcore.h (deprecated_exec_file_display_hook)
3620 (specify_exec_file_hook, exec_file_attach): Constify.
3621 * main.c (captured_main): Use catch_command_errors_const.
3623 2014-07-30 Tom Tromey <tromey@redhat.com>
3625 * target.c (open_target): New function.
3626 (add_target_with_completer, add_deprecated_target_alias): Use
3627 set_cmd_sfunc, set_cmd_context.
3628 (debug_to_open): Remove.
3629 (setup_target_debug): Update.
3631 2014-07-30 Yao Qi <yao@codesourcery.com>
3633 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3635 * parse.c (exp_iterate): Update comments.
3637 2014-07-30 Gary Benson <gbenson@redhat.com>
3639 * common/common-defs.h: New file.
3640 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3641 * defs.h: Include common-defs.h.
3642 Do not include config.h or build-gnulib/config.h.
3644 2014-07-30 Gary Benson <gbenson@redhat.com>
3646 * common/common-utils.h: Do not include config.h.
3647 * nat/linux-btrace.h: Likewise.
3649 2014-07-30 Gary Benson <gbenson@redhat.com>
3651 * btrace.c: Include defs.h.
3652 * common/ptid.c: Include defs.h or server.h as appropriate.
3653 * nat/mips-linux-watch.c: Likewise.
3655 2014-07-29 Tom Tromey <tromey@redhat.com>
3657 * target.c (target_is_pushed): Simplify.
3659 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3663 2014-07-29 Yao Qi <yao@codesourcery.com>
3666 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3668 2014-07-28 Doug Evans <xdje42@gmail.com>
3671 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3672 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3675 2014-07-28 Will Newton <will.newton@linaro.org>
3677 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3678 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3679 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3680 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3681 (THUMB2_EABI_SYSCALL): Likewise.
3682 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3684 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3685 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3687 2014-07-27 Doug Evans <xdje42@gmail.com>
3689 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3691 2014-07-27 Doug Evans <xdje42@gmail.com>
3693 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3695 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3696 Doug Evans <xdje42@gmail.com>
3699 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3700 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3701 * configure.ac: Try to use guild to compile an scm file, if it fails
3702 then disable guile support.
3703 * configure: Regenerate.
3704 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3706 (GUILE_COMPILED_FILES): New variable.
3707 (GUILE_FILES) Update.
3708 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3709 (stamp-guile): Compile scm files.
3710 * guile/guile.c (boot_guile_support): New function.
3711 (standard_throw_args_p): New function.
3712 (print_standard_throw_error, print_throw_error): New functions.
3713 (handle_boot_error): New function.
3714 (initialize_scheme_side): Rewrite to call boot_guile_support.
3715 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3716 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3718 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3719 Doug Evans <xdje42@gmail.com>
3722 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3723 * guile/lib/gdb/support.scm: New file.
3724 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3725 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3727 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3729 (%assert-type): Ditto, and renamed to assert-type.
3730 (%exception-print-style): Delete.
3732 2014-07-26 Doug Evans <xdje42@gmail.com>
3735 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3736 * configure: Regenerate.
3737 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3739 (PYTHON_FILES): New variable.
3740 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3741 (GUILE_FILES): New variable.
3742 (stamp-python, install-python, uninstall-python): Handle empty
3744 (stamp-guile, install-guile, uninstall-guile): Ditto.
3746 2014-07-26 Doug Evans <xdje42@gmail.com>
3749 * guile/lib/gdb.scm (pretty-printers): Export.
3750 (set-pretty-printers!): Export.
3751 * guile/lib/gdb/printing.scm (gdb module): Update.
3752 (prepend-pretty-printer!, append-pretty-printer!): Update.
3753 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3754 (pretty_printer_list_var): Delete.
3755 (pretty_printer_list): New static global.
3756 (gdbscm_pretty_printers): New function.
3757 (gdbscm_set_pretty_printers_x): New function.
3758 (ppscm_find_pretty_printer_from_gdb): Update.
3759 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3760 (gdbscm_initialize_pretty_printers): Update.
3762 2014-07-26 Doug Evans <xdje42@gmail.com>
3765 * configure.ac: Add check for header gc/gc.h.
3766 Add check for function setenv.
3767 * configure: Regenerate.
3768 * config.in: Regenerate.
3769 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3771 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3773 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3774 variation in gdbarch matching.
3776 2014-07-25 Tom Tromey <tromey@redhat.com>
3778 * exec.c (using_exec_ops): Remove.
3779 (exec_close_1): Update. Remove extraneous block, reindent.
3780 (add_target_sections): Use target_is_pushed.
3782 2014-07-25 Pedro Alves <palves@redhat.com>
3784 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3785 * monitor.c (monitor_create_inferior): Likewise.
3786 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3787 * remote-sim.c (gdbsim_create_inferior): Likewise.
3788 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3789 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3790 * windows-nat.c (do_initial_windows_stuff): Likewise.
3792 2014-07-25 Pedro Alves <palves@redhat.com>
3794 * NEWS: Mention signal passing and "signal" command changes.
3795 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3797 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3799 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3800 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3801 (jump_command): Adjust clear_proceed_status call.
3802 (signal_command): Warn if other thread that are resumed have
3803 signals that will be delivered. Adjust clear_proceed_status call.
3804 (until_next_command, finish_command)
3805 (proceed_after_attach_callback, attach_command_post_wait)
3806 (attach_command): Adjust clear_proceed_status call.
3807 * infrun.c (proceed_after_vfork_done): Likewise.
3808 (proceed_after_attach_callback): Adjust comment.
3809 (clear_proceed_status_thread): Clear stop_signal if not in pass
3811 (clear_proceed_status_callback): Delete.
3812 (clear_proceed_status): New 'step' parameter. Only clear the
3813 proceed status of threads the command being prepared is about to
3815 (proceed): If passed in an explicit signal, override stop_signal
3816 with it. Don't pass the last stop signal to the thread we're
3818 (init_wait_for_inferior): Adjust clear_proceed_status call.
3819 (switch_back_to_stepped_thread): Clear the signal if it should not
3821 * infrun.h (clear_proceed_status): New 'step' parameter.
3822 (user_visible_resume_ptid): Add comment.
3823 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3824 signal is in pass state.
3825 * remote.c (append_pending_thread_resumptions): Likewise.
3826 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3828 2014-07-25 Tom Tromey <tromey@redhat.com>
3830 * target.h (target_stopped_data_address)
3831 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3834 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3836 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3838 (avr_pointer_to_address): Likewise.
3840 2014-07-24 Tom Tromey <tromey@redhat.com>
3842 * monitor.c (compile_pattern): Update.
3843 * target.h (struct target_ops) <to_shortname, to_longname,
3846 2014-07-24 Tom Tromey <tromey@redhat.com>
3848 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3849 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3850 (add_info_alias, add_com): Make "doc" const.
3851 (print_doc_line): Make "str" const.
3852 (delete_cmd): Update.
3853 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3854 (print_doc_line): Update.
3855 * cli/cli-script.c (document_command): Update.
3856 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3857 (add_com, add_info, add_info_alias): Update.
3858 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3859 * python/py-cmd.c (cmdpy_destroyer): Update.
3861 2014-07-24 Tom Tromey <tromey@redhat.com>
3863 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3864 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3865 (help_cmd_list): Constify.
3866 (lookup_cmd): Update.
3867 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3869 (help_cmd_list, apropos_cmd): Update.
3870 * cli/cli-script.c (show_user): Update.
3871 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3872 * cli/cli-setshow.h (cmd_show_list): Update.
3873 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3874 (cmd_show_list): Update.
3875 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3876 * python/py-cmd.c (cmdpy_destroyer): Update.
3878 2014-07-24 Tom Tromey <tromey@redhat.com>
3880 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3881 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3883 * command.h (deprecate_cmd): Update.
3884 * maint.c (maintenance_do_deprecate): Add casts.
3886 2014-07-24 Tom Tromey <tromey@redhat.com>
3888 * cli/cli-decode.c (help_cmd): Make parameter "const".
3889 * cli/cli-decode.h (help_cmd): Update.
3891 2014-07-24 Tom Tromey <tromey@redhat.com>
3893 * stack.c (up_silently_base, down_silently_base): Make argument
3896 2014-07-24 Tom Tromey <tromey@redhat.com>
3898 * solib.c (solib_add): Make "pattern" const.
3899 * solib.h (solib_add): Update.
3901 2014-07-24 Tom Tromey <tromey@redhat.com>
3903 * remote.c (remote_serial_open, print_packet, putpkt)
3904 (putpkt_binary): Constify.
3905 * remote.h (putpkt): Update.
3907 2014-07-24 Tom Tromey <tromey@redhat.com>
3909 * monitor.c (monitor_open): Make "args" const.
3910 * monitor.h (monitor_open): Update.
3912 2014-07-24 Tom Tromey <tromey@redhat.com>
3914 * maint.c (match_bfd_flags): Make "string" const.
3915 (print_bfd_section_info): Remove casts.
3916 (print_objfile_section_info): Make "string" const.
3918 2014-07-24 Tom Tromey <tromey@redhat.com>
3920 * inf-child.c (inf_child_open_target): Make "arg" const.
3921 * inf-child.h (inf_child_open_target): Update.
3923 2014-07-24 Tom Tromey <tromey@redhat.com>
3925 * environ.c (unset_in_environ): Make "var" const.
3926 * environ.h (unset_in_environ): Update.
3928 2014-07-24 Tom Tromey <tromey@redhat.com>
3930 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3932 (scan_filename_with_cleanup): Likewise.
3933 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3934 Make arguments const.
3935 (restore_command): Update.
3937 2014-07-24 Pedro Alves <palves@redhat.com>
3939 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3941 2014-07-24 Tom Tromey <tromey@redhat.com>
3942 Gary Benson <gbenson@redhat.com>
3944 * nat/linux-ptrace.c (additional_flags): New global.
3945 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3946 additional_flags; don't check GDBSERVER.
3947 (linux_ptrace_set_additional_flags): New function.
3948 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3950 * linux-nat.c (_initialize_linux_nat): Call
3951 linux_ptrace_set_additional_flags.
3953 2014-07-24 Tom Tromey <tromey@redhat.com>
3955 * make-target-delegates (munge_type, write_debugmethod): New
3957 (debug_names): New global.
3958 ($TARGET_DEBUG_PRINTER): New global.
3959 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3961 Write debug methods. Generate init_debug_target.
3962 * target-debug.h: New file.
3963 * target-delegates.c: Rebuild.
3964 * target.c: Include target-debug.h.
3965 (debug_target): Hoist definition.
3966 (target_kill, target_get_section_table, target_memory_map)
3967 (target_flash_erase, target_flash_done, target_detach)
3968 (target_disconnect, target_wait, target_resume)
3969 (target_pass_signals, target_program_signals, target_follow_fork)
3970 (target_mourn_inferior, target_search_memory)
3971 (target_thread_address_space, target_close)
3972 (target_find_new_threads, target_core_of_thread)
3973 (target_verify_memory, target_insert_mask_watchpoint)
3974 (target_remove_mask_watchpoint): Remove targetdebug code.
3975 (debug_to_post_attach, debug_to_prepare_to_store)
3976 (debug_to_files_info, debug_to_insert_breakpoint)
3977 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3978 (debug_to_region_ok_for_hw_watchpoint)
3979 (debug_to_can_accel_watchpoint_condition)
3980 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3981 (debug_to_watchpoint_addr_within_range)
3982 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3983 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3984 (debug_to_terminal_init, debug_to_terminal_inferior)
3985 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3986 (debug_to_terminal_save_ours, debug_to_terminal_info)
3987 (debug_to_load, debug_to_post_startup_inferior)
3988 (debug_to_insert_fork_catchpoint)
3989 (debug_to_remove_fork_catchpoint)
3990 (debug_to_insert_vfork_catchpoint)
3991 (debug_to_remove_vfork_catchpoint)
3992 (debug_to_insert_exec_catchpoint)
3993 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3994 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3995 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3996 (setup_target_debug): Call init_debug_target.
3997 * target.h (TARGET_DEBUG_PRINTER): New macro.
3998 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3999 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4001 2014-07-24 Gary Benson <gbenson@redhat.com>
4003 * exceptions.h (throw_vfatal): Renamed to...
4004 (throw_vquit): New declaration.
4005 (throw_quit): Likewise.
4006 * exceptions.c (throw_vfatal): Renamed to...
4007 (throw_vquit): New function.
4008 (throw_quit): Likewise.
4009 (throw_error): Call throw_verror rather than throw_it.
4010 * utils.h (vfatal): Removed.
4012 * utils.c (vfatal): Removed.
4014 (internal_verror): Replaced call to fatal with call to throw_quit.
4015 (quit): Replaced calls to fatal with calls to throw_quit.
4017 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4019 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4022 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4024 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4025 less than zero in conditional expression.
4027 2014-07-23 Tom Tromey <tromey@redhat.com>
4029 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4030 ($INTRO_PART): Don't match whitespace.
4031 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4033 ($METHOD): Add $METHOD_TRAILER.
4035 (scan_target_h): New sub.
4036 Change main loop not to collect state.
4037 * target-delegates.c: Rebuild.
4039 2014-07-23 Gary Benson <gbenson@redhat.com>
4041 * cp-support.c (gdb_demangle): Fix build on systems without
4044 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4046 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4047 for reference entry value target data value.
4049 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4051 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4052 value_available_contents_eq.
4054 2014-07-22 Pedro Alves <palves@redhat.com>
4056 * value.c (allocate_optimized_out_value): Don't mark value as
4059 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4061 * MAINTAINERS (Write After Approval): Update my email address.
4063 2014-07-20 Doug Evans <dje@google.com>
4066 * remote.c (putpkt_binary): Add text to error message.
4068 2014-07-20 Yao Qi <yao@codesourcery.com>
4070 * eval.c: Remove "Chill" from comments.
4071 * gdbtypes.h: Likewise.
4072 * symtab.h: Likewise.
4074 2014-07-20 Yao Qi <yao@codesourcery.com>
4076 * std-operator.def: Update comments to TERNOP_SLICE.
4078 2014-07-20 Yao Qi <yao@codesourcery.com>
4080 * std-operator.def: Remove BINOP_RANGE.
4081 * breakpoint.c (watchpoint_exp_is_const): Update.
4082 * expprint.c (dump_subexp_body_standard): Likewise.
4083 * eval.c (init_array_element): Remove dead code.
4084 (evaluate_subexp_standard): Likewise.
4086 2014-07-20 Yao Qi <yao@codesourcery.com>
4088 * std-operator.def: Remove BINOP_IN.
4089 * breakpoint.c (watchpoint_exp_is_const): Update.
4090 * eval.c (evaluate_subexp_standard): Likewise.
4091 * expprint.c (dump_subexp_body_standard): Likewise.
4093 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4095 * microblaze-tdep.c (microblaze_register_names): Add
4096 the rshr and rslr register names.
4097 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4098 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4099 Use of tdesc_numbered_register. Use of
4100 microblaze_register_g_packet_guesses. Use of
4101 tdesc_use_registers. Use of set_gdbarch_register_type.
4102 (microblaze_register_g_packet_guesses): New.
4103 * microblaze-tdep.h (microblaze_reg_num): Add
4104 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4105 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4106 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4107 * features/microblaze-core.xml: New file.
4108 * features/microblaze-stack-protect.xml: New file.
4109 * features/microblaze-with-stack-protect.c: New file.
4110 * features/microblaze-with-stack-protect.xml: New file.
4111 * features/microblaze.xml: New file.
4112 * features/microblaze.c: New file.
4113 * features/Makefile (microblaze-with-stack-protect): Add
4114 microblaze-with-stack-protect microblaze and microblaze-expedite.
4115 * regformats/microblaze-with-stack-protect.dat: New file.
4116 * regformats/microblaze.dat: New file.
4117 * doc/gdb.texinfo (MicroBlaze Features): Added.
4119 2014-07-18 Tom Tromey <tromey@redhat.com>
4121 * exec.c (exec_ops): Now static.
4122 * exec.h (exec_ops): Don't declare.
4124 2014-07-18 Tom Tromey <tromey@redhat.com>
4126 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4127 to find_target_beneath.
4128 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4129 find_target_beneath.
4130 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4132 2014-07-18 Tom Tromey <tromey@redhat.com>
4135 * utils.c (quit): Use target_supports_terminal_ours.
4136 * target.h (target_supports_terminal_ours): Declare.
4137 * target.c (target_supports_delete_record): Don't check
4138 to_delete_record against NULL.
4139 (target_supports_terminal_ours): New function.
4141 2014-07-18 Tom Tromey <tromey@redhat.com>
4144 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4145 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4146 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4147 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4148 * windows-nat.c (windows_xfer_partial): Always delegate.
4149 * record-btrace.c (record_btrace_xfer_partial): Simplify
4151 (record_btrace_fetch_registers, record_btrace_store_registers)
4152 (record_btrace_prepare_to_store, record_btrace_resume)
4153 (record_btrace_wait, record_btrace_find_new_threads)
4154 (record_btrace_thread_alive): Likewise.
4155 * procfs.c (procfs_xfer_partial): Always delegate.
4156 * corelow.c (core_xfer_partial): Always delegate.
4157 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4159 2014-07-18 Tom Tromey <tromey@redhat.com>
4161 * exec.c (exec_make_note_section): Move earlier.
4163 2014-07-17 Doug Evans <dje@google.com>
4166 * maint.c (count_symtabs_and_blocks): Handle NULL
4167 current_program_space.
4168 (report_command_stats): Check global enabled flag in addition to
4169 recorded enabled flag.
4170 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4172 2014-07-16 Pedro Alves <palves@redhat.com>
4174 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4176 2014-07-16 Tom Tromey <tromey@redhat.com>
4178 * target.h (struct target_ops) <to_delete_record>: Reformat
4181 2014-07-16 Tom Tromey <tromey@redhat.com>
4183 * target-delegates.c: Rebuild.
4185 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4187 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4188 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4189 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4190 (avr_pointer_to_address): Likewise.
4191 (avr_address_class_type_flags): New function.
4192 (avr_address_class_type_flags_to_name): Likewise.
4193 (avr_address_class_name_to_type_flags): Likewise.
4194 (avr_gdbarch_init): Set address_class_type_flags,
4195 address_class_type_flags_to_name and
4196 address_class_name_to_type_flags.
4198 2014-07-15 Pedro Alves <palves@redhat.com>
4200 * linux-nat.c (kill_callback): Save errno and work with saved
4203 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4205 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4207 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4209 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4210 breakpoint support correctly.
4212 2014-07-14 Pedro Alves <palves@redhat.com>
4214 * utils.c (prompt_for_continue): Call target_terminal_ours.
4216 2014-07-14 Pedro Alves <palves@redhat.com>
4218 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4219 catch_errors. Don't re-enable stdin or notify observers where,
4221 (fetch_inferior_event_wrapper): Delete.
4223 2014-07-14 Pedro Alves <palves@redhat.com>
4226 * top.c: Include "inf-loop.h".
4227 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4229 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4231 (gdb_readline_wrapper): Store whether the target is async, and
4234 2014-07-14 Pedro Alves <palves@redhat.com>
4237 * top.c (gdb_readline_wrapper_line): Tweak comment.
4238 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4239 the input handler callback.
4241 2014-07-14 Pedro Alves <palves@redhat.com>
4244 * main.c: Include event-top.h.
4245 (handle_command_errors): New function.
4246 (catch_command_errors, catch_command_errors_const): Use it.
4248 2014-07-14 Pedro Alves <palves@redhat.com>
4250 * exceptions.c (catch_command_errors, catch_command_errors_const):
4252 * exceptions.h (catch_command_errors_ftype)
4253 (catch_command_errors_const_ftype): Moved to main.c.
4254 (catch_command_errors, catch_command_errors_const): Delete
4256 * main.c (catch_command_errors_ftype)
4257 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4258 (catch_command_errors, catch_command_errors_const)): Moved here
4259 from exceptions.c and make static.
4261 2014-07-14 Pedro Alves <palves@redhat.com>
4263 * exceptions.c (print_any_exception): Delete.
4264 (catch_exceptions_with_msg): Use exception_print instead of
4265 print_any_exception.
4266 (catch_errors): Use exception_fprintf instead of
4267 print_any_exception.
4268 (catch_command_errors, catch_command_errors_const): Use
4269 exception_print instead of print_any_exception.
4271 2014-07-14 Pedro Alves <palves@redhat.com>
4273 * infcall.c (run_inferior_call): Set 'sync_execution' while
4274 running the inferior call.
4276 2014-07-14 Pedro Alves <palves@redhat.com>
4278 * value.c (value_contents_equal): Delete function.
4279 * value.h (value_contents_equal): Delete declaration.
4281 2014-07-14 Tom Tromey <tromey@redhat.com>
4284 * gdbtypes.c (is_dynamic_type_internal): New function, from
4286 (is_dynamic_type): Rewrite.
4287 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4288 (resolve_dynamic_struct): Likewise.
4289 (resolve_dynamic_type_internal): New function, from
4290 resolve_dynamic_type.
4291 (resolve_dynamic_type): Rewrite.
4293 2014-07-14 Tom Tromey <tromey@redhat.com>
4295 * target.c (target_require_runnable): Also check record_stratum.
4298 2014-07-11 Yao Qi <yao@codesourcery.com>
4300 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4301 thumb_instruction_restores_sp return true.
4303 2014-07-11 Yao Qi <yao@codesourcery.com>
4305 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4306 (thumb_in_function_epilogue_p): Call
4307 thumb_instruction_restores_sp.
4309 2014-07-11 Yao Qi <yao@codesourcery.com>
4311 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4313 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4315 2014-07-11 Gary Benson <gbenson@redhat.com>
4317 * amd64-linux-nat.c (gdbcore.h): Remove include.
4318 (regset.h): Likewise.
4319 (nat/linux-btrace.h): Likewise.
4320 (btrace.h): Likewise.
4321 (gdb_assert.h): Likewise.
4322 (string.h): Likewise.
4323 (sys/uio.h): Likewise.
4324 (sys/debugreg.h): Likewise.
4325 (sys/syscall.h): Likewise.
4326 (sys/procfs.h): Likewise.
4327 (sys/user.h): Likewise.
4328 (asm/ptrace.h): Likewise.
4329 (i386-nat.h): Likewise.
4330 * i386-linux-nat.c (i386-nat.h): Likewise.
4331 (regset.h): Likewise.
4332 (target.h): Likewise.
4333 (linux-nat.h): Likewise.
4334 (nat/linux-btrace.h): Likewise.
4335 (btrace.h): Likewise.
4336 (gdb_assert.h): Likewise.
4337 (string.h): Likewise.
4338 (sys/uio.h): Likewise.
4339 (sys/user.h): Likewise.
4340 (sys/procfs.h): Likewise.
4341 (sys/reg.h): Likewise.
4342 (sys/debugreg.h): Likewise.
4343 (ORIG_EAX): Remove definition.
4345 2014-07-11 Gary Benson <gbenson@redhat.com>
4347 * i386-linux-nat.h: New file.
4348 * x86-linux-nat.h: Likewise.
4349 * x86-linux-nat.c: Likewise.
4350 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4351 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4352 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4353 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4354 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4355 (PTRACE_SETREGSET): Likewise.
4356 (arch_lwp_info): Now in x86-linux-nat.c.
4357 (have_ptrace_getregset): Now in x86-linux-nat.h.
4358 (x86_linux_dr_get): Now in x86-linux-nat.c.
4359 (x86_linux_dr_set): Likewise.
4360 (x86_linux_dr_get_addr): Likewise.
4361 (x86_linux_dr_get_control): Likewise.
4362 (x86_linux_dr_get_status): Likewise.
4363 (update_debug_registers_callback): Likewise.
4364 (x86_linux_dr_set_control): Likewise.
4365 (x86_linux_dr_set_addr): Likewise.
4366 (x86_linux_prepare_to_resume): Likewise.
4367 (x86_linux_new_thread): Likewise.
4368 (x86_linux_new_fork): Likewise.
4369 (x86_linux_get_thread_area): Likewise.
4370 (super_post_startup_inferior): Likewise.
4371 (x86_linux_child_post_startup_inferior): Likewise.
4372 (AMD64_LINUX_USER64_CS): Likewise.
4373 (AMD64_LINUX_X32_DS): Likewise.
4374 (x86_linux_read_description): Likewise.
4375 (x86_linux_enable_btrace): Likewise.
4376 (x86_linux_disable_btrace): Likewise.
4377 (x86_linux_teardown_btrace): Likewise.
4378 (x86_linux_read_btrace): Likewise.
4379 (x86_linux_create_target): Likewise.
4380 (x86_linux_add_target): Likewise.
4381 * i386-linux-nat.c (x86-linux-nat.h): New include.
4382 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4383 (PTRACE_SETREGSET): Likewise.
4384 (arch_lwp_info): Now in x86-linux-nat.c.
4385 (have_ptrace_getregset): Now in x86-linux-nat.h.
4386 (x86_linux_dr_get): Now in x86-linux-nat.c.
4387 (x86_linux_dr_set): Likewise.
4388 (x86_linux_dr_get_addr): Likewise.
4389 (x86_linux_dr_get_control): Likewise.
4390 (x86_linux_dr_get_status): Likewise.
4391 (update_debug_registers_callback): Likewise.
4392 (x86_linux_dr_set_control): Likewise.
4393 (x86_linux_dr_set_addr): Likewise.
4394 (x86_linux_prepare_to_resume): Likewise.
4395 (x86_linux_new_thread): Likewise.
4396 (x86_linux_new_fork): Likewise.
4397 (x86_linux_get_thread_area): Likewise.
4398 (super_post_startup_inferior): Likewise.
4399 (x86_linux_child_post_startup_inferior): Likewise.
4400 (AMD64_LINUX_USER64_CS): Likewise.
4401 (AMD64_LINUX_X32_DS): Likewise.
4402 (x86_linux_read_description): Likewise.
4403 (x86_linux_enable_btrace): Likewise.
4404 (x86_linux_disable_btrace): Likewise.
4405 (x86_linux_teardown_btrace): Likewise.
4406 (x86_linux_read_btrace): Likewise.
4407 (x86_linux_create_target): Likewise.
4408 (x86_linux_add_target): Likewise.
4410 2014-07-11 Gary Benson <gbenson@redhat.com>
4412 * amd64-linux-nat.c: Comment and whitespace changes.
4413 * i386-linux-nat.c: Comment and whitespace changes.
4415 2014-07-11 Gary Benson <gbenson@redhat.com>
4417 * amd64-linux-nat.c (x86_linux_create_target): New function.
4418 (x86_linux_add_target): Likewise.
4419 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4420 * i386-linux-nat.c (x86_linux_create_target): New function.
4421 (x86_linux_add_target): Likewise.
4422 (_initialize_i386_linux_nat): Delegate to the above new functions.
4424 2014-07-11 Gary Benson <gbenson@redhat.com>
4426 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4427 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4428 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4429 (ps_get_thread_area): Delegate to the above.
4431 2014-07-11 Gary Benson <gbenson@redhat.com>
4433 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4434 x86_linux_read_description. All uses updated. amd64-specific
4435 code conditionalized. Conditionalized i386-specific code added.
4436 Redundant cast removed.
4437 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4438 x86_linux_read_description. All uses updated. i386-specific
4439 code conditionalized. Conditionalized amd64-specific code added.
4440 One sizeof replaced with the actual type it is describing.
4442 2014-07-11 Gary Benson <gbenson@redhat.com>
4444 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4445 x86_linux_dr_get. All uses updated.
4446 (amd64_linux_dr_set): Renamed to
4447 x86_linux_dr_set. All uses updated.
4448 (amd64_linux_dr_get_addr): Renamed to
4449 x86_linux_dr_get_addr. All uses updated.
4450 (amd64_linux_dr_get_control): Renamed to
4451 x86_linux_dr_get_control. All uses updated.
4452 (amd64_linux_dr_get_status): Renamed to
4453 x86_linux_dr_get_status. All uses updated.
4454 (amd64_linux_dr_set_control): Renamed to
4455 x86_linux_dr_set_control. All uses updated.
4456 (amd64_linux_dr_set_addr): Renamed to
4457 x86_linux_dr_set_addr. All uses updated.
4458 (amd64_linux_prepare_to_resume): Renamed to
4459 x86_linux_prepare_to_resume. All uses updated.
4460 (amd64_linux_new_thread): Renamed to
4461 x86_linux_new_thread. All uses updated.
4462 (amd64_linux_new_fork): Renamed to
4463 x86_linux_new_fork. All uses updated.
4464 (amd64_linux_child_post_startup_inferior): Renamed to
4465 x86_linux_child_post_startup_inferior. All uses updated.
4466 (amd64_linux_enable_btrace): Renamed to
4467 x86_linux_enable_btrace. All uses updated.
4468 (amd64_linux_disable_btrace): Renamed to
4469 x86_linux_disable_btrace. All uses updated.
4470 (amd64_linux_teardown_btrace): Renamed to
4471 x86_linux_teardown_btrace. All uses updated.
4472 (amd64_linux_read_btrace): Renamed to
4473 x86_linux_read_btrace. All uses updated.
4474 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4475 x86_linux_dr_get. All uses updated.
4476 (i386_linux_dr_set): Renamed to
4477 x86_linux_dr_set. All uses updated.
4478 (i386_linux_dr_get_addr): Renamed to
4479 x86_linux_dr_get_addr. All uses updated.
4480 (i386_linux_dr_get_control): Renamed to
4481 x86_linux_dr_get_control. All uses updated.
4482 (i386_linux_dr_get_status): Renamed to
4483 x86_linux_dr_get_status. All uses updated.
4484 (i386_linux_dr_set_control): Renamed to
4485 x86_linux_dr_set_control. All uses updated.
4486 (i386_linux_dr_set_addr): Renamed to
4487 x86_linux_dr_set_addr. All uses updated.
4488 (i386_linux_prepare_to_resume): Renamed to
4489 x86_linux_prepare_to_resume. All uses updated.
4490 (i386_linux_new_thread): Renamed to
4491 x86_linux_new_thread. All uses updated.
4492 (i386_linux_new_fork): Renamed to
4493 x86_linux_new_fork. All uses updated.
4494 (i386_linux_child_post_startup_inferior): Renamed to
4495 x86_linux_child_post_startup_inferior. All uses updated.
4496 (i386_linux_enable_btrace): Renamed to
4497 x86_linux_enable_btrace. All uses updated.
4498 (i386_linux_disable_btrace): Renamed to
4499 x86_linux_disable_btrace. All uses updated.
4500 (i386_linux_teardown_btrace): Renamed to
4501 x86_linux_teardown_btrace. All uses updated.
4502 (i386_linux_read_btrace): Renamed to
4503 x86_linux_read_btrace. All uses updated.
4505 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4507 * remote.c (extended_remote_post_attach): New function.
4508 (init_extended_remote_ops): Install it as to_post_attach method.
4510 2014-07-09 Pedro Alves <palves@redhat.com>
4512 * infcmd.c (attach_command_post_wait): Don't call
4513 target_terminal_inferior here.
4514 (attach_command): Call it here instead.
4516 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4518 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4520 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4521 from varobj.c, with additional checks.
4522 (c_varobj_ops): Fill in is_path_expr_parent field.
4523 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4524 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4526 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4528 (varobj_default_is_path_expr_parent): New function.
4529 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4530 (varobj_default_is_path_expr_parent): Declare new function.
4532 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4534 * infcmd.c (finish_backward): Turn internal error into normal error.
4536 2014-07-07 Pedro Alves <palves@redhat.com>
4539 * remote.c (async_handle_remote_sigint)
4540 (async_handle_remote_sigint_twice): Call
4541 gdb_call_async_signal_handler instead of
4542 mark_async_signal_handler.
4544 2014-07-07 Tom Tromey <tromey@redhat.com>
4546 * target-delegates.c: Rebuild.
4547 * target.c (target_info_record): Remove.
4548 * record.c (info_record_command): Unconditionally call
4550 * target.h (struct target_ops) <to_info_record>: Use
4551 TARGET_DEFAULT_IGNORE.
4552 (target_info_record): Remove.
4554 2014-07-07 Tom Tromey <tromey@redhat.com>
4556 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4557 TARGET_DEFAULT_NORETURN.
4558 * target.c (generic_tls_error): New function.
4559 (target_translate_tls_address): Don't search target stack.
4560 * target-delegates.c: Rebuild.
4561 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4563 * linux-thread-db.c (thread_db_get_thread_local_address):
4564 Unconditionally call beneath target.
4566 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4568 * cli/cli-logging.c (pop_output_files): Assign targerr to
4571 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4573 * MAINTAINERS (Write After Approval): Update my email address.
4575 2014-07-02 Gary Benson <gbenson@redhat.com>
4577 * proc-service.c (ps_xfer_memory): Update comment.
4578 (ps_pstop): Remove unused function.
4579 (ps_pcontinue): Likewise.
4580 (ps_lstop): Likewise.
4581 (ps_lcontinue): Likewise.
4582 (ps_lgetxregsize): Likewise.
4583 (ps_lgetxregs): Likewise.
4584 (ps_lsetxregs): Likewise.
4585 (ps_plog): Likewise.
4586 (ps_ptread): Likewise.
4587 (ps_ptwrite): Likewise.
4589 2014-07-01 Mark Wielaard <mjw@redhat.com>
4591 * dwarf2read.c (add_array_cv_type): New function.
4592 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4593 (read_tag_volatile_type): Likewise.
4595 2014-07-01 Tom Tromey <tromey@redhat.com>
4597 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4598 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4599 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4600 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4601 * command.h (cmd_cfunc_ftype): Move earlier.
4602 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4603 (add_com, add_info): Use cmd_cfunc_ftype.
4605 2014-06-30 Tom Tromey <tromey@redhat.com>
4607 * symtab.c (operator_chars): Make parameters and return type
4609 (file_matches): Make "files" const.
4610 (struct search_symbols_data) <files>: Now const.
4611 (search_symbols): Make "regexp" and "files" parameters const.
4613 (symtab_symbol_info): Remove cast.
4614 (rbreak_command): Update.
4615 * symtab.h (search_symbols): Update.
4617 2014-06-27 Yao Qi <yao@codesourcery.com>
4619 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4620 Change parameter type to 'struct thread_info *'. Caller
4622 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4624 * dummy-frame.c (struct dummy_frame_id): New.
4625 (dummy_frame_id_eq): New function.
4626 (struct dummy_frame) <id>: Change its type to 'struct
4628 (dummy_frame_push): Add parameter ptid and save it in
4630 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4632 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4634 (lookup_dummy_frame): Change parameter type to 'struct
4635 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4636 instead of frame_id_eq.
4637 (dummy_frame_pop): Add parameter ptid. Callers updated.
4638 Update comments. Compose dummy_frame_id and pass it to
4640 (dummy_frame_discard): Add parameter ptid.
4641 (dummy_frame_sniffer): Compose dummy_frame_id and call
4642 dummy_frame_id_eq instead of frame_id_eq.
4643 (fprint_dummy_frames): Print ptid.
4644 * dummy-frame.h: Remove comments.
4645 (dummy_frame_push): Add ptid in declaration.
4646 (dummy_frame_pop, dummy_frame_discard): Likewise.
4648 2014-06-26 Tom Tromey <tromey@redhat.com>
4650 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4651 * command.h (error_no_arg): Update.
4653 2014-06-26 Tom Tromey <tromey@redhat.com>
4655 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4656 (do_show_command): Make "arg" const.
4657 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4659 2014-06-26 Tom Tromey <tromey@redhat.com>
4661 * record-full.c (record_full_get_bookmark): Make "args" const.
4662 (record_full_goto_bookmark): Make "raw_bookmark" const.
4663 * record.c (record_goto): New function.
4664 (cmd_record_goto): Use it. Now static.
4665 * record.h (record_goto): Declare.
4666 (cmd_record_goto): Remove declaration.
4667 * target-delegates.c: Rebuild.
4668 * target.h (struct target_ops) <to_get_bookmark,
4669 to_goto_bookmark>: Make parameter const.
4671 2014-06-26 Tom Tromey <tromey@redhat.com>
4673 * defs.h (generic_load): Update.
4674 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4675 * monitor.c (monitor_load): Make "args" const.
4676 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4677 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4679 (mips_load): Make "file" const.
4680 * remote-sim.c (gdbsim_load): Make "args" const.
4681 * remote.c (remote_load): Make "name" const.
4682 * symfile.c (generic_load): Make "args" const.
4683 * target-delegates.c: Rebuild.
4684 * target.c (target_load): Make "arg" const.
4685 (debug_to_load): Make "args" const.
4686 * target.h (struct target_ops) <to_load>: Make parameter const.
4687 (target_load): Update.
4689 2014-06-26 Tom Tromey <tromey@redhat.com>
4692 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4693 (dwarf2_physname, read_partial_die)
4694 (guess_partial_die_structure_name, fixup_partial_die)
4695 (guess_full_die_structure_name, anonymous_struct_prefix)
4696 (dwarf2_name): Use per-BFD obstack.
4698 2014-06-26 Yao Qi <yao@codesourcery.com>
4700 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4701 dummyframe and this_id into inner block below.
4703 2014-06-26 Yao Qi <yao@codesourcery.com>
4705 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4706 with "signal_pass[0]" in the initialization of signal_pass.
4708 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4710 * record-btrace.c (record_btrace_generating_corefile)
4711 (record_btrace_prepare_to_generate_core)
4712 (record_btrace_done_generating_core): New.
4713 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4714 (record_btrace_store_registers, record_btrace_prepare_to_store):
4715 Forward request when generating a core file.
4716 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4717 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4718 to_done_generating_core.
4720 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4722 * target.h (target_ops) <to_prepare_to_generate_core>
4723 <to_done_generating_core>: New.
4724 (target_prepare_to_generate_core, target_done_generating_core): New.
4725 * target.c (target_prepare_to_generate_core)
4726 (target_done_generating_core): New.
4727 * target-delegates.c: Regenerate.
4728 * gcore.c: (write_gcore_file): Rename to ...
4729 (write_gcore_file_1): ...this.
4730 (write_gcore_file): Call target_prepare_to_generate_core
4731 and target_done_generating_core.
4733 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4735 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4736 * gcore.c (write_gcore_file): Free memory returned from
4737 make_corefile_notes.
4738 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4739 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4741 2014-06-24 Yao Qi <yao@codesourcery.com>
4743 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4744 (arm_linux_init_abi): Set skip_trampoline_code with
4745 gdbarch_skip_trampoline_code instead of
4746 find_solib_trampoline_target.
4748 2014-06-24 Yao Qi <yao@codesourcery.com>
4750 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4751 arm_skip_bx_reg returns non-zero.
4753 2014-06-24 Yao Qi <yao@codesourcery.com>
4755 * arm-tdep.c (arm_skip_bx_reg): New function.
4756 (arm_skip_stub): Call arm_skip_bx_reg.
4758 2014-06-23 Don Breazeal <donb@codesourcery.com>
4760 * MAINTAINERS: Add myself as write-after-approval maintainer.
4762 2014-06-23 Pedro Alves <palves@redhat.com>
4764 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4765 DR_CONTROL before setting DR0..DR3.
4766 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4767 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4768 bits of DR_CONTROL related to the debug register slot being
4769 disabled. If all slots are vacant, clear local slowdown as well,
4770 and assert DR_CONTROL is 0.
4772 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4774 * python/lib/gdb/command/xmethods.py
4775 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4776 current progspace only if the string "progspace" matches LOCUS_RE.
4778 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4780 Fix --with-system-readline with readline-6.3 patch 5.
4781 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4782 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4785 2014-06-20 Tom Tromey <tromey@redhat.com>
4787 * dwarf2read.c (dw2_get_real_path): Use correct type in
4789 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4791 2014-06-20 Gary Benson <gbenson@redhat.com>
4793 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4794 * common/glibc_thread_db.h: Likewise.
4795 * common/i386-cpuid.h: Likewise.
4796 * common/i386-gcc-cpuid.h: Likewise.
4797 * common/linux-btrace.h: Likewise.
4798 * common/linux-osdata.h: Likewise.
4799 * common/linux-procfs.h: Likewise.
4800 * common/linux-ptrace.h: Likewise.
4801 * common/mips-linux-watch.h: Likewise.
4802 * common/linux-btrace.c: Moved to nat.
4803 * common/linux-osdata.c: Likewise.
4804 * common/linux-procfs.c: Likewise.
4805 * common/linux-ptrace.c: Likewise.
4806 * common/mips-linux-watch.c: Likewise.
4807 * nat/gdb_thread_db.h: Moved from common.
4808 * nat/glibc_thread_db.h: Likewise.
4809 * nat/i386-cpuid.h: Likewise.
4810 * nat/i386-gcc-cpuid.h: Likewise.
4811 * nat/linux-btrace.c: Likewise.
4812 * nat/linux-btrace.h: Likewise.
4813 * nat/linux-osdata.c: Likewise.
4814 * nat/linux-osdata.h: Likewise.
4815 * nat/linux-procfs.c: Likewise.
4816 * nat/linux-procfs.h: Likewise.
4817 * nat/linux-ptrace.c: Likewise.
4818 * nat/linux-ptrace.h: Likewise.
4819 * nat/mips-linux-watch.c: Likewise.
4820 * nat/mips-linux-watch.h: Likewise.
4821 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4822 (object file files): Reordered.
4823 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4824 of glibc_thread_db.h.
4826 2014-06-20 Gary Benson <gbenson@redhat.com>
4828 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4829 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4830 (i386_dr_low): Likewise.
4831 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4832 (i386_dr_low_set_addr): Likewise.
4833 (i386_dr_low_get_addr): Likewise.
4834 (i386_dr_low_can_set_control): Likewise.
4835 (i386_dr_low_set_control): Likewise.
4836 (i386_dr_low_get_control): Likewise.
4837 (i386_dr_low_get_status): Likewise.
4838 (i386_get_debug_register_length): Likewise.
4839 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4840 (i386_dr_low): Likewise.
4841 * nat/i386-dregs.c (i386-low.h): Remove include.
4842 (i386-nat.h): Likewise.
4843 (nat/i386-dregs.h): New include.
4844 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4845 (i386_dr_low_set_addr): Likewise.
4846 (i386_dr_low_get_addr): Likewise.
4847 (i386_dr_low_can_set_control): Likewise.
4848 (i386_dr_low_set_control): Likewise.
4849 (i386_dr_low_get_control): Likewise.
4850 (i386_dr_low_get_status): Likewise.
4851 (i386_get_debug_register_length): Likewise.
4852 (debug_hw_points): Likewise.
4854 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4856 * Makefile.in (SFILES): Add d-exp.y.
4857 (YYFILES): Add d-exp.c.
4858 (YYOBJ): Add d-exp.o.
4859 (local-maintainer-clean): Delete d-exp.c.
4860 * d-exp.y: New file.
4861 * d-lang.h (d_parse): New declaration.
4862 (d_error): New declaration.
4863 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4864 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4865 PREC_ORDER operators.
4866 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4868 2014-06-19 Yao Qi <yao@codesourcery.com>
4870 * gdbthread.h (any_running): Remove the declaration.
4871 * thread.c (any_running): Remove.
4873 2014-06-19 Yao Qi <yao@codesourcery.com>
4875 * gdbthread.h (struct thread_info) <state>: Change its type to
4876 'enum thread_state'. Update comments.
4878 2014-06-19 Pedro Alves <palves@redhat.com>
4880 * gdbthread.h (ALL_THREADS): Delete.
4881 (ALL_NON_EXITED_THREADS): New macro.
4882 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4883 instead of ALL_THREADS.
4884 * infrun.c (find_thread_needs_step_over)
4885 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4886 instead of ALL_THREADS.
4887 * record-btrace.c (record_btrace_open)
4888 (record_btrace_stop_recording, record_btrace_close)
4889 (record_btrace_is_replaying, record_btrace_resume)
4890 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4891 * remote.c (append_pending_thread_resumptions): Likewise.
4892 * thread.c (thread_apply_all_command): Likewise.
4894 2014-06-19 Gary Benson <gbenson@redhat.com>
4896 * i386-nat.c (i386_stopped_by_watchpoint):
4897 Use i386_dr_stopped_by_watchpoint.
4898 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4899 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4901 2014-06-19 Gary Benson <gbenson@redhat.com>
4903 * nat/i386-dregs.c: New file.
4904 * Makefile.in (i386-dregs.o): New rule.
4905 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4906 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4907 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4908 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4909 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4910 * config/i386/go32.mh (NATDEPFILES): Likewise.
4911 * config/i386/linux.mh (NATDEPFILES): Likewise.
4912 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4913 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4914 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4915 * i386-nat.h (debug_hw_points): New declaration.
4916 * i386-nat.c (breakpoint.h): Remove include.
4917 (command.h): Likewise.
4918 (target.h): Likewise.
4919 (gdb_assert.h): Likewise.
4920 (debug_hw_points): Made nonstatic.
4921 (debug_printf): Now in i386-dregs.c.
4922 (TARGET_HAS_DR_LEN_8): Likewise.
4923 (DR_CONTROL_SHIFT): Likewise.
4924 (DR_CONTROL_SIZE): Likewise.
4925 (DR_RW_EXECUTE): Likewise.
4926 (DR_RW_WRITE): Likewise.
4927 (DR_RW_READ): Likewise.
4928 (DR_RW_IORW): Likewise.
4929 (DR_LEN_1): Likewise.
4930 (DR_LEN_2): Likewise.
4931 (DR_LEN_4): Likewise.
4932 (DR_LEN_8): Likewise.
4933 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4934 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4935 (DR_ENABLE_SIZE): Likewise.
4936 (DR_LOCAL_SLOWDOWN): Likewise.
4937 (DR_GLOBAL_SLOWDOWN): Likewise.
4938 (DR_CONTROL_RESERVED): Likewise.
4939 (I386_DR_CONTROL_MASK): Likewise.
4940 (I386_DR_VACANT): Likewise.
4941 (I386_DR_LOCAL_ENABLE): Likewise.
4942 (I386_DR_GLOBAL_ENABLE): Likewise.
4943 (I386_DR_DISABLE): Likewise.
4944 (I386_DR_SET_RW_LEN): Likewise.
4945 (I386_DR_GET_RW_LEN): Likewise.
4946 (I386_DR_WATCH_HIT): Likewise.
4947 (i386_wp_op_t): Likewise.
4948 (i386_show_dr): Likewise.
4949 (i386_length_and_rw_bits): Likewise.
4950 (i386_insert_aligned_watchpoint): Likewise.
4951 (i386_remove_aligned_watchpoint): Likewise.
4952 (i386_handle_nonaligned_watchpoint): Likewise.
4953 (i386_update_inferior_debug_regs): Likewise.
4954 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4955 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4956 (i386_region_ok_for_watchpoint):
4957 Use i386_dr_region_ok_for_watchpoint.
4958 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4960 2014-06-19 Gary Benson <gbenson@redhat.com>
4962 * i386-nat.c (i386_insert_hw_breakpoint): Use
4963 i386_insert_watchpoint.
4964 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4966 2014-06-19 Gary Benson <gbenson@redhat.com>
4968 * i386-nat.c (i386_dr_show): Renamed to
4969 i386_show_dr and made static. All uses updated.
4970 (i386_dr_length_and_rw_bits): Renamed to
4971 i386_length_and_rw_bits and made static.
4973 (i386_dr_insert_aligned_watchpoint): Renamed to
4974 i386_insert_aligned_watchpoint and made static.
4976 (i386_dr_remove_aligned_watchpoint): Renamed to
4977 i386_remove_aligned_watchpoint and made static.
4979 (i386_dr_update_inferior_debug_regs): Renamed to
4980 i386_update_inferior_debug_regs and made static.
4982 * nat/i386-dregs.h (i386_dr_show): Removed.
4983 (i386_dr_length_and_rw_bits): Likewise.
4984 (i386_dr_insert_aligned_watchpoint): Likewise.
4985 (i386_dr_remove_aligned_watchpoint): Likewise.
4986 (i386_dr_update_inferior_debug_regs): Likewise.
4988 2014-06-19 Gary Benson <gbenson@redhat.com>
4990 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4991 * configure: Regenerate.
4992 * config.in: Likewise.
4993 * main.c (signal.h): New include.
4994 (setup_alternate_signal_stack): New function.
4995 (captured_main): Call the above.
4996 * cp-support.c (signal.h): New include.
4997 (catch_demangler_crashes): New flag.
4998 (SIGJMP_BUF): New define.
4999 (SIGSETJMP): Likewise.
5000 (SIGLONGJMP): Likewise.
5001 (gdb_demangle_jmp_buf): New static global.
5002 (gdb_demangle_attempt_core_dump): Likewise.
5003 (gdb_demangle_signal_handler): New function.
5004 (gdb_demangle): If catch_demangler_crashes is set, install the
5005 above signal handler before calling bfd_demangle, and restore
5006 the original signal handler afterwards. Display the offending
5007 symbol and call demangler_warning the first time a segmentation
5009 (_initialize_cp_support): New maint set/show command.
5011 2014-06-19 Gary Benson <gbenson@redhat.com>
5013 * utils.h (resource_limit_kind): New enum.
5014 (can_dump_core): New declaration.
5015 (warn_cant_dump_core): Likewise.
5016 (dump_core): Likewise.
5017 * utils.c (dump_core): Made nonstatic. Added new
5018 parameter "limit_kind".
5019 (can_dump_core): Made nonstatic. Moved printing code to...
5020 (warn_cant_dump_core): New function.
5021 (can_dump_core_warn): Likewise.
5022 (internal_vproblem): Replace calls to can_dump_core with
5023 calls to can_dump_core_warn. Supply new argument to each.
5025 2014-06-19 Gary Benson <gbenson@redhat.com>
5027 * utils.h (demangler_vwarning): New declaration.
5028 (demangler_warning): Likewise.
5029 * utils.c (struct internal_problem)
5030 <user_settable_should_quit>: New field.
5031 <user_settable_should_dump_core>: Likewise
5032 (internal_error_problem): Add values for above new fields.
5033 (internal_warning_problem): Likewise.
5034 (demangler_warning_problem): New static global.
5035 (demangler_vwarning): New function.
5036 (demangler_warning): Likewise.
5037 (add_internal_problem_command): Selectively add commands.
5038 (_initialize_utils): New internal problem command.
5039 * maint.c (maintenance_demangler_warning): New function.
5040 (_initialize_maint_cmds): New command.
5042 2014-06-18 Tom Tromey <tromey@redhat.com>
5044 * f-valprint.c (info_common_command_for_block): Update.
5045 * symtab.h (struct general_symbol_info) <common_block>: Now
5048 2014-06-18 Tom Tromey <tromey@redhat.com>
5050 * symtab.h (struct symtab) <blockvector>: Now const.
5051 * ada-lang.c (ada_add_global_exceptions): Update.
5052 * buildsym.c (augment_type_symtab): Update.
5053 * dwarf2read.c (dw2_lookup_symbol): Update.
5054 * jit.c (finalize_symtab): Update.
5055 * jv-lang.c (add_class_symtab_symbol): Update.
5056 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5058 * objfiles.c (objfile_relocate1): Update.
5059 * psymtab.c (lookup_symbol_aux_psymtabs)
5060 (maintenance_check_psymtabs): Update.
5061 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5063 * spu-tdep.c (spu_catch_start): Update.
5064 * symmisc.c (dump_symtab_1): Update.
5065 * symtab.c (lookup_global_symbol_from_objfile)
5066 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5067 (basic_lookup_transparent_type_quick)
5068 (basic_lookup_transparent_type, find_pc_sect_symtab)
5069 (find_pc_sect_line, search_symbols): Update.
5070 * block.c (find_block_in_blockvector): Make "bl" const.
5071 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5073 (blockvector_contains_pc): Make "bv" const.
5074 (block_for_pc_sect): Update.
5075 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5076 (blockvector_contains_pc): Update.
5077 * breakpoint.c (resolve_sal_pc): Update.
5078 * inline-frame.c (block_starting_point_at): Update.
5080 2014-06-18 Tom Tromey <tromey@redhat.com>
5082 * completer.c (complete_line): Make "line_buffer" const.
5083 * completer.h (complete_line): Update.
5085 2014-06-18 Tom Tromey <tromey@redhat.com>
5087 * symtab.c (add_macro_name): Remove unneeded cast.
5089 2014-06-18 Tom Tromey <tromey@redhat.com>
5091 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5092 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5094 2014-06-18 Tom Tromey <tromey@redhat.com>
5096 * probe.c (info_probes_for_ops): Make "arg" const.
5097 * probe.h (info_probes_for_ops): Update.
5099 2014-06-18 Tom Tromey <tromey@redhat.com>
5101 * varobj.c (varobj_create): Update.
5102 * valops.c (value_of_this): Update.
5103 * tracepoint.c (add_local_symbols, scope_info): Update.
5104 * symtab.h (struct general_symbol_info) <block>: Now const.
5105 * symtab.c (skip_prologue_sal)
5106 (default_make_symbol_completion_list_break_on)
5107 (skip_prologue_using_sal): Update.
5108 * stack.h (iterate_over_block_locals)
5109 (iterate_over_block_local_vars): Update.
5110 * stack.c (print_frame_args): Update.
5111 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5113 (get_selected_block): Make return type const.
5114 * python/py-frame.c (frapy_block): Update.
5115 * python/py-block.c (gdbpy_block_for_pc): Update.
5116 * p-exp.y (%union) <bval>: Now const.
5117 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5118 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5119 * m2-exp.y (%union) <bval>: Now const.
5120 * linespec.c (get_current_search_block): Make return type const.
5121 (create_sals_line_offset, find_label_symbols): Update.
5122 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5124 (block_starting_point_at): Make "block" const.
5125 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5126 (check_exception_resume): Update.
5127 * guile/scm-frame.c (gdbscm_frame_block): Update.
5128 * guile/scm-block.c (gdbscm_lookup_block): Update.
5129 * frame.h (get_frame_block): Update.
5130 (get_selected_block): Make return type const.
5131 * frame.c (frame_id_inner): Update.
5132 * f-valprint.c (info_common_command_for_block)
5133 (info_common_command): Update.
5134 * dwarf2loc.c (dwarf2_find_location_expression)
5135 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5136 (locexpr_describe_location_piece): Update.
5137 * c-exp.y (%union) <bval>: Now const.
5138 * breakpoint.c (resolve_sal_pc): Update.
5139 * blockframe.c (get_frame_block):Make return type const.
5140 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5141 (block_innermost_frame): Update.
5142 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5143 (block_for_pc, block_for_pc_sect): Update.
5144 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5146 (block_for_pc_sect, block_for_pc): Make return type const.
5147 * ax-gdb.c (gen_expr): Update.
5148 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5149 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5150 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5151 (ada_read_var_value): Update.
5152 * ada-exp.y (struct name_info) <block>: Now const.
5154 (block_lookup): Constify.
5156 2014-06-18 Gary Benson <gbenson@redhat.com>
5158 * nat/i386-dregs.h: New file.
5159 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5160 * i386-nat.h (i386-dregs.h): New include.
5161 (DR_FIRSTADDR): Now in i386-dregs.h.
5162 (DR_LASTADDR): Likewise.
5163 (DR_NADDR): Likewise.
5164 (DR_STATUS): Likewise.
5165 (DR_CONTROL): Likewise.
5166 (i386_debug_reg_state): Likewise.
5167 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5169 2014-06-18 Don Breazeal <donb@codesourcery.com>
5171 * breakpoint.c (set_longjmp_breakpoint): Call
5172 momentary_breakpoint_from_master with additional argument.
5173 (set_longjmp_breakpoint_for_call_dummy): Call
5174 momentary_breakpoint_from_master with additional argument.
5175 (set_std_terminate_breakpoint): Call
5176 momentary_breakpoint_from_master with additional argument.
5177 (momentary_breakpoint_from_master): Add argument to function
5178 definition and use it to initialize structure member flag.
5179 (clone_momentary_breakpoint): Call
5180 momentary_breakpoint_from_master with additional argument.
5181 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5182 member flags set in momentary_breakpoint_from_master.
5184 2014-06-18 Gary Benson <gbenson@redhat.com>
5186 * i386-nat.c (i386_show_dr): Renamed to
5187 i386_dr_show and made nonstatic. All uses updated.
5188 (i386_length_and_rw_bits): Renamed to
5189 i386_dr_length_and_rw_bits and made nonstatic.
5191 (i386_insert_aligned_watchpoint): Renamed to
5192 i386_dr_insert_aligned_watchpoint and made nonstatic.
5194 (i386_remove_aligned_watchpoint): Renamed to
5195 i386_dr_remove_aligned_watchpoint and made nonstatic.
5197 (i386_update_inferior_debug_regs): Renamed to
5198 i386_dr_update_inferior_debug_regs and made nonstatic.
5201 2014-06-18 Gary Benson <gbenson@redhat.com>
5203 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5204 (i386_dr_low_can_set_control): Likewise.
5205 (i386_dr_low_set_addr): Likewise.
5206 (i386_dr_low_set_control): Likewise.
5207 (i386_dr_low_get_addr): Likewise.
5208 (i386_dr_low_get_status): Likewise.
5209 (i386_dr_low_get_control): Likewise.
5210 (i386_insert_aligned_watchpoint): Use new macros.
5211 (i386_update_inferior_debug_regs): Likewise.
5212 (i386_stopped_data_address): Likewise.
5214 2014-06-18 Gary Benson <gbenson@redhat.com>
5216 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5217 New parameter. All uses updated.
5219 2014-06-18 Gary Benson <gbenson@redhat.com>
5221 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5224 2014-06-18 Gary Benson <gbenson@redhat.com>
5226 * i386-nat.c (debug_printf): New macro.
5227 (i386_get_debug_register_length): Likewise.
5228 (TARGET_HAS_DR_LEN_8): Use above macro.
5229 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5230 and printf_unfiltered. Use phex to format values.
5232 2014-06-18 Gary Benson <gbenson@redhat.com>
5234 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5237 2014-06-18 Gary Benson <gbenson@redhat.com>
5239 * i386-nat.c: Comment changes.
5241 2014-06-18 Gary Benson <gbenson@redhat.com>
5243 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5245 2014-06-18 Gary Benson <gbenson@redhat.com>
5247 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5248 (i386_insert_aligned_watchpoint): Likewise.
5249 (i386_remove_aligned_watchpoint): Likewise.
5250 (i386_handle_nonaligned_watchpoint): Likewise.
5252 2014-06-18 Gary Benson <gbenson@redhat.com>
5254 * i386-nat.c: Whitespace changes.
5256 2014-06-17 Samuel Bronson <naesten@gmail.com>
5258 * MAINTAINERS: Update Roland McGrath's email address.
5259 Thanks to Sergio Durigan Junior for pointing out that he left
5260 Red Hat a while ago, and giving me a current address.
5262 2014-06-17 Tom Tromey <tromey@redhat.com>
5264 * utils.h (savestring): Remove declaration.
5266 2014-06-17 Tom Tromey <tromey@redhat.com>
5268 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5270 2014-06-16 Keith Seitz <keiths@redhat.com>
5273 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5274 to update the varobj if inferior_ptid is null_ptid.
5276 2014-06-16 Tom Tromey <tromey@redhat.com>
5278 * target.h (struct target_ops) <to_info_proc>: Make parameter
5280 (target_info_proc): Update.
5281 * target.c (target_info_proc): Make "args" const.
5282 * procfs.c (procfs_info_proc): Update.
5283 * linux-tdep.c (linux_info_proc): Update.
5284 (linux_core_info_proc_mappings): Make "args" const.
5285 (linux_core_info_proc): Update.
5286 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5287 * gdbarch.c: Rebuild.
5288 * gdbarch.h: Rebuild.
5289 * corelow.c (core_info_proc): Update.
5291 2014-06-16 Tom Tromey <tromey@redhat.com>
5293 * target.h (struct target_ops) <to_disconnect>: Make parameter
5295 (target_disconnect): Update.
5296 * target.c (target_disconnect): Make "args" const.
5297 * target-delegates.c: Rebuild.
5298 * remote.c (remote_disconnect): Update.
5299 * record.h (record_disconnect): Update.
5300 * record.c (record_disconnect): Update.
5301 * inf-child.c (inf_child_disconnect): Update.
5303 2014-06-16 Tom Tromey <tromey@redhat.com>
5305 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5306 * target.c (debug_to_rcmd, default_rcmd): Update.
5307 * target-delegates.c: Rebuild.
5308 * remote.c (remote_rcmd): Update.
5309 * monitor.c (monitor_rcmd): Update.
5311 2014-06-16 Pedro Alves <palves@redhat.com>
5313 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5314 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5315 have OBJF_SHARED set.
5316 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5317 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5318 instead of OBJF_USERLOADED.
5319 * objfiles.h (OBJF_SHARED): Update comment.
5320 (userloaded_objfile_contains_address_p): Rename to ...
5321 (shared_objfile_contains_address_p): ... this, and update
5323 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5325 (remove_symbol_file_command): Skip objfiles that don't have
5328 2014-06-16 Tom Tromey <tromey@redhat.com>
5330 * minsyms.h (prim_record_minimal_symbol)
5331 (prim_record_minimal_symbol_and_info): Update comments.
5333 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5335 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5336 or --without-guile, according to how GDB was built.
5338 2014-06-13 Tom Tromey <tromey@redhat.com>
5340 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5342 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5344 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5346 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5347 help_list.Pass all_commands, not -1, to help_list.
5348 * cli/cli-dump.c (dump_command, append_command)
5349 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5350 (binary_dump_command, binary_append_command): Pass all_commands,
5351 not -1, to help_list.
5352 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5354 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5356 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5358 * top.c (set_history): Pass all_commands, not -1, to help_list.
5359 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5360 all_commands, not -1, to help_list.
5361 * symfile.c (overlay_command): Pass all_commands, not -1, to
5363 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5365 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5367 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5369 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5370 not -1, to help_list.
5371 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5372 not -1, to help_list.
5373 * maint.c (maintenance_command, maintenance_info_command)
5374 (maintenance_print_command, maintenance_set_cmd): Pass
5375 all_commands, not -1, to help_list.
5376 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5378 * language.c (set_check): Pass all_commands, not -1, to help_list.
5379 * infcmd.c (unset_command): Pass all_commands, not -1, to
5381 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5383 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5385 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5387 * breakpoint.c (save_command): Pass all_commands, not -1, to
5389 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5390 all_commands, not -1, to help_list.
5392 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5394 * regcache.c (struct register_to_invalidate): New structure.
5395 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5397 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5399 2014-06-12 Yao Qi <yao@codesourcery.com>
5401 * varobj.c (varobj_get_num_children): Call
5402 varobj_is_dynamic_p.
5403 (varobj_list_children): Likewise.
5404 (varobj_update): Likewise. Update comments.
5406 2014-06-12 Yao Qi <yao@codesourcery.com>
5408 * varobj.c (varobj_pretty_printed_p): Rename to ...
5409 (varobj_is_dynamic_p): ... this. New function.
5410 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5411 (varobj_is_dynamic_p): Declare.
5412 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5413 (mi_print_value_p, varobj_update_one): Likewise.
5415 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5416 Yao Qi <yao@codesourcery.com>
5418 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5419 (varobj_get_iterator): Wrap up code for pretty-printer by
5420 "#if HAVE_PYTHON" and "#endif".
5421 (update_dynamic_varobj_children): Likewise.
5423 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5424 Yao Qi <yao@codesourcery.com>
5426 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5427 gdb_python_initialized is false. Move some code from varobj.c.
5428 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5429 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5430 (struct varobj_item): Moved to varobj-iter.h".
5431 (varobj_clear_saved_item): New function.
5432 (update_dynamic_varobj_children): Move python-related code to
5434 (free_variable): Call varobj_clear_saved_item and
5437 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5438 Yao Qi <yao@codesourcery.com>
5440 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5441 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5442 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5443 (py-varobj.o): New rule.
5444 * python/py-varobj.c: New file.
5445 * python/python-internal.h (py_varobj_get_iterator): Declare.
5446 * varobj-iter.h: New file.
5447 * varobj.c: Include "varobj-iter.h"
5448 (struct varobj) <child_iter>: Change its type from "PyObject *"
5449 to "struct varobj_iter *".
5450 <saved_item>: Likewise.
5451 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5452 [HAVE_PYTHON] (varobj_get_iterator): New function.
5453 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5454 python-specific code to python/py-varobj.c.
5455 (install_visualizer): Call varobj_iter_delete instead of
5457 * varobj.h (varobj_ensure_python_env): Declare.
5459 2014-06-12 Yao Qi <yao@codesourcery.com>
5461 * varobj.c (struct varobj_item): New structure.
5462 (create_child_with_value): Update declaration.
5463 (varobj_add_child): Replace arguments 'name' and 'value' with
5464 'item'. All callers updated.
5465 (install_dynamic_child): Likewise.
5466 (update_dynamic_varobj_children): Likewise.
5467 (varobj_add_child): Likewise.
5468 (create_child_with_value): Likewise.
5470 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5472 * NEWS: Create a new section for the next release branch.
5473 Rename the section of the current branch, now that it has
5476 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5478 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5479 * version.in: Bump version to 7.8.50.DATE-cvs.
5481 2014-06-11 Pedro Alves <palves@redhat.com>
5484 * ser-mingw.c (net_windows_socket_check_pending): New function.
5485 (net_windows_select_thread): Ignore spurious wakeups. Use
5486 net_windows_socket_check_pending.
5487 (net_windows_wait_handle): Check for pending events with
5488 ioctlsocket, through net_windows_socket_check_pending, instead of
5489 checking the socket's event.
5491 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5493 * python/python-internal.h (gdb_PyObject_GetAttrString)
5494 (gdb_PyObject_HasAttrString): New inline function definitions.
5495 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5496 char * of the second argument to PyObject_GetAttrString.
5498 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5500 * serial.c (serial_write): Fix index of character to be printed
5501 in call to serial_logchar when serial debug traces are enabled.
5503 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5505 * gdbtypes (resolve_dynamic_range): Add function description.
5507 2014-06-09 Pedro Alves <palves@redhat.com>
5509 * linux-nat.c (linux_child_follow_fork): Initialize status with
5510 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5511 inner block. Only pass the signal to PTRACE_DETACH if in pass
5514 2014-06-09 Gary Benson <gbenson@redhat.com>
5516 * common/signals.c (gdb_signal_from_host): Reorder to separate
5517 the always-available ANSI-standard signals from the signals that
5519 (do_gdb_signal_to_host): Likewise.
5520 * proc-events.c (signal_table): Likewise.
5522 2014-06-08 Hui Zhu <hui@codesourcery.com>
5524 * common/linux-ptrace.c (linux_disable_event_reporting): New
5526 * common/linux-ptrace.h (linux_disable_event_reporting): New
5528 * linux-nat.c (linux_child_follow_fork): Do a single step before
5531 2014-06-07 Keith Seitz <keiths@redhat.com>
5535 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5536 from symbol_matches_domain in symtab.c. All local callers
5537 of symbol_matches_domain updated.
5538 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5539 search STRUCT_DOMAIN.
5540 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5541 independently. standard_lookup will do that automatically.
5542 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5543 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5544 (cp_lookup_symbol_in_namespace): Likewise.
5545 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5546 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5547 may return a STRUCT_DOMAIN match.
5548 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5549 * cp-support.c: Include language.h.
5550 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5552 * psymtab.c (match_partial_symbol): Compare the requested
5553 domain with the symbol's domain directly.
5554 (lookup_partial_symbol): Likewise.
5555 * symtab.c (lookup_symbol_in_language): Explain when/why
5556 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5557 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5558 appropriate languages.
5559 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5560 and moved to ada-lang.c
5561 (lookup_block_symbol): Explain that this function only returns
5562 symbol matching the requested DOMAIN.
5563 Compare the requested domain with the symbol's domain directly.
5564 (iterate_over_symbols): Compare the requested domain with the
5565 symbol's domain directly.
5566 * symtab.h (symbol_matches_domain): Remove.
5568 2014-06-06 Doug Evans <xdje42@gmail.com>
5570 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5571 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5572 (gdbscm_guile_version_is_at_least): Declare.
5573 (gdbscm_scm_string_to_int): Declare.
5574 * guile/guile.c (gdbscm_guile_major_version): New global.
5575 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5576 (guile_datadir): New static global.
5577 (gdbscm_guile_data_directory): New function.
5578 (initialize_scheme_side): Update.
5579 (misc_guile_functions): Add guile-data-directory.
5580 (initialize_gdb_module): Fetch guile version number.
5581 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5582 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5583 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5584 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5586 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5587 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5588 * guile/scm-value.c (gdbscm_value_to_string): Only call
5589 scm_port_conversion_strategy if Guile version >= 2.0.6.
5591 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5593 * main.c (print_gdb_help): Add -q and --silent.
5595 2014-06-06 Gary Benson <gbenson@redhat.com>
5597 * common/signals.c: Remove preprocessor conditionals for
5598 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5599 SIGSEGV and SIGTERM.
5600 * proc-events.c: Likewise.
5602 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5604 * symfile.c (symfile_free_objfile): Remove restriction to
5606 * symfile-mem.c (symbol_file_add_from_memory): Call
5607 add_target_sections_of_objfile.
5609 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5611 * guile/scm-value.c (gdbscm_history_append_x): Use
5612 'vlscm_get_value_smob_arg_unsafe' instead of
5613 'vlscm_scm_to_value'.
5615 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5618 * utils.c (printchar): Don't escape at all if quoter is NUL.
5619 Update function documentation to clarify effect of parameter
5621 * remote.c (escape_buffer): Pass '\\' as the quoter to
5622 fputstrn_unfiltered.
5623 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5624 generate the output.
5625 (mi_solib_unloaded): Same.
5627 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5629 * development.sh: Delete.
5630 * Makefile.in (config.status): Adjust dependency on development.sh.
5631 * configure.ac: Adjust development.sh source call.
5632 * configure: Regenerate.
5634 2014-06-04 Doug Evans <xdje42@gmail.com>
5636 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5637 is_scheme_bkpt, spec.
5638 (bpscm_make_breakpoint_smob): Initialize new members.
5639 (gdbscm_create_breakpoint_x): Split into two ...
5640 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5641 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5642 (scheme_function breakpoint_functions): Update.
5643 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5644 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5645 register-breakpoint!.
5647 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5650 * mem-break.c (z_type_supported): Return zero if
5651 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5653 2014-06-04 Tom Tromey <tromey@redhat.com>
5655 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5656 value_from_contents_and_address_unresolved.
5657 (ada_template_to_fixed_record_type_1): Likewise.
5658 (ada_which_variant_applies): Likewise.
5659 * value.h (value_from_contents_and_address_unresolved): Declare.
5660 * value.c (value_from_contents_and_address_unresolved): New
5662 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5663 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5664 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5666 2014-06-04 Tom Tromey <tromey@redhat.com>
5668 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5670 2014-06-04 Tom Tromey <tromey@redhat.com>
5672 * procfs.c (procfs_attach): Make "args" const.
5673 * windows-nat.c (windows_attach): Make "args" const.
5674 * nto-procfs.c (procfs_attach): Make "args" const.
5675 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5676 * go32-nat.c (go32_attach): Make "args" const.
5677 * gnu-nat.c (gnu_attach): Make "args" const.
5678 * darwin-nat.c (darwin_attach): Make "args" const.
5679 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5680 * linux-nat.c (linux_nat_attach): Make "args" const.
5681 * remote.c (extended_remote_attach_1, extended_remote_attach):
5683 * target.h (struct target_ops) <to_attach>: Make "args" const.
5684 (find_default_attach): Likewise.
5685 * utils.c (parse_pid_to_attach): Make "args" const.
5686 * utils.h (parse_pid_to_attach): Update.
5688 2014-06-04 Tom Tromey <tromey@redhat.com>
5690 * target-delegates.c: Rebuild.
5691 * target.c (default_thread_address_space): New function.
5692 (target_thread_address_space): Simplify.
5693 * target.h (struct target_ops) <to_thread_address_space>: Add
5694 TARGET_DEFAULT_FUNC.
5696 2014-06-04 Doug Evans <xdje42@gmail.com>
5698 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5700 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5702 * record-btrace.c: Include event-loop.h and inf-loop.h.
5703 (record_btrace_resume_exec_dir)
5704 (record_btrace_async_inferior_event_handler)
5705 (record_btrace_handle_async_inferior_event): New.
5706 (record_btrace_open): Create async event handler.
5707 (record_btrace_close): Delete async event handler.
5708 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5709 Mark async event handler.
5710 (record_btrace_execution_direction): New.
5711 (init_record_btrace_ops): Initialize to_execution_direction.
5713 2014-06-03 Doug Evans <xdje42@gmail.com>
5715 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5716 (gdbscm_make_parameter): Ditto.
5718 2014-06-03 Doug Evans <dje@google.com>
5720 * exec.c (exec_close_1): Call clear_section_table instead of
5721 resize_section_table.
5722 (clear_section_table): New function.
5723 (resize_section_table): Make static. Rename arg num_added to
5725 * exec.h (clear_section_table): Declare.
5726 (resize_section_table): Delete.
5727 * progspace.c (release_program_space): Call clear_section_table
5728 instead of resize_section_table.
5730 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5732 * NEWS (Python Scripting): Add entry about the new xmethods
5735 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5737 * python/py-xmethods.c: New file.
5738 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5739 (objfpy_dealloc): XDECREF on the new xmethods field.
5740 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5742 (objfpy_get_xmethods): New function.
5743 (objfile_getset): New entry 'xmethods'.
5744 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5745 (pspy_dealloc): XDECREF on the new xmethods field.
5746 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5748 (pspy_get_xmethods): New function.
5749 (pspace_getset): New entry 'xmethods'.
5750 * python/python-internal.h: Add declarations for new functions.
5751 * python/python.c (_initialize_python): Invoke
5752 gdbpy_initialize_xmethods.
5753 * python/lib/gdb/__init__.py (xmethods): New
5755 * python/lib/gdb/xmethod.py: New file.
5756 * python/lib/gdb/command/xmethods.py: New file.
5758 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5760 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5761 best match method returned by find_overload_match is an xmethod.
5762 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5763 the best matching operator returned by find_overload_match is an
5765 * valops.c: #include "extension.h".
5766 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5767 Return void. The list of matching source methods is returned in
5768 "fn_list" and a vector of matching debug method workers is
5769 returned in "xm_worker_vec". Update all callers.
5770 (value_find_oload_method_list): Likewise.
5771 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5772 non-NULL, then the index of the best matching method in this
5773 vector is returned. Update all callers.
5774 (find_overload_match): Include xmethods while performing overload
5777 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5779 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5780 * extension-priv.h (struct extension_language_ops): Add the
5782 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5783 get_matching_xmethod_workers, get_xmethod_argtypes,
5784 invoke_xmethod, free_xmethod_worker,
5785 free_xmethod_worker_vec): New functions.
5786 * extension.h: #include "common/vec.h".
5787 New function declarations.
5788 (struct xmethod_worker): New struct.
5789 (VEC (xmethod_worker_ptr)): New vector type.
5790 (xmethod_worker_ptr): New typedef.
5791 (xmethod_worker_vec): Likewise.
5792 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5794 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5795 (struct builtin_type): New field "xmethod".
5796 * valarith.c (value_ptradd): Assert that the value argument is not
5798 * valops.c (value_must_coerce_to_target): Return 0 for
5799 lval_xcallable values.
5800 * value.c (struct value): New field XM_WORKER in the field
5802 (value_address, value_raw_address): Return 0 for lval_xcallable
5804 (set_value_address): Assert that the value is not an
5806 (value_free): Free the associated xmethod worker when freeing
5807 lval_xcallable values.
5808 (set_value_component_location): Assert that the WHOLE value is not
5810 (value_of_xmethod, call_xmethod): New functions.
5811 * value.h: Declare "struct xmethod_worker".
5812 Declare new functions value_of_xmethod, call_xmethod.
5814 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5815 Pedro Alves <palves@redhat.com>
5817 PR breakpoints/17000
5818 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5819 New function, extracted from software_breakpoint_inserted_here_p.
5820 (software_breakpoint_inserted_here_p): Replace factored out code
5821 by call to find_non_raw_software_breakpoint_inserted_here.
5822 (bp_target_info_copy_insertion_state): New function.
5823 (bkpt_insert_location): Handle the case of a single-step
5824 breakpoint already inserted at the same address.
5825 (bkpt_remove_location): Handle the case of a single-step
5826 breakpoint still inserted at the same address.
5827 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5828 breakpoint already inserted at the same address.
5829 (deprecated_remove_raw_breakpoint): Handle the case of a
5830 non-raw breakpoint still inserted at the same address.
5831 (find_single_step_breakpoint): New function, extracted from
5832 single_step_breakpoint_inserted_here_p.
5833 (find_single_step_breakpoint): New function,
5834 factored out from single_step_breakpoint_inserted_here_p.
5835 (single_step_breakpoint_inserted_here_p): Reimplement.
5837 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5839 Pushed by Joel Brobecker <brobecker@adacore.com>
5840 * source.c (show_substitute_path_command): Fix display of matching
5843 2014-06-03 Gary Benson <gbenson@redhat.com>
5845 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5847 2014-06-02 Doug Evans <xdje42@gmail.com>
5849 Add parameter support for Guile.
5850 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5851 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5852 (scm-param.o): New rule.
5853 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5854 (gdbscm_misc_error): Declare.
5855 (gdbscm_canonicalize_command_name): Declare.
5856 (gdbscm_scm_to_host_string): Declare.
5857 (gdbscm_scm_from_host_string): Declare.
5858 (gdbscm_initialize_parameters): Declare.
5859 * guile/guile.c (initialize_gdb_module): Call
5860 gdbscm_initialize_parameters.
5861 * guile/lib/gdb.scm: Export parameter symbols.
5862 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5863 cmdscm_canonicalize_name and made public. All callers updated.
5864 * guile/scm-exception.c (gdbscm_misc_error): New function.
5865 * guile/scm-param.c: New file.
5866 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5867 (gdbscm_scm_to_host_string): New function.
5868 (gdbscm_scm_from_host_string): New function.
5869 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5871 2014-06-02 Doug Evans <xdje42@gmail.com>
5873 Add command support for Guile.
5874 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5875 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5876 (scm-cmd.o): New rule.
5877 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5878 (gdbscm_user_error_p): Declare.
5879 (gdbscm_parse_command_name): Declare.
5880 (gdbscm_valid_command_class_p): Declare.
5881 (gdbscm_initialize_commands): Declare.
5882 * guile/guile.c (initialize_gdb_module): Call
5883 gdbscm_initialize_commands.
5884 * guile/lib/gdb.scm: Export command symbols.
5885 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5886 (throw-user-error): New function.
5887 * guile/scm-cmd.c: New file.
5888 * guile/scm-exception.c (user_error_symbol): New static global.
5889 (gdbscm_user_error_p): New function.
5890 (gdbscm_initialize_exceptions): Set user_error_symbol.
5891 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5893 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5895 * top.c (command_loop): Handle comments here...
5896 (command_line_input): ... not here.
5898 2014-06-02 Doug Evans <xdje42@gmail.com>
5900 Add progspace support for Guile.
5901 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5902 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5903 (scm-progspace.o): New rule.
5904 * guile/guile-internal.h (pspace_smob): New typedef.
5905 (psscm_pspace_smob_pretty_printers): Declare.
5906 (psscm_pspace_smob_from_pspace): Declare.
5907 (psscm_scm_from_pspace): Declare.
5908 * guile/guile.c (initialize_gdb_module): Call
5909 gdbscm_initialize_pspaces.
5910 * guile/lib/gdb.scm: Export progspace symbols.
5911 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5913 (append-pretty-printer!): Ditto.
5914 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5916 * guile/scm-progspace.c: New file.
5918 2014-06-03 Alan Modra <amodra@gmail.com>
5920 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5921 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5923 2014-06-02 Doug Evans <dje@google.com>
5925 Add support for skeletonless type units.
5926 * dwarf2read.c (struct dwarf2_per_objfile): New member
5927 n_allocated_type_units.
5928 (struct dwarf2_per_objfile) <tu_stats>: New member
5929 nr_all_type_units_reallocs.
5930 (create_signatured_type_table_from_index): Initialize
5931 n_allocated_type_units
5932 (create_all_type_units): Ditto.
5933 (add_type_unit): Move up in file. New arg slot.
5934 All callers updated. Increase space for all_type_units more
5936 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5937 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5938 (lookup_dwp_signatured_type): Ditto.
5939 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5940 All callers updated.
5941 (build_type_psymtabs_1): Leave type_unit_groups as
5942 NULL if no TUs present.
5943 (print_tu_stats): New function.
5944 (process_skeletonless_type_unit): New function.
5945 (process_dwo_file_for_skeletonless_type_units): New
5947 (process_skeletonless_type_units): New function.
5948 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5949 Call print tu_stats if debugging enabled.
5951 2014-06-02 Pedro Alves <palves@redhat.com>
5953 * breakpoint.c (build_target_command_list): Don't build a command
5954 list if we have any duplicate location that isn't a dprintf.
5956 2014-06-02 Pedro Alves <palves@redhat.com>
5958 * breakpoint.c (dprintf_breakpoint_hit): New function.
5959 (initialize_breakpoint_ops): Install it as dprintf's
5960 breakpoint_hit method.
5962 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5964 * source.c (substitute_path_rule_matches): Simplify using
5965 filename_ncmp instead of FILENAME_CMP.
5967 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5969 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5971 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5973 * configure.ac: When Guile is available, check for the
5974 availability of 'scm_new_smob'.
5975 * configure, config.h.in: Regenerate.
5976 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5979 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5981 * frame.c (struct frame_info): Add stop_string field.
5982 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5983 (get_prev_frame_always): Old content moved into
5984 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5985 TRY_CATCH, handle MEMORY_ERROR exceptions.
5986 (frame_stop_reason_string): New function definition.
5987 * frame.h (unwind_stop_reason_to_string): Extend comment to
5988 mention frame_stop_reason_string.
5989 (frame_stop_reason_string): New function declaration.
5990 * stack.c (frame_info): Switch to frame_stop_reason_string.
5991 (backtrace_command_1): Switch to frame_stop_reason_string.
5992 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5993 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5994 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5996 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5998 * frame.c (frame_stop_reason_string): Rename to ...
5999 (unwind_stop_reason_to_string): this.
6000 * frame.h (frame_stop_reason_string): Rename to ...
6001 (unwind_stop_reason_to_string): this.
6002 * stack.c (frame_info): Update call to frame_stop_reason_string.
6003 (backtrace_command_1): Likewise.
6004 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6005 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6007 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6009 * frame.c (remove_prev_frame): New function.
6010 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6013 2014-05-29 Pedro Alves <palves@redhat.com>
6015 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6016 and make it const. When a single-step decays to a continue,
6017 clear 'step', not 'hw_step'. Pass whether the caller wanted
6018 to step to user_visible_resume_ptid, not what we ask the
6021 2014-05-29 Pedro Alves <palves@redhat.com>
6023 * infrun.c (process_event_stop_test, handle_step_into_function)
6024 (handle_step_into_function_backward): Adjust.
6025 Don't set the even thread's stop_step and call stop_waiting before
6026 calling end_stepping_range. Instead do that ...
6027 (end_stepping_range): ... here. Take an ecs pointer parameter.
6029 2014-05-29 Pedro Alves <palves@redhat.com>
6031 * infrun.c (stop_stepping): Rename to ...
6032 (stop_waiting): ... this.
6033 (proceed): Update comment.
6034 (process_event_stop_test, handle_inferior_event)
6035 (handle_signal_stop, handle_step_into_function)
6036 (handle_step_into_function_backward): Update.
6038 2014-05-29 Pedro Alves <palves@redhat.com>
6040 * infcall.c (run_inferior_call): Don't check whether the current
6041 thread is running after the proceed call.
6043 2014-05-29 Pedro Alves <palves@redhat.com>
6044 Tom Tromey <tromey@redhat.com>
6046 * NEWS: Mention "maint set target-async", "set mi-async", and that
6047 background execution commands are now always available.
6048 * target.h (target_async_permitted): Update comment.
6049 * target.c (target_async_permitted, target_async_permitted_1):
6051 (set_target_async_command): Rename to ...
6052 (maint_set_target_async_command): ... this.
6053 (show_target_async_command): Rename to ...
6054 (maint_show_target_async_command): ... this.
6055 (_initialize_target): Adjust.
6056 * infcmd.c (prepare_execution_command): Make extern.
6057 * inferior.h (prepare_execution_command): Declare.
6058 * infrun.c (set_observer_mode): Leave target async alone.
6059 * mi/mi-interp.c (mi_interpreter_init): Install
6060 mi_on_sync_execution_done as sync_execution_done observer.
6061 (mi_on_sync_execution_done): New function.
6062 (mi_execute_command_input_handler): Don't print the prompt if we
6063 just started a synchronous command with an async target.
6064 (mi_on_resume): Check sync_execution before printing prompt.
6065 * mi/mi-main.h (mi_async_p): Declare.
6066 * mi/mi-main.c: Include gdbcmd.h.
6067 (mi_async_p): New function.
6068 (mi_async, mi_async_1): New globals.
6069 (set_mi_async_command, show_mi_async_command, mi_async): New
6071 (exec_continue): Call prepare_execution_command.
6072 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6073 (mi_execute_async_cli_command): Use mi_async_p.
6074 (_initialize_mi_main): Install "set mi-async". Make
6075 "target-async" a deprecated alias.
6077 2014-05-29 Pedro Alves <palves@redhat.com>
6079 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6080 (_initialize_cli_interp): Adjust.
6081 * event-loop.c: Include "observer.h".
6082 (start_event_loop): Notify 'command_error' observers instead of
6083 calling display_gdb_prompt. Remove FIXME comment.
6084 * event-top.c (display_gdb_prompt): Remove call into the
6086 * inf-loop.c: Include "observer.h".
6087 (inferior_event_handler): Notify 'command_error' observers instead
6088 of calling display_gdb_prompt.
6089 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6090 observers instead of calling display_gdb_prompt.
6091 * interps.c (interp_set): Don't call display_gdb_prompt.
6092 (current_interp_display_prompt_p): Delete.
6093 * interps.h (interp_prompt_p): Delete declaration.
6094 (interp_prompt_p_ftype): Delete.
6095 (struct interp_procs) <prompt_proc_p>: Delete field.
6096 (current_interp_display_prompt_p): Delete declaration.
6097 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6098 (_initialize_mi_interp): Adjust.
6099 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6100 'command_error' observers.
6101 (tui_on_sync_execution_done, tui_on_command_error): New
6103 (tui_display_prompt_p): Delete.
6104 (_initialize_tui_interp): Adjust.
6106 2014-05-29 Pedro Alves <palves@redhat.com>
6109 * cli/cli-interp.c: Include infrun.h and observer.h.
6110 (cli_uiout, cli_interp): New globals.
6111 (cli_on_signal_received, cli_on_end_stepping_range)
6112 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6114 (cli_interpreter_init): Install them as 'end_stepping_range',
6115 'signal_received' 'signal_exited', 'exited' and 'no_history'
6117 (_initialize_cli_interp): Remove cli_interp local.
6118 * infrun.c (handle_inferior_event): Call the several stop reason
6119 observers instead of printing the stop reason directly.
6120 (end_stepping_range): New function.
6121 (print_end_stepping_range_reason, print_signal_exited_reason)
6122 (print_exited_reason, print_signal_received_reason)
6123 (print_no_history_reason): Make static, and add an uiout
6124 parameter. Print to that instead of to CURRENT_UIOUT.
6125 * infrun.h (print_end_stepping_range_reason)
6126 (print_signal_exited_reason, print_exited_reason)
6127 (print_signal_received_reason print_no_history_reason): New
6129 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6131 <cli_uiout>: New field.
6132 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6133 uiout for CLI output. Install 'signal_received',
6134 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6136 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6137 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6138 (mi_on_no_history): New functions.
6139 (ui_out_free_cleanup): Delete function.
6140 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6141 instead use the one already stored in the MI interpreter data.
6142 (mi_ui_out): Adjust.
6143 * tui/tui-interp.c: Include infrun.h and observer.h.
6144 (tui_interp): New global.
6145 (tui_on_signal_received, tui_on_end_stepping_range)
6146 (tui_on_signal_exited, tui_on_exited)
6147 (tui_on_no_history): New functions.
6148 (tui_init): Install them as 'end_stepping_range',
6149 'signal_received' 'signal_exited', 'exited' and 'no_history'
6151 (_initialize_tui_interp): Delete tui_interp local.
6153 2014-05-29 Pedro Alves <palves@redhat.com>
6156 * linux-nat.c (linux_nat_resume_callback): Rename the second
6157 parameter to 'except'. Skip LP if it points to EXCEPT.
6158 (linux_nat_resume): Don't mark the event lwp as not stopped
6159 before resuming sibling lwps. Instead ask
6160 linux_nat_resume_callback to skip the event lwp. Mark it as not
6161 stopped after actually resuming it.
6162 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6164 (wait_lwp): Mark the lwp as stopped here.
6165 (stop_wait_callback): Mark the lwp as not stopped right after
6166 resuming it. Don't mark lwps as stopped here.
6167 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6168 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6170 2014-05-29 Pedro Alves <palves@redhat.com>
6173 * infrun.c (resume): Determine how much to resume depending on
6174 whether the caller wanted a step, not whether we can hardware step
6175 the target. Mark all threads that we intend to run as running,
6176 unless we're calling an inferior function.
6177 (normal_stop): If the thread is running an infcall, don't finish
6179 * target.c (target_resume): Don't mark threads as running here.
6181 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6183 * serial.c (_initialize_serial): Remove support for
6184 the "set remotebaud" and "show remotebaud" commands.
6185 * NEWS: Add entry documenting the removal of that command.
6187 2014-05-28 Yao Qi <yao@codesourcery.com>
6189 * charset.c: Fix typo in comments.
6191 2014-05-27 Gary Benson <gbenson@redhat.com>
6193 * utils.c (internal_vproblem): Prompt for a bug report.
6195 2014-05-26 Andy Wingo <wingo@igalia.com>
6197 * guile/scm-arch.c (arscm_mark_arch_smob):
6198 * guile/scm-block.c (bkscm_mark_block_smob)
6199 (bkscm_mark_block_syms_progress_smob):
6200 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6201 * guile/scm-exception.c (exscm_mark_exception_smob):
6202 * guile/scm-frame.c (frscm_mark_frame_smob):
6203 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6204 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6205 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6206 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6207 (ppscm_mark_pretty_printer_worker_smob):
6208 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6209 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6210 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6211 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6213 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6216 2014-05-26 Andy Wingo <wingo@igalia.com>
6217 Doug Evans <xdje42@gmail.com>
6219 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6220 empty_base_class. All uses updated.
6221 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6222 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6224 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6225 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6226 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6227 (gdbscm_gsmob_has_property_p, add_property_name)
6228 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6229 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6230 (gdb-object-has-property?, gdb-object-properties): Remove.
6231 (gdb-object-kind): Renamed from gsmob-kind.
6233 2014-05-26 Andy Wingo <wingo@igalia.com>
6235 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6236 * configure: Regenerate.
6238 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6240 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6242 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6244 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6245 (replay_memory_access_read_only, replay_memory_access_read_write)
6246 (replay_memory_access_types, replay_memory_access)
6247 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6248 (cmd_set_record_btrace, cmd_show_record_btrace)
6249 (cmd_show_replay_memory_access): New.
6250 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6251 (record_btrace_remove_breakpoint): Replace
6252 record_btrace_allow_memory_access with replay_memory_access.
6253 (_initialize_record_btrace): Add commands.
6254 * NEWS: Announce it.
6256 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6258 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6260 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6262 * MAINTAINERS (Write After Approval): Move self back from
6265 2014-05-22 Pedro Alves <palves@redhat.com>
6267 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6268 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6269 (disable_randomization, enum exec_direction_kind)
6270 (execution_direction, stop_registers, start_remote)
6271 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6272 (wait_for_inferior, normal_stop, get_last_target_status)
6273 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6274 (insert_step_resume_breakpoint_at_sal)
6275 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6276 (set_step_info, print_stop_event, signal_stop_state)
6277 (signal_print_state, signal_pass_state, signal_stop_update)
6278 (signal_print_update, signal_pass_update)
6279 (update_signals_program_target, clear_exit_convenience_vars)
6280 (displaced_step_dump_bytes, update_observer_mode)
6281 (signal_catch_update, gdb_signal_from_command): Move
6283 * infrun.h: ... to this new file.
6284 * amd64-tdep.c: Include infrun.h.
6285 * annotate.c: Include infrun.h.
6286 * arch-utils.c: Include infrun.h.
6287 * arm-linux-tdep.c: Include infrun.h.
6288 * arm-tdep.c: Include infrun.h.
6289 * break-catch-sig.c: Include infrun.h.
6290 * breakpoint.c: Include infrun.h.
6291 * common/agent.c: Include infrun.h instead of inferior.h.
6292 * corelow.c: Include infrun.h.
6293 * event-top.c: Include infrun.h.
6294 * go32-nat.c: Include infrun.h.
6295 * i386-tdep.c: Include infrun.h.
6296 * inf-loop.c: Include infrun.h.
6297 * infcall.c: Include infrun.h.
6298 * infcmd.c: Include infrun.h.
6299 * infrun.c: Include infrun.h.
6300 * linux-fork.c: Include infrun.h.
6301 * linux-nat.c: Include infrun.h.
6302 * linux-thread-db.c: Include infrun.h.
6303 * monitor.c: Include infrun.h.
6304 * nto-tdep.c: Include infrun.h.
6305 * procfs.c: Include infrun.h.
6306 * record-btrace.c: Include infrun.h.
6307 * record-full.c: Include infrun.h.
6308 * remote-m32r-sdi.c: Include infrun.h.
6309 * remote-mips.c: Include infrun.h.
6310 * remote-notif.c: Include infrun.h.
6311 * remote-sim.c: Include infrun.h.
6312 * remote.c: Include infrun.h.
6313 * reverse.c: Include infrun.h.
6314 * rs6000-tdep.c: Include infrun.h.
6315 * s390-linux-tdep.c: Include infrun.h.
6316 * solib-irix.c: Include infrun.h.
6317 * solib-osf.c: Include infrun.h.
6318 * solib-svr4.c: Include infrun.h.
6319 * target.c: Include infrun.h.
6320 * top.c: Include infrun.h.
6321 * windows-nat.c: Include infrun.h.
6322 * mi/mi-interp.c: Include infrun.h.
6323 * mi/mi-main.c: Include infrun.h.
6324 * python/py-threadevent.c: Include infrun.h.
6326 2014-05-22 Pedro Alves <palves@redhat.com>
6328 * infrun.c (handle_inferior_event): Store the exit code for
6329 --return-child-result here, instead of ...
6330 (print_exited_reason): ... here.
6332 2014-05-21 Pedro Alves <palves@redhat.com>
6335 * gdbthread.h (struct thread_control_state): New field
6337 * infrun.c (follow_fork): Copy the new thread control field to the
6339 (clear_proceed_status_thread): Clear the new thread control field.
6340 (proceed): Set the new thread control field.
6341 * interps.h (command_interp): Declare.
6342 * interps.c (command_interpreter): New global.
6343 (command_interp): New function.
6344 (interp_exec): Set `command_interpreter' while here.
6345 * cli-out.c (cli_uiout_dtor): New function.
6346 (cli_ui_out_impl): Install it.
6347 * mi/mi-interp.c: Include cli-out.h.
6348 (mi_cmd_interpreter_exec): Add comment.
6349 (restore_current_uiout_cleanup): New function.
6350 (ui_out_free_cleanup): New function.
6351 (mi_on_normal_stop): If finishing an execution command started by
6352 a CLI command, or any kind of breakpoint-like event triggered,
6353 print the stop event to the output (CLI) stream.
6354 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6356 2014-05-21 Pedro Alves <palves@redhat.com>
6358 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6359 current source line having changed.
6360 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6361 * infrun.c (normal_stop): Adjust call to
6362 set_current_sal_from_frame.
6363 * source.c (clear_lines_listed_range): New function.
6364 (set_current_source_symtab_and_line, identify_source_line): Clear
6365 the lines listed range.
6366 (line_info): Handle the first "info line" after the current source
6367 line having changed.
6368 * stack.c (print_stack_frame): Remove center handling.
6369 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6372 2014-05-21 Pedro Alves <palves@redhat.com>
6374 * inf-child.c (inf_child_mourn_inferior): New function.
6375 * inf-child.h (inf_child_mourn_inferior): New declaration.
6376 * darwin-nat.c (darwin_mourn_inferior): Use
6377 inf_child_mourn_inferior.
6378 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6379 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6380 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6381 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6382 * windows-nat.c (windows_mourn_inferior): Likewise.
6384 2014-05-21 Doug Evans <xdje42@gmail.com>
6386 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6388 2014-05-21 Doug Evans <xdje42@gmail.com>
6390 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6391 (gdbscm_out_of_range_error): Ditto.
6392 (gdbscm_memory_error): Ditto.
6393 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6394 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6395 (gdbscm_out_of_range_error): Update.
6396 (gdbscm_memory_error): Update.
6397 (gdbscm_scm_to_target_string_unsafe): Delete.
6399 2014-05-21 Pedro Alves <palves@redhat.com>
6401 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6403 (inf_child_open_target): New function.
6404 (inf_child_open): Use inf_child_open_target to push the target
6405 instead of erroring out.
6406 (inf_child_disconnect, inf_child_close)
6407 (inf_child_maybe_unpush_target): New functions.
6408 (inf_child_target): Install inf_child_disconnect and
6409 inf_child_close. Store a pointer to the returned object.
6410 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6412 * target.c (auto_connect_native_target): New global.
6413 (show_default_run_target): New function.
6414 (find_default_run_target): Return NULL if automatically connecting
6415 to the native target is disabled.
6416 (_initialize_target): Install set/show auto-connect-native-target.
6417 * NEWS: Mention "set auto-connect-native-target", and "target
6419 * linux-nat.c (super_close): New global.
6420 (linux_nat_close): Call super_close.
6421 (linux_nat_add_target): Store a pointer to the base class's
6423 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6424 inf_child_maybe_unpush.
6425 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6427 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6428 the inferior. Use inf_child_maybe_unpush_target.
6429 (inf_ttrace_attach): Don't push the target if it is already
6431 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6432 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6433 after mourning the inferior. Use inf_child_maybe_unpush_target.
6434 (darwin_attach_pid): Don't push the target if it is already
6436 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6437 mourning the inferior. Use inf_child_maybe_unpush_target.
6438 (gnu_detach): Use inf_child_maybe_unpush_target.
6439 * go32-nat.c (go32_create_inferior): Don't push the target if it
6441 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6442 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6443 (procfs_open): Rename to ...
6444 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6445 comments. Can target_preopen before changing node. Call
6446 inf_child_open_target to push the target explicitly.
6447 (procfs_attach): Don't push the target if it is already pushed.
6448 (procfs_detach): Use inf_child_maybe_unpush_target.
6449 (procfs_create_inferior): Don't push the target if it is already
6451 (nto_native_ops): New global.
6452 (procfs_open): Reimplement.
6453 (procfs_native_open): New function.
6454 (init_procfs_targets): Install procfs_native_open as to_open of
6455 "target native". Store a pointer to the "native" target in
6457 * procfs.c (procfs_attach): Don't push the target if it is already
6459 (procfs_detach): Use inf_child_maybe_unpush_target.
6460 (procfs_mourn_inferior): Only unpush the target after mourning the
6461 inferior. Use inf_child_maybe_unpush_target.
6462 (procfs_init_inferior): Don't push the target if it is already
6464 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6465 if it is already pushed.
6467 2014-05-21 Pedro Alves <palves@redhat.com>
6469 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6470 and "procfs" targets are now called "native" instead.
6472 2014-05-21 Pedro Alves <palves@redhat.com>
6474 * go32-nat.c (go32_open): Delete.
6475 (go32_target): Don't override the to_open method.
6477 2014-05-21 Pedro Alves <palves@redhat.com>
6479 * nto-procfs.c (procfs_can_run): New function.
6480 (nto_procfs_ops): New global.
6481 (init_procfs_targets): New, based on procfs_target. Install
6482 "target native" in addition to "target procfs".
6483 (_initialize_procfs): Call init_procfs_targets instead of adding
6486 2014-05-21 Pedro Alves <palves@redhat.com>
6488 * windows-nat.c (windows_target): Don't override to_shortname,
6489 to_longname or to_doc.
6491 2014-05-21 Pedro Alves <palves@redhat.com>
6493 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6496 2014-05-21 Pedro Alves <palves@redhat.com>
6498 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6499 to_shortname, to_longname or to_doc.
6501 2014-05-21 Pedro Alves <palves@redhat.com>
6503 * go32-nat.c (go32_target): Don't override to_shortname,
6504 to_longname or to_doc.
6506 2014-05-21 Pedro Alves <palves@redhat.com>
6508 * inf-child.c (inf_child_open): Remove mention of "child".
6509 (inf_child_target): Rename target to "native" instead of "child".
6511 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6513 * Makefile.in (SFILES): Delete "regset.c".
6514 (COMMON_OBS): Delete "regset.o".
6516 * regset.h (regset_alloc): Delete prototype.
6518 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6520 * sparc-linux-tdep.c (sparc32_linux_gregset)
6521 (sparc32_linux_fpregset): New static regset structures.
6522 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6523 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6525 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6526 (sparc64_linux_fpregset): New static regset structures.
6527 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6528 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6529 New static regset structures.
6530 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6531 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6532 New static regset structures.
6533 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6534 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6535 New static regset structures.
6536 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6537 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6538 New static regset structures.
6539 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6541 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6543 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6544 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6545 register maps ("regmaps") from "*regset" to "*regmap". Do this
6546 for all regmap types and variables.
6547 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6548 (sparc32_linux_supply_core_gregset)
6549 (sparc32_linux_collect_core_gregset)
6550 (sparc32_linux_supply_core_fpregset)
6551 (sparc32_linux_collect_core_fpregset): Likewise.
6552 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6553 (sparc_gregmap, sparc_fpregmap): ... these.
6554 (sparc_supply_gregset, sparc_collect_gregset)
6555 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6556 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6557 (_initialize_sparc_nat): Rename regmaps.
6558 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6559 (sparc_gregmap, sparc_fpregmap): ... these.
6560 (sparc_supply_gregset, sparc_collect_gregset)
6561 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6562 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6564 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6565 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6567 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6569 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6570 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6571 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6573 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6574 (sparc32_bsd_fpregset): Rename to...
6575 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6576 (sparc32_bsd_fpregmap): ... these.
6577 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6578 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6579 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6580 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6581 (struct sparc_gregmap, struct sparc_fpregmap)
6582 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6583 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6584 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6585 (sparc32_supply_regset, sparc32_collect_gregset)
6586 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6588 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6589 (sparc64_linux_ptrace_gregmap): ... this.
6590 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6591 (_initialize_sparc64_linux_nat): Rename regmaps.
6592 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6593 (sparc64_linux_core_gregmap): ... this.
6594 (sparc64_linux_supply_core_gregset)
6595 (sparc64_linux_collect_core_gregset)
6596 (sparc64_linux_supply_core_fpregset)
6597 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6598 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6599 (sparc64_sol2_fpregset): Rename to...
6600 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6601 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6602 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6604 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6605 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6606 (sparc64_bsd_fpregset): Rename to...
6607 (struct sparc_gregmap, sparc64_sol2_gregmap)
6608 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6609 (sparc64_bsd_fpregmap): ... these.
6610 (sparc64_supply_gregset, sparc64_collect_gregset)
6611 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6613 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6614 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6615 (sparc64fbsd_gregmap): ... this.
6616 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6617 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6619 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6620 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6621 (sparc64nbsd_collect_fpregset): Likewise.
6622 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6623 (sparc64nbsd_gregmap): ... this.
6624 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6626 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6627 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6628 (sparc64obsd_gregmap): ... this.
6629 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6631 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6632 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6633 (sparc32nbsd_gregmap): ... this.
6634 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6639 * score-tdep.c (score7_linux_gregset): New static regset
6641 (score7_linux_regset_from_core_section): Remove dynamic regset
6643 (score_gdbarch_init): Drop allocation of tdep structure.
6644 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6646 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6648 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6650 (am33_regset_from_core_section): Remove dynamic regset
6653 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6655 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6656 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6658 (mips_linux_regset_from_core_section): Remove dynamic regset
6660 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6661 'gregset64', 'fpregset', and 'fpregset64'.
6662 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6663 deleted tdep fields.
6665 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6667 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6669 (amd64_regset_from_core_section): Remove dynamic regset
6671 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6673 (amd64obsd_regset_from_core_section): Remove dynamic regset
6675 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6677 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6678 x86-common regset supply function.
6679 * i386-tdep.c (i386_collect_gregset): Make static.
6680 (i386_gregset): New global regset structure.
6681 (i386_fpregset, i386_xstateregset): New static regset structures.
6682 (i386_regset_from_core_section): Remove dynamic regset
6684 (i386_gdbarch_init): Remove initialization of tdep fields
6685 'gregset', 'fpregset', and 'xstateregset'.
6686 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6687 'fpregset', and 'xstateregset'.
6688 (i386_collect_gregset): Remove prototype.
6689 (i386_gregset): New declaration.
6690 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6692 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6695 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6697 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6698 (arm_linux_vfpregset): New static regset structures.
6699 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6701 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6702 and 'vfpregset' fields.
6704 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6706 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6707 (aarch64_linux_fpregset): New static regset structures.
6708 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6709 of regset structures.
6710 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6713 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6715 * regset.h (struct regset): Remove gdbarch field.
6716 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6717 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6718 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6720 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6721 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6722 (ppc32_linux_vsxregset): Likewise.
6723 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6724 via the regcache instead of the regset.
6725 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6726 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6727 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6728 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6731 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6733 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6734 Constify structures.
6735 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6736 (alphanbsd_aout_gregset): Likewise.
6737 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6738 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6740 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6741 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6743 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6744 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6745 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6746 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6747 * m88k-tdep.c (m88k_gregset): Likewise.
6748 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6749 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6750 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6751 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6752 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6753 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6754 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6755 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6756 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6758 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6759 * sh-tdep.h (sh_corefile_gregset): Likewise.
6760 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6761 * vax-tdep.c (vax_gregset): Likewise.
6763 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6765 Fix TLS access for -static -pthread.
6766 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6767 (try_thread_db_load_1): Initialize it.
6768 (thread_db_get_thread_local_address): Call it if LM is zero.
6769 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6770 * target.h (struct target_ops) (to_get_thread_local_address): Add
6771 load_module_addr comment.
6773 2014-05-21 Pedro Alves <palves@redhat.com>
6775 * dcache.c (dcache_read_memory_partial): If reading the cache line
6776 fails, fallback to reading just the memory the caller wanted.
6778 2014-05-20 Doug Evans <dje@google.com>
6780 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6781 instead of get_current_arch.
6783 2014-05-20 Pedro Alves <palves@redhat.com>
6785 * NEWS: Mention that compare-sections now works with all targets.
6787 * remote.c (PACKET_qCRC): New enum value.
6788 (remote_verify_memory): Don't send qCRC if the target has no
6789 execution. Use packet_support/packet_ok. If the target doesn't
6790 support the qCRC packet, fallback to a deep memory copy.
6791 (compare_sections_command): Say "target image" instead of "remote
6793 (_initialize_remote): Add PACKET_qCRC to the list of config
6794 packets that have no associated command. Extend comment.
6795 * target.c (simple_verify_memory, default_verify_memory): New
6797 * target.h (struct target_ops) <to_verify_memory>: Default to
6798 default_verify_memory.
6799 (simple_verify_memory): New declaration.
6800 * target-delegates.c: Regenerate.
6802 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6804 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6806 2014-05-20 Hui Zhu <hui@codesourcery.com>
6807 Yao Qi <yao@codesourcery.com>
6810 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6811 and change address of sp and pc.
6813 2014-05-19 Tom Tromey <tromey@redhat.com>
6815 * gdbtypes.c (rank_function): Use XNEWVEC.
6816 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6818 2014-05-19 Doug Evans <dje@google.com>
6820 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6821 build_type_unit_groups and moved closer to only caller. Remove
6822 arguments. All references updated. Remove outdated .gdb_index
6824 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6825 build_type_psymtabs_1.
6827 2014-05-19 Doug Evans <dje@google.com>
6829 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6830 n_type_unit_groups, all_type_unit_groups. All uses removed.
6831 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6832 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6833 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6834 (add_type_unit_group_to_table): Delete.
6836 2014-05-19 Doug Evans <dje@google.com>
6838 * eval.c (evaluate_subexp_standard): Add some comments.
6840 2014-05-17 Doug Evans <xdje42@gmail.com>
6842 * progspace.c (remove_program_space): Delete, unused.
6843 * progspace.h (remove_program_space): Ditto.
6845 2014-05-17 Doug Evans <xdje42@gmail.com>
6847 * inferior.c (prune_inferiors): Fix comment.
6848 (remove_inferior_command): Call prune_program_spaces.
6850 2014-05-16 Doug Evans <dje@google.com>
6852 New command line option -D.
6854 * main.c (set_gdb_data_directory): New function.
6855 (captured_main): Recognize -D. Flag error for --data-directory "".
6856 Call set_gdb_data_directory.
6857 (print_gdb_help): Print --data-directory, -D.
6858 * main.h (set_gdb_data_directory): Declare.
6859 * top.c (staged_gdb_datadir): New static global.
6860 (set_gdb_datadir): Call set_gdb_data_directory
6861 (show_gdb_datadir): New function.
6862 (init_main): Update init of data-directory parameter.
6864 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6866 Import the "dirfd" gnulib module.
6867 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6868 * gnulib/aclocal.m4: Update.
6869 * gnulib/config.in: Update.
6870 * gnulib/configure: Update.
6871 * gnulib/import/Makefile.am: Update.
6872 * gnulib/import/Makefile.in: Update.
6873 * gnulib/import/dirfd.c: New.
6874 * gnulib/import/m4/dirfd.m4: New.
6875 * gnulib/import/m4/gnulib-cache.m4: Update.
6876 * gnulib/import/m4/gnulib-comp.m4: Update.
6878 2014-05-16 Pierre Muller <muller@sourceware.org>
6879 Yao Qi <yao@codesourcery.com>
6881 * valprint.c (print_wchar): Move the code on checking whether
6882 W is a printable wide char to the default branch of switch
6883 statement below. Call wchar_printable instead of gdb_iswprint.
6885 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6887 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6888 ldr.w and ldrd instructions.
6890 2014-05-15 Doug Evans <dje@google.com>
6892 * dwarf2read.c (read_structure_type): Delete outdated comments.
6894 2014-05-14 Tom Tromey <tromey@redhat.com>
6896 * macrocmd.c (print_macro_definition): Reindent.
6898 2014-05-13 Doug Evans <xdje42@gmail.com>
6900 * python/py-cmd.c (cmdpy_completer): Add comment.
6901 (completers): Make const.
6903 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6905 * infrun.c (resume): Remove should_resume (unused). Move up
6906 declaration of resume_ptid.
6908 2014-05-13 Tom Tromey <tromey@redhat.com>
6910 * language.h (unop_type_check): Remove.
6911 (binop_type_check): Don't declare.
6913 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6915 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6916 call to regcache_raw_collect.
6918 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6920 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6921 mi_console->quote as the quoting character.
6923 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6925 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6927 2014-04-29 Tom Tromey <tromey@redhat.com>
6929 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6930 "show debug varobj".
6932 2014-05-07 Kyle McMartin <kyle@redhat.com>
6934 Pushed by Joel Brobecker <brobecker@adacore.com>.
6935 * aarch64-tdep.c (aarch64_software_single_step): New function.
6936 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6937 with aarch64_software_single_step.
6939 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6943 2014-05-05 Keith Seitz <keiths@redhat.com>
6945 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6946 variable or history value is successfully parsed.
6948 2014-05-05 Yao Qi <yao@codesourcery.com>
6949 Pedro Alves <palves@redhat.com>
6951 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6952 address of blocks that intersects the requested range. Trim
6953 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6955 * ctf.c (ctf_xfer_partial): Likewise.
6957 2014-05-05 Yao Qi <yao@codesourcery.com>
6959 * printcmd.c (display_command): Remove the check to
6960 target_has_execution.
6962 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6964 * ppcobsd-nat.c: Include "obsd-nat.h".
6965 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6967 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6969 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6971 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6972 and 16-bit signed and unsigned arguments. Update comment.
6973 (stap_parse_probe_arguments): Extend code to handle such
6974 arguments. Use warning instead of complaint to notify about
6975 unrecognized bitness.
6977 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6979 PR breakpoints/16889
6980 * stap-probe.c (stap_parse_probe_arguments): Simplify
6981 check for non-prefixed probes (i.e., probes whose
6982 arguments do not start with "N@"). Always set the
6983 argument type to a sane value.
6985 2014-05-01 David Taylor <dtaylor@emc.com>
6987 * remote.c (compare_sections_command): Add -r option to compare
6988 all loadable read-only sections.
6990 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6992 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6993 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6995 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6996 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6997 Remove unused CORE_ADDR argument. Update all callers.
6999 2014-04-29 Pedro Alves <palves@redhat.com>
7001 * remote.c (struct packet_config) <detect>: Extend comment.
7002 (add_packet_config_cmd): Don't set the config's detect or support
7004 (init_all_packet_configs): Also initialize the config's 'detect'
7006 (reset_all_packet_configs_support): New function.
7007 (remote_open_1): Call reset_all_packet_configs_support instead of
7008 init_all_packet_configs.
7009 (_initialize_remote): Initialize all packet configs. Assert that
7010 all packets have an associated command, except a few known
7013 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7015 * dwarf2read.c (read_subrange_type): Handle dynamic
7016 DW_AT_lower_bound attributes.
7018 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7020 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7021 dynamic bounds before computing its upper bound.
7022 (ada_discrete_type_low_bound): Same as above with the lower bound.
7024 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7026 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7027 range types. Adjust the array handling implementation to
7028 take advantage of this change.
7029 (resolve_dynamic_range): New function, mostly extracted from
7030 resolve_dynamic_bounds.
7031 (resolve_dynamic_array): New function, mostly extracted from
7032 resolve_dynamic_bounds.
7033 (resolve_dynamic_bounds): Delete.
7034 (resolve_dynamic_type): Reimplement. Add handling of
7035 TYPE_CODE_RANGE types.
7037 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7039 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7040 handling of parallel ___XA types.
7042 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7044 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7045 unnecessary second call to static_unwrap_type.
7047 2014-04-27 Hui Zhu <hui@codesourcery.com>
7049 * stack.c (print_frame_info): Call do_gdb_disassembly with
7050 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7052 2014-04-26 Doug Evans <xdje42@gmail.com>
7054 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7056 2014-04-25 Pedro Alves <palves@redhat.com>
7059 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7060 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7061 and newline from built string.
7062 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7063 (linux_ptrace_attach_fail_reason): ... this.
7064 * linux-nat.c (linux_nat_attach): Adjust to use
7065 linux_ptrace_attach_fail_reason.
7067 2014-04-25 Pedro Alves <palves@redhat.com>
7069 * remote.c (struct remote_state): Remove multi_process_aware,
7070 non_stop_aware, cond_tracepoints, cond_breakpoints,
7071 breakpoint_commands, fast_tracepoints, static_tracepoints,
7072 install_in_trace, disconnected_tracing,
7073 enable_disable_tracepoints, string_tracing, and
7074 augmented_libraries_svr4_read fields.
7075 (remote_multi_process_p): Move further below in the file.
7076 (struct packet_config): Add comments.
7077 (update_packet_config): Delete function.
7078 (show_packet_config_cmd): Use packet_config_support.
7079 (add_packet_config_cmd): Use NULL as set callback.
7080 (packet_ok): "set remote foo-packet"-style commands no longer
7081 change config->supported -- adjust.
7082 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7083 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7084 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7085 (PACKET_QNonStop, PACKET_multiprocess_feature)
7086 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7087 (PACKET_DisconnectedTracing_feature)
7088 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7089 (set_remote_protocol_packet_cmd): Delete function.
7090 (packet_config_support, packet_support): New functions.
7091 (set_remote_protocol_Z_packet_cmd): Don't call
7092 update_packet_config.
7093 (remote_query_attached, remote_pass_signals)
7094 (remote_program_signals, remote_threads_info)
7095 (remote_threads_extra_info, remote_start_remote): Use
7097 (remote_start_remote): Use packet_config_support and
7099 (init_all_packet_configs): Set all packets to unknown support,
7100 instead of calling update_packet_config.
7101 (remote_check_symbols): Use packet_support.
7102 (remote_supported_packet): Unconditionally set the packet config's
7104 (remote_multi_process_feature, remote_non_stop_feature)
7105 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7106 (remote_breakpoint_commands_feature)
7107 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7108 (remote_install_in_trace_feature)
7109 (remote_disconnected_tracing_feature)
7110 (remote_enable_disable_tracepoint_feature)
7111 (remote_string_tracing_feature)
7112 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7113 (remote_protocol_features): Adjust to use remote_supported_packet
7114 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7115 "ConditionalTracepoints", "ConditionalBreakpoints",
7116 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7117 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7118 "EnableDisableTracepoints", and "tracenz".
7119 (remote_query_supported): Use packet_support.
7120 (remote_open_1): Adjust.
7121 (extended_remote_attach_1): Use packet_support. Switch on the
7122 result of packet_ok instead of checking whether the packet ended
7124 (remote_vcont_resume): Use packet_support.
7125 (remote_resume, remote_stop_ns, fetch_register_using_p)
7126 (remote_prepare_to_store, store_register_using_P)
7127 (check_binary_download, remote_write_bytes): Use packet_support.
7128 (remote_vkill): Use packet_support. Switch on the result of
7129 packet_ok instead of checking whether the packet ended up
7131 (extended_remote_supports_disable_randomization): Use
7133 (extended_remote_run): Switch on the result of packet_ok instead
7134 of checking whether the packet ended up disabled.
7135 (remote_insert_breakpoint, remote_remove_breakpoint)
7136 (remote_insert_watchpoint, remote_remove_watchpoint)
7137 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7139 (remote_search_memory): Use packet_config_support.
7140 (remote_get_thread_local_address, remote_get_tib_address)
7141 (remote_hostio_send_command, remote_can_execute_reverse): Use
7143 (remote_supports_cond_tracepoints)
7144 (remote_supports_cond_breakpoints)
7145 (remote_supports_fast_tracepoints)
7146 (remote_supports_static_tracepoints)
7147 (remote_supports_install_in_trace)
7148 (remote_supports_enable_disable_tracepoint)
7149 (remote_supports_string_tracing)
7150 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7151 the packet config says the feature is enabled or disabled.
7152 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7153 (remote_get_trace_status): Use packet_support.
7154 (remote_set_disconnected_tracing): Adjust to check whether the
7155 feature is enabled with packet_support.
7156 (remote_set_trace_buffer_size, remote_use_agent)
7157 (remote_can_use_agent, remote_supports_btrace): Use
7159 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7160 Use packet_config_support.
7161 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7162 the packet config says the feature is enabled or disabled.
7163 (set_range_stepping): Use packet_support.
7165 2014-04-25 Tom Tromey <tromey@redhat.com>
7167 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7170 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7172 * NEWS: Mention support for C99 variable length arrays.
7174 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7176 * ada-lang.c (standard_exc): Expand introductory comment.
7178 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7179 Walfred Tedeschi <walfred.tedeschi@intel.com>
7181 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7183 (amd64_linux_read_description): Add code to handle AVX512 xstate
7184 mask and return respective tdesc.
7185 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7186 and features/i386/x32-avx512-linux.c.
7187 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7188 (amd64_linux_core_read_description): Add code to handle AVX512
7189 xstate mask and return respective tdesc.
7190 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7191 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7193 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7194 (tdesc_amd64_avx512_linux): New prototype.
7195 (tdesc_x32_avx512_linux): Likewise.
7196 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7197 features/i386/x32-avx512.c.
7198 (amd64_ymm_avx512_names): New register names for pseudo
7200 (amd64_ymmh_avx512_names): New register names for raw registers
7202 (amd64_k_names): New register names for K registers.
7203 (amd64_zmmh_names): New register names for ZMM raw registers.
7204 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7205 (amd64_xmm_avx512_names): New register names for XMM16-31
7207 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7209 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7210 if feature is present.
7211 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7212 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7213 (AMD64_NUM_REGS): Adjust to new number of registers.
7214 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7215 registers supplied via XSTATE by AVX512 registers.
7216 (i386_linux_read_description): Add case for AVX512.
7217 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7218 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7219 (i386_linux_core_read_description): Add case for AVX512.
7220 (i386_linux_init_abi): Install supported register note section
7222 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7224 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7225 registers to be number of zmm7h + 1.
7226 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7227 * i386-tdep.c: Include features/i386/i386-avx512.c.
7228 (i386_zmm_names): Add ZMM pseudo register names array.
7229 (i386_zmmh_names): Add ZMM raw register names array.
7230 (i386_k_names): Add K raw register names array.
7231 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7232 registers. AVX512 has 16 more ZMM registers than there are YMM
7234 (i386_zmmh_regnum_p): Add function to look up register number of
7236 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7237 (i386_k_regnum_p): Likewise for K raw registers.
7238 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7239 registers added by AVX512.
7240 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7241 registers added by AVX512.
7242 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7244 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7245 (i386_pseudo_register_name): Add ZMM pseudo registers.
7246 (i386_zmm_type): Construct and return vector registers type for ZMM
7248 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7249 ZMM0-31 pseudo registers and K registers.
7250 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7251 and YMM16-31 registers from register cache.
7252 (i386_pseudo_register_write): Add code to write K, ZMM and
7254 (i386_register_reggroup_p): Add code to include/exclude AVX512
7255 registers in/from respective register groups.
7256 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7257 registers if feature is present in xcr0.
7258 (i386_gdbarch_init): Add code to initialize AVX512 feature
7259 variables in tdep structure, wire in pseudo registers and call
7260 initialize_tdesc_i386_avx512.
7261 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7263 (i386_regnum): Add AVX512 registers.
7264 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7265 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7266 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7267 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7269 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7270 (i386_ymm_avx512_regnum_p): Likewise.
7271 (i386_k_regnum_p): Likewise.
7272 (i386_zmm_regnum_p): Likewise.
7273 (i386_zmmh_regnum_p): Likewise.
7274 * i387-tdep.c : Update year in copyright notice.
7275 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7277 (XSAVE_YMM_AVX512_ADDR): New macro.
7278 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7280 (XSAVE_XMM_AVX512_ADDR): New macro.
7281 (xsave_avx512_k_offset): New table for K register offsets in
7283 (XSAVE_AVX512_K_ADDR): New macro.
7284 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7286 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7287 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7289 (i387_collect_xsave): Add code to collect AVX512 registers from
7291 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7292 of XMM16-31 registers.
7293 (I387_NUM_K_REGS): New define for number of K registers.
7294 (I387_K0_REGNUM): New define for K0 register number.
7295 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7296 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7297 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7299 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7300 (I387_XMM16_REGNUM): New define for XMM16 register number.
7301 (I387_YMM0_REGNUM): New define for YMM0 register number.
7302 (I387_KEND_REGNUM): New define for last K register number.
7303 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7304 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7306 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7308 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7310 * features/Makefile: Add AVX512 related files.
7311 * features/i386/32bit-avx512.xml: New file.
7312 * features/i386/64bit-avx512.xml: Likewise.
7313 * features/i386/amd64-avx512-linux.c: Likewise.
7314 * features/i386/amd64-avx512-linux.xml: Likewise.
7315 * features/i386/amd64-avx512.c: Likewise.
7316 * features/i386/amd64-avx512.xml: Likewise.
7317 * features/i386/i386-avx512-linux.c: Likewise.
7318 * features/i386/i386-avx512-linux.xml: Likewise.
7319 * features/i386/i386-avx512.c: Likewise.
7320 * features/i386/i386-avx512.xml: Likewise.
7321 * features/i386/x32-avx512-linux.c: Likewise.
7322 * features/i386/x32-avx512-linux.xml: Likewise.
7323 * features/i386/x32-avx512.c: Likewise.
7324 * features/i386/x32-avx512.xml: Likewise.
7325 * regformats/i386/amd64-avx512-linux.dat: New file.
7326 * regformats/i386/amd64-avx512.dat: Likewise.
7327 * regformats/i386/i386-avx512-linux.dat: Likewise.
7328 * regformats/i386/i386-avx512.dat: Likewise.
7329 * regformats/i386/x32-avx512-linux.dat: Likewise.
7330 * regformats/i386/x32-avx512.dat: Likewise.
7331 * NEWS: Add note about new support for AVX512.
7334 2014-04-23 Pedro Alves <palves@redhat.com>
7336 * breakpoint.c (insert_bp_location): Tolerate errors if the
7337 breakpoint is set in a user-loaded objfile.
7338 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7339 location is marked shlib_disabled. If the breakpoint is set in a
7340 user-loaded objfile is a GDB-side memory breakpoint, validate it
7341 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7342 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7344 * mem-break.c (memory_validate_breakpoint): New function.
7345 * objfiles.c (userloaded_objfile_contains_address_p): New
7347 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7348 * target.h (memory_validate_breakpoint): New declaration.
7350 2014-04-23 Pedro Alves <palves@redhat.com>
7352 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7353 the breakpoint is set in a shared library, only suppress
7354 errors for software breakpoints, not hardware breakpoints.
7356 2014-04-22 Pedro Alves <palves@redhat.com>
7358 * infrun.c (schedlock_applies): New function, factored out from
7359 find_thread_needs_step_over.
7360 (find_thread_needs_step_over): Use it.
7361 (switch_back_to_stepped_thread): Always clear trap_expected if the
7362 step over is finished. Return early if scheduler locking applies.
7363 Look for the stepping thread and a potential step-over thread with
7365 (currently_stepping_or_nexting_callback): Delete.
7367 2014-04-22 Nick Clifton <nickc@redhat.com>
7369 * NEWS: Mention that ARM sim now supports tracing.
7371 2014-04-22 Yao Qi <yao@codesourcery.com>
7373 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7375 * tracefile.c (tracefile_fetch_registers): ... it. New
7377 * tracefile.h (tracefile_fetch_registers): Declare.
7378 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7379 tracefile_fetch_registers.
7381 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7384 * windows-nat.c (thread_rec): Don't display a warning when
7385 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7386 fails for any reason, set th->suspended to -1, so that we don't
7387 try to resume such a thread. Also, don't return NULL in these
7388 cases, to avoid completely ruin the session due to "PC register is
7389 not available" error.
7390 (do_windows_fetch_inferior_registers): Check errors in
7391 GetThreadContext call.
7392 (windows_continue): Accept an additional argument KILLED; if not
7393 zero, ignore errors in the SetThreadContext call, since the
7394 inferior was killed and is shutting down.
7395 (windows_resume, get_windows_debug_event)
7396 (windows_create_inferior, windows_mourn_inferior)
7397 (windows_kill_inferior): All callers of windows_continue changed
7398 to adjust to its new calling sequence.
7400 2014-04-19 Yao Qi <yao@codesourcery.com>
7402 * ctf.c (ctf_open): Call post_create_inferior.
7404 2014-04-19 Yao Qi <yao@codesourcery.com>
7406 * ctf.c (handle_id): New static variable.
7407 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7408 value. Get the declaration of event "register" and get length
7409 of field "contents".
7411 2014-04-19 Yao Qi <yao@codesourcery.com>
7413 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7415 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7417 * valops.c (oload_method_static): Remove unnecessary argument
7418 METHOD. Update all callers.
7420 2014-04-18 Pedro alves <palves@redhat.com>
7421 Tom Tromey <tromey@redhat.com>
7424 * frame.c (get_prev_frame_1): Rename to ...
7425 (get_prev_frame_always): ... this, and make extern. Adjust.
7426 (skip_artificial_frames): Use get_prev_frame_always.
7427 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7428 (get_frame_unwind_stop_reason): Adjust to rename.
7429 * frame.h (get_prev_frame_always): Declare.
7430 * inline-frame.c: Include frame.h.
7431 (inline_frame_this_id): Use get_prev_frame_always.
7433 2014-04-18 Tristan Gingold <gingold@adacore.com>
7435 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7436 code by using bfd_mach_o_get_base_address.
7438 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7440 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7441 (spu_ax_pseudo_register_collect): New function.
7442 (spu_ax_pseudo_register_push_stack): Likewise.
7443 (spu_dwarf_reg_to_regnum): Likewise.
7444 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7446 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7448 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7449 Replace FRAME argument with FRAME_ID.
7450 * gdbarch.c, gdbarch.h: Regenerate.
7451 * findvar.c (default_value_from_register): Add GDBARCH argument;
7452 replace FRAME by FRAME_ID. No longer call get_frame_id.
7453 (value_from_register): Update call to gdbarch_value_from_register.
7454 * value.h (default_value_from_register): Update prototype.
7455 * s390-linux-tdep.c (s390_value_from_register): Update interface
7456 and call to default_value_from_register.
7457 * spu-tdep.c (spu_value_from_register): Likewise.
7459 * findvar.c (address_from_register): Remove TYPE argument.
7460 Do not call value_from_register; use gdbarch_value_from_register
7461 with null_frame_id instead.
7462 * value.h (address_from_register): Update prototype.
7463 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7464 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7465 address_from_register interface change.
7467 2014-04-17 Yao Qi <yao@codesourcery.com>
7469 * gdbtypes.h: Update comments to link to types and macros'
7472 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7474 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7476 2014-04-16 Keith Seitz <keiths@redhat.com>
7479 * dwarf2read.c (skip_one_die): Check that all relative-offset
7480 sibling DIEs fall within range of the current reader's buffer.
7481 (read_partial_die): Likewise.
7483 2014-04-16 Keith Seitz <keiths@redhat.com>
7486 * cp-namespace.c (lookup_symbol_file): If the type name of
7487 `this' is NULL, return immediately.
7489 2014-04-14 Keith Seitz <keiths@redhat.com>
7492 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7493 from symbol_matches_domain in symtab.c. All local callers
7494 of symbol_matches_domain updated.
7495 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7496 search STRUCT_DOMAIN.
7497 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7498 independently. standard_lookup will do that automatically.
7499 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7500 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7501 (cp_lookup_symbol_in_namespace): Likewise.
7502 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7503 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7504 may return a STRUCT_DOMAIN match.
7505 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7506 * cp-support.c: Include language.h.
7507 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7509 * psymtab.c (match_partial_symbol): Compare the requested
7510 domain with the symbol's domain directly.
7511 (lookup_partial_symbol): Likewise.
7512 * symtab.c (lookup_symbol_in_language): Explain when/why
7513 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7514 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7515 appropriate languages.
7516 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7517 and moved to ada-lang.c
7518 (lookup_block_symbol): Explain that this function only returns
7519 symbol matching the requested DOMAIN.
7520 Compare the requested domain with the symbol's domain directly.
7521 (iterate_over_symbols): Compare the requested domain with the
7522 symbol's domain directly.
7523 * symtab.h (symbol_matches_domain): Remove.
7525 2014-04-14 Tom Tromey <tromey@redhat.com>
7528 * c-exp.y (type_aggregate_p): New function.
7529 (qualified_name, classify_inner_name): Use it.
7530 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7531 and TYPE_TARGET_TYPE of an enum type.
7532 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7534 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7535 handle TYPE_DECLARED_CLASS.
7536 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7538 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7539 * valops.c (enum_constant_from_type): New function.
7540 (value_aggregate_elt): Use it.
7541 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7544 2014-04-14 Tom Tromey <tromey@redhat.com>
7546 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7547 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7549 * value.h (value_aggregate_elt): Update.
7551 2014-04-14 Tom Tromey <tromey@redhat.com>
7553 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7555 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7557 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7558 (evaluate_subexp_standard): Pass noside argument.
7559 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7560 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7561 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7562 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7563 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7565 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7567 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7568 points to a constant blob.
7570 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7572 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7573 property and store it as the high bound and flag the range accordingly.
7574 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7575 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7576 * gdbtypes.h (enum range_flags): New enum.
7577 (struct range_bounds): Add flags member.
7579 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7581 * c-typeprint.c (c_type_print_varspec_suffix): Added
7582 check for not yet resolved high bound. If unresolved, print
7583 "variable length" string to the console instead of random
7586 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7588 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7590 (ada_template_to_fixed_record_type_1): Likewise.
7591 (ada_to_fixed_type_1): Likewise.
7592 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7593 (cp_print_value): Likewise.
7594 * d-valprint.c (dynamic_array_type): Likewise.
7595 * findvar.c (address_of_variable): Likewise.
7596 * jv-valprint.c (java_value_print): Likewise.
7597 * valops.c (value_ind): Likewise.
7598 * value.c (coerce_ref): Likewise.
7600 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7602 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7603 value and retrieve the dynamic type size.
7605 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7607 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7608 passed to sizeof is dynamic evaluate the argument to compute the length.
7610 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7611 Joel Brobecker <brobecker@adacore.com>
7613 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7614 (dwarf2_evaluate_property): New function.
7615 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7616 * dwarf2read.c (attr_to_dynamic_prop): New function.
7617 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7619 * gdbtypes.c: Include dwarf2loc.h.
7620 (is_dynamic_type): New function.
7621 (resolve_dynamic_type): New function.
7622 (resolve_dynamic_bounds): New function.
7623 (get_type_length): New function.
7624 (check_typedef): Use get_type_length to compute type length.
7625 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7626 (TYPE_LOW_BOUND_KIND): New macro.
7627 (is_dynamic_type): New function prototype.
7628 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7629 to resolve dynamic properties of the type. Update comment.
7630 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7632 2014-04-14 Richard Henderson <rth@redhat.com>
7634 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7636 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7637 Doug Evans <xdje42@gmail.com>
7639 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7640 dereference TYPE_CODE_REF values.
7642 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7644 Revert the following changes due to regressions:
7646 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7647 (dwarf2_evaluate_property): New function.
7648 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7649 * dwarf2read.c (attr_to_dynamic_prop): New function.
7650 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7652 * gdbtypes.c: Include dwarf2loc.h.
7653 (is_dynamic_type): New function.
7654 (resolve_dynamic_type): New function.
7655 (resolve_dynamic_bounds): New function.
7656 (get_type_length): New function.
7657 (check_typedef): Use get_type_length to compute type length.
7658 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7659 (TYPE_LOW_BOUND_KIND): New macro.
7660 (is_dynamic_type): New function prototype.
7661 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7662 to resolve dynamic properties of the type. Update comment.
7663 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7665 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7666 passed to sizeof is dynamic evaluate the argument to compute the length.
7668 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7669 value and retrieve the dynamic type size.
7671 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7672 (ada_template_to_fixed_record_type_1): Likewise.
7673 (ada_to_fixed_type_1): Likewise.
7674 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7675 (cp_print_value): Likewise.
7676 * d-valprint.c (dynamic_array_type): Likewise.
7677 * eval.c (evaluate_subexp_with_coercion): Likewise.
7678 * findvar.c (address_of_variable): Likewise.
7679 * jv-valprint.c (java_value_print): Likewise.
7680 * valops.c (value_ind): Likewise.
7681 * value.c (coerce_ref): Likewise.
7683 * c-typeprint.c (c_type_print_varspec_suffix): Added
7684 check for not yet resolved high bound. If unresolved, print
7685 "variable length" string to the console instead of random
7688 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7689 property and store it as the high bound and flag the range accordingly.
7690 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7691 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7692 * gdbtypes.h (enum range_flags): New enum.
7693 (struct range_bounds): Add flags member.
7695 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7696 points to a constant blob.
7698 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7699 (evaluate_subexp_standard): Pass noside argument.
7700 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7701 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7702 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7703 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7704 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7706 2014-04-11 Keith Seitz <keiths@redhat.com>
7709 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7710 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7713 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7715 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7716 (evaluate_subexp_standard): Pass noside argument.
7717 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7718 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7719 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7720 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7721 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7723 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7725 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7726 points to a constant blob.
7728 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7730 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7731 property and store it as the high bound and flag the range accordingly.
7732 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7733 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7734 * gdbtypes.h (enum range_flags): New enum.
7735 (struct range_bounds): Add flags member.
7737 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7739 * c-typeprint.c (c_type_print_varspec_suffix): Added
7740 check for not yet resolved high bound. If unresolved, print
7741 "variable length" string to the console instead of random
7744 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7746 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7747 (ada_template_to_fixed_record_type_1): Likewise.
7748 (ada_to_fixed_type_1): Likewise.
7749 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7750 (cp_print_value): Likewise.
7751 * d-valprint.c (dynamic_array_type): Likewise.
7752 * eval.c (evaluate_subexp_with_coercion): Likewise.
7753 * findvar.c (address_of_variable): Likewise.
7754 * jv-valprint.c (java_value_print): Likewise.
7755 * valops.c (value_ind): Likewise.
7756 * value.c (coerce_ref): Likewise.
7758 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7760 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7761 value and retrieve the dynamic type size.
7763 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7765 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7766 passed to sizeof is dynamic evaluate the argument to compute the length.
7768 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7770 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7771 (dwarf2_evaluate_property): New function.
7772 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7773 * dwarf2read.c (attr_to_dynamic_prop): New function.
7774 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7776 * gdbtypes.c: Include dwarf2loc.h.
7777 (is_dynamic_type): New function.
7778 (resolve_dynamic_type): New function.
7779 (resolve_dynamic_bounds): New function.
7780 (get_type_length): New function.
7781 (check_typedef): Use get_type_length to compute type length.
7782 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7783 (TYPE_LOW_BOUND_KIND): New macro.
7784 (is_dynamic_type): New function prototype.
7785 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7786 to resolve dynamic properties of the type. Update comment.
7787 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7789 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7791 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7792 declaring high/low bounds and change uses accordingly. Call
7793 create_range_type instead of create_static_range_type.
7794 * gdbtypes.c (create_range_type): New function.
7795 (create_range_type): Convert bounds into struct bound_prop and pass
7796 them to create_range_type.
7797 * gdbtypes.h (struct bound_prop): New struct.
7798 (create_range_type): New function prototype.
7799 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7800 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7801 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7803 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7805 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7807 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7808 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7809 * ada-lang.c: All uses of create_range_type updated.
7810 * coffread.c: All uses of create_range_type updated.
7811 * dwarf2read.c: All uses of create_range_type updated.
7812 * f-exp.y: All uses of create_range_type updated.
7813 * m2-valprint.c: All uses of create_range_type updated.
7814 * mdebugread.c: All uses of create_range_type updated.
7815 * stabsread.c: All uses of create_range_type updated.
7816 * valops.c: All uses of create_range_type updated.
7817 * valprint.c: All uses of create_range_type updated.
7819 2014-04-10 Pedro Alves <palves@redhat.com>
7821 * breakpoint.c (single_step_breakpoints)
7822 (single_step_gdbarch): Move up in the file.
7823 (one_breakpoint_xfer_memory): New function, factored out from ...
7824 (breakpoint_xfer_memory): ... here. Also process single-step
7827 2014-04-09 Tristan Gingold <gingold@adacore.com>
7829 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7831 (darwin_decode_exception_message): Free port only after use.
7833 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7835 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7836 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7837 when setting the size of call_length.
7839 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7841 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7842 dereference TYPE_CODE_REF values.
7844 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7846 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7847 end of warning message.
7849 2014-04-03 Doug Evans <dje@google.com>
7851 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7852 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7854 2014-04-02 Alan Modra <amodra@gmail.com>
7856 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7857 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7858 (struct symbol_file_add_from_memory_args): Add size field.
7859 (find_vdso_size): New function.
7860 (add_vsyscall_page): Attempt to find vdso size.
7862 2014-04-01 Doug Evans <dje@google.com>
7864 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7866 2014-04-01 Tristan Gingold <gingold@adacore.com>
7868 * darwin-nat.c (darwin_encode_reply): Add prototype.
7869 (darwin_decode_exception_message): Reply to unknown inferiors.
7870 (darwin_decode_message): Handle message by id. Ignore message
7871 to unknown inferior.
7872 (darwin_wait): Discard unknown messages, add debug trace.
7874 2014-03-31 Doug Evans <dje@google.com>
7876 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7879 2014-03-31 Doug Evans <dje@google.com>
7881 New option "set print symbol-loading".
7883 * solib.c (solib_read_symbols): Only print symbol loading messages
7885 (solib_add): If symbol loading is in "brief" mode, notify user
7886 symbols are being loaded.
7887 (reload_shared_libraries_1): Ditto.
7888 * symfile.c (print_symbol_loading_off): New static global.
7889 (print_symbol_loading_brief): New static global.
7890 (print_symbol_loading_full): New static global.
7891 (print_symbol_loading_enums): New static global.
7892 (print_symbol_loading): New static global.
7893 (print_symbol_loading_p): New function.
7894 (symbol_file_add_with_addrs): Only print symbol loading messages
7896 (_initialize_symfile): Register "print symbol-loading" set/show
7898 * symfile.h (print_symbol_loading_p): Declare.
7900 2014-03-30 Doug Evans <xdje42@gmail.com>
7902 * infrun.c (set_last_target_status): New function.
7903 (handle_inferior_event): Call it.
7905 2014-03-30 Doug Evans <xdje42@gmail.com>
7907 * inferior.h (enum stop_kind): Improve comment.
7909 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7911 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7912 a reference, strip the reference layer before calling
7913 the lang_ops value_has_mutated callback.
7915 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7917 Remove some globals from our parser.
7918 * language.c (unk_lang_parser): Add "struct parser_state"
7920 * language.h (struct language_defn) <la_parser>: Likewise.
7921 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7922 (initialize_expout): Add "struct parser_state" argument.
7923 Rewrite function to use the parser state.
7924 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7925 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7926 write_exp_elt_longcst, write_exp_elt_dblcst,
7927 write_exp_elt_decfloatcst, write_exp_elt_type,
7928 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7929 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7930 write_dollar_variable): Likewise.
7931 (parse_exp_in_context_1): Use parser state.
7932 (insert_type_address_space): Add "struct parser_state" argument.
7934 (increase_expout_size): New function.
7935 * parser-defs.h: Forward declare "struct language_defn" and
7936 "struct parser_state".
7937 (expout, expout_size, expout_ptr): Remove extern declarations.
7938 (parse_gdbarch, parse_language): Rewrite macro declarations to
7939 accept the parser state.
7940 (struct parser_state): New struct.
7941 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7942 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7943 write_exp_elt_decfloatcst, write_exp_elt_type,
7944 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7945 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7946 write_exp_msymbol, write_dollar_variable,
7947 mark_struct_expression, insert_type_address_space): Add "struct
7948 parser_state" argument.
7949 (increase_expout_size): New function.
7950 * utils.c (do_clear_parser_state): New function.
7951 (make_cleanup_clear_parser_state): Likewise.
7952 * utils.h (make_cleanup_clear_parser_state): New function
7954 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7955 Update calls to write_exp* in order to pass the parser state.
7956 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7957 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7958 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7959 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7960 * stap-probe.c (stap_parse_register_operand): Likewise.
7961 (stap_parse_single_operand): Likewise.
7962 (stap_parse_argument_1): Likewise.
7963 (stap_parse_argument): Use parser state.
7964 * stap-probe.h: Include "parser-defs.h".
7965 (struct stap_parse_info) <pstate>: New field.
7966 * c-exp.y (parse_type): Rewrite to use parser state.
7967 (yyparse): Redefine to c_parse_internal.
7968 (pstate): New global variable.
7969 (parse_number): Add "struct parser_state" argument.
7970 (write_destructor_name): Likewise.
7971 (type_exp): Update calls to write_exp* and similars in order to
7973 (exp1, exp, variable, qualified_name, space_identifier,
7974 typename, typebase): Likewise.
7975 (write_destructor_name, parse_number, lex_one_token,
7976 classify_name, classify_inner_name, c_parse): Add "struct
7977 parser_state" argument. Update function to use parser state.
7978 * c-lang.h: Forward declare "struct parser_state".
7979 (c_parse): Add "struct parser_state" argument.
7980 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7981 (yyparse): Redefine macro to ada_parse_internal.
7982 (pstate): New variable.
7983 (write_int, write_object_renaming, write_var_or_type,
7984 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7985 type_int, type_long, type_long_long, type_float, type_double,
7986 type_long_double, type_char, type_boolean, type_system_address):
7987 Add "struct parser_state" argument.
7988 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7989 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7990 var_or_type, aggregate, aggregate_component_list,
7991 positional_list, others, component_group,
7992 component_associations): Update calls to write_exp* and similar
7993 functions in order to use parser state.
7994 (ada_parse, write_var_from_sym, write_int,
7995 write_exp_op_with_string, write_object_renaming,
7996 find_primitive_type, write_selectors, write_ambiguous_var,
7997 write_var_or_type, write_name_assoc, type_int, type_long,
7998 type_long_long, type_float, type_double, type_long_double,
7999 type_char, type_boolean, type_system_address): Add "struct
8000 parser_state" argument. Adjust function to use parser state.
8001 * ada-lang.c (parse): Likewise.
8002 * ada-lang.h: Forward declare "struct parser_state".
8003 (ada_parse): Add "struct parser_state" argument.
8004 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8005 calls to both functions.
8006 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8008 (yyparse): Redefine macro to f_parse_internal.
8009 (pstate): New variable.
8010 (parse_number): Add "struct parser_state" argument.
8011 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8012 and similars in order to use parser state.
8013 (parse_number): Adjust code to use parser state.
8015 (f_parse): New function.
8016 * f-lang.h: Forward declare "struct parser_state".
8017 (f_parse): Add "struct parser_state" argument.
8018 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8020 (yyparse): Redefine macro for java_parse_internal.
8021 (pstate): New variable.
8022 (push_expression_name, push_expression_name, insert_exp): Add
8023 "struct parser_state" argument.
8024 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8025 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8026 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8027 PostIncrementExpression, PostDecrementExpression,
8028 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8029 UnaryExpressionNotPlusMinus, CastExpression,
8030 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8031 RelationalExpression, EqualityExpression, AndExpression,
8032 ExclusiveOrExpression, InclusiveOrExpression,
8033 ConditionalAndExpression, ConditionalOrExpression,
8034 ConditionalExpression, Assignment, LeftHandSide): Update
8035 calls to write_exp* and similars in order to use parser state.
8036 (parse_number): Ajust code to use parser state.
8038 (java_parse): New function.
8039 (push_variable): Add "struct parser_state" argument. Adjust
8040 code to user parser state.
8041 (push_fieldnames, push_qualified_expression_name,
8042 push_expression_name, insert_exp): Likewise.
8043 * jv-lang.h: Forward declare "struct parser_state".
8044 (java_parse): Add "struct parser_state" argument.
8045 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8047 (yyparse): Redefine macro to m2_parse_internal.
8048 (pstate): New variable.
8049 (type_exp, exp, fblock, variable, type): Update calls to
8050 write_exp* and similars to use parser state.
8052 (m2_parse): New function.
8053 * m2-lang.h: Forward declare "struct parser_state".
8054 (m2_parse): Add "struct parser_state" argument.
8055 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8056 * objc-lang.h: Forward declare "struct parser_state".
8057 (end_msglist): Add "struct parser_state" argument.
8058 * p-exp.y (parse_type): Rewrite macro to use parser state.
8059 (yyparse): Redefine macro to pascal_parse_internal.
8060 (pstate): New variable.
8061 (parse_number): Add "struct parser_state" argument.
8062 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8063 write_exp* and similars in order to use parser state.
8064 (parse_number, yylex): Adjust code to use parser state.
8065 (pascal_parse): New function.
8066 * p-lang.h: Forward declare "struct parser_state".
8067 (pascal_parse): Add "struct parser_state" argument.
8068 * go-exp.y (parse_type): Rewrite macro to use parser state.
8069 (yyparse): Redefine macro to go_parse_internal.
8070 (pstate): New variable.
8071 (parse_number): Add "struct parser_state" argument.
8072 (type_exp, exp1, exp, variable, type): Update calls to
8073 write_exp* and similars in order to use parser state.
8074 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8075 to use parser state.
8076 (go_parse): Likewise.
8077 * go-lang.h: Forward declare "struct parser_state".
8078 (go_parse): Add "struct parser_state" argument.
8080 2014-03-27 Doug Evans <dje@google.com>
8082 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8084 2014-03-27 Doug Evans <dje@google.com>
8086 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8087 Remove argument abbrev_section. All callers updated.
8089 2014-03-27 Doug Evans <dje@google.com>
8091 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8092 addr_base, ranges_base.
8094 2014-03-26 Keith Seitz <keiths@redhat.com>
8096 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8097 types, not VAR_DOMAIN.
8099 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8101 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8103 * features/nios2-linux.c: Regenerated.
8104 * features/nios2.c: Regenerated.
8106 2014-03-25 Pedro Alves <palves@redhat.com>
8108 * cli/cli-script.c (script_from_file): Force the interpreter to
8111 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8113 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8114 small stack allocation.
8116 2014-03-24 Tristan Gingold <gingold@adacore.com>
8118 * darwin-nat.c (exc_server): Remove unused prototype.
8119 (darwin_dump_message): Correctly display data on x86_64.
8120 (darwin_encode_reply): Fix style.
8121 Add comments and fix indentation.
8123 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8125 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8127 2014-03-22 Doug Evans <xdje42@gmail.com>
8129 * infcmd.c: Whitespace fixes.
8130 (interrupt_command): Merge two function comments into one.
8132 2014-03-22 Doug Evans <xdje42@gmail.com>
8134 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8137 2014-03-22 Yao Qi <yao@codesourcery.com>
8139 * remote.c (target_read_live_memory): Remove.
8140 (memory_xfer_live_readonly_partial): Rename it to
8141 remote_xfer_live_readonly_partial. Remove argument 'object'.
8142 All callers updated. Call remote_read_bytes_1
8143 instead of target_read_live_memory.
8144 * tracepoint.c (set_traceframe_number): Remove.
8145 (make_cleanup_restore_traceframe_number): Likewise .
8146 * tracepoint.h (set_traceframe_number): Remove declaration.
8147 (make_cleanup_restore_traceframe_number): Likewise.
8149 2014-03-22 Yao Qi <yao@codesourcery.com>
8151 * remote.c (remote_read_bytes): Move code on reading from the
8153 (remote_read_bytes_1): ... here. New function.
8155 2014-03-22 Yao Qi <yao@codesourcery.com>
8157 * ctf.c (ctf_xfer_partial): Check the return value of
8158 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8159 return TARGET_XFER_UNAVAILABLE.
8160 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8161 * target.c (target_read_live_memory): Move it to remote.c.
8162 (memory_xfer_live_readonly_partial): Likewise.
8163 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8164 * remote.c (target_read_live_memory): Moved from target.c.
8165 (memory_xfer_live_readonly_partial): Likewise.
8166 (remote_read_bytes): Factored out from
8167 memory_xfer_partial_1.
8169 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8171 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8174 2014-03-21 Pedro Alves <palves@redhat.com>
8176 * infrun.c (normal_stop): Extend comment.
8178 2014-03-21 Hui Zhu <hui@codesourcery.com>
8179 Pedro Alves <palves@redhat.com>
8181 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8183 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8184 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8185 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8187 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8189 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8190 `z' formatted output modifier.
8192 2014-03-20 Tom Tromey <tromey@redhat.com>
8193 Sergio Durigan Junior <sergiodj@redhat.com>
8195 * probe.c (parse_probes): Turn assert into an ordinary error.
8196 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8197 exceptions when parsing probes. Rearrange the code for clarity.
8199 2014-03-20 Tom Tromey <tromey@redhat.com>
8202 * top.c (execute_command): Only dispatch events if the command
8205 2014-03-20 Tom Tromey <tromey@redhat.com>
8208 * infcall.c: Include event-top.h.
8209 (run_inferior_call): Call async_disable_stdin if needed.
8211 2014-03-20 Pedro Alves <palves@redhat.com>
8213 * infrun.c (prepare_to_proceed): Delete.
8214 (thread_still_needs_step_over): New function.
8215 (find_thread_needs_step_over): New function.
8216 (proceed): If the current thread needs a step-over, set its
8217 steping_over_breakpoint flag. Adjust to use
8218 find_thread_needs_step_over instead of prepare_to_proceed.
8219 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8220 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8222 (switch_back_to_stepped_thread): Step over breakpoints of all
8223 threads not the stepping thread, before switching back to the
8226 2014-03-20 Pedro Alves <palves@redhat.com>
8228 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8230 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8231 * infrun.c (saved_singlestep_ptid)
8232 (stepping_past_singlestep_breakpoint): Delete.
8233 (resume): Remove stepping_past_singlestep_breakpoint handling.
8234 (proceed): Store the prev_pc of the stepping thread too.
8235 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8237 (enum infwait_states): Delete infwait_thread_hop_state.
8238 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8240 (handle_inferior_event): Adjust.
8241 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8242 handling and the thread-hop code. Before removing single-step
8243 breakpoints, check whether the thread hit a single-step breakpoint
8244 of another thread. If it did, the trap is not a random signal.
8245 (switch_back_to_stepped_thread): If the event thread hit a
8246 single-step breakpoint, unblock it before switching to the
8247 stepping thread. Handle the case of the stepped thread having
8249 (keep_going): Handle the case of the current thread moving past a
8250 single-step breakpoint.
8252 2014-03-20 Pedro Alves <palves@redhat.com>
8255 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8256 are being stepped over.
8257 (breakpoint_address_match): Make extern.
8258 * breakpoint.h (breakpoint_address_match): New declaration.
8259 * inferior.h (stepping_past_instruction_at): New declaration.
8260 * infrun.c (struct step_over_info): New type.
8261 (step_over_info): New global.
8262 (set_step_over_info, clear_step_over_info)
8263 (stepping_past_instruction_at): New functions.
8264 (handle_inferior_event): Clear the step-over info when
8265 trap_expected is cleared.
8266 (resume): Remove now stale comment.
8267 (clear_proceed_status): Clear step-over info.
8268 (proceed): Adjust step-over handling to set or clear the step-over
8269 info instead of removing all breakpoints.
8270 (handle_signal_stop): When setting up a thread-hop, don't remove
8272 (stop_stepping): Clear step-over info.
8273 (keep_going): Adjust step-over handling to set or clear step-over
8274 info and then always inserting breakpoints, instead of removing
8275 all breakpoints when stepping over one.
8277 2014-03-20 Pedro Alves <palves@redhat.com>
8279 * infrun.c (previous_inferior_ptid): Adjust comment.
8280 (deferred_step_ptid): Delete.
8281 (infrun_thread_ptid_changed, prepare_to_proceed)
8282 (init_wait_for_inferior): Adjust.
8283 (handle_signal_stop): Delete deferred_step_ptid handling.
8285 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8288 * defs.h (sync_quit_force_run): New declaration.
8289 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8290 * event-top.c (async_sigterm_handler): New declaration.
8291 (async_sigterm_token): New variable.
8292 (async_init_signals): Create also async_sigterm_token.
8293 (async_sigterm_handler): New function.
8294 (sync_quit_force_run): New variable.
8295 (handle_sigterm): Replace quit_force call by other calls.
8296 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8298 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8300 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8301 offset into SPE pseudo registers.
8303 2014-03-18 Pedro Alves <palves@redhat.com>
8306 * inferior.h (print_stop_event): Declare.
8307 * infrun.c (print_stop_event): New, factored out from ...
8308 (normal_stop): ... this.
8309 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8310 of bpstat_print/print_stack_frame.
8312 2014-03-17 Tom Tromey <tromey@redhat.com>
8314 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8316 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8318 * ada-lang.c (decode_constrained_packed_array): Perform a
8319 minimal coercion for reference with coerce_ref instead of
8322 2014-03-17 Tristan Gingold <gingold@adacore.com>
8324 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8325 (darwin_solib_create_inferior_hook): Emit a warning if version
8328 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8330 * python/py-value.c (get_field_flag): Cast flag_name argument to
8331 PyObject_GetAttrString to support Python 2.4.
8333 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8335 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8336 (Global Maintainers): Remove Jan Kratochvil.
8338 2014-03-14 Pedro Alves <palves@redhat.com>
8340 * inferior.h (terminal_ours_for_output): Rename to ...
8341 (child_terminal_ours_for_output): ... this.
8342 (terminal_save_ours): Rename to ...
8343 (child_terminal_save_ours): ... this.
8344 (terminal_ours): Rename to ...
8345 (child_terminal_ours): ... this.
8346 (terminal_inferior): Rename to ...
8347 (child_terminal_inferior): ... this.
8348 (terminal_init_inferior): Rename to ...
8349 (child_terminal_init_inferior): ... this.
8350 (terminal_init_inferior_with_pgrp): Rename to ...
8351 (child_terminal_init_inferior_with_pgrp): ... this.
8352 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8353 (child_terminal_init_with_pgrp): ... this.
8354 (terminal_save_ours): Rename to ...
8355 (child_terminal_save_ours): ... this.
8356 (terminal_init_inferior): Rename to ...
8357 (child_terminal_init): ... this. Adjust.
8358 (terminal_inferior): Rename to ...
8359 (child_terminal_inferior): ... this.
8360 (terminal_ours_for_output): Rename to ...
8361 (child_terminal_ours_for_output): ... this. Adjust.
8362 (terminal_ours): Rename to ...
8363 (child_terminal_ours): ... this.
8364 (terminal_ours_1): Rename to ...
8365 (child_terminal_ours_1): ... this. Adjust.
8366 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8367 * windows-nat.c (do_initial_windows_stuff): Adjust.
8368 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8369 (gnu_terminal_init): ... this. Adjust.
8370 (gnu_target): Adjust.
8371 * inf-child.c (inf_child_target): Adjust.
8373 2014-03-13 Doug Evans <xdje42@gmail.com>
8376 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8379 2014-03-13 Doug Evans <xdje42@gmail.com>
8381 * value.c (record_latest_value): Call release_value_or_incref
8382 instead of release_value.
8384 2014-03-13 Pedro Alves <palves@redhat.com>
8386 * procfs.c (procfs_target): Don't override to_shortname,
8387 to_longname or to_doc.
8389 2014-03-13 Pedro Alves <palves@redhat.com>
8391 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8392 Unix in user visible strings.
8394 2014-03-12 Stan Shebs <stan@codesourcery.com>
8396 * gdbtypes.h: Annotate comments for Doxygen, add a page
8397 block comment with some general info.
8399 2014-03-12 Pedro Alves <palves@redhat.com>
8401 * infcmd.c (prepare_execution_command): New function, factored out
8402 from several execution commands.
8403 (run_command_1, continue_command, step_1, jump_command)
8404 (signal_command, until_command, advance_command, finish_command)
8405 (attach_command): Use prepare_execution_command.
8407 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8409 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8412 (struct arm_linux_thread_points): Removed.
8413 (struct arm_linux_process_info): New.
8414 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8415 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8416 (arm_linux_find_breakpoints_by_tid): Removed.
8417 (struct arch_lwp_info): New.
8418 (arm_linux_find_process_pid): New functions.
8419 (arm_linux_add_process): New functions.
8420 (arm_linux_process_info_get): New functions.
8421 (arm_linux_forget_process): New function.
8422 (arm_linux_get_debug_reg_state): New function.
8423 (struct update_registers_data): New.
8424 (update_registers_callback): New function.
8425 (arm_linux_insert_hw_breakpoint1): Updated.
8426 (arm_linux_remove_hw_breakpoint1): Updated.
8427 (arm_linux_insert_hw_breakpoint): Updated.
8428 (arm_linux_remove_hw_breakpoint): Updated.
8429 (arm_linux_insert_watchpoint): Updated.
8430 (arm_linux_remove_watchpoint): Updated.
8431 (arm_linux_new_thread): Updated.
8432 (arm_linux_prepare_to_resume): New function.
8433 (arm_linux_new_fork): New function.
8434 (_initialize_arm_linux_nat): Updated.
8436 2014-03-12 Pedro Alves <palves@redhat.com>
8438 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8440 2014-03-12 Tom Tromey <tromey@redhat.com>
8442 * inf-child.c (return_zero): New function.
8443 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8444 * aix-thread.c (aix_thread_inferior_created): New function.
8445 (aix_thread_attach): Remove.
8446 (init_aix_thread_ops): Don't set to_attach.
8447 (_initialize_aix_thread): Register inferior_created observer.
8448 * corelow.c (init_core_ops): Don't set to_attach or
8450 * exec.c (init_exec_ops): Don't set to_attach or
8452 * infcmd.c (run_command_1): Use find_run_target. Make direct
8454 (attach_command): Use find_attach_target. Make direct target
8456 * record-btrace.c (init_record_btrace_ops): Don't set
8458 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8460 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8461 set to_create_inferior.
8462 * target.c (complete_target_initialization): Add assertion.
8463 (target_create_inferior): Remove.
8464 (find_default_attach, find_default_create_inferior): Remove.
8465 (find_attach_target, find_run_target): New functions.
8466 (find_default_is_async_p, find_default_can_async_p)
8467 (target_supports_non_stop, target_attach): Remove.
8468 (init_dummy_target): Don't set to_create_inferior or
8469 to_supports_non_stop.
8470 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8471 TARGET_DEFAULT_FUNC.
8472 <to_create_inferior>: Add comment.
8473 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8474 TARGET_DEFAULT_RETURN.
8475 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8476 (find_attach_target, find_run_target): Declare.
8477 (target_create_inferior): Remove.
8478 (target_has_execution_1): Update comment.
8479 (target_supports_non_stop): Remove.
8480 * target-delegates.c: Rebuild.
8482 2014-03-12 Pedro Alves <palves@redhat.com>
8484 * inf-child.h: Update comment to not mention Unix.
8486 2014-03-12 Pedro Alves <palves@redhat.com>
8488 * inf-child.c: Update top comment to not mention Unix. Add
8489 generic comment describing how this target is meant to be used.
8490 (inf_child_post_attach, inf_child_post_startup_inferior)
8491 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8494 2014-03-12 Pedro Alves <palves@redhat.com>
8496 * nto-procfs.c: Include inf-child.h.
8497 (procfs_ops): Delete global.
8498 (procfs_can_run): Delete method.
8499 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8500 target pointer instead of referencing procfs_ops.
8501 (procfs_prepare_to_store): Delete.
8502 (init_procfs_ops): Delete function.
8503 (procfs_target): New function, based on init_procfs_ops, but
8504 inherit inf_child_target.
8505 (_initialize_procfs): Use procfs_target.
8507 2014-03-12 Pedro Alves <palves@redhat.com>
8509 * windows-nat.c: Include inf-child.h.
8510 (windows_ops): Delete global.
8511 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8513 (init_windows_ops): Delete function.
8514 (windows_target): New function, based on init_windows_ops, but
8515 inherit inf_child_target.
8516 (_initialize_windows_nat): Use windows_target. Install x86
8517 specific target methods here.
8519 2014-03-10 Doug Evans <xdje42@gmail.com>
8521 * guile/guile.c (call_initialize_gdb_module): New function.
8522 (initialize_guile): Replace call to scm_init_guile with call to
8525 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8527 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8528 in call to TYPE_CODE macro.
8530 2014-03-10 Jerome Guitton <guitton@adacore.com>
8532 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8533 Resolve tagged types to full view.
8535 2014-03-10 Hui Zhu <hui@codesourcery.com>
8537 * target.h (target_insert_breakpoint): Remove "hardware" from its
8540 2014-03-07 Doug Evans <dje@google.com>
8542 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8544 2014-03-07 Doug Evans <dje@google.com>
8546 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8547 Remove unused local comp_dir_attr. Assert exactly one of
8548 stub_comp_unit_die, stub_comp_dir is non-NULL.
8550 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8552 * target.h (complete_target_initialization, add_target):
8555 2014-03-07 Pedro Alves <palves@redhat.com>
8557 * go32-nat.c: Include inf-child.h.
8558 (go32_ops): Delete global.
8559 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8561 (go32_create_inferior): Push the passed in target pointer instead
8562 of referencing go32_ops.
8563 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8564 (go32_target): New function, based on init_go32_ops, but inherit
8566 (_initialize_go32_nat): Use go32_target. Move parts of
8569 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8571 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8572 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8573 SYMBOL_VALUE_ADDRESS.
8574 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8576 2014-03-06 Yao Qi <yao@codesourcery.com>
8578 * breakpoint.c (get_tracepoint_by_number): Remove argument
8579 optional_p. All callers updated. Adjust comments. Update
8581 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8583 2014-03-06 Yao Qi <yao@codesourcery.com>
8585 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8586 early if get_number returns zero. Use 'p' instead of 'args'.
8588 2014-03-06 Yao Qi <yao@codesourcery.com>
8590 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8593 2014-03-06 Yao Qi <yao@codesourcery.com>
8595 PR breakpoints/16508
8596 * tracepoint.c (check_trace_running): New function.
8597 (trace_find_command): Move code to check_trace_running and
8598 call check_trace_running.
8599 (trace_find_pc_command): Likewise.
8600 (trace_find_tracepoint_command): Likewise.
8601 (trace_find_line_command): Likewise.
8602 (trace_find_range_command): Likewise.
8603 * tracepoint.h (check_trace_running): Likewise.
8604 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8606 2014-03-06 Yao Qi <yao@codesourcery.com>
8608 * target.h (struct target_ops) <to_traceframe_info>: Use
8609 TARGET_DEFAULT_NORETURN (tcomplain ()).
8610 * target-delegates.c: Regenerated.
8612 2014-03-05 Pedro Alves <palves@redhat.com>
8615 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8616 void. Update comment.
8617 (dcache_xfer_memory): Delete.
8618 (dcache_read_memory_partial): New, based on the read bits of
8620 (dcache_update): Add status parameter. Use ULONGEST for len, and
8621 adjust. Discard cache lines if the reason for the update was
8623 * dcache.h (dcache_xfer_memory): Delete declaration.
8624 (dcache_read_memory_partial): New declaration.
8625 (dcache_update): Update prototype.
8626 * target.c (raw_memory_xfer_partial): Update the dcache here.
8627 (memory_xfer_partial_1): Don't handle dcache writes here.
8629 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8631 * remote-sim.c (gdbsim_load): Add const to prog.
8633 2014-03-03 Tom Tromey <tromey@redhat.com>
8635 * elfread.c (probe_key): Change to bfd_data.
8636 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8637 now per-BFD, not per-objfile.
8638 * stap-probe.c (stap_probe_destroy): Update comment.
8639 (handle_stap_probe): Allocate on the per-BFD obstack.
8641 2014-03-03 Tom Tromey <tromey@redhat.com>
8643 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8644 * breakpoint.c (create_longjmp_master_breakpoint): Use
8646 (add_location_to_breakpoint, bkpt_probe_insert_location)
8647 (bkpt_probe_remove_location): Update.
8648 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8649 * elfread.c (elf_symfile_relocate_probe): Remove.
8650 (elf_probe_fns): Update.
8651 (insert_exception_resume_breakpoint): Change type of "probe"
8652 parameter to bound_probe.
8653 (check_exception_resume): Update.
8654 * objfiles.c (objfile_relocate1): Don't relocate probes.
8655 * probe.c (bound_probe_s): New typedef.
8656 (parse_probes): Use get_probe_address. Set sal's objfile.
8657 (find_probe_by_pc): Return a bound_probe.
8658 (collect_probes): Return a VEC(bound_probe_s).
8659 (compare_probes): Update.
8660 (gen_ui_out_table_header_info): Change type of "probes"
8662 (info_probes_for_ops): Update.
8663 (get_probe_address): New function.
8664 (probe_safe_evaluate_at_pc): Update.
8665 * probe.h (struct probe_ops) <get_probe_address>: New field.
8666 <set_semaphore, clear_semaphore>: Add objfile parameter.
8667 (struct probe) <objfile>: Remove field.
8669 <address>: Update comment.
8670 (struct bound_probe): New.
8671 (find_probe_by_pc): Return a bound_probe.
8672 (get_probe_address): Declare.
8673 * solib-svr4.c (struct probe_and_action) <address>: New field.
8674 (hash_probe_and_action, equal_probe_and_action): Update.
8675 (register_solib_event_probe): Add address parameter.
8676 (solib_event_probe_at): Update.
8677 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8679 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8680 (stap_get_probe_address): New function.
8681 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8682 (compile_probe_arg): Update.
8683 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8685 (handle_stap_probe): Don't relocate the probe.
8686 (stap_relocate): Remove.
8687 (stap_gen_info_probes_table_values): Update.
8688 (stap_probe_ops): Remove stap_relocate.
8689 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8690 (debug_sym_probe_fns): Update.
8691 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8692 * symtab.c (init_sal): Use memset.
8693 * symtab.h (struct symtab_and_line) <objfile>: New field.
8694 * tracepoint.c (start_tracing, stop_tracing): Update.
8696 2014-03-03 Tom Tromey <tromey@redhat.com>
8698 * probe.h (parse_probes, find_probe_by_pc)
8699 (find_probes_in_objfile): Fix comments.
8701 2014-03-02 Doug Evans <xdje42@gmail.com>
8703 * infrun.c (handle_signal_stop): Replace test for
8704 TARGET_WAITKIND_STOPPED with an assert.
8706 2014-03-02 Doug Evans <xdje42@gmail.com>
8708 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8710 2014-03-02 Doug Evans <xdje42@gmail.com>
8712 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8714 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8716 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8718 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8720 * i386obsd-nat.c: Include "obsd-nat.h".
8721 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8723 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8725 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8727 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8729 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8731 * mips64obsd-nat.c: Include "obsd-nath".
8732 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8734 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8736 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8738 * amd64obsd-nat.c: Include "obsd-nat,h.
8739 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8741 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8743 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8745 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8746 (find_overload_match): Update call to find_oload_champ.
8747 (find_oload_champ_namespace_loop): Likewise
8749 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8751 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8753 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8754 * config/sparc/obsd64.mh: New file.
8755 * sparc64obsd-nat.c: New file.
8757 * obsd-nat.h: New file.
8758 * obsd-nat.c: New file.
8759 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8760 (ALLDEPFILES): Add obsd-nat.c.
8762 2014-02-28 Tom Tromey <tromey@redhat.com>
8764 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8765 * cli-out.h (cli_ui_out_impl): Now const.
8766 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8767 * ui-out.c (struct ui_out) <impl>: Now const.
8768 (default_ui_out_impl): Now const.
8769 (ui_out_new): Make 'impl' parameter const.
8770 * ui-out.h (ui_out_new): Update.
8772 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8774 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8776 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8778 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8780 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8782 Additional PR 8882 fix.
8783 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8785 2014-02-27 Pedro Alves <palves@redhat.com>
8787 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8790 2014-02-27 Pedro Alves <palves@redhat.com>
8793 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8794 * nat/linux-waitpid.c: Include string.h.
8795 (status_to_str): Moved here and made extern.
8796 * nat/linux-waitpid.h (status_to_str): New declaration.
8798 2014-02-27 Hui Zhu <hui@codesourcery.com>
8801 * infrun.c (ptid_match): Move ...
8802 * common/ptid.c (ptid_match): ... here.
8803 * inferior.h (ptid_match): Move ...
8804 * common/ptid.h (ptid_match): ... here.
8806 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8808 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8809 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8812 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8814 * obsd-tdep.c (obsd_auxv_parse): New function.
8815 (obsd_init_abi): Set auxv_parse.
8817 * gdbarch.sh (auxv_parse): New.
8818 * gdbarch.h: Regenerated.
8819 * gdbarch.c: Regenerated.
8820 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8822 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8824 * guile/scm-value.c (gdbscm_history_append_x): New function.
8825 (value_functions): Add it.
8827 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8829 * dwarf2read.c (attr_value_as_address): New function.
8830 (dwarf2_find_base_address, read_call_site_scope): Use
8831 attr_value_as_address in place of DW_ADDR.
8832 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8833 the low and high addresses. Slight rework of the handling
8834 of the high pc being a constant form, and limit it to
8835 DWARF verson 4 or higher.
8836 (dwarf2_record_block_ranges): Likewise.
8837 (read_partial_die): Likewise.
8838 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8840 2014-02-26 Tom Tromey <tromey@redhat.com>
8842 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8844 2014-02-26 Tom Tromey <tromey@redhat.com>
8846 * elfread.c (elf_read_minimal_symbols): Return early if
8847 minimal symbols have already been read. Add "ei" parameter.
8848 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8849 * minsyms.c (prim_record_minimal_symbol_full): Update.
8850 * objfiles.h (struct objstats) <n_minsyms>: Move...
8851 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8852 * symmisc.c (print_objfile_statistics): Update.
8854 2014-02-26 Tom Tromey <tromey@redhat.com>
8856 * elfread.c (elf_read_minimal_symbols): New function, from
8858 (elf_symfile_read): Call it.
8860 2014-02-26 Tom Tromey <tromey@redhat.com>
8862 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8863 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8864 (lookup_minimal_symbol_solib_trampoline)
8865 (lookup_minimal_symbol_by_pc_section_1)
8866 (lookup_minimal_symbol_and_objfile): Update.
8867 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8868 Don't allocate a minimal symbol if minsyms have already been read.
8869 (build_minimal_symbol_hash_tables): Update.
8870 (install_minimal_symbols): Do nothing if minsyms already read.
8871 Use the per-BFD obstack.
8872 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8873 * objfiles.c (allocate_objfile): Call
8874 terminate_minimal_symbol_table later.
8875 (have_minimal_symbols): Update.
8876 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8877 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8878 Move from struct objfile.
8879 <minsyms_read>: New field.
8880 (struct objfile) <msymbols, minimal_symbol_count,
8881 msymbol_hash, msymbol_demangled_hash>: Move.
8882 (ALL_OBJFILE_MSYMBOLS): Update.
8883 * symfile.c (read_symbols): Set minsyms_read.
8884 (reread_symbols): Update.
8885 * symmisc.c (dump_objfile, dump_msymbols): Update.
8887 2014-02-26 Tom Tromey <tromey@redhat.com>
8889 * minsyms.c (msymbols_sort): Remove.
8890 * minsyms.h (msymbols_sort): Remove.
8891 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8892 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8893 * elfread.c (elf_symtab_read): Don't add section offsets.
8894 * xcoffread.c (record_minimal_symbol): Don't add section offset
8895 to minimal symbol address.
8896 * somread.c (text_offset, data_offset): Remove.
8897 (som_symtab_read): Don't add section offsets to minimal symbol
8899 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8900 Don't add section offsets to minimal symbols.
8901 * coffread.c (coff_symtab_read): Don't add section offsets
8902 to minimal symbol addresses.
8903 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8904 to minimal symbol addresses.
8905 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8906 section offset to minimal symbol addresses.
8907 * mdebugread.c (parse_partial_symbols): Don't add section
8908 offset to minimal symbol addresses.
8909 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8910 offset to minimal symbol addresses.
8912 2014-02-26 Tom Tromey <tromey@redhat.com>
8914 * ada-lang.c (ada_main_name): Update.
8915 (ada_add_standard_exceptions): Update.
8916 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8917 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8918 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8919 * auxv.c (ld_so_xfer_auxv): Update.
8920 * avr-tdep.c (avr_scan_prologue): Update.
8921 * ax-gdb.c (gen_var_ref): Update.
8922 * blockframe.c (get_pc_function_start)
8923 (find_pc_partial_function_gnu_ifunc): Update.
8924 * breakpoint.c (create_overlay_event_breakpoint)
8925 (create_longjmp_master_breakpoint)
8926 (create_std_terminate_master_breakpoint)
8927 (create_exception_master_breakpoint): Update.
8928 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8929 * c-valprint.c (c_val_print): Update.
8930 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8931 * common/agent.c (agent_look_up_symbols): Update.
8932 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8933 * dwarf2loc.c (call_site_to_target_addr): Update.
8934 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8935 * elfread.c (elf_gnu_ifunc_record_cache)
8936 (elf_gnu_ifunc_resolve_by_got): Update.
8937 * findvar.c (default_read_var_value): Update.
8938 * frame.c (inside_main_func): Update.
8939 * frv-tdep.c (frv_frame_this_id): Update.
8940 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8941 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8943 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8944 (hppa_hpux_find_dummy_bpaddr): Update.
8945 * hppa-tdep.c (hppa_symbol_address): Update.
8946 * infcmd.c (until_next_command): Update.
8947 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8949 * linespec.c (minsym_found, add_minsym): Update.
8950 * linux-nat.c (get_signo): Update.
8951 * linux-thread-db.c (inferior_has_bug): Update.
8952 * m32c-tdep.c (m32c_return_value)
8953 (m32c_m16c_address_to_pointer): Update.
8954 * m32r-tdep.c (m32r_frame_this_id): Update.
8955 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8956 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8957 * maint.c (maintenance_translate_address): Update.
8958 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8959 (frob_address): New function.
8960 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8961 frob_address. Rename parameter to "pc_in".
8962 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8964 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8966 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8967 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8968 * objc-lang.c (find_objc_msgsend): Update.
8969 * objfiles.c (objfile_relocate1): Update.
8970 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8971 * p-valprint.c (pascal_val_print): Update.
8972 * parse.c (write_exp_msymbol): Update.
8973 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8974 (ppc_elfv2_skip_entrypoint): Update.
8975 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8976 * printcmd.c (build_address_symbolic, msym_info)
8977 (address_info): Update.
8978 * proc-service.c (ps_pglobal_lookup): Update.
8979 * psymtab.c (find_pc_sect_psymtab_closer)
8980 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8981 Change msymbol parameter to bound_minimal_symbol.
8982 * ravenscar-thread.c (get_running_thread_id): Update.
8983 * remote.c (remote_check_symbols): Update.
8984 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8986 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8987 * solib-dsbt.c (lm_base): Update.
8988 * solib-frv.c (lm_base, main_got): Update.
8989 * solib-irix.c (locate_base): Update.
8990 * solib-som.c (som_solib_create_inferior_hook)
8991 (link_map_start): Update.
8992 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8993 * solib-svr4.c (elf_locate_base, enable_break): Update.
8994 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8995 (flush_ea_cache): Update.
8996 * stabsread.c (define_symbol, scan_file_globals): Update.
8997 * stack.c (find_frame_funname): Update.
8998 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8999 (debug_qf_find_pc_sect_symtab): Update.
9000 * symfile.c (simple_read_overlay_table)
9001 (simple_overlay_update): Update.
9002 * symfile.h (struct quick_symbol_functions)
9003 <find_pc_sect_symtab>: Change type of msymbol to
9004 bound_minimal_symbol.
9005 * symmisc.c (dump_msymbols): Update.
9006 * symtab.c (find_pc_sect_symtab_via_partial)
9007 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9008 (search_symbols, print_msymbol_info): Update.
9009 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9010 (MSYMBOL_VALUE_ADDRESS): Redefine.
9011 (BMSYMBOL_VALUE_ADDRESS): New macro.
9012 * tracepoint.c (scope_info): Update.
9013 * tui/tui-disasm.c (tui_find_disassembly_address)
9014 (tui_get_begin_asm_address): Update.
9015 * valops.c (find_function_in_inferior): Update.
9016 * value.c (value_static_field, value_fn_field): Update.
9018 2014-02-26 Tom Tromey <tromey@redhat.com>
9020 * ada-lang.c (ada_update_initial_language): Update.
9021 (ada_main_name, ada_has_this_exception_support): Update.
9022 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9023 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9024 * arm-tdep.c (arm_skip_stub): Update.
9025 * auxv.c (ld_so_xfer_auxv): Update.
9026 * avr-tdep.c (avr_scan_prologue): Update.
9027 * ax-gdb.c (gen_var_ref): Update.
9028 * breakpoint.c (struct breakpoint_objfile_data)
9029 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9030 type to bound_minimal_symbol.
9031 (create_overlay_event_breakpoint)
9032 (create_longjmp_master_breakpoint)
9033 (create_std_terminate_master_breakpoint)
9034 (create_exception_master_breakpoint): Update.
9035 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9036 * c-exp.y (classify_name): Update.
9037 * coffread.c (coff_symfile_read): Update.
9038 * common/agent.c (agent_look_up_symbols): Update.
9039 * d-lang.c (d_main_name): Update.
9040 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9041 * dec-thread.c (enable_dec_thread): Update.
9042 * dwarf2loc.c (call_site_to_target_addr): Update.
9043 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9044 * eval.c (evaluate_subexp_standard): Update.
9045 * findvar.c (struct minsym_lookup_data) <result>: Change type
9046 to bound_minimal_symbol.
9048 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9049 * frame.c (inside_main_func): Update.
9050 * frv-tdep.c (frv_frame_this_id): Update.
9051 * gcore.c (call_target_sbrk): Update.
9052 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9053 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9055 * go-lang.c (go_main_name): Update.
9056 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9057 (hppa_hpux_find_import_stub_for_addr): Update.
9058 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9059 Update. Change return type.
9060 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9062 * jit.c (jit_breakpoint_re_set_internal): Update.
9063 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9065 * linux-nat.c (get_signo): Update.
9066 * linux-thread-db.c (inferior_has_bug): Update
9067 * m32c-tdep.c (m32c_return_value)
9068 (m32c_m16c_address_to_pointer): Update.
9069 * m32r-tdep.c (m32r_frame_this_id): Update.
9070 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9071 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9072 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9073 lookup_minimal_symbol. Change return type.
9074 (lookup_minimal_symbol): Remove.
9075 (lookup_bound_minimal_symbol): Update.
9076 (lookup_minimal_symbol_text): Change return type.
9077 (lookup_minimal_symbol_solib_trampoline): Change return type.
9078 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9079 (lookup_minimal_symbol_solib_trampoline): Change return type.
9080 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9081 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9082 (value_nsstring, find_imps): Update.
9083 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9084 * p-lang.c (pascal_main_name): Update.
9085 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9086 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9087 * proc-service.c (ps_pglobal_lookup): Update.
9088 * ravenscar-thread.c (get_running_thread_msymbol): Change
9090 (has_ravenscar_runtime, get_running_thread_id): Update.
9091 * remote.c (remote_check_symbols): Update.
9092 * sol-thread.c (ps_pglobal_lookup): Update.
9093 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9094 * solib-dsbt.c (lm_base): Update.
9095 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9097 * solib-irix.c (locate_base): Update.
9098 * solib-som.c (som_solib_create_inferior_hook)
9099 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9101 * solib-spu.c (spu_enable_break): Update.
9102 * solib-svr4.c (elf_locate_base, enable_break): Update.
9103 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9104 (flush_ea_cache): Update.
9105 * stabsread.c (define_symbol): Update.
9106 * symfile.c (simple_read_overlay_table): Update.
9107 * symtab.c (find_pc_sect_line): Update.
9108 * tracepoint.c (scope_info): Update.
9109 * tui-disasm.c (tui_get_begin_asm_address): Update.
9110 * value.c (value_static_field): Update.
9112 2014-02-26 Tom Tromey <tromey@redhat.com>
9114 * minsyms.c (prim_record_minimal_symbol_full): Use
9115 SET_MSYMBOL_VALUE_ADDRESS.
9116 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9117 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9118 SET_MSYMBOL_VALUE_ADDRESS.
9119 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9120 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9122 2014-02-26 Tom Tromey <tromey@redhat.com>
9124 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9125 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9126 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9127 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9128 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9129 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9130 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9131 * ada-lang.c (ada_main_name): Update.
9132 (ada_lookup_simple_minsym): Update.
9133 (ada_make_symbol_completion_list): Update.
9134 (ada_add_standard_exceptions): Update.
9135 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9136 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9137 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9138 * arm-tdep.c (skip_prologue_function): Update.
9139 (arm_skip_stack_protector, arm_skip_stub): Update.
9140 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9141 (arm_wince_skip_main_prologue): Update.
9142 * auxv.c (ld_so_xfer_auxv): Update.
9143 * avr-tdep.c (avr_scan_prologue): Update.
9144 * ax-gdb.c (gen_var_ref): Update.
9145 * block.c (call_site_for_pc): Update.
9146 * blockframe.c (get_pc_function_start): Update.
9147 (find_pc_partial_function_gnu_ifunc): Update.
9148 * breakpoint.c (create_overlay_event_breakpoint): Update.
9149 (create_longjmp_master_breakpoint): Update.
9150 (create_std_terminate_master_breakpoint): Update.
9151 (create_exception_master_breakpoint): Update.
9152 (resolve_sal_pc): Update.
9153 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9154 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9156 * c-valprint.c (c_val_print): Update.
9157 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9158 * coffread.c (coff_symfile_read): Update.
9159 * common/agent.c (agent_look_up_symbols): Update.
9160 * dbxread.c (find_stab_function_addr): Update.
9161 (end_psymtab): Update.
9162 * dwarf2loc.c (call_site_to_target_addr): Update.
9163 (func_verify_no_selftailcall): Update.
9164 (tailcall_dump): Update.
9165 (call_site_find_chain_1): Update.
9166 (dwarf_expr_reg_to_entry_parameter): Update.
9167 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9168 (elf_gnu_ifunc_resolve_by_got): Update.
9169 * f-valprint.c (info_common_command): Update.
9170 * findvar.c (read_var_value): Update.
9171 * frame.c (get_prev_frame_1): Update.
9172 (inside_main_func): Update.
9173 * frv-tdep.c (frv_skip_main_prologue): Update.
9174 (frv_frame_this_id): Update.
9175 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9176 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9177 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9178 (gnuv3_skip_trampoline): Update.
9179 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9180 (hppa64_hpux_in_solib_call_trampoline): Update.
9181 (hppa_hpux_skip_trampoline_code): Update.
9182 (hppa64_hpux_search_dummy_call_sequence): Update.
9183 (hppa_hpux_find_import_stub_for_addr): Update.
9184 (hppa_hpux_find_dummy_bpaddr): Update.
9185 * hppa-tdep.c (hppa_symbol_address)
9186 (hppa_lookup_stub_minimal_symbol): Update.
9187 * i386-tdep.c (i386_skip_main_prologue): Update.
9188 (i386_pe_skip_trampoline_code): Update.
9189 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9190 * infcall.c (get_function_name): Update.
9191 * infcmd.c (until_next_command): Update.
9192 * jit.c (jit_breakpoint_re_set_internal): Update.
9193 (jit_inferior_init): Update.
9194 * linespec.c (minsym_found): Update.
9195 (add_minsym): Update.
9196 * linux-fork.c (info_checkpoints_command): Update.
9197 * linux-nat.c (get_signo): Update.
9198 * linux-thread-db.c (inferior_has_bug): Update.
9199 * m32c-tdep.c (m32c_return_value): Update.
9200 (m32c_m16c_address_to_pointer): Update.
9201 (m32c_m16c_pointer_to_address): Update.
9202 * m32r-tdep.c (m32r_frame_this_id): Update.
9203 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9204 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9205 * maint.c (maintenance_translate_address): Update.
9206 * minsyms.c (add_minsym_to_hash_table): Update.
9207 (add_minsym_to_demangled_hash_table): Update.
9208 (msymbol_objfile): Update.
9209 (lookup_minimal_symbol): Update.
9210 (iterate_over_minimal_symbols): Update.
9211 (lookup_minimal_symbol_text): Update.
9212 (lookup_minimal_symbol_by_pc_name): Update.
9213 (lookup_minimal_symbol_solib_trampoline): Update.
9214 (lookup_minimal_symbol_by_pc_section_1): Update.
9215 (lookup_minimal_symbol_and_objfile): Update.
9216 (prim_record_minimal_symbol_full): Update.
9217 (compare_minimal_symbols): Update.
9218 (compact_minimal_symbols): Update.
9219 (build_minimal_symbol_hash_tables): Update.
9220 (install_minimal_symbols): Update.
9221 (terminate_minimal_symbol_table): Update.
9222 (find_solib_trampoline_target): Update.
9223 (minimal_symbol_upper_bound): Update.
9224 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9225 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9226 (mips_skip_pic_trampoline_code): Update.
9227 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9228 * objc-lang.c (selectors_info): Update.
9229 (classes_info): Update.
9230 (find_methods): Update.
9231 (find_imps): Update.
9232 (find_objc_msgsend): Update.
9233 * objfiles.c (objfile_relocate1): Update.
9234 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9235 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9236 * p-valprint.c (pascal_val_print): Update.
9237 * parse.c (write_exp_msymbol): Update.
9238 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9239 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9240 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9241 * printcmd.c (build_address_symbolic): Update.
9243 (address_info): Update.
9244 * proc-service.c (ps_pglobal_lookup): Update.
9245 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9246 (find_pc_sect_psymtab): Update.
9247 * python/py-framefilter.c (py_print_frame): Update.
9248 * ravenscar-thread.c (get_running_thread_id): Update.
9249 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9251 * remote.c (remote_check_symbols): Update.
9252 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9253 (rs6000_skip_trampoline_code): Update.
9254 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9255 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9256 * solib-dsbt.c (lm_base): Update.
9257 * solib-frv.c (lm_base): Update.
9259 * solib-irix.c (locate_base): Update.
9260 * solib-som.c (som_solib_create_inferior_hook): Update.
9261 (som_solib_desire_dynamic_linker_symbols): Update.
9262 (link_map_start): Update.
9263 * solib-spu.c (spu_enable_break): Update.
9264 (ocl_enable_break): Update.
9265 * solib-svr4.c (elf_locate_base): Update.
9266 (enable_break): Update.
9267 * spu-tdep.c (spu_get_overlay_table): Update.
9268 (spu_catch_start): Update.
9269 (flush_ea_cache): Update.
9270 * stabsread.c (define_symbol): Update.
9271 (scan_file_globals): Update.
9272 * stack.c (find_frame_funname): Update.
9273 (frame_info): Update.
9274 * symfile.c (simple_read_overlay_table): Update.
9275 (simple_overlay_update): Update.
9276 * symmisc.c (dump_msymbols): Update.
9277 * symtab.c (fixup_section): Update.
9278 (find_pc_sect_line): Update.
9279 (skip_prologue_sal): Update.
9280 (search_symbols): Update.
9281 (print_msymbol_info): Update.
9282 (rbreak_command): Update.
9283 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9284 (completion_list_objc_symbol): Update.
9285 (default_make_symbol_completion_list_break_on): Update.
9286 * tracepoint.c (scope_info): Update.
9287 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9288 (tui_get_begin_asm_address): Update.
9289 * valops.c (find_function_in_inferior): Update.
9290 * value.c (value_static_field): Update.
9291 (value_fn_field): Update.
9293 2014-02-26 Tom Tromey <tromey@redhat.com>
9295 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9296 bound minimal symbols. Move code that knows about minsym
9298 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9300 * minsyms.h (minimal_symbol_upper_bound): Declare.
9301 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9302 minimal_symbol_upper_bound.
9304 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9306 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9307 Use the type's name if its basic type does not have a tag.
9309 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9311 * dwarf2read.c (read_subrange_type): Add comment.
9313 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9315 * dwarf2read.c (update_enumeration_type_from_children): New
9316 function, mostly extracted from process_structure_scope.
9317 (read_enumeration_type): Call update_enumeration_type_from_children.
9318 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9319 and flag_flag_enum fields.
9321 2014-02-26 Pedro Alves <palves@redhat.com>
9323 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9324 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9325 to_xfer_partial method.
9327 2014-02-26 Pedro Alves <palves@redhat.com>
9329 * target.c (complete_target_initialization): Don't install
9330 default_xfer_partial as to_xfer_partial hook.
9332 (update_current_target): Don't INHERIT nor de_fault
9333 deprecated_xfer_memory. Delete de_fault macro.
9334 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9335 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9336 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9339 2014-02-26 Pedro Alves <palves@redhat.com>
9341 * go32-nat.c (my_write_child): New function.
9342 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9343 (go32_xfer_partial): New function.
9344 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9345 Instead install a to_xfer_partial hook.
9347 2014-02-26 Pedro Alves <palves@redhat.com>
9349 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9350 to_xfer_partial helper. Rewrite.
9351 (procfs_xfer_partial): New function.
9352 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9353 Install a to_xfer_partial hook.
9355 2014-02-26 Pedro Alves <palves@redhat.com>
9357 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9358 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9359 (m32r_xfer_partial): New function.
9360 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9361 Install a to_xfer_partial hook.
9363 2014-02-26 Pedro Alves <palves@redhat.com>
9365 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9367 (mips_xfer_partial): New function.
9368 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9369 hook. Install a to_xfer_partial hook.
9371 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9373 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9374 * gdbtypes.c (create_array_type_with_stride): New function,
9375 renaming create_array_type, but with an added parameter
9376 called "bit_stride".
9377 (create_array_type): Re-implement using
9378 create_array_type_with_stride.
9379 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9380 and DW_AT_bit_stride attributes.
9382 2014-02-26 Pedro Alves <palves@redhat.com>
9384 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9385 task-specific breakpoints.
9387 2014-02-25 Pedro Alves <palves@redhat.com>
9389 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9390 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9392 2014-02-25 Stan Shebs <stan@codesourcery.com>
9394 * defs.h: Annotate comments for Doxygen.
9396 2014-02-25 Tom Tromey <tromey@redhat.com>
9398 * target.h (target_ignore): Don't declare.
9399 * target.c (target_ignore): Remove.
9401 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9404 * auto-load.c (auto_load_objfile_script_1): Change filename to
9407 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9409 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9410 documentation. Adjust prototype to match the target_ops
9411 to_xfer_partial method. Adjust implementation accordingly.
9413 2014-02-25 Hui Zhu <hui@codesourcery.com>
9415 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9418 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9420 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9421 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9422 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9423 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9424 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9425 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9426 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9427 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9429 (rl78_register_type): Use a data pointer type for SP and
9430 new pseudo registers mentioned above. Use a 16 bit integer
9431 type for all other register pairs.
9432 (rl78_register_name, rl78_g10_register_name): Update for
9433 new pseudo registers.
9434 (rl78_pseudo_register_read): Likewise.
9435 (rl78_pseudo_register_write): Likewise.
9436 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9437 to the newly added pseudo registers.
9439 2014-02-24 Doug Evans <dje@google.com>
9441 * value.c (record_latest_value): Fix comment.
9442 * printcmd.c (print_command_1): Remove code to handle -1 return from
9443 record_latest_value.
9445 2014-02-24 Pedro Alves <palves@redhat.com>
9447 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9448 deprecated_xfer_memory hook.
9449 (procfs_xfer_partial): Call procfs_xfer_memory instead
9450 of the deprecated_xfer_memory target hook.
9451 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9454 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9456 * windows-nat.c (windows_xfer_shared_libraries): Return
9457 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9458 requested object is TARGET_OBJECT_LIBRARIES.
9460 2014-02-24 Yao Qi <yao@codesourcery.com>
9462 * target.h (enum target_xfer_status)
9463 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9464 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9466 * corefile.c (memory_error_message): User updated.
9467 * exec.c (section_table_read_available_memory): Likewise.
9468 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9469 * target.c (target_xfer_status_to_string): Likewise.
9470 (raw_memory_xfer_partial): Likewise.
9471 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9472 * valops.c (read_value_memory): Likewise.
9473 * exec.h: Update comments.
9475 2014-02-24 Yao Qi <yao@codesourcery.com>
9477 * target.c (target_xfer_status_to_string): Rename argument err
9479 * target.h (target_xfer_status_to_string): Update declaration.
9480 Replace target_xfer_error_to_string with
9481 target_xfer_status_to_string in comment.
9483 2014-02-24 Yao Qi <yao@codesourcery.com>
9485 * mips-linux-nat.c (super_close): Update its type.
9486 (mips_linux_close): Pass 'self' to super_close.
9488 2014-02-24 Yao Qi <yao@codesourcery.com>
9490 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9491 * corefile.c (read_memory): Adjusted.
9492 * target.c (target_write_with_progress): Adjusted.
9494 2014-02-23 Yao Qi <yao@codesourcery.com>
9498 2013-10-25 Yao Qi <yao@codesourcery.com>
9500 * remote.c (remote_traceframe_info): Return early if
9501 traceframe is not selected.
9503 2013-07-19 Yao Qi <yao@codesourcery.com>
9505 * target.c (update_current_target): Change the default action
9506 of 'to_traceframe_info' from tcomplain to return_zero.
9507 * target.h (struct target_ops) <to_traceframe_info>: Add more
9510 2014-02-23 Yao Qi <yao@codesourcery.com>
9512 * valops.c (read_value_memory): Rewrite it. Call
9513 target_xfer_partial in a loop.
9514 * exec.h (section_table_available_memory): Remove declaration.
9515 Move comments to ...
9516 * exec.c (section_table_available_memory): ... here. Make it
9519 2014-02-23 Yao Qi <yao@codesourcery.com>
9521 * exec.c (section_table_read_available_memory): New function.
9522 * exec.h (section_table_read_available_memory): Declare.
9523 * ctf.c (ctf_xfer_partial): Call
9524 section_table_read_available_memory.
9525 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9527 2014-02-23 Yao Qi <yao@codesourcery.com>
9529 * ctf.c (ctf_xfer_partial): Move code to ...
9530 * exec.c (exec_read_partial_read_only): ... it. New function.
9531 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9532 * tracefile.c: Include "exec.h".
9533 * exec.h (exec_read_partial_read_only): Declare.
9535 2014-02-23 Yao Qi <yao@codesourcery.com>
9537 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9538 (tfile_has_memory): Remove.
9539 (init_tfile_ops): Don't set fields to_has_all_memory and
9540 to_has_memory of tfile_ops.
9541 * tracefile.c (tracefile_has_all_memory): New function.
9542 (tracefile_has_memory): New function.
9543 (init_tracefile_ops): Initialize fields to_has_all_memory and
9544 to_has_memory of 'ops'.
9546 2014-02-23 Yao Qi <yao@codesourcery.com>
9548 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9549 (ctf_thread_alive, ctf_get_trace_status): Remove.
9550 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9552 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9553 (tfile_has_stack, tfile_has_registers): Remove.
9554 (tfile_thread_alive): Remove.
9555 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9557 * tracefile.c (tracefile_has_stack): New function.
9558 (tracefile_has_registers): New function.
9559 (tracefile_thread_alive): New function.
9560 (tracefile_get_trace_status): New function.
9561 (init_tracefile_ops): New function.
9562 * tracefile.h (init_tracefile_ops): Declare.
9564 2014-02-23 Yao Qi <yao@codesourcery.com>
9566 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9567 (O_LARGEFILE): Likewise.
9568 (tfile_ops): Likewise.
9569 (TRACE_HEADER_SIZE): Likewise.
9570 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9571 (cur_data_size): Likewise.
9572 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9573 (tfile_close, tfile_files_info): Likewise.
9574 (tfile_get_trace_status): Likewise.
9575 (tfile_get_tracepoint_status): Likewise.
9576 (tfile_get_traceframe_address): Likewise.
9577 (tfile_trace_find, match_blocktype): Likewise.
9578 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9579 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9580 (tfile_get_trace_state_variable_value): Likewise.
9581 (tfile_has_all_memory, tfile_has_memory): Likewise.
9582 (tfile_has_stack, tfile_has_registers): Likewise.
9583 (tfile_thread_alive, build_traceframe_info): Likewise.
9584 (tfile_traceframe_info, init_tfile_ops): Likewise.
9585 (_initialize_tracepoint): Don't call init_tfile_ops
9586 and add_target_with_completer.
9587 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9588 exec.h, completer.h and filenames.h.
9589 (_initialize_tracefile_tfile): New function.
9591 2014-02-23 Yao Qi <yao@codesourcery.com>
9593 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9595 (HFILES_NO_SRCDIR): Add tracefile.h.
9596 * ctf.c: Include "tracefile.h".
9597 * tracefile.h: New file.
9598 * tracefile.c: New file
9599 * tracefile-tfile.c: New file.
9600 * tracepoint.c: Include "tracefile.h".
9601 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9602 (stop_reason_names): Add const.
9603 (trace_file_writer_xfree): Move it to tracefile.c.
9604 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9605 (trace_save_ctf): Likewise.
9606 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9607 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9608 (tfile_write_header, tfile_write_regblock_type): Likewise.
9609 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9610 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9611 (tfile_write_raw_data, tfile_end): Likewise.
9612 (tfile_trace_file_writer_new): Likewise.
9613 (free_uploaded_tp): Make it extern.
9614 (free_uploaded_tsv): Make it extern.
9615 (_initialize_tracepoint): Move code to register command 'tsave'
9617 * tracepoint.h (stop_reason_names): Declare.
9618 (struct trace_frame_write_ops): Move it to tracefile.h.
9619 (struct trace_file_write_ops): Likewise.
9620 (struct trace_file_writer): Likewise.
9621 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9623 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9626 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9628 (get_cores_used_by_process): New parameter num_cores, use it.
9629 (linux_xfer_osdata_processes): Pass num_cores to it.
9630 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9633 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9635 * target.c (memory_xfer_partial): Fix length arg in call to
9636 breakpoint_xfer_memory.
9638 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9641 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9642 number comes after the + or - signs. Adjust length of register
9643 name to be extracted.
9645 2014-02-20 Tom Tromey <tromey@redhat.com>
9647 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9648 (ada_varobj_ops): Mark "extern".
9650 2014-02-20 Tom Tromey <tromey@redhat.com>
9652 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9654 2014-02-20 Doug Evans <xdje42@gmail.com>
9656 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9657 All callers updated.
9658 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9659 All callers updated.
9660 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9661 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9663 2014-02-20 lin zuojian <manjian2006@gmail.com>
9664 Joel Brobecker <brobecker@adacore.com>
9665 Doug Evans <xdje42@gmail.com>
9668 * dwarf2read.c (struct die_info): New member in_process.
9669 (reset_die_in_process): New function.
9670 (process_die): Set it at the start, reset when returning.
9671 (inherit_abstract_dies): Only call process_die if origin_child_die
9672 not already being processed.
9674 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9676 * windows-nat.c (handle_unload_dll): Add function documentation.
9677 (do_initial_windows_stuff): Add comment explaining why we wait
9678 until after inferior initialization has finished before
9679 processing all DLLs.
9681 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9683 * windows-nat.c (get_module_name): Delete.
9684 (windows_get_exec_module_filename): New function, mostly
9685 inspired from get_module_name.
9686 (windows_pid_to_exec_file): Replace call to get_module_name
9687 by call to windows_get_exec_module_filename.
9689 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9691 * windows-nat.c (handle_load_dll): Rewrite this function's
9692 introductory comment. Remove code using get_module_name
9693 to get the DLL's name.
9695 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9697 * windows-nat.c (get_windows_debug_event): Ignore
9698 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9699 if windows_initialization_done == 0.
9700 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9701 Adjust implementation to always load all DLLs.
9702 (do_initial_windows_stuff): Replace call to
9703 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9705 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9707 * windows-nat.c (_initialize_windows_nat): Deprecate the
9708 "dll-symbols" command. Turn the "add-shared-symbol-files"
9709 and "assf" aliases into commands, and deprecate them as well.
9710 * NEWS: Add entry explaining that "dll-symbols" and its two
9711 aliases are now deprecated.
9713 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9715 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9716 new-line in debug string. Remove trailing spaces.
9718 2014-02-19 Stan Shebs <stan@codesourcery.com>
9720 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9722 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9724 * NEWS: Add entry for the new feature
9725 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9728 2014-02-19 Stan Shebs <stan@codesourcery.com>
9730 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9732 2014-02-19 Pedro Alves <palves@redhat.com>
9734 * common/ptid.h (struct ptid): Mention that process_stratum
9735 targets should prefer ptid.lwp.
9737 2014-02-19 Pedro Alves <palves@redhat.com>
9739 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9740 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9741 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9742 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9743 store remote thread ids rather than ptid.tid.
9744 (_initialize_remote): Adjust.
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9748 * target.c (target_get_unwinder): Rewrite.
9749 (target_get_tailcall_unwinder): Rewrite.
9750 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9751 (record_btrace_to_get_tailcall_unwinder): New function.
9752 (init_record_btrace_ops): Update.
9753 * target.h (struct target_ops) <to_get_unwinder,
9754 to_get_tailcall_unwinder>: Now function pointers. Use
9755 TARGET_DEFAULT_RETURN.
9757 2014-02-19 Tom Tromey <tromey@redhat.com>
9759 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9761 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9765 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9767 * target-delegates.c: Rebuild.
9768 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9769 TARGET_DEFAULT_FUNC.
9770 * target.c (default_target_decr_pc_after_break): Rename from
9771 forward_target_decr_pc_after_break. Simplify.
9772 (target_decr_pc_after_break): Rely on delegation.
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9776 * target.c (update_current_target): Do not INHERIT to_doc or
9777 to_magic. Do not de_fault to_open or to_close.
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * gcore.h (objfile_find_memory_regions): Declare.
9782 * gcore.c (objfile_find_memory_regions): No longer static. Add
9784 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9785 * exec.c: Include gcore.h.
9786 (exec_set_find_memory_regions): Remove.
9787 (exec_find_memory_regions): Remove.
9788 (exec_do_find_memory_regions): Remove.
9789 (init_exec_ops): Update.
9790 * defs.h (exec_set_find_memory_regions): Remove.
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9794 * target-delegates.c: Rebuild.
9795 * target.h (struct target_ops) <to_extra_thread_info,
9796 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9797 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9798 not 0, in TARGET_DEFAULT_RETURN.
9800 2014-02-19 Tom Tromey <tromey@redhat.com>
9802 * target.c (complete_target_initialization): Remove casts. Use
9803 return_zero_has_execution.
9804 (return_zero): Add "ignore" argument.
9805 (return_zero_has_execution): New function.
9806 (init_dummy_target): Remove casts. Use
9807 return_zero_has_execution.
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9811 * target.c (update_current_target): Update comments. Do not
9814 2014-02-19 Tom Tromey <tromey@redhat.com>
9816 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9818 * corelow.c (core_read_description): Delegate when needed.
9819 * remote.c (remote_read_description): Delegate when needed.
9820 * target-delegates.c: Rebuild.
9821 * target.c (target_read_description): Rewrite.
9822 * target.h (struct target_ops) <to_read_description>: Update
9823 comment. Use TARGET_DEFAULT_RETURN.
9825 2014-02-19 Tom Tromey <tromey@redhat.com>
9827 * target-delegates.c: Rebuild.
9828 * target.c (update_current_target): Don't inherit or default
9830 (find_default_run_target): Check against delegate_can_run.
9831 * target.h (struct target_ops) <to_can_run>: Use
9832 TARGET_DEFAULT_RETURN.
9834 2014-02-19 Tom Tromey <tromey@redhat.com>
9836 * target-delegates.c: Rebuild.
9837 * target.c (target_disconnect): Unconditionally delegate.
9838 * target.h (struct target_ops) <to_disconnect>: Use
9839 TARGET_DEFAULT_NORETURN.
9841 2014-02-19 Tom Tromey <tromey@redhat.com>
9843 * record.c (record_stop): Unconditionally delegate.
9844 * target-delegates.c: Rebuild.
9845 * target.c (target_stop_recording): Unconditionally delegate.
9846 * target.h (struct target_ops) <to_stop_recording>: Use
9847 TARGET_DEFAULT_IGNORE.
9849 2014-02-19 Tom Tromey <tromey@redhat.com>
9851 * target-delegates.c: Rebuild.
9852 * target.c (target_enable_btrace): Unconditionally delegate.
9853 * target.h (struct target_ops) <to_enable_btrace>: Use
9854 TARGET_DEFAULT_NORETURN.
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9858 * target-delegates.c: Rebuild.
9859 * target.c (target_read_btrace): Unconditionally delegate.
9860 * target.h (struct target_ops) <to_read_btrace>: Use
9861 TARGET_DEFAULT_NORETURN.
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9865 * target-delegates.c: Rebuild.
9866 * target.c (target_teardown_btrace): Unconditionally delegate.
9867 * target.h (struct target_ops) <to_teardown_btrace>: Use
9868 TARGET_DEFAULT_NORETURN.
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target-delegates.c: Rebuild.
9873 * target.c (target_disable_btrace): Unconditionally delegate.
9874 * target.h (struct target_ops) <to_disable_btrace>: Use
9875 TARGET_DEFAULT_NORETURN.
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target-delegates.c: Rebuild.
9880 * target.c (default_search_memory): New function.
9881 (simple_search_memory): Update comment.
9882 (target_search_memory): Unconditionally delegate.
9883 * target.h (struct target_ops) <to_search_memory>: Use
9884 TARGET_DEFAULT_FUNC.
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9888 * auxv.c (default_auxv_parse): No longer static.
9889 (target_auxv_parse): Unconditionally delegate.
9890 * auxv.h (default_auxv_parse): Declare.
9891 * target-delegates.c: Rebuild.
9892 * target.c: Include auxv.h.
9893 * target.h (struct target_ops) <to_auxv_parse>: Use
9894 TARGET_DEFAULT_FUNC.
9896 2014-02-19 Tom Tromey <tromey@redhat.com>
9898 * target-delegates.c: Rebuild.
9899 * target.c (target_memory_map): Unconditionally delegate.
9900 * target.h (struct target_ops) <to_memory_map>: Use
9901 TARGET_DEFAULT_RETURN.
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9905 * target-delegates.c: Rebuild.
9906 * target.c (target_thread_alive): Unconditionally delegate.
9907 * target.h (struct target_ops) <to_thread_alive>: Use
9908 TARGET_DEFAULT_RETURN.
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9912 * target-delegates.c: Rebuild.
9913 * target.c (target_save_record): Unconditionally delegate.
9914 * target.h (struct target_ops) <to_save_record>: Use
9915 TARGET_DEFAULT_NORETURN.
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9919 * target-delegates.c: Rebuild.
9920 * target.c (target_delete_record): Unconditionally delegate.
9921 * target.h (struct target_ops) <to_delete_record>: Use
9922 TARGET_DEFAULT_NORETURN.
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9926 * target-delegates.c: Rebuild.
9927 * target.c (target_record_is_replaying): Unconditionally
9929 * target.h (struct target_ops) <to_record_is_replaying>: Use
9930 TARGET_DEFAULT_RETURN.
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9934 * target-delegates.c: Rebuild.
9935 * target.c (target_goto_record_begin): Unconditionally delegate.
9936 * target.h (struct target_ops) <to_goto_record_begin>: Use
9937 TARGET_DEFAULT_NORETURN.
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9941 * target-delegates.c: Rebuild.
9942 * target.c (target_goto_record_end): Unconditionally delegate.
9943 * target.h (struct target_ops) <to_goto_record_end>: Use
9944 TARGET_DEFAULT_NORETURN.
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9948 * target-delegates.c: Rebuild.
9949 * target.c (target_goto_record): Unconditionally delegate.
9950 * target.h (struct target_ops) <to_goto_record>: Use
9951 TARGET_DEFAULT_NORETURN.
9953 2014-02-19 Tom Tromey <tromey@redhat.com>
9955 * target-delegates.c: Rebuild.
9956 * target.c (target_insn_history): Unconditionally delegate.
9957 * target.h (struct target_ops) <to_insn_history>: Use
9958 TARGET_DEFAULT_NORETURN.
9960 2014-02-19 Tom Tromey <tromey@redhat.com>
9962 * target-delegates.c: Rebuild.
9963 * target.c (target_insn_history_from): Unconditionally delegate.
9964 * target.h (struct target_ops) <to_insn_history_from>: Use
9965 TARGET_DEFAULT_NORETURN.
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9969 * target-delegates.c: Rebuild.
9970 * target.c (target_insn_history_range): Unconditionally delegate.
9971 * target.h (struct target_ops) <to_insn_history_range>: Use
9972 TARGET_DEFAULT_NORETURN.
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9976 * target-delegates.c: Rebuild.
9977 * target.c (target_call_history): Unconditionally delegate.
9978 * target.h (struct target_ops) <to_call_history>: Use
9979 TARGET_DEFAULT_NORETURN.
9981 2014-02-19 Tom Tromey <tromey@redhat.com>
9983 * target-delegates.c: Rebuild.
9984 * target.c (target_call_history_from): Unconditionally delegate.
9985 * target.h (struct target_ops) <to_call_history_from>: Use
9986 TARGET_DEFAULT_NORETURN.
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9990 * target-delegates.c: Rebuild.
9991 * target.c (target_call_history_range): Unconditionally delegate.
9992 * target.h (struct target_ops) <to_call_history_range>: Use
9993 TARGET_DEFAULT_NORETURN.
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9997 * target-delegates.c: Rebuild.
9998 * target.c (target_verify_memory): Unconditionally delegate.
9999 * target.h (struct target_ops) <to_verify_memory>: Use
10000 TARGET_DEFAULT_NORETURN.
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10004 * target-delegates.c: Rebuild.
10005 * target.c (target_core_of_thread): Unconditionally delegate.
10006 * target.h (struct target_ops) <to_core_of_thread>: Use
10007 TARGET_DEFAULT_RETURN.
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10011 * target-delegates.c: Rebuild.
10012 * target.c (target_flash_done): Unconditionally delegate.
10013 * target.h (struct target_ops) <to_flash_done>: Use
10014 TARGET_DEFAULT_NORETURN.
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10018 * target-delegates.c: Rebuild.
10019 * target.c (target_flash_erase): Unconditionally delegate.
10020 * target.h (struct target_ops) <to_flash_erase>: Use
10021 TARGET_DEFAULT_NORETURN.
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * target-delegates.c: Rebuild.
10026 * target.c (target_get_section_table): Unconditionally delegate.
10027 * target.h (struct target_ops) <to_get_section_table>: Use
10028 TARGET_DEFAULT_RETURN.
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10032 * target-delegates.c: Rebuild.
10033 * target.c (target_pid_to_str): Unconditionally delegate.
10034 (init_dummy_target): Don't initialize to_pid_to_str.
10035 (default_pid_to_str): Rename from dummy_pid_to_str.
10036 * target.h (struct target_ops) <to_pid_to_str>: Use
10037 TARGET_DEFAULT_FUNC.
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10041 * target-delegates.c: Rebuild.
10042 * target.c (target_find_new_threads): Unconditionally delegate.
10043 * target.h (struct target_ops) <to_find_new_threads>: Use
10044 TARGET_DEFAULT_RETURN.
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10048 * target-delegates.c: Rebuild.
10049 * target.c (target_program_signals): Unconditionally delegate.
10050 * target.h (struct target_ops) <to_program_signals>: Use
10051 TARGET_DEFAULT_IGNORE.
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10055 * target-delegates.c: Rebuild.
10056 * target.c (target_pass_signals): Unconditionally delegate.
10057 * target.h (struct target_ops) <to_pass_signals>: Use
10058 TARGET_DEFAULT_IGNORE.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target-delegates.c: Rebuild.
10063 * target.c (default_mourn_inferior): New function.
10064 (target_mourn_inferior): Unconditionally delegate.
10065 * target.h (struct target_ops) <to_mourn_inferior>: Use
10066 TARGET_DEFAULT_FUNC.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target-delegates.c: Rebuild.
10071 * target.c (default_follow_fork): New function.
10072 (target_follow_fork): Unconditionally delegate.
10073 * target.h (struct target_ops) <to_follow_fork>: Use
10074 TARGET_DEFAULT_FUNC.
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10078 * target-delegates.c: Rebuild.
10079 * target.c (target_kill): Unconditionally delegate.
10080 * target.h (struct target_ops) <to_kill>: Use
10081 TARGET_DEFAULT_NORETURN.
10083 2014-02-19 Tom Tromey <tromey@redhat.com>
10085 * target-delegates.c: Rebuild.
10086 * target.c (target_masked_watch_num_registers): Unconditionally
10088 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10089 Use TARGET_DEFAULT_RETURN.
10091 2014-02-19 Tom Tromey <tromey@redhat.com>
10093 * target-delegates.c: Rebuild.
10094 * target.c (target_remove_mask_watchpoint): Unconditionally
10096 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10097 TARGET_DEFAULT_RETURN.
10099 2014-02-19 Tom Tromey <tromey@redhat.com>
10101 * target-delegates.c: Rebuild.
10102 * target.c (target_insert_mask_watchpoint): Unconditionally
10104 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10105 TARGET_DEFAULT_RETURN.
10107 2014-02-19 Tom Tromey <tromey@redhat.com>
10109 * target-delegates.c: Rebuild.
10110 * target.c (target_ranged_break_num_registers): Unconditionally
10112 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10113 Use TARGET_DEFAULT_RETURN.
10115 2014-02-19 Tom Tromey <tromey@redhat.com>
10117 * target-delegates.c: Rebuild.
10118 * target.c (target_fetch_registers): Unconditionally delegate.
10119 * target.h (struct target_ops) <to_fetch_registers>: Use
10120 TARGET_DEFAULT_NORETURN.
10122 2014-02-19 Tom Tromey <tromey@redhat.com>
10124 * target-delegates.c: Rebuild.
10125 * target.c (update_current_target): Don't inherit or default
10127 * target.h (struct target_ops) <to_stop>: Use
10128 TARGET_DEFAULT_IGNORE.
10130 2014-02-19 Tom Tromey <tromey@redhat.com>
10132 * target-delegates.c: Rebuild.
10133 * target.c (update_current_target): Don't inherit or default
10134 to_can_run_breakpoint_commands.
10135 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10136 Use TARGET_DEFAULT_RETURN.
10138 2014-02-19 Tom Tromey <tromey@redhat.com>
10140 * target-delegates.c: Rebuild.
10141 * target.c (update_current_target): Don't inherit or default
10142 to_supports_evaluation_of_breakpoint_conditions.
10143 * target.h (struct target_ops)
10144 <to_supports_evaluation_of_breakpoint_conditions>: Use
10145 TARGET_DEFAULT_RETURN.
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10149 * target-delegates.c: Rebuild.
10150 * target.c (update_current_target): Don't inherit or default
10151 to_augmented_libraries_svr4_read.
10152 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10153 Use TARGET_DEFAULT_RETURN.
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10157 * target-delegates.c: Rebuild.
10158 * target.c (update_current_target): Don't inherit or default
10160 * target.h (struct target_ops) <to_can_use_agent>: Use
10161 TARGET_DEFAULT_RETURN.
10163 2014-02-19 Tom Tromey <tromey@redhat.com>
10165 * target-delegates.c: Rebuild.
10166 * target.c (update_current_target): Don't inherit or default
10168 * target.h (struct target_ops) <to_use_agent>: Use
10169 TARGET_DEFAULT_NORETURN.
10171 2014-02-19 Tom Tromey <tromey@redhat.com>
10173 * target-delegates.c: Rebuild.
10174 * target.c (update_current_target): Don't inherit or default
10175 to_traceframe_info.
10176 (return_null): Remove.
10177 * target.h (struct target_ops) <to_traceframe_info>: Use
10178 TARGET_DEFAULT_RETURN.
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * target-delegates.c: Rebuild.
10183 * target.c (update_current_target): Don't inherit or default
10184 to_static_tracepoint_markers_by_strid.
10185 * target.h (struct target_ops)
10186 <to_static_tracepoint_markers_by_strid>: Use
10187 TARGET_DEFAULT_NORETURN.
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10191 * target-delegates.c: Rebuild.
10192 * target.c (update_current_target): Don't inherit or default
10193 to_static_tracepoint_marker_at.
10194 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10195 Use TARGET_DEFAULT_RETURN.
10197 2014-02-19 Tom Tromey <tromey@redhat.com>
10199 * target-delegates.c: Rebuild.
10200 * target.c (update_current_target): Don't inherit or default
10201 to_set_permissions.
10202 * target.h (struct target_ops) <to_set_permissions>: Use
10203 TARGET_DEFAULT_IGNORE.
10205 2014-02-19 Tom Tromey <tromey@redhat.com>
10207 * target-delegates.c: Rebuild.
10208 * target.c (update_current_target): Don't inherit or default
10209 to_get_tib_address.
10210 * target.h (struct target_ops) <to_get_tib_address>: Use
10211 TARGET_DEFAULT_NORETURN.
10213 2014-02-19 Tom Tromey <tromey@redhat.com>
10215 * target-delegates.c: Rebuild.
10216 * target.c (update_current_target): Don't inherit or default
10217 to_set_trace_notes.
10218 * target.h (struct target_ops) <to_set_trace_notes>: Use
10219 TARGET_DEFAULT_RETURN.
10221 2014-02-19 Tom Tromey <tromey@redhat.com>
10223 * target-delegates.c: Rebuild.
10224 * target.c (update_current_target): Don't initialize
10225 to_set_trace_buffer_size.
10226 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10227 TARGET_DEFAULT_IGNORE.
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10231 * target-delegates.c: Rebuild.
10232 * target.c (update_current_target): Don't inherit or default
10233 to_set_circular_trace_buffer.
10234 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10235 TARGET_DEFAULT_IGNORE.
10237 2014-02-19 Tom Tromey <tromey@redhat.com>
10239 * target-delegates.c: Rebuild.
10240 * target.c (update_current_target): Don't inherit or default
10241 to_set_disconnected_tracing.
10242 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10243 TARGET_DEFAULT_IGNORE.
10245 2014-02-19 Tom Tromey <tromey@redhat.com>
10247 * target-delegates.c: Rebuild.
10248 * target.c (update_current_target): Don't inherit or default
10249 to_get_min_fast_tracepoint_insn_len.
10250 (return_minus_one): Remove.
10251 * target.h (struct target_ops)
10252 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10256 * target-delegates.c: Rebuild.
10257 * target.c (update_current_target): Don't inherit or default
10258 to_get_raw_trace_data.
10259 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10260 TARGET_DEFAULT_NORETURN.
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10264 * target-delegates.c: Rebuild.
10265 * target.c (update_current_target): Don't inherit or default
10266 to_upload_trace_state_variables.
10267 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10268 Use TARGET_DEFAULT_RETURN.
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10272 * target-delegates.c: Rebuild.
10273 * target.c (update_current_target): Don't inherit or default
10274 to_upload_tracepoints.
10275 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10276 TARGET_DEFAULT_RETURN.
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10280 * target-delegates.c: Rebuild.
10281 * target.c (update_current_target): Don't inherit or default
10282 to_save_trace_data.
10283 * target.h (struct target_ops) <to_save_trace_data>: Use
10284 TARGET_DEFAULT_NORETURN.
10286 2014-02-19 Tom Tromey <tromey@redhat.com>
10288 * target-delegates.c: Rebuild.
10289 * target.c (update_current_target): Don't inherit or default
10290 to_get_trace_state_variable_value.
10291 * target.h (struct target_ops)
10292 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10296 * target-delegates.c: Rebuild.
10297 * target.c (update_current_target): Don't inherit or default
10299 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10303 * target-delegates.c: Rebuild.
10304 * target.c (update_current_target): Don't inherit or default
10306 * target.h (struct target_ops) <to_trace_stop>: Use
10307 TARGET_DEFAULT_NORETURN.
10309 2014-02-19 Tom Tromey <tromey@redhat.com>
10311 * target-delegates.c: Rebuild.
10312 * target.c (update_current_target): Don't inherit or default
10313 to_get_tracepoint_status.
10314 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10315 TARGET_DEFAULT_NORETURN.
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10319 * target-delegates.c: Rebuild.
10320 * target.c (update_current_target): Don't inherit or default
10321 to_get_trace_status.
10322 * target.h (struct target_ops) <to_get_trace_status>: Use
10323 TARGET_DEFAULT_RETURN.
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10327 * target-delegates.c: Rebuild.
10328 * target.c (update_current_target): Don't inherit or default
10330 * target.h (struct target_ops) <to_trace_start>: Use
10331 TARGET_DEFAULT_NORETURN.
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10335 * target-delegates.c: Rebuild.
10336 * target.c (update_current_target): Don't inherit or default
10337 to_trace_set_readonly_regions.
10338 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10339 Use TARGET_DEFAULT_NORETURN.
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target-delegates.c: Rebuild.
10344 * target.c (update_current_target): Don't inherit or default
10345 to_disable_tracepoint.
10346 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10347 TARGET_DEFAULT_NORETURN.
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10353 to_enable_tracepoint.
10354 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10355 TARGET_DEFAULT_NORETURN.
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10359 * target-delegates.c: Rebuild.
10360 * target.c (update_current_target): Don't inherit or default
10361 to_download_trace_state_variable.
10362 * target.h (struct target_ops) <to_download_trace_state_variable>:
10363 Use TARGET_DEFAULT_NORETURN.
10365 2014-02-19 Tom Tromey <tromey@redhat.com>
10367 * target-delegates.c: Rebuild.
10368 * target.c (update_current_target): Don't inherit or default
10369 to_can_download_tracepoint.
10370 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10371 TARGET_DEFAULT_RETURN.
10373 2014-02-19 Tom Tromey <tromey@redhat.com>
10375 * target-delegates.c: Rebuild.
10376 * target.c (update_current_target): Don't inherit or default
10377 to_download_tracepoint.
10378 * target.h (struct target_ops) <to_download_tracepoint>: Use
10379 TARGET_DEFAULT_NORETURN.
10381 2014-02-19 Tom Tromey <tromey@redhat.com>
10383 * target-delegates.c: Rebuild.
10384 * target.c (update_current_target): Don't inherit or default
10386 * target.h (struct target_ops) <to_trace_init>: Use
10387 TARGET_DEFAULT_RETURN.
10389 2014-02-19 Tom Tromey <tromey@redhat.com>
10391 * target-delegates.c: Rebuild.
10392 * target.c (update_current_target): Don't inherit or default
10393 to_supports_string_tracing.
10394 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10395 TARGET_DEFAULT_RETURN.
10397 2014-02-19 Tom Tromey <tromey@redhat.com>
10399 * target-delegates.c: Rebuild.
10400 * target.c (update_current_target): Don't inherit or default
10401 to_supports_enable_disable_tracepoint.
10402 * target.h (struct target_ops)
10403 <to_supports_enable_disable_tracepoint>: Use
10404 TARGET_DEFAULT_RETURN.
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10408 * target-delegates.c: Rebuild.
10409 * target.c (update_current_target): Don't inherit or default
10410 to_supports_multi_process.
10411 * target.h (struct target_ops) <to_supports_multi_process>: Use
10412 TARGET_DEFAULT_RETURN.
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10416 * target-delegates.c: Rebuild.
10417 * target.c (update_current_target): Don't inherit or default
10418 to_get_ada_task_ptid.
10419 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10420 TARGET_DEFAULT_FUNC.
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10424 * target-delegates.c: Rebuild.
10425 * target.c (update_current_target): Don't inherit or default
10426 to_thread_architecture.
10427 * target.h (struct target_ops) <to_thread_architecture>: Use
10428 TARGET_DEFAULT_FUNC.
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10432 * target-delegates.c: Rebuild.
10433 * target.c (update_current_target): Don't inherit or default
10434 to_execution_direction.
10435 * target.h (struct target_ops) <to_execution_direction>: Use
10436 TARGET_DEFAULT_FUNC.
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10440 * target-delegates.c: Rebuild.
10441 * target.c (update_current_target): Don't inherit or default
10442 to_can_execute_reverse.
10443 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10444 TARGET_DEFAULT_RETURN.
10445 (target_can_execute_reverse): Unconditionally delegate.
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10449 * target-delegates.c: Rebuild.
10450 * target.c (update_current_target): Don't inherit or default
10452 (dummy_goto_bookmark): Remove.
10453 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10454 * target.h (struct target_ops) <to_goto_bookmark>: Use
10455 TARGET_DEFAULT_NORETURN.
10457 2014-02-19 Tom Tromey <tromey@redhat.com>
10459 * target-delegates.c: Rebuild.
10460 * target.c (update_current_target): Don't inherit or default
10462 (dummy_get_bookmark): Remove.
10463 (init_dummy_target): Don't inherit or default to_get_bookmark.
10464 * target.h (struct target_ops) <to_get_bookmark>: Use
10465 TARGET_DEFAULT_NORETURN
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10469 * target-delegates.c: Rebuild.
10470 * target.c (update_current_target): Don't inherit or default
10471 to_make_corefile_notes.
10472 (init_dummy_target): Don't initialize to_make_corefile_notes.
10473 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10474 TARGET_DEFAULT_FUNC.
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10478 * target-delegates.c: Rebuild.
10479 * target.c (update_current_target): Don't inherit or default
10480 to_find_memory_regions.
10481 (init_dummy_target): Don't initialize to_find_memory_regions.
10482 * target.h (struct target_ops) <to_find_memory_regions>: Use
10483 TARGET_DEFAULT_FUNC.
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10487 * target-delegates.c: Rebuild.
10488 * target.c (update_current_target): Don't inherit or default
10490 * target.h (struct target_ops) <to_log_command>: Use
10491 TARGET_DEFAULT_IGNORE.
10492 (target_log_command): Unconditionally delegate.
10494 2014-02-19 Tom Tromey <tromey@redhat.com>
10496 * target-delegates.c: Rebuild.
10497 * target.c (update_current_target): Don't inherit or default
10498 to_pid_to_exec_file.
10499 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10500 TARGET_DEFAULT_RETURN.
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10504 * target-delegates.c: Rebuild.
10505 * target.c (update_current_target): Don't inherit or default
10507 (target_thread_name): Unconditionally delegate.
10508 * target.h (struct target_ops) <to_thread_name>: Use
10509 TARGET_DEFAULT_RETURN.
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10513 * target-delegates.c: Rebuild.
10514 * target.c (update_current_target): Don't inherit or default
10515 to_extra_thread_info.
10516 * target.h (struct target_ops) <to_extra_thread_info>: Use
10517 TARGET_DEFAULT_RETURN.
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10521 * target-delegates.c: Rebuild.
10522 * target.c (update_current_target): Don't inherit or default
10524 * target.h (struct target_ops) <to_has_exited>: Use
10525 TARGET_DEFAULT_RETURN..
10527 2014-02-19 Tom Tromey <tromey@redhat.com>
10529 * target-delegates.c: Rebuild.
10530 * target.c (update_current_target): Don't inherit or default
10531 to_set_syscall_catchpoint.
10532 (return_one): Remove.
10533 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10534 TARGET_DEFAULT_RETURN.
10536 2014-02-19 Tom Tromey <tromey@redhat.com>
10538 * target-delegates.c: Rebuild.
10539 * target.c (update_current_target): Don't inherit or default
10540 to_insert_exec_catchpoint.
10541 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10542 TARGET_DEFAULT_RETURN.
10544 2014-01-08 Tom Tromey <tromey@redhat.com>
10546 * target-delegates.c: Rebuild.
10547 * target.c (update_current_target): Don't inherit or default
10548 to_insert_exec_catchpoint.
10549 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10550 TARGET_DEFAULT_RETURN.
10552 2014-02-19 Tom Tromey <tromey@redhat.com>
10554 * target-delegates.c: Rebuild.
10555 * target.c (update_current_target): Don't inherit or default
10556 to_remove_vfork_catchpoint.
10557 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10558 TARGET_DEFAULT_RETURN.
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10562 * target-delegates.c: Rebuild.
10563 * target.c (update_current_target): Don't inherit or default
10564 to_insert_vfork_catchpoint.
10565 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10566 TARGET_DEFAULT_RETURN.
10568 2014-02-19 Tom Tromey <tromey@redhat.com>
10570 * target-delegates.c: Rebuild.
10571 * target.c (update_current_target): Don't inherit or default
10572 to_remove_fork_catchpoint.
10573 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10574 TARGET_DEFAULT_RETURN.
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10578 * target-delegates.c: Rebuild.
10579 * target.c (update_current_target): Don't inherit or default
10580 to_insert_fork_catchpoint.
10581 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10582 TARGET_DEFAULT_RETURN.
10584 2014-02-19 Tom Tromey <tromey@redhat.com>
10586 * target-delegates.c: Rebuild.
10587 * target.c (update_current_target): Don't inherit or default
10588 to_post_startup_inferior.
10589 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10590 TARGET_DEFAULT_IGNORE.
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10594 * target-delegates.c: Rebuild.
10595 * target.c (update_current_target): Don't inherit or default
10597 * target.h (struct target_ops) <to_load>: Use
10598 TARGET_DEFAULT_NORETURN.
10600 2014-02-19 Tom Tromey <tromey@redhat.com>
10602 * target-delegates.c: Rebuild.
10603 * target.c (update_current_target): Don't inherit or default
10605 * target.h (struct target_ops) <to_terminal_info>: Use
10606 TARGET_DEFAULT_FUNC.
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10610 * target-delegates.c: Rebuild.
10611 * target.c (update_current_target): Don't inherit or default
10612 to_terminal_save_ours.
10613 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10614 TARGET_DEFAULT_IGNORE.
10616 2014-02-19 Tom Tromey <tromey@redhat.com>
10618 * target-delegates.c: Rebuild.
10619 * target.c (update_current_target): Don't inherit or default
10621 * target.h (struct target_ops) <to_terminal_ours>: Use
10622 TARGET_DEFAULT_IGNORE.
10624 2014-02-19 Tom Tromey <tromey@redhat.com>
10626 * target-delegates.c: Rebuild.
10627 * target.c (update_current_target): Don't inherit or default
10628 to_terminal_ours_for_output.
10629 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10630 TARGET_DEFAULT_IGNORE.
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10634 * target-delegates.c: Rebuild.
10635 * target.c (update_current_target): Don't inherit or default
10636 to_terminal_inferior.
10637 * target.h (struct target_ops) <to_terminal_inferior>: Use
10638 TARGET_DEFAULT_IGNORE.
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10642 * target-delegates.c: Rebuild.
10643 * target.c (update_current_target): Don't inherit or default
10645 * target.h (struct target_ops) <to_terminal_init>: Use
10646 TARGET_DEFAULT_IGNORE.
10648 2014-02-19 Tom Tromey <tromey@redhat.com>
10650 * target-delegates.c: Rebuild.
10651 * target.c (update_current_target): Don't inherit or default
10652 to_can_accel_watchpoint_condition.
10653 * target.h (struct target_ops)
10654 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10658 * target-delegates.c: Rebuild.
10659 * target.c (update_current_target): Don't inherit or default
10660 to_region_ok_for_hw_watchpoint.
10661 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10662 Use TARGET_DEFAULT_FUNC.
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10666 * target-delegates.c: Rebuild.
10667 * target.c (update_current_target): Don't inherit or default
10668 to_watchpoint_addr_within_range.
10669 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10670 Use TARGET_DEFAULT_FUNC.
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10674 * target-delegates.c: Rebuild.
10675 * target.c (update_current_target): Don't inherit or default
10676 to_remove_watchpoint.
10677 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10678 TARGET_DEFAULT_NORETURN.
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10682 * target-delegates.c: Rebuild.
10683 * target.c (update_current_target): Don't inherit or default
10684 to_insert_watchpoint.
10685 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10686 TARGET_DEFAULT_RETURN.
10688 2014-02-19 Tom Tromey <tromey@redhat.com>
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't inherit or default
10692 to_remove_hw_breakpoint.
10693 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10694 TARGET_DEFAULT_RETURN.
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10698 * target-delegates.c: Rebuild.
10699 * target.c (update_current_target): Don't inherit or default
10700 to_insert_hw_breakpoint.
10701 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10702 TARGET_DEFAULT_RETURN.
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * target-delegates.c: Rebuild.
10707 * target.c (update_current_target): Don't inherit or default
10708 to_can_use_hw_breakpoint.
10709 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10710 TARGET_DEFAULT_RETURN.
10712 2014-02-19 Tom Tromey <tromey@redhat.com>
10714 * target-delegates.c: Rebuild.
10715 * target.c (update_current_target): Don't inherit or default
10717 * target.h (struct target_ops) <to_files_info>: Use
10718 TARGET_DEFAULT_IGNORE.
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10722 * target-delegates.c: Rebuild.
10723 * target.c (update_current_target): Don't inherit or default
10725 * target.h (struct target_ops) <to_store>: Use
10726 TARGET_DEFAULT_NORETURN.
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10730 * target-delegates.c: Rebuild.
10731 * target.c (update_current_target): Don't inherit or default
10733 * target.h (struct target_ops) <to_post_attach>: Use
10734 TARGET_DEFAULT_IGNORE.
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10738 * target-delegates.c: Rebuild.
10739 * target.c (update_current_target): Don't inherit or default
10741 (default_rcmd): New function.
10742 (do_monitor_command): Unconditionally delegate.
10743 * target.h (struct target_ops) <to_rmcd>: Use
10744 TARGET_DEFAULT_FUNC.
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10748 * target-delegates.c: Rebuild.
10749 * target.c (init_dummy_target): Don't initialize to_attach.
10750 (target_attach): Unconditionally delegate.
10751 * target.h (struct target_ops) <to_attach>: Use
10752 TARGET_DEFAULT_FUNC.
10754 2014-02-19 Tom Tromey <tromey@redhat.com>
10756 * target-delegates.c: Rebuild.
10757 * target.c (target_detach): Unconditionally delegate.
10758 (init_dummy_target): Don't initialize to_detach.
10759 * target.h (struct target_ops) <to_detach>: Use
10760 TARGET_DEFAULT_IGNORE.
10762 2014-02-19 Tom Tromey <tromey@redhat.com>
10764 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10766 (target_augmented_libraries_svr4_read): Add argument.
10767 * target.c (update_current_target): Update.
10768 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10773 * target.h (struct target_ops) <to_call_history_range>: Add
10775 * target.c (target_call_history_range): Add argument.
10776 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10778 (record_btrace_call_history_from): Update.
10780 2014-02-19 Tom Tromey <tromey@redhat.com>
10782 * target.h (struct target_ops) <to_call_history_from>: Add
10784 * target.c (target_call_history_from): Add argument.
10785 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10790 * target.h (struct target_ops) <to_call_history>: Add argument.
10791 * target.c (target_call_history): Add argument.
10792 * record-btrace.c (record_btrace_call_history): Add 'self'
10795 2014-02-19 Tom Tromey <tromey@redhat.com>
10797 * target.h (struct target_ops) <to_insn_history_range>: Add
10799 * target.c (target_insn_history_range): Add argument.
10800 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10802 (record_btrace_insn_history_from): Update.
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10806 * target.h (struct target_ops) <to_insn_history_from>: Add
10808 * target.c (target_insn_history_from): Add argument.
10809 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10814 * target.h (struct target_ops) <to_insn_history>: Add argument.
10815 * target.c (target_insn_history): Add argument.
10816 * record-btrace.c (record_btrace_insn_history): Add 'self'
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10821 * target.h (struct target_ops) <to_goto_record>: Add argument.
10822 * target.c (target_goto_record): Add argument.
10823 * record-full.c (record_full_goto): Add 'self' argument.
10824 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10829 * target.c (target_goto_record_end): Add argument.
10830 * record-full.c (record_full_goto_end): Add 'self' argument.
10831 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target.h (struct target_ops) <to_goto_record_begin>: Add
10837 * target.c (target_goto_record_begin): Add argument.
10838 * record-full.c (record_full_goto_begin): Add 'self' argument.
10839 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10844 * target.h (struct target_ops) <to_record_is_replaying>: Add
10846 * target.c (target_record_is_replaying): Add argument.
10847 * record-full.c (record_full_is_replaying): Add 'self' argument.
10848 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10850 (record_btrace_xfer_partial, record_btrace_store_registers)
10851 (record_btrace_prepare_to_store, record_btrace_resume)
10852 (record_btrace_wait, record_btrace_decr_pc_after_break)
10853 (record_btrace_find_new_threads, record_btrace_thread_alive):
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10858 * target.h (struct target_ops) <to_delete_record>: Add argument.
10859 * target.c (target_delete_record): Add argument.
10860 * record-full.c (record_full_delete): Add 'self' argument.
10862 2014-02-19 Tom Tromey <tromey@redhat.com>
10864 * target.h (struct target_ops) <to_save_record>: Add argument.
10865 * target.c (target_save_record): Add argument.
10866 * record-full.c (record_full_save): Add 'self' argument.
10867 (record_full_save): Add 'self' argument.
10869 2014-02-19 Tom Tromey <tromey@redhat.com>
10871 * target.h (struct target_ops) <to_info_record>: Add argument.
10872 * target.c (target_info_record): Add argument.
10873 * record.c (info_record_command): Add argument.
10874 * record-full.c (record_full_info): Add 'self' argument.
10875 * record-btrace.c (record_btrace_info): Add 'self' argument.
10877 2014-02-19 Tom Tromey <tromey@redhat.com>
10879 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10880 * target.c (target_stop_recording): Add argument.
10881 * record.c (record_stop): Add argument.
10882 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10885 2014-02-19 Tom Tromey <tromey@redhat.com>
10887 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10888 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10889 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10891 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10892 (_initialize_amd64_linux_nat): Use it.
10893 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10894 (_initialize_i386_linux_nat): Use it.
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10898 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10899 * target.c (target_teardown_btrace): Add argument.
10900 * remote.c (remote_teardown_btrace): Add 'self' argument.
10901 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10903 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10906 2014-02-19 Tom Tromey <tromey@redhat.com>
10908 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10909 * target.c (target_disable_btrace): Add argument.
10910 * remote.c (remote_disable_btrace): Add 'self' argument.
10911 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10913 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10916 2014-02-19 Tom Tromey <tromey@redhat.com>
10918 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10919 * target.c (target_enable_btrace): Add argument.
10920 * remote.c (remote_enable_btrace): Add 'self' argument.
10921 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10923 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10928 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10929 (target_can_use_agent): Add argument.
10930 * target.c (update_current_target): Update.
10931 * remote.c (remote_can_use_agent): Add 'self' argument.
10932 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10934 2014-02-19 Tom Tromey <tromey@redhat.com>
10936 * target.h (struct target_ops) <to_use_agent>: Add argument.
10937 (target_use_agent): Add argument.
10938 * target.c (update_current_target): Update.
10939 * remote.c (remote_use_agent): Add 'self' argument.
10940 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10944 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10945 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10946 (target_traceframe_info): Add argument.
10947 * target.c (update_current_target): Update.
10948 * remote.c (remote_traceframe_info): Add 'self' argument.
10949 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10951 2014-02-19 Tom Tromey <tromey@redhat.com>
10953 * target.h (target_static_tracepoint_markers_by_strid): Add
10955 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10957 * target.c (update_current_target): Update.
10958 * remote.c (struct target_ops)
10959 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10960 * linux-nat.c (struct target_ops)
10961 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10965 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10967 (target_static_tracepoint_marker_at): Add argument.
10968 * target.c (update_current_target): Update.
10969 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10972 2014-02-19 Tom Tromey <tromey@redhat.com>
10974 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10975 (target_set_permissions): Add argument.
10976 * target.c (update_current_target): Update.
10977 * remote.c (remote_set_permissions): Add 'self' argument.
10978 (remote_start_remote): Update.
10980 2014-02-19 Tom Tromey <tromey@redhat.com>
10982 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10983 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10984 (target_get_tib_address): Add argument.
10985 * target.c (update_current_target): Update.
10986 * remote.c (remote_get_tib_address): Add 'self' argument.
10988 2014-02-19 Tom Tromey <tromey@redhat.com>
10990 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10991 (target_set_trace_notes): Add argument.
10992 * target.c (update_current_target): Update.
10993 * remote.c (remote_set_trace_notes): Add 'self' argument.
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10997 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10999 (target_set_trace_buffer_size): Add argument.
11000 * target.c (update_current_target): Update.
11001 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11003 2014-02-19 Tom Tromey <tromey@redhat.com>
11005 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11007 (target_set_circular_trace_buffer): Add argument.
11008 * target.c (update_current_target): Update.
11009 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11014 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11016 (target_set_disconnected_tracing): Add argument.
11017 * target.c (update_current_target): Update.
11018 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11020 2014-02-19 Tom Tromey <tromey@redhat.com>
11022 * target.h (struct target_ops)
11023 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11024 (target_get_min_fast_tracepoint_insn_len): Add argument.
11025 * target.c (update_current_target): Update.
11026 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11029 2014-02-19 Tom Tromey <tromey@redhat.com>
11031 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11033 (target_get_raw_trace_data): Add argument.
11034 * target.c (update_current_target): Update.
11035 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11037 2014-02-19 Tom Tromey <tromey@redhat.com>
11039 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11041 (target_upload_trace_state_variables): Add argument.
11042 * target.c (update_current_target): Update.
11043 * remote.c (remote_upload_trace_state_variables): Add 'self'
11045 (remote_start_remote): Update.
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11049 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11051 (target_upload_tracepoints): Add argument.
11052 * target.c (update_current_target): Update.
11053 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11054 (remote_start_remote): Update.
11056 2014-02-19 Tom Tromey <tromey@redhat.com>
11058 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11059 (target_save_trace_data): Add argument.
11060 * target.c (update_current_target): Update.
11061 * remote.c (remote_save_trace_data): Add 'self' argument.
11063 2014-02-19 Tom Tromey <tromey@redhat.com>
11065 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11067 * target.h (struct target_ops)
11068 <to_get_trace_state_variable_value>: Add argument.
11069 (target_get_trace_state_variable_value): Add argument.
11070 * target.c (update_current_target): Update.
11071 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11073 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11077 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11078 * target.h (struct target_ops) <to_trace_find>: Add argument.
11079 (target_trace_find): Add argument.
11080 * target.c (update_current_target): Update.
11081 * remote.c (remote_trace_find): Add 'self' argument.
11082 * ctf.c (ctf_trace_find): Add 'self' argument.
11084 2014-02-19 Tom Tromey <tromey@redhat.com>
11086 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11087 (target_trace_stop): Add argument.
11088 * target.c (update_current_target): Update.
11089 * remote.c (remote_trace_stop): Add 'self' argument.
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11093 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11094 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11096 (target_get_tracepoint_status): Add argument.
11097 * target.c (update_current_target): Update.
11098 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11100 2014-02-19 Tom Tromey <tromey@redhat.com>
11102 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11103 * target.h (struct target_ops) <to_get_trace_status>: Add
11105 (target_get_trace_status): Add argument.
11106 * target.c (update_current_target): Update.
11107 * remote.c (remote_get_trace_status): Add 'self' argument.
11108 (remote_start_remote, remote_can_download_tracepoint): Update.
11109 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11111 2014-02-19 Tom Tromey <tromey@redhat.com>
11113 * target.h (struct target_ops) <to_trace_start>: Add argument.
11114 (target_trace_start): Add argument.
11115 * target.c (update_current_target): Update.
11116 * remote.c (remote_trace_start): Add 'self' argument.
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11120 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11122 (target_trace_set_readonly_regions): Add argument.
11123 * target.c (update_current_target): Update.
11124 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11131 (target_disable_tracepoint): Add argument.
11132 * target.c (update_current_target): Update.
11133 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11135 2014-02-19 Tom Tromey <tromey@redhat.com>
11137 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11139 (target_enable_tracepoint): Add argument.
11140 * target.c (update_current_target): Update.
11141 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11143 2014-02-19 Tom Tromey <tromey@redhat.com>
11145 * target.h (struct target_ops) <to_download_trace_state_variable>:
11147 (target_download_trace_state_variable): Add argument.
11148 * target.c (update_current_target): Update.
11149 * remote.c (remote_download_trace_state_variable): Add 'self'
11152 2014-02-19 Tom Tromey <tromey@redhat.com>
11154 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11156 (target_can_download_tracepoint): Add argument.
11157 * target.c (update_current_target): Update.
11158 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11162 * target.h (struct target_ops) <to_download_tracepoint>: Add
11164 (target_download_tracepoint): Add argument.
11165 * target.c (update_current_target): Update.
11166 * remote.c (remote_download_tracepoint): Add 'self' argument.
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11170 * target.h (struct target_ops) <to_trace_init>: Add argument.
11171 (target_trace_init): Add argument.
11172 * target.c (update_current_target): Update.
11173 * remote.c (remote_trace_init): Add 'self' argument.
11175 2014-02-19 Tom Tromey <tromey@redhat.com>
11177 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11178 * target.c (target_fileio_readlink): Add argument.
11179 * remote.c (remote_hostio_readlink): Add 'self' argument.
11180 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11184 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11185 * target.c (target_fileio_unlink): Add argument.
11186 * remote.c (remote_hostio_unlink): Add 'self' argument.
11187 (remote_file_delete): Update.
11188 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11190 2014-02-19 Tom Tromey <tromey@redhat.com>
11192 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11193 * target.c (target_fileio_close): Add argument.
11194 * remote.c (remote_hostio_close): Add 'self' argument.
11195 (remote_hostio_close_cleanup): Update.
11196 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11198 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11200 2014-02-19 Tom Tromey <tromey@redhat.com>
11202 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11203 * target.c (target_fileio_pread): Add argument.
11204 * remote.c (remote_hostio_pread): Add 'self' argument.
11205 (remote_bfd_iovec_pread, remote_file_get): Update.
11206 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11210 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11211 * target.c (target_fileio_pwrite): Add argument.
11212 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11213 (remote_file_put): Update.
11214 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11216 2014-02-19 Tom Tromey <tromey@redhat.com>
11218 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11219 * target.c (target_fileio_open): Add argument.
11220 * remote.c (remote_hostio_open): Add 'self' argument.
11221 (remote_bfd_iovec_open): Add 'self' argument.
11222 (remote_file_put): Add 'self' argument.
11223 (remote_file_get): Add 'self' argument.
11224 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11226 2014-02-19 Tom Tromey <tromey@redhat.com>
11228 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11230 (target_can_run_breakpoint_commands): Add argument.
11231 * target.c (update_current_target): Update.
11232 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11234 (remote_insert_breakpoint): Add 'self' argument.
11235 (remote_insert_hw_breakpoint): Add 'self' argument.
11236 (remote_can_run_breakpoint_commands): Add 'self' argument.
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target.h (struct target_ops)
11241 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11242 (target_supports_evaluation_of_breakpoint_conditions): Add
11244 * target.c (update_current_target): Update.
11245 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11247 (remote_insert_breakpoint): Add 'self' argument.
11248 (remote_insert_hw_breakpoint): Add 'self' argument.
11249 (remote_supports_cond_breakpoints): Add 'self' argument.
11251 2014-02-19 Tom Tromey <tromey@redhat.com>
11253 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11255 (target_supports_string_tracing): Add argument.
11256 * target.c (update_current_target): Update.
11257 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11259 2014-02-19 Tom Tromey <tromey@redhat.com>
11261 * target.h (struct target_ops)
11262 <to_supports_disable_randomization>: Add argument.
11263 * target.c (find_default_supports_disable_randomization): Add
11265 (target_supports_disable_randomization): Add argument.
11266 (find_default_supports_disable_randomization): Add 'self'
11268 * remote.c (extended_remote_supports_disable_randomization): Add
11270 (remote_supports_disable_randomization): Add 'self' argument.
11271 (extended_remote_create_inferior): Update.
11272 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11277 * target.h (struct target_ops)
11278 <to_supports_enable_disable_tracepoint>: Add argument.
11279 (target_supports_enable_disable_tracepoint): Add argument.
11280 * target.c (update_current_target): Update.
11281 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11284 2014-02-19 Tom Tromey <tromey@redhat.com>
11286 * target.h (struct target_ops) <to_supports_multi_process>: Add
11288 (target_supports_multi_process): Add argument.
11289 * target.c (update_current_target): Update.
11290 * remote.c (remote_supports_multi_process): Add 'self' argument.
11291 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11293 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target.h (struct target_ops) <to_execution_direction>: Add
11300 (target_execution_direction): Add argument.
11301 * target.c (default_execution_direction): Add 'self' argument.
11302 * record-full.c (record_full_execution_direction): Add 'self'
11305 2014-02-19 Tom Tromey <tromey@redhat.com>
11307 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11309 (target_can_execute_reverse): Add argument.
11310 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11311 * record-full.c (record_full_can_execute_reverse): Add 'self'
11313 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11316 2014-02-19 Tom Tromey <tromey@redhat.com>
11318 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11319 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11321 (target_get_ada_task_ptid): Add argument.
11322 * target.c (update_current_target): Update.
11323 (default_get_ada_task_ptid): Add 'self' argument.
11324 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11325 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11326 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11328 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11330 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11332 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11334 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11335 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11340 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11341 (target_goto_bookmark): Add argument.
11342 * target.c (dummy_goto_bookmark): Add 'self' argument.
11343 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11347 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11348 (target_get_bookmark): Add argument.
11349 * target.c (dummy_get_bookmark): Add 'self' argument.
11350 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11354 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11356 (target_make_corefile_notes): Add argument.
11357 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11358 * procfs.c (procfs_make_note_section): Add 'self' argument.
11359 (procfs_make_note_section): Add 'self' argument.
11360 (procfs_make_note_section): Add 'self' argument.
11361 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11363 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11364 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11365 * exec.c (exec_make_note_section): Add 'self' argument.
11366 (exec_make_note_section): Add 'self' argument.
11368 2014-02-19 Tom Tromey <tromey@redhat.com>
11370 * target.h (struct target_ops) <to_find_memory_regions>: Add
11372 (target_find_memory_regions): Add argument.
11373 * target.c (dummy_find_memory_regions): Add 'self' argument.
11374 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11375 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11376 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11377 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11378 * exec. (exec_do_find_memory_regions): New global.
11379 (exec_set_find_memory_regions): Rewrite.
11380 (exec_find_memory_regions): New function.
11381 (init_exec_ops): Use exec_find_memory_regions.
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11385 * target.h (struct target_ops) <to_supports_non_stop>: Add
11387 * target.c (find_default_supports_non_stop): Add argument.
11388 (target_supports_non_stop): Add argument.
11389 (find_default_supports_non_stop): Add 'self' argument.
11390 * remote.c (remote_supports_non_stop): Add 'self' argument.
11391 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11395 * target.h (struct target_ops) <to_log_command>: Add argument.
11396 (target_log_command): Add argument.
11397 * serial.h (serial_log_command): Add 'self' argument.
11398 * serial.c (serial_log_command): Add 'self' argument.
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11402 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11403 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11405 (target_pid_to_exec_file): Add argument.
11406 * target.c (debug_to_pid_to_exec_file): Add argument.
11407 (update_current_target): Update.
11408 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11409 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11410 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11411 (linux_handle_extended_wait): Update.
11412 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11413 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11414 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11415 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11417 2014-02-19 Tom Tromey <tromey@redhat.com>
11419 * target.h (struct target_ops) <to_rcmd>: Add argument.
11420 (target_rcmd): Add argument.
11421 * target.c (debug_to_rcmd): Add argument.
11422 (update_current_target, do_monitor_command): Update.
11423 * remote.c (remote_rcmd): Add 'self' argument.
11424 * monitor.c (monitor_rcmd): Add 'self' argument.
11426 2014-02-19 Tom Tromey <tromey@redhat.com>
11428 * windows-nat.c (windows_stop): Add 'self' argument.
11429 * target.h (struct target_ops) <to_stop>: Add argument.
11430 * target.c (target_stop): Add argument.
11431 (debug_to_stop): Add argument.
11432 (update_current_target): Update.
11433 * remote.c (remote_stop): Add 'self' argument.
11434 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11435 (gdbsim_cntrl_c): Update.
11436 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11437 * procfs.c (procfs_stop): Add 'self' argument.
11438 * nto-procfs.c (procfs_stop): Add 'self' argument.
11439 * monitor.c (monitor_stop): Add 'self' argument.
11440 (monitor_open): Update.
11441 * linux-nat.c (linux_nat_stop): Add argument.
11442 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11443 * gnu-nat.c (gnu_stop): Add 'self' argument.
11444 * darwin-nat.c (darwin_stop): Add 'self' argument.
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11448 * target.h (struct target_ops) <to_thread_name>: Add argument.
11449 * target.c (target_thread_name): Add argument.
11450 (update_current_target): Update.
11451 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11455 * target.h (struct target_ops) <to_extra_thread_info>: Add
11457 (target_extra_thread_info): Add argument.
11458 * target.c (update_current_target): Update.
11459 * remote.c (remote_threads_extra_info): Add 'self' argument.
11460 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11462 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11463 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11464 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11466 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11468 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11470 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11473 2014-02-19 Tom Tromey <tromey@redhat.com>
11475 * target.h (struct target_ops) <to_program_signals>: Add argument.
11476 * target.c (target_program_signals): Add argument.
11477 * remote.c (remote_program_signals): Add 'self' argument.
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11482 * target.c (target_pass_signals): Add argument.
11483 * remote.c (remote_pass_signals): Add 'self' argument.
11484 (remote_start_remote): Update.
11485 * procfs.c (procfs_pass_signals): Add 'self' argument.
11486 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11487 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11488 (linux_nat_create_inferior, linux_nat_attach): Update.
11490 2014-02-19 Tom Tromey <tromey@redhat.com>
11492 * windows-nat.c (windows_can_run): Add 'self' argument.
11493 * target.h (struct target_ops) <to_can_run>: Add argument.
11494 (target_can_run): Add argument.
11495 * target.c (debug_to_can_run): Add argument.
11496 (update_current_target): Update.
11497 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11498 * inf-child.c (inf_child_can_run): Add 'self' argument.
11499 * go32-nat.c (go32_can_run): Add 'self' argument.
11501 2014-02-19 Tom Tromey <tromey@redhat.com>
11503 * target.h (struct target_ops) <to_has_exited>: Add argument.
11504 (target_has_exited): Add argument.
11505 * target.c (debug_to_has_exited): Add argument.
11506 (update_current_target): Update.
11508 2014-02-19 Tom Tromey <tromey@redhat.com>
11510 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11512 (target_set_syscall_catchpoint): Add argument.
11513 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11515 * target.c (update_current_target): Update.
11517 2014-02-19 Tom Tromey <tromey@redhat.com>
11519 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11521 (target_remove_exec_catchpoint): Add argument.
11522 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11523 (update_current_target): Update.
11524 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11529 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11531 (target_insert_exec_catchpoint): Add argument.
11532 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11533 (update_current_target): Update.
11534 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11537 2014-02-19 Tom Tromey <tromey@redhat.com>
11539 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11541 (target_remove_vfork_catchpoint): Add argument.
11542 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11543 (update_current_target): Update.
11544 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11549 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11551 (target_insert_vfork_catchpoint): Add argument.
11552 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11553 (update_current_target): Update.
11554 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11559 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11561 (target_remove_fork_catchpoint): Add argument.
11562 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11563 (update_current_target): Update.
11564 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11567 2014-02-19 Tom Tromey <tromey@redhat.com>
11569 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11571 (target_insert_fork_catchpoint): Add argument.
11572 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11573 (update_current_target): Update.
11574 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11581 (target_post_startup_inferior): Add argument.
11582 * target.c (debug_to_post_startup_inferior): Add argument.
11583 (update_current_target): Update.
11584 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11586 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11588 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11590 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11592 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11594 (super_post_startup_inferior): Likewise.
11595 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11597 (super_post_startup_inferior): Likewise.
11598 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11599 Add 'self' argument.
11600 (super_post_startup_inferior): Likewise.
11602 2014-02-19 Tom Tromey <tromey@redhat.com>
11604 * target.h (struct target_ops) <to_load>: Add argument.
11605 * target.c (target_load): Add argument.
11606 (debug_to_load): Add argument.
11607 (update_current_target): Update.
11608 * remote.c (remote_load): Add 'self' argument.
11609 * remote-sim.c (gdbsim_load): Add 'self' argument.
11610 * remote-mips.c (mips_load): Add 'self' argument.
11611 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11612 * monitor.c (monitor_load): Add 'self' argument.
11613 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11615 2014-02-19 Tom Tromey <tromey@redhat.com>
11617 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11618 (target_terminal_info): Add argument.
11619 * target.c (debug_to_terminal_info): Add argument.
11620 (default_terminal_info): Likewise.
11621 * inflow.c (child_terminal_info): Add 'self' argument.
11622 * inferior.h (child_terminal_info): Add 'self' argument.
11623 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11625 2014-02-19 Tom Tromey <tromey@redhat.com>
11627 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11629 (target_terminal_save_ours): Add argument.
11630 * target.c (debug_to_terminal_save_ours): Add argument.
11631 (update_current_target): Update.
11632 * inflow.c (terminal_save_ours): Add 'self' argument.
11633 * inferior.h (terminal_save_ours): Add 'self' argument.
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11637 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11638 (target_terminal_ours): Add argument.
11639 * target.c (debug_to_terminal_ours): Add argument.
11640 (update_current_target): Update.
11641 * remote.c (remote_terminal_ours): Add 'self' argument.
11642 (remote_close): Update.
11643 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11644 * inflow.c (terminal_ours): Add 'self' argument.
11645 * inferior.h (terminal_ours): Add 'self' argument.
11646 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11648 2014-02-19 Pedro Alves <palves@redhat.com>
11649 Tom Tromey <tromey@redhat.com>
11651 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11653 (target_terminal_ours_for_output): Add argument.
11654 * target.c (debug_to_terminal_ours_for_output): Add argument.
11655 (update_current_target): Update.
11656 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11657 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11658 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11660 2014-02-19 Tom Tromey <tromey@redhat.com>
11662 * target.h (struct target_ops) <to_terminal_inferior>: Add
11664 * target.c (target_terminal_inferior): Add argument.
11665 (update_current_target): Update.
11666 * remote.c (remote_terminal_inferior): Add 'self' argument.
11667 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11668 * inflow.c (terminal_inferior): Add 'self' argument.
11669 * inferior.h (terminal_inferior): Add 'self' argument.
11670 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11671 (go32_terminal_inferior): Add 'self' argument.
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11675 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11676 (target_terminal_init): Add argument.
11677 * target.c (debug_to_terminal_init): Add argument.
11678 (update_current_target): Update.
11679 * inflow.c (terminal_init_inferior): Add 'self' argument.
11680 * inferior.h (terminal_init_inferior): Add 'self' argument.
11681 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11682 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11686 * target.h (struct target_ops)
11687 <to_can_accel_watchpoint_condition>: Add argument.
11688 (target_can_accel_watchpoint_condition): Add argument.
11689 * target.c (debug_to_can_accel_watchpoint_condition): Add
11691 (update_current_target): Update.
11692 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11695 2014-02-19 Tom Tromey <tromey@redhat.com>
11697 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11699 (target_region_ok_for_hw_watchpoint): Add argument.
11700 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11701 (default_region_ok_for_hw_watchpoint): Add argument.
11702 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11703 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11705 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11707 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11709 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11711 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11713 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11715 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11716 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11718 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11719 Add 'self' argument.
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11725 (target_insert_watchpoint): Add argument.
11726 * target.c (debug_to_insert_watchpoint): Add argument.
11727 (update_current_target): Update.
11728 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11729 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11730 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11731 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11732 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11733 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11735 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11736 (procfs_insert_hw_watchpoint): Add 'self' argument.
11737 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11739 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11741 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11743 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11744 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11746 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11751 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11753 (target_remove_watchpoint): Add argument.
11754 * target.c (debug_to_remove_watchpoint): Add argument.
11755 (update_current_target): Update.
11756 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11757 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11758 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11759 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11760 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11761 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11763 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11764 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11766 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11768 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11770 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11771 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11773 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11776 2014-02-19 Tom Tromey <tromey@redhat.com>
11778 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11780 (target_remove_hw_breakpoint): Add argument.
11781 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11782 (update_current_target): Update.
11783 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11784 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11786 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11787 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11789 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11792 2014-02-19 Tom Tromey <tromey@redhat.com>
11794 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11796 (target_insert_hw_breakpoint): Add argument.
11797 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11798 (update_current_target): Update.
11799 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11800 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11802 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11803 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11804 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11806 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11811 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11813 (target_can_use_hardware_watchpoint): Add argument.
11814 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11815 (update_current_target): Update.
11816 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11818 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11820 * remote.c (remote_check_watch_resources): Add 'self' argument.
11821 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11822 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11824 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11825 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11827 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11829 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11831 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11833 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11835 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11837 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11838 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11840 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11845 * target.h (struct target_ops) <to_post_attach>: Add argument.
11846 (target_post_attach): Add argument.
11847 * target.c (debug_to_post_attach): Add argument.
11848 (update_current_target): Update.
11849 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11850 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11851 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11852 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11853 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11855 2014-02-19 Tom Tromey <tromey@redhat.com>
11857 * windows-nat.c (windows_close): Add 'self' argument.
11858 * tracepoint.c (tfile_close): Add 'self' argument.
11859 * target.h (struct target_ops) <to_close>: Add argument.
11860 * target.c (target_close): Add argument.
11861 (update_current_target): Update.
11862 * remote.c (remote_close): Add 'self' argument.
11863 * remote-sim.c (gdbsim_close): Add 'self' argument.
11864 * remote-mips.c (mips_close): Add 'self' argument.
11865 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11866 * record-full.c (record_full_close): Add 'self' argument.
11867 * record-btrace.c (record_btrace_close): Add 'self' argument.
11868 * monitor.h (monitor_close): Add 'self' argument.
11869 * monitor.c (monitor_close): Add 'self' argument.
11870 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11871 * linux-nat.c (linux_nat_close): Add argument.
11872 * go32-nat.c (go32_close): Add 'self' argument.
11873 * exec.c (exec_close_1): Add 'self' argument.
11874 * ctf.c (ctf_close): Add 'self' argument.
11875 * corelow.c (core_close): Add 'self' argument.
11876 (core_close_cleanup): Update.
11877 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11878 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11880 2014-02-19 Tom Tromey <tromey@redhat.com>
11882 * remote.c (remote_load): New function.
11883 (init_remote_ops): Use it.
11885 2014-02-19 Tom Tromey <tromey@redhat.com>
11887 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11889 * common/linux-btrace.h (linux_supports_btrace): Update.
11890 * remote.c (remote_supports_btrace): Add "self" argument.
11891 * target-delegates.c: Rebuild.
11892 * target.c (target_supports_btrace): Remove.
11893 * target.h (struct target_ops) <to_supports_btrace>: Add
11894 target_ops argument.
11895 (target_supports_btrace): New define.
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11899 * record-full.c (record_full_beneath_to_resume_ops)
11900 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11901 (record_full_beneath_to_wait)
11902 (record_full_beneath_to_store_registers_ops)
11903 (record_full_beneath_to_store_registers)
11904 (record_full_beneath_to_xfer_partial_ops)
11905 (record_full_beneath_to_xfer_partial)
11906 (record_full_beneath_to_insert_breakpoint_ops)
11907 (record_full_beneath_to_insert_breakpoint)
11908 (record_full_beneath_to_remove_breakpoint_ops)
11909 (record_full_beneath_to_remove_breakpoint)
11910 (record_full_beneath_to_stopped_by_watchpoint)
11911 (record_full_beneath_to_stopped_data_address)
11912 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11913 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11914 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11915 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11916 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11917 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11918 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11919 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11920 (record_full_resume, record_full_wait_1)
11921 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11922 (record_full_store_registers, record_full_xfer_partial)
11923 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11924 (record_full_async, record_full_core_xfer_partial): Use target
11926 * target-delegates.c: Rebuild.
11927 * target.c (current_xfer_partial): Remove.
11928 (update_current_target): Do not INHERIT or de_fault
11929 to_insert_breakpoint, to_remove_breakpoint,
11930 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11931 to_is_async_p, to_async. Do not set to_xfer_partial field.
11932 (default_xfer_partial): Simplify.
11933 (current_xfer_partial): Remove.
11934 (target_wait, target_resume): Simplify.
11935 (find_default_can_async_p, find_default_is_async_p): Update.
11936 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11937 to_xfer_partial, to_stopped_by_watchpoint,
11938 to_stopped_data_address.
11939 (target_store_registers): Simplify.
11940 (forward_target_remove_breakpoint)
11941 (forward_target_insert_breakpoint): Remove.
11942 (target_remove_breakpoint, target_insert_breakpoint)
11943 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11944 * target.h (struct target_ops) <to_resume, to_wait,
11945 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11946 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11947 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11949 (forward_target_remove_breakpoint)
11950 (forward_target_insert_breakpoint): Remove.
11951 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11953 (record_btrace_insert_breakpoint): Delegate directly.
11955 2014-02-19 Tom Tromey <tromey@redhat.com>
11958 * target-delegates.c: New file.
11959 * target.c: Include target-delegates.c.
11960 (init_dummy_target): Call install_dummy_methods.
11961 (complete_target_initialization): Call install_delegators.
11962 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11963 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11964 * make-target-delegates: New file.
11966 2014-02-19 Tom Tromey <tromey@redhat.com>
11968 * record.c (find_record_target): Use find_target_at.
11969 * target.c (find_target_at): New function.
11970 * target.h (find_target_at): Declare.
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11974 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11975 Add 'ops' argument.
11976 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11978 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11979 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11981 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11983 * linux-nat.c (save_sigtrap): Update.
11984 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11985 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11986 (linux_nat_close): Update.
11987 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11989 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11991 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11992 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11993 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11994 (tmp_to_async): Add 'ops' argument.
11995 (record_full_stopped_by_watchpoint, record_full_async)
11996 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11998 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11999 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12000 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12001 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12002 (remote_is_async_p, remote_async): Add 'ops' argument.
12003 (remote_stopped_data_address): Update.
12004 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12005 * target.c (update_current_target)
12006 (find_default_can_async_p, find_default_is_async_p): Update.
12007 (init_dummy_target): Update.
12008 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12009 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12010 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12011 (target_can_async_p, target_is_async_p, target_async)
12012 (target_stopped_by_watchpoint): Update.
12014 2014-02-19 Yao Qi <yao@codesourcery.com>
12017 * gdbarch.sh: Remove startup_gdbarch.
12018 * gdbarch.c: Regenerated.
12019 * gdbarch.h: Likewise.
12021 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12023 * rl78-tdep.c (rl78_g10_register_name): New function.
12024 (rl78_return_value): Add g10 support.
12025 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12028 2014-02-17 Doug Evans <xdje42@gmail.com>
12030 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12031 (SUBDIR_GUILE_SRCS): Ditto.
12032 (scm-gsmob.o): Ditto.
12034 2014-02-17 Yao Qi <yao@codesourcery.com>
12036 * gnu-nat.c (ILL_RPC): Declare defined function.
12038 2014-02-17 Yao Qi <yao@codesourcery.com>
12040 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12041 mach_msg_type_number_t.
12042 (gnu_write_inferior): Likewise.
12044 2014-02-17 Yao Qi <yao@codesourcery.com>
12046 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12048 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12049 (inf_validate_procs, inf_signal): Likewise.
12050 (S_exception_raise_request): Likewise.
12051 (do_mach_notify_dead_name): Likewise.
12052 (steal_exc_port): Likewise.
12053 (gnu_read_inferior): Change 'copy_count''s type to
12054 mach_msg_type_number_t.
12055 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12058 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12060 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12061 flag. Adjust all users; in particular...
12062 (gnu_wait): ..., don't decrement its value in here...
12063 (gnu_create_inferior): ..., and instead set the flag in here,
12064 around the startup_inferior call, and call that one with
12065 START_INFERIOR_TRAPS_EXPECTED.
12067 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12068 (ILL_RPC): ... new macro.
12069 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12070 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12071 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12072 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12073 functions with ILL_RPC macro.
12074 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12075 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12076 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12077 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12078 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12079 (S_proc_getlogin_reply, S_proc_getsid_reply)
12080 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12081 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12082 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12083 (S_proc_getnports_reply, S_proc_is_important_reply)
12084 (S_proc_get_code_reply): New stub functions, generated with
12087 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12088 collected the type check structures.
12090 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12092 2014-02-14 Doug Evans <dje@google.com>
12094 * target.c (target_write_partial): Fix result type.
12096 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12098 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12099 the proper offsets to access fpregset_t.
12101 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12103 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12104 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12105 * h8300-tdep.c (setmachinelist): Remove global.
12106 * hppa-tdep.c (hppa_sigtramp): Remove global.
12107 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12108 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12109 * ravenscar-thread.c (update_target_observer): Remove global.
12110 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12112 2014-02-12 Tom Tromey <tromey@redhat.com>
12114 * common/rsp-low.c: Update comments.
12115 * common/rsp-low.h: Update comments.
12117 2014-02-12 Tom Tromey <tromey@redhat.com>
12119 * common/rsp-low.c (convert_ascii_to_int): Remove.
12120 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12122 2014-02-12 Tom Tromey <tromey@redhat.com>
12124 * common/rsp-low.h (unhexify): Don't declare.
12125 * common/rsp-low.c (unhexify): Remove.
12127 2014-02-12 Tom Tromey <tromey@redhat.com>
12129 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12130 * common/rsp-low.c (convert_int_to_ascii): Remove.
12132 2014-02-12 Tom Tromey <tromey@redhat.com>
12134 * common/rsp-low.h (hexify): Don't declare.
12135 * common/rsp-low.c (hexify): Remove.
12137 2014-02-12 Tom Tromey <tromey@redhat.com>
12139 * common/rsp-low.c (hexify): Never take strlen of argument.
12141 2014-02-12 Tom Tromey <tromey@redhat.com>
12143 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12144 * remote.c (extended_remote_run, remote_rcmd)
12145 (remote_download_trace_state_variable, remote_save_trace_data)
12146 (remote_set_trace_notes): Update.
12147 * tracepoint.c (encode_source_string, tfile_write_status)
12148 (tfile_write_uploaded_tsv): Update.
12150 2014-02-12 Tom Tromey <tromey@redhat.com>
12152 * tracepoint.c: Include rsp-low.h.
12153 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12154 * remote.c: Include rsp-low.h.
12155 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12156 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12157 (remote_unescape_input): Move to common/rsp-low.c.
12158 * common/rsp-low.h: New file.
12159 * common/rsp-low.c: New file.
12160 * Makefile.in (SFILES): Add common/rsp-low.c.
12161 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12162 (COMMON_OBS): Add rsp-low.o.
12163 (rsp-low.o): New target.
12165 2014-02-12 Tom Tromey <tromey@redhat.com>
12167 * utils.h: Include print-utils.h.
12168 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12169 (int_string, core_addr_to_string, core_addr_to_string_nz)
12170 (hex_string, hex_string_custom): Don't declare.
12171 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12172 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12173 (hex_string_custom, int_string, core_addr_to_string)
12174 (core_addr_to_string_nz, host_address_to_string): Move to
12175 common/print-utils.c.
12176 * common/print-utils.h: New file.
12177 * common/print-utils.c: New file
12178 * Makefile.in (SFILES): Add common/print-utils.c.
12179 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12180 (COMMON_OBS): Add print-utils.o.
12181 (print-utils.o): New target.
12183 2014-02-12 Tom Tromey <tromey@redhat.com>
12185 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12187 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12189 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12191 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12193 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12194 if a PT_IO ptrace request returns sucessfully but indicates that 0
12195 bytes were transferred.
12197 2014-02-12 Pedro Alves <palves@redhat.com>
12198 Kevin Buettner <kevinb@redhat.com>
12200 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12201 TYPE_INSTANCE_FLAG_CODE_SPACE.
12203 2014-02-12 Pedro Alves <palves@redhat.com>
12205 * h8300-tdep.c (pseudo_from_raw_register)
12206 (raw_from_pseudo_register): New functions.
12207 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12210 2014-02-12 Pedro Alves <palves@redhat.com>
12212 * h8300-tdep.c (h8300_register_sim_regno): New function.
12213 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12214 gdbarch_register_sim_regno hook.
12216 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12218 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12220 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12222 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12224 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12226 * obsd-tdep.h (obsd_init_abi): New prototype.
12227 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12228 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12229 (obsd_init_abi): New functions.
12230 * i386obsd-tdep.c: Include "obsd-tdep.h".
12231 (i386obsd_init_abi): Call obsd_init_abi.
12232 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12233 (amd64obsd_init_abi): Call obsd_init_abi.
12234 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12235 obsd-tdep.c to gdb_target_obs.
12237 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12239 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12240 double float arguments to 16-byte in the argument slots.
12242 2014-02-11 Doug Evans <xdje42@gmail.com>
12244 * configure.ac: Don't crash if pkg-config is not found and guile
12245 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12247 * configure: Regenerate.
12249 2014-02-11 Yao Qi <yao@codesourcery.com>
12251 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12252 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12253 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12254 * gnu-nat.c (gnu_xfer_memory): Likewise.
12255 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12256 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12257 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12258 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12260 2014-02-11 Yao Qi <yao@codesourcery.com>
12262 * target.h (enum target_xfer_error): Rename to ...
12263 (enum target_xfer_status): ... it. New. All users updated.
12264 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12266 (TARGET_XFER_STATUS_ERROR_P): New macro.
12267 (target_xfer_error_to_string): Remove declaration.
12268 (target_xfer_status_to_string): Declare.
12269 (target_xfer_partial_ftype): Adjust it.
12270 (struct target_ops) <to_xfer_partial>: Return
12271 target_xfer_status. Add argument xfered_len. Update
12273 * target.c (target_xfer_error_to_string): Rename to ...
12274 (target_xfer_status_to_string): ... it. New. All callers
12276 (target_read_live_memory): Likewise. Call target_xfer_partial
12277 instead of target_read.
12278 (memory_xfer_live_readonly_partial): Return
12279 target_xfer_status. Add argument xfered_len.
12280 (raw_memory_xfer_partial): Likewise.
12281 (memory_xfer_partial_1): Likewise.
12282 (memory_xfer_partial): Likewise.
12283 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12284 properly. Update debug message.
12285 (default_xfer_partial, current_xfer_partial): Likewise.
12286 (target_write_partial): Likewise.
12287 (target_read_partial): Likewise. All callers updated.
12288 (read_whatever_is_readable): Likewise.
12289 (target_write_with_progress): Likewise.
12290 (target_read_alloc_1): Likewise.
12292 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12293 * auxv.c (procfs_xfer_auxv): Likewise.
12294 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12295 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12296 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12297 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12298 * corefile.c (read_memory): Adjust.
12299 * corelow.c (core_xfer_partial): Likewise.
12300 * ctf.c (ctf_xfer_partial): Likewise.
12301 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12303 (darwin_xfer_partial): Likewise.
12304 * exec.c (section_table_xfer_memory_partial): Likewise. All
12306 (exec_xfer_partial): Likewise.
12307 * exec.h (section_table_xfer_memory_partial): Update
12309 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12311 (gnu_xfer_partial): Likewise.
12312 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12313 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12314 (ia64_hpux_xfer_solib_got): Likewise.
12315 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12316 type of 'partial_len' to ULONGEST.
12317 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12318 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12319 (linux_nat_xfer_partial): Likewise.
12320 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12321 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12322 * monitor.c (monitor_xfer_memory): Likewise.
12323 (monitor_xfer_partial): Likewise.
12324 * procfs.c (procfs_xfer_partial): Likewise.
12325 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12326 * record-full.c (record_full_xfer_partial): Likewise.
12327 (record_full_core_xfer_partial): Likewise.
12328 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12329 (gdbsim_xfer_partial): Likewise.
12330 * remote.c (remote_write_bytes_aux): Likewise. All callers
12332 (remote_write_bytes, remote_read_bytes): Likewise. All
12334 (remote_flash_erase): Likewise. All callers updated.
12335 (remote_write_qxfer): Likewise. All callers updated.
12336 (remote_read_qxfer): Likewise. All callers updated.
12337 (remote_xfer_partial): Likewise.
12338 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12339 (rs6000_xfer_shared_libraries): Likewise.
12340 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12341 (sol_thread_xfer_partial): Likewise.
12342 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12343 (sparc_xfer_partial): Likewise.
12344 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12346 (spu_xfer_partial): Likewise.
12347 * spu-multiarch.c (spu_xfer_partial): Likewise.
12348 * tracepoint.c (tfile_xfer_partial): Likewise.
12349 * windows-nat.c (windows_xfer_memory): Likewise.
12350 (windows_xfer_shared_libraries): Likewise.
12351 (windows_xfer_partial): Likewise.
12352 * valprint.c: Replace 'target_xfer_error' with
12353 'target_xfer_status' in comments.
12355 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12357 Checked in by Joel Brobecker <brobecker@adacore.com>.
12358 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12360 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12362 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12363 function parameters.
12365 2014-02-10 Will Newton <will.newton@linaro.org>
12367 * elfread.c (elf_rel_plt_read): Look for a .got section if
12368 looking up .got.plt fails.
12369 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12370 on address passed to elf_gnu_ifunc_record_cache.
12371 (elf_gnu_ifunc_resolve_addr): Likewise.
12372 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12374 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12376 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12377 (X_RETTURN): New macro.
12378 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12380 * sparc64-tdep.c (sparc64_init_abi): Hook
12381 sparc_in_function_epilogue_p.
12383 2014-02-10 Gary Benson <gbenson@redhat.com>
12385 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12386 Rename name_matcher to symbol_matcher.
12388 2014-02-10 Gary Benson <gbenson@redhat.com>
12390 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12391 Use expand_symtabs_file_matcher_ftype and
12392 expand_symtabs_symbol_matcher_ftype.
12394 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12396 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12397 (struct ada_symbol_cache): New.
12398 (ada_free_symbol_cache): Forward declare.
12399 (struct ada_pspace_data): New.
12400 (ada_pspace_data_handle): New static global.
12401 (get_ada_pspace_data, ada_pspace_data_cleanup)
12402 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12403 (cache_space, cache): Delete, now folded inside struct
12405 (ada_get_symbol_cache): New function.
12406 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12408 (_initialize_ada_language): Remove initialization of cache_space.
12409 Move call to observer_attach_inferior_exit up, grouping it
12410 with the other observer registrations inside this function.
12411 Rename command to be more general. Add call to
12412 register_program_space_data_with_cleanup.
12414 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12416 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12417 ada_new_objfile_observer.
12418 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12419 (_initialize_tasks): Update uses of ada_new_objfile_observer
12420 and ada_tasks_normal_stop_observer.
12422 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12424 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12425 returned by the 'Length attribute to integer.
12427 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12429 * ada-lang.c (_initialize_ada_language): Initialize
12430 cache_space obstack.
12432 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12434 * ada-lang.c (HASH_SIZE): New macro.
12435 (struct cache_entry): New type.
12436 (cache_space, cache): New static globals.
12437 (ada_clear_symbol_cache, find_entry): New functions.
12438 (lookup_cached_symbol, cache_symbol): Implement.
12439 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12440 (_initialize_ada_language): Attach ada_new_objfile_observer
12441 and ada_free_objfile_observer.
12443 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12445 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12446 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12447 struct block * parameter.
12448 (ada_lookup_symbol_list_worker): Constify local variable "block".
12449 Remove cast which is no longer necessary.
12451 2014-02-10 Doug Evans <xdje42@gmail.com>
12453 Add Guile as an extension language.
12454 * NEWS: Mention Guile scripting.
12455 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12456 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12457 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12458 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12459 (CLIBS): Add GUILE_LIBS.
12460 (install-guile): New rule.
12461 (guile.o): New rule.
12462 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12463 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12464 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12465 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12466 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12467 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12468 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12469 * configure.ac: New option --with-guile.
12470 * configure: Regenerate.
12471 * config.in: Regenerate.
12472 * auto-load.c: Remove #include "python/python.h". Add #include
12473 "gdb/section-scripts.h".
12474 (source_section_scripts): Handle Guile scripts.
12475 (_initialize_auto_load): Add name of Guile objfile script to
12476 scripts-directory help text.
12477 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12478 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12479 (struct breakpoint): New member scm_bp_object.
12480 * defs.h (enum command_control_type): New value guile_control.
12481 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12483 (show_user): Update comment.
12484 (_initialize_cli_cmds): Update help text for "show user". Update help
12485 text for max-user-call-depth.
12486 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12488 (multi_line_command_p): Add guile_control.
12489 (print_command_lines): Handle guile_control.
12490 (execute_control_command, recurse_read_control_structure): Ditto.
12491 (process_next_line): Recognize "guile" commands.
12492 * disasm.c (gdb_disassemble_info): Make non-static.
12493 * disasm.h: #include "dis-asm.h".
12494 (struct gdbarch): Add forward decl.
12495 (gdb_disassemble_info): Declare.
12496 * extension.c: #include "guile/guile.h".
12497 (extension_languages): Add guile.
12498 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12499 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12500 * gdbtypes.c (get_unsigned_type_max): New function.
12501 (get_signed_type_minmax): New function.
12502 * gdbtypes.h (get_unsigned_type_max): Declare.
12503 (get_signed_type_minmax): Declare.
12504 * guile/README: New file.
12505 * guile/guile-internal.h: New file.
12506 * guile/guile.c: New file.
12507 * guile/guile.h: New file.
12508 * guile/scm-arch.c: New file.
12509 * guile/scm-auto-load.c: New file.
12510 * guile/scm-block.c: New file.
12511 * guile/scm-breakpoint.c: New file.
12512 * guile/scm-disasm.c: New file.
12513 * guile/scm-exception.c: New file.
12514 * guile/scm-frame.c: New file.
12515 * guile/scm-gsmob.c: New file.
12516 * guile/scm-iterator.c: New file.
12517 * guile/scm-lazy-string.c: New file.
12518 * guile/scm-math.c: New file.
12519 * guile/scm-objfile.c: New file.
12520 * guile/scm-ports.c: New file.
12521 * guile/scm-pretty-print.c: New file.
12522 * guile/scm-safe-call.c: New file.
12523 * guile/scm-string.c: New file.
12524 * guile/scm-symbol.c: New file.
12525 * guile/scm-symtab.c: New file.
12526 * guile/scm-type.c: New file.
12527 * guile/scm-utils.c: New file.
12528 * guile/scm-value.c: New file.
12529 * guile/lib/gdb.scm: New file.
12530 * guile/lib/gdb/boot.scm: New file.
12531 * guile/lib/gdb/experimental.scm: New file.
12532 * guile/lib/gdb/init.scm: New file.
12533 * guile/lib/gdb/iterator.scm: New file.
12534 * guile/lib/gdb/printing.scm: New file.
12535 * guile/lib/gdb/types.scm: New file.
12536 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12537 (VPATH): Add $(GUILE_SRCDIR).
12538 (GUILE_DIR): New variable.
12539 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12540 (all): Add stamp-guile dependency.
12541 (stamp-guile): New rule.
12542 (clean-guile, install-guile, uninstall-guile): New rules.
12543 (install-only): Add install-guile dependency.
12544 (uninstall): Add uninstall-guile dependency.
12545 (clean): Add clean-guile dependency.
12547 2014-02-09 Doug Evans <xdje42@gmail.com>
12549 Revert this patch (which I approved, mea culpa).
12551 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12553 * Makefile.in (all-lib): Remove.
12554 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12556 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12558 Fix Python stack corruption.
12559 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12562 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12564 * Makefile.in (all-lib): Remove.
12565 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12567 2014-02-07 Doug Evans <dje@google.com>
12569 * extension-priv.h (extension_language_script_ops): Add comment.
12570 (extension_language_ops): Add comment.
12571 (active_ext_lang_state): Fix typo in comment.
12573 2014-02-07 Pedro Alves <palves@redhat.com>
12575 PR breakpoints/16292
12576 * infrun.c (handle_signal_stop) <signal arrives while stepping
12577 over a breakpoint>: Switch back to the stepping thread.
12579 2014-02-07 Yao Qi <yao@codesourcery.com>
12581 * target.c (target_xfer_partial): Return zero if LEN is zero.
12583 2014-02-07 Yao Qi <yao@codesourcery.com>
12585 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12586 (ld_so_xfer_auxv): Likewise.
12587 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12588 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12589 * corelow.c (core_xfer_partial): Likewise.
12590 * ctf.c (ctf_xfer_partial): Likewise.
12591 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12592 (darwin_xfer_partial): Likewise.
12593 * exec.c (exec_xfer_partial): Likewise.
12594 * gnu-nat.c (gnu_xfer_partial): Likewise.
12595 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12596 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12597 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12598 * linux-nat.c (linux_xfer_siginfo): Likewise.
12599 (linux_proc_xfer_spu): Likewise.
12600 * procfs.c (procfs_xfer_partial): Likewise.
12601 * record-full.c (record_full_xfer_partial): Likewise.
12602 (record_full_core_xfer_partial): Likewise.
12603 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12604 * remote.c (remote_write_qxfer): Likewise.
12605 (remote_write_qxfer, remote_read_qxfer): Likewise.
12606 (remote_xfer_partial): Likewise.
12607 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12608 (rs6000_xfer_shared_libraries): Likewise.
12609 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12610 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12611 (spu_xfer_partial): Likewise.
12612 * target.c (memory_xfer_partial_1): Likewise.
12613 * tracepoint.c (tfile_xfer_partial): Likewise.
12614 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12615 (windows_xfer_partial): Likewise.
12617 2014-02-07 Yao Qi <yao@codesourcery.com>
12619 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12621 (core_xfer_shared_libraries_aix): Likewise.
12622 * gdbarch.c, gdbarch.h: Regenerated.
12623 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12624 ULONGEST. Change 'len_avail' type to ULONGEST.
12625 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12626 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12628 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12630 2014-02-07 Yao Qi <yao@codesourcery.com>
12632 * corefile.c (memory_error): Get 'exception' from ERR and pass
12633 'exception' to throw_error.
12635 2014-02-06 Doug Evans <xdje42@gmail.com>
12637 * configure.ac (libpython checking): Remove all but python.o from
12638 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12639 * configure: Regenerate.
12641 * Makefile.in (SFILES): Add extension.c.
12642 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12643 (COMMON_OBS): Add extension.o.
12644 * extension.h: New file.
12645 * extension-priv.h: New file.
12646 * extension.c: New file.
12648 * python/python-internal.h: #include "extension.h".
12649 (gdbpy_auto_load_enabled): Declare.
12650 (gdbpy_apply_val_pretty_printer): Declare.
12651 (gdbpy_apply_frame_filter): Declare.
12652 (gdbpy_preserve_values): Declare.
12653 (gdbpy_breakpoint_cond_says_stop): Declare.
12654 (gdbpy_breakpoint_has_cond): Declare.
12655 (void source_python_script_for_objfile): Delete.
12656 * python/python.c: #include "extension-priv.h".
12657 Delete inclusion of "observer.h".
12658 (extension_language_python): Moved here and renamed from
12659 script_language_python in py-auto-load.c.
12660 Redefined to be of type extension_language_defn.
12661 (python_extension_script_ops): New global.
12662 (python_extension_ops): New global.
12663 (struct python_env): New member previous_active.
12664 (restore_python_env): Call restore_active_ext_lang.
12665 (ensure_python_env): Call set_active_ext_lang.
12666 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12668 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12670 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12672 (gdbpy_eval_from_control_command): Renamed from
12673 eval_python_from_control_command, made static. New arg extlang.
12674 (gdbpy_source_script) Renamed from source_python_script, made static.
12676 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12677 result to int. New arg extlang.
12678 (gdbpy_source_objfile_script): Renamed from
12679 source_python_script_for_objfile, made static. New arg extlang.
12680 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12681 static. New args extlang, extlang_printers. Change result type to
12683 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12684 static. New arg extlang. Rename arg printers to extlang_printers
12685 and change type to ext_lang_type_printers *.
12686 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12687 static. Replace argument arg with extlang, extlang_printers.
12688 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12689 (!HAVE_PYTHON, source_python_script): Delete.
12690 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12691 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12692 (!HAVE_PYTHON, start_type_printers): Delete.
12693 (!HAVE_PYTHON, apply_type_printers): Delete.
12694 (!HAVE_PYTHON, free_type_printers): Delete.
12695 (_initialize_python): Delete call to observer_attach_before_prompt.
12696 (finalize_python): Set/restore active extension language.
12697 (gdbpy_finish_initialization) Renamed from
12698 finish_python_initialization, made static. New arg extlang.
12699 (gdbpy_initialized): New function.
12700 * python/python.h: #include "extension.h". Delete #include
12701 "value.h", "mi/mi-cmds.h".
12702 (extension_language_python): Declare.
12703 (GDBPY_AUTO_FILE_NAME): Delete.
12704 (enum py_bt_status): Moved to extension.h and renamed to
12705 ext_lang_bt_status.
12706 (enum frame_filter_flags): Moved to extension.h.
12707 (enum py_frame_args): Moved to extension.h and renamed to
12708 ext_lang_frame_args.
12709 (finish_python_initialization): Delete.
12710 (eval_python_from_control_command): Delete.
12711 (source_python_script): Delete.
12712 (apply_val_pretty_printer): Delete.
12713 (apply_frame_filter): Delete.
12714 (preserve_python_values): Delete.
12715 (gdbpy_script_language_defn): Delete.
12716 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12717 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12719 * auto-load.c: #include "extension.h".
12720 (GDB_AUTO_FILE_NAME): Delete.
12721 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12722 (script_language_gdb): Delete, moved to extension.c and renamed to
12723 extension_language_gdb.
12724 (source_gdb_script_for_objfile): Delete.
12725 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12726 (loaded_script): Change type of language member to
12727 struct extension_language_defn *.
12728 (init_loaded_scripts_info): Initialize
12729 unsupported_script_warning_printed.
12730 (maybe_add_script): Make static. Change type of language arg to
12731 struct extension_language_defn *.
12732 (clear_section_scripts): Reset unsupported_script_warning_printed.
12733 (auto_load_objfile_script_1): Rewrite to use extension language API.
12734 (auto_load_objfile_script): Make public. Remove support-compiled-in
12735 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12736 (source_section_scripts): Rewrite to use extension language API.
12737 (load_auto_scripts_for_objfile): Rewrite to use
12738 auto_load_scripts_for_objfile.
12739 (collect_matching_scripts_data): Change type of language member to
12740 struct extension_language_defn *.
12741 (auto_load_info_scripts): Change type of language arg to
12742 struct extension_language_defn *.
12743 (unsupported_script_warning_print): New function.
12744 (script_not_found_warning_print): Make static.
12745 (_initialize_auto_load): Rewrite construction of scripts-directory
12747 * auto-load.h (struct objfile): Add forward decl.
12748 (struct script_language): Delete.
12749 (struct auto_load_pspace_info): Add forward decl.
12750 (struct extension_language_defn): Add forward decl.
12751 (maybe_add_script): Delete.
12752 (auto_load_objfile_script): Declare.
12753 (script_not_found_warning_print): Delete.
12754 (auto_load_info_scripts): Update prototype.
12755 (auto_load_gdb_scripts_enabled): Declare.
12756 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12757 auto_load_python_scripts_enabled and made public.
12758 (script_language_python): Delete, moved to python.c.
12759 (gdbpy_script_language_defn): Delete.
12760 (info_auto_load_python_scripts): Update to use
12761 extension_language_python.
12763 * breakpoint.c (condition_command): Replace call to
12764 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12765 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12766 with call to breakpoint_ext_lang_cond_says_stop.
12767 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12768 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12769 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12770 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12772 (local_setattro): Print name of extension language with existing
12775 * valprint.c (val_print, value_print): Update to call
12776 apply_ext_lang_val_pretty_printer.
12777 * cp-valprint.c (cp_print_value): Update call to
12778 apply_ext_lang_val_pretty_printer.
12779 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12780 (gdbpy_apply_val_pretty_printer): Renamed from
12781 apply_val_pretty_printer. New arg extlang.
12782 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12784 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12785 extension language API.
12786 * cli/cli-script.c (execute_control_command): Update to call
12787 eval_ext_lang_from_control_command.
12789 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12790 enum ext_lang_bt_status values. Update call to
12791 apply_ext_lang_frame_filter.
12792 (mi_cmd_stack_list_locals): Ditto.
12793 (mi_cmd_stack_list_args): Ditto.
12794 (mi_cmd_stack_list_variables): Ditto.
12795 * mi/mi-main.c: Delete #include "python/python-internal.h".
12796 Add #include "extension.h".
12797 (mi_cmd_list_features): Replace reference to python internal variable
12798 gdb_python_initialized with call to ext_lang_initialized_p.
12800 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12801 Update to use enum ext_lang_frame_args. Update to call
12802 apply_ext_lang_frame_filter.
12803 * python/py-framefilter.c (extract_sym): Update to use enum
12804 ext_lang_bt_status.
12805 (extract_value, py_print_type, py_print_value): Ditto.
12806 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12807 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12808 (py_print_frame): Ditto.
12809 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12810 New arg extlang. Update to use enum ext_lang_bt_status.
12812 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12813 finish_python_initialization. Replace with call to
12814 finish_ext_lang_initialization.
12816 * typeprint.c (do_free_global_table): Update to call
12817 free_ext_lang_type_printers.
12818 (create_global_typedef_table): Update to call
12819 start_ext_lang_type_printers.
12820 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12821 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12822 (type_print_options): Change type of global_printers from "void *"
12823 to "struct ext_lang_type_printers *".
12825 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12826 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12827 (gdbpy_preserve_values): Renamed from preserve_python_values.
12829 (!HAVE_PYTHON, preserve_python_values): Delete.
12831 * utils.c (quit_flag): Delete, moved to extension.c.
12832 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12835 * eval.c: Delete #include "python/python.h".
12836 * main.c: Delete #include "python/python.h".
12838 * defs.h: Update comment.
12840 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12844 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12846 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12849 2014-02-05 Yao Qi <yao@codesourcery.com>
12851 * remote.c (remote_pass_signals): Remove local 'buf' and use
12853 (remote_program_signals): Likewise.
12855 2014-02-05 Yao Qi <yao@codesourcery.com>
12857 * ctf.c: Include "inferior.h" and "gdbthread.h".
12858 (CTF_PID): A new macro.
12859 (ctf_open): Call inferior_appeared and add_thread_silent.
12860 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12861 (ctf_thread_alive): New function.
12862 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12864 2014-02-05 Yao Qi <yao@codesourcery.com>
12868 2013-05-24 Yao Qi <yao@codesourcery.com>
12870 * tracepoint.c (TFILE_PID): Remove.
12871 (tfile_open): Don't add thread and inferior.
12872 (tfile_close): Don't set 'inferior_ptid'. Don't call
12873 exit_inferior_silent.
12874 (tfile_thread_alive): Remove.
12875 (init_tfile_ops): Don't set field 'to_thread_alive' of
12878 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12880 * remote.c (remote_start_remote): Call remote_check_symbols even
12881 if only symbol-file (not file) has been given.
12883 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12885 * gdbarch.sh (skip_entrypoint): New callback.
12886 * gdbarch.c, gdbarch.h: Regenerate.
12887 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12888 * infrun.c (fill_in_stop_func): Likewise.
12889 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12890 (ppc_elfv2_elf_make_msymbol_special): New function.
12891 (ppc_elfv2_skip_entrypoint): Likewise.
12892 (ppc_linux_init_abi): Install them for ELFv2.
12894 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12896 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12897 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12898 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12899 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12900 structures returned in GPRs.
12902 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12904 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12905 offset to the stack parameter list for the ELFv2 ABI.
12907 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12909 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12910 set_gdbarch_convert_from_func_ptr_addr and
12911 set_gdbarch_elf_make_msymbol_special for ELFv1.
12912 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12913 function descriptors on ELFv1.
12914 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12915 set up r12 at function entry.
12917 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12919 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12920 (struct gdbarch_tdep): New member elf_abi.
12922 * rs6000-tdep.c: Include "elf/ppc64.h".
12923 (rs6000_gdbarch_init): Detect ELF ABI version.
12925 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12927 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12928 within a register pair holding a DFP 128-bit value on little-endian.
12929 (ppc64_sysv_abi_return_value_base): Likewise.
12930 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12931 (dfp_pseudo_register_write): Likewise.
12933 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12935 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12936 offset on little-endian when passing _Decimal32.
12937 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12939 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12941 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12942 of the overlapped FP register within the VSX register on little-
12944 (efpr_pseudo_register_write): Likewise.
12946 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12948 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12949 offset on little-endian when passing small structures.
12951 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12953 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12954 (struct ppc64_sysv_argpos): New data structure.
12955 (ppc64_sysv_abi_push_float): Remove.
12956 (ppc64_sysv_abi_push_val): New function.
12957 (ppc64_sysv_abi_push_integer): Likewise.
12958 (ppc64_sysv_abi_push_freg): Likewise.
12959 (ppc64_sysv_abi_push_vreg): Likewise.
12960 (ppc64_sysv_abi_push_param): Likewise.
12961 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12962 (ppc64_sysv_abi_return_value_base): New function.
12963 (ppc64_sysv_abi_return_value): Refactor to use it.
12965 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12967 * NEWS: Document new target powerpc64le-*-linux*.
12969 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12971 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12972 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12974 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12975 register set used in ELF core dumps. Add floating-point register set.
12977 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12979 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12980 dwarf2_to_gdb[] table using symbolic constants. Adjust
12981 penultimate entry from number representing the PC register
12982 to symbolic constant representing the MDR register. Add
12983 constant for the PC register to the end of the table.
12985 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12987 * bsd-kvm.c: Include <sys/param.h>
12989 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12991 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12993 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12995 * ada-lang.h (clear_ada_sym_cache): Delete.
12997 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12999 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13001 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13003 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13004 the sigreturn register save area only if the syscall is
13007 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13009 * valops.c (value_slice): Minor reformatting.
13011 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13013 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13015 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13017 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13018 New static globals.
13019 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13020 (ada_ignore_descriptive_types_p): New static global.
13021 (find_parallel_type_by_descriptive_type): Return immediately
13022 if ada_ignore_descriptive_types_p is set.
13023 (_initialize_ada_language): Register new commands "maintenance
13024 set ada", "maintenance show ada", "maintenance set ada
13025 ignore-descriptive-types" and "maintenance show ada
13026 ignore-descriptive-types".
13027 * NEWS: Add entry for new "maint ada set/show
13028 ignore-descriptive-types" commands.
13030 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13032 * record-btrace.c (record_btrace_close): Call btrace_teardown
13035 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13037 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13040 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13042 * ada-typeprint (type_is_full_subrange_of_target_type):
13044 (print_range): Add parameter bounds_prefered_p. If not set,
13045 try printing range types using the name of their base type.
13046 (print_range_type): Add parameter bounds_prefered_p.
13047 Use it in call to print_range.
13048 (print_array_type, ada_print_type): Update calls to print_range
13049 and print_range_type.
13051 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13053 * ada-typeprint.c (print_array_type, print_choices, print_range)
13054 (print_range_bound, print_dynamic_range_bound, print_range_type):
13055 Remove declaration.
13057 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13059 * ada-typeprint.c (print_range): Add missing empty line
13060 after local declaration.
13062 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13064 * ada-valprint.c (print_optional_low_bound): Get index_type's
13065 target type for as long as it is a TYPE_CODE_RANGE.
13067 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13069 * procfs.c (procfs_make_note_section): Remove assertion and
13070 associated comment.
13072 2014-01-24 Yao Qi <yao@codesourcery.com>
13074 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13075 * corelow.c (get_core_siginfo): Likewise.
13077 2014-01-24 Yao Qi <yao@codesourcery.com>
13079 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13080 ULONGEST. Don't check 'len' is negative.
13081 (remote_write_bytes): Change type of 'len' to ULONGEST.
13083 2014-01-23 Tom Tromey <tromey@redhat.com>
13086 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13087 Handle exception from frame.block.
13088 (FrameVars.fetch_frame_locals): Likewise.
13090 2014-01-23 Tom Tromey <tromey@redhat.com>
13093 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13094 on a NULL pointer. Move "goto error" to correct place.
13096 2014-01-23 Tom Tromey <tromey@redhat.com>
13099 * python/py-framefilter.c (apply_frame_filter): Call
13100 ensure_python_env after computing gdbarch.
13102 2014-01-23 Yao Qi <yao@codesourcery.com>
13104 * target.c (raw_memory_xfer_partial): Change argument type
13105 from void * to gdb_byte *.
13106 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13108 2014-01-22 Doug Evans <dje@google.com>
13110 New gdbserver option --debug-format=timestamp.
13111 * NEWS: Mention it.
13113 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13115 * syscalls/s390x-linux.xml: New file.
13116 * syscalls/s390-linux.xml: New file.
13117 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13118 (XML_SYSCALL_FILENAME_S390X): Likewise.
13119 (op_svc): New enum value for SVC opcode.
13120 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13121 (s390_linux_get_syscall_number): New function.
13122 (s390_gdbarch_init): Register '*get_syscall_number' and the
13123 syscall xml file name.
13124 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13125 "s390-linux.xml" and "s390x-linux.xml".
13126 * NEWS: Announce new feature.
13128 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13130 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13132 2014-01-22 Pedro Alves <palves@redhat.com>
13134 * xtensa-config.c: Include defs.h.
13136 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13138 * common/common-utils.h: Add "ARI:" comment beside __func__
13141 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13143 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13144 documentation a bit.
13146 2014-01-21 Roland McGrath <mcgrathr@google.com>
13148 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13149 * configure: Regenerate.
13150 * aclocal.m4: Regenerate.
13151 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13152 New substituted variables.
13153 (install-strip): New target.
13154 (INSTALL_SCRIPT): New substituted variable.
13155 (FLAGS_TO_PASS): Add it.
13156 (install-only): Use $(INSTALL_SCRIPT) rather than
13157 $(INSTALL_PROGRAM) for gcore.
13159 2014-01-20 Tom Tromey <tromey@redhat.com>
13161 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13164 2014-01-20 Tom Tromey <tromey@redhat.com>
13166 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13167 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13168 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13169 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13170 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13171 (struct cmd_list_element) <flags>: Remove.
13172 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13173 doc_allocated>: New fields.
13174 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13176 * maint.c (maintenance_do_deprecate): Update.
13177 * top.c (execute_command): Update.
13179 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13181 * xtensa-linux-nat.c: Include asm/ptrace.h.
13183 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13185 * Makefile.in (SFILES): Add d-support.c.
13186 (COMMON_OBS): Add d-support.o.
13187 * d-lang.h (d_parse_symbol): Add comment, now defined in
13189 * d-lang.c (parse_call_convention)
13190 (parse_attributes, parse_function_types)
13191 (parse_function_args, parse_type, parse_identifier)
13192 (call_convention_p, d_parse_symbol): Move functions to ...
13193 * d-support.c: ... New file.
13195 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13197 * d-lang.h (d_parse_symbol): Add declaration.
13198 * d-lang.c (extract_identifiers)
13199 (extract_type_info): Remove functions.
13200 (parse_call_convention, parse_attributes)
13201 (parse_function_types, parse_function_args)
13202 (parse_type, parse_identifier, call_convention_p)
13203 (d_parse_symbol): New functions.
13204 (d_demangle): Use d_parse_symbol to demangle D symbols.
13206 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13208 * d-lang.h (struct builtin_d_type): New data type.
13209 (builtin_d_type): Add declaration.
13210 * d-lang.c (d_language_arch_info, build_d_types)
13211 (builtin_d_type): New functions.
13212 (enum d_primitive_types): New data type.
13213 (d_language_defn): Change c_language_arch_info to
13214 d_language_arch_info.
13215 (d_type_data): New static variable.
13216 (_initialize_d_language): Initialize d_type_data.
13218 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13220 * d-lang.h (d_main_name): Add declaration.
13221 * d-lang.c (d_main_name): New function.
13222 * symtab.c (find_main_name): Add call to d_main_name.
13224 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13226 * d-lang.c (d_language_defn): Change macro_expansion_c to
13227 macro_expansion_no.
13229 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13231 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13233 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13235 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13236 gdb_exception" declaration.
13237 * remote.c (getpkt_or_notif_sane): Likewise.
13239 2014-01-17 Doug Evans <dje@google.com>
13241 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13242 function, contents of dirnames_to_char_ptr_vec_append moved here.
13243 (delim_string_to_char_ptr_vec): New function.
13244 (dirnames_to_char_ptr_vec_append): Rewrite.
13245 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13247 2014-01-17 Doug Evans <dje@google.com>
13249 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13251 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13252 #include "common-utils.h".
13253 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13254 * common/vec.h (VEC_ASSERT_PASS): Update.
13255 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13256 (MACH_CHECK_ERROR): Update.
13258 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13260 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13262 * gdbarch.h: Regenerate.
13264 2014-01-16 Tom Tromey <tromey@redhat.com>
13266 * value.c (struct value) <regnum>: Move earlier.
13268 2014-01-16 Tom Tromey <tromey@redhat.com>
13270 * remote.c (extended_remote_create_inferior): Rename from
13271 extended_remote_create_inferior_1. Add "ops" argument. Remove
13272 old implementation.
13274 2014-01-16 Pedro Alves <palves@redhat.com>
13276 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13277 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13280 2014-01-16 Doug Evans <dje@google.com>
13282 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13286 * btrace.h (btrace_thread_flag): New.
13287 (struct btrace_thread_info) <flags>: New.
13288 * record-btrace.c (record_btrace_resume_thread)
13289 (record_btrace_find_thread_to_move, btrace_step_no_history)
13290 (btrace_step_stopped, record_btrace_start_replaying)
13291 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13292 (record_btrace_find_resume_thread): New.
13293 (record_btrace_resume, record_btrace_wait): Extend.
13294 (record_btrace_can_execute_reverse): New.
13295 (record_btrace_open): Fail in non-stop mode.
13296 (record_btrace_set_replay): Split into this, ...
13297 (record_btrace_stop_replaying): ... this, ...
13298 (record_btrace_clear_histories): ... and this.
13299 (init_record_btrace_ops): Init to_can_execute_reverse.
13300 * NEWS: Announce it.
13302 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13304 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13305 (forward_target_decr_pc_after_break)
13306 (target_decr_pc_after_break): New.
13307 * target.c (forward_target_decr_pc_after_break)
13308 (target_decr_pc_after_break): New.
13309 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13310 instead of gdbarch_decr_pc_after_break.
13311 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13312 instead of gdbarch_decr_pc_after_break.
13313 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13314 instead of gdbarch_decr_pc_after_break.
13315 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13316 instead of gdbarch_decr_pc_after_break.
13317 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13318 instead of gdbarch_decr_pc_after_break.
13319 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13320 instead of gdbarch_decr_pc_after_break.
13322 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13324 * btrace.c: Include regcache.h.
13325 (btrace_add_pc): New.
13326 (btrace_enable): Call btrace_add_pc.
13327 (btrace_is_empty): New.
13328 * btrace.h (btrace_is_empty): New.
13329 * record-btrace.c (require_btrace, record_btrace_info): Call
13332 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13334 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13335 Support delta reads.
13336 (linux_disable_btrace): Change return type.
13337 * common/linux-btrace.h (linux_read_btrace): Change parameters
13338 and return type to allow error reporting. Update users.
13339 (linux_disable_btrace): Change return type. Update users.
13340 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13342 (btrace_error): New.
13343 (btrace_block) <begin>: Comment on BEGIN == 0.
13344 * btrace.c (btrace_compute_ftrace): Start from the end of
13346 (btrace_stitch_trace, btrace_clear_history): New.
13347 (btrace_fetch): Read delta trace, return if replaying.
13348 (btrace_clear): Move clear history code to btrace_clear_history.
13349 (parse_xml_btrace): Throw an error if parsing failed.
13350 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13351 and return type to allow error reporting.
13352 (target_read_btrace): Change parameters and return type to allow
13354 * target.c (target_read_btrace): Update.
13355 * remote.c (remote_read_btrace): Support delta reads. Pass
13357 * NEWS: Announce it.
13359 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13361 * record.h (record_btrace_frame_unwind)
13362 (record_btrace_tailcall_frame_unwind): New declarations.
13363 * dwarf2-frame: Include record.h
13364 (dwarf2_frame_cfa): Throw an error for btrace frames.
13365 * record-btrace.c: Include hashtab.h.
13366 (btrace_get_bfun_name): New.
13367 (btrace_call_history): Call btrace_get_bfun_name.
13368 (struct btrace_frame_cache): New.
13370 (bfcache_hash, bfcache_eq, bfcache_new): New.
13371 (btrace_get_frame_function): New.
13372 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13373 (record_btrace_frame_this_id): Compute own id.
13374 (record_btrace_frame_prev_register): Provide PC, throw_error
13375 for all other registers.
13376 (record_btrace_frame_sniffer): Detect btrace frames.
13377 (record_btrace_tailcall_frame_sniffer): New.
13378 (record_btrace_frame_dealloc_cache): New.
13379 (record_btrace_frame_unwind): Add new functions.
13380 (record_btrace_tailcall_frame_unwind): New.
13381 (_initialize_record_btrace): Allocate cache.
13382 * btrace.c (btrace_clear): Call reinit_frame_cache.
13383 * NEWS: Announce it.
13385 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13387 * record-btrace.c (record_btrace_set_replay)
13388 (record_btrace_goto_begin, record_btrace_goto_end)
13389 (record_btrace_goto): New.
13390 (init_record_btrace_ops): Initialize them.
13391 * NEWS: Announce it.
13393 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13395 * record-btrace.c (record_btrace_find_new_threads)
13396 (record_btrace_thread_alive): New.
13397 (init_record_btrace_ops): Initialize to_find_new_threads and
13400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13402 * record-btrace.c (record_btrace_resume): New.
13403 (record_btrace_wait): New.
13404 (init_record_btrace_ops): Initialize to_wait and to_resume.
13406 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13408 * record-btrace.c (record_btrace_xfer_partial)
13409 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13410 (record_btrace_allow_memory_access): New.
13411 (init_record_btrace_ops): Initialize new methods.
13412 * target.c (raw_memory_xfer_partial): Bail out if target reports
13413 that this memory is not available.
13415 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13417 * target.h (target_ops) <to_insert_breakpoint>
13418 <to_remove_breakpoint>: Add target_ops parameter.
13419 (forward_target_insert_breakpoint): New.
13420 (forward_target_remove_breakpoint): New.
13421 (memory_remove_breakpoint, memory_insert_breakpoint):
13422 Add target_ops parameter.
13423 * target.c (target_insert_breakpoint): Split into this and ...
13424 (forward_target_insert_breakpoint): ... this.
13425 (target_remove_breakpoint): Split into this and ...
13426 (forward_target_remove_breakpoint): ... this.
13427 (debug_to_insert_breakpoint): Add target_ops parameter.
13428 Call forward_target_insert_breakpoint.
13429 (debug_to_remove_breakpoint): Add target_ops parameter.
13430 Call forward_target_remove_breakpoint.
13431 (update_current_target): Do not inherit or default to_insert_breakpoint
13432 and to_remove_breakpoint.
13433 * corelow.c (ignore): Add target_ops parameter.
13434 * exec.c (ignore): Add target_ops parameter.
13435 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13436 Add target_ops parameter.
13437 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13438 Add target_ops parameter.
13439 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13440 Add target_ops parameter.
13441 * record-full.c (record_full_beneath_to_insert_breakpoint)
13442 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13443 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13444 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13445 (record_full_core_remove_breakpoint): Add target_ops parameter.
13447 (record_full_beneath_to_insert_breakpoint_ops)
13448 (record_full_beneath_to_remove_breakpoint_ops)
13449 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13450 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13451 tmp_to_remove_breakpoint_ops,
13452 record_full_beneath_to_insert_breakpoint_ops, and
13453 record_full_beneath_to_remove_breakpoint_ops.
13454 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13455 (m32r_remove_breakpoint): Add target_ops parameter.
13456 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13457 Add target_ops parameter.
13458 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13459 Add target_ops parameter.
13461 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13462 Markus Metzger <markus.t.metzger@intel.com>
13464 * record-btrace.c: Include frame-unwind.h.
13465 (record_btrace_frame_unwind_stop_reason)
13466 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13467 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13469 (init_record_btrace_ops): Install it.
13471 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13473 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13476 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13478 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13481 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13483 * frame-unwind.c: Include target.h.
13484 (frame_unwind_try_unwinder): New function with code from ...
13485 (frame_unwind_find_by_frame): ... here. New variable
13486 unwinder_from_target, call also target_get_unwinder)
13487 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13488 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13489 * target.h (struct target_ops): New fields to_get_unwinder and
13490 to_get_tailcall_unwinder.
13491 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13493 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13495 * record-btrace.c (record_btrace_fetch_registers)
13496 (record_btrace_store_registers)
13497 (record_btrace_to_prepare_to_store): New.
13498 (init_record_btrace_ops): Add the above.
13500 2014-01-16 Tom Tromey <tromey@redhat.com>
13502 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13503 * target.h (struct target_ops) <to_prepare_to_store>: Add
13505 (target_prepare_to_store): Add argument.
13506 * target.c (debug_to_prepare_to_store): Add argument.
13507 (update_current_target): Update.
13508 * remote.c (remote_prepare_to_store): Add 'self' argument.
13509 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13510 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13511 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13512 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13514 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13515 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13516 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13517 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13518 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13520 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13522 * btrace.h (replay) <replay>: New.
13523 (btrace_is_replaying): New.
13524 * btrace.c (btrace_clear): Free replay iterator.
13525 (btrace_is_replaying): New.
13526 * record-btrace.c (record_btrace_is_replaying): New.
13527 (record_btrace_info): Print insn number if replaying.
13528 (record_btrace_insn_history): Start at replay position.
13529 (record_btrace_call_history): Start at replay position.
13530 (init_record_btrace_ops): Init to_record_is_replaying.
13532 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13534 * record-btrace.c (record_btrace_insn_history_range): Include
13536 (record_btrace_insn_history_from): Adjust range.
13537 (record_btrace_call_history_range): Include
13539 (record_btrace_call_history_from): Adjust range.
13540 * NEWS: Announce changes.
13542 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13544 * record.h (enum record_print_flag)
13545 <record_print_indent_calls>: New.
13546 * record.c (get_call_history_modifiers): Recognize /c modifier.
13547 (_initialize_record): Document /c modifier.
13548 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13549 Reorder fields. Optionally indent the function name. Update
13551 * NEWS: Announce changes.
13553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13555 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13557 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13559 * btrace.c (ftrace_new_function): Start counting at one.
13560 * record-btrace.c (record_btrace_info): Adjust number of calls
13562 * NEWS: Announce it.
13564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13566 * record-btrace.c (btrace_call_history_insn_range): Print
13567 insn range as [begin, end].
13569 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13571 * btrace.h (struct btrace_func_link): New.
13572 (enum btrace_function_flag): New.
13573 (struct btrace_inst): Rename to ...
13574 (struct btrace_insn): ...this. Update all users.
13575 (struct btrace_func) <ibegin, iend>: Remove.
13576 (struct btrace_func_link): New.
13577 (struct btrace_func): Rename to ...
13578 (struct btrace_function): ...this. Update all users.
13579 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13580 (number, level, flags>: New.
13581 (struct btrace_insn_iterator): Rename to ...
13582 (struct btrace_insn_history): ...this.
13584 (struct btrace_insn_iterator, btrace_call_iterator): New.
13585 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13586 (struct btrace_target_info) <begin, end, level>
13587 <insn_history, call_history>: New.
13588 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13589 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13590 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13591 (btrace_call_number, btrace_call_begin, btrace_call_end)
13592 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13593 (btrace_find_function_by_number, btrace_set_insn_history)
13594 (btrace_set_call_history): New.
13595 * btrace.c (btrace_init_insn_iterator)
13596 (btrace_init_func_iterator, compute_itrace): Remove.
13597 (ftrace_print_function_name, ftrace_print_filename)
13598 (ftrace_skip_file): Change
13599 parameter to const.
13600 (ftrace_init_func): Remove.
13601 (ftrace_debug): Use new btrace_function fields.
13602 (ftrace_function_switched): Also consider gaining and
13603 losing symbol information).
13604 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13605 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13606 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13608 (ftrace_new_function): Move. Remove debug print.
13609 (ftrace_update_lines, ftrace_update_insns): New.
13610 (ftrace_update_function): Check for call, ret, and jump.
13611 (compute_ftrace): Renamed to ...
13612 (btrace_compute_ftrace): ...this. Rewritten to compute call
13614 (btrace_fetch, btrace_clear): Updated.
13615 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13616 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13617 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13618 (btrace_call_number, btrace_call_begin, btrace_call_end)
13619 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13620 (btrace_find_function_by_number, btrace_set_insn_history)
13621 (btrace_set_call_history): New.
13622 * record-btrace.c (require_btrace): Use new btrace thread
13624 (record_btrace_info, btrace_insn_history)
13625 (record_btrace_insn_history, record_btrace_insn_history_range):
13626 Use new btrace thread info fields and new iterator.
13627 (btrace_func_history_src_line): Rename to ...
13628 (btrace_call_history_src_line): ...this. Use new btrace
13629 thread info fields.
13630 (btrace_func_history): Rename to ...
13631 (btrace_call_history): ...this. Use new btrace thread info
13632 fields and new iterator.
13633 (record_btrace_call_history, record_btrace_call_history_range):
13634 Use new btrace thread info fields and new iterator.
13636 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13638 * frame.h (frame_id_build_unavailable_stack_special): New.
13639 * frame.c (frame_id_build_unavailable_stack_special): New.
13641 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13643 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13644 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13645 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13647 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13648 (i386_insn_is_jump, i386_jmp_p): New.
13649 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13650 insn_is_jump to gdbarch.
13651 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13652 * gdbarch.h: Regenerated.
13653 * gdbarch.c: Regenerated.
13654 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13655 (default_insn_is_jump): New.
13656 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13657 (default_insn_is_jump): New.
13659 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13661 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13663 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13664 (btrace_read_type) <btrace_read_new>: Change to ...
13665 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13667 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13669 * common/linux-btrace.c (linux_read_btrace): Free trace from
13670 previous iteration.
13672 2014-01-15 Doug Evans <dje@google.com>
13674 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13677 2014-01-15 Tom Tromey <tromey@redhat.com>
13679 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13680 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13681 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13682 (set_objfile_main_name): New function.
13683 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13684 language_of_main>: New fields.
13685 (set_objfile_main_name): Declare.
13686 * symtab.c (find_main_name): Loop over objfiles to find the main
13688 (set_main_name): Now static.
13689 (get_main_info): Add comment.
13690 * symtab.h (set_main_name): Don't declare.
13692 2014-01-15 Tom Tromey <tromey@redhat.com>
13694 * symtab.c (main_progspace_key): New global.
13695 (struct main_info): New.
13696 (name_of_main, language_of_main): Remove.
13697 (get_main_info, main_info_cleanup): New function.
13698 (set_main_name, main_name, main_language): Use get_main_info.
13699 (_initialize_symtab): Initialize main_progspace_key.
13701 2014-01-15 Tom Tromey <tromey@redhat.com>
13703 * dbxread.c (process_one_symbol): Update.
13704 * dwarf2read.c (read_partial_die): Update.
13705 * symfile.c (set_initial_language): Call main_language.
13706 * symtab.c (language_of_main): Now static.
13707 (set_main_name): Add 'lang' parameter.
13708 (find_main_name): Update.
13709 (main_language): New function.
13710 (symtab_observer_executable_changed): Update.
13711 * symtab.h (set_main_name): Update.
13712 (language_of_main): Remove.
13713 (main_language): Declare.
13715 2014-01-15 Tom Tromey <tromey@redhat.com>
13717 * symfile.c (init_entry_point_info): Use new "initialized" field.
13719 * objfiles.h (struct entry_point) <initialized>: New field.
13720 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13721 (struct objfile) <ei>: ...here. Remove.
13722 * objfiles.c (entry_point_address_query): Update.
13724 2014-01-15 Tom Tromey <tromey@redhat.com>
13726 * objfiles.c (entry_point_address_query): Relocate entry point
13728 (objfile_relocate1): Do not relocate entry point address.
13729 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13730 <the_bfd_section_index>: New field.
13731 * symfile.c (init_entry_point_info): Find the entry point's
13734 2014-01-15 Tom Tromey <tromey@redhat.com>
13736 * solib-frv.c (enable_break): Use entry_point_address_query.
13738 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13740 * NEWS: Add note on improved process record-replay on
13741 arm*-linux* targets.
13743 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13745 * arm-tdep.c (enum arm_record_result): New enum.
13746 (arm_record_unsupported_insn): New function.
13747 (arm_record_coproc_data_proc): Removed.
13748 (thumb2_record_ld_st_multiple): New function.
13749 (thumb2_record_ld_st_dual_ex_tbb): New function.
13750 (thumb2_record_data_proc_sreg_mimm): New function.
13751 (thumb2_record_ps_dest_generic): New function.
13752 (thumb2_record_branch_misc_cntrl): New function.
13753 (thumb2_record_str_single_data): New function.
13754 (thumb2_record_ld_mem_hints): New function.
13755 (thumb2_record_ld_word): New function.
13756 (thumb2_record_lmul_lmla_div): New function.
13757 (thumb2_record_decode_insn_handler): New function.
13758 (decode_insn): Add thumb32 instruction handlers.
13760 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13762 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13763 (struct arm_linux_record_tdep): Declare.
13764 (arm_canonicalize_syscall): New function.
13765 (arm_all_but_pc_registers_record): New function.
13766 (arm_linux_syscall_record): New function.
13767 (arm_linux_init_abi): Add syscall recording constructs.
13768 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13769 decoding. (arm_record_coproc_data_proc): Update arm syscall
13771 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13772 <arm_syscall_record>: New field.
13773 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13776 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13778 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13779 register for push instruction recording.
13781 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13783 * arm-tdep.c (thumb_record_misc): Update to correct logical
13784 error while recording ldm, ldmia and pop instructions.
13786 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13788 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13790 2014-01-15 Pedro Alves <palves@redhat.com>
13792 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13793 (go32_resume, go32_fetch_registers, store_register)
13794 (go32_store_registers, go32_prepare_to_store)
13795 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13796 (go32_create_inferior, go32_can_run, go32_terminal_init)
13797 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13800 2014-01-15 Tom Tromey <tromey@redhat.com>
13802 * target.h (async_callback_ftype): New typedef.
13803 (struct target_ops) <to_async>: Use it.
13805 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13807 * python/py-value.c (get_field_type): Remove unnecessary curly
13808 braces for single-statement if block.
13810 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13812 * python/py-type.c (convert_field): Add missing empty line
13813 after declarations.
13815 2014-01-14 Doug Evans <dje@google.com>
13817 * symfile.h (expand_symtabs_matching): Renamed from
13818 expand_partial_symbol_names. Update prototype.
13819 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13820 * symfile.c (expand_symtabs_matching): Renamed from
13821 expand_partial_symbol_names. New args file_matcher, kind.
13822 Rename arg fun to symbol_matcher.
13823 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13824 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13825 ada_expand_partial_symbol_name.
13826 (ada_make_symbol_completion_list): Update to call
13827 expand_symtabs_matching.
13828 (ada_add_global_exceptions): Call expand_symtabs_matching.
13829 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13830 call map_symbol_filenames.
13831 * symtab.c (sources_info): Update to call map_symbol_filenames.
13832 (search_symbols): Call expand_symtabs_matching.
13833 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13834 (default_make_symbol_completion_list_break_on): Update to call
13835 expand_symtabs_matching.
13836 (make_source_files_completion_list): Update to call
13837 map_symbol_filenames.
13839 2014-01-14 Doug Evans <dje@google.com>
13841 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13842 (expand_symtabs_symbol_matcher_ftype): New typedef.
13843 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13844 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13845 * symfile.c (expand_partial_symbol_names): Update to use
13846 expand_symtabs_symbol_matcher_ftype.
13847 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13848 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13849 Arg name_matcher renamed to symbol_matcher.
13850 * psymtab.c (recursively_search_psymtabs): Update to use
13851 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13853 (expand_symtabs_matching_via_partial): Update to use
13854 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13855 Arg name_matcher renamed to symbol_matcher.
13857 2014-01-14 Doug Evans <dje@google.com>
13859 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13860 (map_partial_symbol_filenames): Ditto.
13861 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13862 (map_partial_symbol_filenames): Ditto.
13863 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13864 (map_partial_symbol_filenames): Ditto.
13865 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13866 (map_partial_symbol_filenames): Ditto.
13867 * symtab.c: Delete #include "psymtab.h".
13869 2014-01-14 Pedro Alves <palves@redhat.com>
13870 Tom Tromey <tromey@redhat.com>
13872 * infrun.c (use_displaced_stepping): Use find_record_target
13873 instead of RECORD_IS_USED.
13874 (adjust_pc_after_break): Use record_full_is_used instead of
13876 * record-btrace.c (record_btrace_open): Call record_preopen
13877 instead of checking RECORD_IS_USED.
13878 * record-full.c (record_full_shortname)
13879 (record_full_core_shortname): New globals.
13880 (record_full_is_used): New function.
13881 (find_full_open): Call record_preopen instead of checking
13883 (init_record_full_ops): Set the target's shortname to
13884 record_full_shortname.
13885 (init_record_full_core_ops): Set the target's shortname to
13886 record_full_core_shortname.
13887 * record-full.h (record_full_is_used): Declare.
13888 * record.c (find_record_target): Make extern.
13889 (record_preopen): New function.
13890 * record.h (RECORD_IS_USED): Delete macro.
13891 (find_record_target, record_preopen): Declare functions.
13893 2014-01-14 Yao Qi <yao@codesourcery.com>
13895 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13896 'len''s type to ULONGEST.
13897 (core_xfer_shared_libraries_aix): Likewise.
13898 * gdbarch.c, gdbarch.h: Regenerated.
13899 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13900 Change type of 'len' to ULONGEST.
13901 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13902 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13904 2014-01-14 Yao Qi <yao@codesourcery.com>
13906 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13907 type of 'len' to ULONGEST.
13908 (linux_xfer_osdata_processgroups): Likewise.
13909 (linux_xfer_osdata_threads): Likewise.
13910 (linux_xfer_osdata_fds): Likewise.
13911 (linux_xfer_osdata_isockets): Likewise.
13912 (linux_xfer_osdata_shm): Likewise.
13913 (linux_xfer_osdata_sem): Likewise.
13914 (linux_xfer_osdata_msg): Likewise.
13915 (linux_common_xfer_osdata): Likewise.
13916 (struct osdata_type) <getter>: Likewise.
13917 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13920 2014-01-14 Yao Qi <yao@codesourcery.com>
13922 * target.h (target_xfer_partial_ftype): Update.
13923 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13925 * aix-thread.c (aix_thread_xfer_partial): Change type of
13926 argument 'len' to ULONGEST.
13927 * auxv.c (procfs_xfer_auxv): Likewise.
13928 (ld_so_xfer_auxv): Likewise.
13929 (memory_xfer_auxv): Likewise.
13930 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13931 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13932 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13933 * corelow.c (core_xfer_partial): Likewise.
13934 * ctf.c (ctf_xfer_partial): Likewise.
13935 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13937 (darwin_read_dyld_info): Likewise.
13938 (darwin_xfer_partial): Likewise.
13939 * exec.c (section_table_xfer_memory_partial): Likewise.
13940 (exec_xfer_partial): Likewise.
13941 * exec.h (section_table_xfer_memory_partial): Update
13943 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13944 instead of plongest.
13945 (gnu_xfer_partial): Likewise.
13946 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13947 (ia64_hpux_xfer_solib_got): Likewise.
13948 (ia64_hpux_xfer_partial): Likewise.
13949 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13950 * inf-ptrace.c (inf_ptrace_xfer_partial):
13951 * inf-ttrace.c (inf_ttrace_xfer_partial):
13952 * linux-nat.c (linux_xfer_siginfo): Likewise.
13953 (linux_nat_xfer_partial): Likewise.
13954 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13955 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13956 * monitor.c (monitor_xfer_memory): Likewise.
13957 (monitor_xfer_partial): Likewise.
13958 * procfs.c (procfs_xfer_partial): Likewise.
13959 * record-full.c (record_full_xfer_partial): Likewise.
13960 (record_full_core_xfer_partial): Likewise.
13961 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13962 instead of plongest.
13963 (gdbsim_xfer_partial): Likewise.
13964 * remote.c (remote_xfer_partial): Likewise.
13965 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13966 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13968 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13969 (rs6000_xfer_shared_libraries): Likewise.
13970 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13971 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13972 (sparc_xfer_partial): Likewise.
13973 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13974 (spu_xfer_partial): Likewise.
13975 * spu-multiarch.c (spu_xfer_partial): Likewise.
13976 * target.c (target_read_live_memory): Likewise.
13977 (memory_xfer_live_readonly_partial): Likewise.
13978 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13979 (target_xfer_partial, default_xfer_partial): Likewise.
13980 (current_xfer_partial): Likewise.
13981 * tracepoint.c (tfile_xfer_partial): Likewise.
13982 * windows-nat.c (windows_xfer_memory): Likewise. Call
13983 pulongest instead of plongest.
13984 (windows_xfer_partial): Likewise.
13985 (windows_xfer_shared_libraries): Likewise.
13987 2014-01-14 Yao Qi <yao@codesourcery.com>
13989 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13990 target_xfer_partial_ftype.
13992 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13996 * valops.c (value_struct_elt_bitpos): New function
13997 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13998 object to 'None' if the field name is an empty string ("").
13999 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14000 attribute to look for a field when 'name' is 'None'.
14001 (get_field_type): New function
14003 2014-01-13 Doug Evans <dje@google.com>
14006 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14007 (try_open_dwop_file): Ditto.
14008 * gdb_bfd.c: #include "vec.h".
14009 (bfdp): New typedef.
14010 (struct gdb_bfd_data): New member included_bfds.
14011 (gdb_bfd_unref): Unref all included bfds.
14012 (gdb_bfd_record_inclusion): New function.
14013 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14015 2014-01-13 Tom Tromey <tromey@redhat.com>
14017 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14019 2014-01-13 Tom Tromey <tromey@redhat.com>
14021 * defs.h (use_windows): Remove.
14022 * gdb.c (main): Update.
14023 * main.c (captured_main, gdb_main): Update.
14024 * main.h (struct captured_main_args) <use_windows>: Remove.
14025 * top.c (use_windows): Remove.
14027 2014-01-13 Tom Tromey <tromey@redhat.com>
14029 * defs.h (deprecated_flush_hook): Remove.
14031 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14034 * linux-thread-db.c (try_thread_db_load): Add parameter
14035 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14036 (try_thread_db_load_from_pdir_1): Move it there from here.
14037 (try_thread_db_load_from_sdir): Update caller.
14038 (try_thread_db_load_from_dir): Move it there from here.
14040 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14042 * regformats/regdat.sh: Always rewrite the register file.
14044 2014-01-13 Pedro Alves <palves@redhat.com>
14046 * Makefile.in (CHECK_HEADERS): New variable.
14047 (check-headers:): New rule.
14049 2014-01-13 Tom Tromey <tromey@redhat.com>
14051 * cli/cli-setshow.c (do_set_command): Update.
14052 * defs.h (deprecated_set_hook): Remove.
14053 * top.c (deprecated_set_hook): Remove.
14055 2014-01-13 Pedro Alves <palves@redhat.com>
14057 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14058 the tracepoint if the PC is a pseudo-register.
14060 2014-01-13 Tom Tromey <tromey@redhat.com>
14062 * defs.h (XCALLOC): Remove.
14063 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14064 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14065 * dwarf2loc.c (allocate_piece_closure): Likewise.
14066 * elfread.c (elf_symfile_segments): Likewise.
14067 (elf_symfile_segments): Likewise.
14068 * gdbtypes.c (copy_type_recursive): Likewise.
14069 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14070 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14071 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14073 * mt-tdep.c (mt_gdbarch_init): Likewise.
14074 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14076 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14077 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14078 * registry.c (registry_alloc_data): Likewise.
14079 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14080 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14081 * serial.c (serial_fdopen_ops): Likewise.
14082 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14084 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14085 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14088 2014-01-13 Tom Tromey <tromey@redhat.com>
14090 * defs.h (XMALLOC): Remove.
14091 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14092 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14093 * cli-out.c (struct ui_out *): Likewise.
14094 * cli/cli-dump.c (add_dump_command): Likewise.
14095 (add_dump_command): Likewise.
14096 * complaints.c (get_complaints): Likewise.
14097 (find_complaint): Likewise.
14098 * dwarf2-frame.c (execute_cfa_program): Likewise.
14099 * dwarf2read.c (abbrev_table_read_table): Likewise.
14100 * gdbarch.sh: Likewise.
14101 * gdbarch.c: Rebuild.
14102 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14103 * interps.c (interp_new): Likewise.
14104 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14105 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14106 * mi/mi-console.c (mi_console_file_new): Likewise.
14107 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14108 * mi/mi-out.c (mi_out_new): Likewise.
14109 * mi/mi-parse.c (mi_parse): Likewise.
14110 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14111 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14112 * observer.c (xalloc_observer_list_node): Likewise.
14113 * regcache.c (regcache_xmalloc_1): Likewise.
14114 * reggroups.c (reggroup_new): Likewise.
14115 (_initialize_reggroup): Likewise.
14116 * registry.c (register_data_with_cleanup): Likewise.
14117 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14118 * ser-base.c (serial_ttystate): Likewise.
14119 * ser-mingw.c (make_pipe_state): Likewise.
14120 * ser-pipe.c (pipe_open): Likewise.
14121 * serial.c (serial_open): Likewise.
14122 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14123 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14124 (tui_alloc_win_info): Likewise.
14125 (tui_add_content_elements): Likewise.
14126 * tui/tui-file.c (tui_file_new): Likewise.
14127 * tui/tui-out.c (tui_out_new): Likewise.
14128 * ui-file.c (mem_file_new): Likewise.
14129 * ui-out.c (push_level): Likewise.
14130 (make_cleanup_ui_out_end): Likewise.
14131 (append_header_to_list): Likewise.
14132 (ui_out_new): Likewise.
14133 * user-regs.c (user_reg_add_builtin): Likewise.
14135 2014-01-13 Tom Tromey <tromey@redhat.com>
14137 * defs.h (XZALLOC): Remove.
14138 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14139 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14140 (get_ada_tasks_inferior_data): Likewise.
14141 * auto-load.c (get_auto_load_pspace_data): Likewise.
14142 * auxv.c (get_auxv_inferior_data): Likewise.
14143 * bfd-target.c (target_bfd_reopen): Likewise.
14144 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14145 (deprecated_insert_raw_breakpoint): Likewise.
14146 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14147 * corelow.c (core_open): Likewise.
14148 * darwin-nat.c (darwin_check_new_threads): Likewise.
14149 (darwin_attach_pid): Likewise.
14150 * dummy-frame.c (dummy_frame_push): Likewise.
14151 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14152 * dwarf2loc.c (allocate_piece_closure): Likewise.
14153 * elfread.c (elf_symfile_segments): Likewise.
14154 * eval.c (ptrmath_type_p): Likewise.
14155 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14156 * gdbtypes.c (alloc_type_arch): Likewise.
14157 (alloc_type_instance): Likewise.
14158 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14159 * inf-child.c (inf_child_can_use_agent): Likewise.
14160 * inflow.c (get_inflow_inferior_data): Likewise.
14161 * infrun.c (save_infcall_suspend_state): Likewise.
14162 * jit.c (jit_reader_load): Likewise.
14163 (get_jit_objfile_data): Likewise.
14164 (get_jit_program_space_data): Likewise.
14165 (jit_object_open_impl): Likewise.
14166 (jit_symtab_open_impl): Likewise.
14167 (jit_block_open_impl): Likewise.
14168 (jit_frame_sniffer): Likewise.
14169 * linux-fork.c (add_fork): Likewise.
14170 * maint.c (make_command_stats_cleanup): Likewise.
14171 * objfiles.c (get_objfile_pspace_data): Likewise.
14172 * opencl-lang.c (struct lval_closure): Likewise.
14173 * osdata.c (osdata_start_osdata): Likewise.
14174 * progspace.c (new_address_space): Likewise.
14175 (add_program_space): Likewise.
14176 * remote-sim.c (get_sim_inferior_data): Likewise.
14177 * sh-tdep.c (sh_gdbarch_init): Likewise.
14178 * skip.c (Ignore): Likewise.
14179 (skip_delete_command): Likewise.
14180 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14181 (library_list_start_library): Likewise.
14182 (solib_aix_current_sos): Likewise.
14183 * solib-darwin.c (get_darwin_info): Likewise.
14184 (darwin_current_sos): Likewise.
14185 * solib-dsbt.c (get_dsbt_info): Likewise.
14186 * solib-ia64-hpux.c (new_so_list): Likewise.
14187 (ia64_hpux_get_solib_linkage_addr): Likewise.
14188 * solib-spu.c (append_ocl_sos): Likewise.
14189 (spu_current_sos): Likewise.
14190 * solib-svr4.c (get_svr4_info): Likewise.
14191 (svr4_keep_data_in_core): Likewise.
14192 (library_list_start_library): Likewise.
14193 (svr4_default_sos): Likewise.
14194 (svr4_read_so_list): Likewise.
14195 * solib-target.c (library_list_start_library): Likewise.
14196 (solib_target_current_sos): Likewise.
14197 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14198 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14199 * symfile.c (default_symfile_segments): Likewise.
14200 * target-descriptions.c (tdesc_data_init): Likewise.
14201 (tdesc_create_reg): Likewise.
14202 (struct tdesc_type *): Likewise.
14203 (tdesc_create_vector): Likewise.
14204 (tdesc_set_struct_size): Likewise.
14205 (struct tdesc_type *): Likewise.
14206 (tdesc_free_feature): Likewise.
14207 (tdesc_create_feature): Likewise.
14208 * windows-nat.c (windows_add_thread): Likewise.
14209 (windows_make_so): Likewise.
14210 * xml-support.c (gdb_xml_body_text): Likewise.
14211 (gdb_xml_create_parser_and_cleanup): Likewise.
14212 (xml_process_xincludes): Likewise.
14213 * xml-syscall.c (allocate_syscalls_info): Likewise.
14214 (syscall_create_syscall_desc): Likewise.
14216 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14218 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14219 function, with code from i386_stap_parse_special_token.
14220 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14221 (i386_stap_parse_special_token): Move code to the two functions
14222 above; simplify it.
14224 2014-01-09 Pedro Alves <palves@redhat.com>
14225 Hui Zhu <hui@codesourcery.com>
14228 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14229 bp_err_string. Don't mark the location shlib_disabled if the
14230 error thrown wasn't a generic or memory error. Catch errors
14231 thrown while inserting breakpoints in overlayed code. Output
14232 error message of software breakpoints.
14233 * remote.c (remote_insert_breakpoint): If this breakpoint has
14234 target-side commands but this stub doesn't support Z0 packets,
14235 throw NOT_SUPPORTED_ERROR error.
14236 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14237 * target.h (target_insert_breakpoint): Extend comment.
14238 (target_insert_hw_breakpoint): Add comment.
14240 2014-01-08 Pedro Alves <palves@redhat.com>
14242 * remote.c (remote_add_thread): Add threads silently if starting
14244 (remote_notice_new_inferior): If in all-stop, and starting up,
14245 don't call notice_new_inferior.
14246 (get_current_thread): New function, factored out from ...
14247 (add_current_inferior_and_thread): ... this. Adjust.
14248 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14249 found any thread, then select the remote's current thread as GDB's
14250 current thread too.
14252 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14254 * NEWS: Create a new section for the next release branch.
14255 Rename the section of the current branch, now that it has
14258 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14260 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14261 * version.in: Bump version to 7.7.50.DATE-cvs.
14263 2014-01-08 Yao Qi <yao@codesourcery.com>
14265 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14266 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14267 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14269 2014-01-08 Yao Qi <yao@codesourcery.com>
14271 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14272 return value of bfd_get_filename to symbol_file_add_from_bfd.
14274 2014-01-08 Pierre Muller <muller@sourceware.org>
14277 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14278 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14279 to prim_record_mininal_symbol_and_info.
14280 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14281 in call to prim_record_minimal_symbol_and_info.
14282 (read_pe_exported_syms): Set index field of section_data.
14284 2014-01-07 Andrew Pinski <apinski@cavium.com>
14286 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14287 * features/aarch64.c: Regenerate.
14289 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14291 * target.c (return_null): Define.
14292 (update_current_target): Use it instead of return_zero for
14293 functions that return a pointer.
14295 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14297 * source.c (add_path): Fix check for duplicated paths in the previously
14300 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14302 * ada-lang.c: Remove duplicated include statements.
14303 * alphabsd-nat.c: Ditto.
14304 * amd64-darwin-tdep.c: Ditto.
14305 * amd64fbsd-nat.c: Ditto.
14306 * auto-load.c: Ditto.
14308 * breakpoint.c: Ditto.
14309 * dbxread.c: Ditto.
14310 * fork-child.c: Ditto.
14311 * gdb_usleep.c: Ditto.
14312 * i386-darwin-tdep.c: Ditto.
14313 * i386fbsd-nat.c: Ditto.
14315 * inferior.c: Ditto.
14316 * jv-lang.c: Ditto.
14317 * linux-nat.c: Ditto.
14318 * linux-tdep.c: Ditto.
14319 * m68kbsd-nat.c: Ditto.
14320 * m68klinux-nat.c: Ditto.
14321 * microblaze-tdep.c: Ditto.
14322 * mips-linux-tdep.c: Ditto.
14323 * mn10300-tdep.c: Ditto.
14324 * nto-tdep.c: Ditto.
14325 * opencl-lang.c: Ditto.
14327 * printcmd.c: Ditto.
14328 * regcache.c: Ditto.
14329 * remote-m32r-sdi.c: Ditto.
14331 * symfile.c: Ditto.
14333 * tilegx-linux-nat.c: Ditto.
14334 * tilegx-tdep.c: Ditto.
14335 * tracepoint.c: Ditto.
14337 * vaxbsd-nat.c: Ditto.
14338 * windows-nat.c: Ditto.
14339 * xtensa-tdep.c: Ditto.
14341 2014-01-07 Yao Qi <yao@codesourcery.com>
14343 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14345 2014-01-07 Yao Qi <yao@codesourcery.com>
14346 Joel Brobecker <brobecker@adacore.com>
14348 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14349 (pdc_write_regs): Likewise.
14350 (fetch_regs_kernel_thread): Likewise.
14351 (store_regs_kernel_thread): Likewise.
14353 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14355 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14356 tagged type objects to their actual type.
14358 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14360 * ada-valprint.c (print_field_values): Add "language" parameter.
14361 Update calls to print_field_values and print_variant_part.
14362 Pass new parameter "language" in call to val_print instead
14363 of "current_language". Replace call to ada_val_print by call
14365 (print_variant_part): Add "language" parameter.
14366 (ada_val_print_struct_union): Update call to print_field_values.
14368 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14370 * ada-valprint.c (ui_memcpy): Delete.
14371 (ada_print_floating): Update documentation. Add empty line
14372 between between function documentation and implementation.
14373 Delete variable "buffer". Use ui_file_xstrdup in place of
14374 ui_file_put. Minor adjustments following this change.
14376 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14378 * ada-valprint.c (ada_val_print_string): New function,
14379 extracted from ada_val_print_array.
14380 (ada_val_print_array): Replace extracted code by call
14381 to ada_val_print_string followed by a return. Move
14382 "else" branch to the function's top block.
14384 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14386 * ada-valprint.c (ada_val_print_array): Move implementation
14387 down. Rename parameter "offset" and "val" into "offset_aligned"
14388 and "original_value" respectively. Add parameter "offset".
14390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14392 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14393 re-organizing the code. Change the "???" message printed
14394 when target type is a TYPE_CODE_UNDEF into
14395 "<ref to undefined type>".
14397 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14399 * ada-valprint.c (print_record): Delete, implementation inlined...
14400 (ada_val_print_struct_union): ... here. Remove call to
14401 ada_check_typedef in inlined implementation.
14403 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14405 * ada-valprint.c (ada_val_print_gnat_array): New function,
14406 extracted from ada_val_print_1;
14407 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14408 (ada_val_print_flt, ada_val_print_struct_union)
14409 (ada_val_print_ref): Likewise.
14410 (ada_val_print_1): Delete variables i and elttype.
14411 Replace extracted-out code by call to corresponding
14414 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14416 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14418 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14420 * ada-valprint.c (ada_val_print_1): Replace calls to
14421 ada_val_print_1 by calls to val_print.
14423 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14425 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14426 Update calls to self accordingly. Replace calls to c_val_print
14427 by calls to val_print.
14429 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14431 * ada-valprint.c (print_record): Delete declaration.
14432 (adjust_type_signedness, ada_val_print_1): Likewise.
14433 (ada_val_print): Move function implementation down.
14434 (print_variant_part, print_field_values, print_record):
14435 Move function implementation up.
14437 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14439 * python/py-type.c (typy_get_name): New function.
14440 (type_object_getset): Add entry for attribute "name".
14441 * NEWS: Add entry mentioning this new attribute.
14443 2014-01-07 Yao Qi <yao@codesourcery.com>
14445 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14448 2014-01-07 Yao Qi <yao@codesourcery.com>
14450 * gnu-nat.c (info_port_rights): Add qualifier const to
14453 2014-01-07 Yao Qi <yao@codesourcery.com>
14455 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14457 2014-01-07 Yao Qi <yao@codesourcery.com>
14459 * gnu-nat.c (make_inf) Update declaration.
14460 (make_inf): Make it static.
14461 (inf_set_traced): Likewise.
14462 (inf_port_to_thread, inf_task_died_status): Likewise.
14464 2014-01-07 Yao Qi <yao@codesourcery.com>
14466 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14468 2014-01-07 Yao Qi <yao@codesourcery.com>
14470 * gnu-nat.c (_initialize_gnu_nat): Declare.
14472 2014-01-07 Yao Qi <yao@codesourcery.com>
14474 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14476 (struct gdbarch_info) <byte_order>: Change type to
14478 <byte_order_for_code>: Likewise.
14479 * gdbarch.c, gdbarch.h: Regenerated.
14481 2014-01-06 Sasha Smundak <asmundak@google.com>
14483 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14485 2014-01-06 Tom Tromey <tromey@redhat.com>
14487 * doublest.c (convert_doublest_to_floatformat): Use const, not
14489 * somread.c (som_symtab_read): Likewise.
14491 2014-01-07 Hui Zhu <hui@codesourcery.com>
14493 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14494 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14495 (gdb_bfd_fopen): Ditto.
14496 (gdb_bfd_openr): Ditto.
14497 (gdb_bfd_openw): Ditto.
14498 (gdb_bfd_openr_iovec): Ditto.
14499 (gdb_bfd_fdopenr): Ditto.
14500 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14501 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14503 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14505 * symfile-mem.c (symbol_file_add_from_memory): Removed
14506 gdb_bfd_stash_filename.
14508 2014-01-03 Doug Evans <dje@google.com>
14510 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14513 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14515 Update year range in copyright notice of all files.
14517 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14519 * top.c (print_gdb_version): Set copyright year to 2014.
14521 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14523 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14525 For older changes see ChangeLog-2013.
14531 version-control: never