1 2014-10-25 Doug Evans <xdje42@gmail.com>
3 * symtab.c (types_info): Delete forward decl.
4 (functions_info, variables_info, sources_info): Ditto.
5 (_initialize_symtab): Rewrite forward decl to use
8 2014-10-25 Doug Evans <xdje42@gmail.com>
10 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
12 2014-10-25 Doug Evans <xdje42@gmail.com>
14 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
15 of local var child_die.
17 2014-10-24 Don Breazeal <donb@codesourcery.com>
19 * infrun.c (follow_fork_inferior): Update fork message printing
20 to use target_terminal_ours_for_output instead of
21 target_terminal_ours, to use _() for all format strings, to print
22 "vfork" instead of "fork" for vforks, and to add a detach message.
23 (handle_vfork_child_exec_or_exit): Update message printing to use
24 target_terminal_ours_for_output instead of target_terminal_ours, to
25 use _() for all format strings, and to fix some formatting.
27 2014-10-24 Pedro Alves <palves@redhat.com>
29 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
30 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
31 * config/vax/vax.mh: Delete.
32 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
33 obsolete configurations section.
34 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
35 * vax-nat.c: Delete file.
37 2014-10-24 Pedro Alves <palves@redhat.com>
39 * NEWS (Removed targets): Add OS/arch column.
41 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
43 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
44 on the arg type of a constructor only if it is of reference type.
46 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
48 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
49 accessors and constants from nios2 opcodes update.
50 (nios2_get_next_pc): Likewise.
52 2014-10-19 Doug Evans <xdje42@gmail.com>
54 * gdbthread.h (set_running): Fix comment.
55 (set_executing, finish_thread_state): Fix comment.
57 2014-10-18 Doug Evans <xdje42@gmail.com>
59 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
61 2014-10-17 Doug Evans <dje@google.com>
63 * NEWS: Mention new event gdb.clear_objfiles.
64 * python/py-event.h (emit_clear_objfiles_event): Clear
65 * python/py-events.h (events_object): New member clear_objfiles.
66 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
68 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
69 emit clear_objfiles event.
70 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
72 (emit_clear_objfiles_event): New function.
73 (clear_objfiles): New event.
74 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
76 * python/python.c (_initialize_python): Call
77 gdbpy_initialize_clear_objfiles_event.
79 2014-10-17 Doug Evans <dje@google.com>
81 * NEWS: Mention new gdb.Objfile.progspace attribute.
82 * python/py-objfile.c (objfpy_get_progspace): New function.
83 (objfile_getset): New entry for "progspace".
85 2014-10-17 Pedro Alves <palves@redhat.com>
88 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
89 returns a copy of the input.
90 (run_command_1, continue_command, step_1, jump_command)
91 (signal_command, until_command, advance_command, finish_command)
92 (attach_command): Adjust and install a cleanup to free the
95 2014-10-17 Pedro Alves <palves@redhat.com>
98 * infcmd.c (continue_1): If continuing all threads in the
99 foreground, make sure the inferior's terminal settings are put in
102 2014-10-17 Pedro Alves <palves@redhat.com>
105 * annotate.c (annotate_breakpoints_invalid): Use
106 target_terminal_our_for_output instead of target_terminal_ours.
107 Give back the terminal to the target.
108 (annotate_frames_invalid): Likewise.
110 2014-10-17 Pedro Alves <palves@redhat.com>
112 * target.c (enum terminal_state): New enum.
113 (terminal_state): New global.
114 (target_terminal_init): New function.
115 (target_terminal_inferior): Skip if inferior already owns the
117 (target_terminal_ours, target_terminal_ours_for_output): New
119 * target.h (target_terminal_init): Convert to function prototype.
120 (target_terminal_ours_for_output): Convert to function prototype
122 (target_terminal_ours): Convert to function prototype and tweak
124 * windows-nat.c (do_initial_windows_stuff): Call
125 target_terminal_init instead of child_terminal_init_with_pgrp.
127 2014-10-17 Pedro Alves <palves@redhat.com>
129 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
130 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
131 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
133 * NEWS: Mention that support for alpha*-*-osf* has been removed.
134 * ada-lang.h [__alpha__ && __osf__]
135 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
136 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
137 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
139 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
141 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
142 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
143 * configure: Regenerate.
144 * configure.ac: Remove references to osf.
145 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
146 section. Remove all other references to osf.
147 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
148 Remove all other references to osf.
149 * dec-thread.c: Delete file.
150 * defs.h (GDB_OSABI_OSF1): Delete.
151 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
153 * osabi.c (gdb_osabi_names): Delete "OSF/1".
154 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
156 (unconditionally_kill_inferior)
157 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
158 * solib-osf.c: Delete file.
160 2014-10-17 Pedro Alves <palves@redhat.com>
162 * remote.c (clear_threads_listing_context): Move higher up, out of
163 the HAVE_LIBEXPAT guard.
165 2014-10-16 Tristan Gingold <gingold@adacore.com>
167 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
168 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
171 2014-10-15 Pedro Alves <palves@redhat.com>
173 * dec-thread.c (dec_thread_count_gdb_threads)
174 (dec_thread_add_gdb_thread): Delete.
175 (dec_thread_update_thread_list): Delete.
176 (dec_thread_find_new_threads): Rename to ...
177 (dec_thread_update_thread_list): ... this. Delete GDB-size
178 threads that are no longer found in dec_thread_list.
179 (resync_thread_list): Delete.
180 (dec_thread_wait): Call dec_thread_update_thread_list instead of
183 2014-10-15 Pedro Alves <palves@redhat.com>
185 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
186 * remote.c (remote_update_thread_list): Skip calling prune_threads
187 if any thread listing method is supported, and instead walk over
188 the set of remote threads listed, deleting those that are not
189 found in GDB's thread list.
191 2014-10-15 Pedro Alves <palves@redhat.com>
193 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
194 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
195 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
196 (bsd_uthread_target): Adjust.
197 * corelow.c (core_open): Adjust.
198 * dec-thread.c (dec_thread_find_new_threads): Update comment.
199 (dec_thread_update_thread_list): New function.
200 (init_dec_thread_ops): Adjust.
201 * gdbthread.h (prune_threads): New declaration.
202 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
203 (thread_db_update_thread_list): ... this. Call prune_threads.
204 (init_thread_db_ops): Adjust.
205 * nto-procfs.c (procfs_find_new_threads): Rename to ...
206 (procfs_update_thread_list): ... this. Call prune_threads.
207 (procfs_attach, procfs_create_inferior, init_procfs_targets):
209 * obsd-nat.c (obsd_find_new_threads): Rename to ...
210 (obsd_update_thread_list): ... this. Call prune_threads.
211 (obsd_add_target): Adjust.
212 * procfs.c (procfs_target): Adjust.
213 (procfs_notice_thread): Update comment.
214 (procfs_find_new_threads): Rename to ...
215 (procfs_update_thread_list): ... this. Call prune_threads.
216 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
218 (ravenscar_wait): Adjust.
219 (ravenscar_find_new_threads): Rename to ...
220 (ravenscar_update_thread_list): ... this. Call prune_threads.
221 (init_ravenscar_thread_ops): Adjust.
222 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
223 (record_btrace_update_thread_list): ... this. Adjust comment.
224 (init_record_btrace_ops): Adjust.
225 * remote.c (remote_threads_info): Rename to ...
226 (remote_update_thread_list): ... this. Call prune_threads.
227 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
229 * sol-thread.c (check_for_thread_db): Adjust.
230 (sol_find_new_threads_callback): Rename to ...
231 (sol_update_thread_list_callback): ... this.
232 (sol_find_new_threads): Rename to ...
233 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
234 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
235 * target-delegates.c: Regenerate.
236 * target.c (target_find_new_threads): Rename to ...
237 (target_update_thread_list): ... this.
238 * target.h (struct target_ops): Rename to_find_new_threads field
239 to to_update_thread_list.
240 (target_find_new_threads): Rename to ...
241 (target_update_thread_list): ... this.
242 * thread.c (prune_threads): Make extern.
243 (update_thread_list): Adjust.
245 2014-10-15 Pedro Alves <palves@redhat.com>
247 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
248 Add describing comment. Return -1 if the qL packet is not
250 (struct thread_item, thread_item_t): Move higher up in
251 the file. Add comments.
252 (struct threads_parsing_context): Move higher up in
253 the file, add comments, and remote to ...
254 (struct threads_listing_context): ... this.
255 (remote_newthread_step): Don't add the thread to GDB's thread
256 database here. Instead push it to the thread_listing_context
258 (remote_find_new_threads): Rename to ...
259 (remote_get_threads_with_ql): ... this. Add target_ops and
260 targets_listing_context parameters. Pass down context.
261 (start_thread): Adjust.
262 (clear_threads_parsing_context): Rename to ...
263 (clear_threads_listing_context): ... this.
264 (remote_get_threads_with_qxfer): New, with parts salvaged from old
266 (remote_get_threads_with_qthreadinfo): Ditto.
267 (remote_threads_info): Reimplement.
269 2014-10-15 Pedro Alves <palves@redhat.com>
271 * infrun.c (resume): Don't force displaced-stepping for all
272 single-steps on software single-stepping archs.
274 2014-10-15 Pedro Alves <palves@redhat.com>
276 * breakpoint.c (single_step_breakpoints): Delete global.
277 (insert_single_step_breakpoint): Adjust to store the breakpoint
278 pointer in the current thread.
279 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
280 (cancel_single_step_breakpoints): Delete functions.
281 (breakpoint_has_location_inserted_here): Make extern.
282 (single_step_breakpoint_inserted_here_p): Adjust to walk the
284 * breakpoint.h (breakpoint_has_location_inserted_here): New
286 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
287 (cancel_single_step_breakpoints): Remove declarations.
288 * gdbthread.h (struct thread_control_state)
289 <single_step_breakpoints>: New field.
290 (delete_single_step_breakpoints)
291 (thread_has_single_step_breakpoints_set)
292 (thread_has_single_step_breakpoint_here): New declarations.
293 * infrun.c (follow_exec): Also clear the single-step breakpoints.
294 (singlestep_breakpoints_inserted_p, singlestep_ptid)
295 (singlestep_pc): Delete globals.
296 (infrun_thread_ptid_changed): Remove references to removed
298 (resume_cleanups): Delete the current thread's single-step
300 (maybe_software_singlestep): Remove references to removed globals.
301 (resume): Adjust to use thread_has_single_step_breakpoints_set and
302 delete_single_step_breakpoints.
303 (init_wait_for_inferior): Remove references to removed globals.
304 (delete_thread_infrun_breakpoints): Delete the thread's
305 single-step breakpoints too.
306 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
307 single-step breakpoints here.
308 (delete_stopped_threads_single_step_breakpoints): New function.
309 (adjust_pc_after_break): Adjust to use
310 thread_has_single_step_breakpoints_set.
311 (handle_inferior_event): Remove references to removed globals.
312 Use delete_stopped_threads_single_step_breakpoints.
313 (handle_signal_stop): Adjust to per-thread single-step
314 breakpoints. Swap test order to do cheaper tests first.
315 (switch_back_to_stepped_thread): Extend debug output. Remove
316 references to removed globals.
317 * record-full.c (record_full_wait_1): Adjust to per-thread
318 single-step breakpoints.
319 * thread.c (delete_single_step_breakpoints)
320 (thread_has_single_step_breakpoints_set)
321 (thread_has_single_step_breakpoint_here): New functions.
322 (clear_thread_inferior_resources): Also delete the thread's
323 single-step breakpoints.
325 2014-10-15 Pedro Alves <palves@redhat.com>
327 * thread.c (delete_thread_breakpoint): New function.
328 (delete_step_resume_breakpoint)
329 (delete_exception_resume_breakpoint): Use it.
330 (delete_at_next_stop): New function.
331 (clear_thread_inferior_resources): Use delete_at_next_stop.
333 2014-10-15 Pedro Alves <palves@redhat.com>
335 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
336 (breakpoint_inserted_here_p): ... here. Remove special case for
337 software single-step breakpoints.
338 (find_non_raw_software_breakpoint_inserted_here): Inline ...
339 (software_breakpoint_inserted_here_p): ... here. Remove special
340 case for software single-step breakpoints.
341 (bp_target_info_copy_insertion_state)
342 (deprecated_insert_raw_breakpoint)
343 (deprecated_remove_raw_breakpoint): Delete functions.
344 * breakpoint.h (deprecated_insert_raw_breakpoint)
345 (deprecated_remove_raw_breakpoint): Remove declarations.
347 2014-10-15 Pedro Alves <palves@redhat.com>
350 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
351 Delete array globals.
352 (single_step_breakpoints): New global.
353 (breakpoint_xfer_memory): Remove special handling for single-step
355 (update_breakpoints_after_exec): Delete bp_single_step
357 (detach_breakpoints): Remove special handling for single-step
359 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
360 (bpstat_stop_status): Add comment.
361 (bpstat_what, bptype_string, print_one_breakpoint_location)
362 (adjust_breakpoint_address, init_bp_location): Handle
364 (new_single_step_breakpoint): New function.
365 (set_momentary_breakpoint, bkpt_remove_location): Remove special
366 handling for single-step breakpoints.
367 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
368 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
370 (detach_single_step_breakpoints, find_single_step_breakpoint):
372 (breakpoint_has_location_inserted_here): New function.
373 (single_step_breakpoint_inserted_here_p): Rewrite.
374 * breakpoint.h: Remove FIXME.
375 (enum bptype) <bp_single_step>: New enum value.
376 (insert_single_step_breakpoint): Update comment.
377 * infrun.c (resume_cleanups)
378 (delete_step_thread_step_resume_breakpoint): Remove single-step
380 (fetch_inferior_event): Install a cleanup that removes infrun
382 (switch_back_to_stepped_thread) <expect thread advanced also>:
383 Clear step-over info.
385 2014-10-15 Pedro Alves <palves@redhat.com>
387 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
388 (delete_thread_infrun_breakpoints): New function, with parts
389 salvaged from delete_step_resume_breakpoint_callback.
390 (delete_step_thread_step_resume_breakpoint): Delete.
391 (for_each_just_stopped_thread_callback_func): New typedef.
392 (for_each_just_stopped_thread): New function.
393 (delete_just_stopped_threads_infrun_breakpoints): New function.
394 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
395 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
397 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
399 2014-10-15 Pedro Alves <palves@redhat.com>
401 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
402 trying to step past a non-steppable watchpoint.
403 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
405 * infrun.c (struct step_over_info): Add new field
406 'nonsteppable_watchpoint_p' and adjust comments.
407 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
409 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
410 (stepping_past_nonsteppable_watchpoint): New function.
411 (step_over_info_valid_p): Also return true if stepping past a
412 nonsteppable watchpoint.
413 (proceed): Adjust call to set_step_over_info. Remove reference to
415 (init_wait_for_inferior): Remove reference to init_infwait_state.
416 (waiton_ptid): Delete global.
417 (struct execution_control_state)
418 <stepped_after_stopped_by_watchpoint>: Delete field.
419 (wait_for_inferior, fetch_inferior_event): Always pass
420 minus_one_ptid to target_wait.
421 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
423 (init_infwait_state): Delete function.
424 (handle_inferior_event): Remove infwait_state handling.
425 (handle_signal_stop) <watchpoints handling>: Adjust after
426 stepped_after_stopped_by_watchpoint removal. Don't remove
427 breakpoints here nor set infwait_state. Set the thread's
428 stepping_over_watchpoint flag, and call keep_going instead.
429 (keep_going): Handle stepping_over_watchpoint. Adjust
430 set_step_over_info calls.
431 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
434 2014-10-15 Pedro Alves <palves@redhat.com>
436 * infrun.c (step_over_info_valid_p): New function.
437 (resume): Use step_over_info_valid_p instead of checking the
438 threads's trap_expected flag.
440 2014-10-15 Doug Evans <dje@google.com>
441 Walfred Tedeschi <walfred.tedeschi@intel.com>
444 * python/lib/gdb/__init__.py (packages): Add "printer".
445 * python/lib/gdb/command/bound_registers.py: Moved to ...
446 * python/lib/gdb/printer/bound_registers.py: ... here.
447 Add printer to global set of builtin printers. Rename printer from
448 "bound" to "mpx_bound128".
449 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
450 registered as global "builtin" printer.
451 (add_builtin_pretty_printer): New function.
452 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
453 gdb/printer/__init__.py.
455 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
457 * Makefile.in (SFILES): Remove d-support.c.
458 (COMMON_OBS): Remove d-support.o.
459 * d-lang.h (d_parse_symbol): Remove declaration.
460 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
461 * d-support.c: Remove file.
463 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
465 * gdb/infrun.c (process_event_stop_test): Apply
466 gdbarch_addr_bits_remove to longjmp resume address.
468 2014-10-15 Pedro Alves <palves@redhat.com>
470 * regformats/microblaze.dat: Delete file.
472 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
474 * features/Makefile (microblaze-expedite): Replace pc with rpc.
475 * regformats/microblaze-with-stack-protect.dat: Regenerate.
477 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
479 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
482 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
486 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
489 2014-10-14 Joel Brobecker <brobecker@adacore.com>
491 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
492 of the case where the second operand is a pointer.
493 <BINOP_SUB>: Likewise.
495 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
497 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
498 only if it is not NULL.
499 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
500 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
501 (struct probe_ops) <clear_semaphore>: Likewise.
502 * tracepoint.c (start_tracing): Call set_semaphore only if it is
504 (stop_tracing): Likewise, for clear_semaphore.
506 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
508 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
509 using language_c, instead of current_language.
511 2014-10-13 Doug Evans <dje@google.com>
513 * python/py-objfile.c (objfpy_initialize): New function.
514 (objfpy_new, objfile_to_objfile_object): Call it.
515 * python/py-progspace.c (pspy_initialize): New function.
516 (pspy_new, pspace_to_pspace_object): Call it.
518 2014-10-13 Miroslav Franc <mfranc@redhat.com>
519 Jan Kratochvil <jan.kratochvil@redhat.com>
521 Fix "save breakpoints" for "catch" command.
522 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
525 2014-10-12 Miroslav Franc <mfranc@redhat.com>
527 Fix "save breakpoints" for "disable $bpnum" command.
528 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
530 2014-10-10 Pedro Alves <palves@redhat.com>
532 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
533 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
534 (HFILES_NO_SRCDIR): Remove solib-irix.h.
535 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
537 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
538 * configure.ac: Remove references to IRIX.
539 * configure.host: Add *-*-irix* to the obsolete hosts section.
540 Remove all other references to irix.
541 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
544 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
546 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
547 isn't valid, release the tdesc arch data and return NULL.
549 2014-10-10 Pedro Alves <palves@redhat.com>
551 * linux-tdep.c: Include observer.h.
552 (linux_inferior_data): New global.
553 (struct linux_info): New structure.
554 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
555 (get_linux_inferior_data): New functions.
556 (linux_vsyscall_range): Rename to ...
557 (linux_vsyscall_range_raw): ... this.
558 (linux_vsyscall_range): New function; handles caching.
559 (_initialize_linux_tdep): Register linux_inferior_data. Install
560 inferior_exit and inferior_appeared observers.
562 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
563 Pedro Alves <palves@redhat.com>
566 * solib-svr4.c (svr4_read_so_list): Rename to ...
567 (svr4_current_sos_1): ... this and change the function comment.
568 (svr4_current_sos): New function.
570 2014-10-10 Pedro Alves <palves@redhat.com>
572 * arch-utils.c (default_vsyscall_range): New function.
573 * arch-utils.h (default_vsyscall_range): New declaration.
574 * gdbarch.sh (vsyscall_range): New hook.
575 * gdbarch.h, gdbarch.c: Regenerate.
576 * linux-tdep.c (linux_vsyscall_range): New function.
577 (linux_init_abi): Install linux_vsyscall_range as
578 vsyscall_range gdbarch hook.
579 * memrange.c (address_in_mem_range): New function.
580 * memrange.h (address_in_mem_range): New declaration.
581 * symfile-mem.c (find_vdso_size): Delete function.
582 (add_vsyscall_page): Use gdbarch_vsyscall_range.
584 2014-10-10 Pedro Alves <palves@redhat.com>
586 * infrun.c (normal_stop): Fix typo in comment.
588 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
591 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
592 typo when using logical AND to determine instruction type.
594 2014-10-09 Yao Qi <yao@codesourcery.com>
596 * infrun.c (handle_signal_stop): Remove local variable
599 2014-10-08 Stan Shebs <stan@codesourcery.com>
601 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
603 2014-10-08 Gary Benson <gbenson@redhat.com>
605 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
607 2014-10-08 Gary Benson <gbenson@redhat.com>
609 * common/common-defs.h: Include common-exceptions.h.
610 * exceptions.h: Do not include common-exceptions.h.
612 2014-10-08 Gary Benson <gbenson@redhat.com>
614 * common/common-defs.h: Include cleanups.h.
615 * common/common-exceptions.c: Do not include cleanups.h.
618 2014-10-08 Gary Benson <gbenson@redhat.com>
620 * ada-lang.c: Do not include exceptions.h.
621 * ada-valprint.c: Likewise.
622 * amd64-tdep.c: Likewise.
623 * auto-load.c: Likewise.
625 * break-catch-throw.c: Likewise.
626 * breakpoint.c: Likewise.
627 * btrace.c: Likewise.
628 * c-lang.c: Likewise.
629 * cli/cli-cmds.c: Likewise.
630 * cli/cli-interp.c: Likewise.
631 * cli/cli-script.c: Likewise.
632 * completer.c: Likewise.
633 * corefile.c: Likewise.
634 * corelow.c: Likewise.
635 * cp-abi.c: Likewise.
636 * cp-support.c: Likewise.
637 * cp-valprint.c: Likewise.
638 * darwin-nat.c: Likewise.
639 * dwarf2-frame-tailcall.c: Likewise.
640 * dwarf2-frame.c: Likewise.
641 * dwarf2loc.c: Likewise.
642 * dwarf2read.c: Likewise.
644 * event-loop.c: Likewise.
645 * event-top.c: Likewise.
646 * f-valprint.c: Likewise.
647 * frame-unwind.c: Likewise.
649 * gdbtypes.c: Likewise.
650 * gnu-v2-abi.c: Likewise.
651 * gnu-v3-abi.c: Likewise.
652 * guile/scm-auto-load.c: Likewise.
653 * guile/scm-breakpoint.c: Likewise.
654 * guile/scm-cmd.c: Likewise.
655 * guile/scm-frame.c: Likewise.
656 * guile/scm-lazy-string.c: Likewise.
657 * guile/scm-param.c: Likewise.
658 * guile/scm-symbol.c: Likewise.
659 * guile/scm-type.c: Likewise.
660 * hppa-hpux-tdep.c: Likewise.
661 * i386-tdep.c: Likewise.
662 * inf-loop.c: Likewise.
663 * infcall.c: Likewise.
664 * infcmd.c: Likewise.
665 * infrun.c: Likewise.
666 * interps.c: Likewise.
667 * interps.h: Likewise.
669 * linespec.c: Likewise.
670 * linux-nat.c: Likewise.
671 * linux-thread-db.c: Likewise.
672 * m32r-rom.c: Likewise.
674 * memory-map.c: Likewise.
675 * mi/mi-cmd-break.c: Likewise.
676 * mi/mi-cmd-stack.c: Likewise.
677 * mi/mi-interp.c: Likewise.
678 * mi/mi-main.c: Likewise.
679 * monitor.c: Likewise.
680 * nto-procfs.c: Likewise.
681 * objc-lang.c: Likewise.
682 * p-valprint.c: Likewise.
684 * ppc-linux-tdep.c: Likewise.
685 * printcmd.c: Likewise.
687 * python/py-auto-load.c: Likewise.
688 * python/py-breakpoint.c: Likewise.
689 * python/py-cmd.c: Likewise.
690 * python/py-finishbreakpoint.c: Likewise.
691 * python/py-frame.c: Likewise.
692 * python/py-framefilter.c: Likewise.
693 * python/py-function.c: Likewise.
694 * python/py-gdb-readline.c: Likewise.
695 * python/py-inferior.c: Likewise.
696 * python/py-infthread.c: Likewise.
697 * python/py-lazy-string.c: Likewise.
698 * python/py-linetable.c: Likewise.
699 * python/py-param.c: Likewise.
700 * python/py-prettyprint.c: Likewise.
701 * python/py-symbol.c: Likewise.
702 * python/py-type.c: Likewise.
703 * python/py-value.c: Likewise.
704 * python/python-internal.h: Likewise.
705 * python/python.c: Likewise.
706 * record-btrace.c: Likewise.
707 * record-full.c: Likewise.
708 * regcache.c: Likewise.
709 * remote-fileio.c: Likewise.
710 * remote-mips.c: Likewise.
711 * remote.c: Likewise.
712 * rs6000-aix-tdep.c: Likewise.
713 * rs6000-nat.c: Likewise.
715 * solib-darwin.c: Likewise.
716 * solib-dsbt.c: Likewise.
717 * solib-frv.c: Likewise.
718 * solib-ia64-hpux.c: Likewise.
719 * solib-spu.c: Likewise.
720 * solib-svr4.c: Likewise.
722 * spu-tdep.c: Likewise.
724 * stap-probe.c: Likewise.
725 * symfile-mem.c: Likewise.
726 * symmisc.c: Likewise.
727 * target.c: Likewise.
728 * thread.c: Likewise.
730 * tracepoint.c: Likewise.
731 * tui/tui-interp.c: Likewise.
732 * typeprint.c: Likewise.
734 * valarith.c: Likewise.
735 * valops.c: Likewise.
736 * valprint.c: Likewise.
738 * varobj.c: Likewise.
739 * windows-nat.c: Likewise.
740 * xml-support.c: Likewise.
742 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
744 * mips-tdep.c (add_offset_16): Rewrite to implement what the
746 (extended_mips16_next_pc): Update accordingly.
748 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
750 * mips-tdep.c (mips16_instruction_is_compact_branch): New
752 (micromips_instruction_is_compact_branch): Likewise.
753 (mips16_scan_prologue): Terminate scanning upon seeing a branch
754 or a compact jump, reaching a jump delay slot, or seeing a
755 second non-prologue instruction.
756 (micromips_scan_prologue): Also terminate scanning upon seeing a
757 compact branch or jump, or reaching a branch or jump delay slot.
758 (mips32_scan_prologue): Terminate scanning upon reaching a branch
759 or jump delay slot, or seeing a second non-prologue instruction.
760 (mips32_instruction_has_delay_slot): Retain instruction
761 examination code only, update arguments accordingly and move
762 instruction fetch pieces to...
763 (mips32_insn_at_pc_has_delay_slot): ... this new function.
764 (micromips_instruction_has_delay_slot): Likewise and to...
765 (micromips_insn_at_pc_has_delay_slot): ... this new function.
766 (mips16_instruction_has_delay_slot): Likewise and to...
767 (mips16_insn_at_pc_has_delay_slot): ... this new function.
768 (mips_single_step_through_delay): Update accordingly.
769 (mips_adjust_breakpoint_address): Likewise.
771 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
773 * mips-tdep.c (micromips_instruction_has_delay_slot): When
774 !mustbe32 also return 1 for 32-bit instructions.
775 (mips16_instruction_has_delay_slot): Likewise. Add an
778 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
780 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
783 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
785 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
787 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
788 for the breakpoint's address. Don't preinitialize `placed_size'.
789 (insert_bp_location): Set `reqstd_address' rather than
791 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
792 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
794 (bkpt_remove_location): Likewise.
795 (deprecated_insert_raw_breakpoint): Likewise.
796 (deprecated_remove_raw_breakpoint): Likewise.
797 (find_single_step_breakpoint): Likewise.
798 * mem-break.c (default_memory_insert_breakpoint): Use
799 `reqstd_address' for the breakpoint's address. Don't set
800 `placed_address' or `placed_size' if breakpoint contents couldn't
801 have been determined.
802 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
803 the breakpoint's address.
804 (remote_insert_hw_breakpoint): Likewise. Don't set
805 `placed_address' or `placed_size' if breakpoint couldn't have been
807 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
808 `reqstd_address' for the breakpoint's address.
809 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
810 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
811 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
812 * microblaze-linux-tdep.c
813 (microblaze_linux_memory_remove_breakpoint): Likewise.
814 * monitor.c (monitor_insert_breakpoint): Likewise.
815 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
816 (procfs_insert_hw_breakpoint): Likewise.
817 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
818 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
819 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
820 * remote-mips.c (mips_insert_breakpoint): Likewise.
821 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
823 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
825 * valops.c (value_assign): Check for bit field assignments
826 before calling architecture-specific register value
827 conversion functions.
829 2014-10-03 Pierre Muller <muller@sourceware.org>
831 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
833 2014-10-02 Pedro Alves <palves@redhat.com>
835 * breakpoint.c (breakpoints_should_be_inserted_now): Use
836 threads_are_executing.
837 * breakpoint.h (breakpoints_should_be_inserted_now): Add
839 * gdbthread.h (threads_are_executing): Declare.
840 (handle_signal_stop) <random signals>: Don't print about the
841 signal here if stopping.
842 (end_stepping_range): Don't notify observers here.
843 (normal_stop): Update the thread list. If stopped by a random
844 signal or a stepping range ended, notify observers.
845 * thread.c (threads_executing): New global.
846 (init_thread_list): Clear 'threads_executing'.
847 (set_executing): Set or clear 'threads_executing'.
848 (threads_are_executing): New function.
849 (update_threads_executing): New function.
850 (update_thread_list): Use it.
852 2014-10-02 Pedro Alves <palves@redhat.com>
855 * breakpoint.c (update_breakpoints_after_exec): Don't create
856 overlay, longjmp, std terminate nor exception breakpoints here.
858 2014-10-02 Pedro Alves <palves@redhat.com>
860 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
862 * inferior.c (find_inferior_for_program_space): Give preference to
863 the current inferior.
864 * inferior.h (find_inferior_for_program_space): Update comment.
865 * progspace.c (switch_to_program_space_and_thread): Prefer the
866 current inferior if it's bound to the program space requested. If
867 the inferior found doesn't have a PID yet, don't bother looking up
869 * progspace.h (switch_to_program_space_and_thread): Adjust
871 * thread.c (any_thread_of_process, any_live_thread_of_process):
872 Give preference to the current thread.
874 2014-10-01 Pedro Alves <palves@redhat.com>
876 * breakpoint.c (insert_bp_location): Error out if inserting a
877 software breakpoint at a read-only address.
878 * target.c (memory_xfer_check_region): New function, factored out
880 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
882 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
883 against the memory region attributes.
885 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
887 * NEWS: Announce new exit-code field in -list-thread-groups
889 * inferior.c (exit_inferior_1): Don't clear exit code.
890 (inferior_appeared): Clear exit code.
891 * mi/mi-main.c (print_one_inferior): Add printing of the exit
894 2014-10-01 Pedro Alves <palves@redhat.com>
896 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
897 GENERATED" along with emacs/vi read-only markers.
898 * regformats/aarch64.dat: Regenerate.
899 * regformats/arm-with-iwmmxt.dat: Regenerate.
900 * regformats/arm-with-neon.dat: Regenerate.
901 * regformats/arm-with-vfpv2.dat: Regenerate.
902 * regformats/arm-with-vfpv3.dat: Regenerate.
903 * regformats/i386/amd64-avx-linux.dat: Regenerate.
904 * regformats/i386/amd64-avx.dat: Regenerate.
905 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
906 * regformats/i386/amd64-avx512.dat: Regenerate.
907 * regformats/i386/amd64-linux.dat: Regenerate.
908 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
909 * regformats/i386/amd64-mpx.dat: Regenerate.
910 * regformats/i386/amd64.dat: Regenerate.
911 * regformats/i386/i386-avx-linux.dat: Regenerate.
912 * regformats/i386/i386-avx.dat: Regenerate.
913 * regformats/i386/i386-avx512-linux.dat: Regenerate.
914 * regformats/i386/i386-avx512.dat: Regenerate.
915 * regformats/i386/i386-linux.dat: Regenerate.
916 * regformats/i386/i386-mmx-linux.dat: Regenerate.
917 * regformats/i386/i386-mmx.dat: Regenerate.
918 * regformats/i386/i386-mpx-linux.dat: Regenerate.
919 * regformats/i386/i386-mpx.dat: Regenerate.
920 * regformats/i386/i386.dat: Regenerate.
921 * regformats/i386/x32-avx-linux.dat: Regenerate.
922 * regformats/i386/x32-avx.dat: Regenerate.
923 * regformats/i386/x32-avx512-linux.dat: Regenerate.
924 * regformats/i386/x32-avx512.dat: Regenerate.
925 * regformats/i386/x32-linux.dat: Regenerate.
926 * regformats/i386/x32.dat: Regenerate.
927 * regformats/microblaze-with-stack-protect.dat: Regenerate.
928 * regformats/mips-dsp-linux.dat: Regenerate.
929 * regformats/mips-linux.dat: Regenerate.
930 * regformats/mips64-dsp-linux.dat: Regenerate.
931 * regformats/mips64-linux.dat: Regenerate.
932 * regformats/nios2-linux.dat: Regenerate.
933 * regformats/rs6000/powerpc-32.dat: Regenerate.
934 * regformats/rs6000/powerpc-32l.dat: Regenerate.
935 * regformats/rs6000/powerpc-64l.dat: Regenerate.
936 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
937 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
938 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
939 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
940 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
941 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
942 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
943 * regformats/s390-linux32.dat: Regenerate.
944 * regformats/s390-linux32v1.dat: Regenerate.
945 * regformats/s390-linux32v2.dat: Regenerate.
946 * regformats/s390-linux64.dat: Regenerate.
947 * regformats/s390-linux64v1.dat: Regenerate.
948 * regformats/s390-linux64v2.dat: Regenerate.
949 * regformats/s390-te-linux64.dat: Regenerate.
950 * regformats/s390x-linux64.dat: Regenerate.
951 * regformats/s390x-linux64v1.dat: Regenerate.
952 * regformats/s390x-linux64v2.dat: Regenerate.
953 * regformats/s390x-te-linux64.dat: Regenerate.
954 * regformats/tic6x-c62x-linux.dat: Regenerate.
955 * regformats/tic6x-c62x.dat: Regenerate.
956 * regformats/tic6x-c64x-linux.dat: Regenerate.
957 * regformats/tic6x-c64x.dat: Regenerate.
958 * regformats/tic6x-c64xp-linux.dat: Regenerate.
959 * regformats/tic6x-c64xp.dat: Regenerate.
961 2014-10-01 Pedro Alves <palves@redhat.com>
963 * features/Makefile: Update comments.
964 (XMLTOC): List all xml files we build C files from.
965 (clean-cfiles): New rule.
967 2014-10-01 Pedro Alves <palves@redhat.com>
969 * features/i386/amd64-avx512-linux.c: Regenerate.
970 * features/i386/amd64-avx512.c: Regenerate.
971 * features/i386/x32-avx512-linux.c: Regenerate.
972 * features/i386/x32-avx512.c: Regenerate.
974 2014-10-01 Pedro Alves <palves@redhat.com>
976 * features/Makefile (WHICH): Remove arm-with-m,
977 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
979 2014-10-01 Pedro Alves <palves@redhat.com>
981 * features/Makefile (clean): New rule.
983 2014-10-01 Pedro Alves <palves@redhat.com>
985 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
986 (zmm14h): Add missing end quotes.
988 2014-10-01 Pedro Alves <palves@redhat.com>
990 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
991 * features/aarch64.c: Regenerate.
993 2014-09-30 Don Breazeal <donb@codesourcery.com>
995 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
996 code so as to work with follow_fork_inferior.
997 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
998 (inf_ttrace_create_inferior): Remove reference to
999 inf_ttrace_vfork_ppid.
1000 (inf_ttrace_attach): Ditto.
1001 (inf_ttrace_detach): Ditto.
1002 (inf_ttrace_kill): Use current_inferior instead of
1003 inf_ttrace_vfork_ppid.
1004 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1005 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1006 inferior away from the parent.
1007 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1009 (follow_fork_inferior): New function.
1010 (follow_inferior_reset_breakpoints): Make function static.
1011 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1012 * linux-nat.c (linux_child_follow_fork): Move target-independent
1013 code to infrun.c:follow_fork_inferior.
1015 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1017 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1018 * gdbarch.c: Regenerate.
1019 * gdbarch.h: Likewise.
1020 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1021 gdbarch method 'regset_from_core_section'.
1022 (get_core_register_section): Remove handling for the case that
1023 regset == NULL and regset_from_core_section is defined.
1024 (get_core_registers): Drop check for deleted method.
1025 * procfs.c (procfs_do_thread_registers): Adjust comment.
1027 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1029 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1030 (linux_nat_make_corefile_notes): Remove.
1031 (linux_target_install_ops): Do not set target method
1032 'make_corefile_notes'.
1033 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1035 (linux_corefile_thread_callback): Instead of args->collect, call
1036 linux_collect_thread_registers.
1037 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1038 NULL unless there is a regset iterator.
1039 (linux_make_corefile_notes_1): Remove.
1040 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1041 by linux_make_corefile_notes.
1042 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1044 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1046 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1047 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1049 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1051 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1053 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1054 (xtensa_iterate_over_regset_sections): New.
1055 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1057 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1059 * vax-tdep.c (vax_regset_from_core_section): Remove.
1060 (vax_iterate_over_regset_sections): New.
1061 (vax_gdbarch_init): Adjust gdbarch initialization.
1063 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1065 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1066 (tilegx_regset_from_core_section): Remove.
1067 (tilegx_iterate_over_regset_sections): New.
1068 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1070 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1072 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1073 (sparc_iterate_over_regset_sections): New.
1074 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1075 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1077 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1078 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1079 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1080 target method 'make_corefile_notes'.
1082 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1084 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1085 'sizeof_gregset' and 'sizeof_fpregset'.
1086 * sh-tdep.c (sh_regset_from_core_section): Remove.
1087 (sh_iterate_over_regset_sections): New.
1088 (sh_gdbarch_init): Adjust gdbarch initialization.
1089 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1091 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1094 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1096 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1097 (score7_linux_iterate_over_regset_sections): New.
1098 (score_gdbarch_init): Adjust gdbarch initialization.
1100 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1102 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1104 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1105 method 'make_corefile_notes'.
1106 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1107 (ppcfbsd_regset_from_core_section): Remove.
1108 (ppcfbsd_iterate_over_regset_sections): New.
1109 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1111 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1112 (ppcnbsd_iterate_over_regset_sections): New.
1113 (ppcnbsd_init_abi): Adjust.
1114 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1115 (ppcobsd_iterate_over_regset_sections): New.
1116 (ppcobsd_init_abi): Adjust.
1117 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1118 (rs6000_aix_iterate_over_regset_sections): New.
1119 (rs6000_aix_init_osabi): Adjust.
1121 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1123 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1124 (nios2_regset_from_core_section): Remove.
1125 (nios2_iterate_over_regset_sections): New.
1126 (nios2_linux_init_abi): Adjust gdbarch initialization.
1128 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1130 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1131 (am33_iterate_over_regset_sections): New.
1132 (am33_linux_init_osabi): Adjust gdbarch initialization.
1134 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1136 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1137 (mips_linux_iterate_over_regset_sections): New.
1138 (mips_linux_init_abi): Adjust gdbarch initialization.
1139 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1140 (mips64obsd_iterate_over_regset_sections): New.
1141 (mips64obsd_init_abi): Adjust.
1142 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1143 (mipsnbsd_iterate_over_regset_sections): New.
1144 (mipsnbsd_init_abi): Adjust.
1146 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1148 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1149 (m88k_iterate_over_regset_sections): New.
1150 (m88k_gdbarch_init): Adjust gdbarch initialization.
1152 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1154 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1155 (ia64_linux_iterate_over_regset_sections): New.
1156 (ia64_linux_init_abi): Adjust gdbarch initialization.
1158 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1160 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1161 (m68kbsd_iterate_over_regset_sections): New.
1162 (m68kbsd_init_abi): Adjust gdbarch initialization.
1163 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1164 (m68k_linux_iterate_over_regset_sections): New.
1165 (m68k_linux_init_abi): Adjust gdbarch initialization.
1167 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1169 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1170 (m32r_linux_regset_from_core_section): Remove.
1171 (m32r_linux_iterate_over_regset_sections): New.
1172 (m32r_linux_init_abi): Adjust gdbarch initialization.
1174 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1176 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1177 (amd64obsd_iterate_over_regset_sections): New.
1178 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1179 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1181 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1182 regset_from_core_section initialization.
1183 * i386-tdep.c (i386_regset_from_core_section): Remove.
1184 (i386_iterate_over_regset_sections): New.
1185 (i386_gdbarch_init): Adjust gdbarch initialization.
1186 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1187 (i386_iterate_over_regset_sections): New prototype.
1188 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1190 (i386obsd_aout_iterate_over_regset_sections): New.
1191 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1192 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1194 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1195 (amd64fbsd_init_abi): Call fbsd_init_abi.
1196 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1197 (i386fbsd4_init_abi): Call fbsd_init_abi.
1198 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1199 target method 'make_corefile_notes'.
1200 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1202 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1204 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1205 (hppa_hpux_iterate_over_regset_sections): New.
1206 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1207 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1208 (hppa_linux_iterate_over_regset_sections): New.
1209 (hppa_linux_init_abi): Adjust.
1210 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1211 (hppanbsd_iterate_over_regset_sections): New.
1212 (hppanbsd_init_abi): Adjust.
1213 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1214 (hppaobsd_iterate_over_regset_sections): New.
1215 (hppaobsd_init_abi): Adjust.
1217 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1219 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1220 (frv_linux_iterate_over_regset_sections): New.
1221 (frv_linux_init_abi): Adjust gdbarch initialization.
1223 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1225 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1226 (armbsd_iterate_over_regset_sections): New prototype.
1227 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1228 (armbsd_iterate_over_regset_sections): New.
1229 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1232 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1234 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1235 (alpha_linux_iterate_over_regset_sections): New.
1236 (alpha_linux_init_abi): Adjust gdbarch initialization.
1237 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1239 (alphanbsd_iterate_over_regset_sections): New prototype.
1241 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1243 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1245 (aarch64_linux_iterate_over_regset_sections): New.
1246 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1248 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1250 * fbsd-tdep.c: New file.
1251 * fbsd-tdep.h: New file.
1252 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1253 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1254 (ALLDEPFILES): Add fbsd-tdep.c.
1256 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1258 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1260 * gdbarch.h: Regenerate.
1261 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1263 (get_core_register_section): Add parameter 'regset' and use it, if
1264 set. Add parameter 'min_size' and verify the bfd section size
1266 (get_core_registers_cb): Add parameter 'regset' and pass it to
1267 get_core_register section. For the "standard" register sections
1268 ".reg" and ".reg2", set an appropriate default for human_name.
1269 (get_core_registers): Don't abort when the gdbarch has an iterator
1270 but no regset_from_core_section. Add NULL/0 for parameters
1271 'regset'/'min_size' in calls to get_core_register_section.
1272 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1273 'regset' and use it instead of calling the
1274 regset_from_core_section gdbarch method.
1275 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1276 * i386-tdep.c (i386_supply_xstateregset)
1277 (i386_collect_xstateregset, i386_xstateregset): Moved to
1279 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1281 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1282 core file support only if the regset iterator hasn't been set.
1283 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1284 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1285 Moved from i386-tdep.c and renamed to *_linux*.
1286 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1287 each callback invocation. Allow any .reg-xstate size when reading
1289 * amd64-tdep.c (amd64_supply_xstateregset)
1290 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1292 (amd64_regset_from_core_section): Remove.
1293 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1294 install an amd64-specific regset_from_core_section gdbarch method.
1295 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1296 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1297 Moved from amd64-tdep.c and renamed to *_linux*.
1298 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1299 to each callback invocation. Allow any .reg-xstate size when
1300 reading from a core file.
1301 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1302 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1303 each callback invocation.
1304 (arm_linux_init_abi): No longer set the regset_from_core_section
1306 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1307 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1308 each callback invocation.
1309 (ppc_linux_init_abi): No longer set the regset_from_core_section
1311 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1312 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1313 (s390_regset_from_core_section): Remove.
1314 (s390_iterate_over_regset_sections): Add regset parameter to each
1315 callback invocation.
1316 (s390_gdbarch_init): No longer set the regset_from_core_section
1317 gdbarch method. Drop initialization of deleted tdep fields.
1319 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1321 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1322 (amd64_linux_iterate_over_regset_sections): New.
1323 (amd64_linux_init_abi_common): Don't install the regset section
1324 list, but the new iterator in gdbarch.
1325 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1326 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1327 (arm_linux_iterate_over_regset_sections): ...here. New function.
1328 (arm_linux_init_abi): Set iterator instead of section list.
1329 * corelow.c (get_core_registers_cb): New function, logic moved
1331 (get_core_registers): ...loop body here. Use new iterator method
1332 instead of walking through the regset section list.
1333 * gdbarch.sh: Remove 'core_regset_sections'. New method
1334 'iterate_over_regset_sections'. New typedef
1335 'iterate_over_regset_sections_cb'.
1336 * gdbarch.c: Regenerate.
1337 * gdbarch.h: Likewise.
1338 * i386-linux-tdep.c (i386_linux_regset_sections)
1339 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1341 (i386_linux_iterate_over_regset_sections): New.
1342 (i386_linux_init_abi): Don't choose a regset section list, but
1343 install new iterator in gdbarch.
1344 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1345 (linux_collect_regset_section_cb): New function, logic moved
1347 (linux_collect_thread_registers): ...loop body here. Use iterator
1348 method instead of walking through list.
1349 (linux_make_corefile_notes_1): Check for presence of iterator
1350 method instead of regset section list.
1351 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1352 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1353 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1354 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1355 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1356 (ppc_linux_init_abi): Don't choose from above regset section
1357 lists, but install new iterator in gdbarch.
1358 * regset.h (struct core_regset_section): Remove.
1359 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1360 have_linux_v1, have_linux_v2, and have_tdb.
1361 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1362 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1363 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1364 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1365 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1366 (s390_iterate_over_regset_sections): ...here. New function. Use
1368 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1369 regset section lists, but install new iterator.
1371 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1373 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1375 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1377 * progspace.c (print_program_space): Don't prune program spaces
1378 before printing them.
1380 2014-09-25 Pedro Alves <palves@redhat.com>
1382 * infrun.c (user_visible_resume_ptid): Don't check
1383 singlestep_breakpoints_inserted_p.
1385 2014-09-25 Pedro Alves <palves@redhat.com>
1387 * breakpoint.c (should_be_inserted): Add debug output.
1389 2014-09-25 Pedro Alves <palves@redhat.com>
1391 * infrun.c (stepping_past_instruction_at)
1392 (clear_exit_convenience_vars): Point at infrun.h instead of
1394 (handle_signal_stop): Fix typo.
1396 2014-09-24 Yao Qi <yao@codesourcery.com>
1398 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1401 2014-09-22 Gary Benson <gbenson@redhat.com>
1403 * target.c (target_stop): Updated comment.
1405 2014-09-22 Gary Benson <gbenson@redhat.com>
1407 * target/target.h (target_stop_ptid): Renamed as...
1408 (target_stop_and_wait): New function. Updated comment.
1410 (target_continue_ptid): Renamed as...
1411 (target_continue_no_signal): New function. Updated comment.
1414 2014-09-22 Pedro Alves <palves@redhat.com>
1416 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1418 * breakpoint.c (enum ugll_insert_mode): New enum.
1419 (always_inserted_mode): Now a plain boolean.
1420 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1421 (breakpoints_always_inserted_mode): Delete.
1422 (breakpoints_should_be_inserted_now): New function.
1423 (insert_breakpoints): Pass UGLL_INSERT to
1424 update_global_location_list instead of calling
1425 insert_breakpoint_locations manually.
1426 (create_solib_event_breakpoint_1): New, factored out from ...
1427 (create_solib_event_breakpoint): ... this.
1428 (create_and_insert_solib_event_breakpoint): Use
1429 create_solib_event_breakpoint_1 instead of calling
1430 insert_breakpoint_locations manually.
1431 (update_global_location_list): Change parameter type from boolean
1432 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1433 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1434 (update_global_location_list_nothrow): Change parameter type from
1435 boolean to enum ugll_insert_mode.
1436 (_initialize_breakpoint): "breakpoint always-inserted" option is
1437 now a boolean command. Update help text.
1438 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1439 (breakpoints_should_be_inserted_now): New declaration.
1440 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1441 Remove breakpoints_always_inserted_mode check.
1442 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1443 * remote.c (remote_start_remote): Likewise.
1445 2014-09-22 Pedro Alves <palves@redhat.com>
1447 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1448 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1449 Instead, pass UGLL_INSERT to update_global_location_list.
1450 (update_global_location_list): Change parameter type from boolean
1451 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1452 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1453 (create_solib_event_breakpoint_1): New, factored out from ...
1454 (create_solib_event_breakpoint): ... this.
1455 (create_and_insert_solib_event_breakpoint): Use
1456 create_solib_event_breakpoint_1 instead of calling
1457 insert_breakpoint_locations manually.
1458 (update_global_location_list): Handle UGLL_INSERT.
1460 2014-09-22 Pedro Alves <palves@redhat.com>
1462 * breakpoint.c (enum ugll_insert_mode): New enum.
1463 (update_global_location_list)
1464 (update_global_location_list_nothrow): Change parameter type from
1465 boolean to enum ugll_insert_mode. All callers adjusted.
1467 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1469 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1470 SystemTap support in GDB.
1472 2014-09-19 Don Breazeal <donb@codesourcery.com>
1474 * linux-nat.c (linux_handle_extended_wait): Call
1475 linux_ptrace_get_extended_event.
1476 (wait_lwp): Call linux_is_extended_waitstatus.
1477 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1478 and linux_is_extended_waitstatus.
1479 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1480 linux_ptrace_get_extended_event.
1481 (linux_ptrace_get_extended_event): New function.
1482 (linux_is_extended_waitstatus): New function.
1483 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1484 (linux_is_extended_waitstatus): New declarations.
1486 2014-09-19 Yao Qi <yao@codesourcery.com>
1488 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1489 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1490 comments. Callers update.
1491 (dwarf_decode_lines): Likewise.
1492 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1493 comments. Skip the line table if 'lowpc' is greater than
1494 'address'. Don't check
1495 dwarf2_per_objfile->has_section_at_zero.
1497 2014-09-18 Doug Evans <dje@google.com>
1499 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1500 * python/py-symtab.c (stpy_get_producer): New function.
1501 (symtab_object_getset): Add "producer" attribute.
1503 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1506 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1507 (do_captured_read_memory_integer): Remove.
1508 (safe_read_memory_integer): Use target_read_memory directly instead
1509 of catching errors in do_captured_read_memory_integer.
1511 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1513 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1516 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1518 * objc-lang.c (find_implementation_from_class): Remove dead code.
1520 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1523 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1524 "fprintf_unfiltered (gdb_stdlog...)".
1526 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1528 PR breakpoints/12526
1529 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1531 * breakpoint.c (watch_command_1): Use these fields to retain
1532 bitfield information.
1533 (extract_bitfield_from_watchpoint_value): New function.
1534 (watchpoint_check): Use it.
1535 (update_watchpoint): Use it. Optimize the address and length of a
1536 HW watchpoint pointing to a bitfield.
1537 * value.h (unpack_value_bitfield): New prototype.
1538 * value.c (unpack_value_bitfield): Make extern.
1540 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1542 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1544 * gnu-nat.c (inf_threads): New function.
1545 * gnu-nat.h (inf_threads_ftype): New typedef.
1546 (inf_threads): New declaration.
1547 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1548 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1549 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1550 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1551 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1552 (i386_gnu_dr_get_control): New functions.
1553 (reg_addr): New structure.
1554 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1555 i386 debugging register hooks.
1556 * NEWS: Mention this.
1558 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1560 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1561 vector data transfer instructions.
1562 (arm_record_coproc_data_proc): Updated.
1564 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1566 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1567 arm_record_exreg_ld_st_insn.
1568 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1571 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1573 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1574 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1575 processing instructions.
1577 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1579 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1580 for advance SIMD struct ld/st insn.
1581 (thumb2_record_decode_insn_handler): Replace stub handler with
1582 thumb2_record_asimd_struct_ld_st.
1584 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1586 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1587 for asimd, vfp and coprocessor insns.
1588 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1589 and coprocessor insns.
1590 (thumb2_record_coproc_insn): New function.
1591 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1593 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1596 2014-09-13 Doug Evans <xdje42@gmail.com>
1598 * NEWS: Mention new "queue-signal" command.
1599 * infcmd.c (queue_signal_command): New function.
1600 (_initialize_infcmd): Add new queue-signal command.
1602 2014-09-13 Doug Evans <xdje42@gmail.com>
1604 * linux-nat.c (wait_lwp): Add debugging printf.
1605 (linux_nat_wait_1): Ditto.
1607 2014-09-12 Pedro Alves <palves@redhat.com>
1609 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1610 (create_and_insert_solib_event_breakpoint): New functions.
1611 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1612 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1613 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1614 (remove_dbx_link_breakpoint): Delete function.
1615 (insert_dbx_link_bpt_in_file): Use
1616 create_and_insert_solib_event_breakpoint instead of
1617 deprecated_insert_raw_breakpoint.
1618 (procfs_wait): Don't check whether we hit __dbx_link here.
1619 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1621 * solib-irix.c (base_breakpoint): Delete global.
1622 (disable_break): Delete function.
1623 (enable_break): Use create_solib_event_breakpoint
1624 instead of deprecated_insert_raw_breakpoint.
1625 (irix_solib_handle_event): New function.
1626 (irix_solib_create_inferior_hook): Don't run the target or disable
1627 the mapping-complete breakpoint here.
1628 (_initialize_irix_solib): Install irix_solib_handle_event as
1629 so_ops->handle_event hook.
1631 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1632 Ulrich Weigand <uweigand@de.ibm.com>
1635 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1636 instead of read_memory_unsigned_integer.
1638 2014-09-12 Gary Benson <gbenson@redhat.com>
1640 * nat/linux-waitpid.c: Include common-defs.h.
1641 [GDBSERVER]: Add FIXME comment.
1642 [!GDBSERVER]: Don't include defs.h or signal.h.
1643 (linux_debug) [!GDBSERVER]: Remove empty block.
1645 2014-09-12 Gary Benson <gbenson@redhat.com>
1647 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1648 Don't include defs.h or server.h.
1650 2014-09-12 Gary Benson <gbenson@redhat.com>
1652 * nat/linux-btrace.c: Include common-defs.h.
1653 Don't include defs.h, server.h or gdbthread.h.
1654 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1656 2014-09-12 Gary Benson <gbenson@redhat.com>
1658 * common/agent.c: Include common-defs.h.
1659 Don't include defs.h or server.h.
1660 * common/buffer.c: Likewise.
1661 * common/common-debug.c: Likewise.
1662 * common/common-utils.c: Likewise.
1663 * common/errors.c: Likewise.
1664 * common/filestuff.c: Likewise.
1665 * common/format.c: Likewise.
1666 * common/gdb_vecs.c: Likewise.
1667 * common/print-utils.c: Likewise.
1668 * common/ptid.c: Likewise.
1669 * common/rsp-low.c: Likewise.
1670 * common/signals.c: Likewise.
1671 * common/vec.c: Likewise.
1672 * common/xml-utils.c: Likewise.
1673 * nat/linux-osdata.c: Likewise.
1674 * nat/linux-procfs.c: Likewise.
1675 * nat/linux-ptrace.c: Likewise.
1676 * nat/mips-linux-watch.c: Likewise.
1677 * target/waitstatus.c: Likewise.
1679 2014-09-12 Tom Tromey <tromey@redhat.com>
1680 Gary Benson <gbenson@redhat.com>
1682 * common/common-regcache.h: New file.
1683 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1684 * regcache.h: Include common-regcache.h.
1685 (regcache_read_pc): Don't declare.
1686 * regcache.c (get_thread_regcache_for_ptid): New function.
1687 * nat/linux-btrace.c: Don't include regcache.h.
1688 Include common-regcache.h.
1689 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1691 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1693 * regcache.h (struct regset): Declare.
1695 2014-09-11 Pedro Alves <palves@redhat.com>
1698 * main.c: Include "infrun.h".
1699 (catch_command_errors, catch_command_errors_const): Wait for the
1700 foreground command to complete.
1701 * top.c (maybe_wait_sync_command_done): New function, factored out
1703 (maybe_wait_sync_command_done): ... here.
1704 * top.h (maybe_wait_sync_command_done): New declaration.
1706 2014-09-11 Tom Tromey <tromey@redhat.com>
1707 Gary Benson <gbenson@redhat.com>
1709 * common/symbol.h: New file.
1710 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1711 * minsyms.c (find_minimal_symbol_address): New function.
1712 * common/agent.c: Include common/symbol.h.
1713 [!GDBSERVER]: Don't include objfiles.h.
1714 (agent_look_up_symbols): Use find_minimal_symbol_address.
1716 2014-09-11 Gary Benson <gbenson@redhat.com>
1718 * target/target.h (target_stop_ptid, target_continue_ptid):
1720 * target.c (target_stop_ptid, target_continue_ptid): New
1722 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1723 (agent_run_command): Always use target_stop_ptid and
1724 target_continue_ptid.
1726 2014-09-11 Tom Tromey <tromey@redhat.com>
1727 Gary Benson <gbenson@redhat.com>
1729 * target/target.h: New file.
1730 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1731 * target.h: Include target/target.h.
1732 (target_read_memory, target_write_memory): Don't declare.
1733 * target.c (target_read_uint32): New function.
1734 * common/agent.c: Include target/target.h.
1735 [!GDBSERVER]: Don't include target.h.
1736 (helper_thread_id): Type changed to uint32_t.
1737 (agent_get_helper_thread_id): Use target_read_uint32.
1738 (agent_run_command): Always use target_read_memory and
1739 target_write_memory.
1740 (agent_capability): Type changed to uint32_t.
1741 (agent_capability_check): Use target_read_uint32.
1743 2014-09-11 Gary Benson <gbenson@redhat.com>
1745 * common/common-debug.h (show_debug_regs): Declare.
1746 * common/common-debug.c (show_debug_regs): Define.
1747 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1748 all uses with show_debug_regs. Replace all uses that considered
1749 debug_hw_points as a multi-value integer with straight boolean
1751 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1752 with show_debug_regs.
1753 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1754 all uses with show_debug_regs.
1755 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1756 uses with show_debug_regs.
1758 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1760 * findvar.c (address_from_register): Handle targets requiring
1761 a special conversion routine even for plain pointer types.
1763 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1765 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1766 (store_register): Do not call exec_one_dummy_insn.
1768 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1770 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1771 dereference it first. Use value_enclosing_type instead of
1773 (ada_array_length): Likewise.
1775 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1777 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1778 Adjust function implementation and documentation accordingly.
1779 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1780 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1781 Update call to ada_value_ptr_subscript.
1783 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1785 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1786 instead of VAL's type.
1788 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1790 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1792 2014-09-09 Doug Evans <xdje42@gmail.com>
1795 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1796 last parameter to pkg-config, not first.
1797 * configure.ac: Pass --with-guile provided pkg-config path to
1798 GDB_GUILE_PROGRAM_NAMES.
1799 * configure: Regenerate.
1801 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1803 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1806 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1808 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1809 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1810 the list of sections determining GDB_OSABI_IRIX.
1812 2014-09-09 James Hogan <james.hogan@imgtec.com>
1814 * MAINTAINERS (Write After Approval): Add "James Hogan".
1816 2014-09-09 James Hogan <james.hogan@imgtec.com>
1818 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1820 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1822 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1824 2014-09-08 Doug Evans <xdje42@gmail.com>
1827 * guile.c: #include <signal.h>.
1828 (_initialize_guile): Block SIGCHLD while initializing Guile.
1830 Replaces the following, which is reverted.
1832 2014-07-26 Doug Evans <xdje42@gmail.com>
1835 * configure.ac: Add check for header gc/gc.h.
1836 Add check for function setenv.
1837 * configure: Regenerate.
1838 * config.in: Regenerate.
1839 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1841 2014-09-08 Doug Evans <xdje42@gmail.com>
1843 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1844 with named constant. Fix style of pointer comparison.
1845 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1847 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1850 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1851 decide whether we display the command on "show user".
1852 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1853 printing command name.
1854 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1855 * cli/cli-decode.c (cli_user_command_p): Create helper function
1856 to verify whether cmd_list_element is a user-defined command.
1858 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1861 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1862 Fix goto out of TRY_CATCH.
1864 2014-09-06 Doug Evans <xdje42@gmail.com>
1865 Tom Tromey <tromey@redhat.com>
1868 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1869 $_any_caller_matches.
1870 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1871 * python/lib/gdb/function/caller_is.py: New file.
1873 2014-09-06 Doug Evans <xdje42@gmail.com>
1875 * infcmd.c (program_info): Fix typo.
1877 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1880 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1881 'number'. New variable 'has_digit'. Rewrite code to deal with
1882 subexpressions on SDT probes.
1884 2014-09-04 Pedro Alves <palves@redhat.com>
1886 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1887 the input is only one character long.
1889 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1892 * f-valprint.c (f_val_print): Specify the correct print option to
1893 use when printing integer values.
1895 2014-09-04 Gary Benson <gbenson@redhat.com>
1897 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1898 Remove code to cope with LWPs wrapped as PIDs.
1899 Add assertions to ensure no wrapped LWPs are passed.
1901 2014-09-04 Pedro Alves <palves@redhat.com>
1903 * value.c (value_ranges_copy_adjusted): New function, factored out
1905 (value_contents_copy_raw): ... here.
1906 (unpack_value_bits_as_long_1): Rename back to ...
1907 (unpack_bits_as_long): ... this. Remove 'original_value' and
1908 'result' parameters. Change return type to LONGEST.
1909 (unpack_value_bits_as_long): Delete.
1910 (unpack_value_field_as_long_1): Delete.
1911 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1912 (unpack_value_bitfield): New function.
1913 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1914 (value_fetch_lazy): Use unpack_value_bitfield.
1915 * value.h (unpack_value_bits_as_long): Delete declaration.
1917 2014-09-03 Sasha Smundak <asmundak@google.com>
1919 * python/py-frame.c (frapy_read_register): New function.
1921 2014-09-03 James Hogan <james.hogan@imgtec.com>
1923 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1924 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1926 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1929 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1931 (add_cmd): Set "completer_handle_brkchars" to NULL.
1932 * cli/cli-decode.h (struct cmd_list_element)
1933 <completer_handle_brkchars>: New field.
1934 * command.h (completer_ftype_void): New typedef.
1935 (set_cmd_completer_handle_brkchars): New prototype.
1936 * completer.c (set_gdb_completion_word_break_characters): New
1938 (complete_line_internal): Call "completer_handle_brkchars"
1939 callback from command.
1940 * completer.h: Include "command.h".
1941 (set_gdb_completion_word_break_characters): New prototype.
1942 * python/py-cmd.c (cmdpy_completer_helper): New function.
1943 (cmdpy_completer_handle_brkchars): New function.
1944 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1945 (cmdpy_init): Set completer_handle_brkchars to
1946 cmdpy_completer_handle_brkchars.
1948 2014-09-03 Gary Benson <gbenson@redhat.com>
1950 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1951 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1952 Loop conditions changed to equivalent form.
1953 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1954 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1955 ALL_DEBUG_ADDRESS_REGISTERS.
1957 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1959 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1962 2014-09-02 Doug Evans <dje@google.com>
1964 * typeprint.c (find_global_typedef): Fix comment.
1966 2014-09-02 Gary Benson <gbenson@redhat.com>
1968 * i386-nat.h: Renamed as...
1969 * x86-nat.h: New file. All type, function and variable name
1970 prefixes changed from "i386_" to "x86_". All references updated.
1971 * i386-nat.c: Renamed as...
1972 * x86-nat.c: New file. All type, function and variable name
1973 prefixes changed from "i386_" to "x86_". All references updated.
1974 * common/i386-xstate.h: Renamed as...
1975 * common/x86-xstate.h: New file. All type, function and variable
1976 name prefixes changed from "i386_" to "x86_". All references
1978 * nat/i386-cpuid.h: Renamed as...
1979 * nat/x86-cpuid.h: New file. All type, function and variable name
1980 prefixes changed from "i386_" to "x86_". All references updated.
1981 * nat/i386-gcc-cpuid.h: Renamed as...
1982 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1983 name prefixes changed from "i386_" to "x86_". All references
1985 * nat/i386-dregs.h: Renamed as...
1986 * nat/x86-dregs.h: New file. All type, function and variable name
1987 prefixes changed from "i386_" to "x86_". All references updated.
1988 * nat/i386-dregs.c: Renamed as...
1989 * nat/x86-dregs.c: New file. All type, function and variable name
1990 prefixes changed from "i386_" to "x86_". All references updated.
1992 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1994 * varobj.c (_initialize_varobj): Move to the end of file.
1996 2014-08-29 Gary Benson <gbenson@redhat.com>
1998 * common/common-exceptions.h: New file.
1999 * common/common-exceptions.c: Likewise.
2000 * Makefile.in (SFILES): Add common/common-exceptions.c.
2001 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2002 (COMMON_OBS): Add common-exceptions.o.
2003 (common-exceptions.o): New rule.
2004 * exceptions.h (common-exceptions.h): Include.
2005 (gdb_setjmp.h): Do not include.
2006 (return_reason): Moved to common-exceptions.h.
2007 (enum return_reason): Likewise.
2008 (RETURN_MASK): Likewise.
2009 (typedef return_mask): Likewise.
2010 (enum errors): Likewise.
2011 (struct gdb_exception): Likewise.
2012 (exceptions_state_mc_init): Likewise.
2013 (exceptions_state_mc_action_iter): Likewise.
2014 (exceptions_state_mc_action_iter_1): Likewise.
2015 (TRY_CATCH): Likewise.
2016 (throw_exception): Likewise.
2017 (throw_verror): Likewise.
2018 (throw_vquit): Likewise.
2019 (throw_error): Likewise.
2020 (throw_quit): Likewise.
2021 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2022 (enum catcher_action): Likewise.
2023 (struct catcher): Likewise.
2024 (current_catcher): Likewise.
2025 (catcher_list_size): Likewise.
2026 (exceptions_state_mc_init): Likewise.
2027 (catcher_pop): Likewise.
2028 (exceptions_state_mc): Likewise.
2029 (exceptions_state_mc_action_iter): Likewise.
2030 (exceptions_state_mc_action_iter_1): Likewise.
2031 (throw_exception): Likewise.
2032 (exception_messages): Likewise.
2033 (exception_messages_size): Likewise.
2034 (throw_it): Likewise.
2035 (throw_verror): Likewise.
2036 (throw_vquit): Likewise.
2037 (throw_error): Likewise.
2038 (throw_quit): Likewise.
2039 (prepare_to_throw_exception): New function.
2041 2014-08-29 Gary Benson <gbenson@redhat.com>
2043 * common/gdb_setjmp.h: New file.
2044 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2045 * configure.ac: Move sigsetjmp check...
2046 * common/common.m4: ...here.
2047 * configure: Regenerate.
2048 * cp-support.c (SIGJMP_BUF): Delete.
2049 (SIGSETJMP): Likewise.
2050 (SIGLONGJMP): Likewise.
2051 * exceptions.h (gdb_setjmp.h): Include.
2052 (setjmp.h): Do not include.
2053 (EXCEPTIONS_SIGJMP_BUF): Delete.
2054 (EXCEPTIONS_SIGSETJMP): Likewise.
2055 (EXCEPTIONS_SIGLONGJMP): Likewise.
2056 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2058 * exceptions.c: Likewise.
2060 2014-08-29 Gary Benson <gbenson@redhat.com>
2062 * cleanups.h: Moved to...
2063 * common/cleanups.h: New file.
2064 * cleanups.c: Moved to...
2065 * common/cleanups.c: New file. Include common-defs.h and
2066 cleanups.h. Do not include defs.h.
2067 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2068 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2069 (cleanups.o): New rule.
2071 2014-08-29 Gary Benson <gbenson@redhat.com>
2073 * common/errors.h (internal_warning): New declaration.
2074 (internal_vwarning): Likewise.
2075 * common/errors.c (internal_warning): New function.
2076 * utils.h (internal_warning): Don't declare.
2077 (internal_vwarning): Likewise.
2078 * utils.c (internal_warning): Removed.
2080 2014-08-29 Gary Benson <gbenson@redhat.com>
2082 * main.c (captured_main): Use warning during startup.
2083 Prefix startup warning messages with command name.
2085 2014-08-29 Gary Benson <gbenson@redhat.com>
2087 * main.c (captured_main): Handle usage errors with error.
2089 2014-08-29 Gary Benson <gbenson@redhat.com>
2091 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2092 exit pair with a call to error. Wrap the message with _().
2094 2014-08-29 Gary Benson <gbenson@redhat.com>
2096 * main.c (captured_main): Replace a fprintf/exit
2097 pair with a call to error. Wrap the message with _().
2099 2014-08-29 Gary Benson <gbenson@redhat.com>
2101 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2102 pairs with calls to error. Wrap the message with _().
2104 2014-08-29 Gary Benson <gbenson@redhat.com>
2106 * utils.c (vwarning): Protect calls to target_terminal_ours
2109 2014-08-29 Gary Benson <gbenson@redhat.com>
2111 * exceptions.c (print_flush): Protect calls to
2112 target_terminal_ours and wrap_here.
2114 2014-08-29 Gary Benson <gbenson@redhat.com>
2116 * utils.h (filtered_printing_initialized): New declaration.
2117 * utils.c (abort_with_message): New function.
2118 (internal_vproblem): Use abort_with_message for first level
2119 recursive internal problems, and if gdb_stderr is not set up.
2120 Protect calls to target_terminal_ours, begin_line and query.
2122 2014-08-28 Doug Evans <dje@google.com>
2124 * symtab.c (in_prologue): Move definition to better spot.
2125 (skip_prologue_using_sal): Ditto.
2127 2014-08-28 Doug Evans <dje@google.com>
2129 * symtab.c (find_function_start_sal): Move definition to better spot.
2131 2014-08-28 Yao Qi <yao@codesourcery.com>
2133 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2134 found_stack_adjust in forward scan. Remove condition check
2135 on found_stack_adjust which is always true. Indent the code.
2137 2014-08-28 Yao Qi <yao@codesourcery.com>
2139 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2140 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2141 (dwarf_decode_lines): Remove argument
2142 want_line_info. Remove condition check on want_line_info.
2145 2014-08-27 Doug Evans <dje@google.com>
2147 * dwarf2read.c (dwarf_record_line): Fix typo.
2149 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2151 * target.h (struct target_ops::to_terminal_save_ours): Remove
2153 (target_terminal_save_ours): Remove macro.
2154 * target-delegates.c: Regenerate.
2155 * inf-child.c (inf_child_target): Don't set the nonexistent
2156 field to_terminal_save_ours.
2157 * inferior.h (child_terminal_save_ours): Remove declaration.
2158 * terminal.h (gdb_save_tty_state): New declaration.
2159 * inflow.c (child_terminal_save_ours): Rename to ...
2160 (gdb_save_tty_state): ... this.
2161 * tui/tui.c: Include terminal.h.
2162 (tui_enable): Use gdb_save_tty_state instead of
2163 target_terminal_save_ours.
2164 (tui_disable): Likewise.
2166 2014-08-25 Doug Evans <dje@google.com>
2168 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2169 Pass NULL instead of 0 for context pointer.
2171 2014-08-25 Yao Qi <yao@codesourcery.com>
2173 * dwarf2read.c: Fix grammatical error.
2175 2014-08-24 Yao Qi <yao@codesourcery.com>
2177 * dwarf2read.c (scan_partial_symbols): Update comments.
2178 Rename argument 'need_pc' with 'set_addrmap'.
2179 (add_partial_namespace): Rename argument 'need_pc' with
2181 (add_partial_module): Likewise.
2182 (add_partial_subprogram): Likewise. Update comments.
2183 (dwarf2_name): Fix typo.
2185 2014-08-22 Doug Evans <dje@google.com>
2188 * dwarf2read.c (dwarf_record_line_p): New function.
2189 (dwarf_decode_lines_1): Ignore subsequent line number entries
2190 for the same line if any entry had a non-zero discriminator.
2192 2014-08-22 Doug Evans <dje@google.com>
2194 * buildsym.h (record_line_ftype): New typedef.
2195 (record_line): Use it.
2196 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2197 (dwarf_decode_lines_1): Call them.
2199 2014-08-22 Yao Qi <yao@codesourcery.com>
2201 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2202 (ctf_end): Remove code.
2204 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2206 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2207 (linux_make_corefile_notes): call update_thread_list, protected against
2210 2014-08-21 Pedro Alves <palves@redhat.com>
2212 * infcmd.c (attach_command): Remove comment.
2214 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2216 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2217 unsigned LONGEST to ULONGEST.
2219 2014-08-20 Pedro Alves <palves@redhat.com>
2221 * Makefile.in (check-read1): New rule.
2223 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2225 * value.c (value_from_contents_and_address): Strip resolved_type's
2226 typedef layers before checking its TYPE_DATA_LOCATION.
2228 2014-08-20 Pedro Alves <palves@redhat.com>
2230 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2232 2014-08-20 Yao Qi <yao@codesourcery.com>
2234 * amd64-tdep.c (amd64_classify): Add a blank line after the
2235 example. Move "*/" to a new line.
2236 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2237 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2238 * dwarf2read.c (psymtab_include_file_name): Likewise.
2240 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2241 Pedro Alves <palves@redhat.com>
2245 * ada-lang.c (coerce_unspec_val_to_type): Use
2246 value_contents_copy_raw.
2247 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2248 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2249 * cp-valprint.c (cp_print_value_fields): Let the common printing
2250 code handle optimized out values.
2251 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2252 * d-valprint.c (dynamic_array_type): Use
2253 value_bits_any_optimized_out.
2254 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2255 check_any_valid fields.
2256 (check_pieced_value_bits): Delete and inline ...
2257 (check_pieced_synthetic_pointer): ... here.
2258 (check_pieced_value_validity): Delete.
2259 (check_pieced_value_invalid): Delete.
2260 (pieced_value_funcs): Remove check_validity and check_any_valid
2262 (read_pieced_value): Use mark_value_bits_optimized_out.
2263 (write_pieced_value): Switch to use
2264 mark_value_bytes_optimized_out.
2265 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2266 of assuming the whole value is optimized out.
2267 * findvar.c (read_frame_register_value): Remove special handling
2268 of optimized out registers.
2269 (value_from_register): Use mark_value_bytes_optimized_out.
2270 * frame-unwind.c (frame_unwind_got_optimized): Use
2271 mark_value_bytes_optimized_out.
2272 * jv-valprint.c (java_value_print): Adjust.
2273 (java_print_value_fields): Let the common printing code handle
2274 optimized out values.
2275 * mips-tdep.c (mips_print_register): Remove special handling of
2276 optimized out registers.
2277 * opencl-lang.c (lval_func_check_validity): Delete.
2278 (lval_func_check_any_valid): Delete.
2279 (opencl_value_funcs): Remove check_validity and check_any_valid
2281 * p-valprint.c (pascal_object_print_value_fields): Let the common
2282 printing code handle optimized out values.
2283 * stack.c (read_frame_arg): Remove special handling of optimized
2284 out values. Fetch both VAL and ENTRYVAL before comparing
2285 contents. Adjust to value_available_contents_eq rename.
2286 * valprint.c (valprint_check_validity)
2287 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2288 (val_print_array_elements): Adjust.
2289 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2290 (value_bits_any_optimized_out): New function.
2291 (value_entirely_covered_by_range_vector): New function, factored
2292 out from value_entirely_unavailable.
2293 (value_entirely_unavailable): Reimplement.
2294 (value_entirely_optimized_out): New function.
2295 (insert_into_bit_range_vector): New function, factored out from
2296 mark_value_bits_unavailable.
2297 (mark_value_bits_unavailable): Reimplement.
2298 (struct ranges_and_idx): New struct.
2299 (find_first_range_overlap_and_match): New function, factored out
2300 from value_available_contents_bits_eq.
2301 (value_available_contents_bits_eq): Rename to ...
2302 (value_contents_bits_eq): ... this. Check both unavailable
2303 contents and optimized out contents.
2304 (value_available_contents_eq): Rename to ...
2305 (value_contents_eq): ... this.
2306 (allocate_value_lazy): Remove reference to the old optimized_out
2308 (allocate_optimized_out_value): Use
2309 mark_value_bytes_optimized_out.
2310 (require_not_optimized_out): Adjust to check whether the
2311 optimized_out vec is empty.
2312 (ranges_copy_adjusted): New function, factored out from
2313 value_contents_copy_raw.
2314 (value_contents_copy_raw): Also copy the optimized out ranges.
2315 Assert the destination ranges aren't optimized out.
2316 (value_contents_copy): Update comment, remove call to
2317 require_not_optimized_out.
2318 (value_contents_equal): Adjust to check whether the optimized_out
2320 (set_value_optimized_out, value_optimized_out_const): Delete.
2321 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2323 (value_entirely_optimized_out, value_bits_valid): Delete.
2324 (value_copy): Take a VEC copy of the 'optimized_out' field.
2325 (value_primitive_field): Remove special handling of optimized out.
2326 (value_fetch_lazy): Assert that lazy values have no unavailable
2327 regions. Use value_bits_any_optimized_out. Remove some special
2328 handling for optimized out values.
2329 * value.h: Add intro comment about <optimized out> and
2331 (struct lval_funcs): Remove check_validity and check_any_valid
2333 (set_value_optimized_out, value_optimized_out_const): Remove.
2334 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2336 (value_bits_any_optimized_out): New declaration.
2337 (value_bits_valid): Delete declaration.
2338 (value_available_contents_eq): Rename to ...
2339 (value_contents_eq): ... this, and extend comments.
2341 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2343 Fix -fsanitize=address on unreadable inferior strings.
2344 * valprint.c (val_print_string): Fix access before BUFFER.
2346 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2348 * target.c (target_struct_size): Remove.
2349 (target_struct_allocsize): Remove.
2350 (DEFAULT_ALLOCSIZE): Remove.
2351 (target_ops_p): New typedef.
2352 (DEF_VEC_P (target_ops_p)): New vector type.
2353 (target_structs): Change type to VEC (target_ops_p).
2354 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2355 (find_default_run_target): Rewrite for loop following changes to
2358 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2360 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2361 Adjust code accordingly. Adjust function description comment.
2363 2014-08-19 Yao Qi <yao@codesourcery.com>
2365 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2368 2014-08-19 Alan Modra <amodra@gmail.com>
2370 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2371 * config.in: Regenerate.
2372 * configure: Regenerate.
2374 2014-08-19 Tom Tromey <tromey@redhat.com>
2375 Gary Benson <gbenson@redhat.com>
2377 * common/common-debug.h: New file.
2378 * common/common-debug.c: Likewise.
2379 * debug.c: Likewise.
2380 * Makefile.in (SFILES): Add common/common-debug.c.
2381 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2382 (COMMON_OBS): Add common-debug.o and debug.o.
2383 (common-debug.o): New rule.
2384 * common/common-defs.h: Include common-debug.h.
2385 * common/agent.c (debug_agent_printf): New function.
2386 (DEBUG_AGENT): Redefine.
2387 * nat/i386-dregs.c (debug_printf): Undefine.
2389 2014-08-19 Gary Benson <gbenson@redhat.com>
2391 * common/common-defs.h: Include print-utils.h.
2392 * utils.h: Do not include print-utils.h.
2394 2014-08-19 Tom Tromey <tromey@redhat.com>
2395 Gary Benson <gbenson@redhat.com>
2397 * common/common-types.h: New file.
2398 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2399 * common/common-defs.h: Include common-types.h.
2400 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2403 2014-08-19 Tom Tromey <tromey@redhat.com>
2404 Gary Benson <gbenson@redhat.com>
2406 * common/errors.h: New file.
2407 * common/errors.c: Likewise.
2408 * Makefile.in (SFILES): Add common/errors.c.
2409 (HFILES_NO_SRCDIR): Add common/errors.h.
2410 (COMMON_OBS): Add errors.o.
2411 (errors.o): New rule.
2412 * common/common-defs.h: Include errors.h.
2413 * utils.h (perror_with_name, error, verror, warning, vwarning):
2415 * common/common-utils.h: (malloc_failure, internal_error):
2418 2014-08-19 Gary Benson <gbenson@redhat.com>
2420 * utils.c (internal_vproblem): Always print the message.
2422 2014-08-18 Doug Evans <dje@google.com>
2424 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2426 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2428 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2429 Return 0 if TYPE is dynamic.
2430 (print_range): Add handling of dynamic ranges.
2432 2014-08-18 Keven Boell <keven.boell@intel.com>
2433 Joel Brobecker <brobecker@adacore.com>
2435 * gdbtypes.h (struct main_type): Add field "data_location".
2436 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2437 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2438 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2439 a dynamic data location.
2440 (resolve_dynamic_type): Add DW_AT_data_location handling.
2441 (copy_recursive, copy_type): Copy the data_location information
2443 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2444 * value.c (value_from_contents_and_address): Add
2445 DW_AT_data_location handling.
2447 2014-08-18 Keven Boell <keven.boell@intel.com>
2448 Joel Brobecker <brobecker@adacore.com>
2450 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2451 field "get_object_address".
2452 * dwarf2expr.c (execute_stack_op): Add handling for
2453 DW_OP_push_object_address.
2454 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2455 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2456 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2457 (dwarf_expr_get_obj_addr): New function.
2458 (dwarf_expr_ctx_funcs): Add get_object_address field.
2459 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2460 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2461 (dwarf2_evaluate_property): Add parameter "address". Use it.
2462 (needs_get_obj_addr): New function.
2463 (needs_frame_ctx_funcs): Add get_object_address field.
2464 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2465 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2466 (resolve_dynamic_array): Likewise.
2468 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2470 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2471 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2472 fixed value for records and unions for which some GNAT encodings
2475 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2477 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2478 rewrite to avoid "else if" and "else" constructs. Should be
2479 a no-op in practice.
2481 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2483 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2486 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2489 * eval.c: Update all calls to find_overload_match.
2490 * valarith.c: Likewise.
2491 (value_user_defined_cpp_op, value_user_defined_op): New
2492 argument NOSIDE. Update all callers.
2493 * valops.c (find_overload_match): New argument NOSIDE.
2494 * value.h (find_overload_match): Update signature.
2496 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2498 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2499 'items' methods instead of 'iteritems' method on dictionaries.
2501 2014-08-15 Doug Evans <dje@google.com>
2503 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2506 2014-08-15 Doug Evans <dje@google.com>
2508 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2510 2014-08-15 Doug Evans <dje@google.com>
2512 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2514 2014-08-15 Doug Evans <dje@google.com>
2516 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2519 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2521 * dcache.h: Include target.h, to avoid compile time warnings.
2523 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2525 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2526 frame_info" partial declaration.
2527 * gdbarch.h: Regenerate.
2529 2014-08-15 Yao Qi <yao@codesourcery.com>
2531 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2532 Add parameter 'decode_for_pst_p'. Callers update.
2534 2014-08-13 Yao Qi <yao@codesourcery.com>
2537 * configure.ac: Use local variable 'pos'.
2538 * configure: Regenerated.
2540 2014-08-11 Doug Evans <dje@google.com>
2542 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2543 message, it is redundant with "Reading symbols from ..." message.
2545 2014-08-10 Doug Evans <xdje42@gmail.com>
2547 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2549 2014-08-09 Yao Qi <yao@codesourcery.com>
2552 * remote.c (remote_xfer_partial): Remove dead code.
2554 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2556 * ia64-linux-tdep.c: Include "regset.h".
2557 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2558 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2559 (ia64_linux_supply_fpregset): New function.
2560 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2561 (ia64_linux_regset_from_core_section): New function.
2562 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2565 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2567 * m68klinux-tdep.c: Include "regset.h".
2568 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2569 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2570 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2571 (m68k_linux_regset_from_core_section): New function.
2572 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2575 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2577 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2578 function. Move logic to...
2579 (tilegx_linux_regmap): ... this new register map.
2580 (tilegx_linux_regset): Refer to register map, replace supply
2581 method by regcache_supply_regset, and add collect method.
2582 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2583 TILEGX_FIRST_EASY_REGNUM.
2585 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2587 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2588 that calls regcache_supply_regset and handles the EPC register
2589 separately. Move main logic to...
2590 (score7_linux_gregmap): ... this new register map.
2591 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2592 (score7_linux_gregset): Refer to register map. Add collect method.
2593 (score7_linux_regset_from_core_section): Replace
2594 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2595 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2596 (struct regset): Delete unused forward declaraction.
2597 (struct pt_regs): Delete structure definition.
2598 (elf_gregset_t): Delete typedef.
2600 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2602 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2603 (nios2_core_regset): Add collect method.
2605 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2607 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2608 platform-independent and don't write to read-only input buffer.
2609 (m32r_linux_collect_gregset): New function.
2610 (m32r_linux_gregset): Add collect method.
2612 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2614 * hppa-linux-tdep.c (greg_map): Rename to...
2615 (hppa_linux_gregmap): ... this. Also convert to
2616 regcache_map_entry format.
2617 (hppa_linux_supply_regset): Delete function.
2618 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2619 (hppa_linux_fpregmap): ... this new register map.
2620 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2621 register map, replace supply method by regcache_supply_regset, and
2622 add collect method regcache_collect_regset.
2624 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2626 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2627 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2628 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2629 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2630 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2631 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2632 (frv_linux_supply_gregset): Replace main logic by call to
2633 regcache_supply_regset, but keep clearing gr32-gr63.
2634 (frv_linux_supply_fpregset): Delete function.
2635 (frv_linux_gregset): Refer to appropriate register map and add
2636 regcache_collect_regset as the collect method.
2637 (frv_linux_fpregset): Likewise. Also exchange the supply method
2638 by regcache_supply_regset.
2640 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2642 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2643 by call to alpha_supply_int_regs.
2644 (alpha_linux_collect_gregset): New function.
2645 (alpha_linux_supply_fpregset): Replace logic by call to
2646 alpha_supply_fp_regs.
2647 (alpha_linux_collect_fpregset): New function.
2648 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2650 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2652 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2653 by call to regcache_collect_regset.
2654 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2655 instead of aarch64_linux_supply_gregset/_fpregset.
2656 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2657 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2658 header file instead.
2659 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2660 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2661 functions. Move logic to ...
2662 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2664 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2665 refer to new register maps, replace *_regset_from_core by
2666 regcache_supply_regset, and also use regcache_collect_regset.
2667 * aarch64-linux-tdep.h: Include "regset.h".
2668 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2670 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2671 macros, moved from C source file.
2672 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2673 variable declarations.
2675 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2677 * s390-linux-nat.c: Include "regset.h".
2678 (regmap_gregset): Delete macro.
2679 (s390_64_regmap_gregset): New register map for
2680 regcache_supply/_collect_regset.
2681 (s390_64_gregset): New regset.
2682 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2683 (regmap_fpregset): Delete macro.
2684 (s390_native_supply, s390_native_collect): Delete functions.
2685 (supply_gregset, fill_gregset): Replace s390-specific regmap
2686 handling by a call to regcache_supply/_collect_regset.
2687 (supply_fpregset, fill_fpregset): Call regcache_supply/
2688 _collect_regset instead of s390_native_supply/_collect.
2689 (fetch_regset, store_regset): Likewise. Also change the last
2690 parameter to a regset instead of a regmap.
2691 (s390_linux_fetch_inferior_registers)
2692 (390_linux_store_inferior_registers): Adjust last parameter in
2693 calls to fetch_regset and store_regset.
2694 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2695 (s390_gregmap): ... this. Also make static const and convert to
2696 regcache_map_entry format.
2697 (s390x_regmap_gregset): Delete.
2698 (s390_regmap_fpregset): Rename to...
2699 (s390_fpregmap): ... this. Make static const and convert to
2700 regcache_map_entry format.
2701 (s390_regmap_upper, s390_regmap_last_break)
2702 (s390x_regmap_last_break, s390_regmap_system_call)
2703 (s390_regmap_tdb): Likewise.
2704 (s390_supply_regset, s390_collect_regset): Remove functions.
2705 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2707 (s390_gregset, s390_fpregset, s390_upper_regset)
2708 (s390_last_break_regset, s390x_last_break_regset)
2709 (s390_system_call_regset, s390_tdb_regset): Make global and
2710 replace s390_supply/_collect_regset by regcache_supply/
2712 (s390x_gregset): Delete.
2713 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2714 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2715 (s390_regmap_fpregset, s390_regmap_last_break)
2716 (s390x_regmap_last_break, s390_regmap_system_call)
2717 (s390_regmap_tdb): Delete global variable declarations.
2718 (s390_gregset, s390_fpregset, s390_last_break_regset)
2719 (s390x_last_break_regset, s390_system_call_regset)
2720 (s390_tdb_regset): New global variable declarations.
2722 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2724 * regcache.c: Include "regset.h".
2725 (regcache_transfer_regset): New local function.
2726 (regcache_supply_regset, regcache_collect_regset): New functions.
2727 * regcache.h (struct regcache_map_entry): New structure.
2728 (REGCACHE_MAP_SKIP): New enum value.
2729 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2731 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2733 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2734 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2735 (ppc_linux_collect_gregset ): Likewise.
2736 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2737 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2738 (ppc_collect_vrregset): Likewise.
2739 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2742 2014-08-07 Yao Qi <yao@codesourcery.com>
2744 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2745 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2746 * remote.c (remote_read_bytes): Likewise.
2748 2014-08-07 Yao Qi <yao@codesourcery.com>
2750 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2752 2014-08-07 Yao Qi <yao@codesourcery.com>
2755 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2756 TARGET_XFER_OK instead of 0.
2758 2014-08-07 Gary Benson <gbenson@redhat.com>
2760 * common/common-defs.h: Include errno.h.
2761 * defs.h: Do not include errno.h.
2762 * ada-typeprint.c: Likewise.
2763 * c-typeprint.c: Likewise.
2764 * core-regset.c: Likewise.
2765 * corefile.c: Likewise.
2766 * corelow.c: Likewise.
2767 * event-loop.c: Likewise.
2768 * f-typeprint.c: Likewise.
2769 * gnu-nat.c: Likewise.
2770 * go32-nat.c: Likewise.
2771 * i386gnu-nat.c: Likewise.
2772 * m2-typeprint.c: Likewise.
2773 * nat/linux-btrace.c: Likewise.
2774 * p-typeprint.c: Likewise.
2775 * procfs.c: Likewise.
2776 * remote-sim.c: Likewise.
2777 * rs6000-nat.c: Likewise.
2778 * target.c: Likewise.
2779 * typeprint.c: Likewise.
2780 * ui-file.c: Likewise.
2781 * valops.c: Likewise.
2782 * valprint.c: Likewise.
2784 2014-08-07 Gary Benson <gbenson@redhat.com>
2786 * common/common-defs.h: Include string.h.
2787 * aarch64-tdep.c: Do not include string.h.
2788 * ada-exp.y: Likewise.
2789 * ada-lang.c: Likewise.
2790 * ada-lex.l: Likewise.
2791 * ada-typeprint.c: Likewise.
2792 * ada-valprint.c: Likewise.
2793 * aix-thread.c: Likewise.
2794 * alpha-linux-tdep.c: Likewise.
2795 * alpha-mdebug-tdep.c: Likewise.
2796 * alpha-nat.c: Likewise.
2797 * alpha-osf1-tdep.c: Likewise.
2798 * alpha-tdep.c: Likewise.
2799 * alphanbsd-tdep.c: Likewise.
2800 * amd64-dicos-tdep.c: Likewise.
2801 * amd64-linux-tdep.c: Likewise.
2802 * amd64-nat.c: Likewise.
2803 * amd64-sol2-tdep.c: Likewise.
2804 * amd64fbsd-tdep.c: Likewise.
2805 * amd64obsd-tdep.c: Likewise.
2806 * arch-utils.c: Likewise.
2807 * arm-linux-nat.c: Likewise.
2808 * arm-linux-tdep.c: Likewise.
2809 * arm-tdep.c: Likewise.
2810 * arm-wince-tdep.c: Likewise.
2811 * armbsd-tdep.c: Likewise.
2812 * armnbsd-nat.c: Likewise.
2813 * armnbsd-tdep.c: Likewise.
2814 * armobsd-tdep.c: Likewise.
2815 * avr-tdep.c: Likewise.
2816 * ax-gdb.c: Likewise.
2817 * ax-general.c: Likewise.
2818 * bcache.c: Likewise.
2819 * bfin-tdep.c: Likewise.
2820 * breakpoint.c: Likewise.
2821 * build-id.c: Likewise.
2822 * buildsym.c: Likewise.
2823 * c-exp.y: Likewise.
2824 * c-lang.c: Likewise.
2825 * c-typeprint.c: Likewise.
2826 * c-valprint.c: Likewise.
2827 * charset.c: Likewise.
2828 * cli-out.c: Likewise.
2829 * cli/cli-cmds.c: Likewise.
2830 * cli/cli-decode.c: Likewise.
2831 * cli/cli-dump.c: Likewise.
2832 * cli/cli-interp.c: Likewise.
2833 * cli/cli-logging.c: Likewise.
2834 * cli/cli-script.c: Likewise.
2835 * cli/cli-setshow.c: Likewise.
2836 * cli/cli-utils.c: Likewise.
2837 * coffread.c: Likewise.
2838 * common/agent.c: Likewise.
2839 * common/buffer.c: Likewise.
2840 * common/buffer.h: Likewise.
2841 * common/common-utils.c: Likewise.
2842 * common/filestuff.c: Likewise.
2843 * common/filestuff.c: Likewise.
2844 * common/format.c: Likewise.
2845 * common/print-utils.c: Likewise.
2846 * common/rsp-low.c: Likewise.
2847 * common/signals.c: Likewise.
2848 * common/vec.h: Likewise.
2849 * common/xml-utils.c: Likewise.
2850 * core-regset.c: Likewise.
2851 * corefile.c: Likewise.
2852 * corelow.c: Likewise.
2853 * cp-abi.c: Likewise.
2854 * cp-name-parser.y: Likewise.
2855 * cp-support.c: Likewise.
2856 * cp-valprint.c: Likewise.
2857 * cris-tdep.c: Likewise.
2858 * d-exp.y: Likewise.
2859 * darwin-nat.c: Likewise.
2860 * dbxread.c: Likewise.
2861 * dcache.c: Likewise.
2862 * demangle.c: Likewise.
2863 * dicos-tdep.c: Likewise.
2864 * disasm.c: Likewise.
2865 * doublest.c: Likewise.
2866 * dsrec.c: Likewise.
2867 * dummy-frame.c: Likewise.
2868 * dwarf2-frame.c: Likewise.
2869 * dwarf2loc.c: Likewise.
2870 * dwarf2read.c: Likewise.
2871 * elfread.c: Likewise.
2872 * environ.c: Likewise.
2874 * event-loop.c: Likewise.
2875 * exceptions.c: Likewise.
2877 * expprint.c: Likewise.
2878 * f-exp.y: Likewise.
2879 * f-lang.c: Likewise.
2880 * f-typeprint.c: Likewise.
2881 * f-valprint.c: Likewise.
2882 * fbsd-nat.c: Likewise.
2883 * findcmd.c: Likewise.
2884 * findvar.c: Likewise.
2885 * fork-child.c: Likewise.
2886 * frame.c: Likewise.
2887 * frv-linux-tdep.c: Likewise.
2888 * frv-tdep.c: Likewise.
2890 * gdb_bfd.c: Likewise.
2891 * gdbarch.c: Likewise.
2892 * gdbarch.sh: Likewise.
2893 * gdbtypes.c: Likewise.
2894 * gnu-nat.c: Likewise.
2895 * gnu-v2-abi.c: Likewise.
2896 * gnu-v3-abi.c: Likewise.
2897 * go-exp.y: Likewise.
2898 * go-lang.c: Likewise.
2899 * go32-nat.c: Likewise.
2900 * guile/guile.c: Likewise.
2901 * guile/scm-auto-load.c: Likewise.
2902 * hppa-hpux-tdep.c: Likewise.
2903 * hppa-linux-nat.c: Likewise.
2904 * hppanbsd-tdep.c: Likewise.
2905 * hppaobsd-tdep.c: Likewise.
2906 * i386-cygwin-tdep.c: Likewise.
2907 * i386-dicos-tdep.c: Likewise.
2908 * i386-linux-tdep.c: Likewise.
2909 * i386-nto-tdep.c: Likewise.
2910 * i386-sol2-tdep.c: Likewise.
2911 * i386-tdep.c: Likewise.
2912 * i386bsd-tdep.c: Likewise.
2913 * i386gnu-nat.c: Likewise.
2914 * i386nbsd-tdep.c: Likewise.
2915 * i386obsd-tdep.c: Likewise.
2916 * i387-tdep.c: Likewise.
2917 * ia64-libunwind-tdep.c: Likewise.
2918 * ia64-linux-nat.c: Likewise.
2919 * inf-child.c: Likewise.
2920 * inf-ptrace.c: Likewise.
2921 * inf-ttrace.c: Likewise.
2922 * infcall.c: Likewise.
2923 * infcmd.c: Likewise.
2924 * inflow.c: Likewise.
2925 * infrun.c: Likewise.
2926 * interps.c: Likewise.
2927 * iq2000-tdep.c: Likewise.
2928 * irix5-nat.c: Likewise.
2929 * jv-exp.y: Likewise.
2930 * jv-lang.c: Likewise.
2931 * jv-typeprint.c: Likewise.
2932 * jv-valprint.c: Likewise.
2933 * language.c: Likewise.
2934 * linux-fork.c: Likewise.
2935 * linux-nat.c: Likewise.
2936 * lm32-tdep.c: Likewise.
2937 * m2-exp.y: Likewise.
2938 * m2-typeprint.c: Likewise.
2939 * m32c-tdep.c: Likewise.
2940 * m32r-linux-nat.c: Likewise.
2941 * m32r-linux-tdep.c: Likewise.
2942 * m32r-rom.c: Likewise.
2943 * m32r-tdep.c: Likewise.
2944 * m68hc11-tdep.c: Likewise.
2945 * m68k-tdep.c: Likewise.
2946 * m68kbsd-tdep.c: Likewise.
2947 * m68klinux-nat.c: Likewise.
2948 * m68klinux-tdep.c: Likewise.
2949 * m88k-tdep.c: Likewise.
2950 * machoread.c: Likewise.
2951 * macrocmd.c: Likewise.
2953 * mdebugread.c: Likewise.
2954 * mem-break.c: Likewise.
2955 * memattr.c: Likewise.
2956 * memory-map.c: Likewise.
2957 * mep-tdep.c: Likewise.
2958 * mi/mi-cmd-break.c: Likewise.
2959 * mi/mi-cmd-disas.c: Likewise.
2960 * mi/mi-cmd-env.c: Likewise.
2961 * mi/mi-cmd-stack.c: Likewise.
2962 * mi/mi-cmd-var.c: Likewise.
2963 * mi/mi-cmds.c: Likewise.
2964 * mi/mi-console.c: Likewise.
2965 * mi/mi-getopt.c: Likewise.
2966 * mi/mi-interp.c: Likewise.
2967 * mi/mi-main.c: Likewise.
2968 * mi/mi-parse.c: Likewise.
2969 * microblaze-rom.c: Likewise.
2970 * microblaze-tdep.c: Likewise.
2971 * mingw-hdep.c: Likewise.
2972 * minidebug.c: Likewise.
2973 * minsyms.c: Likewise.
2974 * mips-irix-tdep.c: Likewise.
2975 * mips-linux-tdep.c: Likewise.
2976 * mips-tdep.c: Likewise.
2977 * mips64obsd-tdep.c: Likewise.
2978 * mipsnbsd-tdep.c: Likewise.
2979 * mipsread.c: Likewise.
2980 * mn10300-linux-tdep.c: Likewise.
2981 * mn10300-tdep.c: Likewise.
2982 * monitor.c: Likewise.
2983 * moxie-tdep.c: Likewise.
2984 * mt-tdep.c: Likewise.
2985 * nat/linux-btrace.c: Likewise.
2986 * nat/linux-osdata.c: Likewise.
2987 * nat/linux-procfs.c: Likewise.
2988 * nat/linux-ptrace.c: Likewise.
2989 * nat/linux-waitpid.c: Likewise.
2990 * nbsd-tdep.c: Likewise.
2991 * nios2-linux-tdep.c: Likewise.
2992 * nto-procfs.c: Likewise.
2993 * nto-tdep.c: Likewise.
2994 * objc-lang.c: Likewise.
2995 * objfiles.c: Likewise.
2996 * opencl-lang.c: Likewise.
2997 * osabi.c: Likewise.
2998 * osdata.c: Likewise.
2999 * p-exp.y: Likewise.
3000 * p-lang.c: Likewise.
3001 * p-typeprint.c: Likewise.
3002 * parse.c: Likewise.
3003 * posix-hdep.c: Likewise.
3004 * ppc-linux-nat.c: Likewise.
3005 * ppc-sysv-tdep.c: Likewise.
3006 * ppcfbsd-tdep.c: Likewise.
3007 * ppcnbsd-tdep.c: Likewise.
3008 * ppcobsd-tdep.c: Likewise.
3009 * printcmd.c: Likewise.
3010 * procfs.c: Likewise.
3011 * prologue-value.c: Likewise.
3012 * python/py-auto-load.c: Likewise.
3013 * python/py-gdb-readline.c: Likewise.
3014 * ravenscar-thread.c: Likewise.
3015 * regcache.c: Likewise.
3016 * registry.c: Likewise.
3017 * remote-fileio.c: Likewise.
3018 * remote-m32r-sdi.c: Likewise.
3019 * remote-mips.c: Likewise.
3020 * remote-notif.c: Likewise.
3021 * remote-sim.c: Likewise.
3022 * remote.c: Likewise.
3023 * reverse.c: Likewise.
3024 * rs6000-aix-tdep.c: Likewise.
3025 * ser-base.c: Likewise.
3026 * ser-go32.c: Likewise.
3027 * ser-mingw.c: Likewise.
3028 * ser-pipe.c: Likewise.
3029 * ser-tcp.c: Likewise.
3030 * ser-unix.c: Likewise.
3031 * serial.c: Likewise.
3032 * sh-tdep.c: Likewise.
3033 * sh64-tdep.c: Likewise.
3034 * shnbsd-tdep.c: Likewise.
3036 * sol-thread.c: Likewise.
3037 * solib-dsbt.c: Likewise.
3038 * solib-frv.c: Likewise.
3039 * solib-osf.c: Likewise.
3040 * solib-som.c: Likewise.
3041 * solib-spu.c: Likewise.
3042 * solib-target.c: Likewise.
3043 * solib.c: Likewise.
3044 * somread.c: Likewise.
3045 * source.c: Likewise.
3046 * sparc-nat.c: Likewise.
3047 * sparc-sol2-tdep.c: Likewise.
3048 * sparc-tdep.c: Likewise.
3049 * sparc64-tdep.c: Likewise.
3050 * sparc64fbsd-tdep.c: Likewise.
3051 * sparc64nbsd-tdep.c: Likewise.
3052 * sparcnbsd-tdep.c: Likewise.
3053 * spu-linux-nat.c: Likewise.
3054 * spu-multiarch.c: Likewise.
3055 * spu-tdep.c: Likewise.
3056 * stabsread.c: Likewise.
3057 * stack.c: Likewise.
3058 * std-regs.c: Likewise.
3059 * symfile.c: Likewise.
3060 * symmisc.c: Likewise.
3061 * symtab.c: Likewise.
3062 * target.c: Likewise.
3063 * thread.c: Likewise.
3064 * tilegx-linux-nat.c: Likewise.
3065 * tilegx-tdep.c: Likewise.
3067 * tracepoint.c: Likewise.
3068 * tui/tui-command.c: Likewise.
3069 * tui/tui-data.c: Likewise.
3070 * tui/tui-disasm.c: Likewise.
3071 * tui/tui-file.c: Likewise.
3072 * tui/tui-layout.c: Likewise.
3073 * tui/tui-out.c: Likewise.
3074 * tui/tui-regs.c: Likewise.
3075 * tui/tui-source.c: Likewise.
3076 * tui/tui-stack.c: Likewise.
3077 * tui/tui-win.c: Likewise.
3078 * tui/tui-windata.c: Likewise.
3079 * tui/tui-winsource.c: Likewise.
3080 * typeprint.c: Likewise.
3081 * ui-file.c: Likewise.
3082 * ui-out.c: Likewise.
3083 * user-regs.c: Likewise.
3084 * utils.c: Likewise.
3085 * v850-tdep.c: Likewise.
3086 * valarith.c: Likewise.
3087 * valops.c: Likewise.
3088 * valprint.c: Likewise.
3089 * value.c: Likewise.
3090 * varobj.c: Likewise.
3091 * vax-tdep.c: Likewise.
3092 * vaxnbsd-tdep.c: Likewise.
3093 * vaxobsd-tdep.c: Likewise.
3094 * windows-nat.c: Likewise.
3095 * xcoffread.c: Likewise.
3096 * xml-support.c: Likewise.
3097 * xstormy16-tdep.c: Likewise.
3098 * xtensa-linux-nat.c: Likewise.
3100 2014-08-07 Gary Benson <gbenson@redhat.com>
3102 * common/common-defs.h: Include gdb_assert.h.
3103 * aarch64-tdep.c: Do not include gdb_assert.h.
3104 * addrmap.c: Likewise.
3105 * aix-thread.c: Likewise.
3106 * alpha-linux-tdep.c: Likewise.
3107 * alpha-mdebug-tdep.c: Likewise.
3108 * alphanbsd-tdep.c: Likewise.
3109 * amd64-nat.c: Likewise.
3110 * amd64-tdep.c: Likewise.
3111 * amd64bsd-nat.c: Likewise.
3112 * amd64fbsd-nat.c: Likewise.
3113 * amd64fbsd-tdep.c: Likewise.
3114 * amd64nbsd-nat.c: Likewise.
3115 * amd64nbsd-tdep.c: Likewise.
3116 * amd64obsd-nat.c: Likewise.
3117 * amd64obsd-tdep.c: Likewise.
3118 * arch-utils.c: Likewise.
3119 * arm-tdep.c: Likewise.
3120 * armbsd-tdep.c: Likewise.
3122 * bcache.c: Likewise.
3123 * bfin-tdep.c: Likewise.
3124 * blockframe.c: Likewise.
3125 * breakpoint.c: Likewise.
3126 * bsd-kvm.c: Likewise.
3127 * bsd-uthread.c: Likewise.
3128 * buildsym.c: Likewise.
3129 * c-exp.y: Likewise.
3130 * c-lang.c: Likewise.
3131 * charset.c: Likewise.
3132 * cleanups.c: Likewise.
3133 * cli-out.c: Likewise.
3134 * cli/cli-decode.c: Likewise.
3135 * cli/cli-dump.c: Likewise.
3136 * cli/cli-logging.c: Likewise.
3137 * cli/cli-script.c: Likewise.
3138 * cli/cli-utils.c: Likewise.
3139 * coffread.c: Likewise.
3140 * common/common-utils.c: Likewise.
3141 * common/queue.h: Likewise.
3142 * common/signals.c: Likewise.
3143 * common/vec.h: Likewise.
3144 * complaints.c: Likewise.
3145 * completer.c: Likewise.
3146 * corelow.c: Likewise.
3147 * cp-abi.c: Likewise.
3148 * cp-name-parser.y: Likewise.
3149 * cp-namespace.c: Likewise.
3150 * cp-support.c: Likewise.
3151 * cris-tdep.c: Likewise.
3152 * dbxread.c: Likewise.
3153 * dictionary.c: Likewise.
3154 * doublest.c: Likewise.
3155 * dsrec.c: Likewise.
3156 * dummy-frame.c: Likewise.
3157 * dwarf2-frame-tailcall.c: Likewise.
3158 * dwarf2-frame.c: Likewise.
3159 * dwarf2expr.c: Likewise.
3160 * dwarf2loc.c: Likewise.
3161 * dwarf2read.c: Likewise.
3163 * event-loop.c: Likewise.
3164 * exceptions.c: Likewise.
3165 * expprint.c: Likewise.
3166 * f-valprint.c: Likewise.
3167 * fbsd-nat.c: Likewise.
3168 * findvar.c: Likewise.
3169 * frame-unwind.c: Likewise.
3170 * frame.c: Likewise.
3171 * frv-tdep.c: Likewise.
3172 * gcore.c: Likewise.
3173 * gdb-dlfcn.c: Likewise.
3174 * gdb_bfd.c: Likewise.
3175 * gdbarch.c: Likewise.
3176 * gdbarch.sh: Likewise.
3177 * gdbtypes.c: Likewise.
3178 * gnu-nat.c: Likewise.
3179 * gnu-v3-abi.c: Likewise.
3180 * go-lang.c: Likewise.
3181 * guile/scm-exception.c: Likewise.
3182 * guile/scm-gsmob.c: Likewise.
3183 * guile/scm-lazy-string.c: Likewise.
3184 * guile/scm-math.c: Likewise.
3185 * guile/scm-pretty-print.c: Likewise.
3186 * guile/scm-safe-call.c: Likewise.
3187 * guile/scm-utils.c: Likewise.
3188 * guile/scm-value.c: Likewise.
3189 * h8300-tdep.c: Likewise.
3190 * hppa-hpux-nat.c: Likewise.
3191 * hppa-tdep.c: Likewise.
3192 * hppanbsd-tdep.c: Likewise.
3193 * hppaobsd-tdep.c: Likewise.
3194 * i386-darwin-nat.c: Likewise.
3195 * i386-darwin-tdep.c: Likewise.
3196 * i386-nto-tdep.c: Likewise.
3197 * i386-tdep.c: Likewise.
3198 * i386bsd-nat.c: Likewise.
3199 * i386fbsd-tdep.c: Likewise.
3200 * i386gnu-nat.c: Likewise.
3201 * i386nbsd-tdep.c: Likewise.
3202 * i386obsd-tdep.c: Likewise.
3203 * i387-tdep.c: Likewise.
3204 * ia64-libunwind-tdep.c: Likewise.
3205 * ia64-tdep.c: Likewise.
3206 * inf-ptrace.c: Likewise.
3207 * inf-ttrace.c: Likewise.
3208 * infcall.c: Likewise.
3209 * infcmd.c: Likewise.
3210 * infrun.c: Likewise.
3211 * inline-frame.c: Likewise.
3212 * interps.c: Likewise.
3213 * jv-lang.c: Likewise.
3214 * jv-typeprint.c: Likewise.
3215 * linux-fork.c: Likewise.
3216 * linux-nat.c: Likewise.
3217 * linux-thread-db.c: Likewise.
3218 * m32c-tdep.c: Likewise.
3219 * m32r-linux-nat.c: Likewise.
3220 * m32r-tdep.c: Likewise.
3221 * m68k-tdep.c: Likewise.
3222 * m68kbsd-nat.c: Likewise.
3223 * m68kbsd-tdep.c: Likewise.
3224 * m88k-tdep.c: Likewise.
3225 * machoread.c: Likewise.
3226 * macroexp.c: Likewise.
3227 * macrotab.c: Likewise.
3228 * maint.c: Likewise.
3229 * mdebugread.c: Likewise.
3230 * memory-map.c: Likewise.
3231 * mep-tdep.c: Likewise.
3232 * mi/mi-common.c: Likewise.
3233 * microblaze-tdep.c: Likewise.
3234 * mingw-hdep.c: Likewise.
3235 * mips-linux-nat.c: Likewise.
3236 * mips-linux-tdep.c: Likewise.
3237 * mips-tdep.c: Likewise.
3238 * mips64obsd-tdep.c: Likewise.
3239 * mipsnbsd-tdep.c: Likewise.
3240 * mn10300-linux-tdep.c: Likewise.
3241 * mn10300-tdep.c: Likewise.
3242 * moxie-tdep.c: Likewise.
3243 * mt-tdep.c: Likewise.
3244 * nat/linux-btrace.c: Likewise.
3245 * nat/linux-osdata.c: Likewise.
3246 * nat/linux-ptrace.c: Likewise.
3247 * nat/mips-linux-watch.c: Likewise.
3248 * nios2-linux-tdep.c: Likewise.
3249 * nios2-tdep.c: Likewise.
3250 * objc-lang.c: Likewise.
3251 * objfiles.c: Likewise.
3252 * obsd-nat.c: Likewise.
3253 * opencl-lang.c: Likewise.
3254 * osabi.c: Likewise.
3255 * parse.c: Likewise.
3256 * ppc-linux-nat.c: Likewise.
3257 * ppc-sysv-tdep.c: Likewise.
3258 * ppcfbsd-nat.c: Likewise.
3259 * ppcfbsd-tdep.c: Likewise.
3260 * ppcnbsd-nat.c: Likewise.
3261 * ppcnbsd-tdep.c: Likewise.
3262 * ppcobsd-nat.c: Likewise.
3263 * ppcobsd-tdep.c: Likewise.
3264 * printcmd.c: Likewise.
3265 * procfs.c: Likewise.
3266 * prologue-value.c: Likewise.
3267 * psymtab.c: Likewise.
3268 * python/py-lazy-string.c: Likewise.
3269 * python/py-value.c: Likewise.
3270 * regcache.c: Likewise.
3271 * reggroups.c: Likewise.
3272 * registry.c: Likewise.
3273 * remote-sim.c: Likewise.
3274 * remote.c: Likewise.
3275 * rs6000-aix-tdep.c: Likewise.
3276 * rs6000-tdep.c: Likewise.
3277 * s390-linux-tdep.c: Likewise.
3278 * score-tdep.c: Likewise.
3279 * ser-base.c: Likewise.
3280 * ser-mingw.c: Likewise.
3281 * sh-tdep.c: Likewise.
3282 * sh64-tdep.c: Likewise.
3283 * solib-darwin.c: Likewise.
3284 * solib-spu.c: Likewise.
3285 * solib-svr4.c: Likewise.
3286 * source.c: Likewise.
3287 * sparc-nat.c: Likewise.
3288 * sparc-sol2-tdep.c: Likewise.
3289 * sparc-tdep.c: Likewise.
3290 * sparc64-sol2-tdep.c: Likewise.
3291 * sparc64-tdep.c: Likewise.
3292 * sparc64fbsd-tdep.c: Likewise.
3293 * sparc64nbsd-tdep.c: Likewise.
3294 * sparc64obsd-tdep.c: Likewise.
3295 * sparcnbsd-tdep.c: Likewise.
3296 * sparcobsd-tdep.c: Likewise.
3297 * spu-multiarch.c: Likewise.
3298 * spu-tdep.c: Likewise.
3299 * stabsread.c: Likewise.
3300 * stack.c: Likewise.
3301 * symfile.c: Likewise.
3302 * symtab.c: Likewise.
3303 * target-descriptions.c: Likewise.
3304 * target-memory.c: Likewise.
3305 * target.c: Likewise.
3306 * tic6x-linux-tdep.c: Likewise.
3307 * tic6x-tdep.c: Likewise.
3308 * tilegx-linux-nat.c: Likewise.
3309 * tilegx-tdep.c: Likewise.
3311 * tramp-frame.c: Likewise.
3312 * tui/tui-out.c: Likewise.
3313 * tui/tui-winsource.c: Likewise.
3314 * ui-out.c: Likewise.
3315 * user-regs.c: Likewise.
3316 * utils.c: Likewise.
3317 * v850-tdep.c: Likewise.
3318 * valops.c: Likewise.
3319 * value.c: Likewise.
3320 * varobj.c: Likewise.
3321 * vax-nat.c: Likewise.
3322 * xml-syscall.c: Likewise.
3323 * xml-tdesc.c: Likewise.
3324 * xstormy16-tdep.c: Likewise.
3325 * xtensa-linux-nat.c: Likewise.
3326 * xtensa-tdep.c: Likewise.
3328 2014-08-07 Gary Benson <gbenson@redhat.com>
3330 * common/common-defs.h: Include common-utils.h.
3331 * defs.h: Do not include common-utils.h.
3332 * common/gdb_assert.h: Likewise.
3333 * darwin-nat.h: Likewise.
3334 * nat/linux-btrace.c: Likewise.
3335 * target/waitstatus.h: Likewise.
3337 2014-08-07 Gary Benson <gbenson@redhat.com>
3339 * common/common-defs.h: Include ptid.h.
3340 * defs.h: Do not include ptid.h.
3341 * inferior.h: Likewise.
3342 * infrun.h: Likewise.
3343 * nat/linux-btrace.h: Likewise.
3344 * nat/linux-osdata.h: Likewise.
3345 * target/waitstatus.h: Likewise.
3347 2014-08-07 Gary Benson <gbenson@redhat.com>
3349 * common/common-defs.h: Include gdb_locale.h.
3350 * defs.h: Do not include gdb_locale.h.
3352 2014-08-07 Gary Benson <gbenson@redhat.com>
3354 * common/common-defs.h: Include gdb/signals.h.
3355 * defs.h: Do not include gdb/signals.h.
3357 2014-08-07 Gary Benson <gbenson@redhat.com>
3359 * common/common-defs.h: Include pathmax.h.
3360 * defs.h: Do not include pathmax.h.
3362 2014-08-07 Gary Benson <gbenson@redhat.com>
3364 * common/common-defs.h: Include libiberty.h.
3365 * defs.h: Do not include libiberty.h.
3366 * common/queue.h: Likewise.
3367 * cp-name-parser.y: Likewise.
3368 * mi/mi-cmd-catch.c: Likewise.
3369 * python/python.c: Likewise.
3371 2014-08-07 Gary Benson <gbenson@redhat.com>
3373 * common/common-defs.h: Include ansidecl.h.
3374 * defs.h: Do not include ansidecl.h.
3375 * common/buffer.h: Likewise.
3376 * common/common-utils.h: Likewise.
3378 2014-08-07 Gary Benson <gbenson@redhat.com>
3380 * common/common-defs.h: Include stddef.h.
3381 * defs.h: Do not include stddef.h.
3382 * common/common-utils.h: Likewise.
3383 * amd64fbsd-nat.c: Likewise.
3384 * bcache.c: Likewise.
3385 * charset.c: Likewise.
3386 * common/buffer.h: Likewise.
3387 * common/vec.h: Likewise.
3388 * i386bsd-nat.c: Likewise.
3389 * nat/linux-btrace.h: Likewise.
3390 * ppcfbsd-nat.c: Likewise.
3391 * ppcnbsd-tdep.h: Likewise.
3392 * ppcobsd-nat.c: Likewise.
3393 * ppcobsd-tdep.h: Likewise.
3394 * python/py-gdb-readline.c: Likewise.
3396 2014-08-07 Gary Benson <gbenson@redhat.com>
3398 * common/common-defs.h: Include stdarg.h.
3399 * defs.h: Do not include stdarg.h.
3400 * ada-lang.c: Likewise.
3401 * common/common-utils.h: Likewise.
3402 * guile/scm-string.c: Likewise.
3403 * guile/scm-utils.c: Likewise.
3404 * m32c-tdep.c: Likewise.
3406 2014-08-07 Gary Benson <gbenson@redhat.com>
3408 * common/common-defs.h: Include stdlib.h.
3409 * defs.h: Do not include stdlib.h.
3410 * addrmap.c: Likewise.
3411 * bcache.c: Likewise.
3412 * common/buffer.c: Likewise.
3413 * common/common-utils.c: Likewise.
3414 * cp-name-parser.y: Likewise.
3415 * go32-nat.c: Likewise.
3416 * mn10300-linux-tdep.c: Likewise.
3417 * nat/linux-osdata.c: Likewise.
3418 * tui/tui.c: Likewise.
3419 * windows-nat.c: Likewise.
3421 2014-08-07 Gary Benson <gbenson@redhat.com>
3423 * common/common-defs.h: Include stdio.h.
3424 * defs.h: Do not include stdio.h.
3425 * ada-lang.c: Likewise.
3426 * common/buffer.c: Likewise.
3427 * common/common-utils.c: Likewise.
3428 * cp-name-parser.y: Likewise.
3429 * gnu-nat.c: Likewise.
3430 * go32-nat.c: Likewise.
3431 * i386gnu-nat.c: Likewise.
3432 * proc-api.c: Likewise.
3433 * proc-events.c: Likewise.
3434 * proc-flags.c: Likewise.
3435 * proc-why.c: Likewise.
3436 * python/python-internal.h: Likewise.
3437 * target-memory.c: Likewise.
3438 * tui/tui-io.c: Likewise.
3439 * tui/tui.c: Likewise.
3441 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3443 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3444 (scan_dyntag_auxv): Same.
3446 2014-08-06 Yao Qi <yao@codesourcery.com>
3448 * amd64-linux-nat.c: Remove duplicated include
3450 * i386-linux-nat.c: Likewise.
3452 2014-08-06 Yao Qi <yao@codesourcery.com>
3454 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3455 operand" with "Special opcode" in comments.
3457 2014-08-05 Gary Benson <gbenson@redhat.com>
3459 * interps.c (initialize_interps): Remove prototype.
3460 (interpreter_initialized): Remove static global.
3461 (interp_add): Do not call initialize_interps.
3462 (initialize_interps): Remove function.
3464 2014-08-05 Gary Benson <gbenson@redhat.com>
3466 * utils.c (vwarning): Remove spurious va_end.
3468 2014-08-05 Alan Modra <amodra@gmail.com>
3470 * charset.c (convert_between_encodings): Cast result of obstack_base.
3471 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3472 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3473 (read_unwind_info): Use size_t for some locals.
3474 * jit.c (finalize_symtab): Likewise.
3475 * utils.c (hashtab_obstack_allocate): Likewise.
3476 * symmisc.c (print_objfile_statistics): Update format strings.
3478 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3480 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3481 (Changes in GDB 7.8): ... here.
3483 2014-08-04 Tom Tromey <tromey@redhat.com>
3485 * target.c (set_targetdebug): New function.
3486 (initialize_targets): Pass set_targetdebug when creating "set
3489 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3491 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3492 if detecting a variable-sized field that is not the last field.
3493 Fix struct type length computation.
3495 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3497 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3500 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3502 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3503 Remove "+ 8" offset in computation of CHAIN_VMA.
3505 2014-07-31 Doug Evans <dje@google.com>
3507 * inflow.c (child_terminal_inferior): Add comment.
3508 (child_terminal_ours_for_output): Add comment.
3509 (child_terminal_ours): Add comment.
3510 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3511 (linux_nat_terminal_ours): Add comment.
3513 2014-07-31 Gary Benson <gbenson@redhat.com>
3515 * common/btrace-common.h: Do not include defs.h or server.h.
3516 * nat/mips-linux-watch.h: Likewise.
3517 * gdb-dlfcn.h: Do not include defs.h.
3518 * tracefile.h: Likewise.
3520 2014-07-30 Roland McGrath <mcgrathr@google.com>
3522 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3524 2014-07-30 Tom Tromey <tromey@redhat.com>
3526 * bsd-kvm.c (bsd_kvm_open): Constify.
3527 * corelow.c (core_open): Constify.
3528 * ctf.c (ctf_open): Constify.
3529 * dbug-rom.c (dbug_open): Constify.
3530 * exec.c (exec_open): Constify.
3531 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3532 * microblaze-rom.c (picobug_open): Constify.
3533 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3535 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3536 * record-btrace.c (record_btrace_open): Constify.
3537 * record-full.c (record_full_core_open_1, record_full_open_1)
3538 (record_full_open): Constify.
3539 * remote-m32r-sdi.c (m32r_open): Constify.
3540 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3541 (rockhopper_open, lsi_open): Constify.
3542 * remote-sim.c (gdbsim_open): Constify.
3543 * remote.c (remote_open, extended_remote_open, remote_open_1):
3545 * target.h (struct target_ops) <to_open>: Make "arg" const.
3546 * tracefile-tfile.c (tfile_open): Constify.
3548 2014-07-30 Tom Tromey <tromey@redhat.com>
3550 * breakpoint.c (map_breakpoint_numbers): Update.
3551 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3552 (get_number_const): New function.
3553 (get_number): Rewrite using get_number_const.
3554 (init_number_or_range): Make "string" const.
3555 (number_is_in_list): Make "list" const.
3556 * cli/cli-utils.h (get_number_const): Declare.
3557 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3558 (init_number_or_range, number_is_in_list): Update.
3559 * printcmd.c (map_display_numbers): Update.
3560 * value.c (value_from_history_ref): Constify.
3561 * value.h (value_from_history_ref): Update.
3563 2014-07-30 Tom Tromey <tromey@redhat.com>
3565 * corefile.c (hook_type, call_extra_exec_file_hooks)
3566 (specify_exec_file_hook): Constify.
3567 * exec.c (exec_file_attach): Make "filename" const.
3568 * gdbcore.h (deprecated_exec_file_display_hook)
3569 (specify_exec_file_hook, exec_file_attach): Constify.
3570 * main.c (captured_main): Use catch_command_errors_const.
3572 2014-07-30 Tom Tromey <tromey@redhat.com>
3574 * target.c (open_target): New function.
3575 (add_target_with_completer, add_deprecated_target_alias): Use
3576 set_cmd_sfunc, set_cmd_context.
3577 (debug_to_open): Remove.
3578 (setup_target_debug): Update.
3580 2014-07-30 Yao Qi <yao@codesourcery.com>
3582 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3584 * parse.c (exp_iterate): Update comments.
3586 2014-07-30 Gary Benson <gbenson@redhat.com>
3588 * common/common-defs.h: New file.
3589 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3590 * defs.h: Include common-defs.h.
3591 Do not include config.h or build-gnulib/config.h.
3593 2014-07-30 Gary Benson <gbenson@redhat.com>
3595 * common/common-utils.h: Do not include config.h.
3596 * nat/linux-btrace.h: Likewise.
3598 2014-07-30 Gary Benson <gbenson@redhat.com>
3600 * btrace.c: Include defs.h.
3601 * common/ptid.c: Include defs.h or server.h as appropriate.
3602 * nat/mips-linux-watch.c: Likewise.
3604 2014-07-29 Tom Tromey <tromey@redhat.com>
3606 * target.c (target_is_pushed): Simplify.
3608 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3612 2014-07-29 Yao Qi <yao@codesourcery.com>
3615 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3617 2014-07-28 Doug Evans <xdje42@gmail.com>
3620 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3621 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3624 2014-07-28 Will Newton <will.newton@linaro.org>
3626 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3627 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3628 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3629 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3630 (THUMB2_EABI_SYSCALL): Likewise.
3631 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3633 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3634 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3636 2014-07-27 Doug Evans <xdje42@gmail.com>
3638 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3640 2014-07-27 Doug Evans <xdje42@gmail.com>
3642 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3644 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3645 Doug Evans <xdje42@gmail.com>
3648 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3649 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3650 * configure.ac: Try to use guild to compile an scm file, if it fails
3651 then disable guile support.
3652 * configure: Regenerate.
3653 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3655 (GUILE_COMPILED_FILES): New variable.
3656 (GUILE_FILES) Update.
3657 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3658 (stamp-guile): Compile scm files.
3659 * guile/guile.c (boot_guile_support): New function.
3660 (standard_throw_args_p): New function.
3661 (print_standard_throw_error, print_throw_error): New functions.
3662 (handle_boot_error): New function.
3663 (initialize_scheme_side): Rewrite to call boot_guile_support.
3664 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3665 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3667 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3668 Doug Evans <xdje42@gmail.com>
3671 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3672 * guile/lib/gdb/support.scm: New file.
3673 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3674 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3676 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3678 (%assert-type): Ditto, and renamed to assert-type.
3679 (%exception-print-style): Delete.
3681 2014-07-26 Doug Evans <xdje42@gmail.com>
3684 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3685 * configure: Regenerate.
3686 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3688 (PYTHON_FILES): New variable.
3689 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3690 (GUILE_FILES): New variable.
3691 (stamp-python, install-python, uninstall-python): Handle empty
3693 (stamp-guile, install-guile, uninstall-guile): Ditto.
3695 2014-07-26 Doug Evans <xdje42@gmail.com>
3698 * guile/lib/gdb.scm (pretty-printers): Export.
3699 (set-pretty-printers!): Export.
3700 * guile/lib/gdb/printing.scm (gdb module): Update.
3701 (prepend-pretty-printer!, append-pretty-printer!): Update.
3702 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3703 (pretty_printer_list_var): Delete.
3704 (pretty_printer_list): New static global.
3705 (gdbscm_pretty_printers): New function.
3706 (gdbscm_set_pretty_printers_x): New function.
3707 (ppscm_find_pretty_printer_from_gdb): Update.
3708 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3709 (gdbscm_initialize_pretty_printers): Update.
3711 2014-07-26 Doug Evans <xdje42@gmail.com>
3714 * configure.ac: Add check for header gc/gc.h.
3715 Add check for function setenv.
3716 * configure: Regenerate.
3717 * config.in: Regenerate.
3718 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3720 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3722 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3723 variation in gdbarch matching.
3725 2014-07-25 Tom Tromey <tromey@redhat.com>
3727 * exec.c (using_exec_ops): Remove.
3728 (exec_close_1): Update. Remove extraneous block, reindent.
3729 (add_target_sections): Use target_is_pushed.
3731 2014-07-25 Pedro Alves <palves@redhat.com>
3733 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3734 * monitor.c (monitor_create_inferior): Likewise.
3735 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3736 * remote-sim.c (gdbsim_create_inferior): Likewise.
3737 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3738 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3739 * windows-nat.c (do_initial_windows_stuff): Likewise.
3741 2014-07-25 Pedro Alves <palves@redhat.com>
3743 * NEWS: Mention signal passing and "signal" command changes.
3744 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3746 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3748 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3749 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3750 (jump_command): Adjust clear_proceed_status call.
3751 (signal_command): Warn if other thread that are resumed have
3752 signals that will be delivered. Adjust clear_proceed_status call.
3753 (until_next_command, finish_command)
3754 (proceed_after_attach_callback, attach_command_post_wait)
3755 (attach_command): Adjust clear_proceed_status call.
3756 * infrun.c (proceed_after_vfork_done): Likewise.
3757 (proceed_after_attach_callback): Adjust comment.
3758 (clear_proceed_status_thread): Clear stop_signal if not in pass
3760 (clear_proceed_status_callback): Delete.
3761 (clear_proceed_status): New 'step' parameter. Only clear the
3762 proceed status of threads the command being prepared is about to
3764 (proceed): If passed in an explicit signal, override stop_signal
3765 with it. Don't pass the last stop signal to the thread we're
3767 (init_wait_for_inferior): Adjust clear_proceed_status call.
3768 (switch_back_to_stepped_thread): Clear the signal if it should not
3770 * infrun.h (clear_proceed_status): New 'step' parameter.
3771 (user_visible_resume_ptid): Add comment.
3772 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3773 signal is in pass state.
3774 * remote.c (append_pending_thread_resumptions): Likewise.
3775 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3777 2014-07-25 Tom Tromey <tromey@redhat.com>
3779 * target.h (target_stopped_data_address)
3780 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3783 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3785 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3787 (avr_pointer_to_address): Likewise.
3789 2014-07-24 Tom Tromey <tromey@redhat.com>
3791 * monitor.c (compile_pattern): Update.
3792 * target.h (struct target_ops) <to_shortname, to_longname,
3795 2014-07-24 Tom Tromey <tromey@redhat.com>
3797 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3798 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3799 (add_info_alias, add_com): Make "doc" const.
3800 (print_doc_line): Make "str" const.
3801 (delete_cmd): Update.
3802 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3803 (print_doc_line): Update.
3804 * cli/cli-script.c (document_command): Update.
3805 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3806 (add_com, add_info, add_info_alias): Update.
3807 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3808 * python/py-cmd.c (cmdpy_destroyer): Update.
3810 2014-07-24 Tom Tromey <tromey@redhat.com>
3812 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3813 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3814 (help_cmd_list): Constify.
3815 (lookup_cmd): Update.
3816 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3818 (help_cmd_list, apropos_cmd): Update.
3819 * cli/cli-script.c (show_user): Update.
3820 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3821 * cli/cli-setshow.h (cmd_show_list): Update.
3822 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3823 (cmd_show_list): Update.
3824 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3825 * python/py-cmd.c (cmdpy_destroyer): Update.
3827 2014-07-24 Tom Tromey <tromey@redhat.com>
3829 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3830 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3832 * command.h (deprecate_cmd): Update.
3833 * maint.c (maintenance_do_deprecate): Add casts.
3835 2014-07-24 Tom Tromey <tromey@redhat.com>
3837 * cli/cli-decode.c (help_cmd): Make parameter "const".
3838 * cli/cli-decode.h (help_cmd): Update.
3840 2014-07-24 Tom Tromey <tromey@redhat.com>
3842 * stack.c (up_silently_base, down_silently_base): Make argument
3845 2014-07-24 Tom Tromey <tromey@redhat.com>
3847 * solib.c (solib_add): Make "pattern" const.
3848 * solib.h (solib_add): Update.
3850 2014-07-24 Tom Tromey <tromey@redhat.com>
3852 * remote.c (remote_serial_open, print_packet, putpkt)
3853 (putpkt_binary): Constify.
3854 * remote.h (putpkt): Update.
3856 2014-07-24 Tom Tromey <tromey@redhat.com>
3858 * monitor.c (monitor_open): Make "args" const.
3859 * monitor.h (monitor_open): Update.
3861 2014-07-24 Tom Tromey <tromey@redhat.com>
3863 * maint.c (match_bfd_flags): Make "string" const.
3864 (print_bfd_section_info): Remove casts.
3865 (print_objfile_section_info): Make "string" const.
3867 2014-07-24 Tom Tromey <tromey@redhat.com>
3869 * inf-child.c (inf_child_open_target): Make "arg" const.
3870 * inf-child.h (inf_child_open_target): Update.
3872 2014-07-24 Tom Tromey <tromey@redhat.com>
3874 * environ.c (unset_in_environ): Make "var" const.
3875 * environ.h (unset_in_environ): Update.
3877 2014-07-24 Tom Tromey <tromey@redhat.com>
3879 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3881 (scan_filename_with_cleanup): Likewise.
3882 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3883 Make arguments const.
3884 (restore_command): Update.
3886 2014-07-24 Pedro Alves <palves@redhat.com>
3888 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3890 2014-07-24 Tom Tromey <tromey@redhat.com>
3891 Gary Benson <gbenson@redhat.com>
3893 * nat/linux-ptrace.c (additional_flags): New global.
3894 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3895 additional_flags; don't check GDBSERVER.
3896 (linux_ptrace_set_additional_flags): New function.
3897 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3899 * linux-nat.c (_initialize_linux_nat): Call
3900 linux_ptrace_set_additional_flags.
3902 2014-07-24 Tom Tromey <tromey@redhat.com>
3904 * make-target-delegates (munge_type, write_debugmethod): New
3906 (debug_names): New global.
3907 ($TARGET_DEBUG_PRINTER): New global.
3908 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3910 Write debug methods. Generate init_debug_target.
3911 * target-debug.h: New file.
3912 * target-delegates.c: Rebuild.
3913 * target.c: Include target-debug.h.
3914 (debug_target): Hoist definition.
3915 (target_kill, target_get_section_table, target_memory_map)
3916 (target_flash_erase, target_flash_done, target_detach)
3917 (target_disconnect, target_wait, target_resume)
3918 (target_pass_signals, target_program_signals, target_follow_fork)
3919 (target_mourn_inferior, target_search_memory)
3920 (target_thread_address_space, target_close)
3921 (target_find_new_threads, target_core_of_thread)
3922 (target_verify_memory, target_insert_mask_watchpoint)
3923 (target_remove_mask_watchpoint): Remove targetdebug code.
3924 (debug_to_post_attach, debug_to_prepare_to_store)
3925 (debug_to_files_info, debug_to_insert_breakpoint)
3926 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3927 (debug_to_region_ok_for_hw_watchpoint)
3928 (debug_to_can_accel_watchpoint_condition)
3929 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3930 (debug_to_watchpoint_addr_within_range)
3931 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3932 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3933 (debug_to_terminal_init, debug_to_terminal_inferior)
3934 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3935 (debug_to_terminal_save_ours, debug_to_terminal_info)
3936 (debug_to_load, debug_to_post_startup_inferior)
3937 (debug_to_insert_fork_catchpoint)
3938 (debug_to_remove_fork_catchpoint)
3939 (debug_to_insert_vfork_catchpoint)
3940 (debug_to_remove_vfork_catchpoint)
3941 (debug_to_insert_exec_catchpoint)
3942 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3943 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3944 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3945 (setup_target_debug): Call init_debug_target.
3946 * target.h (TARGET_DEBUG_PRINTER): New macro.
3947 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3948 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3950 2014-07-24 Gary Benson <gbenson@redhat.com>
3952 * exceptions.h (throw_vfatal): Renamed to...
3953 (throw_vquit): New declaration.
3954 (throw_quit): Likewise.
3955 * exceptions.c (throw_vfatal): Renamed to...
3956 (throw_vquit): New function.
3957 (throw_quit): Likewise.
3958 (throw_error): Call throw_verror rather than throw_it.
3959 * utils.h (vfatal): Removed.
3961 * utils.c (vfatal): Removed.
3963 (internal_verror): Replaced call to fatal with call to throw_quit.
3964 (quit): Replaced calls to fatal with calls to throw_quit.
3966 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3968 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3971 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3973 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3974 less than zero in conditional expression.
3976 2014-07-23 Tom Tromey <tromey@redhat.com>
3978 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3979 ($INTRO_PART): Don't match whitespace.
3980 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3982 ($METHOD): Add $METHOD_TRAILER.
3984 (scan_target_h): New sub.
3985 Change main loop not to collect state.
3986 * target-delegates.c: Rebuild.
3988 2014-07-23 Gary Benson <gbenson@redhat.com>
3990 * cp-support.c (gdb_demangle): Fix build on systems without
3993 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3995 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3996 for reference entry value target data value.
3998 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4000 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4001 value_available_contents_eq.
4003 2014-07-22 Pedro Alves <palves@redhat.com>
4005 * value.c (allocate_optimized_out_value): Don't mark value as
4008 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4010 * MAINTAINERS (Write After Approval): Update my email address.
4012 2014-07-20 Doug Evans <dje@google.com>
4015 * remote.c (putpkt_binary): Add text to error message.
4017 2014-07-20 Yao Qi <yao@codesourcery.com>
4019 * eval.c: Remove "Chill" from comments.
4020 * gdbtypes.h: Likewise.
4021 * symtab.h: Likewise.
4023 2014-07-20 Yao Qi <yao@codesourcery.com>
4025 * std-operator.def: Update comments to TERNOP_SLICE.
4027 2014-07-20 Yao Qi <yao@codesourcery.com>
4029 * std-operator.def: Remove BINOP_RANGE.
4030 * breakpoint.c (watchpoint_exp_is_const): Update.
4031 * expprint.c (dump_subexp_body_standard): Likewise.
4032 * eval.c (init_array_element): Remove dead code.
4033 (evaluate_subexp_standard): Likewise.
4035 2014-07-20 Yao Qi <yao@codesourcery.com>
4037 * std-operator.def: Remove BINOP_IN.
4038 * breakpoint.c (watchpoint_exp_is_const): Update.
4039 * eval.c (evaluate_subexp_standard): Likewise.
4040 * expprint.c (dump_subexp_body_standard): Likewise.
4042 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4044 * microblaze-tdep.c (microblaze_register_names): Add
4045 the rshr and rslr register names.
4046 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4047 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4048 Use of tdesc_numbered_register. Use of
4049 microblaze_register_g_packet_guesses. Use of
4050 tdesc_use_registers. Use of set_gdbarch_register_type.
4051 (microblaze_register_g_packet_guesses): New.
4052 * microblaze-tdep.h (microblaze_reg_num): Add
4053 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4054 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4055 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4056 * features/microblaze-core.xml: New file.
4057 * features/microblaze-stack-protect.xml: New file.
4058 * features/microblaze-with-stack-protect.c: New file.
4059 * features/microblaze-with-stack-protect.xml: New file.
4060 * features/microblaze.xml: New file.
4061 * features/microblaze.c: New file.
4062 * features/Makefile (microblaze-with-stack-protect): Add
4063 microblaze-with-stack-protect microblaze and microblaze-expedite.
4064 * regformats/microblaze-with-stack-protect.dat: New file.
4065 * regformats/microblaze.dat: New file.
4066 * doc/gdb.texinfo (MicroBlaze Features): Added.
4068 2014-07-18 Tom Tromey <tromey@redhat.com>
4070 * exec.c (exec_ops): Now static.
4071 * exec.h (exec_ops): Don't declare.
4073 2014-07-18 Tom Tromey <tromey@redhat.com>
4075 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4076 to find_target_beneath.
4077 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4078 find_target_beneath.
4079 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4081 2014-07-18 Tom Tromey <tromey@redhat.com>
4084 * utils.c (quit): Use target_supports_terminal_ours.
4085 * target.h (target_supports_terminal_ours): Declare.
4086 * target.c (target_supports_delete_record): Don't check
4087 to_delete_record against NULL.
4088 (target_supports_terminal_ours): New function.
4090 2014-07-18 Tom Tromey <tromey@redhat.com>
4093 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4094 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4095 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4096 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4097 * windows-nat.c (windows_xfer_partial): Always delegate.
4098 * record-btrace.c (record_btrace_xfer_partial): Simplify
4100 (record_btrace_fetch_registers, record_btrace_store_registers)
4101 (record_btrace_prepare_to_store, record_btrace_resume)
4102 (record_btrace_wait, record_btrace_find_new_threads)
4103 (record_btrace_thread_alive): Likewise.
4104 * procfs.c (procfs_xfer_partial): Always delegate.
4105 * corelow.c (core_xfer_partial): Always delegate.
4106 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4108 2014-07-18 Tom Tromey <tromey@redhat.com>
4110 * exec.c (exec_make_note_section): Move earlier.
4112 2014-07-17 Doug Evans <dje@google.com>
4115 * maint.c (count_symtabs_and_blocks): Handle NULL
4116 current_program_space.
4117 (report_command_stats): Check global enabled flag in addition to
4118 recorded enabled flag.
4119 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4121 2014-07-16 Pedro Alves <palves@redhat.com>
4123 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4125 2014-07-16 Tom Tromey <tromey@redhat.com>
4127 * target.h (struct target_ops) <to_delete_record>: Reformat
4130 2014-07-16 Tom Tromey <tromey@redhat.com>
4132 * target-delegates.c: Rebuild.
4134 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4136 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4137 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4138 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4139 (avr_pointer_to_address): Likewise.
4140 (avr_address_class_type_flags): New function.
4141 (avr_address_class_type_flags_to_name): Likewise.
4142 (avr_address_class_name_to_type_flags): Likewise.
4143 (avr_gdbarch_init): Set address_class_type_flags,
4144 address_class_type_flags_to_name and
4145 address_class_name_to_type_flags.
4147 2014-07-15 Pedro Alves <palves@redhat.com>
4149 * linux-nat.c (kill_callback): Save errno and work with saved
4152 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4154 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4156 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4158 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4159 breakpoint support correctly.
4161 2014-07-14 Pedro Alves <palves@redhat.com>
4163 * utils.c (prompt_for_continue): Call target_terminal_ours.
4165 2014-07-14 Pedro Alves <palves@redhat.com>
4167 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4168 catch_errors. Don't re-enable stdin or notify observers where,
4170 (fetch_inferior_event_wrapper): Delete.
4172 2014-07-14 Pedro Alves <palves@redhat.com>
4175 * top.c: Include "inf-loop.h".
4176 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4178 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4180 (gdb_readline_wrapper): Store whether the target is async, and
4183 2014-07-14 Pedro Alves <palves@redhat.com>
4186 * top.c (gdb_readline_wrapper_line): Tweak comment.
4187 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4188 the input handler callback.
4190 2014-07-14 Pedro Alves <palves@redhat.com>
4193 * main.c: Include event-top.h.
4194 (handle_command_errors): New function.
4195 (catch_command_errors, catch_command_errors_const): Use it.
4197 2014-07-14 Pedro Alves <palves@redhat.com>
4199 * exceptions.c (catch_command_errors, catch_command_errors_const):
4201 * exceptions.h (catch_command_errors_ftype)
4202 (catch_command_errors_const_ftype): Moved to main.c.
4203 (catch_command_errors, catch_command_errors_const): Delete
4205 * main.c (catch_command_errors_ftype)
4206 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4207 (catch_command_errors, catch_command_errors_const)): Moved here
4208 from exceptions.c and make static.
4210 2014-07-14 Pedro Alves <palves@redhat.com>
4212 * exceptions.c (print_any_exception): Delete.
4213 (catch_exceptions_with_msg): Use exception_print instead of
4214 print_any_exception.
4215 (catch_errors): Use exception_fprintf instead of
4216 print_any_exception.
4217 (catch_command_errors, catch_command_errors_const): Use
4218 exception_print instead of print_any_exception.
4220 2014-07-14 Pedro Alves <palves@redhat.com>
4222 * infcall.c (run_inferior_call): Set 'sync_execution' while
4223 running the inferior call.
4225 2014-07-14 Pedro Alves <palves@redhat.com>
4227 * value.c (value_contents_equal): Delete function.
4228 * value.h (value_contents_equal): Delete declaration.
4230 2014-07-14 Tom Tromey <tromey@redhat.com>
4233 * gdbtypes.c (is_dynamic_type_internal): New function, from
4235 (is_dynamic_type): Rewrite.
4236 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4237 (resolve_dynamic_struct): Likewise.
4238 (resolve_dynamic_type_internal): New function, from
4239 resolve_dynamic_type.
4240 (resolve_dynamic_type): Rewrite.
4242 2014-07-14 Tom Tromey <tromey@redhat.com>
4244 * target.c (target_require_runnable): Also check record_stratum.
4247 2014-07-11 Yao Qi <yao@codesourcery.com>
4249 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4250 thumb_instruction_restores_sp return true.
4252 2014-07-11 Yao Qi <yao@codesourcery.com>
4254 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4255 (thumb_in_function_epilogue_p): Call
4256 thumb_instruction_restores_sp.
4258 2014-07-11 Yao Qi <yao@codesourcery.com>
4260 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4262 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4264 2014-07-11 Gary Benson <gbenson@redhat.com>
4266 * amd64-linux-nat.c (gdbcore.h): Remove include.
4267 (regset.h): Likewise.
4268 (nat/linux-btrace.h): Likewise.
4269 (btrace.h): Likewise.
4270 (gdb_assert.h): Likewise.
4271 (string.h): Likewise.
4272 (sys/uio.h): Likewise.
4273 (sys/debugreg.h): Likewise.
4274 (sys/syscall.h): Likewise.
4275 (sys/procfs.h): Likewise.
4276 (sys/user.h): Likewise.
4277 (asm/ptrace.h): Likewise.
4278 (i386-nat.h): Likewise.
4279 * i386-linux-nat.c (i386-nat.h): Likewise.
4280 (regset.h): Likewise.
4281 (target.h): Likewise.
4282 (linux-nat.h): Likewise.
4283 (nat/linux-btrace.h): Likewise.
4284 (btrace.h): Likewise.
4285 (gdb_assert.h): Likewise.
4286 (string.h): Likewise.
4287 (sys/uio.h): Likewise.
4288 (sys/user.h): Likewise.
4289 (sys/procfs.h): Likewise.
4290 (sys/reg.h): Likewise.
4291 (sys/debugreg.h): Likewise.
4292 (ORIG_EAX): Remove definition.
4294 2014-07-11 Gary Benson <gbenson@redhat.com>
4296 * i386-linux-nat.h: New file.
4297 * x86-linux-nat.h: Likewise.
4298 * x86-linux-nat.c: Likewise.
4299 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4300 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4301 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4302 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4303 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4304 (PTRACE_SETREGSET): Likewise.
4305 (arch_lwp_info): Now in x86-linux-nat.c.
4306 (have_ptrace_getregset): Now in x86-linux-nat.h.
4307 (x86_linux_dr_get): Now in x86-linux-nat.c.
4308 (x86_linux_dr_set): Likewise.
4309 (x86_linux_dr_get_addr): Likewise.
4310 (x86_linux_dr_get_control): Likewise.
4311 (x86_linux_dr_get_status): Likewise.
4312 (update_debug_registers_callback): Likewise.
4313 (x86_linux_dr_set_control): Likewise.
4314 (x86_linux_dr_set_addr): Likewise.
4315 (x86_linux_prepare_to_resume): Likewise.
4316 (x86_linux_new_thread): Likewise.
4317 (x86_linux_new_fork): Likewise.
4318 (x86_linux_get_thread_area): Likewise.
4319 (super_post_startup_inferior): Likewise.
4320 (x86_linux_child_post_startup_inferior): Likewise.
4321 (AMD64_LINUX_USER64_CS): Likewise.
4322 (AMD64_LINUX_X32_DS): Likewise.
4323 (x86_linux_read_description): Likewise.
4324 (x86_linux_enable_btrace): Likewise.
4325 (x86_linux_disable_btrace): Likewise.
4326 (x86_linux_teardown_btrace): Likewise.
4327 (x86_linux_read_btrace): Likewise.
4328 (x86_linux_create_target): Likewise.
4329 (x86_linux_add_target): Likewise.
4330 * i386-linux-nat.c (x86-linux-nat.h): New include.
4331 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4332 (PTRACE_SETREGSET): Likewise.
4333 (arch_lwp_info): Now in x86-linux-nat.c.
4334 (have_ptrace_getregset): Now in x86-linux-nat.h.
4335 (x86_linux_dr_get): Now in x86-linux-nat.c.
4336 (x86_linux_dr_set): Likewise.
4337 (x86_linux_dr_get_addr): Likewise.
4338 (x86_linux_dr_get_control): Likewise.
4339 (x86_linux_dr_get_status): Likewise.
4340 (update_debug_registers_callback): Likewise.
4341 (x86_linux_dr_set_control): Likewise.
4342 (x86_linux_dr_set_addr): Likewise.
4343 (x86_linux_prepare_to_resume): Likewise.
4344 (x86_linux_new_thread): Likewise.
4345 (x86_linux_new_fork): Likewise.
4346 (x86_linux_get_thread_area): Likewise.
4347 (super_post_startup_inferior): Likewise.
4348 (x86_linux_child_post_startup_inferior): Likewise.
4349 (AMD64_LINUX_USER64_CS): Likewise.
4350 (AMD64_LINUX_X32_DS): Likewise.
4351 (x86_linux_read_description): Likewise.
4352 (x86_linux_enable_btrace): Likewise.
4353 (x86_linux_disable_btrace): Likewise.
4354 (x86_linux_teardown_btrace): Likewise.
4355 (x86_linux_read_btrace): Likewise.
4356 (x86_linux_create_target): Likewise.
4357 (x86_linux_add_target): Likewise.
4359 2014-07-11 Gary Benson <gbenson@redhat.com>
4361 * amd64-linux-nat.c: Comment and whitespace changes.
4362 * i386-linux-nat.c: Comment and whitespace changes.
4364 2014-07-11 Gary Benson <gbenson@redhat.com>
4366 * amd64-linux-nat.c (x86_linux_create_target): New function.
4367 (x86_linux_add_target): Likewise.
4368 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4369 * i386-linux-nat.c (x86_linux_create_target): New function.
4370 (x86_linux_add_target): Likewise.
4371 (_initialize_i386_linux_nat): Delegate to the above new functions.
4373 2014-07-11 Gary Benson <gbenson@redhat.com>
4375 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4376 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4377 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4378 (ps_get_thread_area): Delegate to the above.
4380 2014-07-11 Gary Benson <gbenson@redhat.com>
4382 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4383 x86_linux_read_description. All uses updated. amd64-specific
4384 code conditionalized. Conditionalized i386-specific code added.
4385 Redundant cast removed.
4386 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4387 x86_linux_read_description. All uses updated. i386-specific
4388 code conditionalized. Conditionalized amd64-specific code added.
4389 One sizeof replaced with the actual type it is describing.
4391 2014-07-11 Gary Benson <gbenson@redhat.com>
4393 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4394 x86_linux_dr_get. All uses updated.
4395 (amd64_linux_dr_set): Renamed to
4396 x86_linux_dr_set. All uses updated.
4397 (amd64_linux_dr_get_addr): Renamed to
4398 x86_linux_dr_get_addr. All uses updated.
4399 (amd64_linux_dr_get_control): Renamed to
4400 x86_linux_dr_get_control. All uses updated.
4401 (amd64_linux_dr_get_status): Renamed to
4402 x86_linux_dr_get_status. All uses updated.
4403 (amd64_linux_dr_set_control): Renamed to
4404 x86_linux_dr_set_control. All uses updated.
4405 (amd64_linux_dr_set_addr): Renamed to
4406 x86_linux_dr_set_addr. All uses updated.
4407 (amd64_linux_prepare_to_resume): Renamed to
4408 x86_linux_prepare_to_resume. All uses updated.
4409 (amd64_linux_new_thread): Renamed to
4410 x86_linux_new_thread. All uses updated.
4411 (amd64_linux_new_fork): Renamed to
4412 x86_linux_new_fork. All uses updated.
4413 (amd64_linux_child_post_startup_inferior): Renamed to
4414 x86_linux_child_post_startup_inferior. All uses updated.
4415 (amd64_linux_enable_btrace): Renamed to
4416 x86_linux_enable_btrace. All uses updated.
4417 (amd64_linux_disable_btrace): Renamed to
4418 x86_linux_disable_btrace. All uses updated.
4419 (amd64_linux_teardown_btrace): Renamed to
4420 x86_linux_teardown_btrace. All uses updated.
4421 (amd64_linux_read_btrace): Renamed to
4422 x86_linux_read_btrace. All uses updated.
4423 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4424 x86_linux_dr_get. All uses updated.
4425 (i386_linux_dr_set): Renamed to
4426 x86_linux_dr_set. All uses updated.
4427 (i386_linux_dr_get_addr): Renamed to
4428 x86_linux_dr_get_addr. All uses updated.
4429 (i386_linux_dr_get_control): Renamed to
4430 x86_linux_dr_get_control. All uses updated.
4431 (i386_linux_dr_get_status): Renamed to
4432 x86_linux_dr_get_status. All uses updated.
4433 (i386_linux_dr_set_control): Renamed to
4434 x86_linux_dr_set_control. All uses updated.
4435 (i386_linux_dr_set_addr): Renamed to
4436 x86_linux_dr_set_addr. All uses updated.
4437 (i386_linux_prepare_to_resume): Renamed to
4438 x86_linux_prepare_to_resume. All uses updated.
4439 (i386_linux_new_thread): Renamed to
4440 x86_linux_new_thread. All uses updated.
4441 (i386_linux_new_fork): Renamed to
4442 x86_linux_new_fork. All uses updated.
4443 (i386_linux_child_post_startup_inferior): Renamed to
4444 x86_linux_child_post_startup_inferior. All uses updated.
4445 (i386_linux_enable_btrace): Renamed to
4446 x86_linux_enable_btrace. All uses updated.
4447 (i386_linux_disable_btrace): Renamed to
4448 x86_linux_disable_btrace. All uses updated.
4449 (i386_linux_teardown_btrace): Renamed to
4450 x86_linux_teardown_btrace. All uses updated.
4451 (i386_linux_read_btrace): Renamed to
4452 x86_linux_read_btrace. All uses updated.
4454 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4456 * remote.c (extended_remote_post_attach): New function.
4457 (init_extended_remote_ops): Install it as to_post_attach method.
4459 2014-07-09 Pedro Alves <palves@redhat.com>
4461 * infcmd.c (attach_command_post_wait): Don't call
4462 target_terminal_inferior here.
4463 (attach_command): Call it here instead.
4465 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4467 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4469 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4470 from varobj.c, with additional checks.
4471 (c_varobj_ops): Fill in is_path_expr_parent field.
4472 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4473 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4475 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4477 (varobj_default_is_path_expr_parent): New function.
4478 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4479 (varobj_default_is_path_expr_parent): Declare new function.
4481 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4483 * infcmd.c (finish_backward): Turn internal error into normal error.
4485 2014-07-07 Pedro Alves <palves@redhat.com>
4488 * remote.c (async_handle_remote_sigint)
4489 (async_handle_remote_sigint_twice): Call
4490 gdb_call_async_signal_handler instead of
4491 mark_async_signal_handler.
4493 2014-07-07 Tom Tromey <tromey@redhat.com>
4495 * target-delegates.c: Rebuild.
4496 * target.c (target_info_record): Remove.
4497 * record.c (info_record_command): Unconditionally call
4499 * target.h (struct target_ops) <to_info_record>: Use
4500 TARGET_DEFAULT_IGNORE.
4501 (target_info_record): Remove.
4503 2014-07-07 Tom Tromey <tromey@redhat.com>
4505 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4506 TARGET_DEFAULT_NORETURN.
4507 * target.c (generic_tls_error): New function.
4508 (target_translate_tls_address): Don't search target stack.
4509 * target-delegates.c: Rebuild.
4510 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4512 * linux-thread-db.c (thread_db_get_thread_local_address):
4513 Unconditionally call beneath target.
4515 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4517 * cli/cli-logging.c (pop_output_files): Assign targerr to
4520 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4522 * MAINTAINERS (Write After Approval): Update my email address.
4524 2014-07-02 Gary Benson <gbenson@redhat.com>
4526 * proc-service.c (ps_xfer_memory): Update comment.
4527 (ps_pstop): Remove unused function.
4528 (ps_pcontinue): Likewise.
4529 (ps_lstop): Likewise.
4530 (ps_lcontinue): Likewise.
4531 (ps_lgetxregsize): Likewise.
4532 (ps_lgetxregs): Likewise.
4533 (ps_lsetxregs): Likewise.
4534 (ps_plog): Likewise.
4535 (ps_ptread): Likewise.
4536 (ps_ptwrite): Likewise.
4538 2014-07-01 Mark Wielaard <mjw@redhat.com>
4540 * dwarf2read.c (add_array_cv_type): New function.
4541 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4542 (read_tag_volatile_type): Likewise.
4544 2014-07-01 Tom Tromey <tromey@redhat.com>
4546 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4547 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4548 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4549 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4550 * command.h (cmd_cfunc_ftype): Move earlier.
4551 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4552 (add_com, add_info): Use cmd_cfunc_ftype.
4554 2014-06-30 Tom Tromey <tromey@redhat.com>
4556 * symtab.c (operator_chars): Make parameters and return type
4558 (file_matches): Make "files" const.
4559 (struct search_symbols_data) <files>: Now const.
4560 (search_symbols): Make "regexp" and "files" parameters const.
4562 (symtab_symbol_info): Remove cast.
4563 (rbreak_command): Update.
4564 * symtab.h (search_symbols): Update.
4566 2014-06-27 Yao Qi <yao@codesourcery.com>
4568 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4569 Change parameter type to 'struct thread_info *'. Caller
4571 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4573 * dummy-frame.c (struct dummy_frame_id): New.
4574 (dummy_frame_id_eq): New function.
4575 (struct dummy_frame) <id>: Change its type to 'struct
4577 (dummy_frame_push): Add parameter ptid and save it in
4579 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4581 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4583 (lookup_dummy_frame): Change parameter type to 'struct
4584 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4585 instead of frame_id_eq.
4586 (dummy_frame_pop): Add parameter ptid. Callers updated.
4587 Update comments. Compose dummy_frame_id and pass it to
4589 (dummy_frame_discard): Add parameter ptid.
4590 (dummy_frame_sniffer): Compose dummy_frame_id and call
4591 dummy_frame_id_eq instead of frame_id_eq.
4592 (fprint_dummy_frames): Print ptid.
4593 * dummy-frame.h: Remove comments.
4594 (dummy_frame_push): Add ptid in declaration.
4595 (dummy_frame_pop, dummy_frame_discard): Likewise.
4597 2014-06-26 Tom Tromey <tromey@redhat.com>
4599 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4600 * command.h (error_no_arg): Update.
4602 2014-06-26 Tom Tromey <tromey@redhat.com>
4604 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4605 (do_show_command): Make "arg" const.
4606 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4608 2014-06-26 Tom Tromey <tromey@redhat.com>
4610 * record-full.c (record_full_get_bookmark): Make "args" const.
4611 (record_full_goto_bookmark): Make "raw_bookmark" const.
4612 * record.c (record_goto): New function.
4613 (cmd_record_goto): Use it. Now static.
4614 * record.h (record_goto): Declare.
4615 (cmd_record_goto): Remove declaration.
4616 * target-delegates.c: Rebuild.
4617 * target.h (struct target_ops) <to_get_bookmark,
4618 to_goto_bookmark>: Make parameter const.
4620 2014-06-26 Tom Tromey <tromey@redhat.com>
4622 * defs.h (generic_load): Update.
4623 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4624 * monitor.c (monitor_load): Make "args" const.
4625 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4626 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4628 (mips_load): Make "file" const.
4629 * remote-sim.c (gdbsim_load): Make "args" const.
4630 * remote.c (remote_load): Make "name" const.
4631 * symfile.c (generic_load): Make "args" const.
4632 * target-delegates.c: Rebuild.
4633 * target.c (target_load): Make "arg" const.
4634 (debug_to_load): Make "args" const.
4635 * target.h (struct target_ops) <to_load>: Make parameter const.
4636 (target_load): Update.
4638 2014-06-26 Tom Tromey <tromey@redhat.com>
4641 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4642 (dwarf2_physname, read_partial_die)
4643 (guess_partial_die_structure_name, fixup_partial_die)
4644 (guess_full_die_structure_name, anonymous_struct_prefix)
4645 (dwarf2_name): Use per-BFD obstack.
4647 2014-06-26 Yao Qi <yao@codesourcery.com>
4649 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4650 dummyframe and this_id into inner block below.
4652 2014-06-26 Yao Qi <yao@codesourcery.com>
4654 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4655 with "signal_pass[0]" in the initialization of signal_pass.
4657 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4659 * record-btrace.c (record_btrace_generating_corefile)
4660 (record_btrace_prepare_to_generate_core)
4661 (record_btrace_done_generating_core): New.
4662 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4663 (record_btrace_store_registers, record_btrace_prepare_to_store):
4664 Forward request when generating a core file.
4665 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4666 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4667 to_done_generating_core.
4669 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4671 * target.h (target_ops) <to_prepare_to_generate_core>
4672 <to_done_generating_core>: New.
4673 (target_prepare_to_generate_core, target_done_generating_core): New.
4674 * target.c (target_prepare_to_generate_core)
4675 (target_done_generating_core): New.
4676 * target-delegates.c: Regenerate.
4677 * gcore.c: (write_gcore_file): Rename to ...
4678 (write_gcore_file_1): ...this.
4679 (write_gcore_file): Call target_prepare_to_generate_core
4680 and target_done_generating_core.
4682 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4684 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4685 * gcore.c (write_gcore_file): Free memory returned from
4686 make_corefile_notes.
4687 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4688 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4690 2014-06-24 Yao Qi <yao@codesourcery.com>
4692 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4693 (arm_linux_init_abi): Set skip_trampoline_code with
4694 gdbarch_skip_trampoline_code instead of
4695 find_solib_trampoline_target.
4697 2014-06-24 Yao Qi <yao@codesourcery.com>
4699 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4700 arm_skip_bx_reg returns non-zero.
4702 2014-06-24 Yao Qi <yao@codesourcery.com>
4704 * arm-tdep.c (arm_skip_bx_reg): New function.
4705 (arm_skip_stub): Call arm_skip_bx_reg.
4707 2014-06-23 Don Breazeal <donb@codesourcery.com>
4709 * MAINTAINERS: Add myself as write-after-approval maintainer.
4711 2014-06-23 Pedro Alves <palves@redhat.com>
4713 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4714 DR_CONTROL before setting DR0..DR3.
4715 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4716 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4717 bits of DR_CONTROL related to the debug register slot being
4718 disabled. If all slots are vacant, clear local slowdown as well,
4719 and assert DR_CONTROL is 0.
4721 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4723 * python/lib/gdb/command/xmethods.py
4724 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4725 current progspace only if the string "progspace" matches LOCUS_RE.
4727 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4729 Fix --with-system-readline with readline-6.3 patch 5.
4730 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4731 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4734 2014-06-20 Tom Tromey <tromey@redhat.com>
4736 * dwarf2read.c (dw2_get_real_path): Use correct type in
4738 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4740 2014-06-20 Gary Benson <gbenson@redhat.com>
4742 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4743 * common/glibc_thread_db.h: Likewise.
4744 * common/i386-cpuid.h: Likewise.
4745 * common/i386-gcc-cpuid.h: Likewise.
4746 * common/linux-btrace.h: Likewise.
4747 * common/linux-osdata.h: Likewise.
4748 * common/linux-procfs.h: Likewise.
4749 * common/linux-ptrace.h: Likewise.
4750 * common/mips-linux-watch.h: Likewise.
4751 * common/linux-btrace.c: Moved to nat.
4752 * common/linux-osdata.c: Likewise.
4753 * common/linux-procfs.c: Likewise.
4754 * common/linux-ptrace.c: Likewise.
4755 * common/mips-linux-watch.c: Likewise.
4756 * nat/gdb_thread_db.h: Moved from common.
4757 * nat/glibc_thread_db.h: Likewise.
4758 * nat/i386-cpuid.h: Likewise.
4759 * nat/i386-gcc-cpuid.h: Likewise.
4760 * nat/linux-btrace.c: Likewise.
4761 * nat/linux-btrace.h: Likewise.
4762 * nat/linux-osdata.c: Likewise.
4763 * nat/linux-osdata.h: Likewise.
4764 * nat/linux-procfs.c: Likewise.
4765 * nat/linux-procfs.h: Likewise.
4766 * nat/linux-ptrace.c: Likewise.
4767 * nat/linux-ptrace.h: Likewise.
4768 * nat/mips-linux-watch.c: Likewise.
4769 * nat/mips-linux-watch.h: Likewise.
4770 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4771 (object file files): Reordered.
4772 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4773 of glibc_thread_db.h.
4775 2014-06-20 Gary Benson <gbenson@redhat.com>
4777 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4778 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4779 (i386_dr_low): Likewise.
4780 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4781 (i386_dr_low_set_addr): Likewise.
4782 (i386_dr_low_get_addr): Likewise.
4783 (i386_dr_low_can_set_control): Likewise.
4784 (i386_dr_low_set_control): Likewise.
4785 (i386_dr_low_get_control): Likewise.
4786 (i386_dr_low_get_status): Likewise.
4787 (i386_get_debug_register_length): Likewise.
4788 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4789 (i386_dr_low): Likewise.
4790 * nat/i386-dregs.c (i386-low.h): Remove include.
4791 (i386-nat.h): Likewise.
4792 (nat/i386-dregs.h): New include.
4793 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4794 (i386_dr_low_set_addr): Likewise.
4795 (i386_dr_low_get_addr): Likewise.
4796 (i386_dr_low_can_set_control): Likewise.
4797 (i386_dr_low_set_control): Likewise.
4798 (i386_dr_low_get_control): Likewise.
4799 (i386_dr_low_get_status): Likewise.
4800 (i386_get_debug_register_length): Likewise.
4801 (debug_hw_points): Likewise.
4803 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4805 * Makefile.in (SFILES): Add d-exp.y.
4806 (YYFILES): Add d-exp.c.
4807 (YYOBJ): Add d-exp.o.
4808 (local-maintainer-clean): Delete d-exp.c.
4809 * d-exp.y: New file.
4810 * d-lang.h (d_parse): New declaration.
4811 (d_error): New declaration.
4812 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4813 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4814 PREC_ORDER operators.
4815 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4817 2014-06-19 Yao Qi <yao@codesourcery.com>
4819 * gdbthread.h (any_running): Remove the declaration.
4820 * thread.c (any_running): Remove.
4822 2014-06-19 Yao Qi <yao@codesourcery.com>
4824 * gdbthread.h (struct thread_info) <state>: Change its type to
4825 'enum thread_state'. Update comments.
4827 2014-06-19 Pedro Alves <palves@redhat.com>
4829 * gdbthread.h (ALL_THREADS): Delete.
4830 (ALL_NON_EXITED_THREADS): New macro.
4831 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4832 instead of ALL_THREADS.
4833 * infrun.c (find_thread_needs_step_over)
4834 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4835 instead of ALL_THREADS.
4836 * record-btrace.c (record_btrace_open)
4837 (record_btrace_stop_recording, record_btrace_close)
4838 (record_btrace_is_replaying, record_btrace_resume)
4839 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4840 * remote.c (append_pending_thread_resumptions): Likewise.
4841 * thread.c (thread_apply_all_command): Likewise.
4843 2014-06-19 Gary Benson <gbenson@redhat.com>
4845 * i386-nat.c (i386_stopped_by_watchpoint):
4846 Use i386_dr_stopped_by_watchpoint.
4847 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4848 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4850 2014-06-19 Gary Benson <gbenson@redhat.com>
4852 * nat/i386-dregs.c: New file.
4853 * Makefile.in (i386-dregs.o): New rule.
4854 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4855 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4856 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4857 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4858 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4859 * config/i386/go32.mh (NATDEPFILES): Likewise.
4860 * config/i386/linux.mh (NATDEPFILES): Likewise.
4861 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4862 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4863 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4864 * i386-nat.h (debug_hw_points): New declaration.
4865 * i386-nat.c (breakpoint.h): Remove include.
4866 (command.h): Likewise.
4867 (target.h): Likewise.
4868 (gdb_assert.h): Likewise.
4869 (debug_hw_points): Made nonstatic.
4870 (debug_printf): Now in i386-dregs.c.
4871 (TARGET_HAS_DR_LEN_8): Likewise.
4872 (DR_CONTROL_SHIFT): Likewise.
4873 (DR_CONTROL_SIZE): Likewise.
4874 (DR_RW_EXECUTE): Likewise.
4875 (DR_RW_WRITE): Likewise.
4876 (DR_RW_READ): Likewise.
4877 (DR_RW_IORW): Likewise.
4878 (DR_LEN_1): Likewise.
4879 (DR_LEN_2): Likewise.
4880 (DR_LEN_4): Likewise.
4881 (DR_LEN_8): Likewise.
4882 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4883 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4884 (DR_ENABLE_SIZE): Likewise.
4885 (DR_LOCAL_SLOWDOWN): Likewise.
4886 (DR_GLOBAL_SLOWDOWN): Likewise.
4887 (DR_CONTROL_RESERVED): Likewise.
4888 (I386_DR_CONTROL_MASK): Likewise.
4889 (I386_DR_VACANT): Likewise.
4890 (I386_DR_LOCAL_ENABLE): Likewise.
4891 (I386_DR_GLOBAL_ENABLE): Likewise.
4892 (I386_DR_DISABLE): Likewise.
4893 (I386_DR_SET_RW_LEN): Likewise.
4894 (I386_DR_GET_RW_LEN): Likewise.
4895 (I386_DR_WATCH_HIT): Likewise.
4896 (i386_wp_op_t): Likewise.
4897 (i386_show_dr): Likewise.
4898 (i386_length_and_rw_bits): Likewise.
4899 (i386_insert_aligned_watchpoint): Likewise.
4900 (i386_remove_aligned_watchpoint): Likewise.
4901 (i386_handle_nonaligned_watchpoint): Likewise.
4902 (i386_update_inferior_debug_regs): Likewise.
4903 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4904 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4905 (i386_region_ok_for_watchpoint):
4906 Use i386_dr_region_ok_for_watchpoint.
4907 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4909 2014-06-19 Gary Benson <gbenson@redhat.com>
4911 * i386-nat.c (i386_insert_hw_breakpoint): Use
4912 i386_insert_watchpoint.
4913 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4915 2014-06-19 Gary Benson <gbenson@redhat.com>
4917 * i386-nat.c (i386_dr_show): Renamed to
4918 i386_show_dr and made static. All uses updated.
4919 (i386_dr_length_and_rw_bits): Renamed to
4920 i386_length_and_rw_bits and made static.
4922 (i386_dr_insert_aligned_watchpoint): Renamed to
4923 i386_insert_aligned_watchpoint and made static.
4925 (i386_dr_remove_aligned_watchpoint): Renamed to
4926 i386_remove_aligned_watchpoint and made static.
4928 (i386_dr_update_inferior_debug_regs): Renamed to
4929 i386_update_inferior_debug_regs and made static.
4931 * nat/i386-dregs.h (i386_dr_show): Removed.
4932 (i386_dr_length_and_rw_bits): Likewise.
4933 (i386_dr_insert_aligned_watchpoint): Likewise.
4934 (i386_dr_remove_aligned_watchpoint): Likewise.
4935 (i386_dr_update_inferior_debug_regs): Likewise.
4937 2014-06-19 Gary Benson <gbenson@redhat.com>
4939 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4940 * configure: Regenerate.
4941 * config.in: Likewise.
4942 * main.c (signal.h): New include.
4943 (setup_alternate_signal_stack): New function.
4944 (captured_main): Call the above.
4945 * cp-support.c (signal.h): New include.
4946 (catch_demangler_crashes): New flag.
4947 (SIGJMP_BUF): New define.
4948 (SIGSETJMP): Likewise.
4949 (SIGLONGJMP): Likewise.
4950 (gdb_demangle_jmp_buf): New static global.
4951 (gdb_demangle_attempt_core_dump): Likewise.
4952 (gdb_demangle_signal_handler): New function.
4953 (gdb_demangle): If catch_demangler_crashes is set, install the
4954 above signal handler before calling bfd_demangle, and restore
4955 the original signal handler afterwards. Display the offending
4956 symbol and call demangler_warning the first time a segmentation
4958 (_initialize_cp_support): New maint set/show command.
4960 2014-06-19 Gary Benson <gbenson@redhat.com>
4962 * utils.h (resource_limit_kind): New enum.
4963 (can_dump_core): New declaration.
4964 (warn_cant_dump_core): Likewise.
4965 (dump_core): Likewise.
4966 * utils.c (dump_core): Made nonstatic. Added new
4967 parameter "limit_kind".
4968 (can_dump_core): Made nonstatic. Moved printing code to...
4969 (warn_cant_dump_core): New function.
4970 (can_dump_core_warn): Likewise.
4971 (internal_vproblem): Replace calls to can_dump_core with
4972 calls to can_dump_core_warn. Supply new argument to each.
4974 2014-06-19 Gary Benson <gbenson@redhat.com>
4976 * utils.h (demangler_vwarning): New declaration.
4977 (demangler_warning): Likewise.
4978 * utils.c (struct internal_problem)
4979 <user_settable_should_quit>: New field.
4980 <user_settable_should_dump_core>: Likewise
4981 (internal_error_problem): Add values for above new fields.
4982 (internal_warning_problem): Likewise.
4983 (demangler_warning_problem): New static global.
4984 (demangler_vwarning): New function.
4985 (demangler_warning): Likewise.
4986 (add_internal_problem_command): Selectively add commands.
4987 (_initialize_utils): New internal problem command.
4988 * maint.c (maintenance_demangler_warning): New function.
4989 (_initialize_maint_cmds): New command.
4991 2014-06-18 Tom Tromey <tromey@redhat.com>
4993 * f-valprint.c (info_common_command_for_block): Update.
4994 * symtab.h (struct general_symbol_info) <common_block>: Now
4997 2014-06-18 Tom Tromey <tromey@redhat.com>
4999 * symtab.h (struct symtab) <blockvector>: Now const.
5000 * ada-lang.c (ada_add_global_exceptions): Update.
5001 * buildsym.c (augment_type_symtab): Update.
5002 * dwarf2read.c (dw2_lookup_symbol): Update.
5003 * jit.c (finalize_symtab): Update.
5004 * jv-lang.c (add_class_symtab_symbol): Update.
5005 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5007 * objfiles.c (objfile_relocate1): Update.
5008 * psymtab.c (lookup_symbol_aux_psymtabs)
5009 (maintenance_check_psymtabs): Update.
5010 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5012 * spu-tdep.c (spu_catch_start): Update.
5013 * symmisc.c (dump_symtab_1): Update.
5014 * symtab.c (lookup_global_symbol_from_objfile)
5015 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5016 (basic_lookup_transparent_type_quick)
5017 (basic_lookup_transparent_type, find_pc_sect_symtab)
5018 (find_pc_sect_line, search_symbols): Update.
5019 * block.c (find_block_in_blockvector): Make "bl" const.
5020 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5022 (blockvector_contains_pc): Make "bv" const.
5023 (block_for_pc_sect): Update.
5024 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5025 (blockvector_contains_pc): Update.
5026 * breakpoint.c (resolve_sal_pc): Update.
5027 * inline-frame.c (block_starting_point_at): Update.
5029 2014-06-18 Tom Tromey <tromey@redhat.com>
5031 * completer.c (complete_line): Make "line_buffer" const.
5032 * completer.h (complete_line): Update.
5034 2014-06-18 Tom Tromey <tromey@redhat.com>
5036 * symtab.c (add_macro_name): Remove unneeded cast.
5038 2014-06-18 Tom Tromey <tromey@redhat.com>
5040 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5041 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5043 2014-06-18 Tom Tromey <tromey@redhat.com>
5045 * probe.c (info_probes_for_ops): Make "arg" const.
5046 * probe.h (info_probes_for_ops): Update.
5048 2014-06-18 Tom Tromey <tromey@redhat.com>
5050 * varobj.c (varobj_create): Update.
5051 * valops.c (value_of_this): Update.
5052 * tracepoint.c (add_local_symbols, scope_info): Update.
5053 * symtab.h (struct general_symbol_info) <block>: Now const.
5054 * symtab.c (skip_prologue_sal)
5055 (default_make_symbol_completion_list_break_on)
5056 (skip_prologue_using_sal): Update.
5057 * stack.h (iterate_over_block_locals)
5058 (iterate_over_block_local_vars): Update.
5059 * stack.c (print_frame_args): Update.
5060 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5062 (get_selected_block): Make return type const.
5063 * python/py-frame.c (frapy_block): Update.
5064 * python/py-block.c (gdbpy_block_for_pc): Update.
5065 * p-exp.y (%union) <bval>: Now const.
5066 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5067 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5068 * m2-exp.y (%union) <bval>: Now const.
5069 * linespec.c (get_current_search_block): Make return type const.
5070 (create_sals_line_offset, find_label_symbols): Update.
5071 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5073 (block_starting_point_at): Make "block" const.
5074 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5075 (check_exception_resume): Update.
5076 * guile/scm-frame.c (gdbscm_frame_block): Update.
5077 * guile/scm-block.c (gdbscm_lookup_block): Update.
5078 * frame.h (get_frame_block): Update.
5079 (get_selected_block): Make return type const.
5080 * frame.c (frame_id_inner): Update.
5081 * f-valprint.c (info_common_command_for_block)
5082 (info_common_command): Update.
5083 * dwarf2loc.c (dwarf2_find_location_expression)
5084 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5085 (locexpr_describe_location_piece): Update.
5086 * c-exp.y (%union) <bval>: Now const.
5087 * breakpoint.c (resolve_sal_pc): Update.
5088 * blockframe.c (get_frame_block):Make return type const.
5089 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5090 (block_innermost_frame): Update.
5091 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5092 (block_for_pc, block_for_pc_sect): Update.
5093 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5095 (block_for_pc_sect, block_for_pc): Make return type const.
5096 * ax-gdb.c (gen_expr): Update.
5097 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5098 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5099 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5100 (ada_read_var_value): Update.
5101 * ada-exp.y (struct name_info) <block>: Now const.
5103 (block_lookup): Constify.
5105 2014-06-18 Gary Benson <gbenson@redhat.com>
5107 * nat/i386-dregs.h: New file.
5108 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5109 * i386-nat.h (i386-dregs.h): New include.
5110 (DR_FIRSTADDR): Now in i386-dregs.h.
5111 (DR_LASTADDR): Likewise.
5112 (DR_NADDR): Likewise.
5113 (DR_STATUS): Likewise.
5114 (DR_CONTROL): Likewise.
5115 (i386_debug_reg_state): Likewise.
5116 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5118 2014-06-18 Don Breazeal <donb@codesourcery.com>
5120 * breakpoint.c (set_longjmp_breakpoint): Call
5121 momentary_breakpoint_from_master with additional argument.
5122 (set_longjmp_breakpoint_for_call_dummy): Call
5123 momentary_breakpoint_from_master with additional argument.
5124 (set_std_terminate_breakpoint): Call
5125 momentary_breakpoint_from_master with additional argument.
5126 (momentary_breakpoint_from_master): Add argument to function
5127 definition and use it to initialize structure member flag.
5128 (clone_momentary_breakpoint): Call
5129 momentary_breakpoint_from_master with additional argument.
5130 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5131 member flags set in momentary_breakpoint_from_master.
5133 2014-06-18 Gary Benson <gbenson@redhat.com>
5135 * i386-nat.c (i386_show_dr): Renamed to
5136 i386_dr_show and made nonstatic. All uses updated.
5137 (i386_length_and_rw_bits): Renamed to
5138 i386_dr_length_and_rw_bits and made nonstatic.
5140 (i386_insert_aligned_watchpoint): Renamed to
5141 i386_dr_insert_aligned_watchpoint and made nonstatic.
5143 (i386_remove_aligned_watchpoint): Renamed to
5144 i386_dr_remove_aligned_watchpoint and made nonstatic.
5146 (i386_update_inferior_debug_regs): Renamed to
5147 i386_dr_update_inferior_debug_regs and made nonstatic.
5150 2014-06-18 Gary Benson <gbenson@redhat.com>
5152 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5153 (i386_dr_low_can_set_control): Likewise.
5154 (i386_dr_low_set_addr): Likewise.
5155 (i386_dr_low_set_control): Likewise.
5156 (i386_dr_low_get_addr): Likewise.
5157 (i386_dr_low_get_status): Likewise.
5158 (i386_dr_low_get_control): Likewise.
5159 (i386_insert_aligned_watchpoint): Use new macros.
5160 (i386_update_inferior_debug_regs): Likewise.
5161 (i386_stopped_data_address): Likewise.
5163 2014-06-18 Gary Benson <gbenson@redhat.com>
5165 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5166 New parameter. All uses updated.
5168 2014-06-18 Gary Benson <gbenson@redhat.com>
5170 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5173 2014-06-18 Gary Benson <gbenson@redhat.com>
5175 * i386-nat.c (debug_printf): New macro.
5176 (i386_get_debug_register_length): Likewise.
5177 (TARGET_HAS_DR_LEN_8): Use above macro.
5178 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5179 and printf_unfiltered. Use phex to format values.
5181 2014-06-18 Gary Benson <gbenson@redhat.com>
5183 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5186 2014-06-18 Gary Benson <gbenson@redhat.com>
5188 * i386-nat.c: Comment changes.
5190 2014-06-18 Gary Benson <gbenson@redhat.com>
5192 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5194 2014-06-18 Gary Benson <gbenson@redhat.com>
5196 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5197 (i386_insert_aligned_watchpoint): Likewise.
5198 (i386_remove_aligned_watchpoint): Likewise.
5199 (i386_handle_nonaligned_watchpoint): Likewise.
5201 2014-06-18 Gary Benson <gbenson@redhat.com>
5203 * i386-nat.c: Whitespace changes.
5205 2014-06-17 Samuel Bronson <naesten@gmail.com>
5207 * MAINTAINERS: Update Roland McGrath's email address.
5208 Thanks to Sergio Durigan Junior for pointing out that he left
5209 Red Hat a while ago, and giving me a current address.
5211 2014-06-17 Tom Tromey <tromey@redhat.com>
5213 * utils.h (savestring): Remove declaration.
5215 2014-06-17 Tom Tromey <tromey@redhat.com>
5217 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5219 2014-06-16 Keith Seitz <keiths@redhat.com>
5222 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5223 to update the varobj if inferior_ptid is null_ptid.
5225 2014-06-16 Tom Tromey <tromey@redhat.com>
5227 * target.h (struct target_ops) <to_info_proc>: Make parameter
5229 (target_info_proc): Update.
5230 * target.c (target_info_proc): Make "args" const.
5231 * procfs.c (procfs_info_proc): Update.
5232 * linux-tdep.c (linux_info_proc): Update.
5233 (linux_core_info_proc_mappings): Make "args" const.
5234 (linux_core_info_proc): Update.
5235 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5236 * gdbarch.c: Rebuild.
5237 * gdbarch.h: Rebuild.
5238 * corelow.c (core_info_proc): Update.
5240 2014-06-16 Tom Tromey <tromey@redhat.com>
5242 * target.h (struct target_ops) <to_disconnect>: Make parameter
5244 (target_disconnect): Update.
5245 * target.c (target_disconnect): Make "args" const.
5246 * target-delegates.c: Rebuild.
5247 * remote.c (remote_disconnect): Update.
5248 * record.h (record_disconnect): Update.
5249 * record.c (record_disconnect): Update.
5250 * inf-child.c (inf_child_disconnect): Update.
5252 2014-06-16 Tom Tromey <tromey@redhat.com>
5254 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5255 * target.c (debug_to_rcmd, default_rcmd): Update.
5256 * target-delegates.c: Rebuild.
5257 * remote.c (remote_rcmd): Update.
5258 * monitor.c (monitor_rcmd): Update.
5260 2014-06-16 Pedro Alves <palves@redhat.com>
5262 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5263 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5264 have OBJF_SHARED set.
5265 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5266 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5267 instead of OBJF_USERLOADED.
5268 * objfiles.h (OBJF_SHARED): Update comment.
5269 (userloaded_objfile_contains_address_p): Rename to ...
5270 (shared_objfile_contains_address_p): ... this, and update
5272 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5274 (remove_symbol_file_command): Skip objfiles that don't have
5277 2014-06-16 Tom Tromey <tromey@redhat.com>
5279 * minsyms.h (prim_record_minimal_symbol)
5280 (prim_record_minimal_symbol_and_info): Update comments.
5282 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5284 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5285 or --without-guile, according to how GDB was built.
5287 2014-06-13 Tom Tromey <tromey@redhat.com>
5289 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5291 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5293 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5295 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5296 help_list.Pass all_commands, not -1, to help_list.
5297 * cli/cli-dump.c (dump_command, append_command)
5298 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5299 (binary_dump_command, binary_append_command): Pass all_commands,
5300 not -1, to help_list.
5301 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5303 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5305 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5307 * top.c (set_history): Pass all_commands, not -1, to help_list.
5308 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5309 all_commands, not -1, to help_list.
5310 * symfile.c (overlay_command): Pass all_commands, not -1, to
5312 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5314 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5316 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5318 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5319 not -1, to help_list.
5320 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5321 not -1, to help_list.
5322 * maint.c (maintenance_command, maintenance_info_command)
5323 (maintenance_print_command, maintenance_set_cmd): Pass
5324 all_commands, not -1, to help_list.
5325 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5327 * language.c (set_check): Pass all_commands, not -1, to help_list.
5328 * infcmd.c (unset_command): Pass all_commands, not -1, to
5330 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5332 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5334 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5336 * breakpoint.c (save_command): Pass all_commands, not -1, to
5338 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5339 all_commands, not -1, to help_list.
5341 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5343 * regcache.c (struct register_to_invalidate): New structure.
5344 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5346 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5348 2014-06-12 Yao Qi <yao@codesourcery.com>
5350 * varobj.c (varobj_get_num_children): Call
5351 varobj_is_dynamic_p.
5352 (varobj_list_children): Likewise.
5353 (varobj_update): Likewise. Update comments.
5355 2014-06-12 Yao Qi <yao@codesourcery.com>
5357 * varobj.c (varobj_pretty_printed_p): Rename to ...
5358 (varobj_is_dynamic_p): ... this. New function.
5359 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5360 (varobj_is_dynamic_p): Declare.
5361 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5362 (mi_print_value_p, varobj_update_one): Likewise.
5364 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5365 Yao Qi <yao@codesourcery.com>
5367 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5368 (varobj_get_iterator): Wrap up code for pretty-printer by
5369 "#if HAVE_PYTHON" and "#endif".
5370 (update_dynamic_varobj_children): Likewise.
5372 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5373 Yao Qi <yao@codesourcery.com>
5375 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5376 gdb_python_initialized is false. Move some code from varobj.c.
5377 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5378 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5379 (struct varobj_item): Moved to varobj-iter.h".
5380 (varobj_clear_saved_item): New function.
5381 (update_dynamic_varobj_children): Move python-related code to
5383 (free_variable): Call varobj_clear_saved_item and
5386 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5387 Yao Qi <yao@codesourcery.com>
5389 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5390 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5391 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5392 (py-varobj.o): New rule.
5393 * python/py-varobj.c: New file.
5394 * python/python-internal.h (py_varobj_get_iterator): Declare.
5395 * varobj-iter.h: New file.
5396 * varobj.c: Include "varobj-iter.h"
5397 (struct varobj) <child_iter>: Change its type from "PyObject *"
5398 to "struct varobj_iter *".
5399 <saved_item>: Likewise.
5400 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5401 [HAVE_PYTHON] (varobj_get_iterator): New function.
5402 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5403 python-specific code to python/py-varobj.c.
5404 (install_visualizer): Call varobj_iter_delete instead of
5406 * varobj.h (varobj_ensure_python_env): Declare.
5408 2014-06-12 Yao Qi <yao@codesourcery.com>
5410 * varobj.c (struct varobj_item): New structure.
5411 (create_child_with_value): Update declaration.
5412 (varobj_add_child): Replace arguments 'name' and 'value' with
5413 'item'. All callers updated.
5414 (install_dynamic_child): Likewise.
5415 (update_dynamic_varobj_children): Likewise.
5416 (varobj_add_child): Likewise.
5417 (create_child_with_value): Likewise.
5419 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5421 * NEWS: Create a new section for the next release branch.
5422 Rename the section of the current branch, now that it has
5425 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5427 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5428 * version.in: Bump version to 7.8.50.DATE-cvs.
5430 2014-06-11 Pedro Alves <palves@redhat.com>
5433 * ser-mingw.c (net_windows_socket_check_pending): New function.
5434 (net_windows_select_thread): Ignore spurious wakeups. Use
5435 net_windows_socket_check_pending.
5436 (net_windows_wait_handle): Check for pending events with
5437 ioctlsocket, through net_windows_socket_check_pending, instead of
5438 checking the socket's event.
5440 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5442 * python/python-internal.h (gdb_PyObject_GetAttrString)
5443 (gdb_PyObject_HasAttrString): New inline function definitions.
5444 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5445 char * of the second argument to PyObject_GetAttrString.
5447 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5449 * serial.c (serial_write): Fix index of character to be printed
5450 in call to serial_logchar when serial debug traces are enabled.
5452 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5454 * gdbtypes (resolve_dynamic_range): Add function description.
5456 2014-06-09 Pedro Alves <palves@redhat.com>
5458 * linux-nat.c (linux_child_follow_fork): Initialize status with
5459 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5460 inner block. Only pass the signal to PTRACE_DETACH if in pass
5463 2014-06-09 Gary Benson <gbenson@redhat.com>
5465 * common/signals.c (gdb_signal_from_host): Reorder to separate
5466 the always-available ANSI-standard signals from the signals that
5468 (do_gdb_signal_to_host): Likewise.
5469 * proc-events.c (signal_table): Likewise.
5471 2014-06-08 Hui Zhu <hui@codesourcery.com>
5473 * common/linux-ptrace.c (linux_disable_event_reporting): New
5475 * common/linux-ptrace.h (linux_disable_event_reporting): New
5477 * linux-nat.c (linux_child_follow_fork): Do a single step before
5480 2014-06-07 Keith Seitz <keiths@redhat.com>
5484 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5485 from symbol_matches_domain in symtab.c. All local callers
5486 of symbol_matches_domain updated.
5487 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5488 search STRUCT_DOMAIN.
5489 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5490 independently. standard_lookup will do that automatically.
5491 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5492 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5493 (cp_lookup_symbol_in_namespace): Likewise.
5494 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5495 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5496 may return a STRUCT_DOMAIN match.
5497 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5498 * cp-support.c: Include language.h.
5499 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5501 * psymtab.c (match_partial_symbol): Compare the requested
5502 domain with the symbol's domain directly.
5503 (lookup_partial_symbol): Likewise.
5504 * symtab.c (lookup_symbol_in_language): Explain when/why
5505 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5506 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5507 appropriate languages.
5508 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5509 and moved to ada-lang.c
5510 (lookup_block_symbol): Explain that this function only returns
5511 symbol matching the requested DOMAIN.
5512 Compare the requested domain with the symbol's domain directly.
5513 (iterate_over_symbols): Compare the requested domain with the
5514 symbol's domain directly.
5515 * symtab.h (symbol_matches_domain): Remove.
5517 2014-06-06 Doug Evans <xdje42@gmail.com>
5519 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5520 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5521 (gdbscm_guile_version_is_at_least): Declare.
5522 (gdbscm_scm_string_to_int): Declare.
5523 * guile/guile.c (gdbscm_guile_major_version): New global.
5524 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5525 (guile_datadir): New static global.
5526 (gdbscm_guile_data_directory): New function.
5527 (initialize_scheme_side): Update.
5528 (misc_guile_functions): Add guile-data-directory.
5529 (initialize_gdb_module): Fetch guile version number.
5530 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5531 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5532 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5533 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5535 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5536 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5537 * guile/scm-value.c (gdbscm_value_to_string): Only call
5538 scm_port_conversion_strategy if Guile version >= 2.0.6.
5540 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5542 * main.c (print_gdb_help): Add -q and --silent.
5544 2014-06-06 Gary Benson <gbenson@redhat.com>
5546 * common/signals.c: Remove preprocessor conditionals for
5547 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5548 SIGSEGV and SIGTERM.
5549 * proc-events.c: Likewise.
5551 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5553 * symfile.c (symfile_free_objfile): Remove restriction to
5555 * symfile-mem.c (symbol_file_add_from_memory): Call
5556 add_target_sections_of_objfile.
5558 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5560 * guile/scm-value.c (gdbscm_history_append_x): Use
5561 'vlscm_get_value_smob_arg_unsafe' instead of
5562 'vlscm_scm_to_value'.
5564 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5567 * utils.c (printchar): Don't escape at all if quoter is NUL.
5568 Update function documentation to clarify effect of parameter
5570 * remote.c (escape_buffer): Pass '\\' as the quoter to
5571 fputstrn_unfiltered.
5572 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5573 generate the output.
5574 (mi_solib_unloaded): Same.
5576 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5578 * development.sh: Delete.
5579 * Makefile.in (config.status): Adjust dependency on development.sh.
5580 * configure.ac: Adjust development.sh source call.
5581 * configure: Regenerate.
5583 2014-06-04 Doug Evans <xdje42@gmail.com>
5585 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5586 is_scheme_bkpt, spec.
5587 (bpscm_make_breakpoint_smob): Initialize new members.
5588 (gdbscm_create_breakpoint_x): Split into two ...
5589 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5590 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5591 (scheme_function breakpoint_functions): Update.
5592 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5593 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5594 register-breakpoint!.
5596 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5599 * mem-break.c (z_type_supported): Return zero if
5600 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5602 2014-06-04 Tom Tromey <tromey@redhat.com>
5604 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5605 value_from_contents_and_address_unresolved.
5606 (ada_template_to_fixed_record_type_1): Likewise.
5607 (ada_which_variant_applies): Likewise.
5608 * value.h (value_from_contents_and_address_unresolved): Declare.
5609 * value.c (value_from_contents_and_address_unresolved): New
5611 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5612 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5613 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5615 2014-06-04 Tom Tromey <tromey@redhat.com>
5617 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5619 2014-06-04 Tom Tromey <tromey@redhat.com>
5621 * procfs.c (procfs_attach): Make "args" const.
5622 * windows-nat.c (windows_attach): Make "args" const.
5623 * nto-procfs.c (procfs_attach): Make "args" const.
5624 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5625 * go32-nat.c (go32_attach): Make "args" const.
5626 * gnu-nat.c (gnu_attach): Make "args" const.
5627 * darwin-nat.c (darwin_attach): Make "args" const.
5628 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5629 * linux-nat.c (linux_nat_attach): Make "args" const.
5630 * remote.c (extended_remote_attach_1, extended_remote_attach):
5632 * target.h (struct target_ops) <to_attach>: Make "args" const.
5633 (find_default_attach): Likewise.
5634 * utils.c (parse_pid_to_attach): Make "args" const.
5635 * utils.h (parse_pid_to_attach): Update.
5637 2014-06-04 Tom Tromey <tromey@redhat.com>
5639 * target-delegates.c: Rebuild.
5640 * target.c (default_thread_address_space): New function.
5641 (target_thread_address_space): Simplify.
5642 * target.h (struct target_ops) <to_thread_address_space>: Add
5643 TARGET_DEFAULT_FUNC.
5645 2014-06-04 Doug Evans <xdje42@gmail.com>
5647 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5649 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5651 * record-btrace.c: Include event-loop.h and inf-loop.h.
5652 (record_btrace_resume_exec_dir)
5653 (record_btrace_async_inferior_event_handler)
5654 (record_btrace_handle_async_inferior_event): New.
5655 (record_btrace_open): Create async event handler.
5656 (record_btrace_close): Delete async event handler.
5657 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5658 Mark async event handler.
5659 (record_btrace_execution_direction): New.
5660 (init_record_btrace_ops): Initialize to_execution_direction.
5662 2014-06-03 Doug Evans <xdje42@gmail.com>
5664 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5665 (gdbscm_make_parameter): Ditto.
5667 2014-06-03 Doug Evans <dje@google.com>
5669 * exec.c (exec_close_1): Call clear_section_table instead of
5670 resize_section_table.
5671 (clear_section_table): New function.
5672 (resize_section_table): Make static. Rename arg num_added to
5674 * exec.h (clear_section_table): Declare.
5675 (resize_section_table): Delete.
5676 * progspace.c (release_program_space): Call clear_section_table
5677 instead of resize_section_table.
5679 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5681 * NEWS (Python Scripting): Add entry about the new xmethods
5684 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5686 * python/py-xmethods.c: New file.
5687 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5688 (objfpy_dealloc): XDECREF on the new xmethods field.
5689 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5691 (objfpy_get_xmethods): New function.
5692 (objfile_getset): New entry 'xmethods'.
5693 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5694 (pspy_dealloc): XDECREF on the new xmethods field.
5695 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5697 (pspy_get_xmethods): New function.
5698 (pspace_getset): New entry 'xmethods'.
5699 * python/python-internal.h: Add declarations for new functions.
5700 * python/python.c (_initialize_python): Invoke
5701 gdbpy_initialize_xmethods.
5702 * python/lib/gdb/__init__.py (xmethods): New
5704 * python/lib/gdb/xmethod.py: New file.
5705 * python/lib/gdb/command/xmethods.py: New file.
5707 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5709 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5710 best match method returned by find_overload_match is an xmethod.
5711 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5712 the best matching operator returned by find_overload_match is an
5714 * valops.c: #include "extension.h".
5715 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5716 Return void. The list of matching source methods is returned in
5717 "fn_list" and a vector of matching debug method workers is
5718 returned in "xm_worker_vec". Update all callers.
5719 (value_find_oload_method_list): Likewise.
5720 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5721 non-NULL, then the index of the best matching method in this
5722 vector is returned. Update all callers.
5723 (find_overload_match): Include xmethods while performing overload
5726 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5728 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5729 * extension-priv.h (struct extension_language_ops): Add the
5731 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5732 get_matching_xmethod_workers, get_xmethod_argtypes,
5733 invoke_xmethod, free_xmethod_worker,
5734 free_xmethod_worker_vec): New functions.
5735 * extension.h: #include "common/vec.h".
5736 New function declarations.
5737 (struct xmethod_worker): New struct.
5738 (VEC (xmethod_worker_ptr)): New vector type.
5739 (xmethod_worker_ptr): New typedef.
5740 (xmethod_worker_vec): Likewise.
5741 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5743 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5744 (struct builtin_type): New field "xmethod".
5745 * valarith.c (value_ptradd): Assert that the value argument is not
5747 * valops.c (value_must_coerce_to_target): Return 0 for
5748 lval_xcallable values.
5749 * value.c (struct value): New field XM_WORKER in the field
5751 (value_address, value_raw_address): Return 0 for lval_xcallable
5753 (set_value_address): Assert that the value is not an
5755 (value_free): Free the associated xmethod worker when freeing
5756 lval_xcallable values.
5757 (set_value_component_location): Assert that the WHOLE value is not
5759 (value_of_xmethod, call_xmethod): New functions.
5760 * value.h: Declare "struct xmethod_worker".
5761 Declare new functions value_of_xmethod, call_xmethod.
5763 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5764 Pedro Alves <palves@redhat.com>
5766 PR breakpoints/17000
5767 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5768 New function, extracted from software_breakpoint_inserted_here_p.
5769 (software_breakpoint_inserted_here_p): Replace factored out code
5770 by call to find_non_raw_software_breakpoint_inserted_here.
5771 (bp_target_info_copy_insertion_state): New function.
5772 (bkpt_insert_location): Handle the case of a single-step
5773 breakpoint already inserted at the same address.
5774 (bkpt_remove_location): Handle the case of a single-step
5775 breakpoint still inserted at the same address.
5776 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5777 breakpoint already inserted at the same address.
5778 (deprecated_remove_raw_breakpoint): Handle the case of a
5779 non-raw breakpoint still inserted at the same address.
5780 (find_single_step_breakpoint): New function, extracted from
5781 single_step_breakpoint_inserted_here_p.
5782 (find_single_step_breakpoint): New function,
5783 factored out from single_step_breakpoint_inserted_here_p.
5784 (single_step_breakpoint_inserted_here_p): Reimplement.
5786 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5788 Pushed by Joel Brobecker <brobecker@adacore.com>
5789 * source.c (show_substitute_path_command): Fix display of matching
5792 2014-06-03 Gary Benson <gbenson@redhat.com>
5794 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5796 2014-06-02 Doug Evans <xdje42@gmail.com>
5798 Add parameter support for Guile.
5799 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5800 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5801 (scm-param.o): New rule.
5802 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5803 (gdbscm_misc_error): Declare.
5804 (gdbscm_canonicalize_command_name): Declare.
5805 (gdbscm_scm_to_host_string): Declare.
5806 (gdbscm_scm_from_host_string): Declare.
5807 (gdbscm_initialize_parameters): Declare.
5808 * guile/guile.c (initialize_gdb_module): Call
5809 gdbscm_initialize_parameters.
5810 * guile/lib/gdb.scm: Export parameter symbols.
5811 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5812 cmdscm_canonicalize_name and made public. All callers updated.
5813 * guile/scm-exception.c (gdbscm_misc_error): New function.
5814 * guile/scm-param.c: New file.
5815 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5816 (gdbscm_scm_to_host_string): New function.
5817 (gdbscm_scm_from_host_string): New function.
5818 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5820 2014-06-02 Doug Evans <xdje42@gmail.com>
5822 Add command support for Guile.
5823 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5824 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5825 (scm-cmd.o): New rule.
5826 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5827 (gdbscm_user_error_p): Declare.
5828 (gdbscm_parse_command_name): Declare.
5829 (gdbscm_valid_command_class_p): Declare.
5830 (gdbscm_initialize_commands): Declare.
5831 * guile/guile.c (initialize_gdb_module): Call
5832 gdbscm_initialize_commands.
5833 * guile/lib/gdb.scm: Export command symbols.
5834 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5835 (throw-user-error): New function.
5836 * guile/scm-cmd.c: New file.
5837 * guile/scm-exception.c (user_error_symbol): New static global.
5838 (gdbscm_user_error_p): New function.
5839 (gdbscm_initialize_exceptions): Set user_error_symbol.
5840 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5842 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5844 * top.c (command_loop): Handle comments here...
5845 (command_line_input): ... not here.
5847 2014-06-02 Doug Evans <xdje42@gmail.com>
5849 Add progspace support for Guile.
5850 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5851 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5852 (scm-progspace.o): New rule.
5853 * guile/guile-internal.h (pspace_smob): New typedef.
5854 (psscm_pspace_smob_pretty_printers): Declare.
5855 (psscm_pspace_smob_from_pspace): Declare.
5856 (psscm_scm_from_pspace): Declare.
5857 * guile/guile.c (initialize_gdb_module): Call
5858 gdbscm_initialize_pspaces.
5859 * guile/lib/gdb.scm: Export progspace symbols.
5860 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5862 (append-pretty-printer!): Ditto.
5863 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5865 * guile/scm-progspace.c: New file.
5867 2014-06-03 Alan Modra <amodra@gmail.com>
5869 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5870 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5872 2014-06-02 Doug Evans <dje@google.com>
5874 Add support for skeletonless type units.
5875 * dwarf2read.c (struct dwarf2_per_objfile): New member
5876 n_allocated_type_units.
5877 (struct dwarf2_per_objfile) <tu_stats>: New member
5878 nr_all_type_units_reallocs.
5879 (create_signatured_type_table_from_index): Initialize
5880 n_allocated_type_units
5881 (create_all_type_units): Ditto.
5882 (add_type_unit): Move up in file. New arg slot.
5883 All callers updated. Increase space for all_type_units more
5885 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5886 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5887 (lookup_dwp_signatured_type): Ditto.
5888 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5889 All callers updated.
5890 (build_type_psymtabs_1): Leave type_unit_groups as
5891 NULL if no TUs present.
5892 (print_tu_stats): New function.
5893 (process_skeletonless_type_unit): New function.
5894 (process_dwo_file_for_skeletonless_type_units): New
5896 (process_skeletonless_type_units): New function.
5897 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5898 Call print tu_stats if debugging enabled.
5900 2014-06-02 Pedro Alves <palves@redhat.com>
5902 * breakpoint.c (build_target_command_list): Don't build a command
5903 list if we have any duplicate location that isn't a dprintf.
5905 2014-06-02 Pedro Alves <palves@redhat.com>
5907 * breakpoint.c (dprintf_breakpoint_hit): New function.
5908 (initialize_breakpoint_ops): Install it as dprintf's
5909 breakpoint_hit method.
5911 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5913 * source.c (substitute_path_rule_matches): Simplify using
5914 filename_ncmp instead of FILENAME_CMP.
5916 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5918 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5920 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5922 * configure.ac: When Guile is available, check for the
5923 availability of 'scm_new_smob'.
5924 * configure, config.h.in: Regenerate.
5925 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5928 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5930 * frame.c (struct frame_info): Add stop_string field.
5931 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5932 (get_prev_frame_always): Old content moved into
5933 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5934 TRY_CATCH, handle MEMORY_ERROR exceptions.
5935 (frame_stop_reason_string): New function definition.
5936 * frame.h (unwind_stop_reason_to_string): Extend comment to
5937 mention frame_stop_reason_string.
5938 (frame_stop_reason_string): New function declaration.
5939 * stack.c (frame_info): Switch to frame_stop_reason_string.
5940 (backtrace_command_1): Switch to frame_stop_reason_string.
5941 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5942 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5943 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5945 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5947 * frame.c (frame_stop_reason_string): Rename to ...
5948 (unwind_stop_reason_to_string): this.
5949 * frame.h (frame_stop_reason_string): Rename to ...
5950 (unwind_stop_reason_to_string): this.
5951 * stack.c (frame_info): Update call to frame_stop_reason_string.
5952 (backtrace_command_1): Likewise.
5953 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5954 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5956 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5958 * frame.c (remove_prev_frame): New function.
5959 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5962 2014-05-29 Pedro Alves <palves@redhat.com>
5964 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5965 and make it const. When a single-step decays to a continue,
5966 clear 'step', not 'hw_step'. Pass whether the caller wanted
5967 to step to user_visible_resume_ptid, not what we ask the
5970 2014-05-29 Pedro Alves <palves@redhat.com>
5972 * infrun.c (process_event_stop_test, handle_step_into_function)
5973 (handle_step_into_function_backward): Adjust.
5974 Don't set the even thread's stop_step and call stop_waiting before
5975 calling end_stepping_range. Instead do that ...
5976 (end_stepping_range): ... here. Take an ecs pointer parameter.
5978 2014-05-29 Pedro Alves <palves@redhat.com>
5980 * infrun.c (stop_stepping): Rename to ...
5981 (stop_waiting): ... this.
5982 (proceed): Update comment.
5983 (process_event_stop_test, handle_inferior_event)
5984 (handle_signal_stop, handle_step_into_function)
5985 (handle_step_into_function_backward): Update.
5987 2014-05-29 Pedro Alves <palves@redhat.com>
5989 * infcall.c (run_inferior_call): Don't check whether the current
5990 thread is running after the proceed call.
5992 2014-05-29 Pedro Alves <palves@redhat.com>
5993 Tom Tromey <tromey@redhat.com>
5995 * NEWS: Mention "maint set target-async", "set mi-async", and that
5996 background execution commands are now always available.
5997 * target.h (target_async_permitted): Update comment.
5998 * target.c (target_async_permitted, target_async_permitted_1):
6000 (set_target_async_command): Rename to ...
6001 (maint_set_target_async_command): ... this.
6002 (show_target_async_command): Rename to ...
6003 (maint_show_target_async_command): ... this.
6004 (_initialize_target): Adjust.
6005 * infcmd.c (prepare_execution_command): Make extern.
6006 * inferior.h (prepare_execution_command): Declare.
6007 * infrun.c (set_observer_mode): Leave target async alone.
6008 * mi/mi-interp.c (mi_interpreter_init): Install
6009 mi_on_sync_execution_done as sync_execution_done observer.
6010 (mi_on_sync_execution_done): New function.
6011 (mi_execute_command_input_handler): Don't print the prompt if we
6012 just started a synchronous command with an async target.
6013 (mi_on_resume): Check sync_execution before printing prompt.
6014 * mi/mi-main.h (mi_async_p): Declare.
6015 * mi/mi-main.c: Include gdbcmd.h.
6016 (mi_async_p): New function.
6017 (mi_async, mi_async_1): New globals.
6018 (set_mi_async_command, show_mi_async_command, mi_async): New
6020 (exec_continue): Call prepare_execution_command.
6021 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6022 (mi_execute_async_cli_command): Use mi_async_p.
6023 (_initialize_mi_main): Install "set mi-async". Make
6024 "target-async" a deprecated alias.
6026 2014-05-29 Pedro Alves <palves@redhat.com>
6028 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6029 (_initialize_cli_interp): Adjust.
6030 * event-loop.c: Include "observer.h".
6031 (start_event_loop): Notify 'command_error' observers instead of
6032 calling display_gdb_prompt. Remove FIXME comment.
6033 * event-top.c (display_gdb_prompt): Remove call into the
6035 * inf-loop.c: Include "observer.h".
6036 (inferior_event_handler): Notify 'command_error' observers instead
6037 of calling display_gdb_prompt.
6038 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6039 observers instead of calling display_gdb_prompt.
6040 * interps.c (interp_set): Don't call display_gdb_prompt.
6041 (current_interp_display_prompt_p): Delete.
6042 * interps.h (interp_prompt_p): Delete declaration.
6043 (interp_prompt_p_ftype): Delete.
6044 (struct interp_procs) <prompt_proc_p>: Delete field.
6045 (current_interp_display_prompt_p): Delete declaration.
6046 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6047 (_initialize_mi_interp): Adjust.
6048 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6049 'command_error' observers.
6050 (tui_on_sync_execution_done, tui_on_command_error): New
6052 (tui_display_prompt_p): Delete.
6053 (_initialize_tui_interp): Adjust.
6055 2014-05-29 Pedro Alves <palves@redhat.com>
6058 * cli/cli-interp.c: Include infrun.h and observer.h.
6059 (cli_uiout, cli_interp): New globals.
6060 (cli_on_signal_received, cli_on_end_stepping_range)
6061 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6063 (cli_interpreter_init): Install them as 'end_stepping_range',
6064 'signal_received' 'signal_exited', 'exited' and 'no_history'
6066 (_initialize_cli_interp): Remove cli_interp local.
6067 * infrun.c (handle_inferior_event): Call the several stop reason
6068 observers instead of printing the stop reason directly.
6069 (end_stepping_range): New function.
6070 (print_end_stepping_range_reason, print_signal_exited_reason)
6071 (print_exited_reason, print_signal_received_reason)
6072 (print_no_history_reason): Make static, and add an uiout
6073 parameter. Print to that instead of to CURRENT_UIOUT.
6074 * infrun.h (print_end_stepping_range_reason)
6075 (print_signal_exited_reason, print_exited_reason)
6076 (print_signal_received_reason print_no_history_reason): New
6078 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6080 <cli_uiout>: New field.
6081 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6082 uiout for CLI output. Install 'signal_received',
6083 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6085 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6086 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6087 (mi_on_no_history): New functions.
6088 (ui_out_free_cleanup): Delete function.
6089 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6090 instead use the one already stored in the MI interpreter data.
6091 (mi_ui_out): Adjust.
6092 * tui/tui-interp.c: Include infrun.h and observer.h.
6093 (tui_interp): New global.
6094 (tui_on_signal_received, tui_on_end_stepping_range)
6095 (tui_on_signal_exited, tui_on_exited)
6096 (tui_on_no_history): New functions.
6097 (tui_init): Install them as 'end_stepping_range',
6098 'signal_received' 'signal_exited', 'exited' and 'no_history'
6100 (_initialize_tui_interp): Delete tui_interp local.
6102 2014-05-29 Pedro Alves <palves@redhat.com>
6105 * linux-nat.c (linux_nat_resume_callback): Rename the second
6106 parameter to 'except'. Skip LP if it points to EXCEPT.
6107 (linux_nat_resume): Don't mark the event lwp as not stopped
6108 before resuming sibling lwps. Instead ask
6109 linux_nat_resume_callback to skip the event lwp. Mark it as not
6110 stopped after actually resuming it.
6111 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6113 (wait_lwp): Mark the lwp as stopped here.
6114 (stop_wait_callback): Mark the lwp as not stopped right after
6115 resuming it. Don't mark lwps as stopped here.
6116 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6117 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6119 2014-05-29 Pedro Alves <palves@redhat.com>
6122 * infrun.c (resume): Determine how much to resume depending on
6123 whether the caller wanted a step, not whether we can hardware step
6124 the target. Mark all threads that we intend to run as running,
6125 unless we're calling an inferior function.
6126 (normal_stop): If the thread is running an infcall, don't finish
6128 * target.c (target_resume): Don't mark threads as running here.
6130 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6132 * serial.c (_initialize_serial): Remove support for
6133 the "set remotebaud" and "show remotebaud" commands.
6134 * NEWS: Add entry documenting the removal of that command.
6136 2014-05-28 Yao Qi <yao@codesourcery.com>
6138 * charset.c: Fix typo in comments.
6140 2014-05-27 Gary Benson <gbenson@redhat.com>
6142 * utils.c (internal_vproblem): Prompt for a bug report.
6144 2014-05-26 Andy Wingo <wingo@igalia.com>
6146 * guile/scm-arch.c (arscm_mark_arch_smob):
6147 * guile/scm-block.c (bkscm_mark_block_smob)
6148 (bkscm_mark_block_syms_progress_smob):
6149 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6150 * guile/scm-exception.c (exscm_mark_exception_smob):
6151 * guile/scm-frame.c (frscm_mark_frame_smob):
6152 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6153 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6154 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6155 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6156 (ppscm_mark_pretty_printer_worker_smob):
6157 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6158 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6159 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6160 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6162 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6165 2014-05-26 Andy Wingo <wingo@igalia.com>
6166 Doug Evans <xdje42@gmail.com>
6168 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6169 empty_base_class. All uses updated.
6170 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6171 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6173 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6174 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6175 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6176 (gdbscm_gsmob_has_property_p, add_property_name)
6177 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6178 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6179 (gdb-object-has-property?, gdb-object-properties): Remove.
6180 (gdb-object-kind): Renamed from gsmob-kind.
6182 2014-05-26 Andy Wingo <wingo@igalia.com>
6184 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6185 * configure: Regenerate.
6187 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6189 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6191 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6193 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6194 (replay_memory_access_read_only, replay_memory_access_read_write)
6195 (replay_memory_access_types, replay_memory_access)
6196 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6197 (cmd_set_record_btrace, cmd_show_record_btrace)
6198 (cmd_show_replay_memory_access): New.
6199 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6200 (record_btrace_remove_breakpoint): Replace
6201 record_btrace_allow_memory_access with replay_memory_access.
6202 (_initialize_record_btrace): Add commands.
6203 * NEWS: Announce it.
6205 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6207 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6209 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6211 * MAINTAINERS (Write After Approval): Move self back from
6214 2014-05-22 Pedro Alves <palves@redhat.com>
6216 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6217 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6218 (disable_randomization, enum exec_direction_kind)
6219 (execution_direction, stop_registers, start_remote)
6220 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6221 (wait_for_inferior, normal_stop, get_last_target_status)
6222 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6223 (insert_step_resume_breakpoint_at_sal)
6224 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6225 (set_step_info, print_stop_event, signal_stop_state)
6226 (signal_print_state, signal_pass_state, signal_stop_update)
6227 (signal_print_update, signal_pass_update)
6228 (update_signals_program_target, clear_exit_convenience_vars)
6229 (displaced_step_dump_bytes, update_observer_mode)
6230 (signal_catch_update, gdb_signal_from_command): Move
6232 * infrun.h: ... to this new file.
6233 * amd64-tdep.c: Include infrun.h.
6234 * annotate.c: Include infrun.h.
6235 * arch-utils.c: Include infrun.h.
6236 * arm-linux-tdep.c: Include infrun.h.
6237 * arm-tdep.c: Include infrun.h.
6238 * break-catch-sig.c: Include infrun.h.
6239 * breakpoint.c: Include infrun.h.
6240 * common/agent.c: Include infrun.h instead of inferior.h.
6241 * corelow.c: Include infrun.h.
6242 * event-top.c: Include infrun.h.
6243 * go32-nat.c: Include infrun.h.
6244 * i386-tdep.c: Include infrun.h.
6245 * inf-loop.c: Include infrun.h.
6246 * infcall.c: Include infrun.h.
6247 * infcmd.c: Include infrun.h.
6248 * infrun.c: Include infrun.h.
6249 * linux-fork.c: Include infrun.h.
6250 * linux-nat.c: Include infrun.h.
6251 * linux-thread-db.c: Include infrun.h.
6252 * monitor.c: Include infrun.h.
6253 * nto-tdep.c: Include infrun.h.
6254 * procfs.c: Include infrun.h.
6255 * record-btrace.c: Include infrun.h.
6256 * record-full.c: Include infrun.h.
6257 * remote-m32r-sdi.c: Include infrun.h.
6258 * remote-mips.c: Include infrun.h.
6259 * remote-notif.c: Include infrun.h.
6260 * remote-sim.c: Include infrun.h.
6261 * remote.c: Include infrun.h.
6262 * reverse.c: Include infrun.h.
6263 * rs6000-tdep.c: Include infrun.h.
6264 * s390-linux-tdep.c: Include infrun.h.
6265 * solib-irix.c: Include infrun.h.
6266 * solib-osf.c: Include infrun.h.
6267 * solib-svr4.c: Include infrun.h.
6268 * target.c: Include infrun.h.
6269 * top.c: Include infrun.h.
6270 * windows-nat.c: Include infrun.h.
6271 * mi/mi-interp.c: Include infrun.h.
6272 * mi/mi-main.c: Include infrun.h.
6273 * python/py-threadevent.c: Include infrun.h.
6275 2014-05-22 Pedro Alves <palves@redhat.com>
6277 * infrun.c (handle_inferior_event): Store the exit code for
6278 --return-child-result here, instead of ...
6279 (print_exited_reason): ... here.
6281 2014-05-21 Pedro Alves <palves@redhat.com>
6284 * gdbthread.h (struct thread_control_state): New field
6286 * infrun.c (follow_fork): Copy the new thread control field to the
6288 (clear_proceed_status_thread): Clear the new thread control field.
6289 (proceed): Set the new thread control field.
6290 * interps.h (command_interp): Declare.
6291 * interps.c (command_interpreter): New global.
6292 (command_interp): New function.
6293 (interp_exec): Set `command_interpreter' while here.
6294 * cli-out.c (cli_uiout_dtor): New function.
6295 (cli_ui_out_impl): Install it.
6296 * mi/mi-interp.c: Include cli-out.h.
6297 (mi_cmd_interpreter_exec): Add comment.
6298 (restore_current_uiout_cleanup): New function.
6299 (ui_out_free_cleanup): New function.
6300 (mi_on_normal_stop): If finishing an execution command started by
6301 a CLI command, or any kind of breakpoint-like event triggered,
6302 print the stop event to the output (CLI) stream.
6303 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6305 2014-05-21 Pedro Alves <palves@redhat.com>
6307 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6308 current source line having changed.
6309 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6310 * infrun.c (normal_stop): Adjust call to
6311 set_current_sal_from_frame.
6312 * source.c (clear_lines_listed_range): New function.
6313 (set_current_source_symtab_and_line, identify_source_line): Clear
6314 the lines listed range.
6315 (line_info): Handle the first "info line" after the current source
6316 line having changed.
6317 * stack.c (print_stack_frame): Remove center handling.
6318 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6321 2014-05-21 Pedro Alves <palves@redhat.com>
6323 * inf-child.c (inf_child_mourn_inferior): New function.
6324 * inf-child.h (inf_child_mourn_inferior): New declaration.
6325 * darwin-nat.c (darwin_mourn_inferior): Use
6326 inf_child_mourn_inferior.
6327 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6328 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6329 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6330 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6331 * windows-nat.c (windows_mourn_inferior): Likewise.
6333 2014-05-21 Doug Evans <xdje42@gmail.com>
6335 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6337 2014-05-21 Doug Evans <xdje42@gmail.com>
6339 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6340 (gdbscm_out_of_range_error): Ditto.
6341 (gdbscm_memory_error): Ditto.
6342 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6343 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6344 (gdbscm_out_of_range_error): Update.
6345 (gdbscm_memory_error): Update.
6346 (gdbscm_scm_to_target_string_unsafe): Delete.
6348 2014-05-21 Pedro Alves <palves@redhat.com>
6350 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6352 (inf_child_open_target): New function.
6353 (inf_child_open): Use inf_child_open_target to push the target
6354 instead of erroring out.
6355 (inf_child_disconnect, inf_child_close)
6356 (inf_child_maybe_unpush_target): New functions.
6357 (inf_child_target): Install inf_child_disconnect and
6358 inf_child_close. Store a pointer to the returned object.
6359 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6361 * target.c (auto_connect_native_target): New global.
6362 (show_default_run_target): New function.
6363 (find_default_run_target): Return NULL if automatically connecting
6364 to the native target is disabled.
6365 (_initialize_target): Install set/show auto-connect-native-target.
6366 * NEWS: Mention "set auto-connect-native-target", and "target
6368 * linux-nat.c (super_close): New global.
6369 (linux_nat_close): Call super_close.
6370 (linux_nat_add_target): Store a pointer to the base class's
6372 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6373 inf_child_maybe_unpush.
6374 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6376 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6377 the inferior. Use inf_child_maybe_unpush_target.
6378 (inf_ttrace_attach): Don't push the target if it is already
6380 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6381 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6382 after mourning the inferior. Use inf_child_maybe_unpush_target.
6383 (darwin_attach_pid): Don't push the target if it is already
6385 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6386 mourning the inferior. Use inf_child_maybe_unpush_target.
6387 (gnu_detach): Use inf_child_maybe_unpush_target.
6388 * go32-nat.c (go32_create_inferior): Don't push the target if it
6390 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6391 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6392 (procfs_open): Rename to ...
6393 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6394 comments. Can target_preopen before changing node. Call
6395 inf_child_open_target to push the target explicitly.
6396 (procfs_attach): Don't push the target if it is already pushed.
6397 (procfs_detach): Use inf_child_maybe_unpush_target.
6398 (procfs_create_inferior): Don't push the target if it is already
6400 (nto_native_ops): New global.
6401 (procfs_open): Reimplement.
6402 (procfs_native_open): New function.
6403 (init_procfs_targets): Install procfs_native_open as to_open of
6404 "target native". Store a pointer to the "native" target in
6406 * procfs.c (procfs_attach): Don't push the target if it is already
6408 (procfs_detach): Use inf_child_maybe_unpush_target.
6409 (procfs_mourn_inferior): Only unpush the target after mourning the
6410 inferior. Use inf_child_maybe_unpush_target.
6411 (procfs_init_inferior): Don't push the target if it is already
6413 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6414 if it is already pushed.
6416 2014-05-21 Pedro Alves <palves@redhat.com>
6418 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6419 and "procfs" targets are now called "native" instead.
6421 2014-05-21 Pedro Alves <palves@redhat.com>
6423 * go32-nat.c (go32_open): Delete.
6424 (go32_target): Don't override the to_open method.
6426 2014-05-21 Pedro Alves <palves@redhat.com>
6428 * nto-procfs.c (procfs_can_run): New function.
6429 (nto_procfs_ops): New global.
6430 (init_procfs_targets): New, based on procfs_target. Install
6431 "target native" in addition to "target procfs".
6432 (_initialize_procfs): Call init_procfs_targets instead of adding
6435 2014-05-21 Pedro Alves <palves@redhat.com>
6437 * windows-nat.c (windows_target): Don't override to_shortname,
6438 to_longname or to_doc.
6440 2014-05-21 Pedro Alves <palves@redhat.com>
6442 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6445 2014-05-21 Pedro Alves <palves@redhat.com>
6447 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6448 to_shortname, to_longname or to_doc.
6450 2014-05-21 Pedro Alves <palves@redhat.com>
6452 * go32-nat.c (go32_target): Don't override to_shortname,
6453 to_longname or to_doc.
6455 2014-05-21 Pedro Alves <palves@redhat.com>
6457 * inf-child.c (inf_child_open): Remove mention of "child".
6458 (inf_child_target): Rename target to "native" instead of "child".
6460 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6462 * Makefile.in (SFILES): Delete "regset.c".
6463 (COMMON_OBS): Delete "regset.o".
6465 * regset.h (regset_alloc): Delete prototype.
6467 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6469 * sparc-linux-tdep.c (sparc32_linux_gregset)
6470 (sparc32_linux_fpregset): New static regset structures.
6471 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6472 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6474 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6475 (sparc64_linux_fpregset): New static regset structures.
6476 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6477 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6478 New static regset structures.
6479 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6480 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6481 New static regset structures.
6482 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6483 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6484 New static regset structures.
6485 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6486 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6487 New static regset structures.
6488 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6490 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6492 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6493 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6494 register maps ("regmaps") from "*regset" to "*regmap". Do this
6495 for all regmap types and variables.
6496 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6497 (sparc32_linux_supply_core_gregset)
6498 (sparc32_linux_collect_core_gregset)
6499 (sparc32_linux_supply_core_fpregset)
6500 (sparc32_linux_collect_core_fpregset): Likewise.
6501 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6502 (sparc_gregmap, sparc_fpregmap): ... these.
6503 (sparc_supply_gregset, sparc_collect_gregset)
6504 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6505 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6506 (_initialize_sparc_nat): Rename regmaps.
6507 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6508 (sparc_gregmap, sparc_fpregmap): ... these.
6509 (sparc_supply_gregset, sparc_collect_gregset)
6510 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6511 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6513 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6514 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6516 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6518 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6519 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6520 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6522 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6523 (sparc32_bsd_fpregset): Rename to...
6524 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6525 (sparc32_bsd_fpregmap): ... these.
6526 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6527 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6528 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6529 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6530 (struct sparc_gregmap, struct sparc_fpregmap)
6531 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6532 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6533 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6534 (sparc32_supply_regset, sparc32_collect_gregset)
6535 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6537 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6538 (sparc64_linux_ptrace_gregmap): ... this.
6539 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6540 (_initialize_sparc64_linux_nat): Rename regmaps.
6541 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6542 (sparc64_linux_core_gregmap): ... this.
6543 (sparc64_linux_supply_core_gregset)
6544 (sparc64_linux_collect_core_gregset)
6545 (sparc64_linux_supply_core_fpregset)
6546 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6547 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6548 (sparc64_sol2_fpregset): Rename to...
6549 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6550 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6551 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6553 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6554 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6555 (sparc64_bsd_fpregset): Rename to...
6556 (struct sparc_gregmap, sparc64_sol2_gregmap)
6557 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6558 (sparc64_bsd_fpregmap): ... these.
6559 (sparc64_supply_gregset, sparc64_collect_gregset)
6560 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6562 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6563 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6564 (sparc64fbsd_gregmap): ... this.
6565 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6566 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6568 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6569 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6570 (sparc64nbsd_collect_fpregset): Likewise.
6571 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6572 (sparc64nbsd_gregmap): ... this.
6573 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6575 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6576 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6577 (sparc64obsd_gregmap): ... this.
6578 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6580 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6581 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6582 (sparc32nbsd_gregmap): ... this.
6583 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6586 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6588 * score-tdep.c (score7_linux_gregset): New static regset
6590 (score7_linux_regset_from_core_section): Remove dynamic regset
6592 (score_gdbarch_init): Drop allocation of tdep structure.
6593 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6595 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6597 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6599 (am33_regset_from_core_section): Remove dynamic regset
6602 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6604 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6605 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6607 (mips_linux_regset_from_core_section): Remove dynamic regset
6609 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6610 'gregset64', 'fpregset', and 'fpregset64'.
6611 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6612 deleted tdep fields.
6614 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6616 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6618 (amd64_regset_from_core_section): Remove dynamic regset
6620 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6622 (amd64obsd_regset_from_core_section): Remove dynamic regset
6624 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6626 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6627 x86-common regset supply function.
6628 * i386-tdep.c (i386_collect_gregset): Make static.
6629 (i386_gregset): New global regset structure.
6630 (i386_fpregset, i386_xstateregset): New static regset structures.
6631 (i386_regset_from_core_section): Remove dynamic regset
6633 (i386_gdbarch_init): Remove initialization of tdep fields
6634 'gregset', 'fpregset', and 'xstateregset'.
6635 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6636 'fpregset', and 'xstateregset'.
6637 (i386_collect_gregset): Remove prototype.
6638 (i386_gregset): New declaration.
6639 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6641 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6644 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6646 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6647 (arm_linux_vfpregset): New static regset structures.
6648 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6650 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6651 and 'vfpregset' fields.
6653 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6655 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6656 (aarch64_linux_fpregset): New static regset structures.
6657 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6658 of regset structures.
6659 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6662 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6664 * regset.h (struct regset): Remove gdbarch field.
6665 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6666 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6667 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6669 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6670 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6671 (ppc32_linux_vsxregset): Likewise.
6672 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6673 via the regcache instead of the regset.
6674 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6675 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6676 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6677 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6680 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6682 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6683 Constify structures.
6684 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6685 (alphanbsd_aout_gregset): Likewise.
6686 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6687 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6689 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6690 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6692 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6693 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6694 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6695 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6696 * m88k-tdep.c (m88k_gregset): Likewise.
6697 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6698 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6699 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6700 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6701 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6702 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6703 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6704 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6705 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6707 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6708 * sh-tdep.h (sh_corefile_gregset): Likewise.
6709 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6710 * vax-tdep.c (vax_gregset): Likewise.
6712 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6714 Fix TLS access for -static -pthread.
6715 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6716 (try_thread_db_load_1): Initialize it.
6717 (thread_db_get_thread_local_address): Call it if LM is zero.
6718 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6719 * target.h (struct target_ops) (to_get_thread_local_address): Add
6720 load_module_addr comment.
6722 2014-05-21 Pedro Alves <palves@redhat.com>
6724 * dcache.c (dcache_read_memory_partial): If reading the cache line
6725 fails, fallback to reading just the memory the caller wanted.
6727 2014-05-20 Doug Evans <dje@google.com>
6729 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6730 instead of get_current_arch.
6732 2014-05-20 Pedro Alves <palves@redhat.com>
6734 * NEWS: Mention that compare-sections now works with all targets.
6736 * remote.c (PACKET_qCRC): New enum value.
6737 (remote_verify_memory): Don't send qCRC if the target has no
6738 execution. Use packet_support/packet_ok. If the target doesn't
6739 support the qCRC packet, fallback to a deep memory copy.
6740 (compare_sections_command): Say "target image" instead of "remote
6742 (_initialize_remote): Add PACKET_qCRC to the list of config
6743 packets that have no associated command. Extend comment.
6744 * target.c (simple_verify_memory, default_verify_memory): New
6746 * target.h (struct target_ops) <to_verify_memory>: Default to
6747 default_verify_memory.
6748 (simple_verify_memory): New declaration.
6749 * target-delegates.c: Regenerate.
6751 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6753 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6755 2014-05-20 Hui Zhu <hui@codesourcery.com>
6756 Yao Qi <yao@codesourcery.com>
6759 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6760 and change address of sp and pc.
6762 2014-05-19 Tom Tromey <tromey@redhat.com>
6764 * gdbtypes.c (rank_function): Use XNEWVEC.
6765 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6767 2014-05-19 Doug Evans <dje@google.com>
6769 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6770 build_type_unit_groups and moved closer to only caller. Remove
6771 arguments. All references updated. Remove outdated .gdb_index
6773 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6774 build_type_psymtabs_1.
6776 2014-05-19 Doug Evans <dje@google.com>
6778 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6779 n_type_unit_groups, all_type_unit_groups. All uses removed.
6780 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6781 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6782 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6783 (add_type_unit_group_to_table): Delete.
6785 2014-05-19 Doug Evans <dje@google.com>
6787 * eval.c (evaluate_subexp_standard): Add some comments.
6789 2014-05-17 Doug Evans <xdje42@gmail.com>
6791 * progspace.c (remove_program_space): Delete, unused.
6792 * progspace.h (remove_program_space): Ditto.
6794 2014-05-17 Doug Evans <xdje42@gmail.com>
6796 * inferior.c (prune_inferiors): Fix comment.
6797 (remove_inferior_command): Call prune_program_spaces.
6799 2014-05-16 Doug Evans <dje@google.com>
6801 New command line option -D.
6803 * main.c (set_gdb_data_directory): New function.
6804 (captured_main): Recognize -D. Flag error for --data-directory "".
6805 Call set_gdb_data_directory.
6806 (print_gdb_help): Print --data-directory, -D.
6807 * main.h (set_gdb_data_directory): Declare.
6808 * top.c (staged_gdb_datadir): New static global.
6809 (set_gdb_datadir): Call set_gdb_data_directory
6810 (show_gdb_datadir): New function.
6811 (init_main): Update init of data-directory parameter.
6813 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6815 Import the "dirfd" gnulib module.
6816 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6817 * gnulib/aclocal.m4: Update.
6818 * gnulib/config.in: Update.
6819 * gnulib/configure: Update.
6820 * gnulib/import/Makefile.am: Update.
6821 * gnulib/import/Makefile.in: Update.
6822 * gnulib/import/dirfd.c: New.
6823 * gnulib/import/m4/dirfd.m4: New.
6824 * gnulib/import/m4/gnulib-cache.m4: Update.
6825 * gnulib/import/m4/gnulib-comp.m4: Update.
6827 2014-05-16 Pierre Muller <muller@sourceware.org>
6828 Yao Qi <yao@codesourcery.com>
6830 * valprint.c (print_wchar): Move the code on checking whether
6831 W is a printable wide char to the default branch of switch
6832 statement below. Call wchar_printable instead of gdb_iswprint.
6834 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6836 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6837 ldr.w and ldrd instructions.
6839 2014-05-15 Doug Evans <dje@google.com>
6841 * dwarf2read.c (read_structure_type): Delete outdated comments.
6843 2014-05-14 Tom Tromey <tromey@redhat.com>
6845 * macrocmd.c (print_macro_definition): Reindent.
6847 2014-05-13 Doug Evans <xdje42@gmail.com>
6849 * python/py-cmd.c (cmdpy_completer): Add comment.
6850 (completers): Make const.
6852 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6854 * infrun.c (resume): Remove should_resume (unused). Move up
6855 declaration of resume_ptid.
6857 2014-05-13 Tom Tromey <tromey@redhat.com>
6859 * language.h (unop_type_check): Remove.
6860 (binop_type_check): Don't declare.
6862 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6864 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6865 call to regcache_raw_collect.
6867 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6869 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6870 mi_console->quote as the quoting character.
6872 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6874 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6876 2014-04-29 Tom Tromey <tromey@redhat.com>
6878 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6879 "show debug varobj".
6881 2014-05-07 Kyle McMartin <kyle@redhat.com>
6883 Pushed by Joel Brobecker <brobecker@adacore.com>.
6884 * aarch64-tdep.c (aarch64_software_single_step): New function.
6885 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6886 with aarch64_software_single_step.
6888 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6892 2014-05-05 Keith Seitz <keiths@redhat.com>
6894 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6895 variable or history value is successfully parsed.
6897 2014-05-05 Yao Qi <yao@codesourcery.com>
6898 Pedro Alves <palves@redhat.com>
6900 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6901 address of blocks that intersects the requested range. Trim
6902 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6904 * ctf.c (ctf_xfer_partial): Likewise.
6906 2014-05-05 Yao Qi <yao@codesourcery.com>
6908 * printcmd.c (display_command): Remove the check to
6909 target_has_execution.
6911 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6913 * ppcobsd-nat.c: Include "obsd-nat.h".
6914 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6916 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6918 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6920 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6921 and 16-bit signed and unsigned arguments. Update comment.
6922 (stap_parse_probe_arguments): Extend code to handle such
6923 arguments. Use warning instead of complaint to notify about
6924 unrecognized bitness.
6926 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6928 PR breakpoints/16889
6929 * stap-probe.c (stap_parse_probe_arguments): Simplify
6930 check for non-prefixed probes (i.e., probes whose
6931 arguments do not start with "N@"). Always set the
6932 argument type to a sane value.
6934 2014-05-01 David Taylor <dtaylor@emc.com>
6936 * remote.c (compare_sections_command): Add -r option to compare
6937 all loadable read-only sections.
6939 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6941 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6942 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6944 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6945 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6946 Remove unused CORE_ADDR argument. Update all callers.
6948 2014-04-29 Pedro Alves <palves@redhat.com>
6950 * remote.c (struct packet_config) <detect>: Extend comment.
6951 (add_packet_config_cmd): Don't set the config's detect or support
6953 (init_all_packet_configs): Also initialize the config's 'detect'
6955 (reset_all_packet_configs_support): New function.
6956 (remote_open_1): Call reset_all_packet_configs_support instead of
6957 init_all_packet_configs.
6958 (_initialize_remote): Initialize all packet configs. Assert that
6959 all packets have an associated command, except a few known
6962 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6964 * dwarf2read.c (read_subrange_type): Handle dynamic
6965 DW_AT_lower_bound attributes.
6967 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6969 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6970 dynamic bounds before computing its upper bound.
6971 (ada_discrete_type_low_bound): Same as above with the lower bound.
6973 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6975 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6976 range types. Adjust the array handling implementation to
6977 take advantage of this change.
6978 (resolve_dynamic_range): New function, mostly extracted from
6979 resolve_dynamic_bounds.
6980 (resolve_dynamic_array): New function, mostly extracted from
6981 resolve_dynamic_bounds.
6982 (resolve_dynamic_bounds): Delete.
6983 (resolve_dynamic_type): Reimplement. Add handling of
6984 TYPE_CODE_RANGE types.
6986 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6988 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6989 handling of parallel ___XA types.
6991 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6993 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6994 unnecessary second call to static_unwrap_type.
6996 2014-04-27 Hui Zhu <hui@codesourcery.com>
6998 * stack.c (print_frame_info): Call do_gdb_disassembly with
6999 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7001 2014-04-26 Doug Evans <xdje42@gmail.com>
7003 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7005 2014-04-25 Pedro Alves <palves@redhat.com>
7008 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7009 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7010 and newline from built string.
7011 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7012 (linux_ptrace_attach_fail_reason): ... this.
7013 * linux-nat.c (linux_nat_attach): Adjust to use
7014 linux_ptrace_attach_fail_reason.
7016 2014-04-25 Pedro Alves <palves@redhat.com>
7018 * remote.c (struct remote_state): Remove multi_process_aware,
7019 non_stop_aware, cond_tracepoints, cond_breakpoints,
7020 breakpoint_commands, fast_tracepoints, static_tracepoints,
7021 install_in_trace, disconnected_tracing,
7022 enable_disable_tracepoints, string_tracing, and
7023 augmented_libraries_svr4_read fields.
7024 (remote_multi_process_p): Move further below in the file.
7025 (struct packet_config): Add comments.
7026 (update_packet_config): Delete function.
7027 (show_packet_config_cmd): Use packet_config_support.
7028 (add_packet_config_cmd): Use NULL as set callback.
7029 (packet_ok): "set remote foo-packet"-style commands no longer
7030 change config->supported -- adjust.
7031 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7032 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7033 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7034 (PACKET_QNonStop, PACKET_multiprocess_feature)
7035 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7036 (PACKET_DisconnectedTracing_feature)
7037 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7038 (set_remote_protocol_packet_cmd): Delete function.
7039 (packet_config_support, packet_support): New functions.
7040 (set_remote_protocol_Z_packet_cmd): Don't call
7041 update_packet_config.
7042 (remote_query_attached, remote_pass_signals)
7043 (remote_program_signals, remote_threads_info)
7044 (remote_threads_extra_info, remote_start_remote): Use
7046 (remote_start_remote): Use packet_config_support and
7048 (init_all_packet_configs): Set all packets to unknown support,
7049 instead of calling update_packet_config.
7050 (remote_check_symbols): Use packet_support.
7051 (remote_supported_packet): Unconditionally set the packet config's
7053 (remote_multi_process_feature, remote_non_stop_feature)
7054 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7055 (remote_breakpoint_commands_feature)
7056 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7057 (remote_install_in_trace_feature)
7058 (remote_disconnected_tracing_feature)
7059 (remote_enable_disable_tracepoint_feature)
7060 (remote_string_tracing_feature)
7061 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7062 (remote_protocol_features): Adjust to use remote_supported_packet
7063 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7064 "ConditionalTracepoints", "ConditionalBreakpoints",
7065 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7066 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7067 "EnableDisableTracepoints", and "tracenz".
7068 (remote_query_supported): Use packet_support.
7069 (remote_open_1): Adjust.
7070 (extended_remote_attach_1): Use packet_support. Switch on the
7071 result of packet_ok instead of checking whether the packet ended
7073 (remote_vcont_resume): Use packet_support.
7074 (remote_resume, remote_stop_ns, fetch_register_using_p)
7075 (remote_prepare_to_store, store_register_using_P)
7076 (check_binary_download, remote_write_bytes): Use packet_support.
7077 (remote_vkill): Use packet_support. Switch on the result of
7078 packet_ok instead of checking whether the packet ended up
7080 (extended_remote_supports_disable_randomization): Use
7082 (extended_remote_run): Switch on the result of packet_ok instead
7083 of checking whether the packet ended up disabled.
7084 (remote_insert_breakpoint, remote_remove_breakpoint)
7085 (remote_insert_watchpoint, remote_remove_watchpoint)
7086 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7088 (remote_search_memory): Use packet_config_support.
7089 (remote_get_thread_local_address, remote_get_tib_address)
7090 (remote_hostio_send_command, remote_can_execute_reverse): Use
7092 (remote_supports_cond_tracepoints)
7093 (remote_supports_cond_breakpoints)
7094 (remote_supports_fast_tracepoints)
7095 (remote_supports_static_tracepoints)
7096 (remote_supports_install_in_trace)
7097 (remote_supports_enable_disable_tracepoint)
7098 (remote_supports_string_tracing)
7099 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7100 the packet config says the feature is enabled or disabled.
7101 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7102 (remote_get_trace_status): Use packet_support.
7103 (remote_set_disconnected_tracing): Adjust to check whether the
7104 feature is enabled with packet_support.
7105 (remote_set_trace_buffer_size, remote_use_agent)
7106 (remote_can_use_agent, remote_supports_btrace): Use
7108 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7109 Use packet_config_support.
7110 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7111 the packet config says the feature is enabled or disabled.
7112 (set_range_stepping): Use packet_support.
7114 2014-04-25 Tom Tromey <tromey@redhat.com>
7116 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7119 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7121 * NEWS: Mention support for C99 variable length arrays.
7123 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7125 * ada-lang.c (standard_exc): Expand introductory comment.
7127 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7128 Walfred Tedeschi <walfred.tedeschi@intel.com>
7130 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7132 (amd64_linux_read_description): Add code to handle AVX512 xstate
7133 mask and return respective tdesc.
7134 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7135 and features/i386/x32-avx512-linux.c.
7136 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7137 (amd64_linux_core_read_description): Add code to handle AVX512
7138 xstate mask and return respective tdesc.
7139 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7140 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7142 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7143 (tdesc_amd64_avx512_linux): New prototype.
7144 (tdesc_x32_avx512_linux): Likewise.
7145 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7146 features/i386/x32-avx512.c.
7147 (amd64_ymm_avx512_names): New register names for pseudo
7149 (amd64_ymmh_avx512_names): New register names for raw registers
7151 (amd64_k_names): New register names for K registers.
7152 (amd64_zmmh_names): New register names for ZMM raw registers.
7153 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7154 (amd64_xmm_avx512_names): New register names for XMM16-31
7156 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7158 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7159 if feature is present.
7160 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7161 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7162 (AMD64_NUM_REGS): Adjust to new number of registers.
7163 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7164 registers supplied via XSTATE by AVX512 registers.
7165 (i386_linux_read_description): Add case for AVX512.
7166 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7167 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7168 (i386_linux_core_read_description): Add case for AVX512.
7169 (i386_linux_init_abi): Install supported register note section
7171 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7173 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7174 registers to be number of zmm7h + 1.
7175 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7176 * i386-tdep.c: Include features/i386/i386-avx512.c.
7177 (i386_zmm_names): Add ZMM pseudo register names array.
7178 (i386_zmmh_names): Add ZMM raw register names array.
7179 (i386_k_names): Add K raw register names array.
7180 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7181 registers. AVX512 has 16 more ZMM registers than there are YMM
7183 (i386_zmmh_regnum_p): Add function to look up register number of
7185 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7186 (i386_k_regnum_p): Likewise for K raw registers.
7187 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7188 registers added by AVX512.
7189 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7190 registers added by AVX512.
7191 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7193 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7194 (i386_pseudo_register_name): Add ZMM pseudo registers.
7195 (i386_zmm_type): Construct and return vector registers type for ZMM
7197 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7198 ZMM0-31 pseudo registers and K registers.
7199 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7200 and YMM16-31 registers from register cache.
7201 (i386_pseudo_register_write): Add code to write K, ZMM and
7203 (i386_register_reggroup_p): Add code to include/exclude AVX512
7204 registers in/from respective register groups.
7205 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7206 registers if feature is present in xcr0.
7207 (i386_gdbarch_init): Add code to initialize AVX512 feature
7208 variables in tdep structure, wire in pseudo registers and call
7209 initialize_tdesc_i386_avx512.
7210 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7212 (i386_regnum): Add AVX512 registers.
7213 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7214 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7215 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7216 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7218 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7219 (i386_ymm_avx512_regnum_p): Likewise.
7220 (i386_k_regnum_p): Likewise.
7221 (i386_zmm_regnum_p): Likewise.
7222 (i386_zmmh_regnum_p): Likewise.
7223 * i387-tdep.c : Update year in copyright notice.
7224 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7226 (XSAVE_YMM_AVX512_ADDR): New macro.
7227 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7229 (XSAVE_XMM_AVX512_ADDR): New macro.
7230 (xsave_avx512_k_offset): New table for K register offsets in
7232 (XSAVE_AVX512_K_ADDR): New macro.
7233 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7235 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7236 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7238 (i387_collect_xsave): Add code to collect AVX512 registers from
7240 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7241 of XMM16-31 registers.
7242 (I387_NUM_K_REGS): New define for number of K registers.
7243 (I387_K0_REGNUM): New define for K0 register number.
7244 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7245 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7246 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7248 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7249 (I387_XMM16_REGNUM): New define for XMM16 register number.
7250 (I387_YMM0_REGNUM): New define for YMM0 register number.
7251 (I387_KEND_REGNUM): New define for last K register number.
7252 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7253 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7255 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7257 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7259 * features/Makefile: Add AVX512 related files.
7260 * features/i386/32bit-avx512.xml: New file.
7261 * features/i386/64bit-avx512.xml: Likewise.
7262 * features/i386/amd64-avx512-linux.c: Likewise.
7263 * features/i386/amd64-avx512-linux.xml: Likewise.
7264 * features/i386/amd64-avx512.c: Likewise.
7265 * features/i386/amd64-avx512.xml: Likewise.
7266 * features/i386/i386-avx512-linux.c: Likewise.
7267 * features/i386/i386-avx512-linux.xml: Likewise.
7268 * features/i386/i386-avx512.c: Likewise.
7269 * features/i386/i386-avx512.xml: Likewise.
7270 * features/i386/x32-avx512-linux.c: Likewise.
7271 * features/i386/x32-avx512-linux.xml: Likewise.
7272 * features/i386/x32-avx512.c: Likewise.
7273 * features/i386/x32-avx512.xml: Likewise.
7274 * regformats/i386/amd64-avx512-linux.dat: New file.
7275 * regformats/i386/amd64-avx512.dat: Likewise.
7276 * regformats/i386/i386-avx512-linux.dat: Likewise.
7277 * regformats/i386/i386-avx512.dat: Likewise.
7278 * regformats/i386/x32-avx512-linux.dat: Likewise.
7279 * regformats/i386/x32-avx512.dat: Likewise.
7280 * NEWS: Add note about new support for AVX512.
7283 2014-04-23 Pedro Alves <palves@redhat.com>
7285 * breakpoint.c (insert_bp_location): Tolerate errors if the
7286 breakpoint is set in a user-loaded objfile.
7287 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7288 location is marked shlib_disabled. If the breakpoint is set in a
7289 user-loaded objfile is a GDB-side memory breakpoint, validate it
7290 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7291 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7293 * mem-break.c (memory_validate_breakpoint): New function.
7294 * objfiles.c (userloaded_objfile_contains_address_p): New
7296 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7297 * target.h (memory_validate_breakpoint): New declaration.
7299 2014-04-23 Pedro Alves <palves@redhat.com>
7301 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7302 the breakpoint is set in a shared library, only suppress
7303 errors for software breakpoints, not hardware breakpoints.
7305 2014-04-22 Pedro Alves <palves@redhat.com>
7307 * infrun.c (schedlock_applies): New function, factored out from
7308 find_thread_needs_step_over.
7309 (find_thread_needs_step_over): Use it.
7310 (switch_back_to_stepped_thread): Always clear trap_expected if the
7311 step over is finished. Return early if scheduler locking applies.
7312 Look for the stepping thread and a potential step-over thread with
7314 (currently_stepping_or_nexting_callback): Delete.
7316 2014-04-22 Nick Clifton <nickc@redhat.com>
7318 * NEWS: Mention that ARM sim now supports tracing.
7320 2014-04-22 Yao Qi <yao@codesourcery.com>
7322 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7324 * tracefile.c (tracefile_fetch_registers): ... it. New
7326 * tracefile.h (tracefile_fetch_registers): Declare.
7327 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7328 tracefile_fetch_registers.
7330 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7333 * windows-nat.c (thread_rec): Don't display a warning when
7334 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7335 fails for any reason, set th->suspended to -1, so that we don't
7336 try to resume such a thread. Also, don't return NULL in these
7337 cases, to avoid completely ruin the session due to "PC register is
7338 not available" error.
7339 (do_windows_fetch_inferior_registers): Check errors in
7340 GetThreadContext call.
7341 (windows_continue): Accept an additional argument KILLED; if not
7342 zero, ignore errors in the SetThreadContext call, since the
7343 inferior was killed and is shutting down.
7344 (windows_resume, get_windows_debug_event)
7345 (windows_create_inferior, windows_mourn_inferior)
7346 (windows_kill_inferior): All callers of windows_continue changed
7347 to adjust to its new calling sequence.
7349 2014-04-19 Yao Qi <yao@codesourcery.com>
7351 * ctf.c (ctf_open): Call post_create_inferior.
7353 2014-04-19 Yao Qi <yao@codesourcery.com>
7355 * ctf.c (handle_id): New static variable.
7356 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7357 value. Get the declaration of event "register" and get length
7358 of field "contents".
7360 2014-04-19 Yao Qi <yao@codesourcery.com>
7362 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7364 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7366 * valops.c (oload_method_static): Remove unnecessary argument
7367 METHOD. Update all callers.
7369 2014-04-18 Pedro alves <palves@redhat.com>
7370 Tom Tromey <tromey@redhat.com>
7373 * frame.c (get_prev_frame_1): Rename to ...
7374 (get_prev_frame_always): ... this, and make extern. Adjust.
7375 (skip_artificial_frames): Use get_prev_frame_always.
7376 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7377 (get_frame_unwind_stop_reason): Adjust to rename.
7378 * frame.h (get_prev_frame_always): Declare.
7379 * inline-frame.c: Include frame.h.
7380 (inline_frame_this_id): Use get_prev_frame_always.
7382 2014-04-18 Tristan Gingold <gingold@adacore.com>
7384 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7385 code by using bfd_mach_o_get_base_address.
7387 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7389 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7390 (spu_ax_pseudo_register_collect): New function.
7391 (spu_ax_pseudo_register_push_stack): Likewise.
7392 (spu_dwarf_reg_to_regnum): Likewise.
7393 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7395 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7397 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7398 Replace FRAME argument with FRAME_ID.
7399 * gdbarch.c, gdbarch.h: Regenerate.
7400 * findvar.c (default_value_from_register): Add GDBARCH argument;
7401 replace FRAME by FRAME_ID. No longer call get_frame_id.
7402 (value_from_register): Update call to gdbarch_value_from_register.
7403 * value.h (default_value_from_register): Update prototype.
7404 * s390-linux-tdep.c (s390_value_from_register): Update interface
7405 and call to default_value_from_register.
7406 * spu-tdep.c (spu_value_from_register): Likewise.
7408 * findvar.c (address_from_register): Remove TYPE argument.
7409 Do not call value_from_register; use gdbarch_value_from_register
7410 with null_frame_id instead.
7411 * value.h (address_from_register): Update prototype.
7412 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7413 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7414 address_from_register interface change.
7416 2014-04-17 Yao Qi <yao@codesourcery.com>
7418 * gdbtypes.h: Update comments to link to types and macros'
7421 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7423 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7425 2014-04-16 Keith Seitz <keiths@redhat.com>
7428 * dwarf2read.c (skip_one_die): Check that all relative-offset
7429 sibling DIEs fall within range of the current reader's buffer.
7430 (read_partial_die): Likewise.
7432 2014-04-16 Keith Seitz <keiths@redhat.com>
7435 * cp-namespace.c (lookup_symbol_file): If the type name of
7436 `this' is NULL, return immediately.
7438 2014-04-14 Keith Seitz <keiths@redhat.com>
7441 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7442 from symbol_matches_domain in symtab.c. All local callers
7443 of symbol_matches_domain updated.
7444 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7445 search STRUCT_DOMAIN.
7446 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7447 independently. standard_lookup will do that automatically.
7448 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7449 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7450 (cp_lookup_symbol_in_namespace): Likewise.
7451 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7452 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7453 may return a STRUCT_DOMAIN match.
7454 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7455 * cp-support.c: Include language.h.
7456 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7458 * psymtab.c (match_partial_symbol): Compare the requested
7459 domain with the symbol's domain directly.
7460 (lookup_partial_symbol): Likewise.
7461 * symtab.c (lookup_symbol_in_language): Explain when/why
7462 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7463 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7464 appropriate languages.
7465 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7466 and moved to ada-lang.c
7467 (lookup_block_symbol): Explain that this function only returns
7468 symbol matching the requested DOMAIN.
7469 Compare the requested domain with the symbol's domain directly.
7470 (iterate_over_symbols): Compare the requested domain with the
7471 symbol's domain directly.
7472 * symtab.h (symbol_matches_domain): Remove.
7474 2014-04-14 Tom Tromey <tromey@redhat.com>
7477 * c-exp.y (type_aggregate_p): New function.
7478 (qualified_name, classify_inner_name): Use it.
7479 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7480 and TYPE_TARGET_TYPE of an enum type.
7481 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7483 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7484 handle TYPE_DECLARED_CLASS.
7485 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7487 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7488 * valops.c (enum_constant_from_type): New function.
7489 (value_aggregate_elt): Use it.
7490 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7493 2014-04-14 Tom Tromey <tromey@redhat.com>
7495 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7496 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7498 * value.h (value_aggregate_elt): Update.
7500 2014-04-14 Tom Tromey <tromey@redhat.com>
7502 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7504 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7506 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7507 (evaluate_subexp_standard): Pass noside argument.
7508 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7509 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7510 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7511 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7512 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7514 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7516 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7517 points to a constant blob.
7519 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7521 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7522 property and store it as the high bound and flag the range accordingly.
7523 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7524 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7525 * gdbtypes.h (enum range_flags): New enum.
7526 (struct range_bounds): Add flags member.
7528 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7530 * c-typeprint.c (c_type_print_varspec_suffix): Added
7531 check for not yet resolved high bound. If unresolved, print
7532 "variable length" string to the console instead of random
7535 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7537 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7539 (ada_template_to_fixed_record_type_1): Likewise.
7540 (ada_to_fixed_type_1): Likewise.
7541 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7542 (cp_print_value): Likewise.
7543 * d-valprint.c (dynamic_array_type): Likewise.
7544 * findvar.c (address_of_variable): Likewise.
7545 * jv-valprint.c (java_value_print): Likewise.
7546 * valops.c (value_ind): Likewise.
7547 * value.c (coerce_ref): Likewise.
7549 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7551 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7552 value and retrieve the dynamic type size.
7554 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7556 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7557 passed to sizeof is dynamic evaluate the argument to compute the length.
7559 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7560 Joel Brobecker <brobecker@adacore.com>
7562 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7563 (dwarf2_evaluate_property): New function.
7564 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7565 * dwarf2read.c (attr_to_dynamic_prop): New function.
7566 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7568 * gdbtypes.c: Include dwarf2loc.h.
7569 (is_dynamic_type): New function.
7570 (resolve_dynamic_type): New function.
7571 (resolve_dynamic_bounds): New function.
7572 (get_type_length): New function.
7573 (check_typedef): Use get_type_length to compute type length.
7574 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7575 (TYPE_LOW_BOUND_KIND): New macro.
7576 (is_dynamic_type): New function prototype.
7577 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7578 to resolve dynamic properties of the type. Update comment.
7579 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7581 2014-04-14 Richard Henderson <rth@redhat.com>
7583 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7585 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7586 Doug Evans <xdje42@gmail.com>
7588 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7589 dereference TYPE_CODE_REF values.
7591 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7593 Revert the following changes due to regressions:
7595 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7596 (dwarf2_evaluate_property): New function.
7597 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7598 * dwarf2read.c (attr_to_dynamic_prop): New function.
7599 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7601 * gdbtypes.c: Include dwarf2loc.h.
7602 (is_dynamic_type): New function.
7603 (resolve_dynamic_type): New function.
7604 (resolve_dynamic_bounds): New function.
7605 (get_type_length): New function.
7606 (check_typedef): Use get_type_length to compute type length.
7607 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7608 (TYPE_LOW_BOUND_KIND): New macro.
7609 (is_dynamic_type): New function prototype.
7610 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7611 to resolve dynamic properties of the type. Update comment.
7612 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7614 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7615 passed to sizeof is dynamic evaluate the argument to compute the length.
7617 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7618 value and retrieve the dynamic type size.
7620 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7621 (ada_template_to_fixed_record_type_1): Likewise.
7622 (ada_to_fixed_type_1): Likewise.
7623 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7624 (cp_print_value): Likewise.
7625 * d-valprint.c (dynamic_array_type): Likewise.
7626 * eval.c (evaluate_subexp_with_coercion): Likewise.
7627 * findvar.c (address_of_variable): Likewise.
7628 * jv-valprint.c (java_value_print): Likewise.
7629 * valops.c (value_ind): Likewise.
7630 * value.c (coerce_ref): Likewise.
7632 * c-typeprint.c (c_type_print_varspec_suffix): Added
7633 check for not yet resolved high bound. If unresolved, print
7634 "variable length" string to the console instead of random
7637 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7638 property and store it as the high bound and flag the range accordingly.
7639 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7640 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7641 * gdbtypes.h (enum range_flags): New enum.
7642 (struct range_bounds): Add flags member.
7644 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7645 points to a constant blob.
7647 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7648 (evaluate_subexp_standard): Pass noside argument.
7649 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7650 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7651 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7652 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7653 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7655 2014-04-11 Keith Seitz <keiths@redhat.com>
7658 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7659 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7662 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7664 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7665 (evaluate_subexp_standard): Pass noside argument.
7666 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7667 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7668 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7669 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7670 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7672 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7674 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7675 points to a constant blob.
7677 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7679 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7680 property and store it as the high bound and flag the range accordingly.
7681 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7682 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7683 * gdbtypes.h (enum range_flags): New enum.
7684 (struct range_bounds): Add flags member.
7686 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7688 * c-typeprint.c (c_type_print_varspec_suffix): Added
7689 check for not yet resolved high bound. If unresolved, print
7690 "variable length" string to the console instead of random
7693 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7695 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7696 (ada_template_to_fixed_record_type_1): Likewise.
7697 (ada_to_fixed_type_1): Likewise.
7698 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7699 (cp_print_value): Likewise.
7700 * d-valprint.c (dynamic_array_type): Likewise.
7701 * eval.c (evaluate_subexp_with_coercion): Likewise.
7702 * findvar.c (address_of_variable): Likewise.
7703 * jv-valprint.c (java_value_print): Likewise.
7704 * valops.c (value_ind): Likewise.
7705 * value.c (coerce_ref): Likewise.
7707 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7709 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7710 value and retrieve the dynamic type size.
7712 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7714 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7715 passed to sizeof is dynamic evaluate the argument to compute the length.
7717 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7719 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7720 (dwarf2_evaluate_property): New function.
7721 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7722 * dwarf2read.c (attr_to_dynamic_prop): New function.
7723 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7725 * gdbtypes.c: Include dwarf2loc.h.
7726 (is_dynamic_type): New function.
7727 (resolve_dynamic_type): New function.
7728 (resolve_dynamic_bounds): New function.
7729 (get_type_length): New function.
7730 (check_typedef): Use get_type_length to compute type length.
7731 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7732 (TYPE_LOW_BOUND_KIND): New macro.
7733 (is_dynamic_type): New function prototype.
7734 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7735 to resolve dynamic properties of the type. Update comment.
7736 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7738 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7740 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7741 declaring high/low bounds and change uses accordingly. Call
7742 create_range_type instead of create_static_range_type.
7743 * gdbtypes.c (create_range_type): New function.
7744 (create_range_type): Convert bounds into struct bound_prop and pass
7745 them to create_range_type.
7746 * gdbtypes.h (struct bound_prop): New struct.
7747 (create_range_type): New function prototype.
7748 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7749 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7750 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7752 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7754 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7756 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7757 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7758 * ada-lang.c: All uses of create_range_type updated.
7759 * coffread.c: All uses of create_range_type updated.
7760 * dwarf2read.c: All uses of create_range_type updated.
7761 * f-exp.y: All uses of create_range_type updated.
7762 * m2-valprint.c: All uses of create_range_type updated.
7763 * mdebugread.c: All uses of create_range_type updated.
7764 * stabsread.c: All uses of create_range_type updated.
7765 * valops.c: All uses of create_range_type updated.
7766 * valprint.c: All uses of create_range_type updated.
7768 2014-04-10 Pedro Alves <palves@redhat.com>
7770 * breakpoint.c (single_step_breakpoints)
7771 (single_step_gdbarch): Move up in the file.
7772 (one_breakpoint_xfer_memory): New function, factored out from ...
7773 (breakpoint_xfer_memory): ... here. Also process single-step
7776 2014-04-09 Tristan Gingold <gingold@adacore.com>
7778 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7780 (darwin_decode_exception_message): Free port only after use.
7782 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7784 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7785 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7786 when setting the size of call_length.
7788 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7790 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7791 dereference TYPE_CODE_REF values.
7793 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7795 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7796 end of warning message.
7798 2014-04-03 Doug Evans <dje@google.com>
7800 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7801 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7803 2014-04-02 Alan Modra <amodra@gmail.com>
7805 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7806 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7807 (struct symbol_file_add_from_memory_args): Add size field.
7808 (find_vdso_size): New function.
7809 (add_vsyscall_page): Attempt to find vdso size.
7811 2014-04-01 Doug Evans <dje@google.com>
7813 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7815 2014-04-01 Tristan Gingold <gingold@adacore.com>
7817 * darwin-nat.c (darwin_encode_reply): Add prototype.
7818 (darwin_decode_exception_message): Reply to unknown inferiors.
7819 (darwin_decode_message): Handle message by id. Ignore message
7820 to unknown inferior.
7821 (darwin_wait): Discard unknown messages, add debug trace.
7823 2014-03-31 Doug Evans <dje@google.com>
7825 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7828 2014-03-31 Doug Evans <dje@google.com>
7830 New option "set print symbol-loading".
7832 * solib.c (solib_read_symbols): Only print symbol loading messages
7834 (solib_add): If symbol loading is in "brief" mode, notify user
7835 symbols are being loaded.
7836 (reload_shared_libraries_1): Ditto.
7837 * symfile.c (print_symbol_loading_off): New static global.
7838 (print_symbol_loading_brief): New static global.
7839 (print_symbol_loading_full): New static global.
7840 (print_symbol_loading_enums): New static global.
7841 (print_symbol_loading): New static global.
7842 (print_symbol_loading_p): New function.
7843 (symbol_file_add_with_addrs): Only print symbol loading messages
7845 (_initialize_symfile): Register "print symbol-loading" set/show
7847 * symfile.h (print_symbol_loading_p): Declare.
7849 2014-03-30 Doug Evans <xdje42@gmail.com>
7851 * infrun.c (set_last_target_status): New function.
7852 (handle_inferior_event): Call it.
7854 2014-03-30 Doug Evans <xdje42@gmail.com>
7856 * inferior.h (enum stop_kind): Improve comment.
7858 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7860 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7861 a reference, strip the reference layer before calling
7862 the lang_ops value_has_mutated callback.
7864 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7866 Remove some globals from our parser.
7867 * language.c (unk_lang_parser): Add "struct parser_state"
7869 * language.h (struct language_defn) <la_parser>: Likewise.
7870 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7871 (initialize_expout): Add "struct parser_state" argument.
7872 Rewrite function to use the parser state.
7873 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7874 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7875 write_exp_elt_longcst, write_exp_elt_dblcst,
7876 write_exp_elt_decfloatcst, write_exp_elt_type,
7877 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7878 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7879 write_dollar_variable): Likewise.
7880 (parse_exp_in_context_1): Use parser state.
7881 (insert_type_address_space): Add "struct parser_state" argument.
7883 (increase_expout_size): New function.
7884 * parser-defs.h: Forward declare "struct language_defn" and
7885 "struct parser_state".
7886 (expout, expout_size, expout_ptr): Remove extern declarations.
7887 (parse_gdbarch, parse_language): Rewrite macro declarations to
7888 accept the parser state.
7889 (struct parser_state): New struct.
7890 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7891 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7892 write_exp_elt_decfloatcst, write_exp_elt_type,
7893 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7894 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7895 write_exp_msymbol, write_dollar_variable,
7896 mark_struct_expression, insert_type_address_space): Add "struct
7897 parser_state" argument.
7898 (increase_expout_size): New function.
7899 * utils.c (do_clear_parser_state): New function.
7900 (make_cleanup_clear_parser_state): Likewise.
7901 * utils.h (make_cleanup_clear_parser_state): New function
7903 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7904 Update calls to write_exp* in order to pass the parser state.
7905 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7906 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7907 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7908 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7909 * stap-probe.c (stap_parse_register_operand): Likewise.
7910 (stap_parse_single_operand): Likewise.
7911 (stap_parse_argument_1): Likewise.
7912 (stap_parse_argument): Use parser state.
7913 * stap-probe.h: Include "parser-defs.h".
7914 (struct stap_parse_info) <pstate>: New field.
7915 * c-exp.y (parse_type): Rewrite to use parser state.
7916 (yyparse): Redefine to c_parse_internal.
7917 (pstate): New global variable.
7918 (parse_number): Add "struct parser_state" argument.
7919 (write_destructor_name): Likewise.
7920 (type_exp): Update calls to write_exp* and similars in order to
7922 (exp1, exp, variable, qualified_name, space_identifier,
7923 typename, typebase): Likewise.
7924 (write_destructor_name, parse_number, lex_one_token,
7925 classify_name, classify_inner_name, c_parse): Add "struct
7926 parser_state" argument. Update function to use parser state.
7927 * c-lang.h: Forward declare "struct parser_state".
7928 (c_parse): Add "struct parser_state" argument.
7929 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7930 (yyparse): Redefine macro to ada_parse_internal.
7931 (pstate): New variable.
7932 (write_int, write_object_renaming, write_var_or_type,
7933 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7934 type_int, type_long, type_long_long, type_float, type_double,
7935 type_long_double, type_char, type_boolean, type_system_address):
7936 Add "struct parser_state" argument.
7937 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7938 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7939 var_or_type, aggregate, aggregate_component_list,
7940 positional_list, others, component_group,
7941 component_associations): Update calls to write_exp* and similar
7942 functions in order to use parser state.
7943 (ada_parse, write_var_from_sym, write_int,
7944 write_exp_op_with_string, write_object_renaming,
7945 find_primitive_type, write_selectors, write_ambiguous_var,
7946 write_var_or_type, write_name_assoc, type_int, type_long,
7947 type_long_long, type_float, type_double, type_long_double,
7948 type_char, type_boolean, type_system_address): Add "struct
7949 parser_state" argument. Adjust function to use parser state.
7950 * ada-lang.c (parse): Likewise.
7951 * ada-lang.h: Forward declare "struct parser_state".
7952 (ada_parse): Add "struct parser_state" argument.
7953 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7954 calls to both functions.
7955 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7957 (yyparse): Redefine macro to f_parse_internal.
7958 (pstate): New variable.
7959 (parse_number): Add "struct parser_state" argument.
7960 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7961 and similars in order to use parser state.
7962 (parse_number): Adjust code to use parser state.
7964 (f_parse): New function.
7965 * f-lang.h: Forward declare "struct parser_state".
7966 (f_parse): Add "struct parser_state" argument.
7967 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7969 (yyparse): Redefine macro for java_parse_internal.
7970 (pstate): New variable.
7971 (push_expression_name, push_expression_name, insert_exp): Add
7972 "struct parser_state" argument.
7973 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7974 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7975 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7976 PostIncrementExpression, PostDecrementExpression,
7977 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7978 UnaryExpressionNotPlusMinus, CastExpression,
7979 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7980 RelationalExpression, EqualityExpression, AndExpression,
7981 ExclusiveOrExpression, InclusiveOrExpression,
7982 ConditionalAndExpression, ConditionalOrExpression,
7983 ConditionalExpression, Assignment, LeftHandSide): Update
7984 calls to write_exp* and similars in order to use parser state.
7985 (parse_number): Ajust code to use parser state.
7987 (java_parse): New function.
7988 (push_variable): Add "struct parser_state" argument. Adjust
7989 code to user parser state.
7990 (push_fieldnames, push_qualified_expression_name,
7991 push_expression_name, insert_exp): Likewise.
7992 * jv-lang.h: Forward declare "struct parser_state".
7993 (java_parse): Add "struct parser_state" argument.
7994 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7996 (yyparse): Redefine macro to m2_parse_internal.
7997 (pstate): New variable.
7998 (type_exp, exp, fblock, variable, type): Update calls to
7999 write_exp* and similars to use parser state.
8001 (m2_parse): New function.
8002 * m2-lang.h: Forward declare "struct parser_state".
8003 (m2_parse): Add "struct parser_state" argument.
8004 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8005 * objc-lang.h: Forward declare "struct parser_state".
8006 (end_msglist): Add "struct parser_state" argument.
8007 * p-exp.y (parse_type): Rewrite macro to use parser state.
8008 (yyparse): Redefine macro to pascal_parse_internal.
8009 (pstate): New variable.
8010 (parse_number): Add "struct parser_state" argument.
8011 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8012 write_exp* and similars in order to use parser state.
8013 (parse_number, yylex): Adjust code to use parser state.
8014 (pascal_parse): New function.
8015 * p-lang.h: Forward declare "struct parser_state".
8016 (pascal_parse): Add "struct parser_state" argument.
8017 * go-exp.y (parse_type): Rewrite macro to use parser state.
8018 (yyparse): Redefine macro to go_parse_internal.
8019 (pstate): New variable.
8020 (parse_number): Add "struct parser_state" argument.
8021 (type_exp, exp1, exp, variable, type): Update calls to
8022 write_exp* and similars in order to use parser state.
8023 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8024 to use parser state.
8025 (go_parse): Likewise.
8026 * go-lang.h: Forward declare "struct parser_state".
8027 (go_parse): Add "struct parser_state" argument.
8029 2014-03-27 Doug Evans <dje@google.com>
8031 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8033 2014-03-27 Doug Evans <dje@google.com>
8035 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8036 Remove argument abbrev_section. All callers updated.
8038 2014-03-27 Doug Evans <dje@google.com>
8040 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8041 addr_base, ranges_base.
8043 2014-03-26 Keith Seitz <keiths@redhat.com>
8045 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8046 types, not VAR_DOMAIN.
8048 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8050 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8052 * features/nios2-linux.c: Regenerated.
8053 * features/nios2.c: Regenerated.
8055 2014-03-25 Pedro Alves <palves@redhat.com>
8057 * cli/cli-script.c (script_from_file): Force the interpreter to
8060 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8062 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8063 small stack allocation.
8065 2014-03-24 Tristan Gingold <gingold@adacore.com>
8067 * darwin-nat.c (exc_server): Remove unused prototype.
8068 (darwin_dump_message): Correctly display data on x86_64.
8069 (darwin_encode_reply): Fix style.
8070 Add comments and fix indentation.
8072 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8074 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8076 2014-03-22 Doug Evans <xdje42@gmail.com>
8078 * infcmd.c: Whitespace fixes.
8079 (interrupt_command): Merge two function comments into one.
8081 2014-03-22 Doug Evans <xdje42@gmail.com>
8083 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8086 2014-03-22 Yao Qi <yao@codesourcery.com>
8088 * remote.c (target_read_live_memory): Remove.
8089 (memory_xfer_live_readonly_partial): Rename it to
8090 remote_xfer_live_readonly_partial. Remove argument 'object'.
8091 All callers updated. Call remote_read_bytes_1
8092 instead of target_read_live_memory.
8093 * tracepoint.c (set_traceframe_number): Remove.
8094 (make_cleanup_restore_traceframe_number): Likewise .
8095 * tracepoint.h (set_traceframe_number): Remove declaration.
8096 (make_cleanup_restore_traceframe_number): Likewise.
8098 2014-03-22 Yao Qi <yao@codesourcery.com>
8100 * remote.c (remote_read_bytes): Move code on reading from the
8102 (remote_read_bytes_1): ... here. New function.
8104 2014-03-22 Yao Qi <yao@codesourcery.com>
8106 * ctf.c (ctf_xfer_partial): Check the return value of
8107 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8108 return TARGET_XFER_UNAVAILABLE.
8109 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8110 * target.c (target_read_live_memory): Move it to remote.c.
8111 (memory_xfer_live_readonly_partial): Likewise.
8112 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8113 * remote.c (target_read_live_memory): Moved from target.c.
8114 (memory_xfer_live_readonly_partial): Likewise.
8115 (remote_read_bytes): Factored out from
8116 memory_xfer_partial_1.
8118 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8120 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8123 2014-03-21 Pedro Alves <palves@redhat.com>
8125 * infrun.c (normal_stop): Extend comment.
8127 2014-03-21 Hui Zhu <hui@codesourcery.com>
8128 Pedro Alves <palves@redhat.com>
8130 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8132 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8133 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8134 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8136 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8138 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8139 `z' formatted output modifier.
8141 2014-03-20 Tom Tromey <tromey@redhat.com>
8142 Sergio Durigan Junior <sergiodj@redhat.com>
8144 * probe.c (parse_probes): Turn assert into an ordinary error.
8145 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8146 exceptions when parsing probes. Rearrange the code for clarity.
8148 2014-03-20 Tom Tromey <tromey@redhat.com>
8151 * top.c (execute_command): Only dispatch events if the command
8154 2014-03-20 Tom Tromey <tromey@redhat.com>
8157 * infcall.c: Include event-top.h.
8158 (run_inferior_call): Call async_disable_stdin if needed.
8160 2014-03-20 Pedro Alves <palves@redhat.com>
8162 * infrun.c (prepare_to_proceed): Delete.
8163 (thread_still_needs_step_over): New function.
8164 (find_thread_needs_step_over): New function.
8165 (proceed): If the current thread needs a step-over, set its
8166 steping_over_breakpoint flag. Adjust to use
8167 find_thread_needs_step_over instead of prepare_to_proceed.
8168 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8169 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8171 (switch_back_to_stepped_thread): Step over breakpoints of all
8172 threads not the stepping thread, before switching back to the
8175 2014-03-20 Pedro Alves <palves@redhat.com>
8177 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8179 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8180 * infrun.c (saved_singlestep_ptid)
8181 (stepping_past_singlestep_breakpoint): Delete.
8182 (resume): Remove stepping_past_singlestep_breakpoint handling.
8183 (proceed): Store the prev_pc of the stepping thread too.
8184 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8186 (enum infwait_states): Delete infwait_thread_hop_state.
8187 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8189 (handle_inferior_event): Adjust.
8190 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8191 handling and the thread-hop code. Before removing single-step
8192 breakpoints, check whether the thread hit a single-step breakpoint
8193 of another thread. If it did, the trap is not a random signal.
8194 (switch_back_to_stepped_thread): If the event thread hit a
8195 single-step breakpoint, unblock it before switching to the
8196 stepping thread. Handle the case of the stepped thread having
8198 (keep_going): Handle the case of the current thread moving past a
8199 single-step breakpoint.
8201 2014-03-20 Pedro Alves <palves@redhat.com>
8204 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8205 are being stepped over.
8206 (breakpoint_address_match): Make extern.
8207 * breakpoint.h (breakpoint_address_match): New declaration.
8208 * inferior.h (stepping_past_instruction_at): New declaration.
8209 * infrun.c (struct step_over_info): New type.
8210 (step_over_info): New global.
8211 (set_step_over_info, clear_step_over_info)
8212 (stepping_past_instruction_at): New functions.
8213 (handle_inferior_event): Clear the step-over info when
8214 trap_expected is cleared.
8215 (resume): Remove now stale comment.
8216 (clear_proceed_status): Clear step-over info.
8217 (proceed): Adjust step-over handling to set or clear the step-over
8218 info instead of removing all breakpoints.
8219 (handle_signal_stop): When setting up a thread-hop, don't remove
8221 (stop_stepping): Clear step-over info.
8222 (keep_going): Adjust step-over handling to set or clear step-over
8223 info and then always inserting breakpoints, instead of removing
8224 all breakpoints when stepping over one.
8226 2014-03-20 Pedro Alves <palves@redhat.com>
8228 * infrun.c (previous_inferior_ptid): Adjust comment.
8229 (deferred_step_ptid): Delete.
8230 (infrun_thread_ptid_changed, prepare_to_proceed)
8231 (init_wait_for_inferior): Adjust.
8232 (handle_signal_stop): Delete deferred_step_ptid handling.
8234 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8237 * defs.h (sync_quit_force_run): New declaration.
8238 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8239 * event-top.c (async_sigterm_handler): New declaration.
8240 (async_sigterm_token): New variable.
8241 (async_init_signals): Create also async_sigterm_token.
8242 (async_sigterm_handler): New function.
8243 (sync_quit_force_run): New variable.
8244 (handle_sigterm): Replace quit_force call by other calls.
8245 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8247 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8249 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8250 offset into SPE pseudo registers.
8252 2014-03-18 Pedro Alves <palves@redhat.com>
8255 * inferior.h (print_stop_event): Declare.
8256 * infrun.c (print_stop_event): New, factored out from ...
8257 (normal_stop): ... this.
8258 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8259 of bpstat_print/print_stack_frame.
8261 2014-03-17 Tom Tromey <tromey@redhat.com>
8263 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8265 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8267 * ada-lang.c (decode_constrained_packed_array): Perform a
8268 minimal coercion for reference with coerce_ref instead of
8271 2014-03-17 Tristan Gingold <gingold@adacore.com>
8273 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8274 (darwin_solib_create_inferior_hook): Emit a warning if version
8277 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8279 * python/py-value.c (get_field_flag): Cast flag_name argument to
8280 PyObject_GetAttrString to support Python 2.4.
8282 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8284 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8285 (Global Maintainers): Remove Jan Kratochvil.
8287 2014-03-14 Pedro Alves <palves@redhat.com>
8289 * inferior.h (terminal_ours_for_output): Rename to ...
8290 (child_terminal_ours_for_output): ... this.
8291 (terminal_save_ours): Rename to ...
8292 (child_terminal_save_ours): ... this.
8293 (terminal_ours): Rename to ...
8294 (child_terminal_ours): ... this.
8295 (terminal_inferior): Rename to ...
8296 (child_terminal_inferior): ... this.
8297 (terminal_init_inferior): Rename to ...
8298 (child_terminal_init_inferior): ... this.
8299 (terminal_init_inferior_with_pgrp): Rename to ...
8300 (child_terminal_init_inferior_with_pgrp): ... this.
8301 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8302 (child_terminal_init_with_pgrp): ... this.
8303 (terminal_save_ours): Rename to ...
8304 (child_terminal_save_ours): ... this.
8305 (terminal_init_inferior): Rename to ...
8306 (child_terminal_init): ... this. Adjust.
8307 (terminal_inferior): Rename to ...
8308 (child_terminal_inferior): ... this.
8309 (terminal_ours_for_output): Rename to ...
8310 (child_terminal_ours_for_output): ... this. Adjust.
8311 (terminal_ours): Rename to ...
8312 (child_terminal_ours): ... this.
8313 (terminal_ours_1): Rename to ...
8314 (child_terminal_ours_1): ... this. Adjust.
8315 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8316 * windows-nat.c (do_initial_windows_stuff): Adjust.
8317 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8318 (gnu_terminal_init): ... this. Adjust.
8319 (gnu_target): Adjust.
8320 * inf-child.c (inf_child_target): Adjust.
8322 2014-03-13 Doug Evans <xdje42@gmail.com>
8325 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8328 2014-03-13 Doug Evans <xdje42@gmail.com>
8330 * value.c (record_latest_value): Call release_value_or_incref
8331 instead of release_value.
8333 2014-03-13 Pedro Alves <palves@redhat.com>
8335 * procfs.c (procfs_target): Don't override to_shortname,
8336 to_longname or to_doc.
8338 2014-03-13 Pedro Alves <palves@redhat.com>
8340 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8341 Unix in user visible strings.
8343 2014-03-12 Stan Shebs <stan@codesourcery.com>
8345 * gdbtypes.h: Annotate comments for Doxygen, add a page
8346 block comment with some general info.
8348 2014-03-12 Pedro Alves <palves@redhat.com>
8350 * infcmd.c (prepare_execution_command): New function, factored out
8351 from several execution commands.
8352 (run_command_1, continue_command, step_1, jump_command)
8353 (signal_command, until_command, advance_command, finish_command)
8354 (attach_command): Use prepare_execution_command.
8356 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8358 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8361 (struct arm_linux_thread_points): Removed.
8362 (struct arm_linux_process_info): New.
8363 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8364 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8365 (arm_linux_find_breakpoints_by_tid): Removed.
8366 (struct arch_lwp_info): New.
8367 (arm_linux_find_process_pid): New functions.
8368 (arm_linux_add_process): New functions.
8369 (arm_linux_process_info_get): New functions.
8370 (arm_linux_forget_process): New function.
8371 (arm_linux_get_debug_reg_state): New function.
8372 (struct update_registers_data): New.
8373 (update_registers_callback): New function.
8374 (arm_linux_insert_hw_breakpoint1): Updated.
8375 (arm_linux_remove_hw_breakpoint1): Updated.
8376 (arm_linux_insert_hw_breakpoint): Updated.
8377 (arm_linux_remove_hw_breakpoint): Updated.
8378 (arm_linux_insert_watchpoint): Updated.
8379 (arm_linux_remove_watchpoint): Updated.
8380 (arm_linux_new_thread): Updated.
8381 (arm_linux_prepare_to_resume): New function.
8382 (arm_linux_new_fork): New function.
8383 (_initialize_arm_linux_nat): Updated.
8385 2014-03-12 Pedro Alves <palves@redhat.com>
8387 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8389 2014-03-12 Tom Tromey <tromey@redhat.com>
8391 * inf-child.c (return_zero): New function.
8392 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8393 * aix-thread.c (aix_thread_inferior_created): New function.
8394 (aix_thread_attach): Remove.
8395 (init_aix_thread_ops): Don't set to_attach.
8396 (_initialize_aix_thread): Register inferior_created observer.
8397 * corelow.c (init_core_ops): Don't set to_attach or
8399 * exec.c (init_exec_ops): Don't set to_attach or
8401 * infcmd.c (run_command_1): Use find_run_target. Make direct
8403 (attach_command): Use find_attach_target. Make direct target
8405 * record-btrace.c (init_record_btrace_ops): Don't set
8407 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8409 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8410 set to_create_inferior.
8411 * target.c (complete_target_initialization): Add assertion.
8412 (target_create_inferior): Remove.
8413 (find_default_attach, find_default_create_inferior): Remove.
8414 (find_attach_target, find_run_target): New functions.
8415 (find_default_is_async_p, find_default_can_async_p)
8416 (target_supports_non_stop, target_attach): Remove.
8417 (init_dummy_target): Don't set to_create_inferior or
8418 to_supports_non_stop.
8419 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8420 TARGET_DEFAULT_FUNC.
8421 <to_create_inferior>: Add comment.
8422 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8423 TARGET_DEFAULT_RETURN.
8424 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8425 (find_attach_target, find_run_target): Declare.
8426 (target_create_inferior): Remove.
8427 (target_has_execution_1): Update comment.
8428 (target_supports_non_stop): Remove.
8429 * target-delegates.c: Rebuild.
8431 2014-03-12 Pedro Alves <palves@redhat.com>
8433 * inf-child.h: Update comment to not mention Unix.
8435 2014-03-12 Pedro Alves <palves@redhat.com>
8437 * inf-child.c: Update top comment to not mention Unix. Add
8438 generic comment describing how this target is meant to be used.
8439 (inf_child_post_attach, inf_child_post_startup_inferior)
8440 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8443 2014-03-12 Pedro Alves <palves@redhat.com>
8445 * nto-procfs.c: Include inf-child.h.
8446 (procfs_ops): Delete global.
8447 (procfs_can_run): Delete method.
8448 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8449 target pointer instead of referencing procfs_ops.
8450 (procfs_prepare_to_store): Delete.
8451 (init_procfs_ops): Delete function.
8452 (procfs_target): New function, based on init_procfs_ops, but
8453 inherit inf_child_target.
8454 (_initialize_procfs): Use procfs_target.
8456 2014-03-12 Pedro Alves <palves@redhat.com>
8458 * windows-nat.c: Include inf-child.h.
8459 (windows_ops): Delete global.
8460 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8462 (init_windows_ops): Delete function.
8463 (windows_target): New function, based on init_windows_ops, but
8464 inherit inf_child_target.
8465 (_initialize_windows_nat): Use windows_target. Install x86
8466 specific target methods here.
8468 2014-03-10 Doug Evans <xdje42@gmail.com>
8470 * guile/guile.c (call_initialize_gdb_module): New function.
8471 (initialize_guile): Replace call to scm_init_guile with call to
8474 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8476 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8477 in call to TYPE_CODE macro.
8479 2014-03-10 Jerome Guitton <guitton@adacore.com>
8481 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8482 Resolve tagged types to full view.
8484 2014-03-10 Hui Zhu <hui@codesourcery.com>
8486 * target.h (target_insert_breakpoint): Remove "hardware" from its
8489 2014-03-07 Doug Evans <dje@google.com>
8491 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8493 2014-03-07 Doug Evans <dje@google.com>
8495 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8496 Remove unused local comp_dir_attr. Assert exactly one of
8497 stub_comp_unit_die, stub_comp_dir is non-NULL.
8499 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8501 * target.h (complete_target_initialization, add_target):
8504 2014-03-07 Pedro Alves <palves@redhat.com>
8506 * go32-nat.c: Include inf-child.h.
8507 (go32_ops): Delete global.
8508 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8510 (go32_create_inferior): Push the passed in target pointer instead
8511 of referencing go32_ops.
8512 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8513 (go32_target): New function, based on init_go32_ops, but inherit
8515 (_initialize_go32_nat): Use go32_target. Move parts of
8518 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8520 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8521 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8522 SYMBOL_VALUE_ADDRESS.
8523 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8525 2014-03-06 Yao Qi <yao@codesourcery.com>
8527 * breakpoint.c (get_tracepoint_by_number): Remove argument
8528 optional_p. All callers updated. Adjust comments. Update
8530 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8532 2014-03-06 Yao Qi <yao@codesourcery.com>
8534 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8535 early if get_number returns zero. Use 'p' instead of 'args'.
8537 2014-03-06 Yao Qi <yao@codesourcery.com>
8539 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8542 2014-03-06 Yao Qi <yao@codesourcery.com>
8544 PR breakpoints/16508
8545 * tracepoint.c (check_trace_running): New function.
8546 (trace_find_command): Move code to check_trace_running and
8547 call check_trace_running.
8548 (trace_find_pc_command): Likewise.
8549 (trace_find_tracepoint_command): Likewise.
8550 (trace_find_line_command): Likewise.
8551 (trace_find_range_command): Likewise.
8552 * tracepoint.h (check_trace_running): Likewise.
8553 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8555 2014-03-06 Yao Qi <yao@codesourcery.com>
8557 * target.h (struct target_ops) <to_traceframe_info>: Use
8558 TARGET_DEFAULT_NORETURN (tcomplain ()).
8559 * target-delegates.c: Regenerated.
8561 2014-03-05 Pedro Alves <palves@redhat.com>
8564 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8565 void. Update comment.
8566 (dcache_xfer_memory): Delete.
8567 (dcache_read_memory_partial): New, based on the read bits of
8569 (dcache_update): Add status parameter. Use ULONGEST for len, and
8570 adjust. Discard cache lines if the reason for the update was
8572 * dcache.h (dcache_xfer_memory): Delete declaration.
8573 (dcache_read_memory_partial): New declaration.
8574 (dcache_update): Update prototype.
8575 * target.c (raw_memory_xfer_partial): Update the dcache here.
8576 (memory_xfer_partial_1): Don't handle dcache writes here.
8578 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8580 * remote-sim.c (gdbsim_load): Add const to prog.
8582 2014-03-03 Tom Tromey <tromey@redhat.com>
8584 * elfread.c (probe_key): Change to bfd_data.
8585 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8586 now per-BFD, not per-objfile.
8587 * stap-probe.c (stap_probe_destroy): Update comment.
8588 (handle_stap_probe): Allocate on the per-BFD obstack.
8590 2014-03-03 Tom Tromey <tromey@redhat.com>
8592 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8593 * breakpoint.c (create_longjmp_master_breakpoint): Use
8595 (add_location_to_breakpoint, bkpt_probe_insert_location)
8596 (bkpt_probe_remove_location): Update.
8597 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8598 * elfread.c (elf_symfile_relocate_probe): Remove.
8599 (elf_probe_fns): Update.
8600 (insert_exception_resume_breakpoint): Change type of "probe"
8601 parameter to bound_probe.
8602 (check_exception_resume): Update.
8603 * objfiles.c (objfile_relocate1): Don't relocate probes.
8604 * probe.c (bound_probe_s): New typedef.
8605 (parse_probes): Use get_probe_address. Set sal's objfile.
8606 (find_probe_by_pc): Return a bound_probe.
8607 (collect_probes): Return a VEC(bound_probe_s).
8608 (compare_probes): Update.
8609 (gen_ui_out_table_header_info): Change type of "probes"
8611 (info_probes_for_ops): Update.
8612 (get_probe_address): New function.
8613 (probe_safe_evaluate_at_pc): Update.
8614 * probe.h (struct probe_ops) <get_probe_address>: New field.
8615 <set_semaphore, clear_semaphore>: Add objfile parameter.
8616 (struct probe) <objfile>: Remove field.
8618 <address>: Update comment.
8619 (struct bound_probe): New.
8620 (find_probe_by_pc): Return a bound_probe.
8621 (get_probe_address): Declare.
8622 * solib-svr4.c (struct probe_and_action) <address>: New field.
8623 (hash_probe_and_action, equal_probe_and_action): Update.
8624 (register_solib_event_probe): Add address parameter.
8625 (solib_event_probe_at): Update.
8626 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8628 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8629 (stap_get_probe_address): New function.
8630 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8631 (compile_probe_arg): Update.
8632 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8634 (handle_stap_probe): Don't relocate the probe.
8635 (stap_relocate): Remove.
8636 (stap_gen_info_probes_table_values): Update.
8637 (stap_probe_ops): Remove stap_relocate.
8638 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8639 (debug_sym_probe_fns): Update.
8640 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8641 * symtab.c (init_sal): Use memset.
8642 * symtab.h (struct symtab_and_line) <objfile>: New field.
8643 * tracepoint.c (start_tracing, stop_tracing): Update.
8645 2014-03-03 Tom Tromey <tromey@redhat.com>
8647 * probe.h (parse_probes, find_probe_by_pc)
8648 (find_probes_in_objfile): Fix comments.
8650 2014-03-02 Doug Evans <xdje42@gmail.com>
8652 * infrun.c (handle_signal_stop): Replace test for
8653 TARGET_WAITKIND_STOPPED with an assert.
8655 2014-03-02 Doug Evans <xdje42@gmail.com>
8657 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8659 2014-03-02 Doug Evans <xdje42@gmail.com>
8661 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8663 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8665 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8667 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8669 * i386obsd-nat.c: Include "obsd-nat.h".
8670 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8672 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8674 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8676 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8678 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8680 * mips64obsd-nat.c: Include "obsd-nath".
8681 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8683 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8685 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8687 * amd64obsd-nat.c: Include "obsd-nat,h.
8688 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8690 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8692 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8694 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8695 (find_overload_match): Update call to find_oload_champ.
8696 (find_oload_champ_namespace_loop): Likewise
8698 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8700 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8702 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8703 * config/sparc/obsd64.mh: New file.
8704 * sparc64obsd-nat.c: New file.
8706 * obsd-nat.h: New file.
8707 * obsd-nat.c: New file.
8708 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8709 (ALLDEPFILES): Add obsd-nat.c.
8711 2014-02-28 Tom Tromey <tromey@redhat.com>
8713 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8714 * cli-out.h (cli_ui_out_impl): Now const.
8715 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8716 * ui-out.c (struct ui_out) <impl>: Now const.
8717 (default_ui_out_impl): Now const.
8718 (ui_out_new): Make 'impl' parameter const.
8719 * ui-out.h (ui_out_new): Update.
8721 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8723 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8725 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8727 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8729 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8731 Additional PR 8882 fix.
8732 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8734 2014-02-27 Pedro Alves <palves@redhat.com>
8736 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8739 2014-02-27 Pedro Alves <palves@redhat.com>
8742 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8743 * nat/linux-waitpid.c: Include string.h.
8744 (status_to_str): Moved here and made extern.
8745 * nat/linux-waitpid.h (status_to_str): New declaration.
8747 2014-02-27 Hui Zhu <hui@codesourcery.com>
8750 * infrun.c (ptid_match): Move ...
8751 * common/ptid.c (ptid_match): ... here.
8752 * inferior.h (ptid_match): Move ...
8753 * common/ptid.h (ptid_match): ... here.
8755 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8757 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8758 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8761 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8763 * obsd-tdep.c (obsd_auxv_parse): New function.
8764 (obsd_init_abi): Set auxv_parse.
8766 * gdbarch.sh (auxv_parse): New.
8767 * gdbarch.h: Regenerated.
8768 * gdbarch.c: Regenerated.
8769 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8771 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8773 * guile/scm-value.c (gdbscm_history_append_x): New function.
8774 (value_functions): Add it.
8776 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8778 * dwarf2read.c (attr_value_as_address): New function.
8779 (dwarf2_find_base_address, read_call_site_scope): Use
8780 attr_value_as_address in place of DW_ADDR.
8781 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8782 the low and high addresses. Slight rework of the handling
8783 of the high pc being a constant form, and limit it to
8784 DWARF verson 4 or higher.
8785 (dwarf2_record_block_ranges): Likewise.
8786 (read_partial_die): Likewise.
8787 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8789 2014-02-26 Tom Tromey <tromey@redhat.com>
8791 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8793 2014-02-26 Tom Tromey <tromey@redhat.com>
8795 * elfread.c (elf_read_minimal_symbols): Return early if
8796 minimal symbols have already been read. Add "ei" parameter.
8797 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8798 * minsyms.c (prim_record_minimal_symbol_full): Update.
8799 * objfiles.h (struct objstats) <n_minsyms>: Move...
8800 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8801 * symmisc.c (print_objfile_statistics): Update.
8803 2014-02-26 Tom Tromey <tromey@redhat.com>
8805 * elfread.c (elf_read_minimal_symbols): New function, from
8807 (elf_symfile_read): Call it.
8809 2014-02-26 Tom Tromey <tromey@redhat.com>
8811 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8812 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8813 (lookup_minimal_symbol_solib_trampoline)
8814 (lookup_minimal_symbol_by_pc_section_1)
8815 (lookup_minimal_symbol_and_objfile): Update.
8816 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8817 Don't allocate a minimal symbol if minsyms have already been read.
8818 (build_minimal_symbol_hash_tables): Update.
8819 (install_minimal_symbols): Do nothing if minsyms already read.
8820 Use the per-BFD obstack.
8821 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8822 * objfiles.c (allocate_objfile): Call
8823 terminate_minimal_symbol_table later.
8824 (have_minimal_symbols): Update.
8825 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8826 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8827 Move from struct objfile.
8828 <minsyms_read>: New field.
8829 (struct objfile) <msymbols, minimal_symbol_count,
8830 msymbol_hash, msymbol_demangled_hash>: Move.
8831 (ALL_OBJFILE_MSYMBOLS): Update.
8832 * symfile.c (read_symbols): Set minsyms_read.
8833 (reread_symbols): Update.
8834 * symmisc.c (dump_objfile, dump_msymbols): Update.
8836 2014-02-26 Tom Tromey <tromey@redhat.com>
8838 * minsyms.c (msymbols_sort): Remove.
8839 * minsyms.h (msymbols_sort): Remove.
8840 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8841 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8842 * elfread.c (elf_symtab_read): Don't add section offsets.
8843 * xcoffread.c (record_minimal_symbol): Don't add section offset
8844 to minimal symbol address.
8845 * somread.c (text_offset, data_offset): Remove.
8846 (som_symtab_read): Don't add section offsets to minimal symbol
8848 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8849 Don't add section offsets to minimal symbols.
8850 * coffread.c (coff_symtab_read): Don't add section offsets
8851 to minimal symbol addresses.
8852 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8853 to minimal symbol addresses.
8854 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8855 section offset to minimal symbol addresses.
8856 * mdebugread.c (parse_partial_symbols): Don't add section
8857 offset to minimal symbol addresses.
8858 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8859 offset to minimal symbol addresses.
8861 2014-02-26 Tom Tromey <tromey@redhat.com>
8863 * ada-lang.c (ada_main_name): Update.
8864 (ada_add_standard_exceptions): Update.
8865 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8866 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8867 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8868 * auxv.c (ld_so_xfer_auxv): Update.
8869 * avr-tdep.c (avr_scan_prologue): Update.
8870 * ax-gdb.c (gen_var_ref): Update.
8871 * blockframe.c (get_pc_function_start)
8872 (find_pc_partial_function_gnu_ifunc): Update.
8873 * breakpoint.c (create_overlay_event_breakpoint)
8874 (create_longjmp_master_breakpoint)
8875 (create_std_terminate_master_breakpoint)
8876 (create_exception_master_breakpoint): Update.
8877 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8878 * c-valprint.c (c_val_print): Update.
8879 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8880 * common/agent.c (agent_look_up_symbols): Update.
8881 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8882 * dwarf2loc.c (call_site_to_target_addr): Update.
8883 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8884 * elfread.c (elf_gnu_ifunc_record_cache)
8885 (elf_gnu_ifunc_resolve_by_got): Update.
8886 * findvar.c (default_read_var_value): Update.
8887 * frame.c (inside_main_func): Update.
8888 * frv-tdep.c (frv_frame_this_id): Update.
8889 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8890 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8892 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8893 (hppa_hpux_find_dummy_bpaddr): Update.
8894 * hppa-tdep.c (hppa_symbol_address): Update.
8895 * infcmd.c (until_next_command): Update.
8896 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8898 * linespec.c (minsym_found, add_minsym): Update.
8899 * linux-nat.c (get_signo): Update.
8900 * linux-thread-db.c (inferior_has_bug): Update.
8901 * m32c-tdep.c (m32c_return_value)
8902 (m32c_m16c_address_to_pointer): Update.
8903 * m32r-tdep.c (m32r_frame_this_id): Update.
8904 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8905 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8906 * maint.c (maintenance_translate_address): Update.
8907 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8908 (frob_address): New function.
8909 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8910 frob_address. Rename parameter to "pc_in".
8911 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8913 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8915 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8916 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8917 * objc-lang.c (find_objc_msgsend): Update.
8918 * objfiles.c (objfile_relocate1): Update.
8919 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8920 * p-valprint.c (pascal_val_print): Update.
8921 * parse.c (write_exp_msymbol): Update.
8922 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8923 (ppc_elfv2_skip_entrypoint): Update.
8924 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8925 * printcmd.c (build_address_symbolic, msym_info)
8926 (address_info): Update.
8927 * proc-service.c (ps_pglobal_lookup): Update.
8928 * psymtab.c (find_pc_sect_psymtab_closer)
8929 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8930 Change msymbol parameter to bound_minimal_symbol.
8931 * ravenscar-thread.c (get_running_thread_id): Update.
8932 * remote.c (remote_check_symbols): Update.
8933 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8935 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8936 * solib-dsbt.c (lm_base): Update.
8937 * solib-frv.c (lm_base, main_got): Update.
8938 * solib-irix.c (locate_base): Update.
8939 * solib-som.c (som_solib_create_inferior_hook)
8940 (link_map_start): Update.
8941 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8942 * solib-svr4.c (elf_locate_base, enable_break): Update.
8943 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8944 (flush_ea_cache): Update.
8945 * stabsread.c (define_symbol, scan_file_globals): Update.
8946 * stack.c (find_frame_funname): Update.
8947 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8948 (debug_qf_find_pc_sect_symtab): Update.
8949 * symfile.c (simple_read_overlay_table)
8950 (simple_overlay_update): Update.
8951 * symfile.h (struct quick_symbol_functions)
8952 <find_pc_sect_symtab>: Change type of msymbol to
8953 bound_minimal_symbol.
8954 * symmisc.c (dump_msymbols): Update.
8955 * symtab.c (find_pc_sect_symtab_via_partial)
8956 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8957 (search_symbols, print_msymbol_info): Update.
8958 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8959 (MSYMBOL_VALUE_ADDRESS): Redefine.
8960 (BMSYMBOL_VALUE_ADDRESS): New macro.
8961 * tracepoint.c (scope_info): Update.
8962 * tui/tui-disasm.c (tui_find_disassembly_address)
8963 (tui_get_begin_asm_address): Update.
8964 * valops.c (find_function_in_inferior): Update.
8965 * value.c (value_static_field, value_fn_field): Update.
8967 2014-02-26 Tom Tromey <tromey@redhat.com>
8969 * ada-lang.c (ada_update_initial_language): Update.
8970 (ada_main_name, ada_has_this_exception_support): Update.
8971 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8972 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8973 * arm-tdep.c (arm_skip_stub): Update.
8974 * auxv.c (ld_so_xfer_auxv): Update.
8975 * avr-tdep.c (avr_scan_prologue): Update.
8976 * ax-gdb.c (gen_var_ref): Update.
8977 * breakpoint.c (struct breakpoint_objfile_data)
8978 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8979 type to bound_minimal_symbol.
8980 (create_overlay_event_breakpoint)
8981 (create_longjmp_master_breakpoint)
8982 (create_std_terminate_master_breakpoint)
8983 (create_exception_master_breakpoint): Update.
8984 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8985 * c-exp.y (classify_name): Update.
8986 * coffread.c (coff_symfile_read): Update.
8987 * common/agent.c (agent_look_up_symbols): Update.
8988 * d-lang.c (d_main_name): Update.
8989 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8990 * dec-thread.c (enable_dec_thread): Update.
8991 * dwarf2loc.c (call_site_to_target_addr): Update.
8992 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8993 * eval.c (evaluate_subexp_standard): Update.
8994 * findvar.c (struct minsym_lookup_data) <result>: Change type
8995 to bound_minimal_symbol.
8997 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8998 * frame.c (inside_main_func): Update.
8999 * frv-tdep.c (frv_frame_this_id): Update.
9000 * gcore.c (call_target_sbrk): Update.
9001 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9002 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9004 * go-lang.c (go_main_name): Update.
9005 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9006 (hppa_hpux_find_import_stub_for_addr): Update.
9007 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9008 Update. Change return type.
9009 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9011 * jit.c (jit_breakpoint_re_set_internal): Update.
9012 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9014 * linux-nat.c (get_signo): Update.
9015 * linux-thread-db.c (inferior_has_bug): Update
9016 * m32c-tdep.c (m32c_return_value)
9017 (m32c_m16c_address_to_pointer): Update.
9018 * m32r-tdep.c (m32r_frame_this_id): Update.
9019 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9020 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9021 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9022 lookup_minimal_symbol. Change return type.
9023 (lookup_minimal_symbol): Remove.
9024 (lookup_bound_minimal_symbol): Update.
9025 (lookup_minimal_symbol_text): Change return type.
9026 (lookup_minimal_symbol_solib_trampoline): Change return type.
9027 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9028 (lookup_minimal_symbol_solib_trampoline): Change return type.
9029 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9030 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9031 (value_nsstring, find_imps): Update.
9032 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9033 * p-lang.c (pascal_main_name): Update.
9034 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9035 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9036 * proc-service.c (ps_pglobal_lookup): Update.
9037 * ravenscar-thread.c (get_running_thread_msymbol): Change
9039 (has_ravenscar_runtime, get_running_thread_id): Update.
9040 * remote.c (remote_check_symbols): Update.
9041 * sol-thread.c (ps_pglobal_lookup): Update.
9042 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9043 * solib-dsbt.c (lm_base): Update.
9044 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9046 * solib-irix.c (locate_base): Update.
9047 * solib-som.c (som_solib_create_inferior_hook)
9048 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9050 * solib-spu.c (spu_enable_break): Update.
9051 * solib-svr4.c (elf_locate_base, enable_break): Update.
9052 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9053 (flush_ea_cache): Update.
9054 * stabsread.c (define_symbol): Update.
9055 * symfile.c (simple_read_overlay_table): Update.
9056 * symtab.c (find_pc_sect_line): Update.
9057 * tracepoint.c (scope_info): Update.
9058 * tui-disasm.c (tui_get_begin_asm_address): Update.
9059 * value.c (value_static_field): Update.
9061 2014-02-26 Tom Tromey <tromey@redhat.com>
9063 * minsyms.c (prim_record_minimal_symbol_full): Use
9064 SET_MSYMBOL_VALUE_ADDRESS.
9065 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9066 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9067 SET_MSYMBOL_VALUE_ADDRESS.
9068 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9069 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9071 2014-02-26 Tom Tromey <tromey@redhat.com>
9073 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9074 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9075 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9076 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9077 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9078 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9079 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9080 * ada-lang.c (ada_main_name): Update.
9081 (ada_lookup_simple_minsym): Update.
9082 (ada_make_symbol_completion_list): Update.
9083 (ada_add_standard_exceptions): Update.
9084 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9085 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9086 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9087 * arm-tdep.c (skip_prologue_function): Update.
9088 (arm_skip_stack_protector, arm_skip_stub): Update.
9089 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9090 (arm_wince_skip_main_prologue): Update.
9091 * auxv.c (ld_so_xfer_auxv): Update.
9092 * avr-tdep.c (avr_scan_prologue): Update.
9093 * ax-gdb.c (gen_var_ref): Update.
9094 * block.c (call_site_for_pc): Update.
9095 * blockframe.c (get_pc_function_start): Update.
9096 (find_pc_partial_function_gnu_ifunc): Update.
9097 * breakpoint.c (create_overlay_event_breakpoint): Update.
9098 (create_longjmp_master_breakpoint): Update.
9099 (create_std_terminate_master_breakpoint): Update.
9100 (create_exception_master_breakpoint): Update.
9101 (resolve_sal_pc): Update.
9102 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9103 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9105 * c-valprint.c (c_val_print): Update.
9106 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9107 * coffread.c (coff_symfile_read): Update.
9108 * common/agent.c (agent_look_up_symbols): Update.
9109 * dbxread.c (find_stab_function_addr): Update.
9110 (end_psymtab): Update.
9111 * dwarf2loc.c (call_site_to_target_addr): Update.
9112 (func_verify_no_selftailcall): Update.
9113 (tailcall_dump): Update.
9114 (call_site_find_chain_1): Update.
9115 (dwarf_expr_reg_to_entry_parameter): Update.
9116 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9117 (elf_gnu_ifunc_resolve_by_got): Update.
9118 * f-valprint.c (info_common_command): Update.
9119 * findvar.c (read_var_value): Update.
9120 * frame.c (get_prev_frame_1): Update.
9121 (inside_main_func): Update.
9122 * frv-tdep.c (frv_skip_main_prologue): Update.
9123 (frv_frame_this_id): Update.
9124 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9125 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9126 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9127 (gnuv3_skip_trampoline): Update.
9128 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9129 (hppa64_hpux_in_solib_call_trampoline): Update.
9130 (hppa_hpux_skip_trampoline_code): Update.
9131 (hppa64_hpux_search_dummy_call_sequence): Update.
9132 (hppa_hpux_find_import_stub_for_addr): Update.
9133 (hppa_hpux_find_dummy_bpaddr): Update.
9134 * hppa-tdep.c (hppa_symbol_address)
9135 (hppa_lookup_stub_minimal_symbol): Update.
9136 * i386-tdep.c (i386_skip_main_prologue): Update.
9137 (i386_pe_skip_trampoline_code): Update.
9138 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9139 * infcall.c (get_function_name): Update.
9140 * infcmd.c (until_next_command): Update.
9141 * jit.c (jit_breakpoint_re_set_internal): Update.
9142 (jit_inferior_init): Update.
9143 * linespec.c (minsym_found): Update.
9144 (add_minsym): Update.
9145 * linux-fork.c (info_checkpoints_command): Update.
9146 * linux-nat.c (get_signo): Update.
9147 * linux-thread-db.c (inferior_has_bug): Update.
9148 * m32c-tdep.c (m32c_return_value): Update.
9149 (m32c_m16c_address_to_pointer): Update.
9150 (m32c_m16c_pointer_to_address): Update.
9151 * m32r-tdep.c (m32r_frame_this_id): Update.
9152 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9153 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9154 * maint.c (maintenance_translate_address): Update.
9155 * minsyms.c (add_minsym_to_hash_table): Update.
9156 (add_minsym_to_demangled_hash_table): Update.
9157 (msymbol_objfile): Update.
9158 (lookup_minimal_symbol): Update.
9159 (iterate_over_minimal_symbols): Update.
9160 (lookup_minimal_symbol_text): Update.
9161 (lookup_minimal_symbol_by_pc_name): Update.
9162 (lookup_minimal_symbol_solib_trampoline): Update.
9163 (lookup_minimal_symbol_by_pc_section_1): Update.
9164 (lookup_minimal_symbol_and_objfile): Update.
9165 (prim_record_minimal_symbol_full): Update.
9166 (compare_minimal_symbols): Update.
9167 (compact_minimal_symbols): Update.
9168 (build_minimal_symbol_hash_tables): Update.
9169 (install_minimal_symbols): Update.
9170 (terminate_minimal_symbol_table): Update.
9171 (find_solib_trampoline_target): Update.
9172 (minimal_symbol_upper_bound): Update.
9173 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9174 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9175 (mips_skip_pic_trampoline_code): Update.
9176 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9177 * objc-lang.c (selectors_info): Update.
9178 (classes_info): Update.
9179 (find_methods): Update.
9180 (find_imps): Update.
9181 (find_objc_msgsend): Update.
9182 * objfiles.c (objfile_relocate1): Update.
9183 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9184 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9185 * p-valprint.c (pascal_val_print): Update.
9186 * parse.c (write_exp_msymbol): Update.
9187 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9188 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9189 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9190 * printcmd.c (build_address_symbolic): Update.
9192 (address_info): Update.
9193 * proc-service.c (ps_pglobal_lookup): Update.
9194 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9195 (find_pc_sect_psymtab): Update.
9196 * python/py-framefilter.c (py_print_frame): Update.
9197 * ravenscar-thread.c (get_running_thread_id): Update.
9198 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9200 * remote.c (remote_check_symbols): Update.
9201 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9202 (rs6000_skip_trampoline_code): Update.
9203 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9204 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9205 * solib-dsbt.c (lm_base): Update.
9206 * solib-frv.c (lm_base): Update.
9208 * solib-irix.c (locate_base): Update.
9209 * solib-som.c (som_solib_create_inferior_hook): Update.
9210 (som_solib_desire_dynamic_linker_symbols): Update.
9211 (link_map_start): Update.
9212 * solib-spu.c (spu_enable_break): Update.
9213 (ocl_enable_break): Update.
9214 * solib-svr4.c (elf_locate_base): Update.
9215 (enable_break): Update.
9216 * spu-tdep.c (spu_get_overlay_table): Update.
9217 (spu_catch_start): Update.
9218 (flush_ea_cache): Update.
9219 * stabsread.c (define_symbol): Update.
9220 (scan_file_globals): Update.
9221 * stack.c (find_frame_funname): Update.
9222 (frame_info): Update.
9223 * symfile.c (simple_read_overlay_table): Update.
9224 (simple_overlay_update): Update.
9225 * symmisc.c (dump_msymbols): Update.
9226 * symtab.c (fixup_section): Update.
9227 (find_pc_sect_line): Update.
9228 (skip_prologue_sal): Update.
9229 (search_symbols): Update.
9230 (print_msymbol_info): Update.
9231 (rbreak_command): Update.
9232 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9233 (completion_list_objc_symbol): Update.
9234 (default_make_symbol_completion_list_break_on): Update.
9235 * tracepoint.c (scope_info): Update.
9236 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9237 (tui_get_begin_asm_address): Update.
9238 * valops.c (find_function_in_inferior): Update.
9239 * value.c (value_static_field): Update.
9240 (value_fn_field): Update.
9242 2014-02-26 Tom Tromey <tromey@redhat.com>
9244 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9245 bound minimal symbols. Move code that knows about minsym
9247 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9249 * minsyms.h (minimal_symbol_upper_bound): Declare.
9250 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9251 minimal_symbol_upper_bound.
9253 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9255 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9256 Use the type's name if its basic type does not have a tag.
9258 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9260 * dwarf2read.c (read_subrange_type): Add comment.
9262 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9264 * dwarf2read.c (update_enumeration_type_from_children): New
9265 function, mostly extracted from process_structure_scope.
9266 (read_enumeration_type): Call update_enumeration_type_from_children.
9267 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9268 and flag_flag_enum fields.
9270 2014-02-26 Pedro Alves <palves@redhat.com>
9272 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9273 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9274 to_xfer_partial method.
9276 2014-02-26 Pedro Alves <palves@redhat.com>
9278 * target.c (complete_target_initialization): Don't install
9279 default_xfer_partial as to_xfer_partial hook.
9281 (update_current_target): Don't INHERIT nor de_fault
9282 deprecated_xfer_memory. Delete de_fault macro.
9283 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9284 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9285 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9288 2014-02-26 Pedro Alves <palves@redhat.com>
9290 * go32-nat.c (my_write_child): New function.
9291 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9292 (go32_xfer_partial): New function.
9293 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9294 Instead install a to_xfer_partial hook.
9296 2014-02-26 Pedro Alves <palves@redhat.com>
9298 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9299 to_xfer_partial helper. Rewrite.
9300 (procfs_xfer_partial): New function.
9301 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9302 Install a to_xfer_partial hook.
9304 2014-02-26 Pedro Alves <palves@redhat.com>
9306 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9307 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9308 (m32r_xfer_partial): New function.
9309 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9310 Install a to_xfer_partial hook.
9312 2014-02-26 Pedro Alves <palves@redhat.com>
9314 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9316 (mips_xfer_partial): New function.
9317 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9318 hook. Install a to_xfer_partial hook.
9320 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9322 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9323 * gdbtypes.c (create_array_type_with_stride): New function,
9324 renaming create_array_type, but with an added parameter
9325 called "bit_stride".
9326 (create_array_type): Re-implement using
9327 create_array_type_with_stride.
9328 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9329 and DW_AT_bit_stride attributes.
9331 2014-02-26 Pedro Alves <palves@redhat.com>
9333 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9334 task-specific breakpoints.
9336 2014-02-25 Pedro Alves <palves@redhat.com>
9338 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9339 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9341 2014-02-25 Stan Shebs <stan@codesourcery.com>
9343 * defs.h: Annotate comments for Doxygen.
9345 2014-02-25 Tom Tromey <tromey@redhat.com>
9347 * target.h (target_ignore): Don't declare.
9348 * target.c (target_ignore): Remove.
9350 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9353 * auto-load.c (auto_load_objfile_script_1): Change filename to
9356 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9358 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9359 documentation. Adjust prototype to match the target_ops
9360 to_xfer_partial method. Adjust implementation accordingly.
9362 2014-02-25 Hui Zhu <hui@codesourcery.com>
9364 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9367 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9369 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9370 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9371 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9372 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9373 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9374 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9375 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9376 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9378 (rl78_register_type): Use a data pointer type for SP and
9379 new pseudo registers mentioned above. Use a 16 bit integer
9380 type for all other register pairs.
9381 (rl78_register_name, rl78_g10_register_name): Update for
9382 new pseudo registers.
9383 (rl78_pseudo_register_read): Likewise.
9384 (rl78_pseudo_register_write): Likewise.
9385 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9386 to the newly added pseudo registers.
9388 2014-02-24 Doug Evans <dje@google.com>
9390 * value.c (record_latest_value): Fix comment.
9391 * printcmd.c (print_command_1): Remove code to handle -1 return from
9392 record_latest_value.
9394 2014-02-24 Pedro Alves <palves@redhat.com>
9396 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9397 deprecated_xfer_memory hook.
9398 (procfs_xfer_partial): Call procfs_xfer_memory instead
9399 of the deprecated_xfer_memory target hook.
9400 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9403 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9405 * windows-nat.c (windows_xfer_shared_libraries): Return
9406 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9407 requested object is TARGET_OBJECT_LIBRARIES.
9409 2014-02-24 Yao Qi <yao@codesourcery.com>
9411 * target.h (enum target_xfer_status)
9412 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9413 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9415 * corefile.c (memory_error_message): User updated.
9416 * exec.c (section_table_read_available_memory): Likewise.
9417 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9418 * target.c (target_xfer_status_to_string): Likewise.
9419 (raw_memory_xfer_partial): Likewise.
9420 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9421 * valops.c (read_value_memory): Likewise.
9422 * exec.h: Update comments.
9424 2014-02-24 Yao Qi <yao@codesourcery.com>
9426 * target.c (target_xfer_status_to_string): Rename argument err
9428 * target.h (target_xfer_status_to_string): Update declaration.
9429 Replace target_xfer_error_to_string with
9430 target_xfer_status_to_string in comment.
9432 2014-02-24 Yao Qi <yao@codesourcery.com>
9434 * mips-linux-nat.c (super_close): Update its type.
9435 (mips_linux_close): Pass 'self' to super_close.
9437 2014-02-24 Yao Qi <yao@codesourcery.com>
9439 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9440 * corefile.c (read_memory): Adjusted.
9441 * target.c (target_write_with_progress): Adjusted.
9443 2014-02-23 Yao Qi <yao@codesourcery.com>
9447 2013-10-25 Yao Qi <yao@codesourcery.com>
9449 * remote.c (remote_traceframe_info): Return early if
9450 traceframe is not selected.
9452 2013-07-19 Yao Qi <yao@codesourcery.com>
9454 * target.c (update_current_target): Change the default action
9455 of 'to_traceframe_info' from tcomplain to return_zero.
9456 * target.h (struct target_ops) <to_traceframe_info>: Add more
9459 2014-02-23 Yao Qi <yao@codesourcery.com>
9461 * valops.c (read_value_memory): Rewrite it. Call
9462 target_xfer_partial in a loop.
9463 * exec.h (section_table_available_memory): Remove declaration.
9464 Move comments to ...
9465 * exec.c (section_table_available_memory): ... here. Make it
9468 2014-02-23 Yao Qi <yao@codesourcery.com>
9470 * exec.c (section_table_read_available_memory): New function.
9471 * exec.h (section_table_read_available_memory): Declare.
9472 * ctf.c (ctf_xfer_partial): Call
9473 section_table_read_available_memory.
9474 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9476 2014-02-23 Yao Qi <yao@codesourcery.com>
9478 * ctf.c (ctf_xfer_partial): Move code to ...
9479 * exec.c (exec_read_partial_read_only): ... it. New function.
9480 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9481 * tracefile.c: Include "exec.h".
9482 * exec.h (exec_read_partial_read_only): Declare.
9484 2014-02-23 Yao Qi <yao@codesourcery.com>
9486 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9487 (tfile_has_memory): Remove.
9488 (init_tfile_ops): Don't set fields to_has_all_memory and
9489 to_has_memory of tfile_ops.
9490 * tracefile.c (tracefile_has_all_memory): New function.
9491 (tracefile_has_memory): New function.
9492 (init_tracefile_ops): Initialize fields to_has_all_memory and
9493 to_has_memory of 'ops'.
9495 2014-02-23 Yao Qi <yao@codesourcery.com>
9497 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9498 (ctf_thread_alive, ctf_get_trace_status): Remove.
9499 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9501 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9502 (tfile_has_stack, tfile_has_registers): Remove.
9503 (tfile_thread_alive): Remove.
9504 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9506 * tracefile.c (tracefile_has_stack): New function.
9507 (tracefile_has_registers): New function.
9508 (tracefile_thread_alive): New function.
9509 (tracefile_get_trace_status): New function.
9510 (init_tracefile_ops): New function.
9511 * tracefile.h (init_tracefile_ops): Declare.
9513 2014-02-23 Yao Qi <yao@codesourcery.com>
9515 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9516 (O_LARGEFILE): Likewise.
9517 (tfile_ops): Likewise.
9518 (TRACE_HEADER_SIZE): Likewise.
9519 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9520 (cur_data_size): Likewise.
9521 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9522 (tfile_close, tfile_files_info): Likewise.
9523 (tfile_get_trace_status): Likewise.
9524 (tfile_get_tracepoint_status): Likewise.
9525 (tfile_get_traceframe_address): Likewise.
9526 (tfile_trace_find, match_blocktype): Likewise.
9527 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9528 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9529 (tfile_get_trace_state_variable_value): Likewise.
9530 (tfile_has_all_memory, tfile_has_memory): Likewise.
9531 (tfile_has_stack, tfile_has_registers): Likewise.
9532 (tfile_thread_alive, build_traceframe_info): Likewise.
9533 (tfile_traceframe_info, init_tfile_ops): Likewise.
9534 (_initialize_tracepoint): Don't call init_tfile_ops
9535 and add_target_with_completer.
9536 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9537 exec.h, completer.h and filenames.h.
9538 (_initialize_tracefile_tfile): New function.
9540 2014-02-23 Yao Qi <yao@codesourcery.com>
9542 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9544 (HFILES_NO_SRCDIR): Add tracefile.h.
9545 * ctf.c: Include "tracefile.h".
9546 * tracefile.h: New file.
9547 * tracefile.c: New file
9548 * tracefile-tfile.c: New file.
9549 * tracepoint.c: Include "tracefile.h".
9550 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9551 (stop_reason_names): Add const.
9552 (trace_file_writer_xfree): Move it to tracefile.c.
9553 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9554 (trace_save_ctf): Likewise.
9555 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9556 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9557 (tfile_write_header, tfile_write_regblock_type): Likewise.
9558 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9559 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9560 (tfile_write_raw_data, tfile_end): Likewise.
9561 (tfile_trace_file_writer_new): Likewise.
9562 (free_uploaded_tp): Make it extern.
9563 (free_uploaded_tsv): Make it extern.
9564 (_initialize_tracepoint): Move code to register command 'tsave'
9566 * tracepoint.h (stop_reason_names): Declare.
9567 (struct trace_frame_write_ops): Move it to tracefile.h.
9568 (struct trace_file_write_ops): Likewise.
9569 (struct trace_file_writer): Likewise.
9570 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9572 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9575 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9577 (get_cores_used_by_process): New parameter num_cores, use it.
9578 (linux_xfer_osdata_processes): Pass num_cores to it.
9579 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9582 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9584 * target.c (memory_xfer_partial): Fix length arg in call to
9585 breakpoint_xfer_memory.
9587 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9590 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9591 number comes after the + or - signs. Adjust length of register
9592 name to be extracted.
9594 2014-02-20 Tom Tromey <tromey@redhat.com>
9596 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9597 (ada_varobj_ops): Mark "extern".
9599 2014-02-20 Tom Tromey <tromey@redhat.com>
9601 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9603 2014-02-20 Doug Evans <xdje42@gmail.com>
9605 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9606 All callers updated.
9607 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9608 All callers updated.
9609 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9610 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9612 2014-02-20 lin zuojian <manjian2006@gmail.com>
9613 Joel Brobecker <brobecker@adacore.com>
9614 Doug Evans <xdje42@gmail.com>
9617 * dwarf2read.c (struct die_info): New member in_process.
9618 (reset_die_in_process): New function.
9619 (process_die): Set it at the start, reset when returning.
9620 (inherit_abstract_dies): Only call process_die if origin_child_die
9621 not already being processed.
9623 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9625 * windows-nat.c (handle_unload_dll): Add function documentation.
9626 (do_initial_windows_stuff): Add comment explaining why we wait
9627 until after inferior initialization has finished before
9628 processing all DLLs.
9630 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9632 * windows-nat.c (get_module_name): Delete.
9633 (windows_get_exec_module_filename): New function, mostly
9634 inspired from get_module_name.
9635 (windows_pid_to_exec_file): Replace call to get_module_name
9636 by call to windows_get_exec_module_filename.
9638 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9640 * windows-nat.c (handle_load_dll): Rewrite this function's
9641 introductory comment. Remove code using get_module_name
9642 to get the DLL's name.
9644 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9646 * windows-nat.c (get_windows_debug_event): Ignore
9647 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9648 if windows_initialization_done == 0.
9649 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9650 Adjust implementation to always load all DLLs.
9651 (do_initial_windows_stuff): Replace call to
9652 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9654 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9656 * windows-nat.c (_initialize_windows_nat): Deprecate the
9657 "dll-symbols" command. Turn the "add-shared-symbol-files"
9658 and "assf" aliases into commands, and deprecate them as well.
9659 * NEWS: Add entry explaining that "dll-symbols" and its two
9660 aliases are now deprecated.
9662 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9664 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9665 new-line in debug string. Remove trailing spaces.
9667 2014-02-19 Stan Shebs <stan@codesourcery.com>
9669 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9671 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9673 * NEWS: Add entry for the new feature
9674 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9677 2014-02-19 Stan Shebs <stan@codesourcery.com>
9679 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9681 2014-02-19 Pedro Alves <palves@redhat.com>
9683 * common/ptid.h (struct ptid): Mention that process_stratum
9684 targets should prefer ptid.lwp.
9686 2014-02-19 Pedro Alves <palves@redhat.com>
9688 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9689 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9690 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9691 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9692 store remote thread ids rather than ptid.tid.
9693 (_initialize_remote): Adjust.
9695 2014-02-19 Tom Tromey <tromey@redhat.com>
9697 * target.c (target_get_unwinder): Rewrite.
9698 (target_get_tailcall_unwinder): Rewrite.
9699 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9700 (record_btrace_to_get_tailcall_unwinder): New function.
9701 (init_record_btrace_ops): Update.
9702 * target.h (struct target_ops) <to_get_unwinder,
9703 to_get_tailcall_unwinder>: Now function pointers. Use
9704 TARGET_DEFAULT_RETURN.
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9708 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9710 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9714 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9716 * target-delegates.c: Rebuild.
9717 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9718 TARGET_DEFAULT_FUNC.
9719 * target.c (default_target_decr_pc_after_break): Rename from
9720 forward_target_decr_pc_after_break. Simplify.
9721 (target_decr_pc_after_break): Rely on delegation.
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9725 * target.c (update_current_target): Do not INHERIT to_doc or
9726 to_magic. Do not de_fault to_open or to_close.
9728 2014-02-19 Tom Tromey <tromey@redhat.com>
9730 * gcore.h (objfile_find_memory_regions): Declare.
9731 * gcore.c (objfile_find_memory_regions): No longer static. Add
9733 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9734 * exec.c: Include gcore.h.
9735 (exec_set_find_memory_regions): Remove.
9736 (exec_find_memory_regions): Remove.
9737 (exec_do_find_memory_regions): Remove.
9738 (init_exec_ops): Update.
9739 * defs.h (exec_set_find_memory_regions): Remove.
9741 2014-02-19 Tom Tromey <tromey@redhat.com>
9743 * target-delegates.c: Rebuild.
9744 * target.h (struct target_ops) <to_extra_thread_info,
9745 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9746 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9747 not 0, in TARGET_DEFAULT_RETURN.
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9751 * target.c (complete_target_initialization): Remove casts. Use
9752 return_zero_has_execution.
9753 (return_zero): Add "ignore" argument.
9754 (return_zero_has_execution): New function.
9755 (init_dummy_target): Remove casts. Use
9756 return_zero_has_execution.
9758 2014-02-19 Tom Tromey <tromey@redhat.com>
9760 * target.c (update_current_target): Update comments. Do not
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9765 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9767 * corelow.c (core_read_description): Delegate when needed.
9768 * remote.c (remote_read_description): Delegate when needed.
9769 * target-delegates.c: Rebuild.
9770 * target.c (target_read_description): Rewrite.
9771 * target.h (struct target_ops) <to_read_description>: Update
9772 comment. Use TARGET_DEFAULT_RETURN.
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9776 * target-delegates.c: Rebuild.
9777 * target.c (update_current_target): Don't inherit or default
9779 (find_default_run_target): Check against delegate_can_run.
9780 * target.h (struct target_ops) <to_can_run>: Use
9781 TARGET_DEFAULT_RETURN.
9783 2014-02-19 Tom Tromey <tromey@redhat.com>
9785 * target-delegates.c: Rebuild.
9786 * target.c (target_disconnect): Unconditionally delegate.
9787 * target.h (struct target_ops) <to_disconnect>: Use
9788 TARGET_DEFAULT_NORETURN.
9790 2014-02-19 Tom Tromey <tromey@redhat.com>
9792 * record.c (record_stop): Unconditionally delegate.
9793 * target-delegates.c: Rebuild.
9794 * target.c (target_stop_recording): Unconditionally delegate.
9795 * target.h (struct target_ops) <to_stop_recording>: Use
9796 TARGET_DEFAULT_IGNORE.
9798 2014-02-19 Tom Tromey <tromey@redhat.com>
9800 * target-delegates.c: Rebuild.
9801 * target.c (target_enable_btrace): Unconditionally delegate.
9802 * target.h (struct target_ops) <to_enable_btrace>: Use
9803 TARGET_DEFAULT_NORETURN.
9805 2014-02-19 Tom Tromey <tromey@redhat.com>
9807 * target-delegates.c: Rebuild.
9808 * target.c (target_read_btrace): Unconditionally delegate.
9809 * target.h (struct target_ops) <to_read_btrace>: Use
9810 TARGET_DEFAULT_NORETURN.
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9814 * target-delegates.c: Rebuild.
9815 * target.c (target_teardown_btrace): Unconditionally delegate.
9816 * target.h (struct target_ops) <to_teardown_btrace>: Use
9817 TARGET_DEFAULT_NORETURN.
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9821 * target-delegates.c: Rebuild.
9822 * target.c (target_disable_btrace): Unconditionally delegate.
9823 * target.h (struct target_ops) <to_disable_btrace>: Use
9824 TARGET_DEFAULT_NORETURN.
9826 2014-02-19 Tom Tromey <tromey@redhat.com>
9828 * target-delegates.c: Rebuild.
9829 * target.c (default_search_memory): New function.
9830 (simple_search_memory): Update comment.
9831 (target_search_memory): Unconditionally delegate.
9832 * target.h (struct target_ops) <to_search_memory>: Use
9833 TARGET_DEFAULT_FUNC.
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9837 * auxv.c (default_auxv_parse): No longer static.
9838 (target_auxv_parse): Unconditionally delegate.
9839 * auxv.h (default_auxv_parse): Declare.
9840 * target-delegates.c: Rebuild.
9841 * target.c: Include auxv.h.
9842 * target.h (struct target_ops) <to_auxv_parse>: Use
9843 TARGET_DEFAULT_FUNC.
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target-delegates.c: Rebuild.
9848 * target.c (target_memory_map): Unconditionally delegate.
9849 * target.h (struct target_ops) <to_memory_map>: Use
9850 TARGET_DEFAULT_RETURN.
9852 2014-02-19 Tom Tromey <tromey@redhat.com>
9854 * target-delegates.c: Rebuild.
9855 * target.c (target_thread_alive): Unconditionally delegate.
9856 * target.h (struct target_ops) <to_thread_alive>: Use
9857 TARGET_DEFAULT_RETURN.
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9861 * target-delegates.c: Rebuild.
9862 * target.c (target_save_record): Unconditionally delegate.
9863 * target.h (struct target_ops) <to_save_record>: Use
9864 TARGET_DEFAULT_NORETURN.
9866 2014-02-19 Tom Tromey <tromey@redhat.com>
9868 * target-delegates.c: Rebuild.
9869 * target.c (target_delete_record): Unconditionally delegate.
9870 * target.h (struct target_ops) <to_delete_record>: Use
9871 TARGET_DEFAULT_NORETURN.
9873 2014-02-19 Tom Tromey <tromey@redhat.com>
9875 * target-delegates.c: Rebuild.
9876 * target.c (target_record_is_replaying): Unconditionally
9878 * target.h (struct target_ops) <to_record_is_replaying>: Use
9879 TARGET_DEFAULT_RETURN.
9881 2014-02-19 Tom Tromey <tromey@redhat.com>
9883 * target-delegates.c: Rebuild.
9884 * target.c (target_goto_record_begin): Unconditionally delegate.
9885 * target.h (struct target_ops) <to_goto_record_begin>: Use
9886 TARGET_DEFAULT_NORETURN.
9888 2014-02-19 Tom Tromey <tromey@redhat.com>
9890 * target-delegates.c: Rebuild.
9891 * target.c (target_goto_record_end): Unconditionally delegate.
9892 * target.h (struct target_ops) <to_goto_record_end>: Use
9893 TARGET_DEFAULT_NORETURN.
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9897 * target-delegates.c: Rebuild.
9898 * target.c (target_goto_record): Unconditionally delegate.
9899 * target.h (struct target_ops) <to_goto_record>: Use
9900 TARGET_DEFAULT_NORETURN.
9902 2014-02-19 Tom Tromey <tromey@redhat.com>
9904 * target-delegates.c: Rebuild.
9905 * target.c (target_insn_history): Unconditionally delegate.
9906 * target.h (struct target_ops) <to_insn_history>: Use
9907 TARGET_DEFAULT_NORETURN.
9909 2014-02-19 Tom Tromey <tromey@redhat.com>
9911 * target-delegates.c: Rebuild.
9912 * target.c (target_insn_history_from): Unconditionally delegate.
9913 * target.h (struct target_ops) <to_insn_history_from>: Use
9914 TARGET_DEFAULT_NORETURN.
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9918 * target-delegates.c: Rebuild.
9919 * target.c (target_insn_history_range): Unconditionally delegate.
9920 * target.h (struct target_ops) <to_insn_history_range>: Use
9921 TARGET_DEFAULT_NORETURN.
9923 2014-02-19 Tom Tromey <tromey@redhat.com>
9925 * target-delegates.c: Rebuild.
9926 * target.c (target_call_history): Unconditionally delegate.
9927 * target.h (struct target_ops) <to_call_history>: Use
9928 TARGET_DEFAULT_NORETURN.
9930 2014-02-19 Tom Tromey <tromey@redhat.com>
9932 * target-delegates.c: Rebuild.
9933 * target.c (target_call_history_from): Unconditionally delegate.
9934 * target.h (struct target_ops) <to_call_history_from>: Use
9935 TARGET_DEFAULT_NORETURN.
9937 2014-02-19 Tom Tromey <tromey@redhat.com>
9939 * target-delegates.c: Rebuild.
9940 * target.c (target_call_history_range): Unconditionally delegate.
9941 * target.h (struct target_ops) <to_call_history_range>: Use
9942 TARGET_DEFAULT_NORETURN.
9944 2014-02-19 Tom Tromey <tromey@redhat.com>
9946 * target-delegates.c: Rebuild.
9947 * target.c (target_verify_memory): Unconditionally delegate.
9948 * target.h (struct target_ops) <to_verify_memory>: Use
9949 TARGET_DEFAULT_NORETURN.
9951 2014-02-19 Tom Tromey <tromey@redhat.com>
9953 * target-delegates.c: Rebuild.
9954 * target.c (target_core_of_thread): Unconditionally delegate.
9955 * target.h (struct target_ops) <to_core_of_thread>: Use
9956 TARGET_DEFAULT_RETURN.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * target-delegates.c: Rebuild.
9961 * target.c (target_flash_done): Unconditionally delegate.
9962 * target.h (struct target_ops) <to_flash_done>: Use
9963 TARGET_DEFAULT_NORETURN.
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9967 * target-delegates.c: Rebuild.
9968 * target.c (target_flash_erase): Unconditionally delegate.
9969 * target.h (struct target_ops) <to_flash_erase>: Use
9970 TARGET_DEFAULT_NORETURN.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target-delegates.c: Rebuild.
9975 * target.c (target_get_section_table): Unconditionally delegate.
9976 * target.h (struct target_ops) <to_get_section_table>: Use
9977 TARGET_DEFAULT_RETURN.
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9981 * target-delegates.c: Rebuild.
9982 * target.c (target_pid_to_str): Unconditionally delegate.
9983 (init_dummy_target): Don't initialize to_pid_to_str.
9984 (default_pid_to_str): Rename from dummy_pid_to_str.
9985 * target.h (struct target_ops) <to_pid_to_str>: Use
9986 TARGET_DEFAULT_FUNC.
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9990 * target-delegates.c: Rebuild.
9991 * target.c (target_find_new_threads): Unconditionally delegate.
9992 * target.h (struct target_ops) <to_find_new_threads>: Use
9993 TARGET_DEFAULT_RETURN.
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9997 * target-delegates.c: Rebuild.
9998 * target.c (target_program_signals): Unconditionally delegate.
9999 * target.h (struct target_ops) <to_program_signals>: Use
10000 TARGET_DEFAULT_IGNORE.
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10004 * target-delegates.c: Rebuild.
10005 * target.c (target_pass_signals): Unconditionally delegate.
10006 * target.h (struct target_ops) <to_pass_signals>: Use
10007 TARGET_DEFAULT_IGNORE.
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10011 * target-delegates.c: Rebuild.
10012 * target.c (default_mourn_inferior): New function.
10013 (target_mourn_inferior): Unconditionally delegate.
10014 * target.h (struct target_ops) <to_mourn_inferior>: Use
10015 TARGET_DEFAULT_FUNC.
10017 2014-02-19 Tom Tromey <tromey@redhat.com>
10019 * target-delegates.c: Rebuild.
10020 * target.c (default_follow_fork): New function.
10021 (target_follow_fork): Unconditionally delegate.
10022 * target.h (struct target_ops) <to_follow_fork>: Use
10023 TARGET_DEFAULT_FUNC.
10025 2014-02-19 Tom Tromey <tromey@redhat.com>
10027 * target-delegates.c: Rebuild.
10028 * target.c (target_kill): Unconditionally delegate.
10029 * target.h (struct target_ops) <to_kill>: Use
10030 TARGET_DEFAULT_NORETURN.
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10034 * target-delegates.c: Rebuild.
10035 * target.c (target_masked_watch_num_registers): Unconditionally
10037 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10038 Use TARGET_DEFAULT_RETURN.
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10042 * target-delegates.c: Rebuild.
10043 * target.c (target_remove_mask_watchpoint): Unconditionally
10045 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10046 TARGET_DEFAULT_RETURN.
10048 2014-02-19 Tom Tromey <tromey@redhat.com>
10050 * target-delegates.c: Rebuild.
10051 * target.c (target_insert_mask_watchpoint): Unconditionally
10053 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10054 TARGET_DEFAULT_RETURN.
10056 2014-02-19 Tom Tromey <tromey@redhat.com>
10058 * target-delegates.c: Rebuild.
10059 * target.c (target_ranged_break_num_registers): Unconditionally
10061 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10062 Use TARGET_DEFAULT_RETURN.
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10066 * target-delegates.c: Rebuild.
10067 * target.c (target_fetch_registers): Unconditionally delegate.
10068 * target.h (struct target_ops) <to_fetch_registers>: Use
10069 TARGET_DEFAULT_NORETURN.
10071 2014-02-19 Tom Tromey <tromey@redhat.com>
10073 * target-delegates.c: Rebuild.
10074 * target.c (update_current_target): Don't inherit or default
10076 * target.h (struct target_ops) <to_stop>: Use
10077 TARGET_DEFAULT_IGNORE.
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10081 * target-delegates.c: Rebuild.
10082 * target.c (update_current_target): Don't inherit or default
10083 to_can_run_breakpoint_commands.
10084 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10085 Use TARGET_DEFAULT_RETURN.
10087 2014-02-19 Tom Tromey <tromey@redhat.com>
10089 * target-delegates.c: Rebuild.
10090 * target.c (update_current_target): Don't inherit or default
10091 to_supports_evaluation_of_breakpoint_conditions.
10092 * target.h (struct target_ops)
10093 <to_supports_evaluation_of_breakpoint_conditions>: Use
10094 TARGET_DEFAULT_RETURN.
10096 2014-02-19 Tom Tromey <tromey@redhat.com>
10098 * target-delegates.c: Rebuild.
10099 * target.c (update_current_target): Don't inherit or default
10100 to_augmented_libraries_svr4_read.
10101 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10102 Use TARGET_DEFAULT_RETURN.
10104 2014-02-19 Tom Tromey <tromey@redhat.com>
10106 * target-delegates.c: Rebuild.
10107 * target.c (update_current_target): Don't inherit or default
10109 * target.h (struct target_ops) <to_can_use_agent>: Use
10110 TARGET_DEFAULT_RETURN.
10112 2014-02-19 Tom Tromey <tromey@redhat.com>
10114 * target-delegates.c: Rebuild.
10115 * target.c (update_current_target): Don't inherit or default
10117 * target.h (struct target_ops) <to_use_agent>: Use
10118 TARGET_DEFAULT_NORETURN.
10120 2014-02-19 Tom Tromey <tromey@redhat.com>
10122 * target-delegates.c: Rebuild.
10123 * target.c (update_current_target): Don't inherit or default
10124 to_traceframe_info.
10125 (return_null): Remove.
10126 * target.h (struct target_ops) <to_traceframe_info>: Use
10127 TARGET_DEFAULT_RETURN.
10129 2014-02-19 Tom Tromey <tromey@redhat.com>
10131 * target-delegates.c: Rebuild.
10132 * target.c (update_current_target): Don't inherit or default
10133 to_static_tracepoint_markers_by_strid.
10134 * target.h (struct target_ops)
10135 <to_static_tracepoint_markers_by_strid>: Use
10136 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
10143 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10144 Use TARGET_DEFAULT_RETURN.
10146 2014-02-19 Tom Tromey <tromey@redhat.com>
10148 * target-delegates.c: Rebuild.
10149 * target.c (update_current_target): Don't inherit or default
10150 to_set_permissions.
10151 * target.h (struct target_ops) <to_set_permissions>: Use
10152 TARGET_DEFAULT_IGNORE.
10154 2014-02-19 Tom Tromey <tromey@redhat.com>
10156 * target-delegates.c: Rebuild.
10157 * target.c (update_current_target): Don't inherit or default
10158 to_get_tib_address.
10159 * target.h (struct target_ops) <to_get_tib_address>: Use
10160 TARGET_DEFAULT_NORETURN.
10162 2014-02-19 Tom Tromey <tromey@redhat.com>
10164 * target-delegates.c: Rebuild.
10165 * target.c (update_current_target): Don't inherit or default
10166 to_set_trace_notes.
10167 * target.h (struct target_ops) <to_set_trace_notes>: Use
10168 TARGET_DEFAULT_RETURN.
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10172 * target-delegates.c: Rebuild.
10173 * target.c (update_current_target): Don't initialize
10174 to_set_trace_buffer_size.
10175 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10176 TARGET_DEFAULT_IGNORE.
10178 2014-02-19 Tom Tromey <tromey@redhat.com>
10180 * target-delegates.c: Rebuild.
10181 * target.c (update_current_target): Don't inherit or default
10182 to_set_circular_trace_buffer.
10183 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10184 TARGET_DEFAULT_IGNORE.
10186 2014-02-19 Tom Tromey <tromey@redhat.com>
10188 * target-delegates.c: Rebuild.
10189 * target.c (update_current_target): Don't inherit or default
10190 to_set_disconnected_tracing.
10191 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10192 TARGET_DEFAULT_IGNORE.
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10196 * target-delegates.c: Rebuild.
10197 * target.c (update_current_target): Don't inherit or default
10198 to_get_min_fast_tracepoint_insn_len.
10199 (return_minus_one): Remove.
10200 * target.h (struct target_ops)
10201 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10203 2014-02-19 Tom Tromey <tromey@redhat.com>
10205 * target-delegates.c: Rebuild.
10206 * target.c (update_current_target): Don't inherit or default
10207 to_get_raw_trace_data.
10208 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10209 TARGET_DEFAULT_NORETURN.
10211 2014-02-19 Tom Tromey <tromey@redhat.com>
10213 * target-delegates.c: Rebuild.
10214 * target.c (update_current_target): Don't inherit or default
10215 to_upload_trace_state_variables.
10216 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10217 Use TARGET_DEFAULT_RETURN.
10219 2014-02-19 Tom Tromey <tromey@redhat.com>
10221 * target-delegates.c: Rebuild.
10222 * target.c (update_current_target): Don't inherit or default
10223 to_upload_tracepoints.
10224 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10225 TARGET_DEFAULT_RETURN.
10227 2014-02-19 Tom Tromey <tromey@redhat.com>
10229 * target-delegates.c: Rebuild.
10230 * target.c (update_current_target): Don't inherit or default
10231 to_save_trace_data.
10232 * target.h (struct target_ops) <to_save_trace_data>: Use
10233 TARGET_DEFAULT_NORETURN.
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10237 * target-delegates.c: Rebuild.
10238 * target.c (update_current_target): Don't inherit or default
10239 to_get_trace_state_variable_value.
10240 * target.h (struct target_ops)
10241 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10245 * target-delegates.c: Rebuild.
10246 * target.c (update_current_target): Don't inherit or default
10248 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10250 2014-02-19 Tom Tromey <tromey@redhat.com>
10252 * target-delegates.c: Rebuild.
10253 * target.c (update_current_target): Don't inherit or default
10255 * target.h (struct target_ops) <to_trace_stop>: Use
10256 TARGET_DEFAULT_NORETURN.
10258 2014-02-19 Tom Tromey <tromey@redhat.com>
10260 * target-delegates.c: Rebuild.
10261 * target.c (update_current_target): Don't inherit or default
10262 to_get_tracepoint_status.
10263 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10264 TARGET_DEFAULT_NORETURN.
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10268 * target-delegates.c: Rebuild.
10269 * target.c (update_current_target): Don't inherit or default
10270 to_get_trace_status.
10271 * target.h (struct target_ops) <to_get_trace_status>: Use
10272 TARGET_DEFAULT_RETURN.
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10276 * target-delegates.c: Rebuild.
10277 * target.c (update_current_target): Don't inherit or default
10279 * target.h (struct target_ops) <to_trace_start>: Use
10280 TARGET_DEFAULT_NORETURN.
10282 2014-02-19 Tom Tromey <tromey@redhat.com>
10284 * target-delegates.c: Rebuild.
10285 * target.c (update_current_target): Don't inherit or default
10286 to_trace_set_readonly_regions.
10287 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10288 Use TARGET_DEFAULT_NORETURN.
10290 2014-02-19 Tom Tromey <tromey@redhat.com>
10292 * target-delegates.c: Rebuild.
10293 * target.c (update_current_target): Don't inherit or default
10294 to_disable_tracepoint.
10295 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10296 TARGET_DEFAULT_NORETURN.
10298 2014-02-19 Tom Tromey <tromey@redhat.com>
10300 * target-delegates.c: Rebuild.
10301 * target.c (update_current_target): Don't inherit or default
10302 to_enable_tracepoint.
10303 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10304 TARGET_DEFAULT_NORETURN.
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10308 * target-delegates.c: Rebuild.
10309 * target.c (update_current_target): Don't inherit or default
10310 to_download_trace_state_variable.
10311 * target.h (struct target_ops) <to_download_trace_state_variable>:
10312 Use TARGET_DEFAULT_NORETURN.
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10316 * target-delegates.c: Rebuild.
10317 * target.c (update_current_target): Don't inherit or default
10318 to_can_download_tracepoint.
10319 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10320 TARGET_DEFAULT_RETURN.
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10324 * target-delegates.c: Rebuild.
10325 * target.c (update_current_target): Don't inherit or default
10326 to_download_tracepoint.
10327 * target.h (struct target_ops) <to_download_tracepoint>: Use
10328 TARGET_DEFAULT_NORETURN.
10330 2014-02-19 Tom Tromey <tromey@redhat.com>
10332 * target-delegates.c: Rebuild.
10333 * target.c (update_current_target): Don't inherit or default
10335 * target.h (struct target_ops) <to_trace_init>: Use
10336 TARGET_DEFAULT_RETURN.
10338 2014-02-19 Tom Tromey <tromey@redhat.com>
10340 * target-delegates.c: Rebuild.
10341 * target.c (update_current_target): Don't inherit or default
10342 to_supports_string_tracing.
10343 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10344 TARGET_DEFAULT_RETURN.
10346 2014-02-19 Tom Tromey <tromey@redhat.com>
10348 * target-delegates.c: Rebuild.
10349 * target.c (update_current_target): Don't inherit or default
10350 to_supports_enable_disable_tracepoint.
10351 * target.h (struct target_ops)
10352 <to_supports_enable_disable_tracepoint>: Use
10353 TARGET_DEFAULT_RETURN.
10355 2014-02-19 Tom Tromey <tromey@redhat.com>
10357 * target-delegates.c: Rebuild.
10358 * target.c (update_current_target): Don't inherit or default
10359 to_supports_multi_process.
10360 * target.h (struct target_ops) <to_supports_multi_process>: Use
10361 TARGET_DEFAULT_RETURN.
10363 2014-02-19 Tom Tromey <tromey@redhat.com>
10365 * target-delegates.c: Rebuild.
10366 * target.c (update_current_target): Don't inherit or default
10367 to_get_ada_task_ptid.
10368 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10369 TARGET_DEFAULT_FUNC.
10371 2014-02-19 Tom Tromey <tromey@redhat.com>
10373 * target-delegates.c: Rebuild.
10374 * target.c (update_current_target): Don't inherit or default
10375 to_thread_architecture.
10376 * target.h (struct target_ops) <to_thread_architecture>: Use
10377 TARGET_DEFAULT_FUNC.
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target-delegates.c: Rebuild.
10382 * target.c (update_current_target): Don't inherit or default
10383 to_execution_direction.
10384 * target.h (struct target_ops) <to_execution_direction>: Use
10385 TARGET_DEFAULT_FUNC.
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10389 * target-delegates.c: Rebuild.
10390 * target.c (update_current_target): Don't inherit or default
10391 to_can_execute_reverse.
10392 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10393 TARGET_DEFAULT_RETURN.
10394 (target_can_execute_reverse): Unconditionally delegate.
10396 2014-02-19 Tom Tromey <tromey@redhat.com>
10398 * target-delegates.c: Rebuild.
10399 * target.c (update_current_target): Don't inherit or default
10401 (dummy_goto_bookmark): Remove.
10402 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10403 * target.h (struct target_ops) <to_goto_bookmark>: Use
10404 TARGET_DEFAULT_NORETURN.
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
10411 (dummy_get_bookmark): Remove.
10412 (init_dummy_target): Don't inherit or default to_get_bookmark.
10413 * target.h (struct target_ops) <to_get_bookmark>: Use
10414 TARGET_DEFAULT_NORETURN
10416 2014-02-19 Tom Tromey <tromey@redhat.com>
10418 * target-delegates.c: Rebuild.
10419 * target.c (update_current_target): Don't inherit or default
10420 to_make_corefile_notes.
10421 (init_dummy_target): Don't initialize to_make_corefile_notes.
10422 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10423 TARGET_DEFAULT_FUNC.
10425 2014-02-19 Tom Tromey <tromey@redhat.com>
10427 * target-delegates.c: Rebuild.
10428 * target.c (update_current_target): Don't inherit or default
10429 to_find_memory_regions.
10430 (init_dummy_target): Don't initialize to_find_memory_regions.
10431 * target.h (struct target_ops) <to_find_memory_regions>: Use
10432 TARGET_DEFAULT_FUNC.
10434 2014-02-19 Tom Tromey <tromey@redhat.com>
10436 * target-delegates.c: Rebuild.
10437 * target.c (update_current_target): Don't inherit or default
10439 * target.h (struct target_ops) <to_log_command>: Use
10440 TARGET_DEFAULT_IGNORE.
10441 (target_log_command): Unconditionally delegate.
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10445 * target-delegates.c: Rebuild.
10446 * target.c (update_current_target): Don't inherit or default
10447 to_pid_to_exec_file.
10448 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10449 TARGET_DEFAULT_RETURN.
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10453 * target-delegates.c: Rebuild.
10454 * target.c (update_current_target): Don't inherit or default
10456 (target_thread_name): Unconditionally delegate.
10457 * target.h (struct target_ops) <to_thread_name>: Use
10458 TARGET_DEFAULT_RETURN.
10460 2014-02-19 Tom Tromey <tromey@redhat.com>
10462 * target-delegates.c: Rebuild.
10463 * target.c (update_current_target): Don't inherit or default
10464 to_extra_thread_info.
10465 * target.h (struct target_ops) <to_extra_thread_info>: Use
10466 TARGET_DEFAULT_RETURN.
10468 2014-02-19 Tom Tromey <tromey@redhat.com>
10470 * target-delegates.c: Rebuild.
10471 * target.c (update_current_target): Don't inherit or default
10473 * target.h (struct target_ops) <to_has_exited>: Use
10474 TARGET_DEFAULT_RETURN..
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_set_syscall_catchpoint.
10481 (return_one): Remove.
10482 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10483 TARGET_DEFAULT_RETURN.
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10487 * target-delegates.c: Rebuild.
10488 * target.c (update_current_target): Don't inherit or default
10489 to_insert_exec_catchpoint.
10490 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10491 TARGET_DEFAULT_RETURN.
10493 2014-01-08 Tom Tromey <tromey@redhat.com>
10495 * target-delegates.c: Rebuild.
10496 * target.c (update_current_target): Don't inherit or default
10497 to_insert_exec_catchpoint.
10498 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10499 TARGET_DEFAULT_RETURN.
10501 2014-02-19 Tom Tromey <tromey@redhat.com>
10503 * target-delegates.c: Rebuild.
10504 * target.c (update_current_target): Don't inherit or default
10505 to_remove_vfork_catchpoint.
10506 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10507 TARGET_DEFAULT_RETURN.
10509 2014-02-19 Tom Tromey <tromey@redhat.com>
10511 * target-delegates.c: Rebuild.
10512 * target.c (update_current_target): Don't inherit or default
10513 to_insert_vfork_catchpoint.
10514 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10515 TARGET_DEFAULT_RETURN.
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10519 * target-delegates.c: Rebuild.
10520 * target.c (update_current_target): Don't inherit or default
10521 to_remove_fork_catchpoint.
10522 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10523 TARGET_DEFAULT_RETURN.
10525 2014-02-19 Tom Tromey <tromey@redhat.com>
10527 * target-delegates.c: Rebuild.
10528 * target.c (update_current_target): Don't inherit or default
10529 to_insert_fork_catchpoint.
10530 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10531 TARGET_DEFAULT_RETURN.
10533 2014-02-19 Tom Tromey <tromey@redhat.com>
10535 * target-delegates.c: Rebuild.
10536 * target.c (update_current_target): Don't inherit or default
10537 to_post_startup_inferior.
10538 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10539 TARGET_DEFAULT_IGNORE.
10541 2014-02-19 Tom Tromey <tromey@redhat.com>
10543 * target-delegates.c: Rebuild.
10544 * target.c (update_current_target): Don't inherit or default
10546 * target.h (struct target_ops) <to_load>: Use
10547 TARGET_DEFAULT_NORETURN.
10549 2014-02-19 Tom Tromey <tromey@redhat.com>
10551 * target-delegates.c: Rebuild.
10552 * target.c (update_current_target): Don't inherit or default
10554 * target.h (struct target_ops) <to_terminal_info>: Use
10555 TARGET_DEFAULT_FUNC.
10557 2014-02-19 Tom Tromey <tromey@redhat.com>
10559 * target-delegates.c: Rebuild.
10560 * target.c (update_current_target): Don't inherit or default
10561 to_terminal_save_ours.
10562 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10563 TARGET_DEFAULT_IGNORE.
10565 2014-02-19 Tom Tromey <tromey@redhat.com>
10567 * target-delegates.c: Rebuild.
10568 * target.c (update_current_target): Don't inherit or default
10570 * target.h (struct target_ops) <to_terminal_ours>: Use
10571 TARGET_DEFAULT_IGNORE.
10573 2014-02-19 Tom Tromey <tromey@redhat.com>
10575 * target-delegates.c: Rebuild.
10576 * target.c (update_current_target): Don't inherit or default
10577 to_terminal_ours_for_output.
10578 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10579 TARGET_DEFAULT_IGNORE.
10581 2014-02-19 Tom Tromey <tromey@redhat.com>
10583 * target-delegates.c: Rebuild.
10584 * target.c (update_current_target): Don't inherit or default
10585 to_terminal_inferior.
10586 * target.h (struct target_ops) <to_terminal_inferior>: Use
10587 TARGET_DEFAULT_IGNORE.
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * target-delegates.c: Rebuild.
10592 * target.c (update_current_target): Don't inherit or default
10594 * target.h (struct target_ops) <to_terminal_init>: Use
10595 TARGET_DEFAULT_IGNORE.
10597 2014-02-19 Tom Tromey <tromey@redhat.com>
10599 * target-delegates.c: Rebuild.
10600 * target.c (update_current_target): Don't inherit or default
10601 to_can_accel_watchpoint_condition.
10602 * target.h (struct target_ops)
10603 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10607 * target-delegates.c: Rebuild.
10608 * target.c (update_current_target): Don't inherit or default
10609 to_region_ok_for_hw_watchpoint.
10610 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10611 Use TARGET_DEFAULT_FUNC.
10613 2014-02-19 Tom Tromey <tromey@redhat.com>
10615 * target-delegates.c: Rebuild.
10616 * target.c (update_current_target): Don't inherit or default
10617 to_watchpoint_addr_within_range.
10618 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10619 Use TARGET_DEFAULT_FUNC.
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10623 * target-delegates.c: Rebuild.
10624 * target.c (update_current_target): Don't inherit or default
10625 to_remove_watchpoint.
10626 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10627 TARGET_DEFAULT_NORETURN.
10629 2014-02-19 Tom Tromey <tromey@redhat.com>
10631 * target-delegates.c: Rebuild.
10632 * target.c (update_current_target): Don't inherit or default
10633 to_insert_watchpoint.
10634 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10635 TARGET_DEFAULT_RETURN.
10637 2014-02-19 Tom Tromey <tromey@redhat.com>
10639 * target-delegates.c: Rebuild.
10640 * target.c (update_current_target): Don't inherit or default
10641 to_remove_hw_breakpoint.
10642 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10643 TARGET_DEFAULT_RETURN.
10645 2014-02-19 Tom Tromey <tromey@redhat.com>
10647 * target-delegates.c: Rebuild.
10648 * target.c (update_current_target): Don't inherit or default
10649 to_insert_hw_breakpoint.
10650 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10651 TARGET_DEFAULT_RETURN.
10653 2014-02-19 Tom Tromey <tromey@redhat.com>
10655 * target-delegates.c: Rebuild.
10656 * target.c (update_current_target): Don't inherit or default
10657 to_can_use_hw_breakpoint.
10658 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10659 TARGET_DEFAULT_RETURN.
10661 2014-02-19 Tom Tromey <tromey@redhat.com>
10663 * target-delegates.c: Rebuild.
10664 * target.c (update_current_target): Don't inherit or default
10666 * target.h (struct target_ops) <to_files_info>: Use
10667 TARGET_DEFAULT_IGNORE.
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10671 * target-delegates.c: Rebuild.
10672 * target.c (update_current_target): Don't inherit or default
10674 * target.h (struct target_ops) <to_store>: Use
10675 TARGET_DEFAULT_NORETURN.
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target-delegates.c: Rebuild.
10680 * target.c (update_current_target): Don't inherit or default
10682 * target.h (struct target_ops) <to_post_attach>: Use
10683 TARGET_DEFAULT_IGNORE.
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10687 * target-delegates.c: Rebuild.
10688 * target.c (update_current_target): Don't inherit or default
10690 (default_rcmd): New function.
10691 (do_monitor_command): Unconditionally delegate.
10692 * target.h (struct target_ops) <to_rmcd>: Use
10693 TARGET_DEFAULT_FUNC.
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10697 * target-delegates.c: Rebuild.
10698 * target.c (init_dummy_target): Don't initialize to_attach.
10699 (target_attach): Unconditionally delegate.
10700 * target.h (struct target_ops) <to_attach>: Use
10701 TARGET_DEFAULT_FUNC.
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10705 * target-delegates.c: Rebuild.
10706 * target.c (target_detach): Unconditionally delegate.
10707 (init_dummy_target): Don't initialize to_detach.
10708 * target.h (struct target_ops) <to_detach>: Use
10709 TARGET_DEFAULT_IGNORE.
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10713 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10715 (target_augmented_libraries_svr4_read): Add argument.
10716 * target.c (update_current_target): Update.
10717 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10722 * target.h (struct target_ops) <to_call_history_range>: Add
10724 * target.c (target_call_history_range): Add argument.
10725 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10727 (record_btrace_call_history_from): Update.
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10731 * target.h (struct target_ops) <to_call_history_from>: Add
10733 * target.c (target_call_history_from): Add argument.
10734 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10737 2014-02-19 Tom Tromey <tromey@redhat.com>
10739 * target.h (struct target_ops) <to_call_history>: Add argument.
10740 * target.c (target_call_history): Add argument.
10741 * record-btrace.c (record_btrace_call_history): Add 'self'
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10746 * target.h (struct target_ops) <to_insn_history_range>: Add
10748 * target.c (target_insn_history_range): Add argument.
10749 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10751 (record_btrace_insn_history_from): Update.
10753 2014-02-19 Tom Tromey <tromey@redhat.com>
10755 * target.h (struct target_ops) <to_insn_history_from>: Add
10757 * target.c (target_insn_history_from): Add argument.
10758 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target.h (struct target_ops) <to_insn_history>: Add argument.
10764 * target.c (target_insn_history): Add argument.
10765 * record-btrace.c (record_btrace_insn_history): Add 'self'
10768 2014-02-19 Tom Tromey <tromey@redhat.com>
10770 * target.h (struct target_ops) <to_goto_record>: Add argument.
10771 * target.c (target_goto_record): Add argument.
10772 * record-full.c (record_full_goto): Add 'self' argument.
10773 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10775 2014-02-19 Tom Tromey <tromey@redhat.com>
10777 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10778 * target.c (target_goto_record_end): Add argument.
10779 * record-full.c (record_full_goto_end): Add 'self' argument.
10780 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10784 * target.h (struct target_ops) <to_goto_record_begin>: Add
10786 * target.c (target_goto_record_begin): Add argument.
10787 * record-full.c (record_full_goto_begin): Add 'self' argument.
10788 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10791 2014-02-19 Tom Tromey <tromey@redhat.com>
10793 * target.h (struct target_ops) <to_record_is_replaying>: Add
10795 * target.c (target_record_is_replaying): Add argument.
10796 * record-full.c (record_full_is_replaying): Add 'self' argument.
10797 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10799 (record_btrace_xfer_partial, record_btrace_store_registers)
10800 (record_btrace_prepare_to_store, record_btrace_resume)
10801 (record_btrace_wait, record_btrace_decr_pc_after_break)
10802 (record_btrace_find_new_threads, record_btrace_thread_alive):
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10807 * target.h (struct target_ops) <to_delete_record>: Add argument.
10808 * target.c (target_delete_record): Add argument.
10809 * record-full.c (record_full_delete): Add 'self' argument.
10811 2014-02-19 Tom Tromey <tromey@redhat.com>
10813 * target.h (struct target_ops) <to_save_record>: Add argument.
10814 * target.c (target_save_record): Add argument.
10815 * record-full.c (record_full_save): Add 'self' argument.
10816 (record_full_save): Add 'self' argument.
10818 2014-02-19 Tom Tromey <tromey@redhat.com>
10820 * target.h (struct target_ops) <to_info_record>: Add argument.
10821 * target.c (target_info_record): Add argument.
10822 * record.c (info_record_command): Add argument.
10823 * record-full.c (record_full_info): Add 'self' argument.
10824 * record-btrace.c (record_btrace_info): Add 'self' argument.
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10829 * target.c (target_stop_recording): Add argument.
10830 * record.c (record_stop): Add argument.
10831 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10837 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10838 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10840 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10841 (_initialize_amd64_linux_nat): Use it.
10842 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10843 (_initialize_i386_linux_nat): Use it.
10845 2014-02-19 Tom Tromey <tromey@redhat.com>
10847 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10848 * target.c (target_teardown_btrace): Add argument.
10849 * remote.c (remote_teardown_btrace): Add 'self' argument.
10850 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10852 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10855 2014-02-19 Tom Tromey <tromey@redhat.com>
10857 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10858 * target.c (target_disable_btrace): Add argument.
10859 * remote.c (remote_disable_btrace): Add 'self' argument.
10860 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10862 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10865 2014-02-19 Tom Tromey <tromey@redhat.com>
10867 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10868 * target.c (target_enable_btrace): Add argument.
10869 * remote.c (remote_enable_btrace): Add 'self' argument.
10870 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10872 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10877 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10878 (target_can_use_agent): Add argument.
10879 * target.c (update_current_target): Update.
10880 * remote.c (remote_can_use_agent): Add 'self' argument.
10881 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10883 2014-02-19 Tom Tromey <tromey@redhat.com>
10885 * target.h (struct target_ops) <to_use_agent>: Add argument.
10886 (target_use_agent): Add argument.
10887 * target.c (update_current_target): Update.
10888 * remote.c (remote_use_agent): Add 'self' argument.
10889 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10891 2014-02-19 Tom Tromey <tromey@redhat.com>
10893 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10894 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10895 (target_traceframe_info): Add argument.
10896 * target.c (update_current_target): Update.
10897 * remote.c (remote_traceframe_info): Add 'self' argument.
10898 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10900 2014-02-19 Tom Tromey <tromey@redhat.com>
10902 * target.h (target_static_tracepoint_markers_by_strid): Add
10904 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10906 * target.c (update_current_target): Update.
10907 * remote.c (struct target_ops)
10908 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10909 * linux-nat.c (struct target_ops)
10910 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10914 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10916 (target_static_tracepoint_marker_at): Add argument.
10917 * target.c (update_current_target): Update.
10918 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10921 2014-02-19 Tom Tromey <tromey@redhat.com>
10923 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10924 (target_set_permissions): Add argument.
10925 * target.c (update_current_target): Update.
10926 * remote.c (remote_set_permissions): Add 'self' argument.
10927 (remote_start_remote): Update.
10929 2014-02-19 Tom Tromey <tromey@redhat.com>
10931 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10932 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10933 (target_get_tib_address): Add argument.
10934 * target.c (update_current_target): Update.
10935 * remote.c (remote_get_tib_address): Add 'self' argument.
10937 2014-02-19 Tom Tromey <tromey@redhat.com>
10939 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10940 (target_set_trace_notes): Add argument.
10941 * target.c (update_current_target): Update.
10942 * remote.c (remote_set_trace_notes): Add 'self' argument.
10944 2014-02-19 Tom Tromey <tromey@redhat.com>
10946 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10948 (target_set_trace_buffer_size): Add argument.
10949 * target.c (update_current_target): Update.
10950 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10954 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10956 (target_set_circular_trace_buffer): Add argument.
10957 * target.c (update_current_target): Update.
10958 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10961 2014-02-19 Tom Tromey <tromey@redhat.com>
10963 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10965 (target_set_disconnected_tracing): Add argument.
10966 * target.c (update_current_target): Update.
10967 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10969 2014-02-19 Tom Tromey <tromey@redhat.com>
10971 * target.h (struct target_ops)
10972 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10973 (target_get_min_fast_tracepoint_insn_len): Add argument.
10974 * target.c (update_current_target): Update.
10975 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10978 2014-02-19 Tom Tromey <tromey@redhat.com>
10980 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10982 (target_get_raw_trace_data): Add argument.
10983 * target.c (update_current_target): Update.
10984 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10988 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10990 (target_upload_trace_state_variables): Add argument.
10991 * target.c (update_current_target): Update.
10992 * remote.c (remote_upload_trace_state_variables): Add 'self'
10994 (remote_start_remote): Update.
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10998 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11000 (target_upload_tracepoints): Add argument.
11001 * target.c (update_current_target): Update.
11002 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11003 (remote_start_remote): Update.
11005 2014-02-19 Tom Tromey <tromey@redhat.com>
11007 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11008 (target_save_trace_data): Add argument.
11009 * target.c (update_current_target): Update.
11010 * remote.c (remote_save_trace_data): Add 'self' argument.
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11014 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11016 * target.h (struct target_ops)
11017 <to_get_trace_state_variable_value>: Add argument.
11018 (target_get_trace_state_variable_value): Add argument.
11019 * target.c (update_current_target): Update.
11020 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11022 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11026 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11027 * target.h (struct target_ops) <to_trace_find>: Add argument.
11028 (target_trace_find): Add argument.
11029 * target.c (update_current_target): Update.
11030 * remote.c (remote_trace_find): Add 'self' argument.
11031 * ctf.c (ctf_trace_find): Add 'self' argument.
11033 2014-02-19 Tom Tromey <tromey@redhat.com>
11035 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11036 (target_trace_stop): Add argument.
11037 * target.c (update_current_target): Update.
11038 * remote.c (remote_trace_stop): Add 'self' argument.
11040 2014-02-19 Tom Tromey <tromey@redhat.com>
11042 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11043 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11045 (target_get_tracepoint_status): Add argument.
11046 * target.c (update_current_target): Update.
11047 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11049 2014-02-19 Tom Tromey <tromey@redhat.com>
11051 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11052 * target.h (struct target_ops) <to_get_trace_status>: Add
11054 (target_get_trace_status): Add argument.
11055 * target.c (update_current_target): Update.
11056 * remote.c (remote_get_trace_status): Add 'self' argument.
11057 (remote_start_remote, remote_can_download_tracepoint): Update.
11058 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11062 * target.h (struct target_ops) <to_trace_start>: Add argument.
11063 (target_trace_start): Add argument.
11064 * target.c (update_current_target): Update.
11065 * remote.c (remote_trace_start): Add 'self' argument.
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11069 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11071 (target_trace_set_readonly_regions): Add argument.
11072 * target.c (update_current_target): Update.
11073 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11078 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11080 (target_disable_tracepoint): Add argument.
11081 * target.c (update_current_target): Update.
11082 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11084 2014-02-19 Tom Tromey <tromey@redhat.com>
11086 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11088 (target_enable_tracepoint): Add argument.
11089 * target.c (update_current_target): Update.
11090 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11092 2014-02-19 Tom Tromey <tromey@redhat.com>
11094 * target.h (struct target_ops) <to_download_trace_state_variable>:
11096 (target_download_trace_state_variable): Add argument.
11097 * target.c (update_current_target): Update.
11098 * remote.c (remote_download_trace_state_variable): Add 'self'
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11103 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11105 (target_can_download_tracepoint): Add argument.
11106 * target.c (update_current_target): Update.
11107 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11109 2014-02-19 Tom Tromey <tromey@redhat.com>
11111 * target.h (struct target_ops) <to_download_tracepoint>: Add
11113 (target_download_tracepoint): Add argument.
11114 * target.c (update_current_target): Update.
11115 * remote.c (remote_download_tracepoint): Add 'self' argument.
11117 2014-02-19 Tom Tromey <tromey@redhat.com>
11119 * target.h (struct target_ops) <to_trace_init>: Add argument.
11120 (target_trace_init): Add argument.
11121 * target.c (update_current_target): Update.
11122 * remote.c (remote_trace_init): Add 'self' argument.
11124 2014-02-19 Tom Tromey <tromey@redhat.com>
11126 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11127 * target.c (target_fileio_readlink): Add argument.
11128 * remote.c (remote_hostio_readlink): Add 'self' argument.
11129 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11133 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11134 * target.c (target_fileio_unlink): Add argument.
11135 * remote.c (remote_hostio_unlink): Add 'self' argument.
11136 (remote_file_delete): Update.
11137 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11139 2014-02-19 Tom Tromey <tromey@redhat.com>
11141 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11142 * target.c (target_fileio_close): Add argument.
11143 * remote.c (remote_hostio_close): Add 'self' argument.
11144 (remote_hostio_close_cleanup): Update.
11145 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11147 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11151 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11152 * target.c (target_fileio_pread): Add argument.
11153 * remote.c (remote_hostio_pread): Add 'self' argument.
11154 (remote_bfd_iovec_pread, remote_file_get): Update.
11155 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11160 * target.c (target_fileio_pwrite): Add argument.
11161 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11162 (remote_file_put): Update.
11163 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11167 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11168 * target.c (target_fileio_open): Add argument.
11169 * remote.c (remote_hostio_open): Add 'self' argument.
11170 (remote_bfd_iovec_open): Add 'self' argument.
11171 (remote_file_put): Add 'self' argument.
11172 (remote_file_get): Add 'self' argument.
11173 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11175 2014-02-19 Tom Tromey <tromey@redhat.com>
11177 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11179 (target_can_run_breakpoint_commands): Add argument.
11180 * target.c (update_current_target): Update.
11181 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11183 (remote_insert_breakpoint): Add 'self' argument.
11184 (remote_insert_hw_breakpoint): Add 'self' argument.
11185 (remote_can_run_breakpoint_commands): Add 'self' argument.
11187 2014-02-19 Tom Tromey <tromey@redhat.com>
11189 * target.h (struct target_ops)
11190 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11191 (target_supports_evaluation_of_breakpoint_conditions): Add
11193 * target.c (update_current_target): Update.
11194 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11196 (remote_insert_breakpoint): Add 'self' argument.
11197 (remote_insert_hw_breakpoint): Add 'self' argument.
11198 (remote_supports_cond_breakpoints): Add 'self' argument.
11200 2014-02-19 Tom Tromey <tromey@redhat.com>
11202 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11204 (target_supports_string_tracing): Add argument.
11205 * target.c (update_current_target): Update.
11206 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11210 * target.h (struct target_ops)
11211 <to_supports_disable_randomization>: Add argument.
11212 * target.c (find_default_supports_disable_randomization): Add
11214 (target_supports_disable_randomization): Add argument.
11215 (find_default_supports_disable_randomization): Add 'self'
11217 * remote.c (extended_remote_supports_disable_randomization): Add
11219 (remote_supports_disable_randomization): Add 'self' argument.
11220 (extended_remote_create_inferior): Update.
11221 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11224 2014-02-19 Tom Tromey <tromey@redhat.com>
11226 * target.h (struct target_ops)
11227 <to_supports_enable_disable_tracepoint>: Add argument.
11228 (target_supports_enable_disable_tracepoint): Add argument.
11229 * target.c (update_current_target): Update.
11230 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11233 2014-02-19 Tom Tromey <tromey@redhat.com>
11235 * target.h (struct target_ops) <to_supports_multi_process>: Add
11237 (target_supports_multi_process): Add argument.
11238 * target.c (update_current_target): Update.
11239 * remote.c (remote_supports_multi_process): Add 'self' argument.
11240 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11242 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11247 * target.h (struct target_ops) <to_execution_direction>: Add
11249 (target_execution_direction): Add argument.
11250 * target.c (default_execution_direction): Add 'self' argument.
11251 * record-full.c (record_full_execution_direction): Add 'self'
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11256 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11258 (target_can_execute_reverse): Add argument.
11259 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11260 * record-full.c (record_full_can_execute_reverse): Add 'self'
11262 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11265 2014-02-19 Tom Tromey <tromey@redhat.com>
11267 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11268 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11270 (target_get_ada_task_ptid): Add argument.
11271 * target.c (update_current_target): Update.
11272 (default_get_ada_task_ptid): Add 'self' argument.
11273 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11274 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11275 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11277 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11279 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11281 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11283 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11284 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11287 2014-02-19 Tom Tromey <tromey@redhat.com>
11289 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11290 (target_goto_bookmark): Add argument.
11291 * target.c (dummy_goto_bookmark): Add 'self' argument.
11292 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11294 2014-02-19 Tom Tromey <tromey@redhat.com>
11296 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11297 (target_get_bookmark): Add argument.
11298 * target.c (dummy_get_bookmark): Add 'self' argument.
11299 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11301 2014-02-19 Tom Tromey <tromey@redhat.com>
11303 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11305 (target_make_corefile_notes): Add argument.
11306 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11307 * procfs.c (procfs_make_note_section): Add 'self' argument.
11308 (procfs_make_note_section): Add 'self' argument.
11309 (procfs_make_note_section): Add 'self' argument.
11310 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11312 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11313 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11314 * exec.c (exec_make_note_section): Add 'self' argument.
11315 (exec_make_note_section): Add 'self' argument.
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * target.h (struct target_ops) <to_find_memory_regions>: Add
11321 (target_find_memory_regions): Add argument.
11322 * target.c (dummy_find_memory_regions): Add 'self' argument.
11323 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11324 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11325 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11326 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11327 * exec. (exec_do_find_memory_regions): New global.
11328 (exec_set_find_memory_regions): Rewrite.
11329 (exec_find_memory_regions): New function.
11330 (init_exec_ops): Use exec_find_memory_regions.
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11334 * target.h (struct target_ops) <to_supports_non_stop>: Add
11336 * target.c (find_default_supports_non_stop): Add argument.
11337 (target_supports_non_stop): Add argument.
11338 (find_default_supports_non_stop): Add 'self' argument.
11339 * remote.c (remote_supports_non_stop): Add 'self' argument.
11340 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11344 * target.h (struct target_ops) <to_log_command>: Add argument.
11345 (target_log_command): Add argument.
11346 * serial.h (serial_log_command): Add 'self' argument.
11347 * serial.c (serial_log_command): Add 'self' argument.
11349 2014-02-19 Tom Tromey <tromey@redhat.com>
11351 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11352 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11354 (target_pid_to_exec_file): Add argument.
11355 * target.c (debug_to_pid_to_exec_file): Add argument.
11356 (update_current_target): Update.
11357 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11358 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11359 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11360 (linux_handle_extended_wait): Update.
11361 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11362 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11363 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11364 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11366 2014-02-19 Tom Tromey <tromey@redhat.com>
11368 * target.h (struct target_ops) <to_rcmd>: Add argument.
11369 (target_rcmd): Add argument.
11370 * target.c (debug_to_rcmd): Add argument.
11371 (update_current_target, do_monitor_command): Update.
11372 * remote.c (remote_rcmd): Add 'self' argument.
11373 * monitor.c (monitor_rcmd): Add 'self' argument.
11375 2014-02-19 Tom Tromey <tromey@redhat.com>
11377 * windows-nat.c (windows_stop): Add 'self' argument.
11378 * target.h (struct target_ops) <to_stop>: Add argument.
11379 * target.c (target_stop): Add argument.
11380 (debug_to_stop): Add argument.
11381 (update_current_target): Update.
11382 * remote.c (remote_stop): Add 'self' argument.
11383 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11384 (gdbsim_cntrl_c): Update.
11385 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11386 * procfs.c (procfs_stop): Add 'self' argument.
11387 * nto-procfs.c (procfs_stop): Add 'self' argument.
11388 * monitor.c (monitor_stop): Add 'self' argument.
11389 (monitor_open): Update.
11390 * linux-nat.c (linux_nat_stop): Add argument.
11391 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11392 * gnu-nat.c (gnu_stop): Add 'self' argument.
11393 * darwin-nat.c (darwin_stop): Add 'self' argument.
11395 2014-02-19 Tom Tromey <tromey@redhat.com>
11397 * target.h (struct target_ops) <to_thread_name>: Add argument.
11398 * target.c (target_thread_name): Add argument.
11399 (update_current_target): Update.
11400 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11404 * target.h (struct target_ops) <to_extra_thread_info>: Add
11406 (target_extra_thread_info): Add argument.
11407 * target.c (update_current_target): Update.
11408 * remote.c (remote_threads_extra_info): Add 'self' argument.
11409 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11411 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11412 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11413 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11415 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11417 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11419 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11422 2014-02-19 Tom Tromey <tromey@redhat.com>
11424 * target.h (struct target_ops) <to_program_signals>: Add argument.
11425 * target.c (target_program_signals): Add argument.
11426 * remote.c (remote_program_signals): Add 'self' argument.
11428 2014-02-19 Tom Tromey <tromey@redhat.com>
11430 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11431 * target.c (target_pass_signals): Add argument.
11432 * remote.c (remote_pass_signals): Add 'self' argument.
11433 (remote_start_remote): Update.
11434 * procfs.c (procfs_pass_signals): Add 'self' argument.
11435 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11436 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11437 (linux_nat_create_inferior, linux_nat_attach): Update.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * windows-nat.c (windows_can_run): Add 'self' argument.
11442 * target.h (struct target_ops) <to_can_run>: Add argument.
11443 (target_can_run): Add argument.
11444 * target.c (debug_to_can_run): Add argument.
11445 (update_current_target): Update.
11446 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11447 * inf-child.c (inf_child_can_run): Add 'self' argument.
11448 * go32-nat.c (go32_can_run): Add 'self' argument.
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11452 * target.h (struct target_ops) <to_has_exited>: Add argument.
11453 (target_has_exited): Add argument.
11454 * target.c (debug_to_has_exited): Add argument.
11455 (update_current_target): Update.
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11459 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11461 (target_set_syscall_catchpoint): Add argument.
11462 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11464 * target.c (update_current_target): Update.
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11468 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11470 (target_remove_exec_catchpoint): Add argument.
11471 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11472 (update_current_target): Update.
11473 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11476 2014-02-19 Tom Tromey <tromey@redhat.com>
11478 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11480 (target_insert_exec_catchpoint): Add argument.
11481 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11482 (update_current_target): Update.
11483 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11486 2014-02-19 Tom Tromey <tromey@redhat.com>
11488 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11490 (target_remove_vfork_catchpoint): Add argument.
11491 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11492 (update_current_target): Update.
11493 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11498 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11500 (target_insert_vfork_catchpoint): Add argument.
11501 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11502 (update_current_target): Update.
11503 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11506 2014-02-19 Tom Tromey <tromey@redhat.com>
11508 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11510 (target_remove_fork_catchpoint): Add argument.
11511 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11512 (update_current_target): Update.
11513 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11516 2014-02-19 Tom Tromey <tromey@redhat.com>
11518 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11520 (target_insert_fork_catchpoint): Add argument.
11521 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11522 (update_current_target): Update.
11523 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11526 2014-02-19 Tom Tromey <tromey@redhat.com>
11528 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11530 (target_post_startup_inferior): Add argument.
11531 * target.c (debug_to_post_startup_inferior): Add argument.
11532 (update_current_target): Update.
11533 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11535 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11537 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11539 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11541 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11543 (super_post_startup_inferior): Likewise.
11544 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11546 (super_post_startup_inferior): Likewise.
11547 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11548 Add 'self' argument.
11549 (super_post_startup_inferior): Likewise.
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11553 * target.h (struct target_ops) <to_load>: Add argument.
11554 * target.c (target_load): Add argument.
11555 (debug_to_load): Add argument.
11556 (update_current_target): Update.
11557 * remote.c (remote_load): Add 'self' argument.
11558 * remote-sim.c (gdbsim_load): Add 'self' argument.
11559 * remote-mips.c (mips_load): Add 'self' argument.
11560 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11561 * monitor.c (monitor_load): Add 'self' argument.
11562 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11564 2014-02-19 Tom Tromey <tromey@redhat.com>
11566 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11567 (target_terminal_info): Add argument.
11568 * target.c (debug_to_terminal_info): Add argument.
11569 (default_terminal_info): Likewise.
11570 * inflow.c (child_terminal_info): Add 'self' argument.
11571 * inferior.h (child_terminal_info): Add 'self' argument.
11572 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11574 2014-02-19 Tom Tromey <tromey@redhat.com>
11576 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11578 (target_terminal_save_ours): Add argument.
11579 * target.c (debug_to_terminal_save_ours): Add argument.
11580 (update_current_target): Update.
11581 * inflow.c (terminal_save_ours): Add 'self' argument.
11582 * inferior.h (terminal_save_ours): Add 'self' argument.
11584 2014-02-19 Tom Tromey <tromey@redhat.com>
11586 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11587 (target_terminal_ours): Add argument.
11588 * target.c (debug_to_terminal_ours): Add argument.
11589 (update_current_target): Update.
11590 * remote.c (remote_terminal_ours): Add 'self' argument.
11591 (remote_close): Update.
11592 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11593 * inflow.c (terminal_ours): Add 'self' argument.
11594 * inferior.h (terminal_ours): Add 'self' argument.
11595 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11597 2014-02-19 Pedro Alves <palves@redhat.com>
11598 Tom Tromey <tromey@redhat.com>
11600 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11602 (target_terminal_ours_for_output): Add argument.
11603 * target.c (debug_to_terminal_ours_for_output): Add argument.
11604 (update_current_target): Update.
11605 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11606 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11607 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11611 * target.h (struct target_ops) <to_terminal_inferior>: Add
11613 * target.c (target_terminal_inferior): Add argument.
11614 (update_current_target): Update.
11615 * remote.c (remote_terminal_inferior): Add 'self' argument.
11616 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11617 * inflow.c (terminal_inferior): Add 'self' argument.
11618 * inferior.h (terminal_inferior): Add 'self' argument.
11619 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11620 (go32_terminal_inferior): Add 'self' argument.
11622 2014-02-19 Tom Tromey <tromey@redhat.com>
11624 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11625 (target_terminal_init): Add argument.
11626 * target.c (debug_to_terminal_init): Add argument.
11627 (update_current_target): Update.
11628 * inflow.c (terminal_init_inferior): Add 'self' argument.
11629 * inferior.h (terminal_init_inferior): Add 'self' argument.
11630 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11631 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11633 2014-02-19 Tom Tromey <tromey@redhat.com>
11635 * target.h (struct target_ops)
11636 <to_can_accel_watchpoint_condition>: Add argument.
11637 (target_can_accel_watchpoint_condition): Add argument.
11638 * target.c (debug_to_can_accel_watchpoint_condition): Add
11640 (update_current_target): Update.
11641 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11646 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11648 (target_region_ok_for_hw_watchpoint): Add argument.
11649 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11650 (default_region_ok_for_hw_watchpoint): Add argument.
11651 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11652 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11654 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11656 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11658 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11660 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11662 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11664 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11665 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11667 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11668 Add 'self' argument.
11670 2014-02-19 Tom Tromey <tromey@redhat.com>
11672 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11674 (target_insert_watchpoint): Add argument.
11675 * target.c (debug_to_insert_watchpoint): Add argument.
11676 (update_current_target): Update.
11677 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11678 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11679 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11680 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11681 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11682 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11684 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11685 (procfs_insert_hw_watchpoint): Add 'self' argument.
11686 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11688 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11690 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11692 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11693 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11695 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11700 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11702 (target_remove_watchpoint): Add argument.
11703 * target.c (debug_to_remove_watchpoint): Add argument.
11704 (update_current_target): Update.
11705 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11706 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11707 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11708 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11709 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11710 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11712 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11713 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11715 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11717 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11719 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11720 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11722 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11725 2014-02-19 Tom Tromey <tromey@redhat.com>
11727 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11729 (target_remove_hw_breakpoint): Add argument.
11730 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11731 (update_current_target): Update.
11732 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11733 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11735 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11736 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11738 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11741 2014-02-19 Tom Tromey <tromey@redhat.com>
11743 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11745 (target_insert_hw_breakpoint): Add argument.
11746 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11747 (update_current_target): Update.
11748 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11749 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11751 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11752 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11753 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11755 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11760 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11762 (target_can_use_hardware_watchpoint): Add argument.
11763 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11764 (update_current_target): Update.
11765 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11767 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11769 * remote.c (remote_check_watch_resources): Add 'self' argument.
11770 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11771 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11773 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11774 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11776 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11778 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11780 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11782 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11784 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11786 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11787 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11789 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11792 2014-02-19 Tom Tromey <tromey@redhat.com>
11794 * target.h (struct target_ops) <to_post_attach>: Add argument.
11795 (target_post_attach): Add argument.
11796 * target.c (debug_to_post_attach): Add argument.
11797 (update_current_target): Update.
11798 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11799 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11800 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11801 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11802 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11804 2014-02-19 Tom Tromey <tromey@redhat.com>
11806 * windows-nat.c (windows_close): Add 'self' argument.
11807 * tracepoint.c (tfile_close): Add 'self' argument.
11808 * target.h (struct target_ops) <to_close>: Add argument.
11809 * target.c (target_close): Add argument.
11810 (update_current_target): Update.
11811 * remote.c (remote_close): Add 'self' argument.
11812 * remote-sim.c (gdbsim_close): Add 'self' argument.
11813 * remote-mips.c (mips_close): Add 'self' argument.
11814 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11815 * record-full.c (record_full_close): Add 'self' argument.
11816 * record-btrace.c (record_btrace_close): Add 'self' argument.
11817 * monitor.h (monitor_close): Add 'self' argument.
11818 * monitor.c (monitor_close): Add 'self' argument.
11819 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11820 * linux-nat.c (linux_nat_close): Add argument.
11821 * go32-nat.c (go32_close): Add 'self' argument.
11822 * exec.c (exec_close_1): Add 'self' argument.
11823 * ctf.c (ctf_close): Add 'self' argument.
11824 * corelow.c (core_close): Add 'self' argument.
11825 (core_close_cleanup): Update.
11826 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11827 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11831 * remote.c (remote_load): New function.
11832 (init_remote_ops): Use it.
11834 2014-02-19 Tom Tromey <tromey@redhat.com>
11836 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11838 * common/linux-btrace.h (linux_supports_btrace): Update.
11839 * remote.c (remote_supports_btrace): Add "self" argument.
11840 * target-delegates.c: Rebuild.
11841 * target.c (target_supports_btrace): Remove.
11842 * target.h (struct target_ops) <to_supports_btrace>: Add
11843 target_ops argument.
11844 (target_supports_btrace): New define.
11846 2014-02-19 Tom Tromey <tromey@redhat.com>
11848 * record-full.c (record_full_beneath_to_resume_ops)
11849 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11850 (record_full_beneath_to_wait)
11851 (record_full_beneath_to_store_registers_ops)
11852 (record_full_beneath_to_store_registers)
11853 (record_full_beneath_to_xfer_partial_ops)
11854 (record_full_beneath_to_xfer_partial)
11855 (record_full_beneath_to_insert_breakpoint_ops)
11856 (record_full_beneath_to_insert_breakpoint)
11857 (record_full_beneath_to_remove_breakpoint_ops)
11858 (record_full_beneath_to_remove_breakpoint)
11859 (record_full_beneath_to_stopped_by_watchpoint)
11860 (record_full_beneath_to_stopped_data_address)
11861 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11862 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11863 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11864 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11865 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11866 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11867 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11868 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11869 (record_full_resume, record_full_wait_1)
11870 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11871 (record_full_store_registers, record_full_xfer_partial)
11872 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11873 (record_full_async, record_full_core_xfer_partial): Use target
11875 * target-delegates.c: Rebuild.
11876 * target.c (current_xfer_partial): Remove.
11877 (update_current_target): Do not INHERIT or de_fault
11878 to_insert_breakpoint, to_remove_breakpoint,
11879 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11880 to_is_async_p, to_async. Do not set to_xfer_partial field.
11881 (default_xfer_partial): Simplify.
11882 (current_xfer_partial): Remove.
11883 (target_wait, target_resume): Simplify.
11884 (find_default_can_async_p, find_default_is_async_p): Update.
11885 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11886 to_xfer_partial, to_stopped_by_watchpoint,
11887 to_stopped_data_address.
11888 (target_store_registers): Simplify.
11889 (forward_target_remove_breakpoint)
11890 (forward_target_insert_breakpoint): Remove.
11891 (target_remove_breakpoint, target_insert_breakpoint)
11892 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11893 * target.h (struct target_ops) <to_resume, to_wait,
11894 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11895 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11896 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11898 (forward_target_remove_breakpoint)
11899 (forward_target_insert_breakpoint): Remove.
11900 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11902 (record_btrace_insert_breakpoint): Delegate directly.
11904 2014-02-19 Tom Tromey <tromey@redhat.com>
11907 * target-delegates.c: New file.
11908 * target.c: Include target-delegates.c.
11909 (init_dummy_target): Call install_dummy_methods.
11910 (complete_target_initialization): Call install_delegators.
11911 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11912 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11913 * make-target-delegates: New file.
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11917 * record.c (find_record_target): Use find_target_at.
11918 * target.c (find_target_at): New function.
11919 * target.h (find_target_at): Declare.
11921 2014-02-19 Tom Tromey <tromey@redhat.com>
11923 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11924 Add 'ops' argument.
11925 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11927 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11928 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11930 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11932 * linux-nat.c (save_sigtrap): Update.
11933 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11934 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11935 (linux_nat_close): Update.
11936 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11938 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11940 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11941 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11942 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11943 (tmp_to_async): Add 'ops' argument.
11944 (record_full_stopped_by_watchpoint, record_full_async)
11945 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11947 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11948 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11949 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11950 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11951 (remote_is_async_p, remote_async): Add 'ops' argument.
11952 (remote_stopped_data_address): Update.
11953 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11954 * target.c (update_current_target)
11955 (find_default_can_async_p, find_default_is_async_p): Update.
11956 (init_dummy_target): Update.
11957 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11958 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11959 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11960 (target_can_async_p, target_is_async_p, target_async)
11961 (target_stopped_by_watchpoint): Update.
11963 2014-02-19 Yao Qi <yao@codesourcery.com>
11966 * gdbarch.sh: Remove startup_gdbarch.
11967 * gdbarch.c: Regenerated.
11968 * gdbarch.h: Likewise.
11970 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11972 * rl78-tdep.c (rl78_g10_register_name): New function.
11973 (rl78_return_value): Add g10 support.
11974 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11977 2014-02-17 Doug Evans <xdje42@gmail.com>
11979 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11980 (SUBDIR_GUILE_SRCS): Ditto.
11981 (scm-gsmob.o): Ditto.
11983 2014-02-17 Yao Qi <yao@codesourcery.com>
11985 * gnu-nat.c (ILL_RPC): Declare defined function.
11987 2014-02-17 Yao Qi <yao@codesourcery.com>
11989 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11990 mach_msg_type_number_t.
11991 (gnu_write_inferior): Likewise.
11993 2014-02-17 Yao Qi <yao@codesourcery.com>
11995 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11997 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11998 (inf_validate_procs, inf_signal): Likewise.
11999 (S_exception_raise_request): Likewise.
12000 (do_mach_notify_dead_name): Likewise.
12001 (steal_exc_port): Likewise.
12002 (gnu_read_inferior): Change 'copy_count''s type to
12003 mach_msg_type_number_t.
12004 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12007 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12009 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12010 flag. Adjust all users; in particular...
12011 (gnu_wait): ..., don't decrement its value in here...
12012 (gnu_create_inferior): ..., and instead set the flag in here,
12013 around the startup_inferior call, and call that one with
12014 START_INFERIOR_TRAPS_EXPECTED.
12016 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12017 (ILL_RPC): ... new macro.
12018 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12019 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12020 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12021 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12022 functions with ILL_RPC macro.
12023 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12024 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12025 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12026 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12027 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12028 (S_proc_getlogin_reply, S_proc_getsid_reply)
12029 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12030 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12031 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12032 (S_proc_getnports_reply, S_proc_is_important_reply)
12033 (S_proc_get_code_reply): New stub functions, generated with
12036 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12037 collected the type check structures.
12039 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12041 2014-02-14 Doug Evans <dje@google.com>
12043 * target.c (target_write_partial): Fix result type.
12045 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12047 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12048 the proper offsets to access fpregset_t.
12050 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12052 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12053 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12054 * h8300-tdep.c (setmachinelist): Remove global.
12055 * hppa-tdep.c (hppa_sigtramp): Remove global.
12056 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12057 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12058 * ravenscar-thread.c (update_target_observer): Remove global.
12059 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12061 2014-02-12 Tom Tromey <tromey@redhat.com>
12063 * common/rsp-low.c: Update comments.
12064 * common/rsp-low.h: Update comments.
12066 2014-02-12 Tom Tromey <tromey@redhat.com>
12068 * common/rsp-low.c (convert_ascii_to_int): Remove.
12069 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12071 2014-02-12 Tom Tromey <tromey@redhat.com>
12073 * common/rsp-low.h (unhexify): Don't declare.
12074 * common/rsp-low.c (unhexify): Remove.
12076 2014-02-12 Tom Tromey <tromey@redhat.com>
12078 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12079 * common/rsp-low.c (convert_int_to_ascii): Remove.
12081 2014-02-12 Tom Tromey <tromey@redhat.com>
12083 * common/rsp-low.h (hexify): Don't declare.
12084 * common/rsp-low.c (hexify): Remove.
12086 2014-02-12 Tom Tromey <tromey@redhat.com>
12088 * common/rsp-low.c (hexify): Never take strlen of argument.
12090 2014-02-12 Tom Tromey <tromey@redhat.com>
12092 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12093 * remote.c (extended_remote_run, remote_rcmd)
12094 (remote_download_trace_state_variable, remote_save_trace_data)
12095 (remote_set_trace_notes): Update.
12096 * tracepoint.c (encode_source_string, tfile_write_status)
12097 (tfile_write_uploaded_tsv): Update.
12099 2014-02-12 Tom Tromey <tromey@redhat.com>
12101 * tracepoint.c: Include rsp-low.h.
12102 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12103 * remote.c: Include rsp-low.h.
12104 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12105 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12106 (remote_unescape_input): Move to common/rsp-low.c.
12107 * common/rsp-low.h: New file.
12108 * common/rsp-low.c: New file.
12109 * Makefile.in (SFILES): Add common/rsp-low.c.
12110 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12111 (COMMON_OBS): Add rsp-low.o.
12112 (rsp-low.o): New target.
12114 2014-02-12 Tom Tromey <tromey@redhat.com>
12116 * utils.h: Include print-utils.h.
12117 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12118 (int_string, core_addr_to_string, core_addr_to_string_nz)
12119 (hex_string, hex_string_custom): Don't declare.
12120 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12121 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12122 (hex_string_custom, int_string, core_addr_to_string)
12123 (core_addr_to_string_nz, host_address_to_string): Move to
12124 common/print-utils.c.
12125 * common/print-utils.h: New file.
12126 * common/print-utils.c: New file
12127 * Makefile.in (SFILES): Add common/print-utils.c.
12128 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12129 (COMMON_OBS): Add print-utils.o.
12130 (print-utils.o): New target.
12132 2014-02-12 Tom Tromey <tromey@redhat.com>
12134 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12136 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12138 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12140 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12142 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12143 if a PT_IO ptrace request returns sucessfully but indicates that 0
12144 bytes were transferred.
12146 2014-02-12 Pedro Alves <palves@redhat.com>
12147 Kevin Buettner <kevinb@redhat.com>
12149 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12150 TYPE_INSTANCE_FLAG_CODE_SPACE.
12152 2014-02-12 Pedro Alves <palves@redhat.com>
12154 * h8300-tdep.c (pseudo_from_raw_register)
12155 (raw_from_pseudo_register): New functions.
12156 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12159 2014-02-12 Pedro Alves <palves@redhat.com>
12161 * h8300-tdep.c (h8300_register_sim_regno): New function.
12162 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12163 gdbarch_register_sim_regno hook.
12165 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12167 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12169 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12171 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12173 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12175 * obsd-tdep.h (obsd_init_abi): New prototype.
12176 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12177 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12178 (obsd_init_abi): New functions.
12179 * i386obsd-tdep.c: Include "obsd-tdep.h".
12180 (i386obsd_init_abi): Call obsd_init_abi.
12181 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12182 (amd64obsd_init_abi): Call obsd_init_abi.
12183 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12184 obsd-tdep.c to gdb_target_obs.
12186 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12188 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12189 double float arguments to 16-byte in the argument slots.
12191 2014-02-11 Doug Evans <xdje42@gmail.com>
12193 * configure.ac: Don't crash if pkg-config is not found and guile
12194 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12196 * configure: Regenerate.
12198 2014-02-11 Yao Qi <yao@codesourcery.com>
12200 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12201 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12202 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12203 * gnu-nat.c (gnu_xfer_memory): Likewise.
12204 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12205 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12206 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12207 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12209 2014-02-11 Yao Qi <yao@codesourcery.com>
12211 * target.h (enum target_xfer_error): Rename to ...
12212 (enum target_xfer_status): ... it. New. All users updated.
12213 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12215 (TARGET_XFER_STATUS_ERROR_P): New macro.
12216 (target_xfer_error_to_string): Remove declaration.
12217 (target_xfer_status_to_string): Declare.
12218 (target_xfer_partial_ftype): Adjust it.
12219 (struct target_ops) <to_xfer_partial>: Return
12220 target_xfer_status. Add argument xfered_len. Update
12222 * target.c (target_xfer_error_to_string): Rename to ...
12223 (target_xfer_status_to_string): ... it. New. All callers
12225 (target_read_live_memory): Likewise. Call target_xfer_partial
12226 instead of target_read.
12227 (memory_xfer_live_readonly_partial): Return
12228 target_xfer_status. Add argument xfered_len.
12229 (raw_memory_xfer_partial): Likewise.
12230 (memory_xfer_partial_1): Likewise.
12231 (memory_xfer_partial): Likewise.
12232 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12233 properly. Update debug message.
12234 (default_xfer_partial, current_xfer_partial): Likewise.
12235 (target_write_partial): Likewise.
12236 (target_read_partial): Likewise. All callers updated.
12237 (read_whatever_is_readable): Likewise.
12238 (target_write_with_progress): Likewise.
12239 (target_read_alloc_1): Likewise.
12241 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12242 * auxv.c (procfs_xfer_auxv): Likewise.
12243 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12244 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12245 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12246 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12247 * corefile.c (read_memory): Adjust.
12248 * corelow.c (core_xfer_partial): Likewise.
12249 * ctf.c (ctf_xfer_partial): Likewise.
12250 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12252 (darwin_xfer_partial): Likewise.
12253 * exec.c (section_table_xfer_memory_partial): Likewise. All
12255 (exec_xfer_partial): Likewise.
12256 * exec.h (section_table_xfer_memory_partial): Update
12258 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12260 (gnu_xfer_partial): Likewise.
12261 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12262 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12263 (ia64_hpux_xfer_solib_got): Likewise.
12264 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12265 type of 'partial_len' to ULONGEST.
12266 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12267 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12268 (linux_nat_xfer_partial): Likewise.
12269 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12270 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12271 * monitor.c (monitor_xfer_memory): Likewise.
12272 (monitor_xfer_partial): Likewise.
12273 * procfs.c (procfs_xfer_partial): Likewise.
12274 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12275 * record-full.c (record_full_xfer_partial): Likewise.
12276 (record_full_core_xfer_partial): Likewise.
12277 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12278 (gdbsim_xfer_partial): Likewise.
12279 * remote.c (remote_write_bytes_aux): Likewise. All callers
12281 (remote_write_bytes, remote_read_bytes): Likewise. All
12283 (remote_flash_erase): Likewise. All callers updated.
12284 (remote_write_qxfer): Likewise. All callers updated.
12285 (remote_read_qxfer): Likewise. All callers updated.
12286 (remote_xfer_partial): Likewise.
12287 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12288 (rs6000_xfer_shared_libraries): Likewise.
12289 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12290 (sol_thread_xfer_partial): Likewise.
12291 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12292 (sparc_xfer_partial): Likewise.
12293 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12295 (spu_xfer_partial): Likewise.
12296 * spu-multiarch.c (spu_xfer_partial): Likewise.
12297 * tracepoint.c (tfile_xfer_partial): Likewise.
12298 * windows-nat.c (windows_xfer_memory): Likewise.
12299 (windows_xfer_shared_libraries): Likewise.
12300 (windows_xfer_partial): Likewise.
12301 * valprint.c: Replace 'target_xfer_error' with
12302 'target_xfer_status' in comments.
12304 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12306 Checked in by Joel Brobecker <brobecker@adacore.com>.
12307 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12309 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12311 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12312 function parameters.
12314 2014-02-10 Will Newton <will.newton@linaro.org>
12316 * elfread.c (elf_rel_plt_read): Look for a .got section if
12317 looking up .got.plt fails.
12318 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12319 on address passed to elf_gnu_ifunc_record_cache.
12320 (elf_gnu_ifunc_resolve_addr): Likewise.
12321 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12323 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12325 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12326 (X_RETTURN): New macro.
12327 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12329 * sparc64-tdep.c (sparc64_init_abi): Hook
12330 sparc_in_function_epilogue_p.
12332 2014-02-10 Gary Benson <gbenson@redhat.com>
12334 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12335 Rename name_matcher to symbol_matcher.
12337 2014-02-10 Gary Benson <gbenson@redhat.com>
12339 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12340 Use expand_symtabs_file_matcher_ftype and
12341 expand_symtabs_symbol_matcher_ftype.
12343 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12345 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12346 (struct ada_symbol_cache): New.
12347 (ada_free_symbol_cache): Forward declare.
12348 (struct ada_pspace_data): New.
12349 (ada_pspace_data_handle): New static global.
12350 (get_ada_pspace_data, ada_pspace_data_cleanup)
12351 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12352 (cache_space, cache): Delete, now folded inside struct
12354 (ada_get_symbol_cache): New function.
12355 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12357 (_initialize_ada_language): Remove initialization of cache_space.
12358 Move call to observer_attach_inferior_exit up, grouping it
12359 with the other observer registrations inside this function.
12360 Rename command to be more general. Add call to
12361 register_program_space_data_with_cleanup.
12363 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12365 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12366 ada_new_objfile_observer.
12367 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12368 (_initialize_tasks): Update uses of ada_new_objfile_observer
12369 and ada_tasks_normal_stop_observer.
12371 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12373 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12374 returned by the 'Length attribute to integer.
12376 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12378 * ada-lang.c (_initialize_ada_language): Initialize
12379 cache_space obstack.
12381 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12383 * ada-lang.c (HASH_SIZE): New macro.
12384 (struct cache_entry): New type.
12385 (cache_space, cache): New static globals.
12386 (ada_clear_symbol_cache, find_entry): New functions.
12387 (lookup_cached_symbol, cache_symbol): Implement.
12388 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12389 (_initialize_ada_language): Attach ada_new_objfile_observer
12390 and ada_free_objfile_observer.
12392 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12394 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12395 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12396 struct block * parameter.
12397 (ada_lookup_symbol_list_worker): Constify local variable "block".
12398 Remove cast which is no longer necessary.
12400 2014-02-10 Doug Evans <xdje42@gmail.com>
12402 Add Guile as an extension language.
12403 * NEWS: Mention Guile scripting.
12404 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12405 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12406 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12407 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12408 (CLIBS): Add GUILE_LIBS.
12409 (install-guile): New rule.
12410 (guile.o): New rule.
12411 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12412 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12413 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12414 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12415 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12416 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12417 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12418 * configure.ac: New option --with-guile.
12419 * configure: Regenerate.
12420 * config.in: Regenerate.
12421 * auto-load.c: Remove #include "python/python.h". Add #include
12422 "gdb/section-scripts.h".
12423 (source_section_scripts): Handle Guile scripts.
12424 (_initialize_auto_load): Add name of Guile objfile script to
12425 scripts-directory help text.
12426 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12427 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12428 (struct breakpoint): New member scm_bp_object.
12429 * defs.h (enum command_control_type): New value guile_control.
12430 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12432 (show_user): Update comment.
12433 (_initialize_cli_cmds): Update help text for "show user". Update help
12434 text for max-user-call-depth.
12435 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12437 (multi_line_command_p): Add guile_control.
12438 (print_command_lines): Handle guile_control.
12439 (execute_control_command, recurse_read_control_structure): Ditto.
12440 (process_next_line): Recognize "guile" commands.
12441 * disasm.c (gdb_disassemble_info): Make non-static.
12442 * disasm.h: #include "dis-asm.h".
12443 (struct gdbarch): Add forward decl.
12444 (gdb_disassemble_info): Declare.
12445 * extension.c: #include "guile/guile.h".
12446 (extension_languages): Add guile.
12447 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12448 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12449 * gdbtypes.c (get_unsigned_type_max): New function.
12450 (get_signed_type_minmax): New function.
12451 * gdbtypes.h (get_unsigned_type_max): Declare.
12452 (get_signed_type_minmax): Declare.
12453 * guile/README: New file.
12454 * guile/guile-internal.h: New file.
12455 * guile/guile.c: New file.
12456 * guile/guile.h: New file.
12457 * guile/scm-arch.c: New file.
12458 * guile/scm-auto-load.c: New file.
12459 * guile/scm-block.c: New file.
12460 * guile/scm-breakpoint.c: New file.
12461 * guile/scm-disasm.c: New file.
12462 * guile/scm-exception.c: New file.
12463 * guile/scm-frame.c: New file.
12464 * guile/scm-gsmob.c: New file.
12465 * guile/scm-iterator.c: New file.
12466 * guile/scm-lazy-string.c: New file.
12467 * guile/scm-math.c: New file.
12468 * guile/scm-objfile.c: New file.
12469 * guile/scm-ports.c: New file.
12470 * guile/scm-pretty-print.c: New file.
12471 * guile/scm-safe-call.c: New file.
12472 * guile/scm-string.c: New file.
12473 * guile/scm-symbol.c: New file.
12474 * guile/scm-symtab.c: New file.
12475 * guile/scm-type.c: New file.
12476 * guile/scm-utils.c: New file.
12477 * guile/scm-value.c: New file.
12478 * guile/lib/gdb.scm: New file.
12479 * guile/lib/gdb/boot.scm: New file.
12480 * guile/lib/gdb/experimental.scm: New file.
12481 * guile/lib/gdb/init.scm: New file.
12482 * guile/lib/gdb/iterator.scm: New file.
12483 * guile/lib/gdb/printing.scm: New file.
12484 * guile/lib/gdb/types.scm: New file.
12485 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12486 (VPATH): Add $(GUILE_SRCDIR).
12487 (GUILE_DIR): New variable.
12488 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12489 (all): Add stamp-guile dependency.
12490 (stamp-guile): New rule.
12491 (clean-guile, install-guile, uninstall-guile): New rules.
12492 (install-only): Add install-guile dependency.
12493 (uninstall): Add uninstall-guile dependency.
12494 (clean): Add clean-guile dependency.
12496 2014-02-09 Doug Evans <xdje42@gmail.com>
12498 Revert this patch (which I approved, mea culpa).
12500 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12502 * Makefile.in (all-lib): Remove.
12503 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12505 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12507 Fix Python stack corruption.
12508 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12511 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12513 * Makefile.in (all-lib): Remove.
12514 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12516 2014-02-07 Doug Evans <dje@google.com>
12518 * extension-priv.h (extension_language_script_ops): Add comment.
12519 (extension_language_ops): Add comment.
12520 (active_ext_lang_state): Fix typo in comment.
12522 2014-02-07 Pedro Alves <palves@redhat.com>
12524 PR breakpoints/16292
12525 * infrun.c (handle_signal_stop) <signal arrives while stepping
12526 over a breakpoint>: Switch back to the stepping thread.
12528 2014-02-07 Yao Qi <yao@codesourcery.com>
12530 * target.c (target_xfer_partial): Return zero if LEN is zero.
12532 2014-02-07 Yao Qi <yao@codesourcery.com>
12534 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12535 (ld_so_xfer_auxv): Likewise.
12536 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12537 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12538 * corelow.c (core_xfer_partial): Likewise.
12539 * ctf.c (ctf_xfer_partial): Likewise.
12540 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12541 (darwin_xfer_partial): Likewise.
12542 * exec.c (exec_xfer_partial): Likewise.
12543 * gnu-nat.c (gnu_xfer_partial): Likewise.
12544 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12545 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12546 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12547 * linux-nat.c (linux_xfer_siginfo): Likewise.
12548 (linux_proc_xfer_spu): Likewise.
12549 * procfs.c (procfs_xfer_partial): Likewise.
12550 * record-full.c (record_full_xfer_partial): Likewise.
12551 (record_full_core_xfer_partial): Likewise.
12552 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12553 * remote.c (remote_write_qxfer): Likewise.
12554 (remote_write_qxfer, remote_read_qxfer): Likewise.
12555 (remote_xfer_partial): Likewise.
12556 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12557 (rs6000_xfer_shared_libraries): Likewise.
12558 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12559 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12560 (spu_xfer_partial): Likewise.
12561 * target.c (memory_xfer_partial_1): Likewise.
12562 * tracepoint.c (tfile_xfer_partial): Likewise.
12563 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12564 (windows_xfer_partial): Likewise.
12566 2014-02-07 Yao Qi <yao@codesourcery.com>
12568 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12570 (core_xfer_shared_libraries_aix): Likewise.
12571 * gdbarch.c, gdbarch.h: Regenerated.
12572 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12573 ULONGEST. Change 'len_avail' type to ULONGEST.
12574 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12575 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12577 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12579 2014-02-07 Yao Qi <yao@codesourcery.com>
12581 * corefile.c (memory_error): Get 'exception' from ERR and pass
12582 'exception' to throw_error.
12584 2014-02-06 Doug Evans <xdje42@gmail.com>
12586 * configure.ac (libpython checking): Remove all but python.o from
12587 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12588 * configure: Regenerate.
12590 * Makefile.in (SFILES): Add extension.c.
12591 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12592 (COMMON_OBS): Add extension.o.
12593 * extension.h: New file.
12594 * extension-priv.h: New file.
12595 * extension.c: New file.
12597 * python/python-internal.h: #include "extension.h".
12598 (gdbpy_auto_load_enabled): Declare.
12599 (gdbpy_apply_val_pretty_printer): Declare.
12600 (gdbpy_apply_frame_filter): Declare.
12601 (gdbpy_preserve_values): Declare.
12602 (gdbpy_breakpoint_cond_says_stop): Declare.
12603 (gdbpy_breakpoint_has_cond): Declare.
12604 (void source_python_script_for_objfile): Delete.
12605 * python/python.c: #include "extension-priv.h".
12606 Delete inclusion of "observer.h".
12607 (extension_language_python): Moved here and renamed from
12608 script_language_python in py-auto-load.c.
12609 Redefined to be of type extension_language_defn.
12610 (python_extension_script_ops): New global.
12611 (python_extension_ops): New global.
12612 (struct python_env): New member previous_active.
12613 (restore_python_env): Call restore_active_ext_lang.
12614 (ensure_python_env): Call set_active_ext_lang.
12615 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12617 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12619 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12621 (gdbpy_eval_from_control_command): Renamed from
12622 eval_python_from_control_command, made static. New arg extlang.
12623 (gdbpy_source_script) Renamed from source_python_script, made static.
12625 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12626 result to int. New arg extlang.
12627 (gdbpy_source_objfile_script): Renamed from
12628 source_python_script_for_objfile, made static. New arg extlang.
12629 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12630 static. New args extlang, extlang_printers. Change result type to
12632 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12633 static. New arg extlang. Rename arg printers to extlang_printers
12634 and change type to ext_lang_type_printers *.
12635 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12636 static. Replace argument arg with extlang, extlang_printers.
12637 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12638 (!HAVE_PYTHON, source_python_script): Delete.
12639 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12640 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12641 (!HAVE_PYTHON, start_type_printers): Delete.
12642 (!HAVE_PYTHON, apply_type_printers): Delete.
12643 (!HAVE_PYTHON, free_type_printers): Delete.
12644 (_initialize_python): Delete call to observer_attach_before_prompt.
12645 (finalize_python): Set/restore active extension language.
12646 (gdbpy_finish_initialization) Renamed from
12647 finish_python_initialization, made static. New arg extlang.
12648 (gdbpy_initialized): New function.
12649 * python/python.h: #include "extension.h". Delete #include
12650 "value.h", "mi/mi-cmds.h".
12651 (extension_language_python): Declare.
12652 (GDBPY_AUTO_FILE_NAME): Delete.
12653 (enum py_bt_status): Moved to extension.h and renamed to
12654 ext_lang_bt_status.
12655 (enum frame_filter_flags): Moved to extension.h.
12656 (enum py_frame_args): Moved to extension.h and renamed to
12657 ext_lang_frame_args.
12658 (finish_python_initialization): Delete.
12659 (eval_python_from_control_command): Delete.
12660 (source_python_script): Delete.
12661 (apply_val_pretty_printer): Delete.
12662 (apply_frame_filter): Delete.
12663 (preserve_python_values): Delete.
12664 (gdbpy_script_language_defn): Delete.
12665 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12666 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12668 * auto-load.c: #include "extension.h".
12669 (GDB_AUTO_FILE_NAME): Delete.
12670 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12671 (script_language_gdb): Delete, moved to extension.c and renamed to
12672 extension_language_gdb.
12673 (source_gdb_script_for_objfile): Delete.
12674 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12675 (loaded_script): Change type of language member to
12676 struct extension_language_defn *.
12677 (init_loaded_scripts_info): Initialize
12678 unsupported_script_warning_printed.
12679 (maybe_add_script): Make static. Change type of language arg to
12680 struct extension_language_defn *.
12681 (clear_section_scripts): Reset unsupported_script_warning_printed.
12682 (auto_load_objfile_script_1): Rewrite to use extension language API.
12683 (auto_load_objfile_script): Make public. Remove support-compiled-in
12684 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12685 (source_section_scripts): Rewrite to use extension language API.
12686 (load_auto_scripts_for_objfile): Rewrite to use
12687 auto_load_scripts_for_objfile.
12688 (collect_matching_scripts_data): Change type of language member to
12689 struct extension_language_defn *.
12690 (auto_load_info_scripts): Change type of language arg to
12691 struct extension_language_defn *.
12692 (unsupported_script_warning_print): New function.
12693 (script_not_found_warning_print): Make static.
12694 (_initialize_auto_load): Rewrite construction of scripts-directory
12696 * auto-load.h (struct objfile): Add forward decl.
12697 (struct script_language): Delete.
12698 (struct auto_load_pspace_info): Add forward decl.
12699 (struct extension_language_defn): Add forward decl.
12700 (maybe_add_script): Delete.
12701 (auto_load_objfile_script): Declare.
12702 (script_not_found_warning_print): Delete.
12703 (auto_load_info_scripts): Update prototype.
12704 (auto_load_gdb_scripts_enabled): Declare.
12705 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12706 auto_load_python_scripts_enabled and made public.
12707 (script_language_python): Delete, moved to python.c.
12708 (gdbpy_script_language_defn): Delete.
12709 (info_auto_load_python_scripts): Update to use
12710 extension_language_python.
12712 * breakpoint.c (condition_command): Replace call to
12713 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12714 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12715 with call to breakpoint_ext_lang_cond_says_stop.
12716 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12717 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12718 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12719 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12721 (local_setattro): Print name of extension language with existing
12724 * valprint.c (val_print, value_print): Update to call
12725 apply_ext_lang_val_pretty_printer.
12726 * cp-valprint.c (cp_print_value): Update call to
12727 apply_ext_lang_val_pretty_printer.
12728 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12729 (gdbpy_apply_val_pretty_printer): Renamed from
12730 apply_val_pretty_printer. New arg extlang.
12731 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12733 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12734 extension language API.
12735 * cli/cli-script.c (execute_control_command): Update to call
12736 eval_ext_lang_from_control_command.
12738 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12739 enum ext_lang_bt_status values. Update call to
12740 apply_ext_lang_frame_filter.
12741 (mi_cmd_stack_list_locals): Ditto.
12742 (mi_cmd_stack_list_args): Ditto.
12743 (mi_cmd_stack_list_variables): Ditto.
12744 * mi/mi-main.c: Delete #include "python/python-internal.h".
12745 Add #include "extension.h".
12746 (mi_cmd_list_features): Replace reference to python internal variable
12747 gdb_python_initialized with call to ext_lang_initialized_p.
12749 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12750 Update to use enum ext_lang_frame_args. Update to call
12751 apply_ext_lang_frame_filter.
12752 * python/py-framefilter.c (extract_sym): Update to use enum
12753 ext_lang_bt_status.
12754 (extract_value, py_print_type, py_print_value): Ditto.
12755 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12756 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12757 (py_print_frame): Ditto.
12758 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12759 New arg extlang. Update to use enum ext_lang_bt_status.
12761 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12762 finish_python_initialization. Replace with call to
12763 finish_ext_lang_initialization.
12765 * typeprint.c (do_free_global_table): Update to call
12766 free_ext_lang_type_printers.
12767 (create_global_typedef_table): Update to call
12768 start_ext_lang_type_printers.
12769 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12770 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12771 (type_print_options): Change type of global_printers from "void *"
12772 to "struct ext_lang_type_printers *".
12774 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12775 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12776 (gdbpy_preserve_values): Renamed from preserve_python_values.
12778 (!HAVE_PYTHON, preserve_python_values): Delete.
12780 * utils.c (quit_flag): Delete, moved to extension.c.
12781 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12784 * eval.c: Delete #include "python/python.h".
12785 * main.c: Delete #include "python/python.h".
12787 * defs.h: Update comment.
12789 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12793 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12795 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12798 2014-02-05 Yao Qi <yao@codesourcery.com>
12800 * remote.c (remote_pass_signals): Remove local 'buf' and use
12802 (remote_program_signals): Likewise.
12804 2014-02-05 Yao Qi <yao@codesourcery.com>
12806 * ctf.c: Include "inferior.h" and "gdbthread.h".
12807 (CTF_PID): A new macro.
12808 (ctf_open): Call inferior_appeared and add_thread_silent.
12809 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12810 (ctf_thread_alive): New function.
12811 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12813 2014-02-05 Yao Qi <yao@codesourcery.com>
12817 2013-05-24 Yao Qi <yao@codesourcery.com>
12819 * tracepoint.c (TFILE_PID): Remove.
12820 (tfile_open): Don't add thread and inferior.
12821 (tfile_close): Don't set 'inferior_ptid'. Don't call
12822 exit_inferior_silent.
12823 (tfile_thread_alive): Remove.
12824 (init_tfile_ops): Don't set field 'to_thread_alive' of
12827 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12829 * remote.c (remote_start_remote): Call remote_check_symbols even
12830 if only symbol-file (not file) has been given.
12832 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12834 * gdbarch.sh (skip_entrypoint): New callback.
12835 * gdbarch.c, gdbarch.h: Regenerate.
12836 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12837 * infrun.c (fill_in_stop_func): Likewise.
12838 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12839 (ppc_elfv2_elf_make_msymbol_special): New function.
12840 (ppc_elfv2_skip_entrypoint): Likewise.
12841 (ppc_linux_init_abi): Install them for ELFv2.
12843 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12845 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12846 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12847 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12848 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12849 structures returned in GPRs.
12851 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12853 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12854 offset to the stack parameter list for the ELFv2 ABI.
12856 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12858 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12859 set_gdbarch_convert_from_func_ptr_addr and
12860 set_gdbarch_elf_make_msymbol_special for ELFv1.
12861 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12862 function descriptors on ELFv1.
12863 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12864 set up r12 at function entry.
12866 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12868 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12869 (struct gdbarch_tdep): New member elf_abi.
12871 * rs6000-tdep.c: Include "elf/ppc64.h".
12872 (rs6000_gdbarch_init): Detect ELF ABI version.
12874 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12876 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12877 within a register pair holding a DFP 128-bit value on little-endian.
12878 (ppc64_sysv_abi_return_value_base): Likewise.
12879 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12880 (dfp_pseudo_register_write): Likewise.
12882 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12884 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12885 offset on little-endian when passing _Decimal32.
12886 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12888 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12890 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12891 of the overlapped FP register within the VSX register on little-
12893 (efpr_pseudo_register_write): Likewise.
12895 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12897 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12898 offset on little-endian when passing small structures.
12900 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12902 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12903 (struct ppc64_sysv_argpos): New data structure.
12904 (ppc64_sysv_abi_push_float): Remove.
12905 (ppc64_sysv_abi_push_val): New function.
12906 (ppc64_sysv_abi_push_integer): Likewise.
12907 (ppc64_sysv_abi_push_freg): Likewise.
12908 (ppc64_sysv_abi_push_vreg): Likewise.
12909 (ppc64_sysv_abi_push_param): Likewise.
12910 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12911 (ppc64_sysv_abi_return_value_base): New function.
12912 (ppc64_sysv_abi_return_value): Refactor to use it.
12914 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12916 * NEWS: Document new target powerpc64le-*-linux*.
12918 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12920 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12921 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12923 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12924 register set used in ELF core dumps. Add floating-point register set.
12926 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12928 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12929 dwarf2_to_gdb[] table using symbolic constants. Adjust
12930 penultimate entry from number representing the PC register
12931 to symbolic constant representing the MDR register. Add
12932 constant for the PC register to the end of the table.
12934 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12936 * bsd-kvm.c: Include <sys/param.h>
12938 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12940 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12942 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12944 * ada-lang.h (clear_ada_sym_cache): Delete.
12946 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12948 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12950 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12952 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12953 the sigreturn register save area only if the syscall is
12956 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12958 * valops.c (value_slice): Minor reformatting.
12960 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12962 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12964 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12966 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12967 New static globals.
12968 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12969 (ada_ignore_descriptive_types_p): New static global.
12970 (find_parallel_type_by_descriptive_type): Return immediately
12971 if ada_ignore_descriptive_types_p is set.
12972 (_initialize_ada_language): Register new commands "maintenance
12973 set ada", "maintenance show ada", "maintenance set ada
12974 ignore-descriptive-types" and "maintenance show ada
12975 ignore-descriptive-types".
12976 * NEWS: Add entry for new "maint ada set/show
12977 ignore-descriptive-types" commands.
12979 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12981 * record-btrace.c (record_btrace_close): Call btrace_teardown
12984 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12986 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12989 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12991 * ada-typeprint (type_is_full_subrange_of_target_type):
12993 (print_range): Add parameter bounds_prefered_p. If not set,
12994 try printing range types using the name of their base type.
12995 (print_range_type): Add parameter bounds_prefered_p.
12996 Use it in call to print_range.
12997 (print_array_type, ada_print_type): Update calls to print_range
12998 and print_range_type.
13000 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13002 * ada-typeprint.c (print_array_type, print_choices, print_range)
13003 (print_range_bound, print_dynamic_range_bound, print_range_type):
13004 Remove declaration.
13006 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13008 * ada-typeprint.c (print_range): Add missing empty line
13009 after local declaration.
13011 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13013 * ada-valprint.c (print_optional_low_bound): Get index_type's
13014 target type for as long as it is a TYPE_CODE_RANGE.
13016 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13018 * procfs.c (procfs_make_note_section): Remove assertion and
13019 associated comment.
13021 2014-01-24 Yao Qi <yao@codesourcery.com>
13023 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13024 * corelow.c (get_core_siginfo): Likewise.
13026 2014-01-24 Yao Qi <yao@codesourcery.com>
13028 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13029 ULONGEST. Don't check 'len' is negative.
13030 (remote_write_bytes): Change type of 'len' to ULONGEST.
13032 2014-01-23 Tom Tromey <tromey@redhat.com>
13035 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13036 Handle exception from frame.block.
13037 (FrameVars.fetch_frame_locals): Likewise.
13039 2014-01-23 Tom Tromey <tromey@redhat.com>
13042 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13043 on a NULL pointer. Move "goto error" to correct place.
13045 2014-01-23 Tom Tromey <tromey@redhat.com>
13048 * python/py-framefilter.c (apply_frame_filter): Call
13049 ensure_python_env after computing gdbarch.
13051 2014-01-23 Yao Qi <yao@codesourcery.com>
13053 * target.c (raw_memory_xfer_partial): Change argument type
13054 from void * to gdb_byte *.
13055 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13057 2014-01-22 Doug Evans <dje@google.com>
13059 New gdbserver option --debug-format=timestamp.
13060 * NEWS: Mention it.
13062 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13064 * syscalls/s390x-linux.xml: New file.
13065 * syscalls/s390-linux.xml: New file.
13066 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13067 (XML_SYSCALL_FILENAME_S390X): Likewise.
13068 (op_svc): New enum value for SVC opcode.
13069 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13070 (s390_linux_get_syscall_number): New function.
13071 (s390_gdbarch_init): Register '*get_syscall_number' and the
13072 syscall xml file name.
13073 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13074 "s390-linux.xml" and "s390x-linux.xml".
13075 * NEWS: Announce new feature.
13077 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13079 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13081 2014-01-22 Pedro Alves <palves@redhat.com>
13083 * xtensa-config.c: Include defs.h.
13085 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13087 * common/common-utils.h: Add "ARI:" comment beside __func__
13090 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13092 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13093 documentation a bit.
13095 2014-01-21 Roland McGrath <mcgrathr@google.com>
13097 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13098 * configure: Regenerate.
13099 * aclocal.m4: Regenerate.
13100 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13101 New substituted variables.
13102 (install-strip): New target.
13103 (INSTALL_SCRIPT): New substituted variable.
13104 (FLAGS_TO_PASS): Add it.
13105 (install-only): Use $(INSTALL_SCRIPT) rather than
13106 $(INSTALL_PROGRAM) for gcore.
13108 2014-01-20 Tom Tromey <tromey@redhat.com>
13110 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13113 2014-01-20 Tom Tromey <tromey@redhat.com>
13115 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13116 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13117 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13118 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13119 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13120 (struct cmd_list_element) <flags>: Remove.
13121 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13122 doc_allocated>: New fields.
13123 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13125 * maint.c (maintenance_do_deprecate): Update.
13126 * top.c (execute_command): Update.
13128 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13130 * xtensa-linux-nat.c: Include asm/ptrace.h.
13132 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13134 * Makefile.in (SFILES): Add d-support.c.
13135 (COMMON_OBS): Add d-support.o.
13136 * d-lang.h (d_parse_symbol): Add comment, now defined in
13138 * d-lang.c (parse_call_convention)
13139 (parse_attributes, parse_function_types)
13140 (parse_function_args, parse_type, parse_identifier)
13141 (call_convention_p, d_parse_symbol): Move functions to ...
13142 * d-support.c: ... New file.
13144 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13146 * d-lang.h (d_parse_symbol): Add declaration.
13147 * d-lang.c (extract_identifiers)
13148 (extract_type_info): Remove functions.
13149 (parse_call_convention, parse_attributes)
13150 (parse_function_types, parse_function_args)
13151 (parse_type, parse_identifier, call_convention_p)
13152 (d_parse_symbol): New functions.
13153 (d_demangle): Use d_parse_symbol to demangle D symbols.
13155 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13157 * d-lang.h (struct builtin_d_type): New data type.
13158 (builtin_d_type): Add declaration.
13159 * d-lang.c (d_language_arch_info, build_d_types)
13160 (builtin_d_type): New functions.
13161 (enum d_primitive_types): New data type.
13162 (d_language_defn): Change c_language_arch_info to
13163 d_language_arch_info.
13164 (d_type_data): New static variable.
13165 (_initialize_d_language): Initialize d_type_data.
13167 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13169 * d-lang.h (d_main_name): Add declaration.
13170 * d-lang.c (d_main_name): New function.
13171 * symtab.c (find_main_name): Add call to d_main_name.
13173 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13175 * d-lang.c (d_language_defn): Change macro_expansion_c to
13176 macro_expansion_no.
13178 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13180 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13182 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13184 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13185 gdb_exception" declaration.
13186 * remote.c (getpkt_or_notif_sane): Likewise.
13188 2014-01-17 Doug Evans <dje@google.com>
13190 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13191 function, contents of dirnames_to_char_ptr_vec_append moved here.
13192 (delim_string_to_char_ptr_vec): New function.
13193 (dirnames_to_char_ptr_vec_append): Rewrite.
13194 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13196 2014-01-17 Doug Evans <dje@google.com>
13198 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13200 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13201 #include "common-utils.h".
13202 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13203 * common/vec.h (VEC_ASSERT_PASS): Update.
13204 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13205 (MACH_CHECK_ERROR): Update.
13207 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13209 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13211 * gdbarch.h: Regenerate.
13213 2014-01-16 Tom Tromey <tromey@redhat.com>
13215 * value.c (struct value) <regnum>: Move earlier.
13217 2014-01-16 Tom Tromey <tromey@redhat.com>
13219 * remote.c (extended_remote_create_inferior): Rename from
13220 extended_remote_create_inferior_1. Add "ops" argument. Remove
13221 old implementation.
13223 2014-01-16 Pedro Alves <palves@redhat.com>
13225 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13226 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13229 2014-01-16 Doug Evans <dje@google.com>
13231 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13233 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13235 * btrace.h (btrace_thread_flag): New.
13236 (struct btrace_thread_info) <flags>: New.
13237 * record-btrace.c (record_btrace_resume_thread)
13238 (record_btrace_find_thread_to_move, btrace_step_no_history)
13239 (btrace_step_stopped, record_btrace_start_replaying)
13240 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13241 (record_btrace_find_resume_thread): New.
13242 (record_btrace_resume, record_btrace_wait): Extend.
13243 (record_btrace_can_execute_reverse): New.
13244 (record_btrace_open): Fail in non-stop mode.
13245 (record_btrace_set_replay): Split into this, ...
13246 (record_btrace_stop_replaying): ... this, ...
13247 (record_btrace_clear_histories): ... and this.
13248 (init_record_btrace_ops): Init to_can_execute_reverse.
13249 * NEWS: Announce it.
13251 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13253 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13254 (forward_target_decr_pc_after_break)
13255 (target_decr_pc_after_break): New.
13256 * target.c (forward_target_decr_pc_after_break)
13257 (target_decr_pc_after_break): New.
13258 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13259 instead of gdbarch_decr_pc_after_break.
13260 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13261 instead of gdbarch_decr_pc_after_break.
13262 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13263 instead of gdbarch_decr_pc_after_break.
13264 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13265 instead of gdbarch_decr_pc_after_break.
13266 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13267 instead of gdbarch_decr_pc_after_break.
13268 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13269 instead of gdbarch_decr_pc_after_break.
13271 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13273 * btrace.c: Include regcache.h.
13274 (btrace_add_pc): New.
13275 (btrace_enable): Call btrace_add_pc.
13276 (btrace_is_empty): New.
13277 * btrace.h (btrace_is_empty): New.
13278 * record-btrace.c (require_btrace, record_btrace_info): Call
13281 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13283 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13284 Support delta reads.
13285 (linux_disable_btrace): Change return type.
13286 * common/linux-btrace.h (linux_read_btrace): Change parameters
13287 and return type to allow error reporting. Update users.
13288 (linux_disable_btrace): Change return type. Update users.
13289 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13291 (btrace_error): New.
13292 (btrace_block) <begin>: Comment on BEGIN == 0.
13293 * btrace.c (btrace_compute_ftrace): Start from the end of
13295 (btrace_stitch_trace, btrace_clear_history): New.
13296 (btrace_fetch): Read delta trace, return if replaying.
13297 (btrace_clear): Move clear history code to btrace_clear_history.
13298 (parse_xml_btrace): Throw an error if parsing failed.
13299 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13300 and return type to allow error reporting.
13301 (target_read_btrace): Change parameters and return type to allow
13303 * target.c (target_read_btrace): Update.
13304 * remote.c (remote_read_btrace): Support delta reads. Pass
13306 * NEWS: Announce it.
13308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13310 * record.h (record_btrace_frame_unwind)
13311 (record_btrace_tailcall_frame_unwind): New declarations.
13312 * dwarf2-frame: Include record.h
13313 (dwarf2_frame_cfa): Throw an error for btrace frames.
13314 * record-btrace.c: Include hashtab.h.
13315 (btrace_get_bfun_name): New.
13316 (btrace_call_history): Call btrace_get_bfun_name.
13317 (struct btrace_frame_cache): New.
13319 (bfcache_hash, bfcache_eq, bfcache_new): New.
13320 (btrace_get_frame_function): New.
13321 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13322 (record_btrace_frame_this_id): Compute own id.
13323 (record_btrace_frame_prev_register): Provide PC, throw_error
13324 for all other registers.
13325 (record_btrace_frame_sniffer): Detect btrace frames.
13326 (record_btrace_tailcall_frame_sniffer): New.
13327 (record_btrace_frame_dealloc_cache): New.
13328 (record_btrace_frame_unwind): Add new functions.
13329 (record_btrace_tailcall_frame_unwind): New.
13330 (_initialize_record_btrace): Allocate cache.
13331 * btrace.c (btrace_clear): Call reinit_frame_cache.
13332 * NEWS: Announce it.
13334 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13336 * record-btrace.c (record_btrace_set_replay)
13337 (record_btrace_goto_begin, record_btrace_goto_end)
13338 (record_btrace_goto): New.
13339 (init_record_btrace_ops): Initialize them.
13340 * NEWS: Announce it.
13342 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13344 * record-btrace.c (record_btrace_find_new_threads)
13345 (record_btrace_thread_alive): New.
13346 (init_record_btrace_ops): Initialize to_find_new_threads and
13349 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13351 * record-btrace.c (record_btrace_resume): New.
13352 (record_btrace_wait): New.
13353 (init_record_btrace_ops): Initialize to_wait and to_resume.
13355 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13357 * record-btrace.c (record_btrace_xfer_partial)
13358 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13359 (record_btrace_allow_memory_access): New.
13360 (init_record_btrace_ops): Initialize new methods.
13361 * target.c (raw_memory_xfer_partial): Bail out if target reports
13362 that this memory is not available.
13364 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13366 * target.h (target_ops) <to_insert_breakpoint>
13367 <to_remove_breakpoint>: Add target_ops parameter.
13368 (forward_target_insert_breakpoint): New.
13369 (forward_target_remove_breakpoint): New.
13370 (memory_remove_breakpoint, memory_insert_breakpoint):
13371 Add target_ops parameter.
13372 * target.c (target_insert_breakpoint): Split into this and ...
13373 (forward_target_insert_breakpoint): ... this.
13374 (target_remove_breakpoint): Split into this and ...
13375 (forward_target_remove_breakpoint): ... this.
13376 (debug_to_insert_breakpoint): Add target_ops parameter.
13377 Call forward_target_insert_breakpoint.
13378 (debug_to_remove_breakpoint): Add target_ops parameter.
13379 Call forward_target_remove_breakpoint.
13380 (update_current_target): Do not inherit or default to_insert_breakpoint
13381 and to_remove_breakpoint.
13382 * corelow.c (ignore): Add target_ops parameter.
13383 * exec.c (ignore): Add target_ops parameter.
13384 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13385 Add target_ops parameter.
13386 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13387 Add target_ops parameter.
13388 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13389 Add target_ops parameter.
13390 * record-full.c (record_full_beneath_to_insert_breakpoint)
13391 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13392 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13393 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13394 (record_full_core_remove_breakpoint): Add target_ops parameter.
13396 (record_full_beneath_to_insert_breakpoint_ops)
13397 (record_full_beneath_to_remove_breakpoint_ops)
13398 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13399 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13400 tmp_to_remove_breakpoint_ops,
13401 record_full_beneath_to_insert_breakpoint_ops, and
13402 record_full_beneath_to_remove_breakpoint_ops.
13403 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13404 (m32r_remove_breakpoint): Add target_ops parameter.
13405 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13406 Add target_ops parameter.
13407 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13408 Add target_ops parameter.
13410 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13411 Markus Metzger <markus.t.metzger@intel.com>
13413 * record-btrace.c: Include frame-unwind.h.
13414 (record_btrace_frame_unwind_stop_reason)
13415 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13416 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13418 (init_record_btrace_ops): Install it.
13420 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13422 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13425 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13427 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13430 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13432 * frame-unwind.c: Include target.h.
13433 (frame_unwind_try_unwinder): New function with code from ...
13434 (frame_unwind_find_by_frame): ... here. New variable
13435 unwinder_from_target, call also target_get_unwinder)
13436 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13437 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13438 * target.h (struct target_ops): New fields to_get_unwinder and
13439 to_get_tailcall_unwinder.
13440 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13442 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13444 * record-btrace.c (record_btrace_fetch_registers)
13445 (record_btrace_store_registers)
13446 (record_btrace_to_prepare_to_store): New.
13447 (init_record_btrace_ops): Add the above.
13449 2014-01-16 Tom Tromey <tromey@redhat.com>
13451 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13452 * target.h (struct target_ops) <to_prepare_to_store>: Add
13454 (target_prepare_to_store): Add argument.
13455 * target.c (debug_to_prepare_to_store): Add argument.
13456 (update_current_target): Update.
13457 * remote.c (remote_prepare_to_store): Add 'self' argument.
13458 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13459 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13460 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13461 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13463 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13464 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13465 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13466 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13467 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13469 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13471 * btrace.h (replay) <replay>: New.
13472 (btrace_is_replaying): New.
13473 * btrace.c (btrace_clear): Free replay iterator.
13474 (btrace_is_replaying): New.
13475 * record-btrace.c (record_btrace_is_replaying): New.
13476 (record_btrace_info): Print insn number if replaying.
13477 (record_btrace_insn_history): Start at replay position.
13478 (record_btrace_call_history): Start at replay position.
13479 (init_record_btrace_ops): Init to_record_is_replaying.
13481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13483 * record-btrace.c (record_btrace_insn_history_range): Include
13485 (record_btrace_insn_history_from): Adjust range.
13486 (record_btrace_call_history_range): Include
13488 (record_btrace_call_history_from): Adjust range.
13489 * NEWS: Announce changes.
13491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13493 * record.h (enum record_print_flag)
13494 <record_print_indent_calls>: New.
13495 * record.c (get_call_history_modifiers): Recognize /c modifier.
13496 (_initialize_record): Document /c modifier.
13497 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13498 Reorder fields. Optionally indent the function name. Update
13500 * NEWS: Announce changes.
13502 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13504 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13506 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13508 * btrace.c (ftrace_new_function): Start counting at one.
13509 * record-btrace.c (record_btrace_info): Adjust number of calls
13511 * NEWS: Announce it.
13513 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13515 * record-btrace.c (btrace_call_history_insn_range): Print
13516 insn range as [begin, end].
13518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13520 * btrace.h (struct btrace_func_link): New.
13521 (enum btrace_function_flag): New.
13522 (struct btrace_inst): Rename to ...
13523 (struct btrace_insn): ...this. Update all users.
13524 (struct btrace_func) <ibegin, iend>: Remove.
13525 (struct btrace_func_link): New.
13526 (struct btrace_func): Rename to ...
13527 (struct btrace_function): ...this. Update all users.
13528 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13529 (number, level, flags>: New.
13530 (struct btrace_insn_iterator): Rename to ...
13531 (struct btrace_insn_history): ...this.
13533 (struct btrace_insn_iterator, btrace_call_iterator): New.
13534 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13535 (struct btrace_target_info) <begin, end, level>
13536 <insn_history, call_history>: New.
13537 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13538 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13539 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13540 (btrace_call_number, btrace_call_begin, btrace_call_end)
13541 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13542 (btrace_find_function_by_number, btrace_set_insn_history)
13543 (btrace_set_call_history): New.
13544 * btrace.c (btrace_init_insn_iterator)
13545 (btrace_init_func_iterator, compute_itrace): Remove.
13546 (ftrace_print_function_name, ftrace_print_filename)
13547 (ftrace_skip_file): Change
13548 parameter to const.
13549 (ftrace_init_func): Remove.
13550 (ftrace_debug): Use new btrace_function fields.
13551 (ftrace_function_switched): Also consider gaining and
13552 losing symbol information).
13553 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13554 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13555 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13557 (ftrace_new_function): Move. Remove debug print.
13558 (ftrace_update_lines, ftrace_update_insns): New.
13559 (ftrace_update_function): Check for call, ret, and jump.
13560 (compute_ftrace): Renamed to ...
13561 (btrace_compute_ftrace): ...this. Rewritten to compute call
13563 (btrace_fetch, btrace_clear): Updated.
13564 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13565 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13566 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13567 (btrace_call_number, btrace_call_begin, btrace_call_end)
13568 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13569 (btrace_find_function_by_number, btrace_set_insn_history)
13570 (btrace_set_call_history): New.
13571 * record-btrace.c (require_btrace): Use new btrace thread
13573 (record_btrace_info, btrace_insn_history)
13574 (record_btrace_insn_history, record_btrace_insn_history_range):
13575 Use new btrace thread info fields and new iterator.
13576 (btrace_func_history_src_line): Rename to ...
13577 (btrace_call_history_src_line): ...this. Use new btrace
13578 thread info fields.
13579 (btrace_func_history): Rename to ...
13580 (btrace_call_history): ...this. Use new btrace thread info
13581 fields and new iterator.
13582 (record_btrace_call_history, record_btrace_call_history_range):
13583 Use new btrace thread info fields and new iterator.
13585 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13587 * frame.h (frame_id_build_unavailable_stack_special): New.
13588 * frame.c (frame_id_build_unavailable_stack_special): New.
13590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13592 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13593 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13594 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13596 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13597 (i386_insn_is_jump, i386_jmp_p): New.
13598 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13599 insn_is_jump to gdbarch.
13600 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13601 * gdbarch.h: Regenerated.
13602 * gdbarch.c: Regenerated.
13603 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13604 (default_insn_is_jump): New.
13605 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13606 (default_insn_is_jump): New.
13608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13610 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13612 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13613 (btrace_read_type) <btrace_read_new>: Change to ...
13614 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13618 * common/linux-btrace.c (linux_read_btrace): Free trace from
13619 previous iteration.
13621 2014-01-15 Doug Evans <dje@google.com>
13623 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13626 2014-01-15 Tom Tromey <tromey@redhat.com>
13628 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13629 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13630 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13631 (set_objfile_main_name): New function.
13632 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13633 language_of_main>: New fields.
13634 (set_objfile_main_name): Declare.
13635 * symtab.c (find_main_name): Loop over objfiles to find the main
13637 (set_main_name): Now static.
13638 (get_main_info): Add comment.
13639 * symtab.h (set_main_name): Don't declare.
13641 2014-01-15 Tom Tromey <tromey@redhat.com>
13643 * symtab.c (main_progspace_key): New global.
13644 (struct main_info): New.
13645 (name_of_main, language_of_main): Remove.
13646 (get_main_info, main_info_cleanup): New function.
13647 (set_main_name, main_name, main_language): Use get_main_info.
13648 (_initialize_symtab): Initialize main_progspace_key.
13650 2014-01-15 Tom Tromey <tromey@redhat.com>
13652 * dbxread.c (process_one_symbol): Update.
13653 * dwarf2read.c (read_partial_die): Update.
13654 * symfile.c (set_initial_language): Call main_language.
13655 * symtab.c (language_of_main): Now static.
13656 (set_main_name): Add 'lang' parameter.
13657 (find_main_name): Update.
13658 (main_language): New function.
13659 (symtab_observer_executable_changed): Update.
13660 * symtab.h (set_main_name): Update.
13661 (language_of_main): Remove.
13662 (main_language): Declare.
13664 2014-01-15 Tom Tromey <tromey@redhat.com>
13666 * symfile.c (init_entry_point_info): Use new "initialized" field.
13668 * objfiles.h (struct entry_point) <initialized>: New field.
13669 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13670 (struct objfile) <ei>: ...here. Remove.
13671 * objfiles.c (entry_point_address_query): Update.
13673 2014-01-15 Tom Tromey <tromey@redhat.com>
13675 * objfiles.c (entry_point_address_query): Relocate entry point
13677 (objfile_relocate1): Do not relocate entry point address.
13678 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13679 <the_bfd_section_index>: New field.
13680 * symfile.c (init_entry_point_info): Find the entry point's
13683 2014-01-15 Tom Tromey <tromey@redhat.com>
13685 * solib-frv.c (enable_break): Use entry_point_address_query.
13687 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13689 * NEWS: Add note on improved process record-replay on
13690 arm*-linux* targets.
13692 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13694 * arm-tdep.c (enum arm_record_result): New enum.
13695 (arm_record_unsupported_insn): New function.
13696 (arm_record_coproc_data_proc): Removed.
13697 (thumb2_record_ld_st_multiple): New function.
13698 (thumb2_record_ld_st_dual_ex_tbb): New function.
13699 (thumb2_record_data_proc_sreg_mimm): New function.
13700 (thumb2_record_ps_dest_generic): New function.
13701 (thumb2_record_branch_misc_cntrl): New function.
13702 (thumb2_record_str_single_data): New function.
13703 (thumb2_record_ld_mem_hints): New function.
13704 (thumb2_record_ld_word): New function.
13705 (thumb2_record_lmul_lmla_div): New function.
13706 (thumb2_record_decode_insn_handler): New function.
13707 (decode_insn): Add thumb32 instruction handlers.
13709 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13711 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13712 (struct arm_linux_record_tdep): Declare.
13713 (arm_canonicalize_syscall): New function.
13714 (arm_all_but_pc_registers_record): New function.
13715 (arm_linux_syscall_record): New function.
13716 (arm_linux_init_abi): Add syscall recording constructs.
13717 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13718 decoding. (arm_record_coproc_data_proc): Update arm syscall
13720 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13721 <arm_syscall_record>: New field.
13722 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13725 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13727 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13728 register for push instruction recording.
13730 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13732 * arm-tdep.c (thumb_record_misc): Update to correct logical
13733 error while recording ldm, ldmia and pop instructions.
13735 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13737 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13739 2014-01-15 Pedro Alves <palves@redhat.com>
13741 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13742 (go32_resume, go32_fetch_registers, store_register)
13743 (go32_store_registers, go32_prepare_to_store)
13744 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13745 (go32_create_inferior, go32_can_run, go32_terminal_init)
13746 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13749 2014-01-15 Tom Tromey <tromey@redhat.com>
13751 * target.h (async_callback_ftype): New typedef.
13752 (struct target_ops) <to_async>: Use it.
13754 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13756 * python/py-value.c (get_field_type): Remove unnecessary curly
13757 braces for single-statement if block.
13759 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13761 * python/py-type.c (convert_field): Add missing empty line
13762 after declarations.
13764 2014-01-14 Doug Evans <dje@google.com>
13766 * symfile.h (expand_symtabs_matching): Renamed from
13767 expand_partial_symbol_names. Update prototype.
13768 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13769 * symfile.c (expand_symtabs_matching): Renamed from
13770 expand_partial_symbol_names. New args file_matcher, kind.
13771 Rename arg fun to symbol_matcher.
13772 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13773 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13774 ada_expand_partial_symbol_name.
13775 (ada_make_symbol_completion_list): Update to call
13776 expand_symtabs_matching.
13777 (ada_add_global_exceptions): Call expand_symtabs_matching.
13778 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13779 call map_symbol_filenames.
13780 * symtab.c (sources_info): Update to call map_symbol_filenames.
13781 (search_symbols): Call expand_symtabs_matching.
13782 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13783 (default_make_symbol_completion_list_break_on): Update to call
13784 expand_symtabs_matching.
13785 (make_source_files_completion_list): Update to call
13786 map_symbol_filenames.
13788 2014-01-14 Doug Evans <dje@google.com>
13790 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13791 (expand_symtabs_symbol_matcher_ftype): New typedef.
13792 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13793 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13794 * symfile.c (expand_partial_symbol_names): Update to use
13795 expand_symtabs_symbol_matcher_ftype.
13796 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13797 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13798 Arg name_matcher renamed to symbol_matcher.
13799 * psymtab.c (recursively_search_psymtabs): Update to use
13800 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13802 (expand_symtabs_matching_via_partial): Update to use
13803 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13804 Arg name_matcher renamed to symbol_matcher.
13806 2014-01-14 Doug Evans <dje@google.com>
13808 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13809 (map_partial_symbol_filenames): Ditto.
13810 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13811 (map_partial_symbol_filenames): Ditto.
13812 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13813 (map_partial_symbol_filenames): Ditto.
13814 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13815 (map_partial_symbol_filenames): Ditto.
13816 * symtab.c: Delete #include "psymtab.h".
13818 2014-01-14 Pedro Alves <palves@redhat.com>
13819 Tom Tromey <tromey@redhat.com>
13821 * infrun.c (use_displaced_stepping): Use find_record_target
13822 instead of RECORD_IS_USED.
13823 (adjust_pc_after_break): Use record_full_is_used instead of
13825 * record-btrace.c (record_btrace_open): Call record_preopen
13826 instead of checking RECORD_IS_USED.
13827 * record-full.c (record_full_shortname)
13828 (record_full_core_shortname): New globals.
13829 (record_full_is_used): New function.
13830 (find_full_open): Call record_preopen instead of checking
13832 (init_record_full_ops): Set the target's shortname to
13833 record_full_shortname.
13834 (init_record_full_core_ops): Set the target's shortname to
13835 record_full_core_shortname.
13836 * record-full.h (record_full_is_used): Declare.
13837 * record.c (find_record_target): Make extern.
13838 (record_preopen): New function.
13839 * record.h (RECORD_IS_USED): Delete macro.
13840 (find_record_target, record_preopen): Declare functions.
13842 2014-01-14 Yao Qi <yao@codesourcery.com>
13844 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13845 'len''s type to ULONGEST.
13846 (core_xfer_shared_libraries_aix): Likewise.
13847 * gdbarch.c, gdbarch.h: Regenerated.
13848 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13849 Change type of 'len' to ULONGEST.
13850 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13851 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13853 2014-01-14 Yao Qi <yao@codesourcery.com>
13855 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13856 type of 'len' to ULONGEST.
13857 (linux_xfer_osdata_processgroups): Likewise.
13858 (linux_xfer_osdata_threads): Likewise.
13859 (linux_xfer_osdata_fds): Likewise.
13860 (linux_xfer_osdata_isockets): Likewise.
13861 (linux_xfer_osdata_shm): Likewise.
13862 (linux_xfer_osdata_sem): Likewise.
13863 (linux_xfer_osdata_msg): Likewise.
13864 (linux_common_xfer_osdata): Likewise.
13865 (struct osdata_type) <getter>: Likewise.
13866 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13869 2014-01-14 Yao Qi <yao@codesourcery.com>
13871 * target.h (target_xfer_partial_ftype): Update.
13872 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13874 * aix-thread.c (aix_thread_xfer_partial): Change type of
13875 argument 'len' to ULONGEST.
13876 * auxv.c (procfs_xfer_auxv): Likewise.
13877 (ld_so_xfer_auxv): Likewise.
13878 (memory_xfer_auxv): Likewise.
13879 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13880 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13881 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13882 * corelow.c (core_xfer_partial): Likewise.
13883 * ctf.c (ctf_xfer_partial): Likewise.
13884 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13886 (darwin_read_dyld_info): Likewise.
13887 (darwin_xfer_partial): Likewise.
13888 * exec.c (section_table_xfer_memory_partial): Likewise.
13889 (exec_xfer_partial): Likewise.
13890 * exec.h (section_table_xfer_memory_partial): Update
13892 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13893 instead of plongest.
13894 (gnu_xfer_partial): Likewise.
13895 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13896 (ia64_hpux_xfer_solib_got): Likewise.
13897 (ia64_hpux_xfer_partial): Likewise.
13898 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13899 * inf-ptrace.c (inf_ptrace_xfer_partial):
13900 * inf-ttrace.c (inf_ttrace_xfer_partial):
13901 * linux-nat.c (linux_xfer_siginfo): Likewise.
13902 (linux_nat_xfer_partial): Likewise.
13903 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13904 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13905 * monitor.c (monitor_xfer_memory): Likewise.
13906 (monitor_xfer_partial): Likewise.
13907 * procfs.c (procfs_xfer_partial): Likewise.
13908 * record-full.c (record_full_xfer_partial): Likewise.
13909 (record_full_core_xfer_partial): Likewise.
13910 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13911 instead of plongest.
13912 (gdbsim_xfer_partial): Likewise.
13913 * remote.c (remote_xfer_partial): Likewise.
13914 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13915 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13917 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13918 (rs6000_xfer_shared_libraries): Likewise.
13919 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13920 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13921 (sparc_xfer_partial): Likewise.
13922 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13923 (spu_xfer_partial): Likewise.
13924 * spu-multiarch.c (spu_xfer_partial): Likewise.
13925 * target.c (target_read_live_memory): Likewise.
13926 (memory_xfer_live_readonly_partial): Likewise.
13927 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13928 (target_xfer_partial, default_xfer_partial): Likewise.
13929 (current_xfer_partial): Likewise.
13930 * tracepoint.c (tfile_xfer_partial): Likewise.
13931 * windows-nat.c (windows_xfer_memory): Likewise. Call
13932 pulongest instead of plongest.
13933 (windows_xfer_partial): Likewise.
13934 (windows_xfer_shared_libraries): Likewise.
13936 2014-01-14 Yao Qi <yao@codesourcery.com>
13938 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13939 target_xfer_partial_ftype.
13941 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13945 * valops.c (value_struct_elt_bitpos): New function
13946 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13947 object to 'None' if the field name is an empty string ("").
13948 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13949 attribute to look for a field when 'name' is 'None'.
13950 (get_field_type): New function
13952 2014-01-13 Doug Evans <dje@google.com>
13955 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13956 (try_open_dwop_file): Ditto.
13957 * gdb_bfd.c: #include "vec.h".
13958 (bfdp): New typedef.
13959 (struct gdb_bfd_data): New member included_bfds.
13960 (gdb_bfd_unref): Unref all included bfds.
13961 (gdb_bfd_record_inclusion): New function.
13962 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13964 2014-01-13 Tom Tromey <tromey@redhat.com>
13966 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13968 2014-01-13 Tom Tromey <tromey@redhat.com>
13970 * defs.h (use_windows): Remove.
13971 * gdb.c (main): Update.
13972 * main.c (captured_main, gdb_main): Update.
13973 * main.h (struct captured_main_args) <use_windows>: Remove.
13974 * top.c (use_windows): Remove.
13976 2014-01-13 Tom Tromey <tromey@redhat.com>
13978 * defs.h (deprecated_flush_hook): Remove.
13980 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13983 * linux-thread-db.c (try_thread_db_load): Add parameter
13984 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13985 (try_thread_db_load_from_pdir_1): Move it there from here.
13986 (try_thread_db_load_from_sdir): Update caller.
13987 (try_thread_db_load_from_dir): Move it there from here.
13989 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13991 * regformats/regdat.sh: Always rewrite the register file.
13993 2014-01-13 Pedro Alves <palves@redhat.com>
13995 * Makefile.in (CHECK_HEADERS): New variable.
13996 (check-headers:): New rule.
13998 2014-01-13 Tom Tromey <tromey@redhat.com>
14000 * cli/cli-setshow.c (do_set_command): Update.
14001 * defs.h (deprecated_set_hook): Remove.
14002 * top.c (deprecated_set_hook): Remove.
14004 2014-01-13 Pedro Alves <palves@redhat.com>
14006 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14007 the tracepoint if the PC is a pseudo-register.
14009 2014-01-13 Tom Tromey <tromey@redhat.com>
14011 * defs.h (XCALLOC): Remove.
14012 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14013 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14014 * dwarf2loc.c (allocate_piece_closure): Likewise.
14015 * elfread.c (elf_symfile_segments): Likewise.
14016 (elf_symfile_segments): Likewise.
14017 * gdbtypes.c (copy_type_recursive): Likewise.
14018 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14019 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14020 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14022 * mt-tdep.c (mt_gdbarch_init): Likewise.
14023 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14025 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14026 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14027 * registry.c (registry_alloc_data): Likewise.
14028 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14029 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14030 * serial.c (serial_fdopen_ops): Likewise.
14031 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14033 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14034 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14037 2014-01-13 Tom Tromey <tromey@redhat.com>
14039 * defs.h (XMALLOC): Remove.
14040 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14041 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14042 * cli-out.c (struct ui_out *): Likewise.
14043 * cli/cli-dump.c (add_dump_command): Likewise.
14044 (add_dump_command): Likewise.
14045 * complaints.c (get_complaints): Likewise.
14046 (find_complaint): Likewise.
14047 * dwarf2-frame.c (execute_cfa_program): Likewise.
14048 * dwarf2read.c (abbrev_table_read_table): Likewise.
14049 * gdbarch.sh: Likewise.
14050 * gdbarch.c: Rebuild.
14051 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14052 * interps.c (interp_new): Likewise.
14053 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14054 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14055 * mi/mi-console.c (mi_console_file_new): Likewise.
14056 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14057 * mi/mi-out.c (mi_out_new): Likewise.
14058 * mi/mi-parse.c (mi_parse): Likewise.
14059 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14060 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14061 * observer.c (xalloc_observer_list_node): Likewise.
14062 * regcache.c (regcache_xmalloc_1): Likewise.
14063 * reggroups.c (reggroup_new): Likewise.
14064 (_initialize_reggroup): Likewise.
14065 * registry.c (register_data_with_cleanup): Likewise.
14066 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14067 * ser-base.c (serial_ttystate): Likewise.
14068 * ser-mingw.c (make_pipe_state): Likewise.
14069 * ser-pipe.c (pipe_open): Likewise.
14070 * serial.c (serial_open): Likewise.
14071 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14072 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14073 (tui_alloc_win_info): Likewise.
14074 (tui_add_content_elements): Likewise.
14075 * tui/tui-file.c (tui_file_new): Likewise.
14076 * tui/tui-out.c (tui_out_new): Likewise.
14077 * ui-file.c (mem_file_new): Likewise.
14078 * ui-out.c (push_level): Likewise.
14079 (make_cleanup_ui_out_end): Likewise.
14080 (append_header_to_list): Likewise.
14081 (ui_out_new): Likewise.
14082 * user-regs.c (user_reg_add_builtin): Likewise.
14084 2014-01-13 Tom Tromey <tromey@redhat.com>
14086 * defs.h (XZALLOC): Remove.
14087 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14088 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14089 (get_ada_tasks_inferior_data): Likewise.
14090 * auto-load.c (get_auto_load_pspace_data): Likewise.
14091 * auxv.c (get_auxv_inferior_data): Likewise.
14092 * bfd-target.c (target_bfd_reopen): Likewise.
14093 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14094 (deprecated_insert_raw_breakpoint): Likewise.
14095 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14096 * corelow.c (core_open): Likewise.
14097 * darwin-nat.c (darwin_check_new_threads): Likewise.
14098 (darwin_attach_pid): Likewise.
14099 * dummy-frame.c (dummy_frame_push): Likewise.
14100 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14101 * dwarf2loc.c (allocate_piece_closure): Likewise.
14102 * elfread.c (elf_symfile_segments): Likewise.
14103 * eval.c (ptrmath_type_p): Likewise.
14104 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14105 * gdbtypes.c (alloc_type_arch): Likewise.
14106 (alloc_type_instance): Likewise.
14107 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14108 * inf-child.c (inf_child_can_use_agent): Likewise.
14109 * inflow.c (get_inflow_inferior_data): Likewise.
14110 * infrun.c (save_infcall_suspend_state): Likewise.
14111 * jit.c (jit_reader_load): Likewise.
14112 (get_jit_objfile_data): Likewise.
14113 (get_jit_program_space_data): Likewise.
14114 (jit_object_open_impl): Likewise.
14115 (jit_symtab_open_impl): Likewise.
14116 (jit_block_open_impl): Likewise.
14117 (jit_frame_sniffer): Likewise.
14118 * linux-fork.c (add_fork): Likewise.
14119 * maint.c (make_command_stats_cleanup): Likewise.
14120 * objfiles.c (get_objfile_pspace_data): Likewise.
14121 * opencl-lang.c (struct lval_closure): Likewise.
14122 * osdata.c (osdata_start_osdata): Likewise.
14123 * progspace.c (new_address_space): Likewise.
14124 (add_program_space): Likewise.
14125 * remote-sim.c (get_sim_inferior_data): Likewise.
14126 * sh-tdep.c (sh_gdbarch_init): Likewise.
14127 * skip.c (Ignore): Likewise.
14128 (skip_delete_command): Likewise.
14129 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14130 (library_list_start_library): Likewise.
14131 (solib_aix_current_sos): Likewise.
14132 * solib-darwin.c (get_darwin_info): Likewise.
14133 (darwin_current_sos): Likewise.
14134 * solib-dsbt.c (get_dsbt_info): Likewise.
14135 * solib-ia64-hpux.c (new_so_list): Likewise.
14136 (ia64_hpux_get_solib_linkage_addr): Likewise.
14137 * solib-spu.c (append_ocl_sos): Likewise.
14138 (spu_current_sos): Likewise.
14139 * solib-svr4.c (get_svr4_info): Likewise.
14140 (svr4_keep_data_in_core): Likewise.
14141 (library_list_start_library): Likewise.
14142 (svr4_default_sos): Likewise.
14143 (svr4_read_so_list): Likewise.
14144 * solib-target.c (library_list_start_library): Likewise.
14145 (solib_target_current_sos): Likewise.
14146 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14147 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14148 * symfile.c (default_symfile_segments): Likewise.
14149 * target-descriptions.c (tdesc_data_init): Likewise.
14150 (tdesc_create_reg): Likewise.
14151 (struct tdesc_type *): Likewise.
14152 (tdesc_create_vector): Likewise.
14153 (tdesc_set_struct_size): Likewise.
14154 (struct tdesc_type *): Likewise.
14155 (tdesc_free_feature): Likewise.
14156 (tdesc_create_feature): Likewise.
14157 * windows-nat.c (windows_add_thread): Likewise.
14158 (windows_make_so): Likewise.
14159 * xml-support.c (gdb_xml_body_text): Likewise.
14160 (gdb_xml_create_parser_and_cleanup): Likewise.
14161 (xml_process_xincludes): Likewise.
14162 * xml-syscall.c (allocate_syscalls_info): Likewise.
14163 (syscall_create_syscall_desc): Likewise.
14165 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14167 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14168 function, with code from i386_stap_parse_special_token.
14169 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14170 (i386_stap_parse_special_token): Move code to the two functions
14171 above; simplify it.
14173 2014-01-09 Pedro Alves <palves@redhat.com>
14174 Hui Zhu <hui@codesourcery.com>
14177 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14178 bp_err_string. Don't mark the location shlib_disabled if the
14179 error thrown wasn't a generic or memory error. Catch errors
14180 thrown while inserting breakpoints in overlayed code. Output
14181 error message of software breakpoints.
14182 * remote.c (remote_insert_breakpoint): If this breakpoint has
14183 target-side commands but this stub doesn't support Z0 packets,
14184 throw NOT_SUPPORTED_ERROR error.
14185 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14186 * target.h (target_insert_breakpoint): Extend comment.
14187 (target_insert_hw_breakpoint): Add comment.
14189 2014-01-08 Pedro Alves <palves@redhat.com>
14191 * remote.c (remote_add_thread): Add threads silently if starting
14193 (remote_notice_new_inferior): If in all-stop, and starting up,
14194 don't call notice_new_inferior.
14195 (get_current_thread): New function, factored out from ...
14196 (add_current_inferior_and_thread): ... this. Adjust.
14197 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14198 found any thread, then select the remote's current thread as GDB's
14199 current thread too.
14201 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14203 * NEWS: Create a new section for the next release branch.
14204 Rename the section of the current branch, now that it has
14207 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14209 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14210 * version.in: Bump version to 7.7.50.DATE-cvs.
14212 2014-01-08 Yao Qi <yao@codesourcery.com>
14214 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14215 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14216 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14218 2014-01-08 Yao Qi <yao@codesourcery.com>
14220 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14221 return value of bfd_get_filename to symbol_file_add_from_bfd.
14223 2014-01-08 Pierre Muller <muller@sourceware.org>
14226 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14227 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14228 to prim_record_mininal_symbol_and_info.
14229 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14230 in call to prim_record_minimal_symbol_and_info.
14231 (read_pe_exported_syms): Set index field of section_data.
14233 2014-01-07 Andrew Pinski <apinski@cavium.com>
14235 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14236 * features/aarch64.c: Regenerate.
14238 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14240 * target.c (return_null): Define.
14241 (update_current_target): Use it instead of return_zero for
14242 functions that return a pointer.
14244 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14246 * source.c (add_path): Fix check for duplicated paths in the previously
14249 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14251 * ada-lang.c: Remove duplicated include statements.
14252 * alphabsd-nat.c: Ditto.
14253 * amd64-darwin-tdep.c: Ditto.
14254 * amd64fbsd-nat.c: Ditto.
14255 * auto-load.c: Ditto.
14257 * breakpoint.c: Ditto.
14258 * dbxread.c: Ditto.
14259 * fork-child.c: Ditto.
14260 * gdb_usleep.c: Ditto.
14261 * i386-darwin-tdep.c: Ditto.
14262 * i386fbsd-nat.c: Ditto.
14264 * inferior.c: Ditto.
14265 * jv-lang.c: Ditto.
14266 * linux-nat.c: Ditto.
14267 * linux-tdep.c: Ditto.
14268 * m68kbsd-nat.c: Ditto.
14269 * m68klinux-nat.c: Ditto.
14270 * microblaze-tdep.c: Ditto.
14271 * mips-linux-tdep.c: Ditto.
14272 * mn10300-tdep.c: Ditto.
14273 * nto-tdep.c: Ditto.
14274 * opencl-lang.c: Ditto.
14276 * printcmd.c: Ditto.
14277 * regcache.c: Ditto.
14278 * remote-m32r-sdi.c: Ditto.
14280 * symfile.c: Ditto.
14282 * tilegx-linux-nat.c: Ditto.
14283 * tilegx-tdep.c: Ditto.
14284 * tracepoint.c: Ditto.
14286 * vaxbsd-nat.c: Ditto.
14287 * windows-nat.c: Ditto.
14288 * xtensa-tdep.c: Ditto.
14290 2014-01-07 Yao Qi <yao@codesourcery.com>
14292 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14294 2014-01-07 Yao Qi <yao@codesourcery.com>
14295 Joel Brobecker <brobecker@adacore.com>
14297 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14298 (pdc_write_regs): Likewise.
14299 (fetch_regs_kernel_thread): Likewise.
14300 (store_regs_kernel_thread): Likewise.
14302 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14304 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14305 tagged type objects to their actual type.
14307 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14309 * ada-valprint.c (print_field_values): Add "language" parameter.
14310 Update calls to print_field_values and print_variant_part.
14311 Pass new parameter "language" in call to val_print instead
14312 of "current_language". Replace call to ada_val_print by call
14314 (print_variant_part): Add "language" parameter.
14315 (ada_val_print_struct_union): Update call to print_field_values.
14317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14319 * ada-valprint.c (ui_memcpy): Delete.
14320 (ada_print_floating): Update documentation. Add empty line
14321 between between function documentation and implementation.
14322 Delete variable "buffer". Use ui_file_xstrdup in place of
14323 ui_file_put. Minor adjustments following this change.
14325 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14327 * ada-valprint.c (ada_val_print_string): New function,
14328 extracted from ada_val_print_array.
14329 (ada_val_print_array): Replace extracted code by call
14330 to ada_val_print_string followed by a return. Move
14331 "else" branch to the function's top block.
14333 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14335 * ada-valprint.c (ada_val_print_array): Move implementation
14336 down. Rename parameter "offset" and "val" into "offset_aligned"
14337 and "original_value" respectively. Add parameter "offset".
14339 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14341 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14342 re-organizing the code. Change the "???" message printed
14343 when target type is a TYPE_CODE_UNDEF into
14344 "<ref to undefined type>".
14346 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14348 * ada-valprint.c (print_record): Delete, implementation inlined...
14349 (ada_val_print_struct_union): ... here. Remove call to
14350 ada_check_typedef in inlined implementation.
14352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14354 * ada-valprint.c (ada_val_print_gnat_array): New function,
14355 extracted from ada_val_print_1;
14356 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14357 (ada_val_print_flt, ada_val_print_struct_union)
14358 (ada_val_print_ref): Likewise.
14359 (ada_val_print_1): Delete variables i and elttype.
14360 Replace extracted-out code by call to corresponding
14363 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14365 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14367 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14369 * ada-valprint.c (ada_val_print_1): Replace calls to
14370 ada_val_print_1 by calls to val_print.
14372 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14374 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14375 Update calls to self accordingly. Replace calls to c_val_print
14376 by calls to val_print.
14378 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14380 * ada-valprint.c (print_record): Delete declaration.
14381 (adjust_type_signedness, ada_val_print_1): Likewise.
14382 (ada_val_print): Move function implementation down.
14383 (print_variant_part, print_field_values, print_record):
14384 Move function implementation up.
14386 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14388 * python/py-type.c (typy_get_name): New function.
14389 (type_object_getset): Add entry for attribute "name".
14390 * NEWS: Add entry mentioning this new attribute.
14392 2014-01-07 Yao Qi <yao@codesourcery.com>
14394 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14397 2014-01-07 Yao Qi <yao@codesourcery.com>
14399 * gnu-nat.c (info_port_rights): Add qualifier const to
14402 2014-01-07 Yao Qi <yao@codesourcery.com>
14404 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14406 2014-01-07 Yao Qi <yao@codesourcery.com>
14408 * gnu-nat.c (make_inf) Update declaration.
14409 (make_inf): Make it static.
14410 (inf_set_traced): Likewise.
14411 (inf_port_to_thread, inf_task_died_status): Likewise.
14413 2014-01-07 Yao Qi <yao@codesourcery.com>
14415 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14417 2014-01-07 Yao Qi <yao@codesourcery.com>
14419 * gnu-nat.c (_initialize_gnu_nat): Declare.
14421 2014-01-07 Yao Qi <yao@codesourcery.com>
14423 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14425 (struct gdbarch_info) <byte_order>: Change type to
14427 <byte_order_for_code>: Likewise.
14428 * gdbarch.c, gdbarch.h: Regenerated.
14430 2014-01-06 Sasha Smundak <asmundak@google.com>
14432 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14434 2014-01-06 Tom Tromey <tromey@redhat.com>
14436 * doublest.c (convert_doublest_to_floatformat): Use const, not
14438 * somread.c (som_symtab_read): Likewise.
14440 2014-01-07 Hui Zhu <hui@codesourcery.com>
14442 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14443 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14444 (gdb_bfd_fopen): Ditto.
14445 (gdb_bfd_openr): Ditto.
14446 (gdb_bfd_openw): Ditto.
14447 (gdb_bfd_openr_iovec): Ditto.
14448 (gdb_bfd_fdopenr): Ditto.
14449 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14450 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14452 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14454 * symfile-mem.c (symbol_file_add_from_memory): Removed
14455 gdb_bfd_stash_filename.
14457 2014-01-03 Doug Evans <dje@google.com>
14459 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14462 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14464 Update year range in copyright notice of all files.
14466 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14468 * top.c (print_gdb_version): Set copyright year to 2014.
14470 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14472 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14474 For older changes see ChangeLog-2013.
14480 version-control: never