1 2014-10-24 Don Breazeal <donb@codesourcery.com>
3 * infrun.c (follow_fork_inferior): Update fork message printing
4 to use target_terminal_ours_for_output instead of
5 target_terminal_ours, to use _() for all format strings, to print
6 "vfork" instead of "fork" for vforks, and to add a detach message.
7 (handle_vfork_child_exec_or_exit): Update message printing to use
8 target_terminal_ours_for_output instead of target_terminal_ours, to
9 use _() for all format strings, and to fix some formatting.
11 2014-10-24 Pedro Alves <palves@redhat.com>
13 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
14 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
15 * config/vax/vax.mh: Delete.
16 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
17 obsolete configurations section.
18 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
19 * vax-nat.c: Delete file.
21 2014-10-24 Pedro Alves <palves@redhat.com>
23 * NEWS (Removed targets): Add OS/arch column.
25 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
27 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
28 on the arg type of a constructor only if it is of reference type.
30 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
32 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
33 accessors and constants from nios2 opcodes update.
34 (nios2_get_next_pc): Likewise.
36 2014-10-19 Doug Evans <xdje42@gmail.com>
38 * gdbthread.h (set_running): Fix comment.
39 (set_executing, finish_thread_state): Fix comment.
41 2014-10-18 Doug Evans <xdje42@gmail.com>
43 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
45 2014-10-17 Doug Evans <dje@google.com>
47 * NEWS: Mention new event gdb.clear_objfiles.
48 * python/py-event.h (emit_clear_objfiles_event): Clear
49 * python/py-events.h (events_object): New member clear_objfiles.
50 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
52 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
53 emit clear_objfiles event.
54 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
56 (emit_clear_objfiles_event): New function.
57 (clear_objfiles): New event.
58 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
60 * python/python.c (_initialize_python): Call
61 gdbpy_initialize_clear_objfiles_event.
63 2014-10-17 Doug Evans <dje@google.com>
65 * NEWS: Mention new gdb.Objfile.progspace attribute.
66 * python/py-objfile.c (objfpy_get_progspace): New function.
67 (objfile_getset): New entry for "progspace".
69 2014-10-17 Pedro Alves <palves@redhat.com>
72 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
73 returns a copy of the input.
74 (run_command_1, continue_command, step_1, jump_command)
75 (signal_command, until_command, advance_command, finish_command)
76 (attach_command): Adjust and install a cleanup to free the
79 2014-10-17 Pedro Alves <palves@redhat.com>
82 * infcmd.c (continue_1): If continuing all threads in the
83 foreground, make sure the inferior's terminal settings are put in
86 2014-10-17 Pedro Alves <palves@redhat.com>
89 * annotate.c (annotate_breakpoints_invalid): Use
90 target_terminal_our_for_output instead of target_terminal_ours.
91 Give back the terminal to the target.
92 (annotate_frames_invalid): Likewise.
94 2014-10-17 Pedro Alves <palves@redhat.com>
96 * target.c (enum terminal_state): New enum.
97 (terminal_state): New global.
98 (target_terminal_init): New function.
99 (target_terminal_inferior): Skip if inferior already owns the
101 (target_terminal_ours, target_terminal_ours_for_output): New
103 * target.h (target_terminal_init): Convert to function prototype.
104 (target_terminal_ours_for_output): Convert to function prototype
106 (target_terminal_ours): Convert to function prototype and tweak
108 * windows-nat.c (do_initial_windows_stuff): Call
109 target_terminal_init instead of child_terminal_init_with_pgrp.
111 2014-10-17 Pedro Alves <palves@redhat.com>
113 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
114 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
115 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
117 * NEWS: Mention that support for alpha*-*-osf* has been removed.
118 * ada-lang.h [__alpha__ && __osf__]
119 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
120 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
121 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
123 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
125 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
126 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
127 * configure: Regenerate.
128 * configure.ac: Remove references to osf.
129 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
130 section. Remove all other references to osf.
131 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
132 Remove all other references to osf.
133 * dec-thread.c: Delete file.
134 * defs.h (GDB_OSABI_OSF1): Delete.
135 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
137 * osabi.c (gdb_osabi_names): Delete "OSF/1".
138 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
140 (unconditionally_kill_inferior)
141 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
142 * solib-osf.c: Delete file.
144 2014-10-17 Pedro Alves <palves@redhat.com>
146 * remote.c (clear_threads_listing_context): Move higher up, out of
147 the HAVE_LIBEXPAT guard.
149 2014-10-16 Tristan Gingold <gingold@adacore.com>
151 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
152 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
155 2014-10-15 Pedro Alves <palves@redhat.com>
157 * dec-thread.c (dec_thread_count_gdb_threads)
158 (dec_thread_add_gdb_thread): Delete.
159 (dec_thread_update_thread_list): Delete.
160 (dec_thread_find_new_threads): Rename to ...
161 (dec_thread_update_thread_list): ... this. Delete GDB-size
162 threads that are no longer found in dec_thread_list.
163 (resync_thread_list): Delete.
164 (dec_thread_wait): Call dec_thread_update_thread_list instead of
167 2014-10-15 Pedro Alves <palves@redhat.com>
169 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
170 * remote.c (remote_update_thread_list): Skip calling prune_threads
171 if any thread listing method is supported, and instead walk over
172 the set of remote threads listed, deleting those that are not
173 found in GDB's thread list.
175 2014-10-15 Pedro Alves <palves@redhat.com>
177 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
178 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
179 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
180 (bsd_uthread_target): Adjust.
181 * corelow.c (core_open): Adjust.
182 * dec-thread.c (dec_thread_find_new_threads): Update comment.
183 (dec_thread_update_thread_list): New function.
184 (init_dec_thread_ops): Adjust.
185 * gdbthread.h (prune_threads): New declaration.
186 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
187 (thread_db_update_thread_list): ... this. Call prune_threads.
188 (init_thread_db_ops): Adjust.
189 * nto-procfs.c (procfs_find_new_threads): Rename to ...
190 (procfs_update_thread_list): ... this. Call prune_threads.
191 (procfs_attach, procfs_create_inferior, init_procfs_targets):
193 * obsd-nat.c (obsd_find_new_threads): Rename to ...
194 (obsd_update_thread_list): ... this. Call prune_threads.
195 (obsd_add_target): Adjust.
196 * procfs.c (procfs_target): Adjust.
197 (procfs_notice_thread): Update comment.
198 (procfs_find_new_threads): Rename to ...
199 (procfs_update_thread_list): ... this. Call prune_threads.
200 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
202 (ravenscar_wait): Adjust.
203 (ravenscar_find_new_threads): Rename to ...
204 (ravenscar_update_thread_list): ... this. Call prune_threads.
205 (init_ravenscar_thread_ops): Adjust.
206 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
207 (record_btrace_update_thread_list): ... this. Adjust comment.
208 (init_record_btrace_ops): Adjust.
209 * remote.c (remote_threads_info): Rename to ...
210 (remote_update_thread_list): ... this. Call prune_threads.
211 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
213 * sol-thread.c (check_for_thread_db): Adjust.
214 (sol_find_new_threads_callback): Rename to ...
215 (sol_update_thread_list_callback): ... this.
216 (sol_find_new_threads): Rename to ...
217 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
218 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
219 * target-delegates.c: Regenerate.
220 * target.c (target_find_new_threads): Rename to ...
221 (target_update_thread_list): ... this.
222 * target.h (struct target_ops): Rename to_find_new_threads field
223 to to_update_thread_list.
224 (target_find_new_threads): Rename to ...
225 (target_update_thread_list): ... this.
226 * thread.c (prune_threads): Make extern.
227 (update_thread_list): Adjust.
229 2014-10-15 Pedro Alves <palves@redhat.com>
231 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
232 Add describing comment. Return -1 if the qL packet is not
234 (struct thread_item, thread_item_t): Move higher up in
235 the file. Add comments.
236 (struct threads_parsing_context): Move higher up in
237 the file, add comments, and remote to ...
238 (struct threads_listing_context): ... this.
239 (remote_newthread_step): Don't add the thread to GDB's thread
240 database here. Instead push it to the thread_listing_context
242 (remote_find_new_threads): Rename to ...
243 (remote_get_threads_with_ql): ... this. Add target_ops and
244 targets_listing_context parameters. Pass down context.
245 (start_thread): Adjust.
246 (clear_threads_parsing_context): Rename to ...
247 (clear_threads_listing_context): ... this.
248 (remote_get_threads_with_qxfer): New, with parts salvaged from old
250 (remote_get_threads_with_qthreadinfo): Ditto.
251 (remote_threads_info): Reimplement.
253 2014-10-15 Pedro Alves <palves@redhat.com>
255 * infrun.c (resume): Don't force displaced-stepping for all
256 single-steps on software single-stepping archs.
258 2014-10-15 Pedro Alves <palves@redhat.com>
260 * breakpoint.c (single_step_breakpoints): Delete global.
261 (insert_single_step_breakpoint): Adjust to store the breakpoint
262 pointer in the current thread.
263 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
264 (cancel_single_step_breakpoints): Delete functions.
265 (breakpoint_has_location_inserted_here): Make extern.
266 (single_step_breakpoint_inserted_here_p): Adjust to walk the
268 * breakpoint.h (breakpoint_has_location_inserted_here): New
270 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
271 (cancel_single_step_breakpoints): Remove declarations.
272 * gdbthread.h (struct thread_control_state)
273 <single_step_breakpoints>: New field.
274 (delete_single_step_breakpoints)
275 (thread_has_single_step_breakpoints_set)
276 (thread_has_single_step_breakpoint_here): New declarations.
277 * infrun.c (follow_exec): Also clear the single-step breakpoints.
278 (singlestep_breakpoints_inserted_p, singlestep_ptid)
279 (singlestep_pc): Delete globals.
280 (infrun_thread_ptid_changed): Remove references to removed
282 (resume_cleanups): Delete the current thread's single-step
284 (maybe_software_singlestep): Remove references to removed globals.
285 (resume): Adjust to use thread_has_single_step_breakpoints_set and
286 delete_single_step_breakpoints.
287 (init_wait_for_inferior): Remove references to removed globals.
288 (delete_thread_infrun_breakpoints): Delete the thread's
289 single-step breakpoints too.
290 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
291 single-step breakpoints here.
292 (delete_stopped_threads_single_step_breakpoints): New function.
293 (adjust_pc_after_break): Adjust to use
294 thread_has_single_step_breakpoints_set.
295 (handle_inferior_event): Remove references to removed globals.
296 Use delete_stopped_threads_single_step_breakpoints.
297 (handle_signal_stop): Adjust to per-thread single-step
298 breakpoints. Swap test order to do cheaper tests first.
299 (switch_back_to_stepped_thread): Extend debug output. Remove
300 references to removed globals.
301 * record-full.c (record_full_wait_1): Adjust to per-thread
302 single-step breakpoints.
303 * thread.c (delete_single_step_breakpoints)
304 (thread_has_single_step_breakpoints_set)
305 (thread_has_single_step_breakpoint_here): New functions.
306 (clear_thread_inferior_resources): Also delete the thread's
307 single-step breakpoints.
309 2014-10-15 Pedro Alves <palves@redhat.com>
311 * thread.c (delete_thread_breakpoint): New function.
312 (delete_step_resume_breakpoint)
313 (delete_exception_resume_breakpoint): Use it.
314 (delete_at_next_stop): New function.
315 (clear_thread_inferior_resources): Use delete_at_next_stop.
317 2014-10-15 Pedro Alves <palves@redhat.com>
319 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
320 (breakpoint_inserted_here_p): ... here. Remove special case for
321 software single-step breakpoints.
322 (find_non_raw_software_breakpoint_inserted_here): Inline ...
323 (software_breakpoint_inserted_here_p): ... here. Remove special
324 case for software single-step breakpoints.
325 (bp_target_info_copy_insertion_state)
326 (deprecated_insert_raw_breakpoint)
327 (deprecated_remove_raw_breakpoint): Delete functions.
328 * breakpoint.h (deprecated_insert_raw_breakpoint)
329 (deprecated_remove_raw_breakpoint): Remove declarations.
331 2014-10-15 Pedro Alves <palves@redhat.com>
334 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
335 Delete array globals.
336 (single_step_breakpoints): New global.
337 (breakpoint_xfer_memory): Remove special handling for single-step
339 (update_breakpoints_after_exec): Delete bp_single_step
341 (detach_breakpoints): Remove special handling for single-step
343 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
344 (bpstat_stop_status): Add comment.
345 (bpstat_what, bptype_string, print_one_breakpoint_location)
346 (adjust_breakpoint_address, init_bp_location): Handle
348 (new_single_step_breakpoint): New function.
349 (set_momentary_breakpoint, bkpt_remove_location): Remove special
350 handling for single-step breakpoints.
351 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
352 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
354 (detach_single_step_breakpoints, find_single_step_breakpoint):
356 (breakpoint_has_location_inserted_here): New function.
357 (single_step_breakpoint_inserted_here_p): Rewrite.
358 * breakpoint.h: Remove FIXME.
359 (enum bptype) <bp_single_step>: New enum value.
360 (insert_single_step_breakpoint): Update comment.
361 * infrun.c (resume_cleanups)
362 (delete_step_thread_step_resume_breakpoint): Remove single-step
364 (fetch_inferior_event): Install a cleanup that removes infrun
366 (switch_back_to_stepped_thread) <expect thread advanced also>:
367 Clear step-over info.
369 2014-10-15 Pedro Alves <palves@redhat.com>
371 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
372 (delete_thread_infrun_breakpoints): New function, with parts
373 salvaged from delete_step_resume_breakpoint_callback.
374 (delete_step_thread_step_resume_breakpoint): Delete.
375 (for_each_just_stopped_thread_callback_func): New typedef.
376 (for_each_just_stopped_thread): New function.
377 (delete_just_stopped_threads_infrun_breakpoints): New function.
378 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
379 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
381 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
383 2014-10-15 Pedro Alves <palves@redhat.com>
385 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
386 trying to step past a non-steppable watchpoint.
387 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
389 * infrun.c (struct step_over_info): Add new field
390 'nonsteppable_watchpoint_p' and adjust comments.
391 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
393 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
394 (stepping_past_nonsteppable_watchpoint): New function.
395 (step_over_info_valid_p): Also return true if stepping past a
396 nonsteppable watchpoint.
397 (proceed): Adjust call to set_step_over_info. Remove reference to
399 (init_wait_for_inferior): Remove reference to init_infwait_state.
400 (waiton_ptid): Delete global.
401 (struct execution_control_state)
402 <stepped_after_stopped_by_watchpoint>: Delete field.
403 (wait_for_inferior, fetch_inferior_event): Always pass
404 minus_one_ptid to target_wait.
405 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
407 (init_infwait_state): Delete function.
408 (handle_inferior_event): Remove infwait_state handling.
409 (handle_signal_stop) <watchpoints handling>: Adjust after
410 stepped_after_stopped_by_watchpoint removal. Don't remove
411 breakpoints here nor set infwait_state. Set the thread's
412 stepping_over_watchpoint flag, and call keep_going instead.
413 (keep_going): Handle stepping_over_watchpoint. Adjust
414 set_step_over_info calls.
415 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
418 2014-10-15 Pedro Alves <palves@redhat.com>
420 * infrun.c (step_over_info_valid_p): New function.
421 (resume): Use step_over_info_valid_p instead of checking the
422 threads's trap_expected flag.
424 2014-10-15 Doug Evans <dje@google.com>
425 Walfred Tedeschi <walfred.tedeschi@intel.com>
428 * python/lib/gdb/__init__.py (packages): Add "printer".
429 * python/lib/gdb/command/bound_registers.py: Moved to ...
430 * python/lib/gdb/printer/bound_registers.py: ... here.
431 Add printer to global set of builtin printers. Rename printer from
432 "bound" to "mpx_bound128".
433 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
434 registered as global "builtin" printer.
435 (add_builtin_pretty_printer): New function.
436 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
437 gdb/printer/__init__.py.
439 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
441 * Makefile.in (SFILES): Remove d-support.c.
442 (COMMON_OBS): Remove d-support.o.
443 * d-lang.h (d_parse_symbol): Remove declaration.
444 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
445 * d-support.c: Remove file.
447 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
449 * gdb/infrun.c (process_event_stop_test): Apply
450 gdbarch_addr_bits_remove to longjmp resume address.
452 2014-10-15 Pedro Alves <palves@redhat.com>
454 * regformats/microblaze.dat: Delete file.
456 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
458 * features/Makefile (microblaze-expedite): Replace pc with rpc.
459 * regformats/microblaze-with-stack-protect.dat: Regenerate.
461 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
463 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
466 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
470 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
473 2014-10-14 Joel Brobecker <brobecker@adacore.com>
475 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
476 of the case where the second operand is a pointer.
477 <BINOP_SUB>: Likewise.
479 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
481 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
482 only if it is not NULL.
483 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
484 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
485 (struct probe_ops) <clear_semaphore>: Likewise.
486 * tracepoint.c (start_tracing): Call set_semaphore only if it is
488 (stop_tracing): Likewise, for clear_semaphore.
490 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
492 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
493 using language_c, instead of current_language.
495 2014-10-13 Doug Evans <dje@google.com>
497 * python/py-objfile.c (objfpy_initialize): New function.
498 (objfpy_new, objfile_to_objfile_object): Call it.
499 * python/py-progspace.c (pspy_initialize): New function.
500 (pspy_new, pspace_to_pspace_object): Call it.
502 2014-10-13 Miroslav Franc <mfranc@redhat.com>
503 Jan Kratochvil <jan.kratochvil@redhat.com>
505 Fix "save breakpoints" for "catch" command.
506 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
509 2014-10-12 Miroslav Franc <mfranc@redhat.com>
511 Fix "save breakpoints" for "disable $bpnum" command.
512 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
514 2014-10-10 Pedro Alves <palves@redhat.com>
516 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
517 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
518 (HFILES_NO_SRCDIR): Remove solib-irix.h.
519 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
521 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
522 * configure.ac: Remove references to IRIX.
523 * configure.host: Add *-*-irix* to the obsolete hosts section.
524 Remove all other references to irix.
525 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
528 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
530 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
531 isn't valid, release the tdesc arch data and return NULL.
533 2014-10-10 Pedro Alves <palves@redhat.com>
535 * linux-tdep.c: Include observer.h.
536 (linux_inferior_data): New global.
537 (struct linux_info): New structure.
538 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
539 (get_linux_inferior_data): New functions.
540 (linux_vsyscall_range): Rename to ...
541 (linux_vsyscall_range_raw): ... this.
542 (linux_vsyscall_range): New function; handles caching.
543 (_initialize_linux_tdep): Register linux_inferior_data. Install
544 inferior_exit and inferior_appeared observers.
546 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
547 Pedro Alves <palves@redhat.com>
550 * solib-svr4.c (svr4_read_so_list): Rename to ...
551 (svr4_current_sos_1): ... this and change the function comment.
552 (svr4_current_sos): New function.
554 2014-10-10 Pedro Alves <palves@redhat.com>
556 * arch-utils.c (default_vsyscall_range): New function.
557 * arch-utils.h (default_vsyscall_range): New declaration.
558 * gdbarch.sh (vsyscall_range): New hook.
559 * gdbarch.h, gdbarch.c: Regenerate.
560 * linux-tdep.c (linux_vsyscall_range): New function.
561 (linux_init_abi): Install linux_vsyscall_range as
562 vsyscall_range gdbarch hook.
563 * memrange.c (address_in_mem_range): New function.
564 * memrange.h (address_in_mem_range): New declaration.
565 * symfile-mem.c (find_vdso_size): Delete function.
566 (add_vsyscall_page): Use gdbarch_vsyscall_range.
568 2014-10-10 Pedro Alves <palves@redhat.com>
570 * infrun.c (normal_stop): Fix typo in comment.
572 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
575 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
576 typo when using logical AND to determine instruction type.
578 2014-10-09 Yao Qi <yao@codesourcery.com>
580 * infrun.c (handle_signal_stop): Remove local variable
583 2014-10-08 Stan Shebs <stan@codesourcery.com>
585 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
587 2014-10-08 Gary Benson <gbenson@redhat.com>
589 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
591 2014-10-08 Gary Benson <gbenson@redhat.com>
593 * common/common-defs.h: Include common-exceptions.h.
594 * exceptions.h: Do not include common-exceptions.h.
596 2014-10-08 Gary Benson <gbenson@redhat.com>
598 * common/common-defs.h: Include cleanups.h.
599 * common/common-exceptions.c: Do not include cleanups.h.
602 2014-10-08 Gary Benson <gbenson@redhat.com>
604 * ada-lang.c: Do not include exceptions.h.
605 * ada-valprint.c: Likewise.
606 * amd64-tdep.c: Likewise.
607 * auto-load.c: Likewise.
609 * break-catch-throw.c: Likewise.
610 * breakpoint.c: Likewise.
611 * btrace.c: Likewise.
612 * c-lang.c: Likewise.
613 * cli/cli-cmds.c: Likewise.
614 * cli/cli-interp.c: Likewise.
615 * cli/cli-script.c: Likewise.
616 * completer.c: Likewise.
617 * corefile.c: Likewise.
618 * corelow.c: Likewise.
619 * cp-abi.c: Likewise.
620 * cp-support.c: Likewise.
621 * cp-valprint.c: Likewise.
622 * darwin-nat.c: Likewise.
623 * dwarf2-frame-tailcall.c: Likewise.
624 * dwarf2-frame.c: Likewise.
625 * dwarf2loc.c: Likewise.
626 * dwarf2read.c: Likewise.
628 * event-loop.c: Likewise.
629 * event-top.c: Likewise.
630 * f-valprint.c: Likewise.
631 * frame-unwind.c: Likewise.
633 * gdbtypes.c: Likewise.
634 * gnu-v2-abi.c: Likewise.
635 * gnu-v3-abi.c: Likewise.
636 * guile/scm-auto-load.c: Likewise.
637 * guile/scm-breakpoint.c: Likewise.
638 * guile/scm-cmd.c: Likewise.
639 * guile/scm-frame.c: Likewise.
640 * guile/scm-lazy-string.c: Likewise.
641 * guile/scm-param.c: Likewise.
642 * guile/scm-symbol.c: Likewise.
643 * guile/scm-type.c: Likewise.
644 * hppa-hpux-tdep.c: Likewise.
645 * i386-tdep.c: Likewise.
646 * inf-loop.c: Likewise.
647 * infcall.c: Likewise.
648 * infcmd.c: Likewise.
649 * infrun.c: Likewise.
650 * interps.c: Likewise.
651 * interps.h: Likewise.
653 * linespec.c: Likewise.
654 * linux-nat.c: Likewise.
655 * linux-thread-db.c: Likewise.
656 * m32r-rom.c: Likewise.
658 * memory-map.c: Likewise.
659 * mi/mi-cmd-break.c: Likewise.
660 * mi/mi-cmd-stack.c: Likewise.
661 * mi/mi-interp.c: Likewise.
662 * mi/mi-main.c: Likewise.
663 * monitor.c: Likewise.
664 * nto-procfs.c: Likewise.
665 * objc-lang.c: Likewise.
666 * p-valprint.c: Likewise.
668 * ppc-linux-tdep.c: Likewise.
669 * printcmd.c: Likewise.
671 * python/py-auto-load.c: Likewise.
672 * python/py-breakpoint.c: Likewise.
673 * python/py-cmd.c: Likewise.
674 * python/py-finishbreakpoint.c: Likewise.
675 * python/py-frame.c: Likewise.
676 * python/py-framefilter.c: Likewise.
677 * python/py-function.c: Likewise.
678 * python/py-gdb-readline.c: Likewise.
679 * python/py-inferior.c: Likewise.
680 * python/py-infthread.c: Likewise.
681 * python/py-lazy-string.c: Likewise.
682 * python/py-linetable.c: Likewise.
683 * python/py-param.c: Likewise.
684 * python/py-prettyprint.c: Likewise.
685 * python/py-symbol.c: Likewise.
686 * python/py-type.c: Likewise.
687 * python/py-value.c: Likewise.
688 * python/python-internal.h: Likewise.
689 * python/python.c: Likewise.
690 * record-btrace.c: Likewise.
691 * record-full.c: Likewise.
692 * regcache.c: Likewise.
693 * remote-fileio.c: Likewise.
694 * remote-mips.c: Likewise.
695 * remote.c: Likewise.
696 * rs6000-aix-tdep.c: Likewise.
697 * rs6000-nat.c: Likewise.
699 * solib-darwin.c: Likewise.
700 * solib-dsbt.c: Likewise.
701 * solib-frv.c: Likewise.
702 * solib-ia64-hpux.c: Likewise.
703 * solib-spu.c: Likewise.
704 * solib-svr4.c: Likewise.
706 * spu-tdep.c: Likewise.
708 * stap-probe.c: Likewise.
709 * symfile-mem.c: Likewise.
710 * symmisc.c: Likewise.
711 * target.c: Likewise.
712 * thread.c: Likewise.
714 * tracepoint.c: Likewise.
715 * tui/tui-interp.c: Likewise.
716 * typeprint.c: Likewise.
718 * valarith.c: Likewise.
719 * valops.c: Likewise.
720 * valprint.c: Likewise.
722 * varobj.c: Likewise.
723 * windows-nat.c: Likewise.
724 * xml-support.c: Likewise.
726 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
728 * mips-tdep.c (add_offset_16): Rewrite to implement what the
730 (extended_mips16_next_pc): Update accordingly.
732 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
734 * mips-tdep.c (mips16_instruction_is_compact_branch): New
736 (micromips_instruction_is_compact_branch): Likewise.
737 (mips16_scan_prologue): Terminate scanning upon seeing a branch
738 or a compact jump, reaching a jump delay slot, or seeing a
739 second non-prologue instruction.
740 (micromips_scan_prologue): Also terminate scanning upon seeing a
741 compact branch or jump, or reaching a branch or jump delay slot.
742 (mips32_scan_prologue): Terminate scanning upon reaching a branch
743 or jump delay slot, or seeing a second non-prologue instruction.
744 (mips32_instruction_has_delay_slot): Retain instruction
745 examination code only, update arguments accordingly and move
746 instruction fetch pieces to...
747 (mips32_insn_at_pc_has_delay_slot): ... this new function.
748 (micromips_instruction_has_delay_slot): Likewise and to...
749 (micromips_insn_at_pc_has_delay_slot): ... this new function.
750 (mips16_instruction_has_delay_slot): Likewise and to...
751 (mips16_insn_at_pc_has_delay_slot): ... this new function.
752 (mips_single_step_through_delay): Update accordingly.
753 (mips_adjust_breakpoint_address): Likewise.
755 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
757 * mips-tdep.c (micromips_instruction_has_delay_slot): When
758 !mustbe32 also return 1 for 32-bit instructions.
759 (mips16_instruction_has_delay_slot): Likewise. Add an
762 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
764 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
767 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
769 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
771 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
772 for the breakpoint's address. Don't preinitialize `placed_size'.
773 (insert_bp_location): Set `reqstd_address' rather than
775 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
776 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
778 (bkpt_remove_location): Likewise.
779 (deprecated_insert_raw_breakpoint): Likewise.
780 (deprecated_remove_raw_breakpoint): Likewise.
781 (find_single_step_breakpoint): Likewise.
782 * mem-break.c (default_memory_insert_breakpoint): Use
783 `reqstd_address' for the breakpoint's address. Don't set
784 `placed_address' or `placed_size' if breakpoint contents couldn't
785 have been determined.
786 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
787 the breakpoint's address.
788 (remote_insert_hw_breakpoint): Likewise. Don't set
789 `placed_address' or `placed_size' if breakpoint couldn't have been
791 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
792 `reqstd_address' for the breakpoint's address.
793 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
794 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
795 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
796 * microblaze-linux-tdep.c
797 (microblaze_linux_memory_remove_breakpoint): Likewise.
798 * monitor.c (monitor_insert_breakpoint): Likewise.
799 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
800 (procfs_insert_hw_breakpoint): Likewise.
801 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
802 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
803 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
804 * remote-mips.c (mips_insert_breakpoint): Likewise.
805 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
807 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
809 * valops.c (value_assign): Check for bit field assignments
810 before calling architecture-specific register value
811 conversion functions.
813 2014-10-03 Pierre Muller <muller@sourceware.org>
815 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
817 2014-10-02 Pedro Alves <palves@redhat.com>
819 * breakpoint.c (breakpoints_should_be_inserted_now): Use
820 threads_are_executing.
821 * breakpoint.h (breakpoints_should_be_inserted_now): Add
823 * gdbthread.h (threads_are_executing): Declare.
824 (handle_signal_stop) <random signals>: Don't print about the
825 signal here if stopping.
826 (end_stepping_range): Don't notify observers here.
827 (normal_stop): Update the thread list. If stopped by a random
828 signal or a stepping range ended, notify observers.
829 * thread.c (threads_executing): New global.
830 (init_thread_list): Clear 'threads_executing'.
831 (set_executing): Set or clear 'threads_executing'.
832 (threads_are_executing): New function.
833 (update_threads_executing): New function.
834 (update_thread_list): Use it.
836 2014-10-02 Pedro Alves <palves@redhat.com>
839 * breakpoint.c (update_breakpoints_after_exec): Don't create
840 overlay, longjmp, std terminate nor exception breakpoints here.
842 2014-10-02 Pedro Alves <palves@redhat.com>
844 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
846 * inferior.c (find_inferior_for_program_space): Give preference to
847 the current inferior.
848 * inferior.h (find_inferior_for_program_space): Update comment.
849 * progspace.c (switch_to_program_space_and_thread): Prefer the
850 current inferior if it's bound to the program space requested. If
851 the inferior found doesn't have a PID yet, don't bother looking up
853 * progspace.h (switch_to_program_space_and_thread): Adjust
855 * thread.c (any_thread_of_process, any_live_thread_of_process):
856 Give preference to the current thread.
858 2014-10-01 Pedro Alves <palves@redhat.com>
860 * breakpoint.c (insert_bp_location): Error out if inserting a
861 software breakpoint at a read-only address.
862 * target.c (memory_xfer_check_region): New function, factored out
864 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
866 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
867 against the memory region attributes.
869 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
871 * NEWS: Announce new exit-code field in -list-thread-groups
873 * inferior.c (exit_inferior_1): Don't clear exit code.
874 (inferior_appeared): Clear exit code.
875 * mi/mi-main.c (print_one_inferior): Add printing of the exit
878 2014-10-01 Pedro Alves <palves@redhat.com>
880 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
881 GENERATED" along with emacs/vi read-only markers.
882 * regformats/aarch64.dat: Regenerate.
883 * regformats/arm-with-iwmmxt.dat: Regenerate.
884 * regformats/arm-with-neon.dat: Regenerate.
885 * regformats/arm-with-vfpv2.dat: Regenerate.
886 * regformats/arm-with-vfpv3.dat: Regenerate.
887 * regformats/i386/amd64-avx-linux.dat: Regenerate.
888 * regformats/i386/amd64-avx.dat: Regenerate.
889 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
890 * regformats/i386/amd64-avx512.dat: Regenerate.
891 * regformats/i386/amd64-linux.dat: Regenerate.
892 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
893 * regformats/i386/amd64-mpx.dat: Regenerate.
894 * regformats/i386/amd64.dat: Regenerate.
895 * regformats/i386/i386-avx-linux.dat: Regenerate.
896 * regformats/i386/i386-avx.dat: Regenerate.
897 * regformats/i386/i386-avx512-linux.dat: Regenerate.
898 * regformats/i386/i386-avx512.dat: Regenerate.
899 * regformats/i386/i386-linux.dat: Regenerate.
900 * regformats/i386/i386-mmx-linux.dat: Regenerate.
901 * regformats/i386/i386-mmx.dat: Regenerate.
902 * regformats/i386/i386-mpx-linux.dat: Regenerate.
903 * regformats/i386/i386-mpx.dat: Regenerate.
904 * regformats/i386/i386.dat: Regenerate.
905 * regformats/i386/x32-avx-linux.dat: Regenerate.
906 * regformats/i386/x32-avx.dat: Regenerate.
907 * regformats/i386/x32-avx512-linux.dat: Regenerate.
908 * regformats/i386/x32-avx512.dat: Regenerate.
909 * regformats/i386/x32-linux.dat: Regenerate.
910 * regformats/i386/x32.dat: Regenerate.
911 * regformats/microblaze-with-stack-protect.dat: Regenerate.
912 * regformats/mips-dsp-linux.dat: Regenerate.
913 * regformats/mips-linux.dat: Regenerate.
914 * regformats/mips64-dsp-linux.dat: Regenerate.
915 * regformats/mips64-linux.dat: Regenerate.
916 * regformats/nios2-linux.dat: Regenerate.
917 * regformats/rs6000/powerpc-32.dat: Regenerate.
918 * regformats/rs6000/powerpc-32l.dat: Regenerate.
919 * regformats/rs6000/powerpc-64l.dat: Regenerate.
920 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
921 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
922 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
923 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
924 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
925 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
926 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
927 * regformats/s390-linux32.dat: Regenerate.
928 * regformats/s390-linux32v1.dat: Regenerate.
929 * regformats/s390-linux32v2.dat: Regenerate.
930 * regformats/s390-linux64.dat: Regenerate.
931 * regformats/s390-linux64v1.dat: Regenerate.
932 * regformats/s390-linux64v2.dat: Regenerate.
933 * regformats/s390-te-linux64.dat: Regenerate.
934 * regformats/s390x-linux64.dat: Regenerate.
935 * regformats/s390x-linux64v1.dat: Regenerate.
936 * regformats/s390x-linux64v2.dat: Regenerate.
937 * regformats/s390x-te-linux64.dat: Regenerate.
938 * regformats/tic6x-c62x-linux.dat: Regenerate.
939 * regformats/tic6x-c62x.dat: Regenerate.
940 * regformats/tic6x-c64x-linux.dat: Regenerate.
941 * regformats/tic6x-c64x.dat: Regenerate.
942 * regformats/tic6x-c64xp-linux.dat: Regenerate.
943 * regformats/tic6x-c64xp.dat: Regenerate.
945 2014-10-01 Pedro Alves <palves@redhat.com>
947 * features/Makefile: Update comments.
948 (XMLTOC): List all xml files we build C files from.
949 (clean-cfiles): New rule.
951 2014-10-01 Pedro Alves <palves@redhat.com>
953 * features/i386/amd64-avx512-linux.c: Regenerate.
954 * features/i386/amd64-avx512.c: Regenerate.
955 * features/i386/x32-avx512-linux.c: Regenerate.
956 * features/i386/x32-avx512.c: Regenerate.
958 2014-10-01 Pedro Alves <palves@redhat.com>
960 * features/Makefile (WHICH): Remove arm-with-m,
961 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
963 2014-10-01 Pedro Alves <palves@redhat.com>
965 * features/Makefile (clean): New rule.
967 2014-10-01 Pedro Alves <palves@redhat.com>
969 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
970 (zmm14h): Add missing end quotes.
972 2014-10-01 Pedro Alves <palves@redhat.com>
974 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
975 * features/aarch64.c: Regenerate.
977 2014-09-30 Don Breazeal <donb@codesourcery.com>
979 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
980 code so as to work with follow_fork_inferior.
981 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
982 (inf_ttrace_create_inferior): Remove reference to
983 inf_ttrace_vfork_ppid.
984 (inf_ttrace_attach): Ditto.
985 (inf_ttrace_detach): Ditto.
986 (inf_ttrace_kill): Use current_inferior instead of
987 inf_ttrace_vfork_ppid.
988 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
989 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
990 inferior away from the parent.
991 * infrun.c (follow_fork): Call follow_fork_inferior instead of
993 (follow_fork_inferior): New function.
994 (follow_inferior_reset_breakpoints): Make function static.
995 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
996 * linux-nat.c (linux_child_follow_fork): Move target-independent
997 code to infrun.c:follow_fork_inferior.
999 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1001 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1002 * gdbarch.c: Regenerate.
1003 * gdbarch.h: Likewise.
1004 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1005 gdbarch method 'regset_from_core_section'.
1006 (get_core_register_section): Remove handling for the case that
1007 regset == NULL and regset_from_core_section is defined.
1008 (get_core_registers): Drop check for deleted method.
1009 * procfs.c (procfs_do_thread_registers): Adjust comment.
1011 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1013 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1014 (linux_nat_make_corefile_notes): Remove.
1015 (linux_target_install_ops): Do not set target method
1016 'make_corefile_notes'.
1017 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1019 (linux_corefile_thread_callback): Instead of args->collect, call
1020 linux_collect_thread_registers.
1021 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1022 NULL unless there is a regset iterator.
1023 (linux_make_corefile_notes_1): Remove.
1024 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1025 by linux_make_corefile_notes.
1026 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1028 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1030 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1031 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1033 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1035 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1037 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1038 (xtensa_iterate_over_regset_sections): New.
1039 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1041 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1043 * vax-tdep.c (vax_regset_from_core_section): Remove.
1044 (vax_iterate_over_regset_sections): New.
1045 (vax_gdbarch_init): Adjust gdbarch initialization.
1047 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1049 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1050 (tilegx_regset_from_core_section): Remove.
1051 (tilegx_iterate_over_regset_sections): New.
1052 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1054 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1056 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1057 (sparc_iterate_over_regset_sections): New.
1058 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1059 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1061 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1062 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1063 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1064 target method 'make_corefile_notes'.
1066 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1068 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1069 'sizeof_gregset' and 'sizeof_fpregset'.
1070 * sh-tdep.c (sh_regset_from_core_section): Remove.
1071 (sh_iterate_over_regset_sections): New.
1072 (sh_gdbarch_init): Adjust gdbarch initialization.
1073 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1075 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1078 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1080 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1081 (score7_linux_iterate_over_regset_sections): New.
1082 (score_gdbarch_init): Adjust gdbarch initialization.
1084 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1086 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1088 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1089 method 'make_corefile_notes'.
1090 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1091 (ppcfbsd_regset_from_core_section): Remove.
1092 (ppcfbsd_iterate_over_regset_sections): New.
1093 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1095 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1096 (ppcnbsd_iterate_over_regset_sections): New.
1097 (ppcnbsd_init_abi): Adjust.
1098 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1099 (ppcobsd_iterate_over_regset_sections): New.
1100 (ppcobsd_init_abi): Adjust.
1101 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1102 (rs6000_aix_iterate_over_regset_sections): New.
1103 (rs6000_aix_init_osabi): Adjust.
1105 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1107 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1108 (nios2_regset_from_core_section): Remove.
1109 (nios2_iterate_over_regset_sections): New.
1110 (nios2_linux_init_abi): Adjust gdbarch initialization.
1112 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1114 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1115 (am33_iterate_over_regset_sections): New.
1116 (am33_linux_init_osabi): Adjust gdbarch initialization.
1118 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1120 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1121 (mips_linux_iterate_over_regset_sections): New.
1122 (mips_linux_init_abi): Adjust gdbarch initialization.
1123 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1124 (mips64obsd_iterate_over_regset_sections): New.
1125 (mips64obsd_init_abi): Adjust.
1126 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1127 (mipsnbsd_iterate_over_regset_sections): New.
1128 (mipsnbsd_init_abi): Adjust.
1130 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1132 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1133 (m88k_iterate_over_regset_sections): New.
1134 (m88k_gdbarch_init): Adjust gdbarch initialization.
1136 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1138 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1139 (ia64_linux_iterate_over_regset_sections): New.
1140 (ia64_linux_init_abi): Adjust gdbarch initialization.
1142 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1144 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1145 (m68kbsd_iterate_over_regset_sections): New.
1146 (m68kbsd_init_abi): Adjust gdbarch initialization.
1147 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1148 (m68k_linux_iterate_over_regset_sections): New.
1149 (m68k_linux_init_abi): Adjust gdbarch initialization.
1151 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1153 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1154 (m32r_linux_regset_from_core_section): Remove.
1155 (m32r_linux_iterate_over_regset_sections): New.
1156 (m32r_linux_init_abi): Adjust gdbarch initialization.
1158 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1160 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1161 (amd64obsd_iterate_over_regset_sections): New.
1162 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1163 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1165 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1166 regset_from_core_section initialization.
1167 * i386-tdep.c (i386_regset_from_core_section): Remove.
1168 (i386_iterate_over_regset_sections): New.
1169 (i386_gdbarch_init): Adjust gdbarch initialization.
1170 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1171 (i386_iterate_over_regset_sections): New prototype.
1172 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1174 (i386obsd_aout_iterate_over_regset_sections): New.
1175 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1176 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1178 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1179 (amd64fbsd_init_abi): Call fbsd_init_abi.
1180 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1181 (i386fbsd4_init_abi): Call fbsd_init_abi.
1182 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1183 target method 'make_corefile_notes'.
1184 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1186 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1188 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1189 (hppa_hpux_iterate_over_regset_sections): New.
1190 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1191 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1192 (hppa_linux_iterate_over_regset_sections): New.
1193 (hppa_linux_init_abi): Adjust.
1194 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1195 (hppanbsd_iterate_over_regset_sections): New.
1196 (hppanbsd_init_abi): Adjust.
1197 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1198 (hppaobsd_iterate_over_regset_sections): New.
1199 (hppaobsd_init_abi): Adjust.
1201 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1203 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1204 (frv_linux_iterate_over_regset_sections): New.
1205 (frv_linux_init_abi): Adjust gdbarch initialization.
1207 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1209 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1210 (armbsd_iterate_over_regset_sections): New prototype.
1211 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1212 (armbsd_iterate_over_regset_sections): New.
1213 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1216 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1218 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1219 (alpha_linux_iterate_over_regset_sections): New.
1220 (alpha_linux_init_abi): Adjust gdbarch initialization.
1221 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1223 (alphanbsd_iterate_over_regset_sections): New prototype.
1225 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1227 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1229 (aarch64_linux_iterate_over_regset_sections): New.
1230 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1232 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1234 * fbsd-tdep.c: New file.
1235 * fbsd-tdep.h: New file.
1236 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1237 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1238 (ALLDEPFILES): Add fbsd-tdep.c.
1240 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1242 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1244 * gdbarch.h: Regenerate.
1245 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1247 (get_core_register_section): Add parameter 'regset' and use it, if
1248 set. Add parameter 'min_size' and verify the bfd section size
1250 (get_core_registers_cb): Add parameter 'regset' and pass it to
1251 get_core_register section. For the "standard" register sections
1252 ".reg" and ".reg2", set an appropriate default for human_name.
1253 (get_core_registers): Don't abort when the gdbarch has an iterator
1254 but no regset_from_core_section. Add NULL/0 for parameters
1255 'regset'/'min_size' in calls to get_core_register_section.
1256 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1257 'regset' and use it instead of calling the
1258 regset_from_core_section gdbarch method.
1259 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1260 * i386-tdep.c (i386_supply_xstateregset)
1261 (i386_collect_xstateregset, i386_xstateregset): Moved to
1263 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1265 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1266 core file support only if the regset iterator hasn't been set.
1267 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1268 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1269 Moved from i386-tdep.c and renamed to *_linux*.
1270 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1271 each callback invocation. Allow any .reg-xstate size when reading
1273 * amd64-tdep.c (amd64_supply_xstateregset)
1274 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1276 (amd64_regset_from_core_section): Remove.
1277 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1278 install an amd64-specific regset_from_core_section gdbarch method.
1279 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1280 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1281 Moved from amd64-tdep.c and renamed to *_linux*.
1282 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1283 to each callback invocation. Allow any .reg-xstate size when
1284 reading from a core file.
1285 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1286 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1287 each callback invocation.
1288 (arm_linux_init_abi): No longer set the regset_from_core_section
1290 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1291 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1292 each callback invocation.
1293 (ppc_linux_init_abi): No longer set the regset_from_core_section
1295 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1296 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1297 (s390_regset_from_core_section): Remove.
1298 (s390_iterate_over_regset_sections): Add regset parameter to each
1299 callback invocation.
1300 (s390_gdbarch_init): No longer set the regset_from_core_section
1301 gdbarch method. Drop initialization of deleted tdep fields.
1303 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1305 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1306 (amd64_linux_iterate_over_regset_sections): New.
1307 (amd64_linux_init_abi_common): Don't install the regset section
1308 list, but the new iterator in gdbarch.
1309 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1310 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1311 (arm_linux_iterate_over_regset_sections): ...here. New function.
1312 (arm_linux_init_abi): Set iterator instead of section list.
1313 * corelow.c (get_core_registers_cb): New function, logic moved
1315 (get_core_registers): ...loop body here. Use new iterator method
1316 instead of walking through the regset section list.
1317 * gdbarch.sh: Remove 'core_regset_sections'. New method
1318 'iterate_over_regset_sections'. New typedef
1319 'iterate_over_regset_sections_cb'.
1320 * gdbarch.c: Regenerate.
1321 * gdbarch.h: Likewise.
1322 * i386-linux-tdep.c (i386_linux_regset_sections)
1323 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1325 (i386_linux_iterate_over_regset_sections): New.
1326 (i386_linux_init_abi): Don't choose a regset section list, but
1327 install new iterator in gdbarch.
1328 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1329 (linux_collect_regset_section_cb): New function, logic moved
1331 (linux_collect_thread_registers): ...loop body here. Use iterator
1332 method instead of walking through list.
1333 (linux_make_corefile_notes_1): Check for presence of iterator
1334 method instead of regset section list.
1335 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1336 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1337 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1338 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1339 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1340 (ppc_linux_init_abi): Don't choose from above regset section
1341 lists, but install new iterator in gdbarch.
1342 * regset.h (struct core_regset_section): Remove.
1343 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1344 have_linux_v1, have_linux_v2, and have_tdb.
1345 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1346 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1347 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1348 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1349 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1350 (s390_iterate_over_regset_sections): ...here. New function. Use
1352 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1353 regset section lists, but install new iterator.
1355 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1357 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1359 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1361 * progspace.c (print_program_space): Don't prune program spaces
1362 before printing them.
1364 2014-09-25 Pedro Alves <palves@redhat.com>
1366 * infrun.c (user_visible_resume_ptid): Don't check
1367 singlestep_breakpoints_inserted_p.
1369 2014-09-25 Pedro Alves <palves@redhat.com>
1371 * breakpoint.c (should_be_inserted): Add debug output.
1373 2014-09-25 Pedro Alves <palves@redhat.com>
1375 * infrun.c (stepping_past_instruction_at)
1376 (clear_exit_convenience_vars): Point at infrun.h instead of
1378 (handle_signal_stop): Fix typo.
1380 2014-09-24 Yao Qi <yao@codesourcery.com>
1382 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1385 2014-09-22 Gary Benson <gbenson@redhat.com>
1387 * target.c (target_stop): Updated comment.
1389 2014-09-22 Gary Benson <gbenson@redhat.com>
1391 * target/target.h (target_stop_ptid): Renamed as...
1392 (target_stop_and_wait): New function. Updated comment.
1394 (target_continue_ptid): Renamed as...
1395 (target_continue_no_signal): New function. Updated comment.
1398 2014-09-22 Pedro Alves <palves@redhat.com>
1400 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1402 * breakpoint.c (enum ugll_insert_mode): New enum.
1403 (always_inserted_mode): Now a plain boolean.
1404 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1405 (breakpoints_always_inserted_mode): Delete.
1406 (breakpoints_should_be_inserted_now): New function.
1407 (insert_breakpoints): Pass UGLL_INSERT to
1408 update_global_location_list instead of calling
1409 insert_breakpoint_locations manually.
1410 (create_solib_event_breakpoint_1): New, factored out from ...
1411 (create_solib_event_breakpoint): ... this.
1412 (create_and_insert_solib_event_breakpoint): Use
1413 create_solib_event_breakpoint_1 instead of calling
1414 insert_breakpoint_locations manually.
1415 (update_global_location_list): Change parameter type from boolean
1416 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1417 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1418 (update_global_location_list_nothrow): Change parameter type from
1419 boolean to enum ugll_insert_mode.
1420 (_initialize_breakpoint): "breakpoint always-inserted" option is
1421 now a boolean command. Update help text.
1422 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1423 (breakpoints_should_be_inserted_now): New declaration.
1424 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1425 Remove breakpoints_always_inserted_mode check.
1426 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1427 * remote.c (remote_start_remote): Likewise.
1429 2014-09-22 Pedro Alves <palves@redhat.com>
1431 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1432 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1433 Instead, pass UGLL_INSERT to update_global_location_list.
1434 (update_global_location_list): Change parameter type from boolean
1435 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1436 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1437 (create_solib_event_breakpoint_1): New, factored out from ...
1438 (create_solib_event_breakpoint): ... this.
1439 (create_and_insert_solib_event_breakpoint): Use
1440 create_solib_event_breakpoint_1 instead of calling
1441 insert_breakpoint_locations manually.
1442 (update_global_location_list): Handle UGLL_INSERT.
1444 2014-09-22 Pedro Alves <palves@redhat.com>
1446 * breakpoint.c (enum ugll_insert_mode): New enum.
1447 (update_global_location_list)
1448 (update_global_location_list_nothrow): Change parameter type from
1449 boolean to enum ugll_insert_mode. All callers adjusted.
1451 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1453 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1454 SystemTap support in GDB.
1456 2014-09-19 Don Breazeal <donb@codesourcery.com>
1458 * linux-nat.c (linux_handle_extended_wait): Call
1459 linux_ptrace_get_extended_event.
1460 (wait_lwp): Call linux_is_extended_waitstatus.
1461 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1462 and linux_is_extended_waitstatus.
1463 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1464 linux_ptrace_get_extended_event.
1465 (linux_ptrace_get_extended_event): New function.
1466 (linux_is_extended_waitstatus): New function.
1467 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1468 (linux_is_extended_waitstatus): New declarations.
1470 2014-09-19 Yao Qi <yao@codesourcery.com>
1472 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1473 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1474 comments. Callers update.
1475 (dwarf_decode_lines): Likewise.
1476 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1477 comments. Skip the line table if 'lowpc' is greater than
1478 'address'. Don't check
1479 dwarf2_per_objfile->has_section_at_zero.
1481 2014-09-18 Doug Evans <dje@google.com>
1483 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1484 * python/py-symtab.c (stpy_get_producer): New function.
1485 (symtab_object_getset): Add "producer" attribute.
1487 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1490 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1491 (do_captured_read_memory_integer): Remove.
1492 (safe_read_memory_integer): Use target_read_memory directly instead
1493 of catching errors in do_captured_read_memory_integer.
1495 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1497 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1500 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1502 * objc-lang.c (find_implementation_from_class): Remove dead code.
1504 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1507 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1508 "fprintf_unfiltered (gdb_stdlog...)".
1510 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1512 PR breakpoints/12526
1513 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1515 * breakpoint.c (watch_command_1): Use these fields to retain
1516 bitfield information.
1517 (extract_bitfield_from_watchpoint_value): New function.
1518 (watchpoint_check): Use it.
1519 (update_watchpoint): Use it. Optimize the address and length of a
1520 HW watchpoint pointing to a bitfield.
1521 * value.h (unpack_value_bitfield): New prototype.
1522 * value.c (unpack_value_bitfield): Make extern.
1524 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1526 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1528 * gnu-nat.c (inf_threads): New function.
1529 * gnu-nat.h (inf_threads_ftype): New typedef.
1530 (inf_threads): New declaration.
1531 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1532 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1533 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1534 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1535 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1536 (i386_gnu_dr_get_control): New functions.
1537 (reg_addr): New structure.
1538 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1539 i386 debugging register hooks.
1540 * NEWS: Mention this.
1542 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1544 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1545 vector data transfer instructions.
1546 (arm_record_coproc_data_proc): Updated.
1548 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1550 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1551 arm_record_exreg_ld_st_insn.
1552 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1555 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1557 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1558 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1559 processing instructions.
1561 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1563 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1564 for advance SIMD struct ld/st insn.
1565 (thumb2_record_decode_insn_handler): Replace stub handler with
1566 thumb2_record_asimd_struct_ld_st.
1568 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1570 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1571 for asimd, vfp and coprocessor insns.
1572 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1573 and coprocessor insns.
1574 (thumb2_record_coproc_insn): New function.
1575 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1577 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1580 2014-09-13 Doug Evans <xdje42@gmail.com>
1582 * NEWS: Mention new "queue-signal" command.
1583 * infcmd.c (queue_signal_command): New function.
1584 (_initialize_infcmd): Add new queue-signal command.
1586 2014-09-13 Doug Evans <xdje42@gmail.com>
1588 * linux-nat.c (wait_lwp): Add debugging printf.
1589 (linux_nat_wait_1): Ditto.
1591 2014-09-12 Pedro Alves <palves@redhat.com>
1593 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1594 (create_and_insert_solib_event_breakpoint): New functions.
1595 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1596 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1597 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1598 (remove_dbx_link_breakpoint): Delete function.
1599 (insert_dbx_link_bpt_in_file): Use
1600 create_and_insert_solib_event_breakpoint instead of
1601 deprecated_insert_raw_breakpoint.
1602 (procfs_wait): Don't check whether we hit __dbx_link here.
1603 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1605 * solib-irix.c (base_breakpoint): Delete global.
1606 (disable_break): Delete function.
1607 (enable_break): Use create_solib_event_breakpoint
1608 instead of deprecated_insert_raw_breakpoint.
1609 (irix_solib_handle_event): New function.
1610 (irix_solib_create_inferior_hook): Don't run the target or disable
1611 the mapping-complete breakpoint here.
1612 (_initialize_irix_solib): Install irix_solib_handle_event as
1613 so_ops->handle_event hook.
1615 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1616 Ulrich Weigand <uweigand@de.ibm.com>
1619 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1620 instead of read_memory_unsigned_integer.
1622 2014-09-12 Gary Benson <gbenson@redhat.com>
1624 * nat/linux-waitpid.c: Include common-defs.h.
1625 [GDBSERVER]: Add FIXME comment.
1626 [!GDBSERVER]: Don't include defs.h or signal.h.
1627 (linux_debug) [!GDBSERVER]: Remove empty block.
1629 2014-09-12 Gary Benson <gbenson@redhat.com>
1631 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1632 Don't include defs.h or server.h.
1634 2014-09-12 Gary Benson <gbenson@redhat.com>
1636 * nat/linux-btrace.c: Include common-defs.h.
1637 Don't include defs.h, server.h or gdbthread.h.
1638 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1640 2014-09-12 Gary Benson <gbenson@redhat.com>
1642 * common/agent.c: Include common-defs.h.
1643 Don't include defs.h or server.h.
1644 * common/buffer.c: Likewise.
1645 * common/common-debug.c: Likewise.
1646 * common/common-utils.c: Likewise.
1647 * common/errors.c: Likewise.
1648 * common/filestuff.c: Likewise.
1649 * common/format.c: Likewise.
1650 * common/gdb_vecs.c: Likewise.
1651 * common/print-utils.c: Likewise.
1652 * common/ptid.c: Likewise.
1653 * common/rsp-low.c: Likewise.
1654 * common/signals.c: Likewise.
1655 * common/vec.c: Likewise.
1656 * common/xml-utils.c: Likewise.
1657 * nat/linux-osdata.c: Likewise.
1658 * nat/linux-procfs.c: Likewise.
1659 * nat/linux-ptrace.c: Likewise.
1660 * nat/mips-linux-watch.c: Likewise.
1661 * target/waitstatus.c: Likewise.
1663 2014-09-12 Tom Tromey <tromey@redhat.com>
1664 Gary Benson <gbenson@redhat.com>
1666 * common/common-regcache.h: New file.
1667 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1668 * regcache.h: Include common-regcache.h.
1669 (regcache_read_pc): Don't declare.
1670 * regcache.c (get_thread_regcache_for_ptid): New function.
1671 * nat/linux-btrace.c: Don't include regcache.h.
1672 Include common-regcache.h.
1673 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1675 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1677 * regcache.h (struct regset): Declare.
1679 2014-09-11 Pedro Alves <palves@redhat.com>
1682 * main.c: Include "infrun.h".
1683 (catch_command_errors, catch_command_errors_const): Wait for the
1684 foreground command to complete.
1685 * top.c (maybe_wait_sync_command_done): New function, factored out
1687 (maybe_wait_sync_command_done): ... here.
1688 * top.h (maybe_wait_sync_command_done): New declaration.
1690 2014-09-11 Tom Tromey <tromey@redhat.com>
1691 Gary Benson <gbenson@redhat.com>
1693 * common/symbol.h: New file.
1694 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1695 * minsyms.c (find_minimal_symbol_address): New function.
1696 * common/agent.c: Include common/symbol.h.
1697 [!GDBSERVER]: Don't include objfiles.h.
1698 (agent_look_up_symbols): Use find_minimal_symbol_address.
1700 2014-09-11 Gary Benson <gbenson@redhat.com>
1702 * target/target.h (target_stop_ptid, target_continue_ptid):
1704 * target.c (target_stop_ptid, target_continue_ptid): New
1706 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1707 (agent_run_command): Always use target_stop_ptid and
1708 target_continue_ptid.
1710 2014-09-11 Tom Tromey <tromey@redhat.com>
1711 Gary Benson <gbenson@redhat.com>
1713 * target/target.h: New file.
1714 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1715 * target.h: Include target/target.h.
1716 (target_read_memory, target_write_memory): Don't declare.
1717 * target.c (target_read_uint32): New function.
1718 * common/agent.c: Include target/target.h.
1719 [!GDBSERVER]: Don't include target.h.
1720 (helper_thread_id): Type changed to uint32_t.
1721 (agent_get_helper_thread_id): Use target_read_uint32.
1722 (agent_run_command): Always use target_read_memory and
1723 target_write_memory.
1724 (agent_capability): Type changed to uint32_t.
1725 (agent_capability_check): Use target_read_uint32.
1727 2014-09-11 Gary Benson <gbenson@redhat.com>
1729 * common/common-debug.h (show_debug_regs): Declare.
1730 * common/common-debug.c (show_debug_regs): Define.
1731 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1732 all uses with show_debug_regs. Replace all uses that considered
1733 debug_hw_points as a multi-value integer with straight boolean
1735 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1736 with show_debug_regs.
1737 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1738 all uses with show_debug_regs.
1739 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1740 uses with show_debug_regs.
1742 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1744 * findvar.c (address_from_register): Handle targets requiring
1745 a special conversion routine even for plain pointer types.
1747 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1749 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1750 (store_register): Do not call exec_one_dummy_insn.
1752 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1754 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1755 dereference it first. Use value_enclosing_type instead of
1757 (ada_array_length): Likewise.
1759 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1761 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1762 Adjust function implementation and documentation accordingly.
1763 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1764 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1765 Update call to ada_value_ptr_subscript.
1767 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1769 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1770 instead of VAL's type.
1772 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1774 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1776 2014-09-09 Doug Evans <xdje42@gmail.com>
1779 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1780 last parameter to pkg-config, not first.
1781 * configure.ac: Pass --with-guile provided pkg-config path to
1782 GDB_GUILE_PROGRAM_NAMES.
1783 * configure: Regenerate.
1785 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1787 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1790 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1792 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1793 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1794 the list of sections determining GDB_OSABI_IRIX.
1796 2014-09-09 James Hogan <james.hogan@imgtec.com>
1798 * MAINTAINERS (Write After Approval): Add "James Hogan".
1800 2014-09-09 James Hogan <james.hogan@imgtec.com>
1802 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1804 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1806 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1808 2014-09-08 Doug Evans <xdje42@gmail.com>
1811 * guile.c: #include <signal.h>.
1812 (_initialize_guile): Block SIGCHLD while initializing Guile.
1814 Replaces the following, which is reverted.
1816 2014-07-26 Doug Evans <xdje42@gmail.com>
1819 * configure.ac: Add check for header gc/gc.h.
1820 Add check for function setenv.
1821 * configure: Regenerate.
1822 * config.in: Regenerate.
1823 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1825 2014-09-08 Doug Evans <xdje42@gmail.com>
1827 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1828 with named constant. Fix style of pointer comparison.
1829 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1831 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1834 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1835 decide whether we display the command on "show user".
1836 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1837 printing command name.
1838 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1839 * cli/cli-decode.c (cli_user_command_p): Create helper function
1840 to verify whether cmd_list_element is a user-defined command.
1842 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1845 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1846 Fix goto out of TRY_CATCH.
1848 2014-09-06 Doug Evans <xdje42@gmail.com>
1849 Tom Tromey <tromey@redhat.com>
1852 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1853 $_any_caller_matches.
1854 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1855 * python/lib/gdb/function/caller_is.py: New file.
1857 2014-09-06 Doug Evans <xdje42@gmail.com>
1859 * infcmd.c (program_info): Fix typo.
1861 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1864 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1865 'number'. New variable 'has_digit'. Rewrite code to deal with
1866 subexpressions on SDT probes.
1868 2014-09-04 Pedro Alves <palves@redhat.com>
1870 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1871 the input is only one character long.
1873 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1876 * f-valprint.c (f_val_print): Specify the correct print option to
1877 use when printing integer values.
1879 2014-09-04 Gary Benson <gbenson@redhat.com>
1881 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1882 Remove code to cope with LWPs wrapped as PIDs.
1883 Add assertions to ensure no wrapped LWPs are passed.
1885 2014-09-04 Pedro Alves <palves@redhat.com>
1887 * value.c (value_ranges_copy_adjusted): New function, factored out
1889 (value_contents_copy_raw): ... here.
1890 (unpack_value_bits_as_long_1): Rename back to ...
1891 (unpack_bits_as_long): ... this. Remove 'original_value' and
1892 'result' parameters. Change return type to LONGEST.
1893 (unpack_value_bits_as_long): Delete.
1894 (unpack_value_field_as_long_1): Delete.
1895 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1896 (unpack_value_bitfield): New function.
1897 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1898 (value_fetch_lazy): Use unpack_value_bitfield.
1899 * value.h (unpack_value_bits_as_long): Delete declaration.
1901 2014-09-03 Sasha Smundak <asmundak@google.com>
1903 * python/py-frame.c (frapy_read_register): New function.
1905 2014-09-03 James Hogan <james.hogan@imgtec.com>
1907 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1908 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1910 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1913 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1915 (add_cmd): Set "completer_handle_brkchars" to NULL.
1916 * cli/cli-decode.h (struct cmd_list_element)
1917 <completer_handle_brkchars>: New field.
1918 * command.h (completer_ftype_void): New typedef.
1919 (set_cmd_completer_handle_brkchars): New prototype.
1920 * completer.c (set_gdb_completion_word_break_characters): New
1922 (complete_line_internal): Call "completer_handle_brkchars"
1923 callback from command.
1924 * completer.h: Include "command.h".
1925 (set_gdb_completion_word_break_characters): New prototype.
1926 * python/py-cmd.c (cmdpy_completer_helper): New function.
1927 (cmdpy_completer_handle_brkchars): New function.
1928 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1929 (cmdpy_init): Set completer_handle_brkchars to
1930 cmdpy_completer_handle_brkchars.
1932 2014-09-03 Gary Benson <gbenson@redhat.com>
1934 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1935 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1936 Loop conditions changed to equivalent form.
1937 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1938 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1939 ALL_DEBUG_ADDRESS_REGISTERS.
1941 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1943 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1946 2014-09-02 Doug Evans <dje@google.com>
1948 * typeprint.c (find_global_typedef): Fix comment.
1950 2014-09-02 Gary Benson <gbenson@redhat.com>
1952 * i386-nat.h: Renamed as...
1953 * x86-nat.h: New file. All type, function and variable name
1954 prefixes changed from "i386_" to "x86_". All references updated.
1955 * i386-nat.c: Renamed as...
1956 * x86-nat.c: New file. All type, function and variable name
1957 prefixes changed from "i386_" to "x86_". All references updated.
1958 * common/i386-xstate.h: Renamed as...
1959 * common/x86-xstate.h: New file. All type, function and variable
1960 name prefixes changed from "i386_" to "x86_". All references
1962 * nat/i386-cpuid.h: Renamed as...
1963 * nat/x86-cpuid.h: New file. All type, function and variable name
1964 prefixes changed from "i386_" to "x86_". All references updated.
1965 * nat/i386-gcc-cpuid.h: Renamed as...
1966 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1967 name prefixes changed from "i386_" to "x86_". All references
1969 * nat/i386-dregs.h: Renamed as...
1970 * nat/x86-dregs.h: New file. All type, function and variable name
1971 prefixes changed from "i386_" to "x86_". All references updated.
1972 * nat/i386-dregs.c: Renamed as...
1973 * nat/x86-dregs.c: New file. All type, function and variable name
1974 prefixes changed from "i386_" to "x86_". All references updated.
1976 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1978 * varobj.c (_initialize_varobj): Move to the end of file.
1980 2014-08-29 Gary Benson <gbenson@redhat.com>
1982 * common/common-exceptions.h: New file.
1983 * common/common-exceptions.c: Likewise.
1984 * Makefile.in (SFILES): Add common/common-exceptions.c.
1985 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1986 (COMMON_OBS): Add common-exceptions.o.
1987 (common-exceptions.o): New rule.
1988 * exceptions.h (common-exceptions.h): Include.
1989 (gdb_setjmp.h): Do not include.
1990 (return_reason): Moved to common-exceptions.h.
1991 (enum return_reason): Likewise.
1992 (RETURN_MASK): Likewise.
1993 (typedef return_mask): Likewise.
1994 (enum errors): Likewise.
1995 (struct gdb_exception): Likewise.
1996 (exceptions_state_mc_init): Likewise.
1997 (exceptions_state_mc_action_iter): Likewise.
1998 (exceptions_state_mc_action_iter_1): Likewise.
1999 (TRY_CATCH): Likewise.
2000 (throw_exception): Likewise.
2001 (throw_verror): Likewise.
2002 (throw_vquit): Likewise.
2003 (throw_error): Likewise.
2004 (throw_quit): Likewise.
2005 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2006 (enum catcher_action): Likewise.
2007 (struct catcher): Likewise.
2008 (current_catcher): Likewise.
2009 (catcher_list_size): Likewise.
2010 (exceptions_state_mc_init): Likewise.
2011 (catcher_pop): Likewise.
2012 (exceptions_state_mc): Likewise.
2013 (exceptions_state_mc_action_iter): Likewise.
2014 (exceptions_state_mc_action_iter_1): Likewise.
2015 (throw_exception): Likewise.
2016 (exception_messages): Likewise.
2017 (exception_messages_size): Likewise.
2018 (throw_it): Likewise.
2019 (throw_verror): Likewise.
2020 (throw_vquit): Likewise.
2021 (throw_error): Likewise.
2022 (throw_quit): Likewise.
2023 (prepare_to_throw_exception): New function.
2025 2014-08-29 Gary Benson <gbenson@redhat.com>
2027 * common/gdb_setjmp.h: New file.
2028 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2029 * configure.ac: Move sigsetjmp check...
2030 * common/common.m4: ...here.
2031 * configure: Regenerate.
2032 * cp-support.c (SIGJMP_BUF): Delete.
2033 (SIGSETJMP): Likewise.
2034 (SIGLONGJMP): Likewise.
2035 * exceptions.h (gdb_setjmp.h): Include.
2036 (setjmp.h): Do not include.
2037 (EXCEPTIONS_SIGJMP_BUF): Delete.
2038 (EXCEPTIONS_SIGSETJMP): Likewise.
2039 (EXCEPTIONS_SIGLONGJMP): Likewise.
2040 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2042 * exceptions.c: Likewise.
2044 2014-08-29 Gary Benson <gbenson@redhat.com>
2046 * cleanups.h: Moved to...
2047 * common/cleanups.h: New file.
2048 * cleanups.c: Moved to...
2049 * common/cleanups.c: New file. Include common-defs.h and
2050 cleanups.h. Do not include defs.h.
2051 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2052 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2053 (cleanups.o): New rule.
2055 2014-08-29 Gary Benson <gbenson@redhat.com>
2057 * common/errors.h (internal_warning): New declaration.
2058 (internal_vwarning): Likewise.
2059 * common/errors.c (internal_warning): New function.
2060 * utils.h (internal_warning): Don't declare.
2061 (internal_vwarning): Likewise.
2062 * utils.c (internal_warning): Removed.
2064 2014-08-29 Gary Benson <gbenson@redhat.com>
2066 * main.c (captured_main): Use warning during startup.
2067 Prefix startup warning messages with command name.
2069 2014-08-29 Gary Benson <gbenson@redhat.com>
2071 * main.c (captured_main): Handle usage errors with error.
2073 2014-08-29 Gary Benson <gbenson@redhat.com>
2075 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2076 exit pair with a call to error. Wrap the message with _().
2078 2014-08-29 Gary Benson <gbenson@redhat.com>
2080 * main.c (captured_main): Replace a fprintf/exit
2081 pair with a call to error. Wrap the message with _().
2083 2014-08-29 Gary Benson <gbenson@redhat.com>
2085 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2086 pairs with calls to error. Wrap the message with _().
2088 2014-08-29 Gary Benson <gbenson@redhat.com>
2090 * utils.c (vwarning): Protect calls to target_terminal_ours
2093 2014-08-29 Gary Benson <gbenson@redhat.com>
2095 * exceptions.c (print_flush): Protect calls to
2096 target_terminal_ours and wrap_here.
2098 2014-08-29 Gary Benson <gbenson@redhat.com>
2100 * utils.h (filtered_printing_initialized): New declaration.
2101 * utils.c (abort_with_message): New function.
2102 (internal_vproblem): Use abort_with_message for first level
2103 recursive internal problems, and if gdb_stderr is not set up.
2104 Protect calls to target_terminal_ours, begin_line and query.
2106 2014-08-28 Doug Evans <dje@google.com>
2108 * symtab.c (in_prologue): Move definition to better spot.
2109 (skip_prologue_using_sal): Ditto.
2111 2014-08-28 Doug Evans <dje@google.com>
2113 * symtab.c (find_function_start_sal): Move definition to better spot.
2115 2014-08-28 Yao Qi <yao@codesourcery.com>
2117 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2118 found_stack_adjust in forward scan. Remove condition check
2119 on found_stack_adjust which is always true. Indent the code.
2121 2014-08-28 Yao Qi <yao@codesourcery.com>
2123 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2124 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2125 (dwarf_decode_lines): Remove argument
2126 want_line_info. Remove condition check on want_line_info.
2129 2014-08-27 Doug Evans <dje@google.com>
2131 * dwarf2read.c (dwarf_record_line): Fix typo.
2133 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2135 * target.h (struct target_ops::to_terminal_save_ours): Remove
2137 (target_terminal_save_ours): Remove macro.
2138 * target-delegates.c: Regenerate.
2139 * inf-child.c (inf_child_target): Don't set the nonexistent
2140 field to_terminal_save_ours.
2141 * inferior.h (child_terminal_save_ours): Remove declaration.
2142 * terminal.h (gdb_save_tty_state): New declaration.
2143 * inflow.c (child_terminal_save_ours): Rename to ...
2144 (gdb_save_tty_state): ... this.
2145 * tui/tui.c: Include terminal.h.
2146 (tui_enable): Use gdb_save_tty_state instead of
2147 target_terminal_save_ours.
2148 (tui_disable): Likewise.
2150 2014-08-25 Doug Evans <dje@google.com>
2152 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2153 Pass NULL instead of 0 for context pointer.
2155 2014-08-25 Yao Qi <yao@codesourcery.com>
2157 * dwarf2read.c: Fix grammatical error.
2159 2014-08-24 Yao Qi <yao@codesourcery.com>
2161 * dwarf2read.c (scan_partial_symbols): Update comments.
2162 Rename argument 'need_pc' with 'set_addrmap'.
2163 (add_partial_namespace): Rename argument 'need_pc' with
2165 (add_partial_module): Likewise.
2166 (add_partial_subprogram): Likewise. Update comments.
2167 (dwarf2_name): Fix typo.
2169 2014-08-22 Doug Evans <dje@google.com>
2172 * dwarf2read.c (dwarf_record_line_p): New function.
2173 (dwarf_decode_lines_1): Ignore subsequent line number entries
2174 for the same line if any entry had a non-zero discriminator.
2176 2014-08-22 Doug Evans <dje@google.com>
2178 * buildsym.h (record_line_ftype): New typedef.
2179 (record_line): Use it.
2180 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2181 (dwarf_decode_lines_1): Call them.
2183 2014-08-22 Yao Qi <yao@codesourcery.com>
2185 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2186 (ctf_end): Remove code.
2188 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2190 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2191 (linux_make_corefile_notes): call update_thread_list, protected against
2194 2014-08-21 Pedro Alves <palves@redhat.com>
2196 * infcmd.c (attach_command): Remove comment.
2198 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2200 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2201 unsigned LONGEST to ULONGEST.
2203 2014-08-20 Pedro Alves <palves@redhat.com>
2205 * Makefile.in (check-read1): New rule.
2207 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2209 * value.c (value_from_contents_and_address): Strip resolved_type's
2210 typedef layers before checking its TYPE_DATA_LOCATION.
2212 2014-08-20 Pedro Alves <palves@redhat.com>
2214 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2216 2014-08-20 Yao Qi <yao@codesourcery.com>
2218 * amd64-tdep.c (amd64_classify): Add a blank line after the
2219 example. Move "*/" to a new line.
2220 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2221 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2222 * dwarf2read.c (psymtab_include_file_name): Likewise.
2224 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2225 Pedro Alves <palves@redhat.com>
2229 * ada-lang.c (coerce_unspec_val_to_type): Use
2230 value_contents_copy_raw.
2231 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2232 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2233 * cp-valprint.c (cp_print_value_fields): Let the common printing
2234 code handle optimized out values.
2235 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2236 * d-valprint.c (dynamic_array_type): Use
2237 value_bits_any_optimized_out.
2238 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2239 check_any_valid fields.
2240 (check_pieced_value_bits): Delete and inline ...
2241 (check_pieced_synthetic_pointer): ... here.
2242 (check_pieced_value_validity): Delete.
2243 (check_pieced_value_invalid): Delete.
2244 (pieced_value_funcs): Remove check_validity and check_any_valid
2246 (read_pieced_value): Use mark_value_bits_optimized_out.
2247 (write_pieced_value): Switch to use
2248 mark_value_bytes_optimized_out.
2249 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2250 of assuming the whole value is optimized out.
2251 * findvar.c (read_frame_register_value): Remove special handling
2252 of optimized out registers.
2253 (value_from_register): Use mark_value_bytes_optimized_out.
2254 * frame-unwind.c (frame_unwind_got_optimized): Use
2255 mark_value_bytes_optimized_out.
2256 * jv-valprint.c (java_value_print): Adjust.
2257 (java_print_value_fields): Let the common printing code handle
2258 optimized out values.
2259 * mips-tdep.c (mips_print_register): Remove special handling of
2260 optimized out registers.
2261 * opencl-lang.c (lval_func_check_validity): Delete.
2262 (lval_func_check_any_valid): Delete.
2263 (opencl_value_funcs): Remove check_validity and check_any_valid
2265 * p-valprint.c (pascal_object_print_value_fields): Let the common
2266 printing code handle optimized out values.
2267 * stack.c (read_frame_arg): Remove special handling of optimized
2268 out values. Fetch both VAL and ENTRYVAL before comparing
2269 contents. Adjust to value_available_contents_eq rename.
2270 * valprint.c (valprint_check_validity)
2271 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2272 (val_print_array_elements): Adjust.
2273 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2274 (value_bits_any_optimized_out): New function.
2275 (value_entirely_covered_by_range_vector): New function, factored
2276 out from value_entirely_unavailable.
2277 (value_entirely_unavailable): Reimplement.
2278 (value_entirely_optimized_out): New function.
2279 (insert_into_bit_range_vector): New function, factored out from
2280 mark_value_bits_unavailable.
2281 (mark_value_bits_unavailable): Reimplement.
2282 (struct ranges_and_idx): New struct.
2283 (find_first_range_overlap_and_match): New function, factored out
2284 from value_available_contents_bits_eq.
2285 (value_available_contents_bits_eq): Rename to ...
2286 (value_contents_bits_eq): ... this. Check both unavailable
2287 contents and optimized out contents.
2288 (value_available_contents_eq): Rename to ...
2289 (value_contents_eq): ... this.
2290 (allocate_value_lazy): Remove reference to the old optimized_out
2292 (allocate_optimized_out_value): Use
2293 mark_value_bytes_optimized_out.
2294 (require_not_optimized_out): Adjust to check whether the
2295 optimized_out vec is empty.
2296 (ranges_copy_adjusted): New function, factored out from
2297 value_contents_copy_raw.
2298 (value_contents_copy_raw): Also copy the optimized out ranges.
2299 Assert the destination ranges aren't optimized out.
2300 (value_contents_copy): Update comment, remove call to
2301 require_not_optimized_out.
2302 (value_contents_equal): Adjust to check whether the optimized_out
2304 (set_value_optimized_out, value_optimized_out_const): Delete.
2305 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2307 (value_entirely_optimized_out, value_bits_valid): Delete.
2308 (value_copy): Take a VEC copy of the 'optimized_out' field.
2309 (value_primitive_field): Remove special handling of optimized out.
2310 (value_fetch_lazy): Assert that lazy values have no unavailable
2311 regions. Use value_bits_any_optimized_out. Remove some special
2312 handling for optimized out values.
2313 * value.h: Add intro comment about <optimized out> and
2315 (struct lval_funcs): Remove check_validity and check_any_valid
2317 (set_value_optimized_out, value_optimized_out_const): Remove.
2318 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2320 (value_bits_any_optimized_out): New declaration.
2321 (value_bits_valid): Delete declaration.
2322 (value_available_contents_eq): Rename to ...
2323 (value_contents_eq): ... this, and extend comments.
2325 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2327 Fix -fsanitize=address on unreadable inferior strings.
2328 * valprint.c (val_print_string): Fix access before BUFFER.
2330 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2332 * target.c (target_struct_size): Remove.
2333 (target_struct_allocsize): Remove.
2334 (DEFAULT_ALLOCSIZE): Remove.
2335 (target_ops_p): New typedef.
2336 (DEF_VEC_P (target_ops_p)): New vector type.
2337 (target_structs): Change type to VEC (target_ops_p).
2338 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2339 (find_default_run_target): Rewrite for loop following changes to
2342 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2344 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2345 Adjust code accordingly. Adjust function description comment.
2347 2014-08-19 Yao Qi <yao@codesourcery.com>
2349 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2352 2014-08-19 Alan Modra <amodra@gmail.com>
2354 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2355 * config.in: Regenerate.
2356 * configure: Regenerate.
2358 2014-08-19 Tom Tromey <tromey@redhat.com>
2359 Gary Benson <gbenson@redhat.com>
2361 * common/common-debug.h: New file.
2362 * common/common-debug.c: Likewise.
2363 * debug.c: Likewise.
2364 * Makefile.in (SFILES): Add common/common-debug.c.
2365 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2366 (COMMON_OBS): Add common-debug.o and debug.o.
2367 (common-debug.o): New rule.
2368 * common/common-defs.h: Include common-debug.h.
2369 * common/agent.c (debug_agent_printf): New function.
2370 (DEBUG_AGENT): Redefine.
2371 * nat/i386-dregs.c (debug_printf): Undefine.
2373 2014-08-19 Gary Benson <gbenson@redhat.com>
2375 * common/common-defs.h: Include print-utils.h.
2376 * utils.h: Do not include print-utils.h.
2378 2014-08-19 Tom Tromey <tromey@redhat.com>
2379 Gary Benson <gbenson@redhat.com>
2381 * common/common-types.h: New file.
2382 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2383 * common/common-defs.h: Include common-types.h.
2384 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2387 2014-08-19 Tom Tromey <tromey@redhat.com>
2388 Gary Benson <gbenson@redhat.com>
2390 * common/errors.h: New file.
2391 * common/errors.c: Likewise.
2392 * Makefile.in (SFILES): Add common/errors.c.
2393 (HFILES_NO_SRCDIR): Add common/errors.h.
2394 (COMMON_OBS): Add errors.o.
2395 (errors.o): New rule.
2396 * common/common-defs.h: Include errors.h.
2397 * utils.h (perror_with_name, error, verror, warning, vwarning):
2399 * common/common-utils.h: (malloc_failure, internal_error):
2402 2014-08-19 Gary Benson <gbenson@redhat.com>
2404 * utils.c (internal_vproblem): Always print the message.
2406 2014-08-18 Doug Evans <dje@google.com>
2408 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2410 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2412 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2413 Return 0 if TYPE is dynamic.
2414 (print_range): Add handling of dynamic ranges.
2416 2014-08-18 Keven Boell <keven.boell@intel.com>
2417 Joel Brobecker <brobecker@adacore.com>
2419 * gdbtypes.h (struct main_type): Add field "data_location".
2420 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2421 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2422 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2423 a dynamic data location.
2424 (resolve_dynamic_type): Add DW_AT_data_location handling.
2425 (copy_recursive, copy_type): Copy the data_location information
2427 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2428 * value.c (value_from_contents_and_address): Add
2429 DW_AT_data_location handling.
2431 2014-08-18 Keven Boell <keven.boell@intel.com>
2432 Joel Brobecker <brobecker@adacore.com>
2434 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2435 field "get_object_address".
2436 * dwarf2expr.c (execute_stack_op): Add handling for
2437 DW_OP_push_object_address.
2438 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2439 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2440 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2441 (dwarf_expr_get_obj_addr): New function.
2442 (dwarf_expr_ctx_funcs): Add get_object_address field.
2443 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2444 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2445 (dwarf2_evaluate_property): Add parameter "address". Use it.
2446 (needs_get_obj_addr): New function.
2447 (needs_frame_ctx_funcs): Add get_object_address field.
2448 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2449 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2450 (resolve_dynamic_array): Likewise.
2452 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2454 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2455 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2456 fixed value for records and unions for which some GNAT encodings
2459 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2461 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2462 rewrite to avoid "else if" and "else" constructs. Should be
2463 a no-op in practice.
2465 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2467 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2470 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2473 * eval.c: Update all calls to find_overload_match.
2474 * valarith.c: Likewise.
2475 (value_user_defined_cpp_op, value_user_defined_op): New
2476 argument NOSIDE. Update all callers.
2477 * valops.c (find_overload_match): New argument NOSIDE.
2478 * value.h (find_overload_match): Update signature.
2480 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2482 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2483 'items' methods instead of 'iteritems' method on dictionaries.
2485 2014-08-15 Doug Evans <dje@google.com>
2487 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2490 2014-08-15 Doug Evans <dje@google.com>
2492 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2494 2014-08-15 Doug Evans <dje@google.com>
2496 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2498 2014-08-15 Doug Evans <dje@google.com>
2500 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2503 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2505 * dcache.h: Include target.h, to avoid compile time warnings.
2507 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2509 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2510 frame_info" partial declaration.
2511 * gdbarch.h: Regenerate.
2513 2014-08-15 Yao Qi <yao@codesourcery.com>
2515 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2516 Add parameter 'decode_for_pst_p'. Callers update.
2518 2014-08-13 Yao Qi <yao@codesourcery.com>
2521 * configure.ac: Use local variable 'pos'.
2522 * configure: Regenerated.
2524 2014-08-11 Doug Evans <dje@google.com>
2526 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2527 message, it is redundant with "Reading symbols from ..." message.
2529 2014-08-10 Doug Evans <xdje42@gmail.com>
2531 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2533 2014-08-09 Yao Qi <yao@codesourcery.com>
2536 * remote.c (remote_xfer_partial): Remove dead code.
2538 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2540 * ia64-linux-tdep.c: Include "regset.h".
2541 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2542 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2543 (ia64_linux_supply_fpregset): New function.
2544 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2545 (ia64_linux_regset_from_core_section): New function.
2546 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2549 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2551 * m68klinux-tdep.c: Include "regset.h".
2552 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2553 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2554 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2555 (m68k_linux_regset_from_core_section): New function.
2556 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2559 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2561 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2562 function. Move logic to...
2563 (tilegx_linux_regmap): ... this new register map.
2564 (tilegx_linux_regset): Refer to register map, replace supply
2565 method by regcache_supply_regset, and add collect method.
2566 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2567 TILEGX_FIRST_EASY_REGNUM.
2569 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2571 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2572 that calls regcache_supply_regset and handles the EPC register
2573 separately. Move main logic to...
2574 (score7_linux_gregmap): ... this new register map.
2575 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2576 (score7_linux_gregset): Refer to register map. Add collect method.
2577 (score7_linux_regset_from_core_section): Replace
2578 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2579 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2580 (struct regset): Delete unused forward declaraction.
2581 (struct pt_regs): Delete structure definition.
2582 (elf_gregset_t): Delete typedef.
2584 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2586 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2587 (nios2_core_regset): Add collect method.
2589 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2591 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2592 platform-independent and don't write to read-only input buffer.
2593 (m32r_linux_collect_gregset): New function.
2594 (m32r_linux_gregset): Add collect method.
2596 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2598 * hppa-linux-tdep.c (greg_map): Rename to...
2599 (hppa_linux_gregmap): ... this. Also convert to
2600 regcache_map_entry format.
2601 (hppa_linux_supply_regset): Delete function.
2602 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2603 (hppa_linux_fpregmap): ... this new register map.
2604 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2605 register map, replace supply method by regcache_supply_regset, and
2606 add collect method regcache_collect_regset.
2608 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2610 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2611 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2612 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2613 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2614 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2615 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2616 (frv_linux_supply_gregset): Replace main logic by call to
2617 regcache_supply_regset, but keep clearing gr32-gr63.
2618 (frv_linux_supply_fpregset): Delete function.
2619 (frv_linux_gregset): Refer to appropriate register map and add
2620 regcache_collect_regset as the collect method.
2621 (frv_linux_fpregset): Likewise. Also exchange the supply method
2622 by regcache_supply_regset.
2624 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2626 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2627 by call to alpha_supply_int_regs.
2628 (alpha_linux_collect_gregset): New function.
2629 (alpha_linux_supply_fpregset): Replace logic by call to
2630 alpha_supply_fp_regs.
2631 (alpha_linux_collect_fpregset): New function.
2632 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2634 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2636 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2637 by call to regcache_collect_regset.
2638 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2639 instead of aarch64_linux_supply_gregset/_fpregset.
2640 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2641 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2642 header file instead.
2643 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2644 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2645 functions. Move logic to ...
2646 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2648 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2649 refer to new register maps, replace *_regset_from_core by
2650 regcache_supply_regset, and also use regcache_collect_regset.
2651 * aarch64-linux-tdep.h: Include "regset.h".
2652 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2654 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2655 macros, moved from C source file.
2656 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2657 variable declarations.
2659 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2661 * s390-linux-nat.c: Include "regset.h".
2662 (regmap_gregset): Delete macro.
2663 (s390_64_regmap_gregset): New register map for
2664 regcache_supply/_collect_regset.
2665 (s390_64_gregset): New regset.
2666 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2667 (regmap_fpregset): Delete macro.
2668 (s390_native_supply, s390_native_collect): Delete functions.
2669 (supply_gregset, fill_gregset): Replace s390-specific regmap
2670 handling by a call to regcache_supply/_collect_regset.
2671 (supply_fpregset, fill_fpregset): Call regcache_supply/
2672 _collect_regset instead of s390_native_supply/_collect.
2673 (fetch_regset, store_regset): Likewise. Also change the last
2674 parameter to a regset instead of a regmap.
2675 (s390_linux_fetch_inferior_registers)
2676 (390_linux_store_inferior_registers): Adjust last parameter in
2677 calls to fetch_regset and store_regset.
2678 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2679 (s390_gregmap): ... this. Also make static const and convert to
2680 regcache_map_entry format.
2681 (s390x_regmap_gregset): Delete.
2682 (s390_regmap_fpregset): Rename to...
2683 (s390_fpregmap): ... this. Make static const and convert to
2684 regcache_map_entry format.
2685 (s390_regmap_upper, s390_regmap_last_break)
2686 (s390x_regmap_last_break, s390_regmap_system_call)
2687 (s390_regmap_tdb): Likewise.
2688 (s390_supply_regset, s390_collect_regset): Remove functions.
2689 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2691 (s390_gregset, s390_fpregset, s390_upper_regset)
2692 (s390_last_break_regset, s390x_last_break_regset)
2693 (s390_system_call_regset, s390_tdb_regset): Make global and
2694 replace s390_supply/_collect_regset by regcache_supply/
2696 (s390x_gregset): Delete.
2697 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2698 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2699 (s390_regmap_fpregset, s390_regmap_last_break)
2700 (s390x_regmap_last_break, s390_regmap_system_call)
2701 (s390_regmap_tdb): Delete global variable declarations.
2702 (s390_gregset, s390_fpregset, s390_last_break_regset)
2703 (s390x_last_break_regset, s390_system_call_regset)
2704 (s390_tdb_regset): New global variable declarations.
2706 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2708 * regcache.c: Include "regset.h".
2709 (regcache_transfer_regset): New local function.
2710 (regcache_supply_regset, regcache_collect_regset): New functions.
2711 * regcache.h (struct regcache_map_entry): New structure.
2712 (REGCACHE_MAP_SKIP): New enum value.
2713 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2715 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2717 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2718 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2719 (ppc_linux_collect_gregset ): Likewise.
2720 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2721 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2722 (ppc_collect_vrregset): Likewise.
2723 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2726 2014-08-07 Yao Qi <yao@codesourcery.com>
2728 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2729 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2730 * remote.c (remote_read_bytes): Likewise.
2732 2014-08-07 Yao Qi <yao@codesourcery.com>
2734 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2736 2014-08-07 Yao Qi <yao@codesourcery.com>
2739 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2740 TARGET_XFER_OK instead of 0.
2742 2014-08-07 Gary Benson <gbenson@redhat.com>
2744 * common/common-defs.h: Include errno.h.
2745 * defs.h: Do not include errno.h.
2746 * ada-typeprint.c: Likewise.
2747 * c-typeprint.c: Likewise.
2748 * core-regset.c: Likewise.
2749 * corefile.c: Likewise.
2750 * corelow.c: Likewise.
2751 * event-loop.c: Likewise.
2752 * f-typeprint.c: Likewise.
2753 * gnu-nat.c: Likewise.
2754 * go32-nat.c: Likewise.
2755 * i386gnu-nat.c: Likewise.
2756 * m2-typeprint.c: Likewise.
2757 * nat/linux-btrace.c: Likewise.
2758 * p-typeprint.c: Likewise.
2759 * procfs.c: Likewise.
2760 * remote-sim.c: Likewise.
2761 * rs6000-nat.c: Likewise.
2762 * target.c: Likewise.
2763 * typeprint.c: Likewise.
2764 * ui-file.c: Likewise.
2765 * valops.c: Likewise.
2766 * valprint.c: Likewise.
2768 2014-08-07 Gary Benson <gbenson@redhat.com>
2770 * common/common-defs.h: Include string.h.
2771 * aarch64-tdep.c: Do not include string.h.
2772 * ada-exp.y: Likewise.
2773 * ada-lang.c: Likewise.
2774 * ada-lex.l: Likewise.
2775 * ada-typeprint.c: Likewise.
2776 * ada-valprint.c: Likewise.
2777 * aix-thread.c: Likewise.
2778 * alpha-linux-tdep.c: Likewise.
2779 * alpha-mdebug-tdep.c: Likewise.
2780 * alpha-nat.c: Likewise.
2781 * alpha-osf1-tdep.c: Likewise.
2782 * alpha-tdep.c: Likewise.
2783 * alphanbsd-tdep.c: Likewise.
2784 * amd64-dicos-tdep.c: Likewise.
2785 * amd64-linux-tdep.c: Likewise.
2786 * amd64-nat.c: Likewise.
2787 * amd64-sol2-tdep.c: Likewise.
2788 * amd64fbsd-tdep.c: Likewise.
2789 * amd64obsd-tdep.c: Likewise.
2790 * arch-utils.c: Likewise.
2791 * arm-linux-nat.c: Likewise.
2792 * arm-linux-tdep.c: Likewise.
2793 * arm-tdep.c: Likewise.
2794 * arm-wince-tdep.c: Likewise.
2795 * armbsd-tdep.c: Likewise.
2796 * armnbsd-nat.c: Likewise.
2797 * armnbsd-tdep.c: Likewise.
2798 * armobsd-tdep.c: Likewise.
2799 * avr-tdep.c: Likewise.
2800 * ax-gdb.c: Likewise.
2801 * ax-general.c: Likewise.
2802 * bcache.c: Likewise.
2803 * bfin-tdep.c: Likewise.
2804 * breakpoint.c: Likewise.
2805 * build-id.c: Likewise.
2806 * buildsym.c: Likewise.
2807 * c-exp.y: Likewise.
2808 * c-lang.c: Likewise.
2809 * c-typeprint.c: Likewise.
2810 * c-valprint.c: Likewise.
2811 * charset.c: Likewise.
2812 * cli-out.c: Likewise.
2813 * cli/cli-cmds.c: Likewise.
2814 * cli/cli-decode.c: Likewise.
2815 * cli/cli-dump.c: Likewise.
2816 * cli/cli-interp.c: Likewise.
2817 * cli/cli-logging.c: Likewise.
2818 * cli/cli-script.c: Likewise.
2819 * cli/cli-setshow.c: Likewise.
2820 * cli/cli-utils.c: Likewise.
2821 * coffread.c: Likewise.
2822 * common/agent.c: Likewise.
2823 * common/buffer.c: Likewise.
2824 * common/buffer.h: Likewise.
2825 * common/common-utils.c: Likewise.
2826 * common/filestuff.c: Likewise.
2827 * common/filestuff.c: Likewise.
2828 * common/format.c: Likewise.
2829 * common/print-utils.c: Likewise.
2830 * common/rsp-low.c: Likewise.
2831 * common/signals.c: Likewise.
2832 * common/vec.h: Likewise.
2833 * common/xml-utils.c: Likewise.
2834 * core-regset.c: Likewise.
2835 * corefile.c: Likewise.
2836 * corelow.c: Likewise.
2837 * cp-abi.c: Likewise.
2838 * cp-name-parser.y: Likewise.
2839 * cp-support.c: Likewise.
2840 * cp-valprint.c: Likewise.
2841 * cris-tdep.c: Likewise.
2842 * d-exp.y: Likewise.
2843 * darwin-nat.c: Likewise.
2844 * dbxread.c: Likewise.
2845 * dcache.c: Likewise.
2846 * demangle.c: Likewise.
2847 * dicos-tdep.c: Likewise.
2848 * disasm.c: Likewise.
2849 * doublest.c: Likewise.
2850 * dsrec.c: Likewise.
2851 * dummy-frame.c: Likewise.
2852 * dwarf2-frame.c: Likewise.
2853 * dwarf2loc.c: Likewise.
2854 * dwarf2read.c: Likewise.
2855 * elfread.c: Likewise.
2856 * environ.c: Likewise.
2858 * event-loop.c: Likewise.
2859 * exceptions.c: Likewise.
2861 * expprint.c: Likewise.
2862 * f-exp.y: Likewise.
2863 * f-lang.c: Likewise.
2864 * f-typeprint.c: Likewise.
2865 * f-valprint.c: Likewise.
2866 * fbsd-nat.c: Likewise.
2867 * findcmd.c: Likewise.
2868 * findvar.c: Likewise.
2869 * fork-child.c: Likewise.
2870 * frame.c: Likewise.
2871 * frv-linux-tdep.c: Likewise.
2872 * frv-tdep.c: Likewise.
2874 * gdb_bfd.c: Likewise.
2875 * gdbarch.c: Likewise.
2876 * gdbarch.sh: Likewise.
2877 * gdbtypes.c: Likewise.
2878 * gnu-nat.c: Likewise.
2879 * gnu-v2-abi.c: Likewise.
2880 * gnu-v3-abi.c: Likewise.
2881 * go-exp.y: Likewise.
2882 * go-lang.c: Likewise.
2883 * go32-nat.c: Likewise.
2884 * guile/guile.c: Likewise.
2885 * guile/scm-auto-load.c: Likewise.
2886 * hppa-hpux-tdep.c: Likewise.
2887 * hppa-linux-nat.c: Likewise.
2888 * hppanbsd-tdep.c: Likewise.
2889 * hppaobsd-tdep.c: Likewise.
2890 * i386-cygwin-tdep.c: Likewise.
2891 * i386-dicos-tdep.c: Likewise.
2892 * i386-linux-tdep.c: Likewise.
2893 * i386-nto-tdep.c: Likewise.
2894 * i386-sol2-tdep.c: Likewise.
2895 * i386-tdep.c: Likewise.
2896 * i386bsd-tdep.c: Likewise.
2897 * i386gnu-nat.c: Likewise.
2898 * i386nbsd-tdep.c: Likewise.
2899 * i386obsd-tdep.c: Likewise.
2900 * i387-tdep.c: Likewise.
2901 * ia64-libunwind-tdep.c: Likewise.
2902 * ia64-linux-nat.c: Likewise.
2903 * inf-child.c: Likewise.
2904 * inf-ptrace.c: Likewise.
2905 * inf-ttrace.c: Likewise.
2906 * infcall.c: Likewise.
2907 * infcmd.c: Likewise.
2908 * inflow.c: Likewise.
2909 * infrun.c: Likewise.
2910 * interps.c: Likewise.
2911 * iq2000-tdep.c: Likewise.
2912 * irix5-nat.c: Likewise.
2913 * jv-exp.y: Likewise.
2914 * jv-lang.c: Likewise.
2915 * jv-typeprint.c: Likewise.
2916 * jv-valprint.c: Likewise.
2917 * language.c: Likewise.
2918 * linux-fork.c: Likewise.
2919 * linux-nat.c: Likewise.
2920 * lm32-tdep.c: Likewise.
2921 * m2-exp.y: Likewise.
2922 * m2-typeprint.c: Likewise.
2923 * m32c-tdep.c: Likewise.
2924 * m32r-linux-nat.c: Likewise.
2925 * m32r-linux-tdep.c: Likewise.
2926 * m32r-rom.c: Likewise.
2927 * m32r-tdep.c: Likewise.
2928 * m68hc11-tdep.c: Likewise.
2929 * m68k-tdep.c: Likewise.
2930 * m68kbsd-tdep.c: Likewise.
2931 * m68klinux-nat.c: Likewise.
2932 * m68klinux-tdep.c: Likewise.
2933 * m88k-tdep.c: Likewise.
2934 * machoread.c: Likewise.
2935 * macrocmd.c: Likewise.
2937 * mdebugread.c: Likewise.
2938 * mem-break.c: Likewise.
2939 * memattr.c: Likewise.
2940 * memory-map.c: Likewise.
2941 * mep-tdep.c: Likewise.
2942 * mi/mi-cmd-break.c: Likewise.
2943 * mi/mi-cmd-disas.c: Likewise.
2944 * mi/mi-cmd-env.c: Likewise.
2945 * mi/mi-cmd-stack.c: Likewise.
2946 * mi/mi-cmd-var.c: Likewise.
2947 * mi/mi-cmds.c: Likewise.
2948 * mi/mi-console.c: Likewise.
2949 * mi/mi-getopt.c: Likewise.
2950 * mi/mi-interp.c: Likewise.
2951 * mi/mi-main.c: Likewise.
2952 * mi/mi-parse.c: Likewise.
2953 * microblaze-rom.c: Likewise.
2954 * microblaze-tdep.c: Likewise.
2955 * mingw-hdep.c: Likewise.
2956 * minidebug.c: Likewise.
2957 * minsyms.c: Likewise.
2958 * mips-irix-tdep.c: Likewise.
2959 * mips-linux-tdep.c: Likewise.
2960 * mips-tdep.c: Likewise.
2961 * mips64obsd-tdep.c: Likewise.
2962 * mipsnbsd-tdep.c: Likewise.
2963 * mipsread.c: Likewise.
2964 * mn10300-linux-tdep.c: Likewise.
2965 * mn10300-tdep.c: Likewise.
2966 * monitor.c: Likewise.
2967 * moxie-tdep.c: Likewise.
2968 * mt-tdep.c: Likewise.
2969 * nat/linux-btrace.c: Likewise.
2970 * nat/linux-osdata.c: Likewise.
2971 * nat/linux-procfs.c: Likewise.
2972 * nat/linux-ptrace.c: Likewise.
2973 * nat/linux-waitpid.c: Likewise.
2974 * nbsd-tdep.c: Likewise.
2975 * nios2-linux-tdep.c: Likewise.
2976 * nto-procfs.c: Likewise.
2977 * nto-tdep.c: Likewise.
2978 * objc-lang.c: Likewise.
2979 * objfiles.c: Likewise.
2980 * opencl-lang.c: Likewise.
2981 * osabi.c: Likewise.
2982 * osdata.c: Likewise.
2983 * p-exp.y: Likewise.
2984 * p-lang.c: Likewise.
2985 * p-typeprint.c: Likewise.
2986 * parse.c: Likewise.
2987 * posix-hdep.c: Likewise.
2988 * ppc-linux-nat.c: Likewise.
2989 * ppc-sysv-tdep.c: Likewise.
2990 * ppcfbsd-tdep.c: Likewise.
2991 * ppcnbsd-tdep.c: Likewise.
2992 * ppcobsd-tdep.c: Likewise.
2993 * printcmd.c: Likewise.
2994 * procfs.c: Likewise.
2995 * prologue-value.c: Likewise.
2996 * python/py-auto-load.c: Likewise.
2997 * python/py-gdb-readline.c: Likewise.
2998 * ravenscar-thread.c: Likewise.
2999 * regcache.c: Likewise.
3000 * registry.c: Likewise.
3001 * remote-fileio.c: Likewise.
3002 * remote-m32r-sdi.c: Likewise.
3003 * remote-mips.c: Likewise.
3004 * remote-notif.c: Likewise.
3005 * remote-sim.c: Likewise.
3006 * remote.c: Likewise.
3007 * reverse.c: Likewise.
3008 * rs6000-aix-tdep.c: Likewise.
3009 * ser-base.c: Likewise.
3010 * ser-go32.c: Likewise.
3011 * ser-mingw.c: Likewise.
3012 * ser-pipe.c: Likewise.
3013 * ser-tcp.c: Likewise.
3014 * ser-unix.c: Likewise.
3015 * serial.c: Likewise.
3016 * sh-tdep.c: Likewise.
3017 * sh64-tdep.c: Likewise.
3018 * shnbsd-tdep.c: Likewise.
3020 * sol-thread.c: Likewise.
3021 * solib-dsbt.c: Likewise.
3022 * solib-frv.c: Likewise.
3023 * solib-osf.c: Likewise.
3024 * solib-som.c: Likewise.
3025 * solib-spu.c: Likewise.
3026 * solib-target.c: Likewise.
3027 * solib.c: Likewise.
3028 * somread.c: Likewise.
3029 * source.c: Likewise.
3030 * sparc-nat.c: Likewise.
3031 * sparc-sol2-tdep.c: Likewise.
3032 * sparc-tdep.c: Likewise.
3033 * sparc64-tdep.c: Likewise.
3034 * sparc64fbsd-tdep.c: Likewise.
3035 * sparc64nbsd-tdep.c: Likewise.
3036 * sparcnbsd-tdep.c: Likewise.
3037 * spu-linux-nat.c: Likewise.
3038 * spu-multiarch.c: Likewise.
3039 * spu-tdep.c: Likewise.
3040 * stabsread.c: Likewise.
3041 * stack.c: Likewise.
3042 * std-regs.c: Likewise.
3043 * symfile.c: Likewise.
3044 * symmisc.c: Likewise.
3045 * symtab.c: Likewise.
3046 * target.c: Likewise.
3047 * thread.c: Likewise.
3048 * tilegx-linux-nat.c: Likewise.
3049 * tilegx-tdep.c: Likewise.
3051 * tracepoint.c: Likewise.
3052 * tui/tui-command.c: Likewise.
3053 * tui/tui-data.c: Likewise.
3054 * tui/tui-disasm.c: Likewise.
3055 * tui/tui-file.c: Likewise.
3056 * tui/tui-layout.c: Likewise.
3057 * tui/tui-out.c: Likewise.
3058 * tui/tui-regs.c: Likewise.
3059 * tui/tui-source.c: Likewise.
3060 * tui/tui-stack.c: Likewise.
3061 * tui/tui-win.c: Likewise.
3062 * tui/tui-windata.c: Likewise.
3063 * tui/tui-winsource.c: Likewise.
3064 * typeprint.c: Likewise.
3065 * ui-file.c: Likewise.
3066 * ui-out.c: Likewise.
3067 * user-regs.c: Likewise.
3068 * utils.c: Likewise.
3069 * v850-tdep.c: Likewise.
3070 * valarith.c: Likewise.
3071 * valops.c: Likewise.
3072 * valprint.c: Likewise.
3073 * value.c: Likewise.
3074 * varobj.c: Likewise.
3075 * vax-tdep.c: Likewise.
3076 * vaxnbsd-tdep.c: Likewise.
3077 * vaxobsd-tdep.c: Likewise.
3078 * windows-nat.c: Likewise.
3079 * xcoffread.c: Likewise.
3080 * xml-support.c: Likewise.
3081 * xstormy16-tdep.c: Likewise.
3082 * xtensa-linux-nat.c: Likewise.
3084 2014-08-07 Gary Benson <gbenson@redhat.com>
3086 * common/common-defs.h: Include gdb_assert.h.
3087 * aarch64-tdep.c: Do not include gdb_assert.h.
3088 * addrmap.c: Likewise.
3089 * aix-thread.c: Likewise.
3090 * alpha-linux-tdep.c: Likewise.
3091 * alpha-mdebug-tdep.c: Likewise.
3092 * alphanbsd-tdep.c: Likewise.
3093 * amd64-nat.c: Likewise.
3094 * amd64-tdep.c: Likewise.
3095 * amd64bsd-nat.c: Likewise.
3096 * amd64fbsd-nat.c: Likewise.
3097 * amd64fbsd-tdep.c: Likewise.
3098 * amd64nbsd-nat.c: Likewise.
3099 * amd64nbsd-tdep.c: Likewise.
3100 * amd64obsd-nat.c: Likewise.
3101 * amd64obsd-tdep.c: Likewise.
3102 * arch-utils.c: Likewise.
3103 * arm-tdep.c: Likewise.
3104 * armbsd-tdep.c: Likewise.
3106 * bcache.c: Likewise.
3107 * bfin-tdep.c: Likewise.
3108 * blockframe.c: Likewise.
3109 * breakpoint.c: Likewise.
3110 * bsd-kvm.c: Likewise.
3111 * bsd-uthread.c: Likewise.
3112 * buildsym.c: Likewise.
3113 * c-exp.y: Likewise.
3114 * c-lang.c: Likewise.
3115 * charset.c: Likewise.
3116 * cleanups.c: Likewise.
3117 * cli-out.c: Likewise.
3118 * cli/cli-decode.c: Likewise.
3119 * cli/cli-dump.c: Likewise.
3120 * cli/cli-logging.c: Likewise.
3121 * cli/cli-script.c: Likewise.
3122 * cli/cli-utils.c: Likewise.
3123 * coffread.c: Likewise.
3124 * common/common-utils.c: Likewise.
3125 * common/queue.h: Likewise.
3126 * common/signals.c: Likewise.
3127 * common/vec.h: Likewise.
3128 * complaints.c: Likewise.
3129 * completer.c: Likewise.
3130 * corelow.c: Likewise.
3131 * cp-abi.c: Likewise.
3132 * cp-name-parser.y: Likewise.
3133 * cp-namespace.c: Likewise.
3134 * cp-support.c: Likewise.
3135 * cris-tdep.c: Likewise.
3136 * dbxread.c: Likewise.
3137 * dictionary.c: Likewise.
3138 * doublest.c: Likewise.
3139 * dsrec.c: Likewise.
3140 * dummy-frame.c: Likewise.
3141 * dwarf2-frame-tailcall.c: Likewise.
3142 * dwarf2-frame.c: Likewise.
3143 * dwarf2expr.c: Likewise.
3144 * dwarf2loc.c: Likewise.
3145 * dwarf2read.c: Likewise.
3147 * event-loop.c: Likewise.
3148 * exceptions.c: Likewise.
3149 * expprint.c: Likewise.
3150 * f-valprint.c: Likewise.
3151 * fbsd-nat.c: Likewise.
3152 * findvar.c: Likewise.
3153 * frame-unwind.c: Likewise.
3154 * frame.c: Likewise.
3155 * frv-tdep.c: Likewise.
3156 * gcore.c: Likewise.
3157 * gdb-dlfcn.c: Likewise.
3158 * gdb_bfd.c: Likewise.
3159 * gdbarch.c: Likewise.
3160 * gdbarch.sh: Likewise.
3161 * gdbtypes.c: Likewise.
3162 * gnu-nat.c: Likewise.
3163 * gnu-v3-abi.c: Likewise.
3164 * go-lang.c: Likewise.
3165 * guile/scm-exception.c: Likewise.
3166 * guile/scm-gsmob.c: Likewise.
3167 * guile/scm-lazy-string.c: Likewise.
3168 * guile/scm-math.c: Likewise.
3169 * guile/scm-pretty-print.c: Likewise.
3170 * guile/scm-safe-call.c: Likewise.
3171 * guile/scm-utils.c: Likewise.
3172 * guile/scm-value.c: Likewise.
3173 * h8300-tdep.c: Likewise.
3174 * hppa-hpux-nat.c: Likewise.
3175 * hppa-tdep.c: Likewise.
3176 * hppanbsd-tdep.c: Likewise.
3177 * hppaobsd-tdep.c: Likewise.
3178 * i386-darwin-nat.c: Likewise.
3179 * i386-darwin-tdep.c: Likewise.
3180 * i386-nto-tdep.c: Likewise.
3181 * i386-tdep.c: Likewise.
3182 * i386bsd-nat.c: Likewise.
3183 * i386fbsd-tdep.c: Likewise.
3184 * i386gnu-nat.c: Likewise.
3185 * i386nbsd-tdep.c: Likewise.
3186 * i386obsd-tdep.c: Likewise.
3187 * i387-tdep.c: Likewise.
3188 * ia64-libunwind-tdep.c: Likewise.
3189 * ia64-tdep.c: Likewise.
3190 * inf-ptrace.c: Likewise.
3191 * inf-ttrace.c: Likewise.
3192 * infcall.c: Likewise.
3193 * infcmd.c: Likewise.
3194 * infrun.c: Likewise.
3195 * inline-frame.c: Likewise.
3196 * interps.c: Likewise.
3197 * jv-lang.c: Likewise.
3198 * jv-typeprint.c: Likewise.
3199 * linux-fork.c: Likewise.
3200 * linux-nat.c: Likewise.
3201 * linux-thread-db.c: Likewise.
3202 * m32c-tdep.c: Likewise.
3203 * m32r-linux-nat.c: Likewise.
3204 * m32r-tdep.c: Likewise.
3205 * m68k-tdep.c: Likewise.
3206 * m68kbsd-nat.c: Likewise.
3207 * m68kbsd-tdep.c: Likewise.
3208 * m88k-tdep.c: Likewise.
3209 * machoread.c: Likewise.
3210 * macroexp.c: Likewise.
3211 * macrotab.c: Likewise.
3212 * maint.c: Likewise.
3213 * mdebugread.c: Likewise.
3214 * memory-map.c: Likewise.
3215 * mep-tdep.c: Likewise.
3216 * mi/mi-common.c: Likewise.
3217 * microblaze-tdep.c: Likewise.
3218 * mingw-hdep.c: Likewise.
3219 * mips-linux-nat.c: Likewise.
3220 * mips-linux-tdep.c: Likewise.
3221 * mips-tdep.c: Likewise.
3222 * mips64obsd-tdep.c: Likewise.
3223 * mipsnbsd-tdep.c: Likewise.
3224 * mn10300-linux-tdep.c: Likewise.
3225 * mn10300-tdep.c: Likewise.
3226 * moxie-tdep.c: Likewise.
3227 * mt-tdep.c: Likewise.
3228 * nat/linux-btrace.c: Likewise.
3229 * nat/linux-osdata.c: Likewise.
3230 * nat/linux-ptrace.c: Likewise.
3231 * nat/mips-linux-watch.c: Likewise.
3232 * nios2-linux-tdep.c: Likewise.
3233 * nios2-tdep.c: Likewise.
3234 * objc-lang.c: Likewise.
3235 * objfiles.c: Likewise.
3236 * obsd-nat.c: Likewise.
3237 * opencl-lang.c: Likewise.
3238 * osabi.c: Likewise.
3239 * parse.c: Likewise.
3240 * ppc-linux-nat.c: Likewise.
3241 * ppc-sysv-tdep.c: Likewise.
3242 * ppcfbsd-nat.c: Likewise.
3243 * ppcfbsd-tdep.c: Likewise.
3244 * ppcnbsd-nat.c: Likewise.
3245 * ppcnbsd-tdep.c: Likewise.
3246 * ppcobsd-nat.c: Likewise.
3247 * ppcobsd-tdep.c: Likewise.
3248 * printcmd.c: Likewise.
3249 * procfs.c: Likewise.
3250 * prologue-value.c: Likewise.
3251 * psymtab.c: Likewise.
3252 * python/py-lazy-string.c: Likewise.
3253 * python/py-value.c: Likewise.
3254 * regcache.c: Likewise.
3255 * reggroups.c: Likewise.
3256 * registry.c: Likewise.
3257 * remote-sim.c: Likewise.
3258 * remote.c: Likewise.
3259 * rs6000-aix-tdep.c: Likewise.
3260 * rs6000-tdep.c: Likewise.
3261 * s390-linux-tdep.c: Likewise.
3262 * score-tdep.c: Likewise.
3263 * ser-base.c: Likewise.
3264 * ser-mingw.c: Likewise.
3265 * sh-tdep.c: Likewise.
3266 * sh64-tdep.c: Likewise.
3267 * solib-darwin.c: Likewise.
3268 * solib-spu.c: Likewise.
3269 * solib-svr4.c: Likewise.
3270 * source.c: Likewise.
3271 * sparc-nat.c: Likewise.
3272 * sparc-sol2-tdep.c: Likewise.
3273 * sparc-tdep.c: Likewise.
3274 * sparc64-sol2-tdep.c: Likewise.
3275 * sparc64-tdep.c: Likewise.
3276 * sparc64fbsd-tdep.c: Likewise.
3277 * sparc64nbsd-tdep.c: Likewise.
3278 * sparc64obsd-tdep.c: Likewise.
3279 * sparcnbsd-tdep.c: Likewise.
3280 * sparcobsd-tdep.c: Likewise.
3281 * spu-multiarch.c: Likewise.
3282 * spu-tdep.c: Likewise.
3283 * stabsread.c: Likewise.
3284 * stack.c: Likewise.
3285 * symfile.c: Likewise.
3286 * symtab.c: Likewise.
3287 * target-descriptions.c: Likewise.
3288 * target-memory.c: Likewise.
3289 * target.c: Likewise.
3290 * tic6x-linux-tdep.c: Likewise.
3291 * tic6x-tdep.c: Likewise.
3292 * tilegx-linux-nat.c: Likewise.
3293 * tilegx-tdep.c: Likewise.
3295 * tramp-frame.c: Likewise.
3296 * tui/tui-out.c: Likewise.
3297 * tui/tui-winsource.c: Likewise.
3298 * ui-out.c: Likewise.
3299 * user-regs.c: Likewise.
3300 * utils.c: Likewise.
3301 * v850-tdep.c: Likewise.
3302 * valops.c: Likewise.
3303 * value.c: Likewise.
3304 * varobj.c: Likewise.
3305 * vax-nat.c: Likewise.
3306 * xml-syscall.c: Likewise.
3307 * xml-tdesc.c: Likewise.
3308 * xstormy16-tdep.c: Likewise.
3309 * xtensa-linux-nat.c: Likewise.
3310 * xtensa-tdep.c: Likewise.
3312 2014-08-07 Gary Benson <gbenson@redhat.com>
3314 * common/common-defs.h: Include common-utils.h.
3315 * defs.h: Do not include common-utils.h.
3316 * common/gdb_assert.h: Likewise.
3317 * darwin-nat.h: Likewise.
3318 * nat/linux-btrace.c: Likewise.
3319 * target/waitstatus.h: Likewise.
3321 2014-08-07 Gary Benson <gbenson@redhat.com>
3323 * common/common-defs.h: Include ptid.h.
3324 * defs.h: Do not include ptid.h.
3325 * inferior.h: Likewise.
3326 * infrun.h: Likewise.
3327 * nat/linux-btrace.h: Likewise.
3328 * nat/linux-osdata.h: Likewise.
3329 * target/waitstatus.h: Likewise.
3331 2014-08-07 Gary Benson <gbenson@redhat.com>
3333 * common/common-defs.h: Include gdb_locale.h.
3334 * defs.h: Do not include gdb_locale.h.
3336 2014-08-07 Gary Benson <gbenson@redhat.com>
3338 * common/common-defs.h: Include gdb/signals.h.
3339 * defs.h: Do not include gdb/signals.h.
3341 2014-08-07 Gary Benson <gbenson@redhat.com>
3343 * common/common-defs.h: Include pathmax.h.
3344 * defs.h: Do not include pathmax.h.
3346 2014-08-07 Gary Benson <gbenson@redhat.com>
3348 * common/common-defs.h: Include libiberty.h.
3349 * defs.h: Do not include libiberty.h.
3350 * common/queue.h: Likewise.
3351 * cp-name-parser.y: Likewise.
3352 * mi/mi-cmd-catch.c: Likewise.
3353 * python/python.c: Likewise.
3355 2014-08-07 Gary Benson <gbenson@redhat.com>
3357 * common/common-defs.h: Include ansidecl.h.
3358 * defs.h: Do not include ansidecl.h.
3359 * common/buffer.h: Likewise.
3360 * common/common-utils.h: Likewise.
3362 2014-08-07 Gary Benson <gbenson@redhat.com>
3364 * common/common-defs.h: Include stddef.h.
3365 * defs.h: Do not include stddef.h.
3366 * common/common-utils.h: Likewise.
3367 * amd64fbsd-nat.c: Likewise.
3368 * bcache.c: Likewise.
3369 * charset.c: Likewise.
3370 * common/buffer.h: Likewise.
3371 * common/vec.h: Likewise.
3372 * i386bsd-nat.c: Likewise.
3373 * nat/linux-btrace.h: Likewise.
3374 * ppcfbsd-nat.c: Likewise.
3375 * ppcnbsd-tdep.h: Likewise.
3376 * ppcobsd-nat.c: Likewise.
3377 * ppcobsd-tdep.h: Likewise.
3378 * python/py-gdb-readline.c: Likewise.
3380 2014-08-07 Gary Benson <gbenson@redhat.com>
3382 * common/common-defs.h: Include stdarg.h.
3383 * defs.h: Do not include stdarg.h.
3384 * ada-lang.c: Likewise.
3385 * common/common-utils.h: Likewise.
3386 * guile/scm-string.c: Likewise.
3387 * guile/scm-utils.c: Likewise.
3388 * m32c-tdep.c: Likewise.
3390 2014-08-07 Gary Benson <gbenson@redhat.com>
3392 * common/common-defs.h: Include stdlib.h.
3393 * defs.h: Do not include stdlib.h.
3394 * addrmap.c: Likewise.
3395 * bcache.c: Likewise.
3396 * common/buffer.c: Likewise.
3397 * common/common-utils.c: Likewise.
3398 * cp-name-parser.y: Likewise.
3399 * go32-nat.c: Likewise.
3400 * mn10300-linux-tdep.c: Likewise.
3401 * nat/linux-osdata.c: Likewise.
3402 * tui/tui.c: Likewise.
3403 * windows-nat.c: Likewise.
3405 2014-08-07 Gary Benson <gbenson@redhat.com>
3407 * common/common-defs.h: Include stdio.h.
3408 * defs.h: Do not include stdio.h.
3409 * ada-lang.c: Likewise.
3410 * common/buffer.c: Likewise.
3411 * common/common-utils.c: Likewise.
3412 * cp-name-parser.y: Likewise.
3413 * gnu-nat.c: Likewise.
3414 * go32-nat.c: Likewise.
3415 * i386gnu-nat.c: Likewise.
3416 * proc-api.c: Likewise.
3417 * proc-events.c: Likewise.
3418 * proc-flags.c: Likewise.
3419 * proc-why.c: Likewise.
3420 * python/python-internal.h: Likewise.
3421 * target-memory.c: Likewise.
3422 * tui/tui-io.c: Likewise.
3423 * tui/tui.c: Likewise.
3425 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3427 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3428 (scan_dyntag_auxv): Same.
3430 2014-08-06 Yao Qi <yao@codesourcery.com>
3432 * amd64-linux-nat.c: Remove duplicated include
3434 * i386-linux-nat.c: Likewise.
3436 2014-08-06 Yao Qi <yao@codesourcery.com>
3438 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3439 operand" with "Special opcode" in comments.
3441 2014-08-05 Gary Benson <gbenson@redhat.com>
3443 * interps.c (initialize_interps): Remove prototype.
3444 (interpreter_initialized): Remove static global.
3445 (interp_add): Do not call initialize_interps.
3446 (initialize_interps): Remove function.
3448 2014-08-05 Gary Benson <gbenson@redhat.com>
3450 * utils.c (vwarning): Remove spurious va_end.
3452 2014-08-05 Alan Modra <amodra@gmail.com>
3454 * charset.c (convert_between_encodings): Cast result of obstack_base.
3455 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3456 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3457 (read_unwind_info): Use size_t for some locals.
3458 * jit.c (finalize_symtab): Likewise.
3459 * utils.c (hashtab_obstack_allocate): Likewise.
3460 * symmisc.c (print_objfile_statistics): Update format strings.
3462 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3464 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3465 (Changes in GDB 7.8): ... here.
3467 2014-08-04 Tom Tromey <tromey@redhat.com>
3469 * target.c (set_targetdebug): New function.
3470 (initialize_targets): Pass set_targetdebug when creating "set
3473 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3475 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3476 if detecting a variable-sized field that is not the last field.
3477 Fix struct type length computation.
3479 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3481 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3484 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3486 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3487 Remove "+ 8" offset in computation of CHAIN_VMA.
3489 2014-07-31 Doug Evans <dje@google.com>
3491 * inflow.c (child_terminal_inferior): Add comment.
3492 (child_terminal_ours_for_output): Add comment.
3493 (child_terminal_ours): Add comment.
3494 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3495 (linux_nat_terminal_ours): Add comment.
3497 2014-07-31 Gary Benson <gbenson@redhat.com>
3499 * common/btrace-common.h: Do not include defs.h or server.h.
3500 * nat/mips-linux-watch.h: Likewise.
3501 * gdb-dlfcn.h: Do not include defs.h.
3502 * tracefile.h: Likewise.
3504 2014-07-30 Roland McGrath <mcgrathr@google.com>
3506 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3508 2014-07-30 Tom Tromey <tromey@redhat.com>
3510 * bsd-kvm.c (bsd_kvm_open): Constify.
3511 * corelow.c (core_open): Constify.
3512 * ctf.c (ctf_open): Constify.
3513 * dbug-rom.c (dbug_open): Constify.
3514 * exec.c (exec_open): Constify.
3515 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3516 * microblaze-rom.c (picobug_open): Constify.
3517 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3519 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3520 * record-btrace.c (record_btrace_open): Constify.
3521 * record-full.c (record_full_core_open_1, record_full_open_1)
3522 (record_full_open): Constify.
3523 * remote-m32r-sdi.c (m32r_open): Constify.
3524 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3525 (rockhopper_open, lsi_open): Constify.
3526 * remote-sim.c (gdbsim_open): Constify.
3527 * remote.c (remote_open, extended_remote_open, remote_open_1):
3529 * target.h (struct target_ops) <to_open>: Make "arg" const.
3530 * tracefile-tfile.c (tfile_open): Constify.
3532 2014-07-30 Tom Tromey <tromey@redhat.com>
3534 * breakpoint.c (map_breakpoint_numbers): Update.
3535 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3536 (get_number_const): New function.
3537 (get_number): Rewrite using get_number_const.
3538 (init_number_or_range): Make "string" const.
3539 (number_is_in_list): Make "list" const.
3540 * cli/cli-utils.h (get_number_const): Declare.
3541 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3542 (init_number_or_range, number_is_in_list): Update.
3543 * printcmd.c (map_display_numbers): Update.
3544 * value.c (value_from_history_ref): Constify.
3545 * value.h (value_from_history_ref): Update.
3547 2014-07-30 Tom Tromey <tromey@redhat.com>
3549 * corefile.c (hook_type, call_extra_exec_file_hooks)
3550 (specify_exec_file_hook): Constify.
3551 * exec.c (exec_file_attach): Make "filename" const.
3552 * gdbcore.h (deprecated_exec_file_display_hook)
3553 (specify_exec_file_hook, exec_file_attach): Constify.
3554 * main.c (captured_main): Use catch_command_errors_const.
3556 2014-07-30 Tom Tromey <tromey@redhat.com>
3558 * target.c (open_target): New function.
3559 (add_target_with_completer, add_deprecated_target_alias): Use
3560 set_cmd_sfunc, set_cmd_context.
3561 (debug_to_open): Remove.
3562 (setup_target_debug): Update.
3564 2014-07-30 Yao Qi <yao@codesourcery.com>
3566 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3568 * parse.c (exp_iterate): Update comments.
3570 2014-07-30 Gary Benson <gbenson@redhat.com>
3572 * common/common-defs.h: New file.
3573 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3574 * defs.h: Include common-defs.h.
3575 Do not include config.h or build-gnulib/config.h.
3577 2014-07-30 Gary Benson <gbenson@redhat.com>
3579 * common/common-utils.h: Do not include config.h.
3580 * nat/linux-btrace.h: Likewise.
3582 2014-07-30 Gary Benson <gbenson@redhat.com>
3584 * btrace.c: Include defs.h.
3585 * common/ptid.c: Include defs.h or server.h as appropriate.
3586 * nat/mips-linux-watch.c: Likewise.
3588 2014-07-29 Tom Tromey <tromey@redhat.com>
3590 * target.c (target_is_pushed): Simplify.
3592 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3596 2014-07-29 Yao Qi <yao@codesourcery.com>
3599 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3601 2014-07-28 Doug Evans <xdje42@gmail.com>
3604 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3605 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3608 2014-07-28 Will Newton <will.newton@linaro.org>
3610 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3611 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3612 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3613 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3614 (THUMB2_EABI_SYSCALL): Likewise.
3615 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3617 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3618 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3620 2014-07-27 Doug Evans <xdje42@gmail.com>
3622 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3624 2014-07-27 Doug Evans <xdje42@gmail.com>
3626 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3628 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3629 Doug Evans <xdje42@gmail.com>
3632 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3633 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3634 * configure.ac: Try to use guild to compile an scm file, if it fails
3635 then disable guile support.
3636 * configure: Regenerate.
3637 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3639 (GUILE_COMPILED_FILES): New variable.
3640 (GUILE_FILES) Update.
3641 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3642 (stamp-guile): Compile scm files.
3643 * guile/guile.c (boot_guile_support): New function.
3644 (standard_throw_args_p): New function.
3645 (print_standard_throw_error, print_throw_error): New functions.
3646 (handle_boot_error): New function.
3647 (initialize_scheme_side): Rewrite to call boot_guile_support.
3648 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3649 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3651 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3652 Doug Evans <xdje42@gmail.com>
3655 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3656 * guile/lib/gdb/support.scm: New file.
3657 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3658 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3660 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3662 (%assert-type): Ditto, and renamed to assert-type.
3663 (%exception-print-style): Delete.
3665 2014-07-26 Doug Evans <xdje42@gmail.com>
3668 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3669 * configure: Regenerate.
3670 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3672 (PYTHON_FILES): New variable.
3673 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3674 (GUILE_FILES): New variable.
3675 (stamp-python, install-python, uninstall-python): Handle empty
3677 (stamp-guile, install-guile, uninstall-guile): Ditto.
3679 2014-07-26 Doug Evans <xdje42@gmail.com>
3682 * guile/lib/gdb.scm (pretty-printers): Export.
3683 (set-pretty-printers!): Export.
3684 * guile/lib/gdb/printing.scm (gdb module): Update.
3685 (prepend-pretty-printer!, append-pretty-printer!): Update.
3686 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3687 (pretty_printer_list_var): Delete.
3688 (pretty_printer_list): New static global.
3689 (gdbscm_pretty_printers): New function.
3690 (gdbscm_set_pretty_printers_x): New function.
3691 (ppscm_find_pretty_printer_from_gdb): Update.
3692 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3693 (gdbscm_initialize_pretty_printers): Update.
3695 2014-07-26 Doug Evans <xdje42@gmail.com>
3698 * configure.ac: Add check for header gc/gc.h.
3699 Add check for function setenv.
3700 * configure: Regenerate.
3701 * config.in: Regenerate.
3702 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3704 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3706 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3707 variation in gdbarch matching.
3709 2014-07-25 Tom Tromey <tromey@redhat.com>
3711 * exec.c (using_exec_ops): Remove.
3712 (exec_close_1): Update. Remove extraneous block, reindent.
3713 (add_target_sections): Use target_is_pushed.
3715 2014-07-25 Pedro Alves <palves@redhat.com>
3717 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3718 * monitor.c (monitor_create_inferior): Likewise.
3719 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3720 * remote-sim.c (gdbsim_create_inferior): Likewise.
3721 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3722 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3723 * windows-nat.c (do_initial_windows_stuff): Likewise.
3725 2014-07-25 Pedro Alves <palves@redhat.com>
3727 * NEWS: Mention signal passing and "signal" command changes.
3728 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3730 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3732 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3733 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3734 (jump_command): Adjust clear_proceed_status call.
3735 (signal_command): Warn if other thread that are resumed have
3736 signals that will be delivered. Adjust clear_proceed_status call.
3737 (until_next_command, finish_command)
3738 (proceed_after_attach_callback, attach_command_post_wait)
3739 (attach_command): Adjust clear_proceed_status call.
3740 * infrun.c (proceed_after_vfork_done): Likewise.
3741 (proceed_after_attach_callback): Adjust comment.
3742 (clear_proceed_status_thread): Clear stop_signal if not in pass
3744 (clear_proceed_status_callback): Delete.
3745 (clear_proceed_status): New 'step' parameter. Only clear the
3746 proceed status of threads the command being prepared is about to
3748 (proceed): If passed in an explicit signal, override stop_signal
3749 with it. Don't pass the last stop signal to the thread we're
3751 (init_wait_for_inferior): Adjust clear_proceed_status call.
3752 (switch_back_to_stepped_thread): Clear the signal if it should not
3754 * infrun.h (clear_proceed_status): New 'step' parameter.
3755 (user_visible_resume_ptid): Add comment.
3756 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3757 signal is in pass state.
3758 * remote.c (append_pending_thread_resumptions): Likewise.
3759 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3761 2014-07-25 Tom Tromey <tromey@redhat.com>
3763 * target.h (target_stopped_data_address)
3764 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3767 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3769 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3771 (avr_pointer_to_address): Likewise.
3773 2014-07-24 Tom Tromey <tromey@redhat.com>
3775 * monitor.c (compile_pattern): Update.
3776 * target.h (struct target_ops) <to_shortname, to_longname,
3779 2014-07-24 Tom Tromey <tromey@redhat.com>
3781 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3782 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3783 (add_info_alias, add_com): Make "doc" const.
3784 (print_doc_line): Make "str" const.
3785 (delete_cmd): Update.
3786 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3787 (print_doc_line): Update.
3788 * cli/cli-script.c (document_command): Update.
3789 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3790 (add_com, add_info, add_info_alias): Update.
3791 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3792 * python/py-cmd.c (cmdpy_destroyer): Update.
3794 2014-07-24 Tom Tromey <tromey@redhat.com>
3796 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3797 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3798 (help_cmd_list): Constify.
3799 (lookup_cmd): Update.
3800 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3802 (help_cmd_list, apropos_cmd): Update.
3803 * cli/cli-script.c (show_user): Update.
3804 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3805 * cli/cli-setshow.h (cmd_show_list): Update.
3806 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3807 (cmd_show_list): Update.
3808 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3809 * python/py-cmd.c (cmdpy_destroyer): Update.
3811 2014-07-24 Tom Tromey <tromey@redhat.com>
3813 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3814 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3816 * command.h (deprecate_cmd): Update.
3817 * maint.c (maintenance_do_deprecate): Add casts.
3819 2014-07-24 Tom Tromey <tromey@redhat.com>
3821 * cli/cli-decode.c (help_cmd): Make parameter "const".
3822 * cli/cli-decode.h (help_cmd): Update.
3824 2014-07-24 Tom Tromey <tromey@redhat.com>
3826 * stack.c (up_silently_base, down_silently_base): Make argument
3829 2014-07-24 Tom Tromey <tromey@redhat.com>
3831 * solib.c (solib_add): Make "pattern" const.
3832 * solib.h (solib_add): Update.
3834 2014-07-24 Tom Tromey <tromey@redhat.com>
3836 * remote.c (remote_serial_open, print_packet, putpkt)
3837 (putpkt_binary): Constify.
3838 * remote.h (putpkt): Update.
3840 2014-07-24 Tom Tromey <tromey@redhat.com>
3842 * monitor.c (monitor_open): Make "args" const.
3843 * monitor.h (monitor_open): Update.
3845 2014-07-24 Tom Tromey <tromey@redhat.com>
3847 * maint.c (match_bfd_flags): Make "string" const.
3848 (print_bfd_section_info): Remove casts.
3849 (print_objfile_section_info): Make "string" const.
3851 2014-07-24 Tom Tromey <tromey@redhat.com>
3853 * inf-child.c (inf_child_open_target): Make "arg" const.
3854 * inf-child.h (inf_child_open_target): Update.
3856 2014-07-24 Tom Tromey <tromey@redhat.com>
3858 * environ.c (unset_in_environ): Make "var" const.
3859 * environ.h (unset_in_environ): Update.
3861 2014-07-24 Tom Tromey <tromey@redhat.com>
3863 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3865 (scan_filename_with_cleanup): Likewise.
3866 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3867 Make arguments const.
3868 (restore_command): Update.
3870 2014-07-24 Pedro Alves <palves@redhat.com>
3872 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3874 2014-07-24 Tom Tromey <tromey@redhat.com>
3875 Gary Benson <gbenson@redhat.com>
3877 * nat/linux-ptrace.c (additional_flags): New global.
3878 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3879 additional_flags; don't check GDBSERVER.
3880 (linux_ptrace_set_additional_flags): New function.
3881 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3883 * linux-nat.c (_initialize_linux_nat): Call
3884 linux_ptrace_set_additional_flags.
3886 2014-07-24 Tom Tromey <tromey@redhat.com>
3888 * make-target-delegates (munge_type, write_debugmethod): New
3890 (debug_names): New global.
3891 ($TARGET_DEBUG_PRINTER): New global.
3892 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3894 Write debug methods. Generate init_debug_target.
3895 * target-debug.h: New file.
3896 * target-delegates.c: Rebuild.
3897 * target.c: Include target-debug.h.
3898 (debug_target): Hoist definition.
3899 (target_kill, target_get_section_table, target_memory_map)
3900 (target_flash_erase, target_flash_done, target_detach)
3901 (target_disconnect, target_wait, target_resume)
3902 (target_pass_signals, target_program_signals, target_follow_fork)
3903 (target_mourn_inferior, target_search_memory)
3904 (target_thread_address_space, target_close)
3905 (target_find_new_threads, target_core_of_thread)
3906 (target_verify_memory, target_insert_mask_watchpoint)
3907 (target_remove_mask_watchpoint): Remove targetdebug code.
3908 (debug_to_post_attach, debug_to_prepare_to_store)
3909 (debug_to_files_info, debug_to_insert_breakpoint)
3910 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3911 (debug_to_region_ok_for_hw_watchpoint)
3912 (debug_to_can_accel_watchpoint_condition)
3913 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3914 (debug_to_watchpoint_addr_within_range)
3915 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3916 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3917 (debug_to_terminal_init, debug_to_terminal_inferior)
3918 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3919 (debug_to_terminal_save_ours, debug_to_terminal_info)
3920 (debug_to_load, debug_to_post_startup_inferior)
3921 (debug_to_insert_fork_catchpoint)
3922 (debug_to_remove_fork_catchpoint)
3923 (debug_to_insert_vfork_catchpoint)
3924 (debug_to_remove_vfork_catchpoint)
3925 (debug_to_insert_exec_catchpoint)
3926 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3927 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3928 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3929 (setup_target_debug): Call init_debug_target.
3930 * target.h (TARGET_DEBUG_PRINTER): New macro.
3931 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3932 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3934 2014-07-24 Gary Benson <gbenson@redhat.com>
3936 * exceptions.h (throw_vfatal): Renamed to...
3937 (throw_vquit): New declaration.
3938 (throw_quit): Likewise.
3939 * exceptions.c (throw_vfatal): Renamed to...
3940 (throw_vquit): New function.
3941 (throw_quit): Likewise.
3942 (throw_error): Call throw_verror rather than throw_it.
3943 * utils.h (vfatal): Removed.
3945 * utils.c (vfatal): Removed.
3947 (internal_verror): Replaced call to fatal with call to throw_quit.
3948 (quit): Replaced calls to fatal with calls to throw_quit.
3950 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3952 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3955 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3957 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3958 less than zero in conditional expression.
3960 2014-07-23 Tom Tromey <tromey@redhat.com>
3962 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3963 ($INTRO_PART): Don't match whitespace.
3964 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3966 ($METHOD): Add $METHOD_TRAILER.
3968 (scan_target_h): New sub.
3969 Change main loop not to collect state.
3970 * target-delegates.c: Rebuild.
3972 2014-07-23 Gary Benson <gbenson@redhat.com>
3974 * cp-support.c (gdb_demangle): Fix build on systems without
3977 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3979 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3980 for reference entry value target data value.
3982 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3984 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3985 value_available_contents_eq.
3987 2014-07-22 Pedro Alves <palves@redhat.com>
3989 * value.c (allocate_optimized_out_value): Don't mark value as
3992 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3994 * MAINTAINERS (Write After Approval): Update my email address.
3996 2014-07-20 Doug Evans <dje@google.com>
3999 * remote.c (putpkt_binary): Add text to error message.
4001 2014-07-20 Yao Qi <yao@codesourcery.com>
4003 * eval.c: Remove "Chill" from comments.
4004 * gdbtypes.h: Likewise.
4005 * symtab.h: Likewise.
4007 2014-07-20 Yao Qi <yao@codesourcery.com>
4009 * std-operator.def: Update comments to TERNOP_SLICE.
4011 2014-07-20 Yao Qi <yao@codesourcery.com>
4013 * std-operator.def: Remove BINOP_RANGE.
4014 * breakpoint.c (watchpoint_exp_is_const): Update.
4015 * expprint.c (dump_subexp_body_standard): Likewise.
4016 * eval.c (init_array_element): Remove dead code.
4017 (evaluate_subexp_standard): Likewise.
4019 2014-07-20 Yao Qi <yao@codesourcery.com>
4021 * std-operator.def: Remove BINOP_IN.
4022 * breakpoint.c (watchpoint_exp_is_const): Update.
4023 * eval.c (evaluate_subexp_standard): Likewise.
4024 * expprint.c (dump_subexp_body_standard): Likewise.
4026 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4028 * microblaze-tdep.c (microblaze_register_names): Add
4029 the rshr and rslr register names.
4030 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4031 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4032 Use of tdesc_numbered_register. Use of
4033 microblaze_register_g_packet_guesses. Use of
4034 tdesc_use_registers. Use of set_gdbarch_register_type.
4035 (microblaze_register_g_packet_guesses): New.
4036 * microblaze-tdep.h (microblaze_reg_num): Add
4037 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4038 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4039 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4040 * features/microblaze-core.xml: New file.
4041 * features/microblaze-stack-protect.xml: New file.
4042 * features/microblaze-with-stack-protect.c: New file.
4043 * features/microblaze-with-stack-protect.xml: New file.
4044 * features/microblaze.xml: New file.
4045 * features/microblaze.c: New file.
4046 * features/Makefile (microblaze-with-stack-protect): Add
4047 microblaze-with-stack-protect microblaze and microblaze-expedite.
4048 * regformats/microblaze-with-stack-protect.dat: New file.
4049 * regformats/microblaze.dat: New file.
4050 * doc/gdb.texinfo (MicroBlaze Features): Added.
4052 2014-07-18 Tom Tromey <tromey@redhat.com>
4054 * exec.c (exec_ops): Now static.
4055 * exec.h (exec_ops): Don't declare.
4057 2014-07-18 Tom Tromey <tromey@redhat.com>
4059 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4060 to find_target_beneath.
4061 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4062 find_target_beneath.
4063 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4065 2014-07-18 Tom Tromey <tromey@redhat.com>
4068 * utils.c (quit): Use target_supports_terminal_ours.
4069 * target.h (target_supports_terminal_ours): Declare.
4070 * target.c (target_supports_delete_record): Don't check
4071 to_delete_record against NULL.
4072 (target_supports_terminal_ours): New function.
4074 2014-07-18 Tom Tromey <tromey@redhat.com>
4077 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4078 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4079 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4080 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4081 * windows-nat.c (windows_xfer_partial): Always delegate.
4082 * record-btrace.c (record_btrace_xfer_partial): Simplify
4084 (record_btrace_fetch_registers, record_btrace_store_registers)
4085 (record_btrace_prepare_to_store, record_btrace_resume)
4086 (record_btrace_wait, record_btrace_find_new_threads)
4087 (record_btrace_thread_alive): Likewise.
4088 * procfs.c (procfs_xfer_partial): Always delegate.
4089 * corelow.c (core_xfer_partial): Always delegate.
4090 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4092 2014-07-18 Tom Tromey <tromey@redhat.com>
4094 * exec.c (exec_make_note_section): Move earlier.
4096 2014-07-17 Doug Evans <dje@google.com>
4099 * maint.c (count_symtabs_and_blocks): Handle NULL
4100 current_program_space.
4101 (report_command_stats): Check global enabled flag in addition to
4102 recorded enabled flag.
4103 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4105 2014-07-16 Pedro Alves <palves@redhat.com>
4107 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4109 2014-07-16 Tom Tromey <tromey@redhat.com>
4111 * target.h (struct target_ops) <to_delete_record>: Reformat
4114 2014-07-16 Tom Tromey <tromey@redhat.com>
4116 * target-delegates.c: Rebuild.
4118 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4120 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4121 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4122 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4123 (avr_pointer_to_address): Likewise.
4124 (avr_address_class_type_flags): New function.
4125 (avr_address_class_type_flags_to_name): Likewise.
4126 (avr_address_class_name_to_type_flags): Likewise.
4127 (avr_gdbarch_init): Set address_class_type_flags,
4128 address_class_type_flags_to_name and
4129 address_class_name_to_type_flags.
4131 2014-07-15 Pedro Alves <palves@redhat.com>
4133 * linux-nat.c (kill_callback): Save errno and work with saved
4136 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4138 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4140 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4142 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4143 breakpoint support correctly.
4145 2014-07-14 Pedro Alves <palves@redhat.com>
4147 * utils.c (prompt_for_continue): Call target_terminal_ours.
4149 2014-07-14 Pedro Alves <palves@redhat.com>
4151 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4152 catch_errors. Don't re-enable stdin or notify observers where,
4154 (fetch_inferior_event_wrapper): Delete.
4156 2014-07-14 Pedro Alves <palves@redhat.com>
4159 * top.c: Include "inf-loop.h".
4160 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4162 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4164 (gdb_readline_wrapper): Store whether the target is async, and
4167 2014-07-14 Pedro Alves <palves@redhat.com>
4170 * top.c (gdb_readline_wrapper_line): Tweak comment.
4171 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4172 the input handler callback.
4174 2014-07-14 Pedro Alves <palves@redhat.com>
4177 * main.c: Include event-top.h.
4178 (handle_command_errors): New function.
4179 (catch_command_errors, catch_command_errors_const): Use it.
4181 2014-07-14 Pedro Alves <palves@redhat.com>
4183 * exceptions.c (catch_command_errors, catch_command_errors_const):
4185 * exceptions.h (catch_command_errors_ftype)
4186 (catch_command_errors_const_ftype): Moved to main.c.
4187 (catch_command_errors, catch_command_errors_const): Delete
4189 * main.c (catch_command_errors_ftype)
4190 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4191 (catch_command_errors, catch_command_errors_const)): Moved here
4192 from exceptions.c and make static.
4194 2014-07-14 Pedro Alves <palves@redhat.com>
4196 * exceptions.c (print_any_exception): Delete.
4197 (catch_exceptions_with_msg): Use exception_print instead of
4198 print_any_exception.
4199 (catch_errors): Use exception_fprintf instead of
4200 print_any_exception.
4201 (catch_command_errors, catch_command_errors_const): Use
4202 exception_print instead of print_any_exception.
4204 2014-07-14 Pedro Alves <palves@redhat.com>
4206 * infcall.c (run_inferior_call): Set 'sync_execution' while
4207 running the inferior call.
4209 2014-07-14 Pedro Alves <palves@redhat.com>
4211 * value.c (value_contents_equal): Delete function.
4212 * value.h (value_contents_equal): Delete declaration.
4214 2014-07-14 Tom Tromey <tromey@redhat.com>
4217 * gdbtypes.c (is_dynamic_type_internal): New function, from
4219 (is_dynamic_type): Rewrite.
4220 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4221 (resolve_dynamic_struct): Likewise.
4222 (resolve_dynamic_type_internal): New function, from
4223 resolve_dynamic_type.
4224 (resolve_dynamic_type): Rewrite.
4226 2014-07-14 Tom Tromey <tromey@redhat.com>
4228 * target.c (target_require_runnable): Also check record_stratum.
4231 2014-07-11 Yao Qi <yao@codesourcery.com>
4233 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4234 thumb_instruction_restores_sp return true.
4236 2014-07-11 Yao Qi <yao@codesourcery.com>
4238 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4239 (thumb_in_function_epilogue_p): Call
4240 thumb_instruction_restores_sp.
4242 2014-07-11 Yao Qi <yao@codesourcery.com>
4244 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4246 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4248 2014-07-11 Gary Benson <gbenson@redhat.com>
4250 * amd64-linux-nat.c (gdbcore.h): Remove include.
4251 (regset.h): Likewise.
4252 (nat/linux-btrace.h): Likewise.
4253 (btrace.h): Likewise.
4254 (gdb_assert.h): Likewise.
4255 (string.h): Likewise.
4256 (sys/uio.h): Likewise.
4257 (sys/debugreg.h): Likewise.
4258 (sys/syscall.h): Likewise.
4259 (sys/procfs.h): Likewise.
4260 (sys/user.h): Likewise.
4261 (asm/ptrace.h): Likewise.
4262 (i386-nat.h): Likewise.
4263 * i386-linux-nat.c (i386-nat.h): Likewise.
4264 (regset.h): Likewise.
4265 (target.h): Likewise.
4266 (linux-nat.h): Likewise.
4267 (nat/linux-btrace.h): Likewise.
4268 (btrace.h): Likewise.
4269 (gdb_assert.h): Likewise.
4270 (string.h): Likewise.
4271 (sys/uio.h): Likewise.
4272 (sys/user.h): Likewise.
4273 (sys/procfs.h): Likewise.
4274 (sys/reg.h): Likewise.
4275 (sys/debugreg.h): Likewise.
4276 (ORIG_EAX): Remove definition.
4278 2014-07-11 Gary Benson <gbenson@redhat.com>
4280 * i386-linux-nat.h: New file.
4281 * x86-linux-nat.h: Likewise.
4282 * x86-linux-nat.c: Likewise.
4283 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4284 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4285 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4286 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4287 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4288 (PTRACE_SETREGSET): Likewise.
4289 (arch_lwp_info): Now in x86-linux-nat.c.
4290 (have_ptrace_getregset): Now in x86-linux-nat.h.
4291 (x86_linux_dr_get): Now in x86-linux-nat.c.
4292 (x86_linux_dr_set): Likewise.
4293 (x86_linux_dr_get_addr): Likewise.
4294 (x86_linux_dr_get_control): Likewise.
4295 (x86_linux_dr_get_status): Likewise.
4296 (update_debug_registers_callback): Likewise.
4297 (x86_linux_dr_set_control): Likewise.
4298 (x86_linux_dr_set_addr): Likewise.
4299 (x86_linux_prepare_to_resume): Likewise.
4300 (x86_linux_new_thread): Likewise.
4301 (x86_linux_new_fork): Likewise.
4302 (x86_linux_get_thread_area): Likewise.
4303 (super_post_startup_inferior): Likewise.
4304 (x86_linux_child_post_startup_inferior): Likewise.
4305 (AMD64_LINUX_USER64_CS): Likewise.
4306 (AMD64_LINUX_X32_DS): Likewise.
4307 (x86_linux_read_description): Likewise.
4308 (x86_linux_enable_btrace): Likewise.
4309 (x86_linux_disable_btrace): Likewise.
4310 (x86_linux_teardown_btrace): Likewise.
4311 (x86_linux_read_btrace): Likewise.
4312 (x86_linux_create_target): Likewise.
4313 (x86_linux_add_target): Likewise.
4314 * i386-linux-nat.c (x86-linux-nat.h): New include.
4315 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4316 (PTRACE_SETREGSET): Likewise.
4317 (arch_lwp_info): Now in x86-linux-nat.c.
4318 (have_ptrace_getregset): Now in x86-linux-nat.h.
4319 (x86_linux_dr_get): Now in x86-linux-nat.c.
4320 (x86_linux_dr_set): Likewise.
4321 (x86_linux_dr_get_addr): Likewise.
4322 (x86_linux_dr_get_control): Likewise.
4323 (x86_linux_dr_get_status): Likewise.
4324 (update_debug_registers_callback): Likewise.
4325 (x86_linux_dr_set_control): Likewise.
4326 (x86_linux_dr_set_addr): Likewise.
4327 (x86_linux_prepare_to_resume): Likewise.
4328 (x86_linux_new_thread): Likewise.
4329 (x86_linux_new_fork): Likewise.
4330 (x86_linux_get_thread_area): Likewise.
4331 (super_post_startup_inferior): Likewise.
4332 (x86_linux_child_post_startup_inferior): Likewise.
4333 (AMD64_LINUX_USER64_CS): Likewise.
4334 (AMD64_LINUX_X32_DS): Likewise.
4335 (x86_linux_read_description): Likewise.
4336 (x86_linux_enable_btrace): Likewise.
4337 (x86_linux_disable_btrace): Likewise.
4338 (x86_linux_teardown_btrace): Likewise.
4339 (x86_linux_read_btrace): Likewise.
4340 (x86_linux_create_target): Likewise.
4341 (x86_linux_add_target): Likewise.
4343 2014-07-11 Gary Benson <gbenson@redhat.com>
4345 * amd64-linux-nat.c: Comment and whitespace changes.
4346 * i386-linux-nat.c: Comment and whitespace changes.
4348 2014-07-11 Gary Benson <gbenson@redhat.com>
4350 * amd64-linux-nat.c (x86_linux_create_target): New function.
4351 (x86_linux_add_target): Likewise.
4352 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4353 * i386-linux-nat.c (x86_linux_create_target): New function.
4354 (x86_linux_add_target): Likewise.
4355 (_initialize_i386_linux_nat): Delegate to the above new functions.
4357 2014-07-11 Gary Benson <gbenson@redhat.com>
4359 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4360 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4361 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4362 (ps_get_thread_area): Delegate to the above.
4364 2014-07-11 Gary Benson <gbenson@redhat.com>
4366 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4367 x86_linux_read_description. All uses updated. amd64-specific
4368 code conditionalized. Conditionalized i386-specific code added.
4369 Redundant cast removed.
4370 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4371 x86_linux_read_description. All uses updated. i386-specific
4372 code conditionalized. Conditionalized amd64-specific code added.
4373 One sizeof replaced with the actual type it is describing.
4375 2014-07-11 Gary Benson <gbenson@redhat.com>
4377 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4378 x86_linux_dr_get. All uses updated.
4379 (amd64_linux_dr_set): Renamed to
4380 x86_linux_dr_set. All uses updated.
4381 (amd64_linux_dr_get_addr): Renamed to
4382 x86_linux_dr_get_addr. All uses updated.
4383 (amd64_linux_dr_get_control): Renamed to
4384 x86_linux_dr_get_control. All uses updated.
4385 (amd64_linux_dr_get_status): Renamed to
4386 x86_linux_dr_get_status. All uses updated.
4387 (amd64_linux_dr_set_control): Renamed to
4388 x86_linux_dr_set_control. All uses updated.
4389 (amd64_linux_dr_set_addr): Renamed to
4390 x86_linux_dr_set_addr. All uses updated.
4391 (amd64_linux_prepare_to_resume): Renamed to
4392 x86_linux_prepare_to_resume. All uses updated.
4393 (amd64_linux_new_thread): Renamed to
4394 x86_linux_new_thread. All uses updated.
4395 (amd64_linux_new_fork): Renamed to
4396 x86_linux_new_fork. All uses updated.
4397 (amd64_linux_child_post_startup_inferior): Renamed to
4398 x86_linux_child_post_startup_inferior. All uses updated.
4399 (amd64_linux_enable_btrace): Renamed to
4400 x86_linux_enable_btrace. All uses updated.
4401 (amd64_linux_disable_btrace): Renamed to
4402 x86_linux_disable_btrace. All uses updated.
4403 (amd64_linux_teardown_btrace): Renamed to
4404 x86_linux_teardown_btrace. All uses updated.
4405 (amd64_linux_read_btrace): Renamed to
4406 x86_linux_read_btrace. All uses updated.
4407 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4408 x86_linux_dr_get. All uses updated.
4409 (i386_linux_dr_set): Renamed to
4410 x86_linux_dr_set. All uses updated.
4411 (i386_linux_dr_get_addr): Renamed to
4412 x86_linux_dr_get_addr. All uses updated.
4413 (i386_linux_dr_get_control): Renamed to
4414 x86_linux_dr_get_control. All uses updated.
4415 (i386_linux_dr_get_status): Renamed to
4416 x86_linux_dr_get_status. All uses updated.
4417 (i386_linux_dr_set_control): Renamed to
4418 x86_linux_dr_set_control. All uses updated.
4419 (i386_linux_dr_set_addr): Renamed to
4420 x86_linux_dr_set_addr. All uses updated.
4421 (i386_linux_prepare_to_resume): Renamed to
4422 x86_linux_prepare_to_resume. All uses updated.
4423 (i386_linux_new_thread): Renamed to
4424 x86_linux_new_thread. All uses updated.
4425 (i386_linux_new_fork): Renamed to
4426 x86_linux_new_fork. All uses updated.
4427 (i386_linux_child_post_startup_inferior): Renamed to
4428 x86_linux_child_post_startup_inferior. All uses updated.
4429 (i386_linux_enable_btrace): Renamed to
4430 x86_linux_enable_btrace. All uses updated.
4431 (i386_linux_disable_btrace): Renamed to
4432 x86_linux_disable_btrace. All uses updated.
4433 (i386_linux_teardown_btrace): Renamed to
4434 x86_linux_teardown_btrace. All uses updated.
4435 (i386_linux_read_btrace): Renamed to
4436 x86_linux_read_btrace. All uses updated.
4438 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4440 * remote.c (extended_remote_post_attach): New function.
4441 (init_extended_remote_ops): Install it as to_post_attach method.
4443 2014-07-09 Pedro Alves <palves@redhat.com>
4445 * infcmd.c (attach_command_post_wait): Don't call
4446 target_terminal_inferior here.
4447 (attach_command): Call it here instead.
4449 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4451 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4453 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4454 from varobj.c, with additional checks.
4455 (c_varobj_ops): Fill in is_path_expr_parent field.
4456 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4457 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4459 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4461 (varobj_default_is_path_expr_parent): New function.
4462 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4463 (varobj_default_is_path_expr_parent): Declare new function.
4465 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4467 * infcmd.c (finish_backward): Turn internal error into normal error.
4469 2014-07-07 Pedro Alves <palves@redhat.com>
4472 * remote.c (async_handle_remote_sigint)
4473 (async_handle_remote_sigint_twice): Call
4474 gdb_call_async_signal_handler instead of
4475 mark_async_signal_handler.
4477 2014-07-07 Tom Tromey <tromey@redhat.com>
4479 * target-delegates.c: Rebuild.
4480 * target.c (target_info_record): Remove.
4481 * record.c (info_record_command): Unconditionally call
4483 * target.h (struct target_ops) <to_info_record>: Use
4484 TARGET_DEFAULT_IGNORE.
4485 (target_info_record): Remove.
4487 2014-07-07 Tom Tromey <tromey@redhat.com>
4489 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4490 TARGET_DEFAULT_NORETURN.
4491 * target.c (generic_tls_error): New function.
4492 (target_translate_tls_address): Don't search target stack.
4493 * target-delegates.c: Rebuild.
4494 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4496 * linux-thread-db.c (thread_db_get_thread_local_address):
4497 Unconditionally call beneath target.
4499 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4501 * cli/cli-logging.c (pop_output_files): Assign targerr to
4504 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4506 * MAINTAINERS (Write After Approval): Update my email address.
4508 2014-07-02 Gary Benson <gbenson@redhat.com>
4510 * proc-service.c (ps_xfer_memory): Update comment.
4511 (ps_pstop): Remove unused function.
4512 (ps_pcontinue): Likewise.
4513 (ps_lstop): Likewise.
4514 (ps_lcontinue): Likewise.
4515 (ps_lgetxregsize): Likewise.
4516 (ps_lgetxregs): Likewise.
4517 (ps_lsetxregs): Likewise.
4518 (ps_plog): Likewise.
4519 (ps_ptread): Likewise.
4520 (ps_ptwrite): Likewise.
4522 2014-07-01 Mark Wielaard <mjw@redhat.com>
4524 * dwarf2read.c (add_array_cv_type): New function.
4525 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4526 (read_tag_volatile_type): Likewise.
4528 2014-07-01 Tom Tromey <tromey@redhat.com>
4530 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4531 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4532 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4533 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4534 * command.h (cmd_cfunc_ftype): Move earlier.
4535 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4536 (add_com, add_info): Use cmd_cfunc_ftype.
4538 2014-06-30 Tom Tromey <tromey@redhat.com>
4540 * symtab.c (operator_chars): Make parameters and return type
4542 (file_matches): Make "files" const.
4543 (struct search_symbols_data) <files>: Now const.
4544 (search_symbols): Make "regexp" and "files" parameters const.
4546 (symtab_symbol_info): Remove cast.
4547 (rbreak_command): Update.
4548 * symtab.h (search_symbols): Update.
4550 2014-06-27 Yao Qi <yao@codesourcery.com>
4552 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4553 Change parameter type to 'struct thread_info *'. Caller
4555 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4557 * dummy-frame.c (struct dummy_frame_id): New.
4558 (dummy_frame_id_eq): New function.
4559 (struct dummy_frame) <id>: Change its type to 'struct
4561 (dummy_frame_push): Add parameter ptid and save it in
4563 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4565 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4567 (lookup_dummy_frame): Change parameter type to 'struct
4568 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4569 instead of frame_id_eq.
4570 (dummy_frame_pop): Add parameter ptid. Callers updated.
4571 Update comments. Compose dummy_frame_id and pass it to
4573 (dummy_frame_discard): Add parameter ptid.
4574 (dummy_frame_sniffer): Compose dummy_frame_id and call
4575 dummy_frame_id_eq instead of frame_id_eq.
4576 (fprint_dummy_frames): Print ptid.
4577 * dummy-frame.h: Remove comments.
4578 (dummy_frame_push): Add ptid in declaration.
4579 (dummy_frame_pop, dummy_frame_discard): Likewise.
4581 2014-06-26 Tom Tromey <tromey@redhat.com>
4583 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4584 * command.h (error_no_arg): Update.
4586 2014-06-26 Tom Tromey <tromey@redhat.com>
4588 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4589 (do_show_command): Make "arg" const.
4590 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4592 2014-06-26 Tom Tromey <tromey@redhat.com>
4594 * record-full.c (record_full_get_bookmark): Make "args" const.
4595 (record_full_goto_bookmark): Make "raw_bookmark" const.
4596 * record.c (record_goto): New function.
4597 (cmd_record_goto): Use it. Now static.
4598 * record.h (record_goto): Declare.
4599 (cmd_record_goto): Remove declaration.
4600 * target-delegates.c: Rebuild.
4601 * target.h (struct target_ops) <to_get_bookmark,
4602 to_goto_bookmark>: Make parameter const.
4604 2014-06-26 Tom Tromey <tromey@redhat.com>
4606 * defs.h (generic_load): Update.
4607 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4608 * monitor.c (monitor_load): Make "args" const.
4609 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4610 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4612 (mips_load): Make "file" const.
4613 * remote-sim.c (gdbsim_load): Make "args" const.
4614 * remote.c (remote_load): Make "name" const.
4615 * symfile.c (generic_load): Make "args" const.
4616 * target-delegates.c: Rebuild.
4617 * target.c (target_load): Make "arg" const.
4618 (debug_to_load): Make "args" const.
4619 * target.h (struct target_ops) <to_load>: Make parameter const.
4620 (target_load): Update.
4622 2014-06-26 Tom Tromey <tromey@redhat.com>
4625 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4626 (dwarf2_physname, read_partial_die)
4627 (guess_partial_die_structure_name, fixup_partial_die)
4628 (guess_full_die_structure_name, anonymous_struct_prefix)
4629 (dwarf2_name): Use per-BFD obstack.
4631 2014-06-26 Yao Qi <yao@codesourcery.com>
4633 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4634 dummyframe and this_id into inner block below.
4636 2014-06-26 Yao Qi <yao@codesourcery.com>
4638 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4639 with "signal_pass[0]" in the initialization of signal_pass.
4641 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4643 * record-btrace.c (record_btrace_generating_corefile)
4644 (record_btrace_prepare_to_generate_core)
4645 (record_btrace_done_generating_core): New.
4646 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4647 (record_btrace_store_registers, record_btrace_prepare_to_store):
4648 Forward request when generating a core file.
4649 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4650 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4651 to_done_generating_core.
4653 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4655 * target.h (target_ops) <to_prepare_to_generate_core>
4656 <to_done_generating_core>: New.
4657 (target_prepare_to_generate_core, target_done_generating_core): New.
4658 * target.c (target_prepare_to_generate_core)
4659 (target_done_generating_core): New.
4660 * target-delegates.c: Regenerate.
4661 * gcore.c: (write_gcore_file): Rename to ...
4662 (write_gcore_file_1): ...this.
4663 (write_gcore_file): Call target_prepare_to_generate_core
4664 and target_done_generating_core.
4666 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4668 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4669 * gcore.c (write_gcore_file): Free memory returned from
4670 make_corefile_notes.
4671 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4672 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4674 2014-06-24 Yao Qi <yao@codesourcery.com>
4676 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4677 (arm_linux_init_abi): Set skip_trampoline_code with
4678 gdbarch_skip_trampoline_code instead of
4679 find_solib_trampoline_target.
4681 2014-06-24 Yao Qi <yao@codesourcery.com>
4683 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4684 arm_skip_bx_reg returns non-zero.
4686 2014-06-24 Yao Qi <yao@codesourcery.com>
4688 * arm-tdep.c (arm_skip_bx_reg): New function.
4689 (arm_skip_stub): Call arm_skip_bx_reg.
4691 2014-06-23 Don Breazeal <donb@codesourcery.com>
4693 * MAINTAINERS: Add myself as write-after-approval maintainer.
4695 2014-06-23 Pedro Alves <palves@redhat.com>
4697 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4698 DR_CONTROL before setting DR0..DR3.
4699 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4700 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4701 bits of DR_CONTROL related to the debug register slot being
4702 disabled. If all slots are vacant, clear local slowdown as well,
4703 and assert DR_CONTROL is 0.
4705 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4707 * python/lib/gdb/command/xmethods.py
4708 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4709 current progspace only if the string "progspace" matches LOCUS_RE.
4711 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4713 Fix --with-system-readline with readline-6.3 patch 5.
4714 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4715 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4718 2014-06-20 Tom Tromey <tromey@redhat.com>
4720 * dwarf2read.c (dw2_get_real_path): Use correct type in
4722 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4724 2014-06-20 Gary Benson <gbenson@redhat.com>
4726 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4727 * common/glibc_thread_db.h: Likewise.
4728 * common/i386-cpuid.h: Likewise.
4729 * common/i386-gcc-cpuid.h: Likewise.
4730 * common/linux-btrace.h: Likewise.
4731 * common/linux-osdata.h: Likewise.
4732 * common/linux-procfs.h: Likewise.
4733 * common/linux-ptrace.h: Likewise.
4734 * common/mips-linux-watch.h: Likewise.
4735 * common/linux-btrace.c: Moved to nat.
4736 * common/linux-osdata.c: Likewise.
4737 * common/linux-procfs.c: Likewise.
4738 * common/linux-ptrace.c: Likewise.
4739 * common/mips-linux-watch.c: Likewise.
4740 * nat/gdb_thread_db.h: Moved from common.
4741 * nat/glibc_thread_db.h: Likewise.
4742 * nat/i386-cpuid.h: Likewise.
4743 * nat/i386-gcc-cpuid.h: Likewise.
4744 * nat/linux-btrace.c: Likewise.
4745 * nat/linux-btrace.h: Likewise.
4746 * nat/linux-osdata.c: Likewise.
4747 * nat/linux-osdata.h: Likewise.
4748 * nat/linux-procfs.c: Likewise.
4749 * nat/linux-procfs.h: Likewise.
4750 * nat/linux-ptrace.c: Likewise.
4751 * nat/linux-ptrace.h: Likewise.
4752 * nat/mips-linux-watch.c: Likewise.
4753 * nat/mips-linux-watch.h: Likewise.
4754 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4755 (object file files): Reordered.
4756 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4757 of glibc_thread_db.h.
4759 2014-06-20 Gary Benson <gbenson@redhat.com>
4761 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4762 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4763 (i386_dr_low): Likewise.
4764 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4765 (i386_dr_low_set_addr): Likewise.
4766 (i386_dr_low_get_addr): Likewise.
4767 (i386_dr_low_can_set_control): Likewise.
4768 (i386_dr_low_set_control): Likewise.
4769 (i386_dr_low_get_control): Likewise.
4770 (i386_dr_low_get_status): Likewise.
4771 (i386_get_debug_register_length): Likewise.
4772 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4773 (i386_dr_low): Likewise.
4774 * nat/i386-dregs.c (i386-low.h): Remove include.
4775 (i386-nat.h): Likewise.
4776 (nat/i386-dregs.h): New include.
4777 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4778 (i386_dr_low_set_addr): Likewise.
4779 (i386_dr_low_get_addr): Likewise.
4780 (i386_dr_low_can_set_control): Likewise.
4781 (i386_dr_low_set_control): Likewise.
4782 (i386_dr_low_get_control): Likewise.
4783 (i386_dr_low_get_status): Likewise.
4784 (i386_get_debug_register_length): Likewise.
4785 (debug_hw_points): Likewise.
4787 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4789 * Makefile.in (SFILES): Add d-exp.y.
4790 (YYFILES): Add d-exp.c.
4791 (YYOBJ): Add d-exp.o.
4792 (local-maintainer-clean): Delete d-exp.c.
4793 * d-exp.y: New file.
4794 * d-lang.h (d_parse): New declaration.
4795 (d_error): New declaration.
4796 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4797 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4798 PREC_ORDER operators.
4799 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4801 2014-06-19 Yao Qi <yao@codesourcery.com>
4803 * gdbthread.h (any_running): Remove the declaration.
4804 * thread.c (any_running): Remove.
4806 2014-06-19 Yao Qi <yao@codesourcery.com>
4808 * gdbthread.h (struct thread_info) <state>: Change its type to
4809 'enum thread_state'. Update comments.
4811 2014-06-19 Pedro Alves <palves@redhat.com>
4813 * gdbthread.h (ALL_THREADS): Delete.
4814 (ALL_NON_EXITED_THREADS): New macro.
4815 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4816 instead of ALL_THREADS.
4817 * infrun.c (find_thread_needs_step_over)
4818 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4819 instead of ALL_THREADS.
4820 * record-btrace.c (record_btrace_open)
4821 (record_btrace_stop_recording, record_btrace_close)
4822 (record_btrace_is_replaying, record_btrace_resume)
4823 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4824 * remote.c (append_pending_thread_resumptions): Likewise.
4825 * thread.c (thread_apply_all_command): Likewise.
4827 2014-06-19 Gary Benson <gbenson@redhat.com>
4829 * i386-nat.c (i386_stopped_by_watchpoint):
4830 Use i386_dr_stopped_by_watchpoint.
4831 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4832 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4834 2014-06-19 Gary Benson <gbenson@redhat.com>
4836 * nat/i386-dregs.c: New file.
4837 * Makefile.in (i386-dregs.o): New rule.
4838 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4839 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4840 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4841 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4842 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4843 * config/i386/go32.mh (NATDEPFILES): Likewise.
4844 * config/i386/linux.mh (NATDEPFILES): Likewise.
4845 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4846 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4847 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4848 * i386-nat.h (debug_hw_points): New declaration.
4849 * i386-nat.c (breakpoint.h): Remove include.
4850 (command.h): Likewise.
4851 (target.h): Likewise.
4852 (gdb_assert.h): Likewise.
4853 (debug_hw_points): Made nonstatic.
4854 (debug_printf): Now in i386-dregs.c.
4855 (TARGET_HAS_DR_LEN_8): Likewise.
4856 (DR_CONTROL_SHIFT): Likewise.
4857 (DR_CONTROL_SIZE): Likewise.
4858 (DR_RW_EXECUTE): Likewise.
4859 (DR_RW_WRITE): Likewise.
4860 (DR_RW_READ): Likewise.
4861 (DR_RW_IORW): Likewise.
4862 (DR_LEN_1): Likewise.
4863 (DR_LEN_2): Likewise.
4864 (DR_LEN_4): Likewise.
4865 (DR_LEN_8): Likewise.
4866 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4867 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4868 (DR_ENABLE_SIZE): Likewise.
4869 (DR_LOCAL_SLOWDOWN): Likewise.
4870 (DR_GLOBAL_SLOWDOWN): Likewise.
4871 (DR_CONTROL_RESERVED): Likewise.
4872 (I386_DR_CONTROL_MASK): Likewise.
4873 (I386_DR_VACANT): Likewise.
4874 (I386_DR_LOCAL_ENABLE): Likewise.
4875 (I386_DR_GLOBAL_ENABLE): Likewise.
4876 (I386_DR_DISABLE): Likewise.
4877 (I386_DR_SET_RW_LEN): Likewise.
4878 (I386_DR_GET_RW_LEN): Likewise.
4879 (I386_DR_WATCH_HIT): Likewise.
4880 (i386_wp_op_t): Likewise.
4881 (i386_show_dr): Likewise.
4882 (i386_length_and_rw_bits): Likewise.
4883 (i386_insert_aligned_watchpoint): Likewise.
4884 (i386_remove_aligned_watchpoint): Likewise.
4885 (i386_handle_nonaligned_watchpoint): Likewise.
4886 (i386_update_inferior_debug_regs): Likewise.
4887 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4888 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4889 (i386_region_ok_for_watchpoint):
4890 Use i386_dr_region_ok_for_watchpoint.
4891 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4893 2014-06-19 Gary Benson <gbenson@redhat.com>
4895 * i386-nat.c (i386_insert_hw_breakpoint): Use
4896 i386_insert_watchpoint.
4897 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4899 2014-06-19 Gary Benson <gbenson@redhat.com>
4901 * i386-nat.c (i386_dr_show): Renamed to
4902 i386_show_dr and made static. All uses updated.
4903 (i386_dr_length_and_rw_bits): Renamed to
4904 i386_length_and_rw_bits and made static.
4906 (i386_dr_insert_aligned_watchpoint): Renamed to
4907 i386_insert_aligned_watchpoint and made static.
4909 (i386_dr_remove_aligned_watchpoint): Renamed to
4910 i386_remove_aligned_watchpoint and made static.
4912 (i386_dr_update_inferior_debug_regs): Renamed to
4913 i386_update_inferior_debug_regs and made static.
4915 * nat/i386-dregs.h (i386_dr_show): Removed.
4916 (i386_dr_length_and_rw_bits): Likewise.
4917 (i386_dr_insert_aligned_watchpoint): Likewise.
4918 (i386_dr_remove_aligned_watchpoint): Likewise.
4919 (i386_dr_update_inferior_debug_regs): Likewise.
4921 2014-06-19 Gary Benson <gbenson@redhat.com>
4923 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4924 * configure: Regenerate.
4925 * config.in: Likewise.
4926 * main.c (signal.h): New include.
4927 (setup_alternate_signal_stack): New function.
4928 (captured_main): Call the above.
4929 * cp-support.c (signal.h): New include.
4930 (catch_demangler_crashes): New flag.
4931 (SIGJMP_BUF): New define.
4932 (SIGSETJMP): Likewise.
4933 (SIGLONGJMP): Likewise.
4934 (gdb_demangle_jmp_buf): New static global.
4935 (gdb_demangle_attempt_core_dump): Likewise.
4936 (gdb_demangle_signal_handler): New function.
4937 (gdb_demangle): If catch_demangler_crashes is set, install the
4938 above signal handler before calling bfd_demangle, and restore
4939 the original signal handler afterwards. Display the offending
4940 symbol and call demangler_warning the first time a segmentation
4942 (_initialize_cp_support): New maint set/show command.
4944 2014-06-19 Gary Benson <gbenson@redhat.com>
4946 * utils.h (resource_limit_kind): New enum.
4947 (can_dump_core): New declaration.
4948 (warn_cant_dump_core): Likewise.
4949 (dump_core): Likewise.
4950 * utils.c (dump_core): Made nonstatic. Added new
4951 parameter "limit_kind".
4952 (can_dump_core): Made nonstatic. Moved printing code to...
4953 (warn_cant_dump_core): New function.
4954 (can_dump_core_warn): Likewise.
4955 (internal_vproblem): Replace calls to can_dump_core with
4956 calls to can_dump_core_warn. Supply new argument to each.
4958 2014-06-19 Gary Benson <gbenson@redhat.com>
4960 * utils.h (demangler_vwarning): New declaration.
4961 (demangler_warning): Likewise.
4962 * utils.c (struct internal_problem)
4963 <user_settable_should_quit>: New field.
4964 <user_settable_should_dump_core>: Likewise
4965 (internal_error_problem): Add values for above new fields.
4966 (internal_warning_problem): Likewise.
4967 (demangler_warning_problem): New static global.
4968 (demangler_vwarning): New function.
4969 (demangler_warning): Likewise.
4970 (add_internal_problem_command): Selectively add commands.
4971 (_initialize_utils): New internal problem command.
4972 * maint.c (maintenance_demangler_warning): New function.
4973 (_initialize_maint_cmds): New command.
4975 2014-06-18 Tom Tromey <tromey@redhat.com>
4977 * f-valprint.c (info_common_command_for_block): Update.
4978 * symtab.h (struct general_symbol_info) <common_block>: Now
4981 2014-06-18 Tom Tromey <tromey@redhat.com>
4983 * symtab.h (struct symtab) <blockvector>: Now const.
4984 * ada-lang.c (ada_add_global_exceptions): Update.
4985 * buildsym.c (augment_type_symtab): Update.
4986 * dwarf2read.c (dw2_lookup_symbol): Update.
4987 * jit.c (finalize_symtab): Update.
4988 * jv-lang.c (add_class_symtab_symbol): Update.
4989 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4991 * objfiles.c (objfile_relocate1): Update.
4992 * psymtab.c (lookup_symbol_aux_psymtabs)
4993 (maintenance_check_psymtabs): Update.
4994 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4996 * spu-tdep.c (spu_catch_start): Update.
4997 * symmisc.c (dump_symtab_1): Update.
4998 * symtab.c (lookup_global_symbol_from_objfile)
4999 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5000 (basic_lookup_transparent_type_quick)
5001 (basic_lookup_transparent_type, find_pc_sect_symtab)
5002 (find_pc_sect_line, search_symbols): Update.
5003 * block.c (find_block_in_blockvector): Make "bl" const.
5004 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5006 (blockvector_contains_pc): Make "bv" const.
5007 (block_for_pc_sect): Update.
5008 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5009 (blockvector_contains_pc): Update.
5010 * breakpoint.c (resolve_sal_pc): Update.
5011 * inline-frame.c (block_starting_point_at): Update.
5013 2014-06-18 Tom Tromey <tromey@redhat.com>
5015 * completer.c (complete_line): Make "line_buffer" const.
5016 * completer.h (complete_line): Update.
5018 2014-06-18 Tom Tromey <tromey@redhat.com>
5020 * symtab.c (add_macro_name): Remove unneeded cast.
5022 2014-06-18 Tom Tromey <tromey@redhat.com>
5024 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5025 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5027 2014-06-18 Tom Tromey <tromey@redhat.com>
5029 * probe.c (info_probes_for_ops): Make "arg" const.
5030 * probe.h (info_probes_for_ops): Update.
5032 2014-06-18 Tom Tromey <tromey@redhat.com>
5034 * varobj.c (varobj_create): Update.
5035 * valops.c (value_of_this): Update.
5036 * tracepoint.c (add_local_symbols, scope_info): Update.
5037 * symtab.h (struct general_symbol_info) <block>: Now const.
5038 * symtab.c (skip_prologue_sal)
5039 (default_make_symbol_completion_list_break_on)
5040 (skip_prologue_using_sal): Update.
5041 * stack.h (iterate_over_block_locals)
5042 (iterate_over_block_local_vars): Update.
5043 * stack.c (print_frame_args): Update.
5044 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5046 (get_selected_block): Make return type const.
5047 * python/py-frame.c (frapy_block): Update.
5048 * python/py-block.c (gdbpy_block_for_pc): Update.
5049 * p-exp.y (%union) <bval>: Now const.
5050 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5051 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5052 * m2-exp.y (%union) <bval>: Now const.
5053 * linespec.c (get_current_search_block): Make return type const.
5054 (create_sals_line_offset, find_label_symbols): Update.
5055 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5057 (block_starting_point_at): Make "block" const.
5058 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5059 (check_exception_resume): Update.
5060 * guile/scm-frame.c (gdbscm_frame_block): Update.
5061 * guile/scm-block.c (gdbscm_lookup_block): Update.
5062 * frame.h (get_frame_block): Update.
5063 (get_selected_block): Make return type const.
5064 * frame.c (frame_id_inner): Update.
5065 * f-valprint.c (info_common_command_for_block)
5066 (info_common_command): Update.
5067 * dwarf2loc.c (dwarf2_find_location_expression)
5068 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5069 (locexpr_describe_location_piece): Update.
5070 * c-exp.y (%union) <bval>: Now const.
5071 * breakpoint.c (resolve_sal_pc): Update.
5072 * blockframe.c (get_frame_block):Make return type const.
5073 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5074 (block_innermost_frame): Update.
5075 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5076 (block_for_pc, block_for_pc_sect): Update.
5077 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5079 (block_for_pc_sect, block_for_pc): Make return type const.
5080 * ax-gdb.c (gen_expr): Update.
5081 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5082 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5083 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5084 (ada_read_var_value): Update.
5085 * ada-exp.y (struct name_info) <block>: Now const.
5087 (block_lookup): Constify.
5089 2014-06-18 Gary Benson <gbenson@redhat.com>
5091 * nat/i386-dregs.h: New file.
5092 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5093 * i386-nat.h (i386-dregs.h): New include.
5094 (DR_FIRSTADDR): Now in i386-dregs.h.
5095 (DR_LASTADDR): Likewise.
5096 (DR_NADDR): Likewise.
5097 (DR_STATUS): Likewise.
5098 (DR_CONTROL): Likewise.
5099 (i386_debug_reg_state): Likewise.
5100 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5102 2014-06-18 Don Breazeal <donb@codesourcery.com>
5104 * breakpoint.c (set_longjmp_breakpoint): Call
5105 momentary_breakpoint_from_master with additional argument.
5106 (set_longjmp_breakpoint_for_call_dummy): Call
5107 momentary_breakpoint_from_master with additional argument.
5108 (set_std_terminate_breakpoint): Call
5109 momentary_breakpoint_from_master with additional argument.
5110 (momentary_breakpoint_from_master): Add argument to function
5111 definition and use it to initialize structure member flag.
5112 (clone_momentary_breakpoint): Call
5113 momentary_breakpoint_from_master with additional argument.
5114 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5115 member flags set in momentary_breakpoint_from_master.
5117 2014-06-18 Gary Benson <gbenson@redhat.com>
5119 * i386-nat.c (i386_show_dr): Renamed to
5120 i386_dr_show and made nonstatic. All uses updated.
5121 (i386_length_and_rw_bits): Renamed to
5122 i386_dr_length_and_rw_bits and made nonstatic.
5124 (i386_insert_aligned_watchpoint): Renamed to
5125 i386_dr_insert_aligned_watchpoint and made nonstatic.
5127 (i386_remove_aligned_watchpoint): Renamed to
5128 i386_dr_remove_aligned_watchpoint and made nonstatic.
5130 (i386_update_inferior_debug_regs): Renamed to
5131 i386_dr_update_inferior_debug_regs and made nonstatic.
5134 2014-06-18 Gary Benson <gbenson@redhat.com>
5136 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5137 (i386_dr_low_can_set_control): Likewise.
5138 (i386_dr_low_set_addr): Likewise.
5139 (i386_dr_low_set_control): Likewise.
5140 (i386_dr_low_get_addr): Likewise.
5141 (i386_dr_low_get_status): Likewise.
5142 (i386_dr_low_get_control): Likewise.
5143 (i386_insert_aligned_watchpoint): Use new macros.
5144 (i386_update_inferior_debug_regs): Likewise.
5145 (i386_stopped_data_address): Likewise.
5147 2014-06-18 Gary Benson <gbenson@redhat.com>
5149 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5150 New parameter. All uses updated.
5152 2014-06-18 Gary Benson <gbenson@redhat.com>
5154 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5157 2014-06-18 Gary Benson <gbenson@redhat.com>
5159 * i386-nat.c (debug_printf): New macro.
5160 (i386_get_debug_register_length): Likewise.
5161 (TARGET_HAS_DR_LEN_8): Use above macro.
5162 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5163 and printf_unfiltered. Use phex to format values.
5165 2014-06-18 Gary Benson <gbenson@redhat.com>
5167 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5170 2014-06-18 Gary Benson <gbenson@redhat.com>
5172 * i386-nat.c: Comment changes.
5174 2014-06-18 Gary Benson <gbenson@redhat.com>
5176 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5178 2014-06-18 Gary Benson <gbenson@redhat.com>
5180 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5181 (i386_insert_aligned_watchpoint): Likewise.
5182 (i386_remove_aligned_watchpoint): Likewise.
5183 (i386_handle_nonaligned_watchpoint): Likewise.
5185 2014-06-18 Gary Benson <gbenson@redhat.com>
5187 * i386-nat.c: Whitespace changes.
5189 2014-06-17 Samuel Bronson <naesten@gmail.com>
5191 * MAINTAINERS: Update Roland McGrath's email address.
5192 Thanks to Sergio Durigan Junior for pointing out that he left
5193 Red Hat a while ago, and giving me a current address.
5195 2014-06-17 Tom Tromey <tromey@redhat.com>
5197 * utils.h (savestring): Remove declaration.
5199 2014-06-17 Tom Tromey <tromey@redhat.com>
5201 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5203 2014-06-16 Keith Seitz <keiths@redhat.com>
5206 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5207 to update the varobj if inferior_ptid is null_ptid.
5209 2014-06-16 Tom Tromey <tromey@redhat.com>
5211 * target.h (struct target_ops) <to_info_proc>: Make parameter
5213 (target_info_proc): Update.
5214 * target.c (target_info_proc): Make "args" const.
5215 * procfs.c (procfs_info_proc): Update.
5216 * linux-tdep.c (linux_info_proc): Update.
5217 (linux_core_info_proc_mappings): Make "args" const.
5218 (linux_core_info_proc): Update.
5219 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5220 * gdbarch.c: Rebuild.
5221 * gdbarch.h: Rebuild.
5222 * corelow.c (core_info_proc): Update.
5224 2014-06-16 Tom Tromey <tromey@redhat.com>
5226 * target.h (struct target_ops) <to_disconnect>: Make parameter
5228 (target_disconnect): Update.
5229 * target.c (target_disconnect): Make "args" const.
5230 * target-delegates.c: Rebuild.
5231 * remote.c (remote_disconnect): Update.
5232 * record.h (record_disconnect): Update.
5233 * record.c (record_disconnect): Update.
5234 * inf-child.c (inf_child_disconnect): Update.
5236 2014-06-16 Tom Tromey <tromey@redhat.com>
5238 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5239 * target.c (debug_to_rcmd, default_rcmd): Update.
5240 * target-delegates.c: Rebuild.
5241 * remote.c (remote_rcmd): Update.
5242 * monitor.c (monitor_rcmd): Update.
5244 2014-06-16 Pedro Alves <palves@redhat.com>
5246 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5247 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5248 have OBJF_SHARED set.
5249 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5250 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5251 instead of OBJF_USERLOADED.
5252 * objfiles.h (OBJF_SHARED): Update comment.
5253 (userloaded_objfile_contains_address_p): Rename to ...
5254 (shared_objfile_contains_address_p): ... this, and update
5256 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5258 (remove_symbol_file_command): Skip objfiles that don't have
5261 2014-06-16 Tom Tromey <tromey@redhat.com>
5263 * minsyms.h (prim_record_minimal_symbol)
5264 (prim_record_minimal_symbol_and_info): Update comments.
5266 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5268 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5269 or --without-guile, according to how GDB was built.
5271 2014-06-13 Tom Tromey <tromey@redhat.com>
5273 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5275 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5277 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5279 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5280 help_list.Pass all_commands, not -1, to help_list.
5281 * cli/cli-dump.c (dump_command, append_command)
5282 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5283 (binary_dump_command, binary_append_command): Pass all_commands,
5284 not -1, to help_list.
5285 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5287 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5289 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5291 * top.c (set_history): Pass all_commands, not -1, to help_list.
5292 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5293 all_commands, not -1, to help_list.
5294 * symfile.c (overlay_command): Pass all_commands, not -1, to
5296 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5298 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5300 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5302 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5303 not -1, to help_list.
5304 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5305 not -1, to help_list.
5306 * maint.c (maintenance_command, maintenance_info_command)
5307 (maintenance_print_command, maintenance_set_cmd): Pass
5308 all_commands, not -1, to help_list.
5309 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5311 * language.c (set_check): Pass all_commands, not -1, to help_list.
5312 * infcmd.c (unset_command): Pass all_commands, not -1, to
5314 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5316 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5318 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5320 * breakpoint.c (save_command): Pass all_commands, not -1, to
5322 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5323 all_commands, not -1, to help_list.
5325 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5327 * regcache.c (struct register_to_invalidate): New structure.
5328 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5330 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5332 2014-06-12 Yao Qi <yao@codesourcery.com>
5334 * varobj.c (varobj_get_num_children): Call
5335 varobj_is_dynamic_p.
5336 (varobj_list_children): Likewise.
5337 (varobj_update): Likewise. Update comments.
5339 2014-06-12 Yao Qi <yao@codesourcery.com>
5341 * varobj.c (varobj_pretty_printed_p): Rename to ...
5342 (varobj_is_dynamic_p): ... this. New function.
5343 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5344 (varobj_is_dynamic_p): Declare.
5345 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5346 (mi_print_value_p, varobj_update_one): Likewise.
5348 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5349 Yao Qi <yao@codesourcery.com>
5351 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5352 (varobj_get_iterator): Wrap up code for pretty-printer by
5353 "#if HAVE_PYTHON" and "#endif".
5354 (update_dynamic_varobj_children): Likewise.
5356 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5357 Yao Qi <yao@codesourcery.com>
5359 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5360 gdb_python_initialized is false. Move some code from varobj.c.
5361 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5362 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5363 (struct varobj_item): Moved to varobj-iter.h".
5364 (varobj_clear_saved_item): New function.
5365 (update_dynamic_varobj_children): Move python-related code to
5367 (free_variable): Call varobj_clear_saved_item and
5370 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5371 Yao Qi <yao@codesourcery.com>
5373 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5374 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5375 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5376 (py-varobj.o): New rule.
5377 * python/py-varobj.c: New file.
5378 * python/python-internal.h (py_varobj_get_iterator): Declare.
5379 * varobj-iter.h: New file.
5380 * varobj.c: Include "varobj-iter.h"
5381 (struct varobj) <child_iter>: Change its type from "PyObject *"
5382 to "struct varobj_iter *".
5383 <saved_item>: Likewise.
5384 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5385 [HAVE_PYTHON] (varobj_get_iterator): New function.
5386 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5387 python-specific code to python/py-varobj.c.
5388 (install_visualizer): Call varobj_iter_delete instead of
5390 * varobj.h (varobj_ensure_python_env): Declare.
5392 2014-06-12 Yao Qi <yao@codesourcery.com>
5394 * varobj.c (struct varobj_item): New structure.
5395 (create_child_with_value): Update declaration.
5396 (varobj_add_child): Replace arguments 'name' and 'value' with
5397 'item'. All callers updated.
5398 (install_dynamic_child): Likewise.
5399 (update_dynamic_varobj_children): Likewise.
5400 (varobj_add_child): Likewise.
5401 (create_child_with_value): Likewise.
5403 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5405 * NEWS: Create a new section for the next release branch.
5406 Rename the section of the current branch, now that it has
5409 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5411 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5412 * version.in: Bump version to 7.8.50.DATE-cvs.
5414 2014-06-11 Pedro Alves <palves@redhat.com>
5417 * ser-mingw.c (net_windows_socket_check_pending): New function.
5418 (net_windows_select_thread): Ignore spurious wakeups. Use
5419 net_windows_socket_check_pending.
5420 (net_windows_wait_handle): Check for pending events with
5421 ioctlsocket, through net_windows_socket_check_pending, instead of
5422 checking the socket's event.
5424 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5426 * python/python-internal.h (gdb_PyObject_GetAttrString)
5427 (gdb_PyObject_HasAttrString): New inline function definitions.
5428 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5429 char * of the second argument to PyObject_GetAttrString.
5431 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5433 * serial.c (serial_write): Fix index of character to be printed
5434 in call to serial_logchar when serial debug traces are enabled.
5436 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5438 * gdbtypes (resolve_dynamic_range): Add function description.
5440 2014-06-09 Pedro Alves <palves@redhat.com>
5442 * linux-nat.c (linux_child_follow_fork): Initialize status with
5443 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5444 inner block. Only pass the signal to PTRACE_DETACH if in pass
5447 2014-06-09 Gary Benson <gbenson@redhat.com>
5449 * common/signals.c (gdb_signal_from_host): Reorder to separate
5450 the always-available ANSI-standard signals from the signals that
5452 (do_gdb_signal_to_host): Likewise.
5453 * proc-events.c (signal_table): Likewise.
5455 2014-06-08 Hui Zhu <hui@codesourcery.com>
5457 * common/linux-ptrace.c (linux_disable_event_reporting): New
5459 * common/linux-ptrace.h (linux_disable_event_reporting): New
5461 * linux-nat.c (linux_child_follow_fork): Do a single step before
5464 2014-06-07 Keith Seitz <keiths@redhat.com>
5468 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5469 from symbol_matches_domain in symtab.c. All local callers
5470 of symbol_matches_domain updated.
5471 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5472 search STRUCT_DOMAIN.
5473 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5474 independently. standard_lookup will do that automatically.
5475 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5476 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5477 (cp_lookup_symbol_in_namespace): Likewise.
5478 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5479 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5480 may return a STRUCT_DOMAIN match.
5481 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5482 * cp-support.c: Include language.h.
5483 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5485 * psymtab.c (match_partial_symbol): Compare the requested
5486 domain with the symbol's domain directly.
5487 (lookup_partial_symbol): Likewise.
5488 * symtab.c (lookup_symbol_in_language): Explain when/why
5489 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5490 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5491 appropriate languages.
5492 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5493 and moved to ada-lang.c
5494 (lookup_block_symbol): Explain that this function only returns
5495 symbol matching the requested DOMAIN.
5496 Compare the requested domain with the symbol's domain directly.
5497 (iterate_over_symbols): Compare the requested domain with the
5498 symbol's domain directly.
5499 * symtab.h (symbol_matches_domain): Remove.
5501 2014-06-06 Doug Evans <xdje42@gmail.com>
5503 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5504 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5505 (gdbscm_guile_version_is_at_least): Declare.
5506 (gdbscm_scm_string_to_int): Declare.
5507 * guile/guile.c (gdbscm_guile_major_version): New global.
5508 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5509 (guile_datadir): New static global.
5510 (gdbscm_guile_data_directory): New function.
5511 (initialize_scheme_side): Update.
5512 (misc_guile_functions): Add guile-data-directory.
5513 (initialize_gdb_module): Fetch guile version number.
5514 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5515 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5516 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5517 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5519 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5520 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5521 * guile/scm-value.c (gdbscm_value_to_string): Only call
5522 scm_port_conversion_strategy if Guile version >= 2.0.6.
5524 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5526 * main.c (print_gdb_help): Add -q and --silent.
5528 2014-06-06 Gary Benson <gbenson@redhat.com>
5530 * common/signals.c: Remove preprocessor conditionals for
5531 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5532 SIGSEGV and SIGTERM.
5533 * proc-events.c: Likewise.
5535 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5537 * symfile.c (symfile_free_objfile): Remove restriction to
5539 * symfile-mem.c (symbol_file_add_from_memory): Call
5540 add_target_sections_of_objfile.
5542 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5544 * guile/scm-value.c (gdbscm_history_append_x): Use
5545 'vlscm_get_value_smob_arg_unsafe' instead of
5546 'vlscm_scm_to_value'.
5548 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5551 * utils.c (printchar): Don't escape at all if quoter is NUL.
5552 Update function documentation to clarify effect of parameter
5554 * remote.c (escape_buffer): Pass '\\' as the quoter to
5555 fputstrn_unfiltered.
5556 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5557 generate the output.
5558 (mi_solib_unloaded): Same.
5560 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5562 * development.sh: Delete.
5563 * Makefile.in (config.status): Adjust dependency on development.sh.
5564 * configure.ac: Adjust development.sh source call.
5565 * configure: Regenerate.
5567 2014-06-04 Doug Evans <xdje42@gmail.com>
5569 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5570 is_scheme_bkpt, spec.
5571 (bpscm_make_breakpoint_smob): Initialize new members.
5572 (gdbscm_create_breakpoint_x): Split into two ...
5573 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5574 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5575 (scheme_function breakpoint_functions): Update.
5576 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5577 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5578 register-breakpoint!.
5580 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5583 * mem-break.c (z_type_supported): Return zero if
5584 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5586 2014-06-04 Tom Tromey <tromey@redhat.com>
5588 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5589 value_from_contents_and_address_unresolved.
5590 (ada_template_to_fixed_record_type_1): Likewise.
5591 (ada_which_variant_applies): Likewise.
5592 * value.h (value_from_contents_and_address_unresolved): Declare.
5593 * value.c (value_from_contents_and_address_unresolved): New
5595 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5596 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5597 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5599 2014-06-04 Tom Tromey <tromey@redhat.com>
5601 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5603 2014-06-04 Tom Tromey <tromey@redhat.com>
5605 * procfs.c (procfs_attach): Make "args" const.
5606 * windows-nat.c (windows_attach): Make "args" const.
5607 * nto-procfs.c (procfs_attach): Make "args" const.
5608 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5609 * go32-nat.c (go32_attach): Make "args" const.
5610 * gnu-nat.c (gnu_attach): Make "args" const.
5611 * darwin-nat.c (darwin_attach): Make "args" const.
5612 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5613 * linux-nat.c (linux_nat_attach): Make "args" const.
5614 * remote.c (extended_remote_attach_1, extended_remote_attach):
5616 * target.h (struct target_ops) <to_attach>: Make "args" const.
5617 (find_default_attach): Likewise.
5618 * utils.c (parse_pid_to_attach): Make "args" const.
5619 * utils.h (parse_pid_to_attach): Update.
5621 2014-06-04 Tom Tromey <tromey@redhat.com>
5623 * target-delegates.c: Rebuild.
5624 * target.c (default_thread_address_space): New function.
5625 (target_thread_address_space): Simplify.
5626 * target.h (struct target_ops) <to_thread_address_space>: Add
5627 TARGET_DEFAULT_FUNC.
5629 2014-06-04 Doug Evans <xdje42@gmail.com>
5631 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5633 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5635 * record-btrace.c: Include event-loop.h and inf-loop.h.
5636 (record_btrace_resume_exec_dir)
5637 (record_btrace_async_inferior_event_handler)
5638 (record_btrace_handle_async_inferior_event): New.
5639 (record_btrace_open): Create async event handler.
5640 (record_btrace_close): Delete async event handler.
5641 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5642 Mark async event handler.
5643 (record_btrace_execution_direction): New.
5644 (init_record_btrace_ops): Initialize to_execution_direction.
5646 2014-06-03 Doug Evans <xdje42@gmail.com>
5648 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5649 (gdbscm_make_parameter): Ditto.
5651 2014-06-03 Doug Evans <dje@google.com>
5653 * exec.c (exec_close_1): Call clear_section_table instead of
5654 resize_section_table.
5655 (clear_section_table): New function.
5656 (resize_section_table): Make static. Rename arg num_added to
5658 * exec.h (clear_section_table): Declare.
5659 (resize_section_table): Delete.
5660 * progspace.c (release_program_space): Call clear_section_table
5661 instead of resize_section_table.
5663 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5665 * NEWS (Python Scripting): Add entry about the new xmethods
5668 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5670 * python/py-xmethods.c: New file.
5671 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5672 (objfpy_dealloc): XDECREF on the new xmethods field.
5673 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5675 (objfpy_get_xmethods): New function.
5676 (objfile_getset): New entry 'xmethods'.
5677 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5678 (pspy_dealloc): XDECREF on the new xmethods field.
5679 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5681 (pspy_get_xmethods): New function.
5682 (pspace_getset): New entry 'xmethods'.
5683 * python/python-internal.h: Add declarations for new functions.
5684 * python/python.c (_initialize_python): Invoke
5685 gdbpy_initialize_xmethods.
5686 * python/lib/gdb/__init__.py (xmethods): New
5688 * python/lib/gdb/xmethod.py: New file.
5689 * python/lib/gdb/command/xmethods.py: New file.
5691 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5693 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5694 best match method returned by find_overload_match is an xmethod.
5695 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5696 the best matching operator returned by find_overload_match is an
5698 * valops.c: #include "extension.h".
5699 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5700 Return void. The list of matching source methods is returned in
5701 "fn_list" and a vector of matching debug method workers is
5702 returned in "xm_worker_vec". Update all callers.
5703 (value_find_oload_method_list): Likewise.
5704 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5705 non-NULL, then the index of the best matching method in this
5706 vector is returned. Update all callers.
5707 (find_overload_match): Include xmethods while performing overload
5710 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5712 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5713 * extension-priv.h (struct extension_language_ops): Add the
5715 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5716 get_matching_xmethod_workers, get_xmethod_argtypes,
5717 invoke_xmethod, free_xmethod_worker,
5718 free_xmethod_worker_vec): New functions.
5719 * extension.h: #include "common/vec.h".
5720 New function declarations.
5721 (struct xmethod_worker): New struct.
5722 (VEC (xmethod_worker_ptr)): New vector type.
5723 (xmethod_worker_ptr): New typedef.
5724 (xmethod_worker_vec): Likewise.
5725 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5727 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5728 (struct builtin_type): New field "xmethod".
5729 * valarith.c (value_ptradd): Assert that the value argument is not
5731 * valops.c (value_must_coerce_to_target): Return 0 for
5732 lval_xcallable values.
5733 * value.c (struct value): New field XM_WORKER in the field
5735 (value_address, value_raw_address): Return 0 for lval_xcallable
5737 (set_value_address): Assert that the value is not an
5739 (value_free): Free the associated xmethod worker when freeing
5740 lval_xcallable values.
5741 (set_value_component_location): Assert that the WHOLE value is not
5743 (value_of_xmethod, call_xmethod): New functions.
5744 * value.h: Declare "struct xmethod_worker".
5745 Declare new functions value_of_xmethod, call_xmethod.
5747 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5748 Pedro Alves <palves@redhat.com>
5750 PR breakpoints/17000
5751 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5752 New function, extracted from software_breakpoint_inserted_here_p.
5753 (software_breakpoint_inserted_here_p): Replace factored out code
5754 by call to find_non_raw_software_breakpoint_inserted_here.
5755 (bp_target_info_copy_insertion_state): New function.
5756 (bkpt_insert_location): Handle the case of a single-step
5757 breakpoint already inserted at the same address.
5758 (bkpt_remove_location): Handle the case of a single-step
5759 breakpoint still inserted at the same address.
5760 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5761 breakpoint already inserted at the same address.
5762 (deprecated_remove_raw_breakpoint): Handle the case of a
5763 non-raw breakpoint still inserted at the same address.
5764 (find_single_step_breakpoint): New function, extracted from
5765 single_step_breakpoint_inserted_here_p.
5766 (find_single_step_breakpoint): New function,
5767 factored out from single_step_breakpoint_inserted_here_p.
5768 (single_step_breakpoint_inserted_here_p): Reimplement.
5770 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5772 Pushed by Joel Brobecker <brobecker@adacore.com>
5773 * source.c (show_substitute_path_command): Fix display of matching
5776 2014-06-03 Gary Benson <gbenson@redhat.com>
5778 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5780 2014-06-02 Doug Evans <xdje42@gmail.com>
5782 Add parameter support for Guile.
5783 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5784 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5785 (scm-param.o): New rule.
5786 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5787 (gdbscm_misc_error): Declare.
5788 (gdbscm_canonicalize_command_name): Declare.
5789 (gdbscm_scm_to_host_string): Declare.
5790 (gdbscm_scm_from_host_string): Declare.
5791 (gdbscm_initialize_parameters): Declare.
5792 * guile/guile.c (initialize_gdb_module): Call
5793 gdbscm_initialize_parameters.
5794 * guile/lib/gdb.scm: Export parameter symbols.
5795 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5796 cmdscm_canonicalize_name and made public. All callers updated.
5797 * guile/scm-exception.c (gdbscm_misc_error): New function.
5798 * guile/scm-param.c: New file.
5799 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5800 (gdbscm_scm_to_host_string): New function.
5801 (gdbscm_scm_from_host_string): New function.
5802 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5804 2014-06-02 Doug Evans <xdje42@gmail.com>
5806 Add command support for Guile.
5807 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5808 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5809 (scm-cmd.o): New rule.
5810 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5811 (gdbscm_user_error_p): Declare.
5812 (gdbscm_parse_command_name): Declare.
5813 (gdbscm_valid_command_class_p): Declare.
5814 (gdbscm_initialize_commands): Declare.
5815 * guile/guile.c (initialize_gdb_module): Call
5816 gdbscm_initialize_commands.
5817 * guile/lib/gdb.scm: Export command symbols.
5818 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5819 (throw-user-error): New function.
5820 * guile/scm-cmd.c: New file.
5821 * guile/scm-exception.c (user_error_symbol): New static global.
5822 (gdbscm_user_error_p): New function.
5823 (gdbscm_initialize_exceptions): Set user_error_symbol.
5824 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5826 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5828 * top.c (command_loop): Handle comments here...
5829 (command_line_input): ... not here.
5831 2014-06-02 Doug Evans <xdje42@gmail.com>
5833 Add progspace support for Guile.
5834 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5835 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5836 (scm-progspace.o): New rule.
5837 * guile/guile-internal.h (pspace_smob): New typedef.
5838 (psscm_pspace_smob_pretty_printers): Declare.
5839 (psscm_pspace_smob_from_pspace): Declare.
5840 (psscm_scm_from_pspace): Declare.
5841 * guile/guile.c (initialize_gdb_module): Call
5842 gdbscm_initialize_pspaces.
5843 * guile/lib/gdb.scm: Export progspace symbols.
5844 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5846 (append-pretty-printer!): Ditto.
5847 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5849 * guile/scm-progspace.c: New file.
5851 2014-06-03 Alan Modra <amodra@gmail.com>
5853 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5854 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5856 2014-06-02 Doug Evans <dje@google.com>
5858 Add support for skeletonless type units.
5859 * dwarf2read.c (struct dwarf2_per_objfile): New member
5860 n_allocated_type_units.
5861 (struct dwarf2_per_objfile) <tu_stats>: New member
5862 nr_all_type_units_reallocs.
5863 (create_signatured_type_table_from_index): Initialize
5864 n_allocated_type_units
5865 (create_all_type_units): Ditto.
5866 (add_type_unit): Move up in file. New arg slot.
5867 All callers updated. Increase space for all_type_units more
5869 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5870 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5871 (lookup_dwp_signatured_type): Ditto.
5872 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5873 All callers updated.
5874 (build_type_psymtabs_1): Leave type_unit_groups as
5875 NULL if no TUs present.
5876 (print_tu_stats): New function.
5877 (process_skeletonless_type_unit): New function.
5878 (process_dwo_file_for_skeletonless_type_units): New
5880 (process_skeletonless_type_units): New function.
5881 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5882 Call print tu_stats if debugging enabled.
5884 2014-06-02 Pedro Alves <palves@redhat.com>
5886 * breakpoint.c (build_target_command_list): Don't build a command
5887 list if we have any duplicate location that isn't a dprintf.
5889 2014-06-02 Pedro Alves <palves@redhat.com>
5891 * breakpoint.c (dprintf_breakpoint_hit): New function.
5892 (initialize_breakpoint_ops): Install it as dprintf's
5893 breakpoint_hit method.
5895 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5897 * source.c (substitute_path_rule_matches): Simplify using
5898 filename_ncmp instead of FILENAME_CMP.
5900 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5902 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5904 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5906 * configure.ac: When Guile is available, check for the
5907 availability of 'scm_new_smob'.
5908 * configure, config.h.in: Regenerate.
5909 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5912 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5914 * frame.c (struct frame_info): Add stop_string field.
5915 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5916 (get_prev_frame_always): Old content moved into
5917 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5918 TRY_CATCH, handle MEMORY_ERROR exceptions.
5919 (frame_stop_reason_string): New function definition.
5920 * frame.h (unwind_stop_reason_to_string): Extend comment to
5921 mention frame_stop_reason_string.
5922 (frame_stop_reason_string): New function declaration.
5923 * stack.c (frame_info): Switch to frame_stop_reason_string.
5924 (backtrace_command_1): Switch to frame_stop_reason_string.
5925 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5926 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5927 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5929 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5931 * frame.c (frame_stop_reason_string): Rename to ...
5932 (unwind_stop_reason_to_string): this.
5933 * frame.h (frame_stop_reason_string): Rename to ...
5934 (unwind_stop_reason_to_string): this.
5935 * stack.c (frame_info): Update call to frame_stop_reason_string.
5936 (backtrace_command_1): Likewise.
5937 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5938 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5940 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5942 * frame.c (remove_prev_frame): New function.
5943 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5946 2014-05-29 Pedro Alves <palves@redhat.com>
5948 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5949 and make it const. When a single-step decays to a continue,
5950 clear 'step', not 'hw_step'. Pass whether the caller wanted
5951 to step to user_visible_resume_ptid, not what we ask the
5954 2014-05-29 Pedro Alves <palves@redhat.com>
5956 * infrun.c (process_event_stop_test, handle_step_into_function)
5957 (handle_step_into_function_backward): Adjust.
5958 Don't set the even thread's stop_step and call stop_waiting before
5959 calling end_stepping_range. Instead do that ...
5960 (end_stepping_range): ... here. Take an ecs pointer parameter.
5962 2014-05-29 Pedro Alves <palves@redhat.com>
5964 * infrun.c (stop_stepping): Rename to ...
5965 (stop_waiting): ... this.
5966 (proceed): Update comment.
5967 (process_event_stop_test, handle_inferior_event)
5968 (handle_signal_stop, handle_step_into_function)
5969 (handle_step_into_function_backward): Update.
5971 2014-05-29 Pedro Alves <palves@redhat.com>
5973 * infcall.c (run_inferior_call): Don't check whether the current
5974 thread is running after the proceed call.
5976 2014-05-29 Pedro Alves <palves@redhat.com>
5977 Tom Tromey <tromey@redhat.com>
5979 * NEWS: Mention "maint set target-async", "set mi-async", and that
5980 background execution commands are now always available.
5981 * target.h (target_async_permitted): Update comment.
5982 * target.c (target_async_permitted, target_async_permitted_1):
5984 (set_target_async_command): Rename to ...
5985 (maint_set_target_async_command): ... this.
5986 (show_target_async_command): Rename to ...
5987 (maint_show_target_async_command): ... this.
5988 (_initialize_target): Adjust.
5989 * infcmd.c (prepare_execution_command): Make extern.
5990 * inferior.h (prepare_execution_command): Declare.
5991 * infrun.c (set_observer_mode): Leave target async alone.
5992 * mi/mi-interp.c (mi_interpreter_init): Install
5993 mi_on_sync_execution_done as sync_execution_done observer.
5994 (mi_on_sync_execution_done): New function.
5995 (mi_execute_command_input_handler): Don't print the prompt if we
5996 just started a synchronous command with an async target.
5997 (mi_on_resume): Check sync_execution before printing prompt.
5998 * mi/mi-main.h (mi_async_p): Declare.
5999 * mi/mi-main.c: Include gdbcmd.h.
6000 (mi_async_p): New function.
6001 (mi_async, mi_async_1): New globals.
6002 (set_mi_async_command, show_mi_async_command, mi_async): New
6004 (exec_continue): Call prepare_execution_command.
6005 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6006 (mi_execute_async_cli_command): Use mi_async_p.
6007 (_initialize_mi_main): Install "set mi-async". Make
6008 "target-async" a deprecated alias.
6010 2014-05-29 Pedro Alves <palves@redhat.com>
6012 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6013 (_initialize_cli_interp): Adjust.
6014 * event-loop.c: Include "observer.h".
6015 (start_event_loop): Notify 'command_error' observers instead of
6016 calling display_gdb_prompt. Remove FIXME comment.
6017 * event-top.c (display_gdb_prompt): Remove call into the
6019 * inf-loop.c: Include "observer.h".
6020 (inferior_event_handler): Notify 'command_error' observers instead
6021 of calling display_gdb_prompt.
6022 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6023 observers instead of calling display_gdb_prompt.
6024 * interps.c (interp_set): Don't call display_gdb_prompt.
6025 (current_interp_display_prompt_p): Delete.
6026 * interps.h (interp_prompt_p): Delete declaration.
6027 (interp_prompt_p_ftype): Delete.
6028 (struct interp_procs) <prompt_proc_p>: Delete field.
6029 (current_interp_display_prompt_p): Delete declaration.
6030 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6031 (_initialize_mi_interp): Adjust.
6032 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6033 'command_error' observers.
6034 (tui_on_sync_execution_done, tui_on_command_error): New
6036 (tui_display_prompt_p): Delete.
6037 (_initialize_tui_interp): Adjust.
6039 2014-05-29 Pedro Alves <palves@redhat.com>
6042 * cli/cli-interp.c: Include infrun.h and observer.h.
6043 (cli_uiout, cli_interp): New globals.
6044 (cli_on_signal_received, cli_on_end_stepping_range)
6045 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6047 (cli_interpreter_init): Install them as 'end_stepping_range',
6048 'signal_received' 'signal_exited', 'exited' and 'no_history'
6050 (_initialize_cli_interp): Remove cli_interp local.
6051 * infrun.c (handle_inferior_event): Call the several stop reason
6052 observers instead of printing the stop reason directly.
6053 (end_stepping_range): New function.
6054 (print_end_stepping_range_reason, print_signal_exited_reason)
6055 (print_exited_reason, print_signal_received_reason)
6056 (print_no_history_reason): Make static, and add an uiout
6057 parameter. Print to that instead of to CURRENT_UIOUT.
6058 * infrun.h (print_end_stepping_range_reason)
6059 (print_signal_exited_reason, print_exited_reason)
6060 (print_signal_received_reason print_no_history_reason): New
6062 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6064 <cli_uiout>: New field.
6065 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6066 uiout for CLI output. Install 'signal_received',
6067 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6069 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6070 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6071 (mi_on_no_history): New functions.
6072 (ui_out_free_cleanup): Delete function.
6073 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6074 instead use the one already stored in the MI interpreter data.
6075 (mi_ui_out): Adjust.
6076 * tui/tui-interp.c: Include infrun.h and observer.h.
6077 (tui_interp): New global.
6078 (tui_on_signal_received, tui_on_end_stepping_range)
6079 (tui_on_signal_exited, tui_on_exited)
6080 (tui_on_no_history): New functions.
6081 (tui_init): Install them as 'end_stepping_range',
6082 'signal_received' 'signal_exited', 'exited' and 'no_history'
6084 (_initialize_tui_interp): Delete tui_interp local.
6086 2014-05-29 Pedro Alves <palves@redhat.com>
6089 * linux-nat.c (linux_nat_resume_callback): Rename the second
6090 parameter to 'except'. Skip LP if it points to EXCEPT.
6091 (linux_nat_resume): Don't mark the event lwp as not stopped
6092 before resuming sibling lwps. Instead ask
6093 linux_nat_resume_callback to skip the event lwp. Mark it as not
6094 stopped after actually resuming it.
6095 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6097 (wait_lwp): Mark the lwp as stopped here.
6098 (stop_wait_callback): Mark the lwp as not stopped right after
6099 resuming it. Don't mark lwps as stopped here.
6100 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6101 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6103 2014-05-29 Pedro Alves <palves@redhat.com>
6106 * infrun.c (resume): Determine how much to resume depending on
6107 whether the caller wanted a step, not whether we can hardware step
6108 the target. Mark all threads that we intend to run as running,
6109 unless we're calling an inferior function.
6110 (normal_stop): If the thread is running an infcall, don't finish
6112 * target.c (target_resume): Don't mark threads as running here.
6114 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6116 * serial.c (_initialize_serial): Remove support for
6117 the "set remotebaud" and "show remotebaud" commands.
6118 * NEWS: Add entry documenting the removal of that command.
6120 2014-05-28 Yao Qi <yao@codesourcery.com>
6122 * charset.c: Fix typo in comments.
6124 2014-05-27 Gary Benson <gbenson@redhat.com>
6126 * utils.c (internal_vproblem): Prompt for a bug report.
6128 2014-05-26 Andy Wingo <wingo@igalia.com>
6130 * guile/scm-arch.c (arscm_mark_arch_smob):
6131 * guile/scm-block.c (bkscm_mark_block_smob)
6132 (bkscm_mark_block_syms_progress_smob):
6133 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6134 * guile/scm-exception.c (exscm_mark_exception_smob):
6135 * guile/scm-frame.c (frscm_mark_frame_smob):
6136 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6137 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6138 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6139 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6140 (ppscm_mark_pretty_printer_worker_smob):
6141 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6142 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6143 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6144 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6146 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6149 2014-05-26 Andy Wingo <wingo@igalia.com>
6150 Doug Evans <xdje42@gmail.com>
6152 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6153 empty_base_class. All uses updated.
6154 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6155 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6157 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6158 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6159 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6160 (gdbscm_gsmob_has_property_p, add_property_name)
6161 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6162 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6163 (gdb-object-has-property?, gdb-object-properties): Remove.
6164 (gdb-object-kind): Renamed from gsmob-kind.
6166 2014-05-26 Andy Wingo <wingo@igalia.com>
6168 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6169 * configure: Regenerate.
6171 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6173 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6175 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6177 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6178 (replay_memory_access_read_only, replay_memory_access_read_write)
6179 (replay_memory_access_types, replay_memory_access)
6180 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6181 (cmd_set_record_btrace, cmd_show_record_btrace)
6182 (cmd_show_replay_memory_access): New.
6183 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6184 (record_btrace_remove_breakpoint): Replace
6185 record_btrace_allow_memory_access with replay_memory_access.
6186 (_initialize_record_btrace): Add commands.
6187 * NEWS: Announce it.
6189 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6191 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6193 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6195 * MAINTAINERS (Write After Approval): Move self back from
6198 2014-05-22 Pedro Alves <palves@redhat.com>
6200 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6201 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6202 (disable_randomization, enum exec_direction_kind)
6203 (execution_direction, stop_registers, start_remote)
6204 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6205 (wait_for_inferior, normal_stop, get_last_target_status)
6206 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6207 (insert_step_resume_breakpoint_at_sal)
6208 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6209 (set_step_info, print_stop_event, signal_stop_state)
6210 (signal_print_state, signal_pass_state, signal_stop_update)
6211 (signal_print_update, signal_pass_update)
6212 (update_signals_program_target, clear_exit_convenience_vars)
6213 (displaced_step_dump_bytes, update_observer_mode)
6214 (signal_catch_update, gdb_signal_from_command): Move
6216 * infrun.h: ... to this new file.
6217 * amd64-tdep.c: Include infrun.h.
6218 * annotate.c: Include infrun.h.
6219 * arch-utils.c: Include infrun.h.
6220 * arm-linux-tdep.c: Include infrun.h.
6221 * arm-tdep.c: Include infrun.h.
6222 * break-catch-sig.c: Include infrun.h.
6223 * breakpoint.c: Include infrun.h.
6224 * common/agent.c: Include infrun.h instead of inferior.h.
6225 * corelow.c: Include infrun.h.
6226 * event-top.c: Include infrun.h.
6227 * go32-nat.c: Include infrun.h.
6228 * i386-tdep.c: Include infrun.h.
6229 * inf-loop.c: Include infrun.h.
6230 * infcall.c: Include infrun.h.
6231 * infcmd.c: Include infrun.h.
6232 * infrun.c: Include infrun.h.
6233 * linux-fork.c: Include infrun.h.
6234 * linux-nat.c: Include infrun.h.
6235 * linux-thread-db.c: Include infrun.h.
6236 * monitor.c: Include infrun.h.
6237 * nto-tdep.c: Include infrun.h.
6238 * procfs.c: Include infrun.h.
6239 * record-btrace.c: Include infrun.h.
6240 * record-full.c: Include infrun.h.
6241 * remote-m32r-sdi.c: Include infrun.h.
6242 * remote-mips.c: Include infrun.h.
6243 * remote-notif.c: Include infrun.h.
6244 * remote-sim.c: Include infrun.h.
6245 * remote.c: Include infrun.h.
6246 * reverse.c: Include infrun.h.
6247 * rs6000-tdep.c: Include infrun.h.
6248 * s390-linux-tdep.c: Include infrun.h.
6249 * solib-irix.c: Include infrun.h.
6250 * solib-osf.c: Include infrun.h.
6251 * solib-svr4.c: Include infrun.h.
6252 * target.c: Include infrun.h.
6253 * top.c: Include infrun.h.
6254 * windows-nat.c: Include infrun.h.
6255 * mi/mi-interp.c: Include infrun.h.
6256 * mi/mi-main.c: Include infrun.h.
6257 * python/py-threadevent.c: Include infrun.h.
6259 2014-05-22 Pedro Alves <palves@redhat.com>
6261 * infrun.c (handle_inferior_event): Store the exit code for
6262 --return-child-result here, instead of ...
6263 (print_exited_reason): ... here.
6265 2014-05-21 Pedro Alves <palves@redhat.com>
6268 * gdbthread.h (struct thread_control_state): New field
6270 * infrun.c (follow_fork): Copy the new thread control field to the
6272 (clear_proceed_status_thread): Clear the new thread control field.
6273 (proceed): Set the new thread control field.
6274 * interps.h (command_interp): Declare.
6275 * interps.c (command_interpreter): New global.
6276 (command_interp): New function.
6277 (interp_exec): Set `command_interpreter' while here.
6278 * cli-out.c (cli_uiout_dtor): New function.
6279 (cli_ui_out_impl): Install it.
6280 * mi/mi-interp.c: Include cli-out.h.
6281 (mi_cmd_interpreter_exec): Add comment.
6282 (restore_current_uiout_cleanup): New function.
6283 (ui_out_free_cleanup): New function.
6284 (mi_on_normal_stop): If finishing an execution command started by
6285 a CLI command, or any kind of breakpoint-like event triggered,
6286 print the stop event to the output (CLI) stream.
6287 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6289 2014-05-21 Pedro Alves <palves@redhat.com>
6291 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6292 current source line having changed.
6293 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6294 * infrun.c (normal_stop): Adjust call to
6295 set_current_sal_from_frame.
6296 * source.c (clear_lines_listed_range): New function.
6297 (set_current_source_symtab_and_line, identify_source_line): Clear
6298 the lines listed range.
6299 (line_info): Handle the first "info line" after the current source
6300 line having changed.
6301 * stack.c (print_stack_frame): Remove center handling.
6302 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6305 2014-05-21 Pedro Alves <palves@redhat.com>
6307 * inf-child.c (inf_child_mourn_inferior): New function.
6308 * inf-child.h (inf_child_mourn_inferior): New declaration.
6309 * darwin-nat.c (darwin_mourn_inferior): Use
6310 inf_child_mourn_inferior.
6311 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6312 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6313 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6314 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6315 * windows-nat.c (windows_mourn_inferior): Likewise.
6317 2014-05-21 Doug Evans <xdje42@gmail.com>
6319 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6321 2014-05-21 Doug Evans <xdje42@gmail.com>
6323 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6324 (gdbscm_out_of_range_error): Ditto.
6325 (gdbscm_memory_error): Ditto.
6326 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6327 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6328 (gdbscm_out_of_range_error): Update.
6329 (gdbscm_memory_error): Update.
6330 (gdbscm_scm_to_target_string_unsafe): Delete.
6332 2014-05-21 Pedro Alves <palves@redhat.com>
6334 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6336 (inf_child_open_target): New function.
6337 (inf_child_open): Use inf_child_open_target to push the target
6338 instead of erroring out.
6339 (inf_child_disconnect, inf_child_close)
6340 (inf_child_maybe_unpush_target): New functions.
6341 (inf_child_target): Install inf_child_disconnect and
6342 inf_child_close. Store a pointer to the returned object.
6343 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6345 * target.c (auto_connect_native_target): New global.
6346 (show_default_run_target): New function.
6347 (find_default_run_target): Return NULL if automatically connecting
6348 to the native target is disabled.
6349 (_initialize_target): Install set/show auto-connect-native-target.
6350 * NEWS: Mention "set auto-connect-native-target", and "target
6352 * linux-nat.c (super_close): New global.
6353 (linux_nat_close): Call super_close.
6354 (linux_nat_add_target): Store a pointer to the base class's
6356 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6357 inf_child_maybe_unpush.
6358 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6360 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6361 the inferior. Use inf_child_maybe_unpush_target.
6362 (inf_ttrace_attach): Don't push the target if it is already
6364 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6365 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6366 after mourning the inferior. Use inf_child_maybe_unpush_target.
6367 (darwin_attach_pid): Don't push the target if it is already
6369 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6370 mourning the inferior. Use inf_child_maybe_unpush_target.
6371 (gnu_detach): Use inf_child_maybe_unpush_target.
6372 * go32-nat.c (go32_create_inferior): Don't push the target if it
6374 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6375 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6376 (procfs_open): Rename to ...
6377 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6378 comments. Can target_preopen before changing node. Call
6379 inf_child_open_target to push the target explicitly.
6380 (procfs_attach): Don't push the target if it is already pushed.
6381 (procfs_detach): Use inf_child_maybe_unpush_target.
6382 (procfs_create_inferior): Don't push the target if it is already
6384 (nto_native_ops): New global.
6385 (procfs_open): Reimplement.
6386 (procfs_native_open): New function.
6387 (init_procfs_targets): Install procfs_native_open as to_open of
6388 "target native". Store a pointer to the "native" target in
6390 * procfs.c (procfs_attach): Don't push the target if it is already
6392 (procfs_detach): Use inf_child_maybe_unpush_target.
6393 (procfs_mourn_inferior): Only unpush the target after mourning the
6394 inferior. Use inf_child_maybe_unpush_target.
6395 (procfs_init_inferior): Don't push the target if it is already
6397 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6398 if it is already pushed.
6400 2014-05-21 Pedro Alves <palves@redhat.com>
6402 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6403 and "procfs" targets are now called "native" instead.
6405 2014-05-21 Pedro Alves <palves@redhat.com>
6407 * go32-nat.c (go32_open): Delete.
6408 (go32_target): Don't override the to_open method.
6410 2014-05-21 Pedro Alves <palves@redhat.com>
6412 * nto-procfs.c (procfs_can_run): New function.
6413 (nto_procfs_ops): New global.
6414 (init_procfs_targets): New, based on procfs_target. Install
6415 "target native" in addition to "target procfs".
6416 (_initialize_procfs): Call init_procfs_targets instead of adding
6419 2014-05-21 Pedro Alves <palves@redhat.com>
6421 * windows-nat.c (windows_target): Don't override to_shortname,
6422 to_longname or to_doc.
6424 2014-05-21 Pedro Alves <palves@redhat.com>
6426 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6429 2014-05-21 Pedro Alves <palves@redhat.com>
6431 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6432 to_shortname, to_longname or to_doc.
6434 2014-05-21 Pedro Alves <palves@redhat.com>
6436 * go32-nat.c (go32_target): Don't override to_shortname,
6437 to_longname or to_doc.
6439 2014-05-21 Pedro Alves <palves@redhat.com>
6441 * inf-child.c (inf_child_open): Remove mention of "child".
6442 (inf_child_target): Rename target to "native" instead of "child".
6444 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6446 * Makefile.in (SFILES): Delete "regset.c".
6447 (COMMON_OBS): Delete "regset.o".
6449 * regset.h (regset_alloc): Delete prototype.
6451 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6453 * sparc-linux-tdep.c (sparc32_linux_gregset)
6454 (sparc32_linux_fpregset): New static regset structures.
6455 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6456 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6458 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6459 (sparc64_linux_fpregset): New static regset structures.
6460 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6461 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6462 New static regset structures.
6463 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6464 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6465 New static regset structures.
6466 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6467 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6468 New static regset structures.
6469 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6470 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6471 New static regset structures.
6472 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6474 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6476 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6477 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6478 register maps ("regmaps") from "*regset" to "*regmap". Do this
6479 for all regmap types and variables.
6480 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6481 (sparc32_linux_supply_core_gregset)
6482 (sparc32_linux_collect_core_gregset)
6483 (sparc32_linux_supply_core_fpregset)
6484 (sparc32_linux_collect_core_fpregset): Likewise.
6485 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6486 (sparc_gregmap, sparc_fpregmap): ... these.
6487 (sparc_supply_gregset, sparc_collect_gregset)
6488 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6489 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6490 (_initialize_sparc_nat): Rename regmaps.
6491 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6492 (sparc_gregmap, sparc_fpregmap): ... these.
6493 (sparc_supply_gregset, sparc_collect_gregset)
6494 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6495 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6497 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6498 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6500 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6502 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6503 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6504 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6506 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6507 (sparc32_bsd_fpregset): Rename to...
6508 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6509 (sparc32_bsd_fpregmap): ... these.
6510 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6511 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6512 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6513 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6514 (struct sparc_gregmap, struct sparc_fpregmap)
6515 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6516 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6517 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6518 (sparc32_supply_regset, sparc32_collect_gregset)
6519 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6521 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6522 (sparc64_linux_ptrace_gregmap): ... this.
6523 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6524 (_initialize_sparc64_linux_nat): Rename regmaps.
6525 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6526 (sparc64_linux_core_gregmap): ... this.
6527 (sparc64_linux_supply_core_gregset)
6528 (sparc64_linux_collect_core_gregset)
6529 (sparc64_linux_supply_core_fpregset)
6530 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6531 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6532 (sparc64_sol2_fpregset): Rename to...
6533 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6534 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6535 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6537 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6538 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6539 (sparc64_bsd_fpregset): Rename to...
6540 (struct sparc_gregmap, sparc64_sol2_gregmap)
6541 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6542 (sparc64_bsd_fpregmap): ... these.
6543 (sparc64_supply_gregset, sparc64_collect_gregset)
6544 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6546 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6547 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6548 (sparc64fbsd_gregmap): ... this.
6549 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6550 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6552 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6553 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6554 (sparc64nbsd_collect_fpregset): Likewise.
6555 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6556 (sparc64nbsd_gregmap): ... this.
6557 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6559 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6560 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6561 (sparc64obsd_gregmap): ... this.
6562 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6564 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6565 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6566 (sparc32nbsd_gregmap): ... this.
6567 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6570 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6572 * score-tdep.c (score7_linux_gregset): New static regset
6574 (score7_linux_regset_from_core_section): Remove dynamic regset
6576 (score_gdbarch_init): Drop allocation of tdep structure.
6577 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6579 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6581 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6583 (am33_regset_from_core_section): Remove dynamic regset
6586 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6588 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6589 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6591 (mips_linux_regset_from_core_section): Remove dynamic regset
6593 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6594 'gregset64', 'fpregset', and 'fpregset64'.
6595 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6596 deleted tdep fields.
6598 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6600 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6602 (amd64_regset_from_core_section): Remove dynamic regset
6604 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6606 (amd64obsd_regset_from_core_section): Remove dynamic regset
6608 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6610 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6611 x86-common regset supply function.
6612 * i386-tdep.c (i386_collect_gregset): Make static.
6613 (i386_gregset): New global regset structure.
6614 (i386_fpregset, i386_xstateregset): New static regset structures.
6615 (i386_regset_from_core_section): Remove dynamic regset
6617 (i386_gdbarch_init): Remove initialization of tdep fields
6618 'gregset', 'fpregset', and 'xstateregset'.
6619 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6620 'fpregset', and 'xstateregset'.
6621 (i386_collect_gregset): Remove prototype.
6622 (i386_gregset): New declaration.
6623 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6625 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6628 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6630 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6631 (arm_linux_vfpregset): New static regset structures.
6632 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6634 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6635 and 'vfpregset' fields.
6637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6639 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6640 (aarch64_linux_fpregset): New static regset structures.
6641 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6642 of regset structures.
6643 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6646 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6648 * regset.h (struct regset): Remove gdbarch field.
6649 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6650 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6651 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6653 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6654 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6655 (ppc32_linux_vsxregset): Likewise.
6656 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6657 via the regcache instead of the regset.
6658 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6659 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6660 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6661 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6664 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6666 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6667 Constify structures.
6668 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6669 (alphanbsd_aout_gregset): Likewise.
6670 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6671 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6673 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6674 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6676 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6677 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6678 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6679 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6680 * m88k-tdep.c (m88k_gregset): Likewise.
6681 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6682 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6683 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6684 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6685 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6686 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6687 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6688 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6689 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6691 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6692 * sh-tdep.h (sh_corefile_gregset): Likewise.
6693 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6694 * vax-tdep.c (vax_gregset): Likewise.
6696 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6698 Fix TLS access for -static -pthread.
6699 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6700 (try_thread_db_load_1): Initialize it.
6701 (thread_db_get_thread_local_address): Call it if LM is zero.
6702 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6703 * target.h (struct target_ops) (to_get_thread_local_address): Add
6704 load_module_addr comment.
6706 2014-05-21 Pedro Alves <palves@redhat.com>
6708 * dcache.c (dcache_read_memory_partial): If reading the cache line
6709 fails, fallback to reading just the memory the caller wanted.
6711 2014-05-20 Doug Evans <dje@google.com>
6713 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6714 instead of get_current_arch.
6716 2014-05-20 Pedro Alves <palves@redhat.com>
6718 * NEWS: Mention that compare-sections now works with all targets.
6720 * remote.c (PACKET_qCRC): New enum value.
6721 (remote_verify_memory): Don't send qCRC if the target has no
6722 execution. Use packet_support/packet_ok. If the target doesn't
6723 support the qCRC packet, fallback to a deep memory copy.
6724 (compare_sections_command): Say "target image" instead of "remote
6726 (_initialize_remote): Add PACKET_qCRC to the list of config
6727 packets that have no associated command. Extend comment.
6728 * target.c (simple_verify_memory, default_verify_memory): New
6730 * target.h (struct target_ops) <to_verify_memory>: Default to
6731 default_verify_memory.
6732 (simple_verify_memory): New declaration.
6733 * target-delegates.c: Regenerate.
6735 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6737 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6739 2014-05-20 Hui Zhu <hui@codesourcery.com>
6740 Yao Qi <yao@codesourcery.com>
6743 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6744 and change address of sp and pc.
6746 2014-05-19 Tom Tromey <tromey@redhat.com>
6748 * gdbtypes.c (rank_function): Use XNEWVEC.
6749 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6751 2014-05-19 Doug Evans <dje@google.com>
6753 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6754 build_type_unit_groups and moved closer to only caller. Remove
6755 arguments. All references updated. Remove outdated .gdb_index
6757 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6758 build_type_psymtabs_1.
6760 2014-05-19 Doug Evans <dje@google.com>
6762 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6763 n_type_unit_groups, all_type_unit_groups. All uses removed.
6764 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6765 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6766 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6767 (add_type_unit_group_to_table): Delete.
6769 2014-05-19 Doug Evans <dje@google.com>
6771 * eval.c (evaluate_subexp_standard): Add some comments.
6773 2014-05-17 Doug Evans <xdje42@gmail.com>
6775 * progspace.c (remove_program_space): Delete, unused.
6776 * progspace.h (remove_program_space): Ditto.
6778 2014-05-17 Doug Evans <xdje42@gmail.com>
6780 * inferior.c (prune_inferiors): Fix comment.
6781 (remove_inferior_command): Call prune_program_spaces.
6783 2014-05-16 Doug Evans <dje@google.com>
6785 New command line option -D.
6787 * main.c (set_gdb_data_directory): New function.
6788 (captured_main): Recognize -D. Flag error for --data-directory "".
6789 Call set_gdb_data_directory.
6790 (print_gdb_help): Print --data-directory, -D.
6791 * main.h (set_gdb_data_directory): Declare.
6792 * top.c (staged_gdb_datadir): New static global.
6793 (set_gdb_datadir): Call set_gdb_data_directory
6794 (show_gdb_datadir): New function.
6795 (init_main): Update init of data-directory parameter.
6797 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6799 Import the "dirfd" gnulib module.
6800 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6801 * gnulib/aclocal.m4: Update.
6802 * gnulib/config.in: Update.
6803 * gnulib/configure: Update.
6804 * gnulib/import/Makefile.am: Update.
6805 * gnulib/import/Makefile.in: Update.
6806 * gnulib/import/dirfd.c: New.
6807 * gnulib/import/m4/dirfd.m4: New.
6808 * gnulib/import/m4/gnulib-cache.m4: Update.
6809 * gnulib/import/m4/gnulib-comp.m4: Update.
6811 2014-05-16 Pierre Muller <muller@sourceware.org>
6812 Yao Qi <yao@codesourcery.com>
6814 * valprint.c (print_wchar): Move the code on checking whether
6815 W is a printable wide char to the default branch of switch
6816 statement below. Call wchar_printable instead of gdb_iswprint.
6818 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6820 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6821 ldr.w and ldrd instructions.
6823 2014-05-15 Doug Evans <dje@google.com>
6825 * dwarf2read.c (read_structure_type): Delete outdated comments.
6827 2014-05-14 Tom Tromey <tromey@redhat.com>
6829 * macrocmd.c (print_macro_definition): Reindent.
6831 2014-05-13 Doug Evans <xdje42@gmail.com>
6833 * python/py-cmd.c (cmdpy_completer): Add comment.
6834 (completers): Make const.
6836 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6838 * infrun.c (resume): Remove should_resume (unused). Move up
6839 declaration of resume_ptid.
6841 2014-05-13 Tom Tromey <tromey@redhat.com>
6843 * language.h (unop_type_check): Remove.
6844 (binop_type_check): Don't declare.
6846 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6848 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6849 call to regcache_raw_collect.
6851 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6853 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6854 mi_console->quote as the quoting character.
6856 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6858 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6860 2014-04-29 Tom Tromey <tromey@redhat.com>
6862 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6863 "show debug varobj".
6865 2014-05-07 Kyle McMartin <kyle@redhat.com>
6867 Pushed by Joel Brobecker <brobecker@adacore.com>.
6868 * aarch64-tdep.c (aarch64_software_single_step): New function.
6869 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6870 with aarch64_software_single_step.
6872 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6876 2014-05-05 Keith Seitz <keiths@redhat.com>
6878 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6879 variable or history value is successfully parsed.
6881 2014-05-05 Yao Qi <yao@codesourcery.com>
6882 Pedro Alves <palves@redhat.com>
6884 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6885 address of blocks that intersects the requested range. Trim
6886 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6888 * ctf.c (ctf_xfer_partial): Likewise.
6890 2014-05-05 Yao Qi <yao@codesourcery.com>
6892 * printcmd.c (display_command): Remove the check to
6893 target_has_execution.
6895 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6897 * ppcobsd-nat.c: Include "obsd-nat.h".
6898 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6900 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6902 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6904 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6905 and 16-bit signed and unsigned arguments. Update comment.
6906 (stap_parse_probe_arguments): Extend code to handle such
6907 arguments. Use warning instead of complaint to notify about
6908 unrecognized bitness.
6910 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6912 PR breakpoints/16889
6913 * stap-probe.c (stap_parse_probe_arguments): Simplify
6914 check for non-prefixed probes (i.e., probes whose
6915 arguments do not start with "N@"). Always set the
6916 argument type to a sane value.
6918 2014-05-01 David Taylor <dtaylor@emc.com>
6920 * remote.c (compare_sections_command): Add -r option to compare
6921 all loadable read-only sections.
6923 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6925 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6926 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6928 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6929 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6930 Remove unused CORE_ADDR argument. Update all callers.
6932 2014-04-29 Pedro Alves <palves@redhat.com>
6934 * remote.c (struct packet_config) <detect>: Extend comment.
6935 (add_packet_config_cmd): Don't set the config's detect or support
6937 (init_all_packet_configs): Also initialize the config's 'detect'
6939 (reset_all_packet_configs_support): New function.
6940 (remote_open_1): Call reset_all_packet_configs_support instead of
6941 init_all_packet_configs.
6942 (_initialize_remote): Initialize all packet configs. Assert that
6943 all packets have an associated command, except a few known
6946 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6948 * dwarf2read.c (read_subrange_type): Handle dynamic
6949 DW_AT_lower_bound attributes.
6951 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6953 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6954 dynamic bounds before computing its upper bound.
6955 (ada_discrete_type_low_bound): Same as above with the lower bound.
6957 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6959 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6960 range types. Adjust the array handling implementation to
6961 take advantage of this change.
6962 (resolve_dynamic_range): New function, mostly extracted from
6963 resolve_dynamic_bounds.
6964 (resolve_dynamic_array): New function, mostly extracted from
6965 resolve_dynamic_bounds.
6966 (resolve_dynamic_bounds): Delete.
6967 (resolve_dynamic_type): Reimplement. Add handling of
6968 TYPE_CODE_RANGE types.
6970 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6972 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6973 handling of parallel ___XA types.
6975 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6977 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6978 unnecessary second call to static_unwrap_type.
6980 2014-04-27 Hui Zhu <hui@codesourcery.com>
6982 * stack.c (print_frame_info): Call do_gdb_disassembly with
6983 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6985 2014-04-26 Doug Evans <xdje42@gmail.com>
6987 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6989 2014-04-25 Pedro Alves <palves@redhat.com>
6992 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6993 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6994 and newline from built string.
6995 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6996 (linux_ptrace_attach_fail_reason): ... this.
6997 * linux-nat.c (linux_nat_attach): Adjust to use
6998 linux_ptrace_attach_fail_reason.
7000 2014-04-25 Pedro Alves <palves@redhat.com>
7002 * remote.c (struct remote_state): Remove multi_process_aware,
7003 non_stop_aware, cond_tracepoints, cond_breakpoints,
7004 breakpoint_commands, fast_tracepoints, static_tracepoints,
7005 install_in_trace, disconnected_tracing,
7006 enable_disable_tracepoints, string_tracing, and
7007 augmented_libraries_svr4_read fields.
7008 (remote_multi_process_p): Move further below in the file.
7009 (struct packet_config): Add comments.
7010 (update_packet_config): Delete function.
7011 (show_packet_config_cmd): Use packet_config_support.
7012 (add_packet_config_cmd): Use NULL as set callback.
7013 (packet_ok): "set remote foo-packet"-style commands no longer
7014 change config->supported -- adjust.
7015 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7016 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7017 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7018 (PACKET_QNonStop, PACKET_multiprocess_feature)
7019 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7020 (PACKET_DisconnectedTracing_feature)
7021 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7022 (set_remote_protocol_packet_cmd): Delete function.
7023 (packet_config_support, packet_support): New functions.
7024 (set_remote_protocol_Z_packet_cmd): Don't call
7025 update_packet_config.
7026 (remote_query_attached, remote_pass_signals)
7027 (remote_program_signals, remote_threads_info)
7028 (remote_threads_extra_info, remote_start_remote): Use
7030 (remote_start_remote): Use packet_config_support and
7032 (init_all_packet_configs): Set all packets to unknown support,
7033 instead of calling update_packet_config.
7034 (remote_check_symbols): Use packet_support.
7035 (remote_supported_packet): Unconditionally set the packet config's
7037 (remote_multi_process_feature, remote_non_stop_feature)
7038 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7039 (remote_breakpoint_commands_feature)
7040 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7041 (remote_install_in_trace_feature)
7042 (remote_disconnected_tracing_feature)
7043 (remote_enable_disable_tracepoint_feature)
7044 (remote_string_tracing_feature)
7045 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7046 (remote_protocol_features): Adjust to use remote_supported_packet
7047 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7048 "ConditionalTracepoints", "ConditionalBreakpoints",
7049 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7050 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7051 "EnableDisableTracepoints", and "tracenz".
7052 (remote_query_supported): Use packet_support.
7053 (remote_open_1): Adjust.
7054 (extended_remote_attach_1): Use packet_support. Switch on the
7055 result of packet_ok instead of checking whether the packet ended
7057 (remote_vcont_resume): Use packet_support.
7058 (remote_resume, remote_stop_ns, fetch_register_using_p)
7059 (remote_prepare_to_store, store_register_using_P)
7060 (check_binary_download, remote_write_bytes): Use packet_support.
7061 (remote_vkill): Use packet_support. Switch on the result of
7062 packet_ok instead of checking whether the packet ended up
7064 (extended_remote_supports_disable_randomization): Use
7066 (extended_remote_run): Switch on the result of packet_ok instead
7067 of checking whether the packet ended up disabled.
7068 (remote_insert_breakpoint, remote_remove_breakpoint)
7069 (remote_insert_watchpoint, remote_remove_watchpoint)
7070 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7072 (remote_search_memory): Use packet_config_support.
7073 (remote_get_thread_local_address, remote_get_tib_address)
7074 (remote_hostio_send_command, remote_can_execute_reverse): Use
7076 (remote_supports_cond_tracepoints)
7077 (remote_supports_cond_breakpoints)
7078 (remote_supports_fast_tracepoints)
7079 (remote_supports_static_tracepoints)
7080 (remote_supports_install_in_trace)
7081 (remote_supports_enable_disable_tracepoint)
7082 (remote_supports_string_tracing)
7083 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7084 the packet config says the feature is enabled or disabled.
7085 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7086 (remote_get_trace_status): Use packet_support.
7087 (remote_set_disconnected_tracing): Adjust to check whether the
7088 feature is enabled with packet_support.
7089 (remote_set_trace_buffer_size, remote_use_agent)
7090 (remote_can_use_agent, remote_supports_btrace): Use
7092 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7093 Use packet_config_support.
7094 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7095 the packet config says the feature is enabled or disabled.
7096 (set_range_stepping): Use packet_support.
7098 2014-04-25 Tom Tromey <tromey@redhat.com>
7100 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7103 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7105 * NEWS: Mention support for C99 variable length arrays.
7107 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7109 * ada-lang.c (standard_exc): Expand introductory comment.
7111 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7112 Walfred Tedeschi <walfred.tedeschi@intel.com>
7114 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7116 (amd64_linux_read_description): Add code to handle AVX512 xstate
7117 mask and return respective tdesc.
7118 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7119 and features/i386/x32-avx512-linux.c.
7120 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7121 (amd64_linux_core_read_description): Add code to handle AVX512
7122 xstate mask and return respective tdesc.
7123 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7124 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7126 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7127 (tdesc_amd64_avx512_linux): New prototype.
7128 (tdesc_x32_avx512_linux): Likewise.
7129 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7130 features/i386/x32-avx512.c.
7131 (amd64_ymm_avx512_names): New register names for pseudo
7133 (amd64_ymmh_avx512_names): New register names for raw registers
7135 (amd64_k_names): New register names for K registers.
7136 (amd64_zmmh_names): New register names for ZMM raw registers.
7137 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7138 (amd64_xmm_avx512_names): New register names for XMM16-31
7140 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7142 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7143 if feature is present.
7144 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7145 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7146 (AMD64_NUM_REGS): Adjust to new number of registers.
7147 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7148 registers supplied via XSTATE by AVX512 registers.
7149 (i386_linux_read_description): Add case for AVX512.
7150 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7151 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7152 (i386_linux_core_read_description): Add case for AVX512.
7153 (i386_linux_init_abi): Install supported register note section
7155 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7157 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7158 registers to be number of zmm7h + 1.
7159 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7160 * i386-tdep.c: Include features/i386/i386-avx512.c.
7161 (i386_zmm_names): Add ZMM pseudo register names array.
7162 (i386_zmmh_names): Add ZMM raw register names array.
7163 (i386_k_names): Add K raw register names array.
7164 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7165 registers. AVX512 has 16 more ZMM registers than there are YMM
7167 (i386_zmmh_regnum_p): Add function to look up register number of
7169 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7170 (i386_k_regnum_p): Likewise for K raw registers.
7171 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7172 registers added by AVX512.
7173 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7174 registers added by AVX512.
7175 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7177 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7178 (i386_pseudo_register_name): Add ZMM pseudo registers.
7179 (i386_zmm_type): Construct and return vector registers type for ZMM
7181 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7182 ZMM0-31 pseudo registers and K registers.
7183 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7184 and YMM16-31 registers from register cache.
7185 (i386_pseudo_register_write): Add code to write K, ZMM and
7187 (i386_register_reggroup_p): Add code to include/exclude AVX512
7188 registers in/from respective register groups.
7189 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7190 registers if feature is present in xcr0.
7191 (i386_gdbarch_init): Add code to initialize AVX512 feature
7192 variables in tdep structure, wire in pseudo registers and call
7193 initialize_tdesc_i386_avx512.
7194 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7196 (i386_regnum): Add AVX512 registers.
7197 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7198 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7199 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7200 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7202 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7203 (i386_ymm_avx512_regnum_p): Likewise.
7204 (i386_k_regnum_p): Likewise.
7205 (i386_zmm_regnum_p): Likewise.
7206 (i386_zmmh_regnum_p): Likewise.
7207 * i387-tdep.c : Update year in copyright notice.
7208 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7210 (XSAVE_YMM_AVX512_ADDR): New macro.
7211 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7213 (XSAVE_XMM_AVX512_ADDR): New macro.
7214 (xsave_avx512_k_offset): New table for K register offsets in
7216 (XSAVE_AVX512_K_ADDR): New macro.
7217 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7219 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7220 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7222 (i387_collect_xsave): Add code to collect AVX512 registers from
7224 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7225 of XMM16-31 registers.
7226 (I387_NUM_K_REGS): New define for number of K registers.
7227 (I387_K0_REGNUM): New define for K0 register number.
7228 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7229 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7230 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7232 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7233 (I387_XMM16_REGNUM): New define for XMM16 register number.
7234 (I387_YMM0_REGNUM): New define for YMM0 register number.
7235 (I387_KEND_REGNUM): New define for last K register number.
7236 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7237 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7239 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7241 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7243 * features/Makefile: Add AVX512 related files.
7244 * features/i386/32bit-avx512.xml: New file.
7245 * features/i386/64bit-avx512.xml: Likewise.
7246 * features/i386/amd64-avx512-linux.c: Likewise.
7247 * features/i386/amd64-avx512-linux.xml: Likewise.
7248 * features/i386/amd64-avx512.c: Likewise.
7249 * features/i386/amd64-avx512.xml: Likewise.
7250 * features/i386/i386-avx512-linux.c: Likewise.
7251 * features/i386/i386-avx512-linux.xml: Likewise.
7252 * features/i386/i386-avx512.c: Likewise.
7253 * features/i386/i386-avx512.xml: Likewise.
7254 * features/i386/x32-avx512-linux.c: Likewise.
7255 * features/i386/x32-avx512-linux.xml: Likewise.
7256 * features/i386/x32-avx512.c: Likewise.
7257 * features/i386/x32-avx512.xml: Likewise.
7258 * regformats/i386/amd64-avx512-linux.dat: New file.
7259 * regformats/i386/amd64-avx512.dat: Likewise.
7260 * regformats/i386/i386-avx512-linux.dat: Likewise.
7261 * regformats/i386/i386-avx512.dat: Likewise.
7262 * regformats/i386/x32-avx512-linux.dat: Likewise.
7263 * regformats/i386/x32-avx512.dat: Likewise.
7264 * NEWS: Add note about new support for AVX512.
7267 2014-04-23 Pedro Alves <palves@redhat.com>
7269 * breakpoint.c (insert_bp_location): Tolerate errors if the
7270 breakpoint is set in a user-loaded objfile.
7271 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7272 location is marked shlib_disabled. If the breakpoint is set in a
7273 user-loaded objfile is a GDB-side memory breakpoint, validate it
7274 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7275 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7277 * mem-break.c (memory_validate_breakpoint): New function.
7278 * objfiles.c (userloaded_objfile_contains_address_p): New
7280 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7281 * target.h (memory_validate_breakpoint): New declaration.
7283 2014-04-23 Pedro Alves <palves@redhat.com>
7285 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7286 the breakpoint is set in a shared library, only suppress
7287 errors for software breakpoints, not hardware breakpoints.
7289 2014-04-22 Pedro Alves <palves@redhat.com>
7291 * infrun.c (schedlock_applies): New function, factored out from
7292 find_thread_needs_step_over.
7293 (find_thread_needs_step_over): Use it.
7294 (switch_back_to_stepped_thread): Always clear trap_expected if the
7295 step over is finished. Return early if scheduler locking applies.
7296 Look for the stepping thread and a potential step-over thread with
7298 (currently_stepping_or_nexting_callback): Delete.
7300 2014-04-22 Nick Clifton <nickc@redhat.com>
7302 * NEWS: Mention that ARM sim now supports tracing.
7304 2014-04-22 Yao Qi <yao@codesourcery.com>
7306 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7308 * tracefile.c (tracefile_fetch_registers): ... it. New
7310 * tracefile.h (tracefile_fetch_registers): Declare.
7311 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7312 tracefile_fetch_registers.
7314 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7317 * windows-nat.c (thread_rec): Don't display a warning when
7318 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7319 fails for any reason, set th->suspended to -1, so that we don't
7320 try to resume such a thread. Also, don't return NULL in these
7321 cases, to avoid completely ruin the session due to "PC register is
7322 not available" error.
7323 (do_windows_fetch_inferior_registers): Check errors in
7324 GetThreadContext call.
7325 (windows_continue): Accept an additional argument KILLED; if not
7326 zero, ignore errors in the SetThreadContext call, since the
7327 inferior was killed and is shutting down.
7328 (windows_resume, get_windows_debug_event)
7329 (windows_create_inferior, windows_mourn_inferior)
7330 (windows_kill_inferior): All callers of windows_continue changed
7331 to adjust to its new calling sequence.
7333 2014-04-19 Yao Qi <yao@codesourcery.com>
7335 * ctf.c (ctf_open): Call post_create_inferior.
7337 2014-04-19 Yao Qi <yao@codesourcery.com>
7339 * ctf.c (handle_id): New static variable.
7340 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7341 value. Get the declaration of event "register" and get length
7342 of field "contents".
7344 2014-04-19 Yao Qi <yao@codesourcery.com>
7346 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7348 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7350 * valops.c (oload_method_static): Remove unnecessary argument
7351 METHOD. Update all callers.
7353 2014-04-18 Pedro alves <palves@redhat.com>
7354 Tom Tromey <tromey@redhat.com>
7357 * frame.c (get_prev_frame_1): Rename to ...
7358 (get_prev_frame_always): ... this, and make extern. Adjust.
7359 (skip_artificial_frames): Use get_prev_frame_always.
7360 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7361 (get_frame_unwind_stop_reason): Adjust to rename.
7362 * frame.h (get_prev_frame_always): Declare.
7363 * inline-frame.c: Include frame.h.
7364 (inline_frame_this_id): Use get_prev_frame_always.
7366 2014-04-18 Tristan Gingold <gingold@adacore.com>
7368 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7369 code by using bfd_mach_o_get_base_address.
7371 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7373 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7374 (spu_ax_pseudo_register_collect): New function.
7375 (spu_ax_pseudo_register_push_stack): Likewise.
7376 (spu_dwarf_reg_to_regnum): Likewise.
7377 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7379 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7381 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7382 Replace FRAME argument with FRAME_ID.
7383 * gdbarch.c, gdbarch.h: Regenerate.
7384 * findvar.c (default_value_from_register): Add GDBARCH argument;
7385 replace FRAME by FRAME_ID. No longer call get_frame_id.
7386 (value_from_register): Update call to gdbarch_value_from_register.
7387 * value.h (default_value_from_register): Update prototype.
7388 * s390-linux-tdep.c (s390_value_from_register): Update interface
7389 and call to default_value_from_register.
7390 * spu-tdep.c (spu_value_from_register): Likewise.
7392 * findvar.c (address_from_register): Remove TYPE argument.
7393 Do not call value_from_register; use gdbarch_value_from_register
7394 with null_frame_id instead.
7395 * value.h (address_from_register): Update prototype.
7396 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7397 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7398 address_from_register interface change.
7400 2014-04-17 Yao Qi <yao@codesourcery.com>
7402 * gdbtypes.h: Update comments to link to types and macros'
7405 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7407 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7409 2014-04-16 Keith Seitz <keiths@redhat.com>
7412 * dwarf2read.c (skip_one_die): Check that all relative-offset
7413 sibling DIEs fall within range of the current reader's buffer.
7414 (read_partial_die): Likewise.
7416 2014-04-16 Keith Seitz <keiths@redhat.com>
7419 * cp-namespace.c (lookup_symbol_file): If the type name of
7420 `this' is NULL, return immediately.
7422 2014-04-14 Keith Seitz <keiths@redhat.com>
7425 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7426 from symbol_matches_domain in symtab.c. All local callers
7427 of symbol_matches_domain updated.
7428 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7429 search STRUCT_DOMAIN.
7430 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7431 independently. standard_lookup will do that automatically.
7432 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7433 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7434 (cp_lookup_symbol_in_namespace): Likewise.
7435 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7436 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7437 may return a STRUCT_DOMAIN match.
7438 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7439 * cp-support.c: Include language.h.
7440 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7442 * psymtab.c (match_partial_symbol): Compare the requested
7443 domain with the symbol's domain directly.
7444 (lookup_partial_symbol): Likewise.
7445 * symtab.c (lookup_symbol_in_language): Explain when/why
7446 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7447 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7448 appropriate languages.
7449 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7450 and moved to ada-lang.c
7451 (lookup_block_symbol): Explain that this function only returns
7452 symbol matching the requested DOMAIN.
7453 Compare the requested domain with the symbol's domain directly.
7454 (iterate_over_symbols): Compare the requested domain with the
7455 symbol's domain directly.
7456 * symtab.h (symbol_matches_domain): Remove.
7458 2014-04-14 Tom Tromey <tromey@redhat.com>
7461 * c-exp.y (type_aggregate_p): New function.
7462 (qualified_name, classify_inner_name): Use it.
7463 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7464 and TYPE_TARGET_TYPE of an enum type.
7465 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7467 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7468 handle TYPE_DECLARED_CLASS.
7469 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7471 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7472 * valops.c (enum_constant_from_type): New function.
7473 (value_aggregate_elt): Use it.
7474 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7477 2014-04-14 Tom Tromey <tromey@redhat.com>
7479 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7480 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7482 * value.h (value_aggregate_elt): Update.
7484 2014-04-14 Tom Tromey <tromey@redhat.com>
7486 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7488 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7490 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7491 (evaluate_subexp_standard): Pass noside argument.
7492 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7493 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7494 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7495 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7496 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7498 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7500 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7501 points to a constant blob.
7503 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7505 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7506 property and store it as the high bound and flag the range accordingly.
7507 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7508 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7509 * gdbtypes.h (enum range_flags): New enum.
7510 (struct range_bounds): Add flags member.
7512 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7514 * c-typeprint.c (c_type_print_varspec_suffix): Added
7515 check for not yet resolved high bound. If unresolved, print
7516 "variable length" string to the console instead of random
7519 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7521 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7523 (ada_template_to_fixed_record_type_1): Likewise.
7524 (ada_to_fixed_type_1): Likewise.
7525 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7526 (cp_print_value): Likewise.
7527 * d-valprint.c (dynamic_array_type): Likewise.
7528 * findvar.c (address_of_variable): Likewise.
7529 * jv-valprint.c (java_value_print): Likewise.
7530 * valops.c (value_ind): Likewise.
7531 * value.c (coerce_ref): Likewise.
7533 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7535 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7536 value and retrieve the dynamic type size.
7538 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7540 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7541 passed to sizeof is dynamic evaluate the argument to compute the length.
7543 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7544 Joel Brobecker <brobecker@adacore.com>
7546 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7547 (dwarf2_evaluate_property): New function.
7548 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7549 * dwarf2read.c (attr_to_dynamic_prop): New function.
7550 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7552 * gdbtypes.c: Include dwarf2loc.h.
7553 (is_dynamic_type): New function.
7554 (resolve_dynamic_type): New function.
7555 (resolve_dynamic_bounds): New function.
7556 (get_type_length): New function.
7557 (check_typedef): Use get_type_length to compute type length.
7558 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7559 (TYPE_LOW_BOUND_KIND): New macro.
7560 (is_dynamic_type): New function prototype.
7561 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7562 to resolve dynamic properties of the type. Update comment.
7563 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7565 2014-04-14 Richard Henderson <rth@redhat.com>
7567 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7569 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7570 Doug Evans <xdje42@gmail.com>
7572 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7573 dereference TYPE_CODE_REF values.
7575 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7577 Revert the following changes due to regressions:
7579 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7580 (dwarf2_evaluate_property): New function.
7581 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7582 * dwarf2read.c (attr_to_dynamic_prop): New function.
7583 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7585 * gdbtypes.c: Include dwarf2loc.h.
7586 (is_dynamic_type): New function.
7587 (resolve_dynamic_type): New function.
7588 (resolve_dynamic_bounds): New function.
7589 (get_type_length): New function.
7590 (check_typedef): Use get_type_length to compute type length.
7591 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7592 (TYPE_LOW_BOUND_KIND): New macro.
7593 (is_dynamic_type): New function prototype.
7594 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7595 to resolve dynamic properties of the type. Update comment.
7596 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7598 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7599 passed to sizeof is dynamic evaluate the argument to compute the length.
7601 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7602 value and retrieve the dynamic type size.
7604 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7605 (ada_template_to_fixed_record_type_1): Likewise.
7606 (ada_to_fixed_type_1): Likewise.
7607 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7608 (cp_print_value): Likewise.
7609 * d-valprint.c (dynamic_array_type): Likewise.
7610 * eval.c (evaluate_subexp_with_coercion): Likewise.
7611 * findvar.c (address_of_variable): Likewise.
7612 * jv-valprint.c (java_value_print): Likewise.
7613 * valops.c (value_ind): Likewise.
7614 * value.c (coerce_ref): Likewise.
7616 * c-typeprint.c (c_type_print_varspec_suffix): Added
7617 check for not yet resolved high bound. If unresolved, print
7618 "variable length" string to the console instead of random
7621 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7622 property and store it as the high bound and flag the range accordingly.
7623 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7624 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7625 * gdbtypes.h (enum range_flags): New enum.
7626 (struct range_bounds): Add flags member.
7628 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7629 points to a constant blob.
7631 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7632 (evaluate_subexp_standard): Pass noside argument.
7633 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7634 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7635 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7636 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7637 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7639 2014-04-11 Keith Seitz <keiths@redhat.com>
7642 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7643 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7646 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7648 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7649 (evaluate_subexp_standard): Pass noside argument.
7650 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7651 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7652 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7653 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7654 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7656 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7658 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7659 points to a constant blob.
7661 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7663 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7664 property and store it as the high bound and flag the range accordingly.
7665 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7666 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7667 * gdbtypes.h (enum range_flags): New enum.
7668 (struct range_bounds): Add flags member.
7670 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7672 * c-typeprint.c (c_type_print_varspec_suffix): Added
7673 check for not yet resolved high bound. If unresolved, print
7674 "variable length" string to the console instead of random
7677 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7679 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7680 (ada_template_to_fixed_record_type_1): Likewise.
7681 (ada_to_fixed_type_1): Likewise.
7682 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7683 (cp_print_value): Likewise.
7684 * d-valprint.c (dynamic_array_type): Likewise.
7685 * eval.c (evaluate_subexp_with_coercion): Likewise.
7686 * findvar.c (address_of_variable): Likewise.
7687 * jv-valprint.c (java_value_print): Likewise.
7688 * valops.c (value_ind): Likewise.
7689 * value.c (coerce_ref): Likewise.
7691 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7693 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7694 value and retrieve the dynamic type size.
7696 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7698 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7699 passed to sizeof is dynamic evaluate the argument to compute the length.
7701 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7703 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7704 (dwarf2_evaluate_property): New function.
7705 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7706 * dwarf2read.c (attr_to_dynamic_prop): New function.
7707 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7709 * gdbtypes.c: Include dwarf2loc.h.
7710 (is_dynamic_type): New function.
7711 (resolve_dynamic_type): New function.
7712 (resolve_dynamic_bounds): New function.
7713 (get_type_length): New function.
7714 (check_typedef): Use get_type_length to compute type length.
7715 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7716 (TYPE_LOW_BOUND_KIND): New macro.
7717 (is_dynamic_type): New function prototype.
7718 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7719 to resolve dynamic properties of the type. Update comment.
7720 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7722 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7724 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7725 declaring high/low bounds and change uses accordingly. Call
7726 create_range_type instead of create_static_range_type.
7727 * gdbtypes.c (create_range_type): New function.
7728 (create_range_type): Convert bounds into struct bound_prop and pass
7729 them to create_range_type.
7730 * gdbtypes.h (struct bound_prop): New struct.
7731 (create_range_type): New function prototype.
7732 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7733 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7734 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7736 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7738 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7740 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7741 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7742 * ada-lang.c: All uses of create_range_type updated.
7743 * coffread.c: All uses of create_range_type updated.
7744 * dwarf2read.c: All uses of create_range_type updated.
7745 * f-exp.y: All uses of create_range_type updated.
7746 * m2-valprint.c: All uses of create_range_type updated.
7747 * mdebugread.c: All uses of create_range_type updated.
7748 * stabsread.c: All uses of create_range_type updated.
7749 * valops.c: All uses of create_range_type updated.
7750 * valprint.c: All uses of create_range_type updated.
7752 2014-04-10 Pedro Alves <palves@redhat.com>
7754 * breakpoint.c (single_step_breakpoints)
7755 (single_step_gdbarch): Move up in the file.
7756 (one_breakpoint_xfer_memory): New function, factored out from ...
7757 (breakpoint_xfer_memory): ... here. Also process single-step
7760 2014-04-09 Tristan Gingold <gingold@adacore.com>
7762 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7764 (darwin_decode_exception_message): Free port only after use.
7766 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7768 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7769 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7770 when setting the size of call_length.
7772 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7774 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7775 dereference TYPE_CODE_REF values.
7777 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7779 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7780 end of warning message.
7782 2014-04-03 Doug Evans <dje@google.com>
7784 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7785 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7787 2014-04-02 Alan Modra <amodra@gmail.com>
7789 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7790 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7791 (struct symbol_file_add_from_memory_args): Add size field.
7792 (find_vdso_size): New function.
7793 (add_vsyscall_page): Attempt to find vdso size.
7795 2014-04-01 Doug Evans <dje@google.com>
7797 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7799 2014-04-01 Tristan Gingold <gingold@adacore.com>
7801 * darwin-nat.c (darwin_encode_reply): Add prototype.
7802 (darwin_decode_exception_message): Reply to unknown inferiors.
7803 (darwin_decode_message): Handle message by id. Ignore message
7804 to unknown inferior.
7805 (darwin_wait): Discard unknown messages, add debug trace.
7807 2014-03-31 Doug Evans <dje@google.com>
7809 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7812 2014-03-31 Doug Evans <dje@google.com>
7814 New option "set print symbol-loading".
7816 * solib.c (solib_read_symbols): Only print symbol loading messages
7818 (solib_add): If symbol loading is in "brief" mode, notify user
7819 symbols are being loaded.
7820 (reload_shared_libraries_1): Ditto.
7821 * symfile.c (print_symbol_loading_off): New static global.
7822 (print_symbol_loading_brief): New static global.
7823 (print_symbol_loading_full): New static global.
7824 (print_symbol_loading_enums): New static global.
7825 (print_symbol_loading): New static global.
7826 (print_symbol_loading_p): New function.
7827 (symbol_file_add_with_addrs): Only print symbol loading messages
7829 (_initialize_symfile): Register "print symbol-loading" set/show
7831 * symfile.h (print_symbol_loading_p): Declare.
7833 2014-03-30 Doug Evans <xdje42@gmail.com>
7835 * infrun.c (set_last_target_status): New function.
7836 (handle_inferior_event): Call it.
7838 2014-03-30 Doug Evans <xdje42@gmail.com>
7840 * inferior.h (enum stop_kind): Improve comment.
7842 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7844 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7845 a reference, strip the reference layer before calling
7846 the lang_ops value_has_mutated callback.
7848 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7850 Remove some globals from our parser.
7851 * language.c (unk_lang_parser): Add "struct parser_state"
7853 * language.h (struct language_defn) <la_parser>: Likewise.
7854 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7855 (initialize_expout): Add "struct parser_state" argument.
7856 Rewrite function to use the parser state.
7857 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7858 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7859 write_exp_elt_longcst, write_exp_elt_dblcst,
7860 write_exp_elt_decfloatcst, write_exp_elt_type,
7861 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7862 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7863 write_dollar_variable): Likewise.
7864 (parse_exp_in_context_1): Use parser state.
7865 (insert_type_address_space): Add "struct parser_state" argument.
7867 (increase_expout_size): New function.
7868 * parser-defs.h: Forward declare "struct language_defn" and
7869 "struct parser_state".
7870 (expout, expout_size, expout_ptr): Remove extern declarations.
7871 (parse_gdbarch, parse_language): Rewrite macro declarations to
7872 accept the parser state.
7873 (struct parser_state): New struct.
7874 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7875 write_exp_elt_sym, 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_elt_block, write_exp_elt_objfile,
7879 write_exp_msymbol, write_dollar_variable,
7880 mark_struct_expression, insert_type_address_space): Add "struct
7881 parser_state" argument.
7882 (increase_expout_size): New function.
7883 * utils.c (do_clear_parser_state): New function.
7884 (make_cleanup_clear_parser_state): Likewise.
7885 * utils.h (make_cleanup_clear_parser_state): New function
7887 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7888 Update calls to write_exp* in order to pass the parser state.
7889 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7890 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7891 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7892 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7893 * stap-probe.c (stap_parse_register_operand): Likewise.
7894 (stap_parse_single_operand): Likewise.
7895 (stap_parse_argument_1): Likewise.
7896 (stap_parse_argument): Use parser state.
7897 * stap-probe.h: Include "parser-defs.h".
7898 (struct stap_parse_info) <pstate>: New field.
7899 * c-exp.y (parse_type): Rewrite to use parser state.
7900 (yyparse): Redefine to c_parse_internal.
7901 (pstate): New global variable.
7902 (parse_number): Add "struct parser_state" argument.
7903 (write_destructor_name): Likewise.
7904 (type_exp): Update calls to write_exp* and similars in order to
7906 (exp1, exp, variable, qualified_name, space_identifier,
7907 typename, typebase): Likewise.
7908 (write_destructor_name, parse_number, lex_one_token,
7909 classify_name, classify_inner_name, c_parse): Add "struct
7910 parser_state" argument. Update function to use parser state.
7911 * c-lang.h: Forward declare "struct parser_state".
7912 (c_parse): Add "struct parser_state" argument.
7913 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7914 (yyparse): Redefine macro to ada_parse_internal.
7915 (pstate): New variable.
7916 (write_int, write_object_renaming, write_var_or_type,
7917 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7918 type_int, type_long, type_long_long, type_float, type_double,
7919 type_long_double, type_char, type_boolean, type_system_address):
7920 Add "struct parser_state" argument.
7921 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7922 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7923 var_or_type, aggregate, aggregate_component_list,
7924 positional_list, others, component_group,
7925 component_associations): Update calls to write_exp* and similar
7926 functions in order to use parser state.
7927 (ada_parse, write_var_from_sym, write_int,
7928 write_exp_op_with_string, write_object_renaming,
7929 find_primitive_type, write_selectors, write_ambiguous_var,
7930 write_var_or_type, write_name_assoc, type_int, type_long,
7931 type_long_long, type_float, type_double, type_long_double,
7932 type_char, type_boolean, type_system_address): Add "struct
7933 parser_state" argument. Adjust function to use parser state.
7934 * ada-lang.c (parse): Likewise.
7935 * ada-lang.h: Forward declare "struct parser_state".
7936 (ada_parse): Add "struct parser_state" argument.
7937 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7938 calls to both functions.
7939 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7941 (yyparse): Redefine macro to f_parse_internal.
7942 (pstate): New variable.
7943 (parse_number): Add "struct parser_state" argument.
7944 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7945 and similars in order to use parser state.
7946 (parse_number): Adjust code to use parser state.
7948 (f_parse): New function.
7949 * f-lang.h: Forward declare "struct parser_state".
7950 (f_parse): Add "struct parser_state" argument.
7951 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7953 (yyparse): Redefine macro for java_parse_internal.
7954 (pstate): New variable.
7955 (push_expression_name, push_expression_name, insert_exp): Add
7956 "struct parser_state" argument.
7957 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7958 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7959 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7960 PostIncrementExpression, PostDecrementExpression,
7961 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7962 UnaryExpressionNotPlusMinus, CastExpression,
7963 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7964 RelationalExpression, EqualityExpression, AndExpression,
7965 ExclusiveOrExpression, InclusiveOrExpression,
7966 ConditionalAndExpression, ConditionalOrExpression,
7967 ConditionalExpression, Assignment, LeftHandSide): Update
7968 calls to write_exp* and similars in order to use parser state.
7969 (parse_number): Ajust code to use parser state.
7971 (java_parse): New function.
7972 (push_variable): Add "struct parser_state" argument. Adjust
7973 code to user parser state.
7974 (push_fieldnames, push_qualified_expression_name,
7975 push_expression_name, insert_exp): Likewise.
7976 * jv-lang.h: Forward declare "struct parser_state".
7977 (java_parse): Add "struct parser_state" argument.
7978 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7980 (yyparse): Redefine macro to m2_parse_internal.
7981 (pstate): New variable.
7982 (type_exp, exp, fblock, variable, type): Update calls to
7983 write_exp* and similars to use parser state.
7985 (m2_parse): New function.
7986 * m2-lang.h: Forward declare "struct parser_state".
7987 (m2_parse): Add "struct parser_state" argument.
7988 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7989 * objc-lang.h: Forward declare "struct parser_state".
7990 (end_msglist): Add "struct parser_state" argument.
7991 * p-exp.y (parse_type): Rewrite macro to use parser state.
7992 (yyparse): Redefine macro to pascal_parse_internal.
7993 (pstate): New variable.
7994 (parse_number): Add "struct parser_state" argument.
7995 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7996 write_exp* and similars in order to use parser state.
7997 (parse_number, yylex): Adjust code to use parser state.
7998 (pascal_parse): New function.
7999 * p-lang.h: Forward declare "struct parser_state".
8000 (pascal_parse): Add "struct parser_state" argument.
8001 * go-exp.y (parse_type): Rewrite macro to use parser state.
8002 (yyparse): Redefine macro to go_parse_internal.
8003 (pstate): New variable.
8004 (parse_number): Add "struct parser_state" argument.
8005 (type_exp, exp1, exp, variable, type): Update calls to
8006 write_exp* and similars in order to use parser state.
8007 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8008 to use parser state.
8009 (go_parse): Likewise.
8010 * go-lang.h: Forward declare "struct parser_state".
8011 (go_parse): Add "struct parser_state" argument.
8013 2014-03-27 Doug Evans <dje@google.com>
8015 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8017 2014-03-27 Doug Evans <dje@google.com>
8019 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8020 Remove argument abbrev_section. All callers updated.
8022 2014-03-27 Doug Evans <dje@google.com>
8024 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8025 addr_base, ranges_base.
8027 2014-03-26 Keith Seitz <keiths@redhat.com>
8029 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8030 types, not VAR_DOMAIN.
8032 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8034 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8036 * features/nios2-linux.c: Regenerated.
8037 * features/nios2.c: Regenerated.
8039 2014-03-25 Pedro Alves <palves@redhat.com>
8041 * cli/cli-script.c (script_from_file): Force the interpreter to
8044 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8046 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8047 small stack allocation.
8049 2014-03-24 Tristan Gingold <gingold@adacore.com>
8051 * darwin-nat.c (exc_server): Remove unused prototype.
8052 (darwin_dump_message): Correctly display data on x86_64.
8053 (darwin_encode_reply): Fix style.
8054 Add comments and fix indentation.
8056 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8058 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8060 2014-03-22 Doug Evans <xdje42@gmail.com>
8062 * infcmd.c: Whitespace fixes.
8063 (interrupt_command): Merge two function comments into one.
8065 2014-03-22 Doug Evans <xdje42@gmail.com>
8067 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8070 2014-03-22 Yao Qi <yao@codesourcery.com>
8072 * remote.c (target_read_live_memory): Remove.
8073 (memory_xfer_live_readonly_partial): Rename it to
8074 remote_xfer_live_readonly_partial. Remove argument 'object'.
8075 All callers updated. Call remote_read_bytes_1
8076 instead of target_read_live_memory.
8077 * tracepoint.c (set_traceframe_number): Remove.
8078 (make_cleanup_restore_traceframe_number): Likewise .
8079 * tracepoint.h (set_traceframe_number): Remove declaration.
8080 (make_cleanup_restore_traceframe_number): Likewise.
8082 2014-03-22 Yao Qi <yao@codesourcery.com>
8084 * remote.c (remote_read_bytes): Move code on reading from the
8086 (remote_read_bytes_1): ... here. New function.
8088 2014-03-22 Yao Qi <yao@codesourcery.com>
8090 * ctf.c (ctf_xfer_partial): Check the return value of
8091 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8092 return TARGET_XFER_UNAVAILABLE.
8093 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8094 * target.c (target_read_live_memory): Move it to remote.c.
8095 (memory_xfer_live_readonly_partial): Likewise.
8096 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8097 * remote.c (target_read_live_memory): Moved from target.c.
8098 (memory_xfer_live_readonly_partial): Likewise.
8099 (remote_read_bytes): Factored out from
8100 memory_xfer_partial_1.
8102 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8104 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8107 2014-03-21 Pedro Alves <palves@redhat.com>
8109 * infrun.c (normal_stop): Extend comment.
8111 2014-03-21 Hui Zhu <hui@codesourcery.com>
8112 Pedro Alves <palves@redhat.com>
8114 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8116 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8117 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8118 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8120 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8122 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8123 `z' formatted output modifier.
8125 2014-03-20 Tom Tromey <tromey@redhat.com>
8126 Sergio Durigan Junior <sergiodj@redhat.com>
8128 * probe.c (parse_probes): Turn assert into an ordinary error.
8129 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8130 exceptions when parsing probes. Rearrange the code for clarity.
8132 2014-03-20 Tom Tromey <tromey@redhat.com>
8135 * top.c (execute_command): Only dispatch events if the command
8138 2014-03-20 Tom Tromey <tromey@redhat.com>
8141 * infcall.c: Include event-top.h.
8142 (run_inferior_call): Call async_disable_stdin if needed.
8144 2014-03-20 Pedro Alves <palves@redhat.com>
8146 * infrun.c (prepare_to_proceed): Delete.
8147 (thread_still_needs_step_over): New function.
8148 (find_thread_needs_step_over): New function.
8149 (proceed): If the current thread needs a step-over, set its
8150 steping_over_breakpoint flag. Adjust to use
8151 find_thread_needs_step_over instead of prepare_to_proceed.
8152 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8153 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8155 (switch_back_to_stepped_thread): Step over breakpoints of all
8156 threads not the stepping thread, before switching back to the
8159 2014-03-20 Pedro Alves <palves@redhat.com>
8161 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8163 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8164 * infrun.c (saved_singlestep_ptid)
8165 (stepping_past_singlestep_breakpoint): Delete.
8166 (resume): Remove stepping_past_singlestep_breakpoint handling.
8167 (proceed): Store the prev_pc of the stepping thread too.
8168 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8170 (enum infwait_states): Delete infwait_thread_hop_state.
8171 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8173 (handle_inferior_event): Adjust.
8174 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8175 handling and the thread-hop code. Before removing single-step
8176 breakpoints, check whether the thread hit a single-step breakpoint
8177 of another thread. If it did, the trap is not a random signal.
8178 (switch_back_to_stepped_thread): If the event thread hit a
8179 single-step breakpoint, unblock it before switching to the
8180 stepping thread. Handle the case of the stepped thread having
8182 (keep_going): Handle the case of the current thread moving past a
8183 single-step breakpoint.
8185 2014-03-20 Pedro Alves <palves@redhat.com>
8188 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8189 are being stepped over.
8190 (breakpoint_address_match): Make extern.
8191 * breakpoint.h (breakpoint_address_match): New declaration.
8192 * inferior.h (stepping_past_instruction_at): New declaration.
8193 * infrun.c (struct step_over_info): New type.
8194 (step_over_info): New global.
8195 (set_step_over_info, clear_step_over_info)
8196 (stepping_past_instruction_at): New functions.
8197 (handle_inferior_event): Clear the step-over info when
8198 trap_expected is cleared.
8199 (resume): Remove now stale comment.
8200 (clear_proceed_status): Clear step-over info.
8201 (proceed): Adjust step-over handling to set or clear the step-over
8202 info instead of removing all breakpoints.
8203 (handle_signal_stop): When setting up a thread-hop, don't remove
8205 (stop_stepping): Clear step-over info.
8206 (keep_going): Adjust step-over handling to set or clear step-over
8207 info and then always inserting breakpoints, instead of removing
8208 all breakpoints when stepping over one.
8210 2014-03-20 Pedro Alves <palves@redhat.com>
8212 * infrun.c (previous_inferior_ptid): Adjust comment.
8213 (deferred_step_ptid): Delete.
8214 (infrun_thread_ptid_changed, prepare_to_proceed)
8215 (init_wait_for_inferior): Adjust.
8216 (handle_signal_stop): Delete deferred_step_ptid handling.
8218 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8221 * defs.h (sync_quit_force_run): New declaration.
8222 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8223 * event-top.c (async_sigterm_handler): New declaration.
8224 (async_sigterm_token): New variable.
8225 (async_init_signals): Create also async_sigterm_token.
8226 (async_sigterm_handler): New function.
8227 (sync_quit_force_run): New variable.
8228 (handle_sigterm): Replace quit_force call by other calls.
8229 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8231 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8233 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8234 offset into SPE pseudo registers.
8236 2014-03-18 Pedro Alves <palves@redhat.com>
8239 * inferior.h (print_stop_event): Declare.
8240 * infrun.c (print_stop_event): New, factored out from ...
8241 (normal_stop): ... this.
8242 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8243 of bpstat_print/print_stack_frame.
8245 2014-03-17 Tom Tromey <tromey@redhat.com>
8247 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8249 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8251 * ada-lang.c (decode_constrained_packed_array): Perform a
8252 minimal coercion for reference with coerce_ref instead of
8255 2014-03-17 Tristan Gingold <gingold@adacore.com>
8257 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8258 (darwin_solib_create_inferior_hook): Emit a warning if version
8261 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8263 * python/py-value.c (get_field_flag): Cast flag_name argument to
8264 PyObject_GetAttrString to support Python 2.4.
8266 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8268 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8269 (Global Maintainers): Remove Jan Kratochvil.
8271 2014-03-14 Pedro Alves <palves@redhat.com>
8273 * inferior.h (terminal_ours_for_output): Rename to ...
8274 (child_terminal_ours_for_output): ... this.
8275 (terminal_save_ours): Rename to ...
8276 (child_terminal_save_ours): ... this.
8277 (terminal_ours): Rename to ...
8278 (child_terminal_ours): ... this.
8279 (terminal_inferior): Rename to ...
8280 (child_terminal_inferior): ... this.
8281 (terminal_init_inferior): Rename to ...
8282 (child_terminal_init_inferior): ... this.
8283 (terminal_init_inferior_with_pgrp): Rename to ...
8284 (child_terminal_init_inferior_with_pgrp): ... this.
8285 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8286 (child_terminal_init_with_pgrp): ... this.
8287 (terminal_save_ours): Rename to ...
8288 (child_terminal_save_ours): ... this.
8289 (terminal_init_inferior): Rename to ...
8290 (child_terminal_init): ... this. Adjust.
8291 (terminal_inferior): Rename to ...
8292 (child_terminal_inferior): ... this.
8293 (terminal_ours_for_output): Rename to ...
8294 (child_terminal_ours_for_output): ... this. Adjust.
8295 (terminal_ours): Rename to ...
8296 (child_terminal_ours): ... this.
8297 (terminal_ours_1): Rename to ...
8298 (child_terminal_ours_1): ... this. Adjust.
8299 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8300 * windows-nat.c (do_initial_windows_stuff): Adjust.
8301 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8302 (gnu_terminal_init): ... this. Adjust.
8303 (gnu_target): Adjust.
8304 * inf-child.c (inf_child_target): Adjust.
8306 2014-03-13 Doug Evans <xdje42@gmail.com>
8309 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8312 2014-03-13 Doug Evans <xdje42@gmail.com>
8314 * value.c (record_latest_value): Call release_value_or_incref
8315 instead of release_value.
8317 2014-03-13 Pedro Alves <palves@redhat.com>
8319 * procfs.c (procfs_target): Don't override to_shortname,
8320 to_longname or to_doc.
8322 2014-03-13 Pedro Alves <palves@redhat.com>
8324 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8325 Unix in user visible strings.
8327 2014-03-12 Stan Shebs <stan@codesourcery.com>
8329 * gdbtypes.h: Annotate comments for Doxygen, add a page
8330 block comment with some general info.
8332 2014-03-12 Pedro Alves <palves@redhat.com>
8334 * infcmd.c (prepare_execution_command): New function, factored out
8335 from several execution commands.
8336 (run_command_1, continue_command, step_1, jump_command)
8337 (signal_command, until_command, advance_command, finish_command)
8338 (attach_command): Use prepare_execution_command.
8340 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8342 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8345 (struct arm_linux_thread_points): Removed.
8346 (struct arm_linux_process_info): New.
8347 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8348 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8349 (arm_linux_find_breakpoints_by_tid): Removed.
8350 (struct arch_lwp_info): New.
8351 (arm_linux_find_process_pid): New functions.
8352 (arm_linux_add_process): New functions.
8353 (arm_linux_process_info_get): New functions.
8354 (arm_linux_forget_process): New function.
8355 (arm_linux_get_debug_reg_state): New function.
8356 (struct update_registers_data): New.
8357 (update_registers_callback): New function.
8358 (arm_linux_insert_hw_breakpoint1): Updated.
8359 (arm_linux_remove_hw_breakpoint1): Updated.
8360 (arm_linux_insert_hw_breakpoint): Updated.
8361 (arm_linux_remove_hw_breakpoint): Updated.
8362 (arm_linux_insert_watchpoint): Updated.
8363 (arm_linux_remove_watchpoint): Updated.
8364 (arm_linux_new_thread): Updated.
8365 (arm_linux_prepare_to_resume): New function.
8366 (arm_linux_new_fork): New function.
8367 (_initialize_arm_linux_nat): Updated.
8369 2014-03-12 Pedro Alves <palves@redhat.com>
8371 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8373 2014-03-12 Tom Tromey <tromey@redhat.com>
8375 * inf-child.c (return_zero): New function.
8376 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8377 * aix-thread.c (aix_thread_inferior_created): New function.
8378 (aix_thread_attach): Remove.
8379 (init_aix_thread_ops): Don't set to_attach.
8380 (_initialize_aix_thread): Register inferior_created observer.
8381 * corelow.c (init_core_ops): Don't set to_attach or
8383 * exec.c (init_exec_ops): Don't set to_attach or
8385 * infcmd.c (run_command_1): Use find_run_target. Make direct
8387 (attach_command): Use find_attach_target. Make direct target
8389 * record-btrace.c (init_record_btrace_ops): Don't set
8391 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8393 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8394 set to_create_inferior.
8395 * target.c (complete_target_initialization): Add assertion.
8396 (target_create_inferior): Remove.
8397 (find_default_attach, find_default_create_inferior): Remove.
8398 (find_attach_target, find_run_target): New functions.
8399 (find_default_is_async_p, find_default_can_async_p)
8400 (target_supports_non_stop, target_attach): Remove.
8401 (init_dummy_target): Don't set to_create_inferior or
8402 to_supports_non_stop.
8403 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8404 TARGET_DEFAULT_FUNC.
8405 <to_create_inferior>: Add comment.
8406 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8407 TARGET_DEFAULT_RETURN.
8408 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8409 (find_attach_target, find_run_target): Declare.
8410 (target_create_inferior): Remove.
8411 (target_has_execution_1): Update comment.
8412 (target_supports_non_stop): Remove.
8413 * target-delegates.c: Rebuild.
8415 2014-03-12 Pedro Alves <palves@redhat.com>
8417 * inf-child.h: Update comment to not mention Unix.
8419 2014-03-12 Pedro Alves <palves@redhat.com>
8421 * inf-child.c: Update top comment to not mention Unix. Add
8422 generic comment describing how this target is meant to be used.
8423 (inf_child_post_attach, inf_child_post_startup_inferior)
8424 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8427 2014-03-12 Pedro Alves <palves@redhat.com>
8429 * nto-procfs.c: Include inf-child.h.
8430 (procfs_ops): Delete global.
8431 (procfs_can_run): Delete method.
8432 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8433 target pointer instead of referencing procfs_ops.
8434 (procfs_prepare_to_store): Delete.
8435 (init_procfs_ops): Delete function.
8436 (procfs_target): New function, based on init_procfs_ops, but
8437 inherit inf_child_target.
8438 (_initialize_procfs): Use procfs_target.
8440 2014-03-12 Pedro Alves <palves@redhat.com>
8442 * windows-nat.c: Include inf-child.h.
8443 (windows_ops): Delete global.
8444 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8446 (init_windows_ops): Delete function.
8447 (windows_target): New function, based on init_windows_ops, but
8448 inherit inf_child_target.
8449 (_initialize_windows_nat): Use windows_target. Install x86
8450 specific target methods here.
8452 2014-03-10 Doug Evans <xdje42@gmail.com>
8454 * guile/guile.c (call_initialize_gdb_module): New function.
8455 (initialize_guile): Replace call to scm_init_guile with call to
8458 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8460 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8461 in call to TYPE_CODE macro.
8463 2014-03-10 Jerome Guitton <guitton@adacore.com>
8465 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8466 Resolve tagged types to full view.
8468 2014-03-10 Hui Zhu <hui@codesourcery.com>
8470 * target.h (target_insert_breakpoint): Remove "hardware" from its
8473 2014-03-07 Doug Evans <dje@google.com>
8475 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8477 2014-03-07 Doug Evans <dje@google.com>
8479 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8480 Remove unused local comp_dir_attr. Assert exactly one of
8481 stub_comp_unit_die, stub_comp_dir is non-NULL.
8483 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8485 * target.h (complete_target_initialization, add_target):
8488 2014-03-07 Pedro Alves <palves@redhat.com>
8490 * go32-nat.c: Include inf-child.h.
8491 (go32_ops): Delete global.
8492 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8494 (go32_create_inferior): Push the passed in target pointer instead
8495 of referencing go32_ops.
8496 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8497 (go32_target): New function, based on init_go32_ops, but inherit
8499 (_initialize_go32_nat): Use go32_target. Move parts of
8502 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8504 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8505 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8506 SYMBOL_VALUE_ADDRESS.
8507 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8509 2014-03-06 Yao Qi <yao@codesourcery.com>
8511 * breakpoint.c (get_tracepoint_by_number): Remove argument
8512 optional_p. All callers updated. Adjust comments. Update
8514 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8516 2014-03-06 Yao Qi <yao@codesourcery.com>
8518 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8519 early if get_number returns zero. Use 'p' instead of 'args'.
8521 2014-03-06 Yao Qi <yao@codesourcery.com>
8523 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8526 2014-03-06 Yao Qi <yao@codesourcery.com>
8528 PR breakpoints/16508
8529 * tracepoint.c (check_trace_running): New function.
8530 (trace_find_command): Move code to check_trace_running and
8531 call check_trace_running.
8532 (trace_find_pc_command): Likewise.
8533 (trace_find_tracepoint_command): Likewise.
8534 (trace_find_line_command): Likewise.
8535 (trace_find_range_command): Likewise.
8536 * tracepoint.h (check_trace_running): Likewise.
8537 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8539 2014-03-06 Yao Qi <yao@codesourcery.com>
8541 * target.h (struct target_ops) <to_traceframe_info>: Use
8542 TARGET_DEFAULT_NORETURN (tcomplain ()).
8543 * target-delegates.c: Regenerated.
8545 2014-03-05 Pedro Alves <palves@redhat.com>
8548 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8549 void. Update comment.
8550 (dcache_xfer_memory): Delete.
8551 (dcache_read_memory_partial): New, based on the read bits of
8553 (dcache_update): Add status parameter. Use ULONGEST for len, and
8554 adjust. Discard cache lines if the reason for the update was
8556 * dcache.h (dcache_xfer_memory): Delete declaration.
8557 (dcache_read_memory_partial): New declaration.
8558 (dcache_update): Update prototype.
8559 * target.c (raw_memory_xfer_partial): Update the dcache here.
8560 (memory_xfer_partial_1): Don't handle dcache writes here.
8562 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8564 * remote-sim.c (gdbsim_load): Add const to prog.
8566 2014-03-03 Tom Tromey <tromey@redhat.com>
8568 * elfread.c (probe_key): Change to bfd_data.
8569 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8570 now per-BFD, not per-objfile.
8571 * stap-probe.c (stap_probe_destroy): Update comment.
8572 (handle_stap_probe): Allocate on the per-BFD obstack.
8574 2014-03-03 Tom Tromey <tromey@redhat.com>
8576 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8577 * breakpoint.c (create_longjmp_master_breakpoint): Use
8579 (add_location_to_breakpoint, bkpt_probe_insert_location)
8580 (bkpt_probe_remove_location): Update.
8581 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8582 * elfread.c (elf_symfile_relocate_probe): Remove.
8583 (elf_probe_fns): Update.
8584 (insert_exception_resume_breakpoint): Change type of "probe"
8585 parameter to bound_probe.
8586 (check_exception_resume): Update.
8587 * objfiles.c (objfile_relocate1): Don't relocate probes.
8588 * probe.c (bound_probe_s): New typedef.
8589 (parse_probes): Use get_probe_address. Set sal's objfile.
8590 (find_probe_by_pc): Return a bound_probe.
8591 (collect_probes): Return a VEC(bound_probe_s).
8592 (compare_probes): Update.
8593 (gen_ui_out_table_header_info): Change type of "probes"
8595 (info_probes_for_ops): Update.
8596 (get_probe_address): New function.
8597 (probe_safe_evaluate_at_pc): Update.
8598 * probe.h (struct probe_ops) <get_probe_address>: New field.
8599 <set_semaphore, clear_semaphore>: Add objfile parameter.
8600 (struct probe) <objfile>: Remove field.
8602 <address>: Update comment.
8603 (struct bound_probe): New.
8604 (find_probe_by_pc): Return a bound_probe.
8605 (get_probe_address): Declare.
8606 * solib-svr4.c (struct probe_and_action) <address>: New field.
8607 (hash_probe_and_action, equal_probe_and_action): Update.
8608 (register_solib_event_probe): Add address parameter.
8609 (solib_event_probe_at): Update.
8610 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8612 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8613 (stap_get_probe_address): New function.
8614 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8615 (compile_probe_arg): Update.
8616 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8618 (handle_stap_probe): Don't relocate the probe.
8619 (stap_relocate): Remove.
8620 (stap_gen_info_probes_table_values): Update.
8621 (stap_probe_ops): Remove stap_relocate.
8622 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8623 (debug_sym_probe_fns): Update.
8624 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8625 * symtab.c (init_sal): Use memset.
8626 * symtab.h (struct symtab_and_line) <objfile>: New field.
8627 * tracepoint.c (start_tracing, stop_tracing): Update.
8629 2014-03-03 Tom Tromey <tromey@redhat.com>
8631 * probe.h (parse_probes, find_probe_by_pc)
8632 (find_probes_in_objfile): Fix comments.
8634 2014-03-02 Doug Evans <xdje42@gmail.com>
8636 * infrun.c (handle_signal_stop): Replace test for
8637 TARGET_WAITKIND_STOPPED with an assert.
8639 2014-03-02 Doug Evans <xdje42@gmail.com>
8641 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8643 2014-03-02 Doug Evans <xdje42@gmail.com>
8645 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8647 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8649 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8651 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8653 * i386obsd-nat.c: Include "obsd-nat.h".
8654 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8656 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8658 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8660 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8662 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8664 * mips64obsd-nat.c: Include "obsd-nath".
8665 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8667 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8669 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8671 * amd64obsd-nat.c: Include "obsd-nat,h.
8672 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8674 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8676 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8678 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8679 (find_overload_match): Update call to find_oload_champ.
8680 (find_oload_champ_namespace_loop): Likewise
8682 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8684 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8686 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8687 * config/sparc/obsd64.mh: New file.
8688 * sparc64obsd-nat.c: New file.
8690 * obsd-nat.h: New file.
8691 * obsd-nat.c: New file.
8692 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8693 (ALLDEPFILES): Add obsd-nat.c.
8695 2014-02-28 Tom Tromey <tromey@redhat.com>
8697 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8698 * cli-out.h (cli_ui_out_impl): Now const.
8699 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8700 * ui-out.c (struct ui_out) <impl>: Now const.
8701 (default_ui_out_impl): Now const.
8702 (ui_out_new): Make 'impl' parameter const.
8703 * ui-out.h (ui_out_new): Update.
8705 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8707 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8709 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8711 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8713 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8715 Additional PR 8882 fix.
8716 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8718 2014-02-27 Pedro Alves <palves@redhat.com>
8720 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8723 2014-02-27 Pedro Alves <palves@redhat.com>
8726 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8727 * nat/linux-waitpid.c: Include string.h.
8728 (status_to_str): Moved here and made extern.
8729 * nat/linux-waitpid.h (status_to_str): New declaration.
8731 2014-02-27 Hui Zhu <hui@codesourcery.com>
8734 * infrun.c (ptid_match): Move ...
8735 * common/ptid.c (ptid_match): ... here.
8736 * inferior.h (ptid_match): Move ...
8737 * common/ptid.h (ptid_match): ... here.
8739 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8741 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8742 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8745 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8747 * obsd-tdep.c (obsd_auxv_parse): New function.
8748 (obsd_init_abi): Set auxv_parse.
8750 * gdbarch.sh (auxv_parse): New.
8751 * gdbarch.h: Regenerated.
8752 * gdbarch.c: Regenerated.
8753 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8755 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8757 * guile/scm-value.c (gdbscm_history_append_x): New function.
8758 (value_functions): Add it.
8760 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8762 * dwarf2read.c (attr_value_as_address): New function.
8763 (dwarf2_find_base_address, read_call_site_scope): Use
8764 attr_value_as_address in place of DW_ADDR.
8765 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8766 the low and high addresses. Slight rework of the handling
8767 of the high pc being a constant form, and limit it to
8768 DWARF verson 4 or higher.
8769 (dwarf2_record_block_ranges): Likewise.
8770 (read_partial_die): Likewise.
8771 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8773 2014-02-26 Tom Tromey <tromey@redhat.com>
8775 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8777 2014-02-26 Tom Tromey <tromey@redhat.com>
8779 * elfread.c (elf_read_minimal_symbols): Return early if
8780 minimal symbols have already been read. Add "ei" parameter.
8781 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8782 * minsyms.c (prim_record_minimal_symbol_full): Update.
8783 * objfiles.h (struct objstats) <n_minsyms>: Move...
8784 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8785 * symmisc.c (print_objfile_statistics): Update.
8787 2014-02-26 Tom Tromey <tromey@redhat.com>
8789 * elfread.c (elf_read_minimal_symbols): New function, from
8791 (elf_symfile_read): Call it.
8793 2014-02-26 Tom Tromey <tromey@redhat.com>
8795 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8796 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8797 (lookup_minimal_symbol_solib_trampoline)
8798 (lookup_minimal_symbol_by_pc_section_1)
8799 (lookup_minimal_symbol_and_objfile): Update.
8800 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8801 Don't allocate a minimal symbol if minsyms have already been read.
8802 (build_minimal_symbol_hash_tables): Update.
8803 (install_minimal_symbols): Do nothing if minsyms already read.
8804 Use the per-BFD obstack.
8805 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8806 * objfiles.c (allocate_objfile): Call
8807 terminate_minimal_symbol_table later.
8808 (have_minimal_symbols): Update.
8809 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8810 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8811 Move from struct objfile.
8812 <minsyms_read>: New field.
8813 (struct objfile) <msymbols, minimal_symbol_count,
8814 msymbol_hash, msymbol_demangled_hash>: Move.
8815 (ALL_OBJFILE_MSYMBOLS): Update.
8816 * symfile.c (read_symbols): Set minsyms_read.
8817 (reread_symbols): Update.
8818 * symmisc.c (dump_objfile, dump_msymbols): Update.
8820 2014-02-26 Tom Tromey <tromey@redhat.com>
8822 * minsyms.c (msymbols_sort): Remove.
8823 * minsyms.h (msymbols_sort): Remove.
8824 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8825 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8826 * elfread.c (elf_symtab_read): Don't add section offsets.
8827 * xcoffread.c (record_minimal_symbol): Don't add section offset
8828 to minimal symbol address.
8829 * somread.c (text_offset, data_offset): Remove.
8830 (som_symtab_read): Don't add section offsets to minimal symbol
8832 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8833 Don't add section offsets to minimal symbols.
8834 * coffread.c (coff_symtab_read): Don't add section offsets
8835 to minimal symbol addresses.
8836 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8837 to minimal symbol addresses.
8838 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8839 section offset to minimal symbol addresses.
8840 * mdebugread.c (parse_partial_symbols): Don't add section
8841 offset to minimal symbol addresses.
8842 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8843 offset to minimal symbol addresses.
8845 2014-02-26 Tom Tromey <tromey@redhat.com>
8847 * ada-lang.c (ada_main_name): Update.
8848 (ada_add_standard_exceptions): Update.
8849 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8850 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8851 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8852 * auxv.c (ld_so_xfer_auxv): Update.
8853 * avr-tdep.c (avr_scan_prologue): Update.
8854 * ax-gdb.c (gen_var_ref): Update.
8855 * blockframe.c (get_pc_function_start)
8856 (find_pc_partial_function_gnu_ifunc): Update.
8857 * breakpoint.c (create_overlay_event_breakpoint)
8858 (create_longjmp_master_breakpoint)
8859 (create_std_terminate_master_breakpoint)
8860 (create_exception_master_breakpoint): Update.
8861 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8862 * c-valprint.c (c_val_print): Update.
8863 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8864 * common/agent.c (agent_look_up_symbols): Update.
8865 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8866 * dwarf2loc.c (call_site_to_target_addr): Update.
8867 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8868 * elfread.c (elf_gnu_ifunc_record_cache)
8869 (elf_gnu_ifunc_resolve_by_got): Update.
8870 * findvar.c (default_read_var_value): Update.
8871 * frame.c (inside_main_func): Update.
8872 * frv-tdep.c (frv_frame_this_id): Update.
8873 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8874 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8876 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8877 (hppa_hpux_find_dummy_bpaddr): Update.
8878 * hppa-tdep.c (hppa_symbol_address): Update.
8879 * infcmd.c (until_next_command): Update.
8880 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8882 * linespec.c (minsym_found, add_minsym): Update.
8883 * linux-nat.c (get_signo): Update.
8884 * linux-thread-db.c (inferior_has_bug): Update.
8885 * m32c-tdep.c (m32c_return_value)
8886 (m32c_m16c_address_to_pointer): Update.
8887 * m32r-tdep.c (m32r_frame_this_id): Update.
8888 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8889 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8890 * maint.c (maintenance_translate_address): Update.
8891 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8892 (frob_address): New function.
8893 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8894 frob_address. Rename parameter to "pc_in".
8895 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8897 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8899 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8900 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8901 * objc-lang.c (find_objc_msgsend): Update.
8902 * objfiles.c (objfile_relocate1): Update.
8903 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8904 * p-valprint.c (pascal_val_print): Update.
8905 * parse.c (write_exp_msymbol): Update.
8906 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8907 (ppc_elfv2_skip_entrypoint): Update.
8908 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8909 * printcmd.c (build_address_symbolic, msym_info)
8910 (address_info): Update.
8911 * proc-service.c (ps_pglobal_lookup): Update.
8912 * psymtab.c (find_pc_sect_psymtab_closer)
8913 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8914 Change msymbol parameter to bound_minimal_symbol.
8915 * ravenscar-thread.c (get_running_thread_id): Update.
8916 * remote.c (remote_check_symbols): Update.
8917 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8919 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8920 * solib-dsbt.c (lm_base): Update.
8921 * solib-frv.c (lm_base, main_got): Update.
8922 * solib-irix.c (locate_base): Update.
8923 * solib-som.c (som_solib_create_inferior_hook)
8924 (link_map_start): Update.
8925 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8926 * solib-svr4.c (elf_locate_base, enable_break): Update.
8927 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8928 (flush_ea_cache): Update.
8929 * stabsread.c (define_symbol, scan_file_globals): Update.
8930 * stack.c (find_frame_funname): Update.
8931 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8932 (debug_qf_find_pc_sect_symtab): Update.
8933 * symfile.c (simple_read_overlay_table)
8934 (simple_overlay_update): Update.
8935 * symfile.h (struct quick_symbol_functions)
8936 <find_pc_sect_symtab>: Change type of msymbol to
8937 bound_minimal_symbol.
8938 * symmisc.c (dump_msymbols): Update.
8939 * symtab.c (find_pc_sect_symtab_via_partial)
8940 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8941 (search_symbols, print_msymbol_info): Update.
8942 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8943 (MSYMBOL_VALUE_ADDRESS): Redefine.
8944 (BMSYMBOL_VALUE_ADDRESS): New macro.
8945 * tracepoint.c (scope_info): Update.
8946 * tui/tui-disasm.c (tui_find_disassembly_address)
8947 (tui_get_begin_asm_address): Update.
8948 * valops.c (find_function_in_inferior): Update.
8949 * value.c (value_static_field, value_fn_field): Update.
8951 2014-02-26 Tom Tromey <tromey@redhat.com>
8953 * ada-lang.c (ada_update_initial_language): Update.
8954 (ada_main_name, ada_has_this_exception_support): Update.
8955 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8956 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8957 * arm-tdep.c (arm_skip_stub): Update.
8958 * auxv.c (ld_so_xfer_auxv): Update.
8959 * avr-tdep.c (avr_scan_prologue): Update.
8960 * ax-gdb.c (gen_var_ref): Update.
8961 * breakpoint.c (struct breakpoint_objfile_data)
8962 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8963 type to bound_minimal_symbol.
8964 (create_overlay_event_breakpoint)
8965 (create_longjmp_master_breakpoint)
8966 (create_std_terminate_master_breakpoint)
8967 (create_exception_master_breakpoint): Update.
8968 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8969 * c-exp.y (classify_name): Update.
8970 * coffread.c (coff_symfile_read): Update.
8971 * common/agent.c (agent_look_up_symbols): Update.
8972 * d-lang.c (d_main_name): Update.
8973 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8974 * dec-thread.c (enable_dec_thread): Update.
8975 * dwarf2loc.c (call_site_to_target_addr): Update.
8976 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8977 * eval.c (evaluate_subexp_standard): Update.
8978 * findvar.c (struct minsym_lookup_data) <result>: Change type
8979 to bound_minimal_symbol.
8981 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8982 * frame.c (inside_main_func): Update.
8983 * frv-tdep.c (frv_frame_this_id): Update.
8984 * gcore.c (call_target_sbrk): Update.
8985 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8986 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8988 * go-lang.c (go_main_name): Update.
8989 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8990 (hppa_hpux_find_import_stub_for_addr): Update.
8991 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8992 Update. Change return type.
8993 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8995 * jit.c (jit_breakpoint_re_set_internal): Update.
8996 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8998 * linux-nat.c (get_signo): Update.
8999 * linux-thread-db.c (inferior_has_bug): Update
9000 * m32c-tdep.c (m32c_return_value)
9001 (m32c_m16c_address_to_pointer): Update.
9002 * m32r-tdep.c (m32r_frame_this_id): Update.
9003 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9004 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9005 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9006 lookup_minimal_symbol. Change return type.
9007 (lookup_minimal_symbol): Remove.
9008 (lookup_bound_minimal_symbol): Update.
9009 (lookup_minimal_symbol_text): Change return type.
9010 (lookup_minimal_symbol_solib_trampoline): Change return type.
9011 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9012 (lookup_minimal_symbol_solib_trampoline): Change return type.
9013 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9014 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9015 (value_nsstring, find_imps): Update.
9016 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9017 * p-lang.c (pascal_main_name): Update.
9018 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9019 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9020 * proc-service.c (ps_pglobal_lookup): Update.
9021 * ravenscar-thread.c (get_running_thread_msymbol): Change
9023 (has_ravenscar_runtime, get_running_thread_id): Update.
9024 * remote.c (remote_check_symbols): Update.
9025 * sol-thread.c (ps_pglobal_lookup): Update.
9026 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9027 * solib-dsbt.c (lm_base): Update.
9028 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9030 * solib-irix.c (locate_base): Update.
9031 * solib-som.c (som_solib_create_inferior_hook)
9032 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9034 * solib-spu.c (spu_enable_break): Update.
9035 * solib-svr4.c (elf_locate_base, enable_break): Update.
9036 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9037 (flush_ea_cache): Update.
9038 * stabsread.c (define_symbol): Update.
9039 * symfile.c (simple_read_overlay_table): Update.
9040 * symtab.c (find_pc_sect_line): Update.
9041 * tracepoint.c (scope_info): Update.
9042 * tui-disasm.c (tui_get_begin_asm_address): Update.
9043 * value.c (value_static_field): Update.
9045 2014-02-26 Tom Tromey <tromey@redhat.com>
9047 * minsyms.c (prim_record_minimal_symbol_full): Use
9048 SET_MSYMBOL_VALUE_ADDRESS.
9049 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9050 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9051 SET_MSYMBOL_VALUE_ADDRESS.
9052 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9053 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9055 2014-02-26 Tom Tromey <tromey@redhat.com>
9057 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9058 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9059 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9060 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9061 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9062 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9063 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9064 * ada-lang.c (ada_main_name): Update.
9065 (ada_lookup_simple_minsym): Update.
9066 (ada_make_symbol_completion_list): Update.
9067 (ada_add_standard_exceptions): Update.
9068 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9069 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9070 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9071 * arm-tdep.c (skip_prologue_function): Update.
9072 (arm_skip_stack_protector, arm_skip_stub): Update.
9073 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9074 (arm_wince_skip_main_prologue): Update.
9075 * auxv.c (ld_so_xfer_auxv): Update.
9076 * avr-tdep.c (avr_scan_prologue): Update.
9077 * ax-gdb.c (gen_var_ref): Update.
9078 * block.c (call_site_for_pc): Update.
9079 * blockframe.c (get_pc_function_start): Update.
9080 (find_pc_partial_function_gnu_ifunc): Update.
9081 * breakpoint.c (create_overlay_event_breakpoint): Update.
9082 (create_longjmp_master_breakpoint): Update.
9083 (create_std_terminate_master_breakpoint): Update.
9084 (create_exception_master_breakpoint): Update.
9085 (resolve_sal_pc): Update.
9086 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9087 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9089 * c-valprint.c (c_val_print): Update.
9090 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9091 * coffread.c (coff_symfile_read): Update.
9092 * common/agent.c (agent_look_up_symbols): Update.
9093 * dbxread.c (find_stab_function_addr): Update.
9094 (end_psymtab): Update.
9095 * dwarf2loc.c (call_site_to_target_addr): Update.
9096 (func_verify_no_selftailcall): Update.
9097 (tailcall_dump): Update.
9098 (call_site_find_chain_1): Update.
9099 (dwarf_expr_reg_to_entry_parameter): Update.
9100 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9101 (elf_gnu_ifunc_resolve_by_got): Update.
9102 * f-valprint.c (info_common_command): Update.
9103 * findvar.c (read_var_value): Update.
9104 * frame.c (get_prev_frame_1): Update.
9105 (inside_main_func): Update.
9106 * frv-tdep.c (frv_skip_main_prologue): Update.
9107 (frv_frame_this_id): Update.
9108 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9109 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9110 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9111 (gnuv3_skip_trampoline): Update.
9112 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9113 (hppa64_hpux_in_solib_call_trampoline): Update.
9114 (hppa_hpux_skip_trampoline_code): Update.
9115 (hppa64_hpux_search_dummy_call_sequence): Update.
9116 (hppa_hpux_find_import_stub_for_addr): Update.
9117 (hppa_hpux_find_dummy_bpaddr): Update.
9118 * hppa-tdep.c (hppa_symbol_address)
9119 (hppa_lookup_stub_minimal_symbol): Update.
9120 * i386-tdep.c (i386_skip_main_prologue): Update.
9121 (i386_pe_skip_trampoline_code): Update.
9122 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9123 * infcall.c (get_function_name): Update.
9124 * infcmd.c (until_next_command): Update.
9125 * jit.c (jit_breakpoint_re_set_internal): Update.
9126 (jit_inferior_init): Update.
9127 * linespec.c (minsym_found): Update.
9128 (add_minsym): Update.
9129 * linux-fork.c (info_checkpoints_command): Update.
9130 * linux-nat.c (get_signo): Update.
9131 * linux-thread-db.c (inferior_has_bug): Update.
9132 * m32c-tdep.c (m32c_return_value): Update.
9133 (m32c_m16c_address_to_pointer): Update.
9134 (m32c_m16c_pointer_to_address): Update.
9135 * m32r-tdep.c (m32r_frame_this_id): Update.
9136 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9137 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9138 * maint.c (maintenance_translate_address): Update.
9139 * minsyms.c (add_minsym_to_hash_table): Update.
9140 (add_minsym_to_demangled_hash_table): Update.
9141 (msymbol_objfile): Update.
9142 (lookup_minimal_symbol): Update.
9143 (iterate_over_minimal_symbols): Update.
9144 (lookup_minimal_symbol_text): Update.
9145 (lookup_minimal_symbol_by_pc_name): Update.
9146 (lookup_minimal_symbol_solib_trampoline): Update.
9147 (lookup_minimal_symbol_by_pc_section_1): Update.
9148 (lookup_minimal_symbol_and_objfile): Update.
9149 (prim_record_minimal_symbol_full): Update.
9150 (compare_minimal_symbols): Update.
9151 (compact_minimal_symbols): Update.
9152 (build_minimal_symbol_hash_tables): Update.
9153 (install_minimal_symbols): Update.
9154 (terminate_minimal_symbol_table): Update.
9155 (find_solib_trampoline_target): Update.
9156 (minimal_symbol_upper_bound): Update.
9157 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9158 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9159 (mips_skip_pic_trampoline_code): Update.
9160 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9161 * objc-lang.c (selectors_info): Update.
9162 (classes_info): Update.
9163 (find_methods): Update.
9164 (find_imps): Update.
9165 (find_objc_msgsend): Update.
9166 * objfiles.c (objfile_relocate1): Update.
9167 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9168 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9169 * p-valprint.c (pascal_val_print): Update.
9170 * parse.c (write_exp_msymbol): Update.
9171 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9172 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9173 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9174 * printcmd.c (build_address_symbolic): Update.
9176 (address_info): Update.
9177 * proc-service.c (ps_pglobal_lookup): Update.
9178 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9179 (find_pc_sect_psymtab): Update.
9180 * python/py-framefilter.c (py_print_frame): Update.
9181 * ravenscar-thread.c (get_running_thread_id): Update.
9182 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9184 * remote.c (remote_check_symbols): Update.
9185 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9186 (rs6000_skip_trampoline_code): Update.
9187 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9188 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9189 * solib-dsbt.c (lm_base): Update.
9190 * solib-frv.c (lm_base): Update.
9192 * solib-irix.c (locate_base): Update.
9193 * solib-som.c (som_solib_create_inferior_hook): Update.
9194 (som_solib_desire_dynamic_linker_symbols): Update.
9195 (link_map_start): Update.
9196 * solib-spu.c (spu_enable_break): Update.
9197 (ocl_enable_break): Update.
9198 * solib-svr4.c (elf_locate_base): Update.
9199 (enable_break): Update.
9200 * spu-tdep.c (spu_get_overlay_table): Update.
9201 (spu_catch_start): Update.
9202 (flush_ea_cache): Update.
9203 * stabsread.c (define_symbol): Update.
9204 (scan_file_globals): Update.
9205 * stack.c (find_frame_funname): Update.
9206 (frame_info): Update.
9207 * symfile.c (simple_read_overlay_table): Update.
9208 (simple_overlay_update): Update.
9209 * symmisc.c (dump_msymbols): Update.
9210 * symtab.c (fixup_section): Update.
9211 (find_pc_sect_line): Update.
9212 (skip_prologue_sal): Update.
9213 (search_symbols): Update.
9214 (print_msymbol_info): Update.
9215 (rbreak_command): Update.
9216 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9217 (completion_list_objc_symbol): Update.
9218 (default_make_symbol_completion_list_break_on): Update.
9219 * tracepoint.c (scope_info): Update.
9220 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9221 (tui_get_begin_asm_address): Update.
9222 * valops.c (find_function_in_inferior): Update.
9223 * value.c (value_static_field): Update.
9224 (value_fn_field): Update.
9226 2014-02-26 Tom Tromey <tromey@redhat.com>
9228 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9229 bound minimal symbols. Move code that knows about minsym
9231 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9233 * minsyms.h (minimal_symbol_upper_bound): Declare.
9234 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9235 minimal_symbol_upper_bound.
9237 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9239 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9240 Use the type's name if its basic type does not have a tag.
9242 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9244 * dwarf2read.c (read_subrange_type): Add comment.
9246 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9248 * dwarf2read.c (update_enumeration_type_from_children): New
9249 function, mostly extracted from process_structure_scope.
9250 (read_enumeration_type): Call update_enumeration_type_from_children.
9251 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9252 and flag_flag_enum fields.
9254 2014-02-26 Pedro Alves <palves@redhat.com>
9256 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9257 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9258 to_xfer_partial method.
9260 2014-02-26 Pedro Alves <palves@redhat.com>
9262 * target.c (complete_target_initialization): Don't install
9263 default_xfer_partial as to_xfer_partial hook.
9265 (update_current_target): Don't INHERIT nor de_fault
9266 deprecated_xfer_memory. Delete de_fault macro.
9267 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9268 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9269 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9272 2014-02-26 Pedro Alves <palves@redhat.com>
9274 * go32-nat.c (my_write_child): New function.
9275 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9276 (go32_xfer_partial): New function.
9277 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9278 Instead install a to_xfer_partial hook.
9280 2014-02-26 Pedro Alves <palves@redhat.com>
9282 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9283 to_xfer_partial helper. Rewrite.
9284 (procfs_xfer_partial): New function.
9285 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9286 Install a to_xfer_partial hook.
9288 2014-02-26 Pedro Alves <palves@redhat.com>
9290 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9291 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9292 (m32r_xfer_partial): New function.
9293 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9294 Install a to_xfer_partial hook.
9296 2014-02-26 Pedro Alves <palves@redhat.com>
9298 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9300 (mips_xfer_partial): New function.
9301 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9302 hook. Install a to_xfer_partial hook.
9304 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9306 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9307 * gdbtypes.c (create_array_type_with_stride): New function,
9308 renaming create_array_type, but with an added parameter
9309 called "bit_stride".
9310 (create_array_type): Re-implement using
9311 create_array_type_with_stride.
9312 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9313 and DW_AT_bit_stride attributes.
9315 2014-02-26 Pedro Alves <palves@redhat.com>
9317 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9318 task-specific breakpoints.
9320 2014-02-25 Pedro Alves <palves@redhat.com>
9322 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9323 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9325 2014-02-25 Stan Shebs <stan@codesourcery.com>
9327 * defs.h: Annotate comments for Doxygen.
9329 2014-02-25 Tom Tromey <tromey@redhat.com>
9331 * target.h (target_ignore): Don't declare.
9332 * target.c (target_ignore): Remove.
9334 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9337 * auto-load.c (auto_load_objfile_script_1): Change filename to
9340 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9342 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9343 documentation. Adjust prototype to match the target_ops
9344 to_xfer_partial method. Adjust implementation accordingly.
9346 2014-02-25 Hui Zhu <hui@codesourcery.com>
9348 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9351 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9353 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9354 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9355 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9356 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9357 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9358 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9359 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9360 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9362 (rl78_register_type): Use a data pointer type for SP and
9363 new pseudo registers mentioned above. Use a 16 bit integer
9364 type for all other register pairs.
9365 (rl78_register_name, rl78_g10_register_name): Update for
9366 new pseudo registers.
9367 (rl78_pseudo_register_read): Likewise.
9368 (rl78_pseudo_register_write): Likewise.
9369 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9370 to the newly added pseudo registers.
9372 2014-02-24 Doug Evans <dje@google.com>
9374 * value.c (record_latest_value): Fix comment.
9375 * printcmd.c (print_command_1): Remove code to handle -1 return from
9376 record_latest_value.
9378 2014-02-24 Pedro Alves <palves@redhat.com>
9380 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9381 deprecated_xfer_memory hook.
9382 (procfs_xfer_partial): Call procfs_xfer_memory instead
9383 of the deprecated_xfer_memory target hook.
9384 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9387 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9389 * windows-nat.c (windows_xfer_shared_libraries): Return
9390 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9391 requested object is TARGET_OBJECT_LIBRARIES.
9393 2014-02-24 Yao Qi <yao@codesourcery.com>
9395 * target.h (enum target_xfer_status)
9396 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9397 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9399 * corefile.c (memory_error_message): User updated.
9400 * exec.c (section_table_read_available_memory): Likewise.
9401 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9402 * target.c (target_xfer_status_to_string): Likewise.
9403 (raw_memory_xfer_partial): Likewise.
9404 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9405 * valops.c (read_value_memory): Likewise.
9406 * exec.h: Update comments.
9408 2014-02-24 Yao Qi <yao@codesourcery.com>
9410 * target.c (target_xfer_status_to_string): Rename argument err
9412 * target.h (target_xfer_status_to_string): Update declaration.
9413 Replace target_xfer_error_to_string with
9414 target_xfer_status_to_string in comment.
9416 2014-02-24 Yao Qi <yao@codesourcery.com>
9418 * mips-linux-nat.c (super_close): Update its type.
9419 (mips_linux_close): Pass 'self' to super_close.
9421 2014-02-24 Yao Qi <yao@codesourcery.com>
9423 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9424 * corefile.c (read_memory): Adjusted.
9425 * target.c (target_write_with_progress): Adjusted.
9427 2014-02-23 Yao Qi <yao@codesourcery.com>
9431 2013-10-25 Yao Qi <yao@codesourcery.com>
9433 * remote.c (remote_traceframe_info): Return early if
9434 traceframe is not selected.
9436 2013-07-19 Yao Qi <yao@codesourcery.com>
9438 * target.c (update_current_target): Change the default action
9439 of 'to_traceframe_info' from tcomplain to return_zero.
9440 * target.h (struct target_ops) <to_traceframe_info>: Add more
9443 2014-02-23 Yao Qi <yao@codesourcery.com>
9445 * valops.c (read_value_memory): Rewrite it. Call
9446 target_xfer_partial in a loop.
9447 * exec.h (section_table_available_memory): Remove declaration.
9448 Move comments to ...
9449 * exec.c (section_table_available_memory): ... here. Make it
9452 2014-02-23 Yao Qi <yao@codesourcery.com>
9454 * exec.c (section_table_read_available_memory): New function.
9455 * exec.h (section_table_read_available_memory): Declare.
9456 * ctf.c (ctf_xfer_partial): Call
9457 section_table_read_available_memory.
9458 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9460 2014-02-23 Yao Qi <yao@codesourcery.com>
9462 * ctf.c (ctf_xfer_partial): Move code to ...
9463 * exec.c (exec_read_partial_read_only): ... it. New function.
9464 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9465 * tracefile.c: Include "exec.h".
9466 * exec.h (exec_read_partial_read_only): Declare.
9468 2014-02-23 Yao Qi <yao@codesourcery.com>
9470 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9471 (tfile_has_memory): Remove.
9472 (init_tfile_ops): Don't set fields to_has_all_memory and
9473 to_has_memory of tfile_ops.
9474 * tracefile.c (tracefile_has_all_memory): New function.
9475 (tracefile_has_memory): New function.
9476 (init_tracefile_ops): Initialize fields to_has_all_memory and
9477 to_has_memory of 'ops'.
9479 2014-02-23 Yao Qi <yao@codesourcery.com>
9481 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9482 (ctf_thread_alive, ctf_get_trace_status): Remove.
9483 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9485 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9486 (tfile_has_stack, tfile_has_registers): Remove.
9487 (tfile_thread_alive): Remove.
9488 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9490 * tracefile.c (tracefile_has_stack): New function.
9491 (tracefile_has_registers): New function.
9492 (tracefile_thread_alive): New function.
9493 (tracefile_get_trace_status): New function.
9494 (init_tracefile_ops): New function.
9495 * tracefile.h (init_tracefile_ops): Declare.
9497 2014-02-23 Yao Qi <yao@codesourcery.com>
9499 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9500 (O_LARGEFILE): Likewise.
9501 (tfile_ops): Likewise.
9502 (TRACE_HEADER_SIZE): Likewise.
9503 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9504 (cur_data_size): Likewise.
9505 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9506 (tfile_close, tfile_files_info): Likewise.
9507 (tfile_get_trace_status): Likewise.
9508 (tfile_get_tracepoint_status): Likewise.
9509 (tfile_get_traceframe_address): Likewise.
9510 (tfile_trace_find, match_blocktype): Likewise.
9511 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9512 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9513 (tfile_get_trace_state_variable_value): Likewise.
9514 (tfile_has_all_memory, tfile_has_memory): Likewise.
9515 (tfile_has_stack, tfile_has_registers): Likewise.
9516 (tfile_thread_alive, build_traceframe_info): Likewise.
9517 (tfile_traceframe_info, init_tfile_ops): Likewise.
9518 (_initialize_tracepoint): Don't call init_tfile_ops
9519 and add_target_with_completer.
9520 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9521 exec.h, completer.h and filenames.h.
9522 (_initialize_tracefile_tfile): New function.
9524 2014-02-23 Yao Qi <yao@codesourcery.com>
9526 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9528 (HFILES_NO_SRCDIR): Add tracefile.h.
9529 * ctf.c: Include "tracefile.h".
9530 * tracefile.h: New file.
9531 * tracefile.c: New file
9532 * tracefile-tfile.c: New file.
9533 * tracepoint.c: Include "tracefile.h".
9534 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9535 (stop_reason_names): Add const.
9536 (trace_file_writer_xfree): Move it to tracefile.c.
9537 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9538 (trace_save_ctf): Likewise.
9539 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9540 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9541 (tfile_write_header, tfile_write_regblock_type): Likewise.
9542 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9543 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9544 (tfile_write_raw_data, tfile_end): Likewise.
9545 (tfile_trace_file_writer_new): Likewise.
9546 (free_uploaded_tp): Make it extern.
9547 (free_uploaded_tsv): Make it extern.
9548 (_initialize_tracepoint): Move code to register command 'tsave'
9550 * tracepoint.h (stop_reason_names): Declare.
9551 (struct trace_frame_write_ops): Move it to tracefile.h.
9552 (struct trace_file_write_ops): Likewise.
9553 (struct trace_file_writer): Likewise.
9554 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9556 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9559 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9561 (get_cores_used_by_process): New parameter num_cores, use it.
9562 (linux_xfer_osdata_processes): Pass num_cores to it.
9563 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9566 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9568 * target.c (memory_xfer_partial): Fix length arg in call to
9569 breakpoint_xfer_memory.
9571 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9574 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9575 number comes after the + or - signs. Adjust length of register
9576 name to be extracted.
9578 2014-02-20 Tom Tromey <tromey@redhat.com>
9580 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9581 (ada_varobj_ops): Mark "extern".
9583 2014-02-20 Tom Tromey <tromey@redhat.com>
9585 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9587 2014-02-20 Doug Evans <xdje42@gmail.com>
9589 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9590 All callers updated.
9591 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9592 All callers updated.
9593 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9594 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9596 2014-02-20 lin zuojian <manjian2006@gmail.com>
9597 Joel Brobecker <brobecker@adacore.com>
9598 Doug Evans <xdje42@gmail.com>
9601 * dwarf2read.c (struct die_info): New member in_process.
9602 (reset_die_in_process): New function.
9603 (process_die): Set it at the start, reset when returning.
9604 (inherit_abstract_dies): Only call process_die if origin_child_die
9605 not already being processed.
9607 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9609 * windows-nat.c (handle_unload_dll): Add function documentation.
9610 (do_initial_windows_stuff): Add comment explaining why we wait
9611 until after inferior initialization has finished before
9612 processing all DLLs.
9614 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9616 * windows-nat.c (get_module_name): Delete.
9617 (windows_get_exec_module_filename): New function, mostly
9618 inspired from get_module_name.
9619 (windows_pid_to_exec_file): Replace call to get_module_name
9620 by call to windows_get_exec_module_filename.
9622 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9624 * windows-nat.c (handle_load_dll): Rewrite this function's
9625 introductory comment. Remove code using get_module_name
9626 to get the DLL's name.
9628 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9630 * windows-nat.c (get_windows_debug_event): Ignore
9631 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9632 if windows_initialization_done == 0.
9633 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9634 Adjust implementation to always load all DLLs.
9635 (do_initial_windows_stuff): Replace call to
9636 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9638 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9640 * windows-nat.c (_initialize_windows_nat): Deprecate the
9641 "dll-symbols" command. Turn the "add-shared-symbol-files"
9642 and "assf" aliases into commands, and deprecate them as well.
9643 * NEWS: Add entry explaining that "dll-symbols" and its two
9644 aliases are now deprecated.
9646 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9648 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9649 new-line in debug string. Remove trailing spaces.
9651 2014-02-19 Stan Shebs <stan@codesourcery.com>
9653 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9655 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9657 * NEWS: Add entry for the new feature
9658 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9661 2014-02-19 Stan Shebs <stan@codesourcery.com>
9663 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9665 2014-02-19 Pedro Alves <palves@redhat.com>
9667 * common/ptid.h (struct ptid): Mention that process_stratum
9668 targets should prefer ptid.lwp.
9670 2014-02-19 Pedro Alves <palves@redhat.com>
9672 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9673 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9674 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9675 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9676 store remote thread ids rather than ptid.tid.
9677 (_initialize_remote): Adjust.
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9681 * target.c (target_get_unwinder): Rewrite.
9682 (target_get_tailcall_unwinder): Rewrite.
9683 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9684 (record_btrace_to_get_tailcall_unwinder): New function.
9685 (init_record_btrace_ops): Update.
9686 * target.h (struct target_ops) <to_get_unwinder,
9687 to_get_tailcall_unwinder>: Now function pointers. Use
9688 TARGET_DEFAULT_RETURN.
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9692 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9694 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9696 2014-02-19 Tom Tromey <tromey@redhat.com>
9698 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9700 * target-delegates.c: Rebuild.
9701 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9702 TARGET_DEFAULT_FUNC.
9703 * target.c (default_target_decr_pc_after_break): Rename from
9704 forward_target_decr_pc_after_break. Simplify.
9705 (target_decr_pc_after_break): Rely on delegation.
9707 2014-02-19 Tom Tromey <tromey@redhat.com>
9709 * target.c (update_current_target): Do not INHERIT to_doc or
9710 to_magic. Do not de_fault to_open or to_close.
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9714 * gcore.h (objfile_find_memory_regions): Declare.
9715 * gcore.c (objfile_find_memory_regions): No longer static. Add
9717 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9718 * exec.c: Include gcore.h.
9719 (exec_set_find_memory_regions): Remove.
9720 (exec_find_memory_regions): Remove.
9721 (exec_do_find_memory_regions): Remove.
9722 (init_exec_ops): Update.
9723 * defs.h (exec_set_find_memory_regions): Remove.
9725 2014-02-19 Tom Tromey <tromey@redhat.com>
9727 * target-delegates.c: Rebuild.
9728 * target.h (struct target_ops) <to_extra_thread_info,
9729 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9730 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9731 not 0, in TARGET_DEFAULT_RETURN.
9733 2014-02-19 Tom Tromey <tromey@redhat.com>
9735 * target.c (complete_target_initialization): Remove casts. Use
9736 return_zero_has_execution.
9737 (return_zero): Add "ignore" argument.
9738 (return_zero_has_execution): New function.
9739 (init_dummy_target): Remove casts. Use
9740 return_zero_has_execution.
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9744 * target.c (update_current_target): Update comments. Do not
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9751 * corelow.c (core_read_description): Delegate when needed.
9752 * remote.c (remote_read_description): Delegate when needed.
9753 * target-delegates.c: Rebuild.
9754 * target.c (target_read_description): Rewrite.
9755 * target.h (struct target_ops) <to_read_description>: Update
9756 comment. Use TARGET_DEFAULT_RETURN.
9758 2014-02-19 Tom Tromey <tromey@redhat.com>
9760 * target-delegates.c: Rebuild.
9761 * target.c (update_current_target): Don't inherit or default
9763 (find_default_run_target): Check against delegate_can_run.
9764 * target.h (struct target_ops) <to_can_run>: Use
9765 TARGET_DEFAULT_RETURN.
9767 2014-02-19 Tom Tromey <tromey@redhat.com>
9769 * target-delegates.c: Rebuild.
9770 * target.c (target_disconnect): Unconditionally delegate.
9771 * target.h (struct target_ops) <to_disconnect>: Use
9772 TARGET_DEFAULT_NORETURN.
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9776 * record.c (record_stop): Unconditionally delegate.
9777 * target-delegates.c: Rebuild.
9778 * target.c (target_stop_recording): Unconditionally delegate.
9779 * target.h (struct target_ops) <to_stop_recording>: Use
9780 TARGET_DEFAULT_IGNORE.
9782 2014-02-19 Tom Tromey <tromey@redhat.com>
9784 * target-delegates.c: Rebuild.
9785 * target.c (target_enable_btrace): Unconditionally delegate.
9786 * target.h (struct target_ops) <to_enable_btrace>: Use
9787 TARGET_DEFAULT_NORETURN.
9789 2014-02-19 Tom Tromey <tromey@redhat.com>
9791 * target-delegates.c: Rebuild.
9792 * target.c (target_read_btrace): Unconditionally delegate.
9793 * target.h (struct target_ops) <to_read_btrace>: Use
9794 TARGET_DEFAULT_NORETURN.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * target-delegates.c: Rebuild.
9799 * target.c (target_teardown_btrace): Unconditionally delegate.
9800 * target.h (struct target_ops) <to_teardown_btrace>: Use
9801 TARGET_DEFAULT_NORETURN.
9803 2014-02-19 Tom Tromey <tromey@redhat.com>
9805 * target-delegates.c: Rebuild.
9806 * target.c (target_disable_btrace): Unconditionally delegate.
9807 * target.h (struct target_ops) <to_disable_btrace>: Use
9808 TARGET_DEFAULT_NORETURN.
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9812 * target-delegates.c: Rebuild.
9813 * target.c (default_search_memory): New function.
9814 (simple_search_memory): Update comment.
9815 (target_search_memory): Unconditionally delegate.
9816 * target.h (struct target_ops) <to_search_memory>: Use
9817 TARGET_DEFAULT_FUNC.
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9821 * auxv.c (default_auxv_parse): No longer static.
9822 (target_auxv_parse): Unconditionally delegate.
9823 * auxv.h (default_auxv_parse): Declare.
9824 * target-delegates.c: Rebuild.
9825 * target.c: Include auxv.h.
9826 * target.h (struct target_ops) <to_auxv_parse>: Use
9827 TARGET_DEFAULT_FUNC.
9829 2014-02-19 Tom Tromey <tromey@redhat.com>
9831 * target-delegates.c: Rebuild.
9832 * target.c (target_memory_map): Unconditionally delegate.
9833 * target.h (struct target_ops) <to_memory_map>: Use
9834 TARGET_DEFAULT_RETURN.
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9838 * target-delegates.c: Rebuild.
9839 * target.c (target_thread_alive): Unconditionally delegate.
9840 * target.h (struct target_ops) <to_thread_alive>: Use
9841 TARGET_DEFAULT_RETURN.
9843 2014-02-19 Tom Tromey <tromey@redhat.com>
9845 * target-delegates.c: Rebuild.
9846 * target.c (target_save_record): Unconditionally delegate.
9847 * target.h (struct target_ops) <to_save_record>: Use
9848 TARGET_DEFAULT_NORETURN.
9850 2014-02-19 Tom Tromey <tromey@redhat.com>
9852 * target-delegates.c: Rebuild.
9853 * target.c (target_delete_record): Unconditionally delegate.
9854 * target.h (struct target_ops) <to_delete_record>: Use
9855 TARGET_DEFAULT_NORETURN.
9857 2014-02-19 Tom Tromey <tromey@redhat.com>
9859 * target-delegates.c: Rebuild.
9860 * target.c (target_record_is_replaying): Unconditionally
9862 * target.h (struct target_ops) <to_record_is_replaying>: Use
9863 TARGET_DEFAULT_RETURN.
9865 2014-02-19 Tom Tromey <tromey@redhat.com>
9867 * target-delegates.c: Rebuild.
9868 * target.c (target_goto_record_begin): Unconditionally delegate.
9869 * target.h (struct target_ops) <to_goto_record_begin>: Use
9870 TARGET_DEFAULT_NORETURN.
9872 2014-02-19 Tom Tromey <tromey@redhat.com>
9874 * target-delegates.c: Rebuild.
9875 * target.c (target_goto_record_end): Unconditionally delegate.
9876 * target.h (struct target_ops) <to_goto_record_end>: Use
9877 TARGET_DEFAULT_NORETURN.
9879 2014-02-19 Tom Tromey <tromey@redhat.com>
9881 * target-delegates.c: Rebuild.
9882 * target.c (target_goto_record): Unconditionally delegate.
9883 * target.h (struct target_ops) <to_goto_record>: Use
9884 TARGET_DEFAULT_NORETURN.
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9888 * target-delegates.c: Rebuild.
9889 * target.c (target_insn_history): Unconditionally delegate.
9890 * target.h (struct target_ops) <to_insn_history>: Use
9891 TARGET_DEFAULT_NORETURN.
9893 2014-02-19 Tom Tromey <tromey@redhat.com>
9895 * target-delegates.c: Rebuild.
9896 * target.c (target_insn_history_from): Unconditionally delegate.
9897 * target.h (struct target_ops) <to_insn_history_from>: Use
9898 TARGET_DEFAULT_NORETURN.
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9902 * target-delegates.c: Rebuild.
9903 * target.c (target_insn_history_range): Unconditionally delegate.
9904 * target.h (struct target_ops) <to_insn_history_range>: Use
9905 TARGET_DEFAULT_NORETURN.
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9909 * target-delegates.c: Rebuild.
9910 * target.c (target_call_history): Unconditionally delegate.
9911 * target.h (struct target_ops) <to_call_history>: Use
9912 TARGET_DEFAULT_NORETURN.
9914 2014-02-19 Tom Tromey <tromey@redhat.com>
9916 * target-delegates.c: Rebuild.
9917 * target.c (target_call_history_from): Unconditionally delegate.
9918 * target.h (struct target_ops) <to_call_history_from>: Use
9919 TARGET_DEFAULT_NORETURN.
9921 2014-02-19 Tom Tromey <tromey@redhat.com>
9923 * target-delegates.c: Rebuild.
9924 * target.c (target_call_history_range): Unconditionally delegate.
9925 * target.h (struct target_ops) <to_call_history_range>: Use
9926 TARGET_DEFAULT_NORETURN.
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9930 * target-delegates.c: Rebuild.
9931 * target.c (target_verify_memory): Unconditionally delegate.
9932 * target.h (struct target_ops) <to_verify_memory>: Use
9933 TARGET_DEFAULT_NORETURN.
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9937 * target-delegates.c: Rebuild.
9938 * target.c (target_core_of_thread): Unconditionally delegate.
9939 * target.h (struct target_ops) <to_core_of_thread>: Use
9940 TARGET_DEFAULT_RETURN.
9942 2014-02-19 Tom Tromey <tromey@redhat.com>
9944 * target-delegates.c: Rebuild.
9945 * target.c (target_flash_done): Unconditionally delegate.
9946 * target.h (struct target_ops) <to_flash_done>: Use
9947 TARGET_DEFAULT_NORETURN.
9949 2014-02-19 Tom Tromey <tromey@redhat.com>
9951 * target-delegates.c: Rebuild.
9952 * target.c (target_flash_erase): Unconditionally delegate.
9953 * target.h (struct target_ops) <to_flash_erase>: Use
9954 TARGET_DEFAULT_NORETURN.
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9958 * target-delegates.c: Rebuild.
9959 * target.c (target_get_section_table): Unconditionally delegate.
9960 * target.h (struct target_ops) <to_get_section_table>: Use
9961 TARGET_DEFAULT_RETURN.
9963 2014-02-19 Tom Tromey <tromey@redhat.com>
9965 * target-delegates.c: Rebuild.
9966 * target.c (target_pid_to_str): Unconditionally delegate.
9967 (init_dummy_target): Don't initialize to_pid_to_str.
9968 (default_pid_to_str): Rename from dummy_pid_to_str.
9969 * target.h (struct target_ops) <to_pid_to_str>: Use
9970 TARGET_DEFAULT_FUNC.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target-delegates.c: Rebuild.
9975 * target.c (target_find_new_threads): Unconditionally delegate.
9976 * target.h (struct target_ops) <to_find_new_threads>: Use
9977 TARGET_DEFAULT_RETURN.
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9981 * target-delegates.c: Rebuild.
9982 * target.c (target_program_signals): Unconditionally delegate.
9983 * target.h (struct target_ops) <to_program_signals>: Use
9984 TARGET_DEFAULT_IGNORE.
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target-delegates.c: Rebuild.
9989 * target.c (target_pass_signals): Unconditionally delegate.
9990 * target.h (struct target_ops) <to_pass_signals>: Use
9991 TARGET_DEFAULT_IGNORE.
9993 2014-02-19 Tom Tromey <tromey@redhat.com>
9995 * target-delegates.c: Rebuild.
9996 * target.c (default_mourn_inferior): New function.
9997 (target_mourn_inferior): Unconditionally delegate.
9998 * target.h (struct target_ops) <to_mourn_inferior>: Use
9999 TARGET_DEFAULT_FUNC.
10001 2014-02-19 Tom Tromey <tromey@redhat.com>
10003 * target-delegates.c: Rebuild.
10004 * target.c (default_follow_fork): New function.
10005 (target_follow_fork): Unconditionally delegate.
10006 * target.h (struct target_ops) <to_follow_fork>: Use
10007 TARGET_DEFAULT_FUNC.
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10011 * target-delegates.c: Rebuild.
10012 * target.c (target_kill): Unconditionally delegate.
10013 * target.h (struct target_ops) <to_kill>: Use
10014 TARGET_DEFAULT_NORETURN.
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10018 * target-delegates.c: Rebuild.
10019 * target.c (target_masked_watch_num_registers): Unconditionally
10021 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10022 Use TARGET_DEFAULT_RETURN.
10024 2014-02-19 Tom Tromey <tromey@redhat.com>
10026 * target-delegates.c: Rebuild.
10027 * target.c (target_remove_mask_watchpoint): Unconditionally
10029 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10030 TARGET_DEFAULT_RETURN.
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10034 * target-delegates.c: Rebuild.
10035 * target.c (target_insert_mask_watchpoint): Unconditionally
10037 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10038 TARGET_DEFAULT_RETURN.
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10042 * target-delegates.c: Rebuild.
10043 * target.c (target_ranged_break_num_registers): Unconditionally
10045 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10046 Use TARGET_DEFAULT_RETURN.
10048 2014-02-19 Tom Tromey <tromey@redhat.com>
10050 * target-delegates.c: Rebuild.
10051 * target.c (target_fetch_registers): Unconditionally delegate.
10052 * target.h (struct target_ops) <to_fetch_registers>: Use
10053 TARGET_DEFAULT_NORETURN.
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10057 * target-delegates.c: Rebuild.
10058 * target.c (update_current_target): Don't inherit or default
10060 * target.h (struct target_ops) <to_stop>: Use
10061 TARGET_DEFAULT_IGNORE.
10063 2014-02-19 Tom Tromey <tromey@redhat.com>
10065 * target-delegates.c: Rebuild.
10066 * target.c (update_current_target): Don't inherit or default
10067 to_can_run_breakpoint_commands.
10068 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10069 Use TARGET_DEFAULT_RETURN.
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
10075 to_supports_evaluation_of_breakpoint_conditions.
10076 * target.h (struct target_ops)
10077 <to_supports_evaluation_of_breakpoint_conditions>: Use
10078 TARGET_DEFAULT_RETURN.
10080 2014-02-19 Tom Tromey <tromey@redhat.com>
10082 * target-delegates.c: Rebuild.
10083 * target.c (update_current_target): Don't inherit or default
10084 to_augmented_libraries_svr4_read.
10085 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10086 Use TARGET_DEFAULT_RETURN.
10088 2014-02-19 Tom Tromey <tromey@redhat.com>
10090 * target-delegates.c: Rebuild.
10091 * target.c (update_current_target): Don't inherit or default
10093 * target.h (struct target_ops) <to_can_use_agent>: 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
10101 * target.h (struct target_ops) <to_use_agent>: Use
10102 TARGET_DEFAULT_NORETURN.
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
10108 to_traceframe_info.
10109 (return_null): Remove.
10110 * target.h (struct target_ops) <to_traceframe_info>: Use
10111 TARGET_DEFAULT_RETURN.
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10115 * target-delegates.c: Rebuild.
10116 * target.c (update_current_target): Don't inherit or default
10117 to_static_tracepoint_markers_by_strid.
10118 * target.h (struct target_ops)
10119 <to_static_tracepoint_markers_by_strid>: Use
10120 TARGET_DEFAULT_NORETURN.
10122 2014-02-19 Tom Tromey <tromey@redhat.com>
10124 * target-delegates.c: Rebuild.
10125 * target.c (update_current_target): Don't inherit or default
10126 to_static_tracepoint_marker_at.
10127 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10128 Use TARGET_DEFAULT_RETURN.
10130 2014-02-19 Tom Tromey <tromey@redhat.com>
10132 * target-delegates.c: Rebuild.
10133 * target.c (update_current_target): Don't inherit or default
10134 to_set_permissions.
10135 * target.h (struct target_ops) <to_set_permissions>: Use
10136 TARGET_DEFAULT_IGNORE.
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_get_tib_address.
10143 * target.h (struct target_ops) <to_get_tib_address>: Use
10144 TARGET_DEFAULT_NORETURN.
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_trace_notes.
10151 * target.h (struct target_ops) <to_set_trace_notes>: Use
10152 TARGET_DEFAULT_RETURN.
10154 2014-02-19 Tom Tromey <tromey@redhat.com>
10156 * target-delegates.c: Rebuild.
10157 * target.c (update_current_target): Don't initialize
10158 to_set_trace_buffer_size.
10159 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10160 TARGET_DEFAULT_IGNORE.
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_circular_trace_buffer.
10167 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10168 TARGET_DEFAULT_IGNORE.
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10172 * target-delegates.c: Rebuild.
10173 * target.c (update_current_target): Don't inherit or default
10174 to_set_disconnected_tracing.
10175 * target.h (struct target_ops) <to_set_disconnected_tracing>: 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_get_min_fast_tracepoint_insn_len.
10183 (return_minus_one): Remove.
10184 * target.h (struct target_ops)
10185 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10187 2014-02-19 Tom Tromey <tromey@redhat.com>
10189 * target-delegates.c: Rebuild.
10190 * target.c (update_current_target): Don't inherit or default
10191 to_get_raw_trace_data.
10192 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10193 TARGET_DEFAULT_NORETURN.
10195 2014-02-19 Tom Tromey <tromey@redhat.com>
10197 * target-delegates.c: Rebuild.
10198 * target.c (update_current_target): Don't inherit or default
10199 to_upload_trace_state_variables.
10200 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10201 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_upload_tracepoints.
10208 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10209 TARGET_DEFAULT_RETURN.
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_save_trace_data.
10216 * target.h (struct target_ops) <to_save_trace_data>: Use
10217 TARGET_DEFAULT_NORETURN.
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_get_trace_state_variable_value.
10224 * target.h (struct target_ops)
10225 <to_get_trace_state_variable_value>: Use 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
10232 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10234 2014-02-19 Tom Tromey <tromey@redhat.com>
10236 * target-delegates.c: Rebuild.
10237 * target.c (update_current_target): Don't inherit or default
10239 * target.h (struct target_ops) <to_trace_stop>: Use
10240 TARGET_DEFAULT_NORETURN.
10242 2014-02-19 Tom Tromey <tromey@redhat.com>
10244 * target-delegates.c: Rebuild.
10245 * target.c (update_current_target): Don't inherit or default
10246 to_get_tracepoint_status.
10247 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10248 TARGET_DEFAULT_NORETURN.
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
10254 to_get_trace_status.
10255 * target.h (struct target_ops) <to_get_trace_status>: Use
10256 TARGET_DEFAULT_RETURN.
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
10263 * target.h (struct target_ops) <to_trace_start>: 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_trace_set_readonly_regions.
10271 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10272 Use TARGET_DEFAULT_NORETURN.
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
10278 to_disable_tracepoint.
10279 * target.h (struct target_ops) <to_disable_tracepoint>: 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_enable_tracepoint.
10287 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10288 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_download_trace_state_variable.
10295 * target.h (struct target_ops) <to_download_trace_state_variable>:
10296 Use 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_can_download_tracepoint.
10303 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10304 TARGET_DEFAULT_RETURN.
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_tracepoint.
10311 * target.h (struct target_ops) <to_download_tracepoint>: Use
10312 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
10319 * target.h (struct target_ops) <to_trace_init>: 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_supports_string_tracing.
10327 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10328 TARGET_DEFAULT_RETURN.
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
10334 to_supports_enable_disable_tracepoint.
10335 * target.h (struct target_ops)
10336 <to_supports_enable_disable_tracepoint>: Use
10337 TARGET_DEFAULT_RETURN.
10339 2014-02-19 Tom Tromey <tromey@redhat.com>
10341 * target-delegates.c: Rebuild.
10342 * target.c (update_current_target): Don't inherit or default
10343 to_supports_multi_process.
10344 * target.h (struct target_ops) <to_supports_multi_process>: Use
10345 TARGET_DEFAULT_RETURN.
10347 2014-02-19 Tom Tromey <tromey@redhat.com>
10349 * target-delegates.c: Rebuild.
10350 * target.c (update_current_target): Don't inherit or default
10351 to_get_ada_task_ptid.
10352 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10353 TARGET_DEFAULT_FUNC.
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_thread_architecture.
10360 * target.h (struct target_ops) <to_thread_architecture>: Use
10361 TARGET_DEFAULT_FUNC.
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_execution_direction.
10368 * target.h (struct target_ops) <to_execution_direction>: 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_can_execute_reverse.
10376 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10377 TARGET_DEFAULT_RETURN.
10378 (target_can_execute_reverse): Unconditionally delegate.
10380 2014-02-19 Tom Tromey <tromey@redhat.com>
10382 * target-delegates.c: Rebuild.
10383 * target.c (update_current_target): Don't inherit or default
10385 (dummy_goto_bookmark): Remove.
10386 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10387 * target.h (struct target_ops) <to_goto_bookmark>: Use
10388 TARGET_DEFAULT_NORETURN.
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10392 * target-delegates.c: Rebuild.
10393 * target.c (update_current_target): Don't inherit or default
10395 (dummy_get_bookmark): Remove.
10396 (init_dummy_target): Don't inherit or default to_get_bookmark.
10397 * target.h (struct target_ops) <to_get_bookmark>: Use
10398 TARGET_DEFAULT_NORETURN
10400 2014-02-19 Tom Tromey <tromey@redhat.com>
10402 * target-delegates.c: Rebuild.
10403 * target.c (update_current_target): Don't inherit or default
10404 to_make_corefile_notes.
10405 (init_dummy_target): Don't initialize to_make_corefile_notes.
10406 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10407 TARGET_DEFAULT_FUNC.
10409 2014-02-19 Tom Tromey <tromey@redhat.com>
10411 * target-delegates.c: Rebuild.
10412 * target.c (update_current_target): Don't inherit or default
10413 to_find_memory_regions.
10414 (init_dummy_target): Don't initialize to_find_memory_regions.
10415 * target.h (struct target_ops) <to_find_memory_regions>: Use
10416 TARGET_DEFAULT_FUNC.
10418 2014-02-19 Tom Tromey <tromey@redhat.com>
10420 * target-delegates.c: Rebuild.
10421 * target.c (update_current_target): Don't inherit or default
10423 * target.h (struct target_ops) <to_log_command>: Use
10424 TARGET_DEFAULT_IGNORE.
10425 (target_log_command): Unconditionally delegate.
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10429 * target-delegates.c: Rebuild.
10430 * target.c (update_current_target): Don't inherit or default
10431 to_pid_to_exec_file.
10432 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10433 TARGET_DEFAULT_RETURN.
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10437 * target-delegates.c: Rebuild.
10438 * target.c (update_current_target): Don't inherit or default
10440 (target_thread_name): Unconditionally delegate.
10441 * target.h (struct target_ops) <to_thread_name>: Use
10442 TARGET_DEFAULT_RETURN.
10444 2014-02-19 Tom Tromey <tromey@redhat.com>
10446 * target-delegates.c: Rebuild.
10447 * target.c (update_current_target): Don't inherit or default
10448 to_extra_thread_info.
10449 * target.h (struct target_ops) <to_extra_thread_info>: Use
10450 TARGET_DEFAULT_RETURN.
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10454 * target-delegates.c: Rebuild.
10455 * target.c (update_current_target): Don't inherit or default
10457 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
10465 (return_one): Remove.
10466 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10467 TARGET_DEFAULT_RETURN.
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10471 * target-delegates.c: Rebuild.
10472 * target.c (update_current_target): Don't inherit or default
10473 to_insert_exec_catchpoint.
10474 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10475 TARGET_DEFAULT_RETURN.
10477 2014-01-08 Tom Tromey <tromey@redhat.com>
10479 * target-delegates.c: Rebuild.
10480 * target.c (update_current_target): Don't inherit or default
10481 to_insert_exec_catchpoint.
10482 * target.h (struct target_ops) <to_insert_exec_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_remove_vfork_catchpoint.
10490 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10491 TARGET_DEFAULT_RETURN.
10493 2014-02-19 Tom Tromey <tromey@redhat.com>
10495 * target-delegates.c: Rebuild.
10496 * target.c (update_current_target): Don't inherit or default
10497 to_insert_vfork_catchpoint.
10498 * target.h (struct target_ops) <to_insert_vfork_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_fork_catchpoint.
10506 * target.h (struct target_ops) <to_remove_fork_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_fork_catchpoint.
10514 * target.h (struct target_ops) <to_insert_fork_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_post_startup_inferior.
10522 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10523 TARGET_DEFAULT_IGNORE.
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
10530 * target.h (struct target_ops) <to_load>: Use
10531 TARGET_DEFAULT_NORETURN.
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
10538 * target.h (struct target_ops) <to_terminal_info>: Use
10539 TARGET_DEFAULT_FUNC.
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
10545 to_terminal_save_ours.
10546 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10547 TARGET_DEFAULT_IGNORE.
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_ours>: Use
10555 TARGET_DEFAULT_IGNORE.
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_ours_for_output.
10562 * target.h (struct target_ops) <to_terminal_ours_for_output>: 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
10569 to_terminal_inferior.
10570 * target.h (struct target_ops) <to_terminal_inferior>: 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
10578 * target.h (struct target_ops) <to_terminal_init>: 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_can_accel_watchpoint_condition.
10586 * target.h (struct target_ops)
10587 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
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
10593 to_region_ok_for_hw_watchpoint.
10594 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10595 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
10602 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10603 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
10610 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10611 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
10618 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10619 TARGET_DEFAULT_RETURN.
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_hw_breakpoint.
10626 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10627 TARGET_DEFAULT_RETURN.
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_hw_breakpoint.
10634 * target.h (struct target_ops) <to_insert_hw_breakpoint>: 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_can_use_hw_breakpoint.
10642 * target.h (struct target_ops) <to_can_use_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
10650 * target.h (struct target_ops) <to_files_info>: Use
10651 TARGET_DEFAULT_IGNORE.
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
10658 * target.h (struct target_ops) <to_store>: Use
10659 TARGET_DEFAULT_NORETURN.
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_post_attach>: 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 (default_rcmd): New function.
10675 (do_monitor_command): Unconditionally delegate.
10676 * target.h (struct target_ops) <to_rmcd>: Use
10677 TARGET_DEFAULT_FUNC.
10679 2014-02-19 Tom Tromey <tromey@redhat.com>
10681 * target-delegates.c: Rebuild.
10682 * target.c (init_dummy_target): Don't initialize to_attach.
10683 (target_attach): Unconditionally delegate.
10684 * target.h (struct target_ops) <to_attach>: Use
10685 TARGET_DEFAULT_FUNC.
10687 2014-02-19 Tom Tromey <tromey@redhat.com>
10689 * target-delegates.c: Rebuild.
10690 * target.c (target_detach): Unconditionally delegate.
10691 (init_dummy_target): Don't initialize to_detach.
10692 * target.h (struct target_ops) <to_detach>: Use
10693 TARGET_DEFAULT_IGNORE.
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10697 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10699 (target_augmented_libraries_svr4_read): Add argument.
10700 * target.c (update_current_target): Update.
10701 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * target.h (struct target_ops) <to_call_history_range>: Add
10708 * target.c (target_call_history_range): Add argument.
10709 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10711 (record_btrace_call_history_from): Update.
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10715 * target.h (struct target_ops) <to_call_history_from>: Add
10717 * target.c (target_call_history_from): Add argument.
10718 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10723 * target.h (struct target_ops) <to_call_history>: Add argument.
10724 * target.c (target_call_history): Add argument.
10725 * record-btrace.c (record_btrace_call_history): Add 'self'
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10730 * target.h (struct target_ops) <to_insn_history_range>: Add
10732 * target.c (target_insn_history_range): Add argument.
10733 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10735 (record_btrace_insn_history_from): Update.
10737 2014-02-19 Tom Tromey <tromey@redhat.com>
10739 * target.h (struct target_ops) <to_insn_history_from>: Add
10741 * target.c (target_insn_history_from): Add argument.
10742 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * target.h (struct target_ops) <to_insn_history>: Add argument.
10748 * target.c (target_insn_history): Add argument.
10749 * record-btrace.c (record_btrace_insn_history): Add 'self'
10752 2014-02-19 Tom Tromey <tromey@redhat.com>
10754 * target.h (struct target_ops) <to_goto_record>: Add argument.
10755 * target.c (target_goto_record): Add argument.
10756 * record-full.c (record_full_goto): Add 'self' argument.
10757 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10759 2014-02-19 Tom Tromey <tromey@redhat.com>
10761 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10762 * target.c (target_goto_record_end): Add argument.
10763 * record-full.c (record_full_goto_end): Add 'self' argument.
10764 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10768 * target.h (struct target_ops) <to_goto_record_begin>: Add
10770 * target.c (target_goto_record_begin): Add argument.
10771 * record-full.c (record_full_goto_begin): Add 'self' argument.
10772 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10775 2014-02-19 Tom Tromey <tromey@redhat.com>
10777 * target.h (struct target_ops) <to_record_is_replaying>: Add
10779 * target.c (target_record_is_replaying): Add argument.
10780 * record-full.c (record_full_is_replaying): Add 'self' argument.
10781 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10783 (record_btrace_xfer_partial, record_btrace_store_registers)
10784 (record_btrace_prepare_to_store, record_btrace_resume)
10785 (record_btrace_wait, record_btrace_decr_pc_after_break)
10786 (record_btrace_find_new_threads, record_btrace_thread_alive):
10789 2014-02-19 Tom Tromey <tromey@redhat.com>
10791 * target.h (struct target_ops) <to_delete_record>: Add argument.
10792 * target.c (target_delete_record): Add argument.
10793 * record-full.c (record_full_delete): Add 'self' argument.
10795 2014-02-19 Tom Tromey <tromey@redhat.com>
10797 * target.h (struct target_ops) <to_save_record>: Add argument.
10798 * target.c (target_save_record): Add argument.
10799 * record-full.c (record_full_save): Add 'self' argument.
10800 (record_full_save): Add 'self' argument.
10802 2014-02-19 Tom Tromey <tromey@redhat.com>
10804 * target.h (struct target_ops) <to_info_record>: Add argument.
10805 * target.c (target_info_record): Add argument.
10806 * record.c (info_record_command): Add argument.
10807 * record-full.c (record_full_info): Add 'self' argument.
10808 * record-btrace.c (record_btrace_info): Add 'self' argument.
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10812 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10813 * target.c (target_stop_recording): Add argument.
10814 * record.c (record_stop): Add argument.
10815 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10818 2014-02-19 Tom Tromey <tromey@redhat.com>
10820 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10821 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10822 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10824 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10825 (_initialize_amd64_linux_nat): Use it.
10826 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10827 (_initialize_i386_linux_nat): Use it.
10829 2014-02-19 Tom Tromey <tromey@redhat.com>
10831 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10832 * target.c (target_teardown_btrace): Add argument.
10833 * remote.c (remote_teardown_btrace): Add 'self' argument.
10834 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10836 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10839 2014-02-19 Tom Tromey <tromey@redhat.com>
10841 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10842 * target.c (target_disable_btrace): Add argument.
10843 * remote.c (remote_disable_btrace): Add 'self' argument.
10844 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10846 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10849 2014-02-19 Tom Tromey <tromey@redhat.com>
10851 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10852 * target.c (target_enable_btrace): Add argument.
10853 * remote.c (remote_enable_btrace): Add 'self' argument.
10854 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10856 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10859 2014-02-19 Tom Tromey <tromey@redhat.com>
10861 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10862 (target_can_use_agent): Add argument.
10863 * target.c (update_current_target): Update.
10864 * remote.c (remote_can_use_agent): Add 'self' argument.
10865 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10867 2014-02-19 Tom Tromey <tromey@redhat.com>
10869 * target.h (struct target_ops) <to_use_agent>: Add argument.
10870 (target_use_agent): Add argument.
10871 * target.c (update_current_target): Update.
10872 * remote.c (remote_use_agent): Add 'self' argument.
10873 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10877 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10878 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10879 (target_traceframe_info): Add argument.
10880 * target.c (update_current_target): Update.
10881 * remote.c (remote_traceframe_info): Add 'self' argument.
10882 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10886 * target.h (target_static_tracepoint_markers_by_strid): Add
10888 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10890 * target.c (update_current_target): Update.
10891 * remote.c (struct target_ops)
10892 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10893 * linux-nat.c (struct target_ops)
10894 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10898 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10900 (target_static_tracepoint_marker_at): Add argument.
10901 * target.c (update_current_target): Update.
10902 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10908 (target_set_permissions): Add argument.
10909 * target.c (update_current_target): Update.
10910 * remote.c (remote_set_permissions): Add 'self' argument.
10911 (remote_start_remote): Update.
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10915 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10916 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10917 (target_get_tib_address): Add argument.
10918 * target.c (update_current_target): Update.
10919 * remote.c (remote_get_tib_address): Add 'self' argument.
10921 2014-02-19 Tom Tromey <tromey@redhat.com>
10923 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10924 (target_set_trace_notes): Add argument.
10925 * target.c (update_current_target): Update.
10926 * remote.c (remote_set_trace_notes): Add 'self' argument.
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10930 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10932 (target_set_trace_buffer_size): Add argument.
10933 * target.c (update_current_target): Update.
10934 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10936 2014-02-19 Tom Tromey <tromey@redhat.com>
10938 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10940 (target_set_circular_trace_buffer): Add argument.
10941 * target.c (update_current_target): Update.
10942 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10945 2014-02-19 Tom Tromey <tromey@redhat.com>
10947 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10949 (target_set_disconnected_tracing): Add argument.
10950 * target.c (update_current_target): Update.
10951 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10953 2014-02-19 Tom Tromey <tromey@redhat.com>
10955 * target.h (struct target_ops)
10956 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10957 (target_get_min_fast_tracepoint_insn_len): Add argument.
10958 * target.c (update_current_target): Update.
10959 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10964 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10966 (target_get_raw_trace_data): Add argument.
10967 * target.c (update_current_target): Update.
10968 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10970 2014-02-19 Tom Tromey <tromey@redhat.com>
10972 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10974 (target_upload_trace_state_variables): Add argument.
10975 * target.c (update_current_target): Update.
10976 * remote.c (remote_upload_trace_state_variables): Add 'self'
10978 (remote_start_remote): Update.
10980 2014-02-19 Tom Tromey <tromey@redhat.com>
10982 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10984 (target_upload_tracepoints): Add argument.
10985 * target.c (update_current_target): Update.
10986 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10987 (remote_start_remote): Update.
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10991 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10992 (target_save_trace_data): Add argument.
10993 * target.c (update_current_target): Update.
10994 * remote.c (remote_save_trace_data): Add 'self' argument.
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10998 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11000 * target.h (struct target_ops)
11001 <to_get_trace_state_variable_value>: Add argument.
11002 (target_get_trace_state_variable_value): Add argument.
11003 * target.c (update_current_target): Update.
11004 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11006 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11008 2014-02-19 Tom Tromey <tromey@redhat.com>
11010 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11011 * target.h (struct target_ops) <to_trace_find>: Add argument.
11012 (target_trace_find): Add argument.
11013 * target.c (update_current_target): Update.
11014 * remote.c (remote_trace_find): Add 'self' argument.
11015 * ctf.c (ctf_trace_find): Add 'self' argument.
11017 2014-02-19 Tom Tromey <tromey@redhat.com>
11019 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11020 (target_trace_stop): Add argument.
11021 * target.c (update_current_target): Update.
11022 * remote.c (remote_trace_stop): Add 'self' argument.
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11026 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11027 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11029 (target_get_tracepoint_status): Add argument.
11030 * target.c (update_current_target): Update.
11031 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11033 2014-02-19 Tom Tromey <tromey@redhat.com>
11035 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11036 * target.h (struct target_ops) <to_get_trace_status>: Add
11038 (target_get_trace_status): Add argument.
11039 * target.c (update_current_target): Update.
11040 * remote.c (remote_get_trace_status): Add 'self' argument.
11041 (remote_start_remote, remote_can_download_tracepoint): Update.
11042 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11044 2014-02-19 Tom Tromey <tromey@redhat.com>
11046 * target.h (struct target_ops) <to_trace_start>: Add argument.
11047 (target_trace_start): Add argument.
11048 * target.c (update_current_target): Update.
11049 * remote.c (remote_trace_start): Add 'self' argument.
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11053 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11055 (target_trace_set_readonly_regions): Add argument.
11056 * target.c (update_current_target): Update.
11057 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11062 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11064 (target_disable_tracepoint): Add argument.
11065 * target.c (update_current_target): Update.
11066 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11068 2014-02-19 Tom Tromey <tromey@redhat.com>
11070 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11072 (target_enable_tracepoint): Add argument.
11073 * target.c (update_current_target): Update.
11074 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11078 * target.h (struct target_ops) <to_download_trace_state_variable>:
11080 (target_download_trace_state_variable): Add argument.
11081 * target.c (update_current_target): Update.
11082 * remote.c (remote_download_trace_state_variable): Add 'self'
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11087 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11089 (target_can_download_tracepoint): Add argument.
11090 * target.c (update_current_target): Update.
11091 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11095 * target.h (struct target_ops) <to_download_tracepoint>: Add
11097 (target_download_tracepoint): Add argument.
11098 * target.c (update_current_target): Update.
11099 * remote.c (remote_download_tracepoint): Add 'self' argument.
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11103 * target.h (struct target_ops) <to_trace_init>: Add argument.
11104 (target_trace_init): Add argument.
11105 * target.c (update_current_target): Update.
11106 * remote.c (remote_trace_init): Add 'self' argument.
11108 2014-02-19 Tom Tromey <tromey@redhat.com>
11110 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11111 * target.c (target_fileio_readlink): Add argument.
11112 * remote.c (remote_hostio_readlink): Add 'self' argument.
11113 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11117 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11118 * target.c (target_fileio_unlink): Add argument.
11119 * remote.c (remote_hostio_unlink): Add 'self' argument.
11120 (remote_file_delete): Update.
11121 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11125 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11126 * target.c (target_fileio_close): Add argument.
11127 * remote.c (remote_hostio_close): Add 'self' argument.
11128 (remote_hostio_close_cleanup): Update.
11129 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11131 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11135 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11136 * target.c (target_fileio_pread): Add argument.
11137 * remote.c (remote_hostio_pread): Add 'self' argument.
11138 (remote_bfd_iovec_pread, remote_file_get): Update.
11139 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11143 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11144 * target.c (target_fileio_pwrite): Add argument.
11145 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11146 (remote_file_put): Update.
11147 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11151 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11152 * target.c (target_fileio_open): Add argument.
11153 * remote.c (remote_hostio_open): Add 'self' argument.
11154 (remote_bfd_iovec_open): Add 'self' argument.
11155 (remote_file_put): Add 'self' argument.
11156 (remote_file_get): Add 'self' argument.
11157 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11159 2014-02-19 Tom Tromey <tromey@redhat.com>
11161 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11163 (target_can_run_breakpoint_commands): Add argument.
11164 * target.c (update_current_target): Update.
11165 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11167 (remote_insert_breakpoint): Add 'self' argument.
11168 (remote_insert_hw_breakpoint): Add 'self' argument.
11169 (remote_can_run_breakpoint_commands): Add 'self' argument.
11171 2014-02-19 Tom Tromey <tromey@redhat.com>
11173 * target.h (struct target_ops)
11174 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11175 (target_supports_evaluation_of_breakpoint_conditions): Add
11177 * target.c (update_current_target): Update.
11178 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11180 (remote_insert_breakpoint): Add 'self' argument.
11181 (remote_insert_hw_breakpoint): Add 'self' argument.
11182 (remote_supports_cond_breakpoints): Add 'self' argument.
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11186 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11188 (target_supports_string_tracing): Add argument.
11189 * target.c (update_current_target): Update.
11190 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11192 2014-02-19 Tom Tromey <tromey@redhat.com>
11194 * target.h (struct target_ops)
11195 <to_supports_disable_randomization>: Add argument.
11196 * target.c (find_default_supports_disable_randomization): Add
11198 (target_supports_disable_randomization): Add argument.
11199 (find_default_supports_disable_randomization): Add 'self'
11201 * remote.c (extended_remote_supports_disable_randomization): Add
11203 (remote_supports_disable_randomization): Add 'self' argument.
11204 (extended_remote_create_inferior): Update.
11205 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11210 * target.h (struct target_ops)
11211 <to_supports_enable_disable_tracepoint>: Add argument.
11212 (target_supports_enable_disable_tracepoint): Add argument.
11213 * target.c (update_current_target): Update.
11214 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11217 2014-02-19 Tom Tromey <tromey@redhat.com>
11219 * target.h (struct target_ops) <to_supports_multi_process>: Add
11221 (target_supports_multi_process): Add argument.
11222 * target.c (update_current_target): Update.
11223 * remote.c (remote_supports_multi_process): Add 'self' argument.
11224 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11226 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11231 * target.h (struct target_ops) <to_execution_direction>: Add
11233 (target_execution_direction): Add argument.
11234 * target.c (default_execution_direction): Add 'self' argument.
11235 * record-full.c (record_full_execution_direction): Add 'self'
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11242 (target_can_execute_reverse): Add argument.
11243 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11244 * record-full.c (record_full_can_execute_reverse): Add 'self'
11246 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11251 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11252 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11254 (target_get_ada_task_ptid): Add argument.
11255 * target.c (update_current_target): Update.
11256 (default_get_ada_task_ptid): Add 'self' argument.
11257 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11258 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11259 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11261 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11263 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11265 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11267 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11268 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11273 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11274 (target_goto_bookmark): Add argument.
11275 * target.c (dummy_goto_bookmark): Add 'self' argument.
11276 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11278 2014-02-19 Tom Tromey <tromey@redhat.com>
11280 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11281 (target_get_bookmark): Add argument.
11282 * target.c (dummy_get_bookmark): Add 'self' argument.
11283 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11285 2014-02-19 Tom Tromey <tromey@redhat.com>
11287 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11289 (target_make_corefile_notes): Add argument.
11290 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11291 * procfs.c (procfs_make_note_section): Add 'self' argument.
11292 (procfs_make_note_section): Add 'self' argument.
11293 (procfs_make_note_section): Add 'self' argument.
11294 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11296 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11297 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11298 * exec.c (exec_make_note_section): Add 'self' argument.
11299 (exec_make_note_section): Add 'self' argument.
11301 2014-02-19 Tom Tromey <tromey@redhat.com>
11303 * target.h (struct target_ops) <to_find_memory_regions>: Add
11305 (target_find_memory_regions): Add argument.
11306 * target.c (dummy_find_memory_regions): Add 'self' argument.
11307 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11308 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11309 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11310 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11311 * exec. (exec_do_find_memory_regions): New global.
11312 (exec_set_find_memory_regions): Rewrite.
11313 (exec_find_memory_regions): New function.
11314 (init_exec_ops): Use exec_find_memory_regions.
11316 2014-02-19 Tom Tromey <tromey@redhat.com>
11318 * target.h (struct target_ops) <to_supports_non_stop>: Add
11320 * target.c (find_default_supports_non_stop): Add argument.
11321 (target_supports_non_stop): Add argument.
11322 (find_default_supports_non_stop): Add 'self' argument.
11323 * remote.c (remote_supports_non_stop): Add 'self' argument.
11324 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11328 * target.h (struct target_ops) <to_log_command>: Add argument.
11329 (target_log_command): Add argument.
11330 * serial.h (serial_log_command): Add 'self' argument.
11331 * serial.c (serial_log_command): Add 'self' argument.
11333 2014-02-19 Tom Tromey <tromey@redhat.com>
11335 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11336 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11338 (target_pid_to_exec_file): Add argument.
11339 * target.c (debug_to_pid_to_exec_file): Add argument.
11340 (update_current_target): Update.
11341 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11342 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11343 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11344 (linux_handle_extended_wait): Update.
11345 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11346 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11347 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11348 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11350 2014-02-19 Tom Tromey <tromey@redhat.com>
11352 * target.h (struct target_ops) <to_rcmd>: Add argument.
11353 (target_rcmd): Add argument.
11354 * target.c (debug_to_rcmd): Add argument.
11355 (update_current_target, do_monitor_command): Update.
11356 * remote.c (remote_rcmd): Add 'self' argument.
11357 * monitor.c (monitor_rcmd): Add 'self' argument.
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11361 * windows-nat.c (windows_stop): Add 'self' argument.
11362 * target.h (struct target_ops) <to_stop>: Add argument.
11363 * target.c (target_stop): Add argument.
11364 (debug_to_stop): Add argument.
11365 (update_current_target): Update.
11366 * remote.c (remote_stop): Add 'self' argument.
11367 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11368 (gdbsim_cntrl_c): Update.
11369 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11370 * procfs.c (procfs_stop): Add 'self' argument.
11371 * nto-procfs.c (procfs_stop): Add 'self' argument.
11372 * monitor.c (monitor_stop): Add 'self' argument.
11373 (monitor_open): Update.
11374 * linux-nat.c (linux_nat_stop): Add argument.
11375 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11376 * gnu-nat.c (gnu_stop): Add 'self' argument.
11377 * darwin-nat.c (darwin_stop): Add 'self' argument.
11379 2014-02-19 Tom Tromey <tromey@redhat.com>
11381 * target.h (struct target_ops) <to_thread_name>: Add argument.
11382 * target.c (target_thread_name): Add argument.
11383 (update_current_target): Update.
11384 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11386 2014-02-19 Tom Tromey <tromey@redhat.com>
11388 * target.h (struct target_ops) <to_extra_thread_info>: Add
11390 (target_extra_thread_info): Add argument.
11391 * target.c (update_current_target): Update.
11392 * remote.c (remote_threads_extra_info): Add 'self' argument.
11393 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11395 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11396 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11397 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11399 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11401 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11403 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11406 2014-02-19 Tom Tromey <tromey@redhat.com>
11408 * target.h (struct target_ops) <to_program_signals>: Add argument.
11409 * target.c (target_program_signals): Add argument.
11410 * remote.c (remote_program_signals): Add 'self' argument.
11412 2014-02-19 Tom Tromey <tromey@redhat.com>
11414 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11415 * target.c (target_pass_signals): Add argument.
11416 * remote.c (remote_pass_signals): Add 'self' argument.
11417 (remote_start_remote): Update.
11418 * procfs.c (procfs_pass_signals): Add 'self' argument.
11419 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11420 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11421 (linux_nat_create_inferior, linux_nat_attach): Update.
11423 2014-02-19 Tom Tromey <tromey@redhat.com>
11425 * windows-nat.c (windows_can_run): Add 'self' argument.
11426 * target.h (struct target_ops) <to_can_run>: Add argument.
11427 (target_can_run): Add argument.
11428 * target.c (debug_to_can_run): Add argument.
11429 (update_current_target): Update.
11430 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11431 * inf-child.c (inf_child_can_run): Add 'self' argument.
11432 * go32-nat.c (go32_can_run): Add 'self' argument.
11434 2014-02-19 Tom Tromey <tromey@redhat.com>
11436 * target.h (struct target_ops) <to_has_exited>: Add argument.
11437 (target_has_exited): Add argument.
11438 * target.c (debug_to_has_exited): Add argument.
11439 (update_current_target): Update.
11441 2014-02-19 Tom Tromey <tromey@redhat.com>
11443 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11445 (target_set_syscall_catchpoint): Add argument.
11446 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11448 * target.c (update_current_target): Update.
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11452 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11454 (target_remove_exec_catchpoint): Add argument.
11455 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11456 (update_current_target): Update.
11457 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11460 2014-02-19 Tom Tromey <tromey@redhat.com>
11462 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11464 (target_insert_exec_catchpoint): Add argument.
11465 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11466 (update_current_target): Update.
11467 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11470 2014-02-19 Tom Tromey <tromey@redhat.com>
11472 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11474 (target_remove_vfork_catchpoint): Add argument.
11475 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11476 (update_current_target): Update.
11477 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11482 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11484 (target_insert_vfork_catchpoint): Add argument.
11485 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11486 (update_current_target): Update.
11487 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11490 2014-02-19 Tom Tromey <tromey@redhat.com>
11492 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11494 (target_remove_fork_catchpoint): Add argument.
11495 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11496 (update_current_target): Update.
11497 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11500 2014-02-19 Tom Tromey <tromey@redhat.com>
11502 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11504 (target_insert_fork_catchpoint): Add argument.
11505 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11506 (update_current_target): Update.
11507 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11512 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11514 (target_post_startup_inferior): Add argument.
11515 * target.c (debug_to_post_startup_inferior): Add argument.
11516 (update_current_target): Update.
11517 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11519 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11521 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11523 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11525 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11527 (super_post_startup_inferior): Likewise.
11528 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11530 (super_post_startup_inferior): Likewise.
11531 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11532 Add 'self' argument.
11533 (super_post_startup_inferior): Likewise.
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target.h (struct target_ops) <to_load>: Add argument.
11538 * target.c (target_load): Add argument.
11539 (debug_to_load): Add argument.
11540 (update_current_target): Update.
11541 * remote.c (remote_load): Add 'self' argument.
11542 * remote-sim.c (gdbsim_load): Add 'self' argument.
11543 * remote-mips.c (mips_load): Add 'self' argument.
11544 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11545 * monitor.c (monitor_load): Add 'self' argument.
11546 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11548 2014-02-19 Tom Tromey <tromey@redhat.com>
11550 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11551 (target_terminal_info): Add argument.
11552 * target.c (debug_to_terminal_info): Add argument.
11553 (default_terminal_info): Likewise.
11554 * inflow.c (child_terminal_info): Add 'self' argument.
11555 * inferior.h (child_terminal_info): Add 'self' argument.
11556 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11558 2014-02-19 Tom Tromey <tromey@redhat.com>
11560 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11562 (target_terminal_save_ours): Add argument.
11563 * target.c (debug_to_terminal_save_ours): Add argument.
11564 (update_current_target): Update.
11565 * inflow.c (terminal_save_ours): Add 'self' argument.
11566 * inferior.h (terminal_save_ours): Add 'self' argument.
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11570 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11571 (target_terminal_ours): Add argument.
11572 * target.c (debug_to_terminal_ours): Add argument.
11573 (update_current_target): Update.
11574 * remote.c (remote_terminal_ours): Add 'self' argument.
11575 (remote_close): Update.
11576 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11577 * inflow.c (terminal_ours): Add 'self' argument.
11578 * inferior.h (terminal_ours): Add 'self' argument.
11579 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11581 2014-02-19 Pedro Alves <palves@redhat.com>
11582 Tom Tromey <tromey@redhat.com>
11584 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11586 (target_terminal_ours_for_output): Add argument.
11587 * target.c (debug_to_terminal_ours_for_output): Add argument.
11588 (update_current_target): Update.
11589 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11590 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11591 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11593 2014-02-19 Tom Tromey <tromey@redhat.com>
11595 * target.h (struct target_ops) <to_terminal_inferior>: Add
11597 * target.c (target_terminal_inferior): Add argument.
11598 (update_current_target): Update.
11599 * remote.c (remote_terminal_inferior): Add 'self' argument.
11600 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11601 * inflow.c (terminal_inferior): Add 'self' argument.
11602 * inferior.h (terminal_inferior): Add 'self' argument.
11603 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11604 (go32_terminal_inferior): Add 'self' argument.
11606 2014-02-19 Tom Tromey <tromey@redhat.com>
11608 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11609 (target_terminal_init): Add argument.
11610 * target.c (debug_to_terminal_init): Add argument.
11611 (update_current_target): Update.
11612 * inflow.c (terminal_init_inferior): Add 'self' argument.
11613 * inferior.h (terminal_init_inferior): Add 'self' argument.
11614 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11615 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11619 * target.h (struct target_ops)
11620 <to_can_accel_watchpoint_condition>: Add argument.
11621 (target_can_accel_watchpoint_condition): Add argument.
11622 * target.c (debug_to_can_accel_watchpoint_condition): Add
11624 (update_current_target): Update.
11625 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11628 2014-02-19 Tom Tromey <tromey@redhat.com>
11630 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11632 (target_region_ok_for_hw_watchpoint): Add argument.
11633 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11634 (default_region_ok_for_hw_watchpoint): Add argument.
11635 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11636 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11638 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11640 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11642 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11644 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11646 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11648 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11649 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11651 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11652 Add 'self' argument.
11654 2014-02-19 Tom Tromey <tromey@redhat.com>
11656 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11658 (target_insert_watchpoint): Add argument.
11659 * target.c (debug_to_insert_watchpoint): Add argument.
11660 (update_current_target): Update.
11661 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11662 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11663 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11664 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11665 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11666 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11668 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11669 (procfs_insert_hw_watchpoint): Add 'self' argument.
11670 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11672 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11674 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11676 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11677 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11679 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11684 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11686 (target_remove_watchpoint): Add argument.
11687 * target.c (debug_to_remove_watchpoint): Add argument.
11688 (update_current_target): Update.
11689 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11690 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11691 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11692 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11693 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11694 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11696 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11697 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11699 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11701 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11703 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11704 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11706 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11709 2014-02-19 Tom Tromey <tromey@redhat.com>
11711 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11713 (target_remove_hw_breakpoint): Add argument.
11714 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11715 (update_current_target): Update.
11716 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11717 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11719 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11720 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11722 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11725 2014-02-19 Tom Tromey <tromey@redhat.com>
11727 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11729 (target_insert_hw_breakpoint): Add argument.
11730 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11731 (update_current_target): Update.
11732 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11733 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11735 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11736 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11737 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11739 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11742 2014-02-19 Tom Tromey <tromey@redhat.com>
11744 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11746 (target_can_use_hardware_watchpoint): Add argument.
11747 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11748 (update_current_target): Update.
11749 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11751 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11753 * remote.c (remote_check_watch_resources): Add 'self' argument.
11754 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11755 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11757 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11758 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11760 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11762 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11764 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11766 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11768 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11770 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11771 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11773 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11776 2014-02-19 Tom Tromey <tromey@redhat.com>
11778 * target.h (struct target_ops) <to_post_attach>: Add argument.
11779 (target_post_attach): Add argument.
11780 * target.c (debug_to_post_attach): Add argument.
11781 (update_current_target): Update.
11782 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11783 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11784 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11785 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11786 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11788 2014-02-19 Tom Tromey <tromey@redhat.com>
11790 * windows-nat.c (windows_close): Add 'self' argument.
11791 * tracepoint.c (tfile_close): Add 'self' argument.
11792 * target.h (struct target_ops) <to_close>: Add argument.
11793 * target.c (target_close): Add argument.
11794 (update_current_target): Update.
11795 * remote.c (remote_close): Add 'self' argument.
11796 * remote-sim.c (gdbsim_close): Add 'self' argument.
11797 * remote-mips.c (mips_close): Add 'self' argument.
11798 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11799 * record-full.c (record_full_close): Add 'self' argument.
11800 * record-btrace.c (record_btrace_close): Add 'self' argument.
11801 * monitor.h (monitor_close): Add 'self' argument.
11802 * monitor.c (monitor_close): Add 'self' argument.
11803 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11804 * linux-nat.c (linux_nat_close): Add argument.
11805 * go32-nat.c (go32_close): Add 'self' argument.
11806 * exec.c (exec_close_1): Add 'self' argument.
11807 * ctf.c (ctf_close): Add 'self' argument.
11808 * corelow.c (core_close): Add 'self' argument.
11809 (core_close_cleanup): Update.
11810 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11811 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11813 2014-02-19 Tom Tromey <tromey@redhat.com>
11815 * remote.c (remote_load): New function.
11816 (init_remote_ops): Use it.
11818 2014-02-19 Tom Tromey <tromey@redhat.com>
11820 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11822 * common/linux-btrace.h (linux_supports_btrace): Update.
11823 * remote.c (remote_supports_btrace): Add "self" argument.
11824 * target-delegates.c: Rebuild.
11825 * target.c (target_supports_btrace): Remove.
11826 * target.h (struct target_ops) <to_supports_btrace>: Add
11827 target_ops argument.
11828 (target_supports_btrace): New define.
11830 2014-02-19 Tom Tromey <tromey@redhat.com>
11832 * record-full.c (record_full_beneath_to_resume_ops)
11833 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11834 (record_full_beneath_to_wait)
11835 (record_full_beneath_to_store_registers_ops)
11836 (record_full_beneath_to_store_registers)
11837 (record_full_beneath_to_xfer_partial_ops)
11838 (record_full_beneath_to_xfer_partial)
11839 (record_full_beneath_to_insert_breakpoint_ops)
11840 (record_full_beneath_to_insert_breakpoint)
11841 (record_full_beneath_to_remove_breakpoint_ops)
11842 (record_full_beneath_to_remove_breakpoint)
11843 (record_full_beneath_to_stopped_by_watchpoint)
11844 (record_full_beneath_to_stopped_data_address)
11845 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11846 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11847 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11848 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11849 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11850 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11851 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11852 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11853 (record_full_resume, record_full_wait_1)
11854 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11855 (record_full_store_registers, record_full_xfer_partial)
11856 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11857 (record_full_async, record_full_core_xfer_partial): Use target
11859 * target-delegates.c: Rebuild.
11860 * target.c (current_xfer_partial): Remove.
11861 (update_current_target): Do not INHERIT or de_fault
11862 to_insert_breakpoint, to_remove_breakpoint,
11863 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11864 to_is_async_p, to_async. Do not set to_xfer_partial field.
11865 (default_xfer_partial): Simplify.
11866 (current_xfer_partial): Remove.
11867 (target_wait, target_resume): Simplify.
11868 (find_default_can_async_p, find_default_is_async_p): Update.
11869 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11870 to_xfer_partial, to_stopped_by_watchpoint,
11871 to_stopped_data_address.
11872 (target_store_registers): Simplify.
11873 (forward_target_remove_breakpoint)
11874 (forward_target_insert_breakpoint): Remove.
11875 (target_remove_breakpoint, target_insert_breakpoint)
11876 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11877 * target.h (struct target_ops) <to_resume, to_wait,
11878 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11879 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11880 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11882 (forward_target_remove_breakpoint)
11883 (forward_target_insert_breakpoint): Remove.
11884 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11886 (record_btrace_insert_breakpoint): Delegate directly.
11888 2014-02-19 Tom Tromey <tromey@redhat.com>
11891 * target-delegates.c: New file.
11892 * target.c: Include target-delegates.c.
11893 (init_dummy_target): Call install_dummy_methods.
11894 (complete_target_initialization): Call install_delegators.
11895 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11896 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11897 * make-target-delegates: New file.
11899 2014-02-19 Tom Tromey <tromey@redhat.com>
11901 * record.c (find_record_target): Use find_target_at.
11902 * target.c (find_target_at): New function.
11903 * target.h (find_target_at): Declare.
11905 2014-02-19 Tom Tromey <tromey@redhat.com>
11907 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11908 Add 'ops' argument.
11909 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11911 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11912 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11914 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11916 * linux-nat.c (save_sigtrap): Update.
11917 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11918 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11919 (linux_nat_close): Update.
11920 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11922 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11924 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11925 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11926 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11927 (tmp_to_async): Add 'ops' argument.
11928 (record_full_stopped_by_watchpoint, record_full_async)
11929 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11931 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11932 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11933 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11934 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11935 (remote_is_async_p, remote_async): Add 'ops' argument.
11936 (remote_stopped_data_address): Update.
11937 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11938 * target.c (update_current_target)
11939 (find_default_can_async_p, find_default_is_async_p): Update.
11940 (init_dummy_target): Update.
11941 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11942 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11943 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11944 (target_can_async_p, target_is_async_p, target_async)
11945 (target_stopped_by_watchpoint): Update.
11947 2014-02-19 Yao Qi <yao@codesourcery.com>
11950 * gdbarch.sh: Remove startup_gdbarch.
11951 * gdbarch.c: Regenerated.
11952 * gdbarch.h: Likewise.
11954 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11956 * rl78-tdep.c (rl78_g10_register_name): New function.
11957 (rl78_return_value): Add g10 support.
11958 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11961 2014-02-17 Doug Evans <xdje42@gmail.com>
11963 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11964 (SUBDIR_GUILE_SRCS): Ditto.
11965 (scm-gsmob.o): Ditto.
11967 2014-02-17 Yao Qi <yao@codesourcery.com>
11969 * gnu-nat.c (ILL_RPC): Declare defined function.
11971 2014-02-17 Yao Qi <yao@codesourcery.com>
11973 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11974 mach_msg_type_number_t.
11975 (gnu_write_inferior): Likewise.
11977 2014-02-17 Yao Qi <yao@codesourcery.com>
11979 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11981 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11982 (inf_validate_procs, inf_signal): Likewise.
11983 (S_exception_raise_request): Likewise.
11984 (do_mach_notify_dead_name): Likewise.
11985 (steal_exc_port): Likewise.
11986 (gnu_read_inferior): Change 'copy_count''s type to
11987 mach_msg_type_number_t.
11988 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11991 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11993 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11994 flag. Adjust all users; in particular...
11995 (gnu_wait): ..., don't decrement its value in here...
11996 (gnu_create_inferior): ..., and instead set the flag in here,
11997 around the startup_inferior call, and call that one with
11998 START_INFERIOR_TRAPS_EXPECTED.
12000 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12001 (ILL_RPC): ... new macro.
12002 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12003 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12004 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12005 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12006 functions with ILL_RPC macro.
12007 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12008 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12009 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12010 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12011 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12012 (S_proc_getlogin_reply, S_proc_getsid_reply)
12013 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12014 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12015 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12016 (S_proc_getnports_reply, S_proc_is_important_reply)
12017 (S_proc_get_code_reply): New stub functions, generated with
12020 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12021 collected the type check structures.
12023 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12025 2014-02-14 Doug Evans <dje@google.com>
12027 * target.c (target_write_partial): Fix result type.
12029 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12031 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12032 the proper offsets to access fpregset_t.
12034 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12036 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12037 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12038 * h8300-tdep.c (setmachinelist): Remove global.
12039 * hppa-tdep.c (hppa_sigtramp): Remove global.
12040 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12041 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12042 * ravenscar-thread.c (update_target_observer): Remove global.
12043 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12045 2014-02-12 Tom Tromey <tromey@redhat.com>
12047 * common/rsp-low.c: Update comments.
12048 * common/rsp-low.h: Update comments.
12050 2014-02-12 Tom Tromey <tromey@redhat.com>
12052 * common/rsp-low.c (convert_ascii_to_int): Remove.
12053 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12055 2014-02-12 Tom Tromey <tromey@redhat.com>
12057 * common/rsp-low.h (unhexify): Don't declare.
12058 * common/rsp-low.c (unhexify): Remove.
12060 2014-02-12 Tom Tromey <tromey@redhat.com>
12062 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12063 * common/rsp-low.c (convert_int_to_ascii): Remove.
12065 2014-02-12 Tom Tromey <tromey@redhat.com>
12067 * common/rsp-low.h (hexify): Don't declare.
12068 * common/rsp-low.c (hexify): Remove.
12070 2014-02-12 Tom Tromey <tromey@redhat.com>
12072 * common/rsp-low.c (hexify): Never take strlen of argument.
12074 2014-02-12 Tom Tromey <tromey@redhat.com>
12076 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12077 * remote.c (extended_remote_run, remote_rcmd)
12078 (remote_download_trace_state_variable, remote_save_trace_data)
12079 (remote_set_trace_notes): Update.
12080 * tracepoint.c (encode_source_string, tfile_write_status)
12081 (tfile_write_uploaded_tsv): Update.
12083 2014-02-12 Tom Tromey <tromey@redhat.com>
12085 * tracepoint.c: Include rsp-low.h.
12086 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12087 * remote.c: Include rsp-low.h.
12088 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12089 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12090 (remote_unescape_input): Move to common/rsp-low.c.
12091 * common/rsp-low.h: New file.
12092 * common/rsp-low.c: New file.
12093 * Makefile.in (SFILES): Add common/rsp-low.c.
12094 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12095 (COMMON_OBS): Add rsp-low.o.
12096 (rsp-low.o): New target.
12098 2014-02-12 Tom Tromey <tromey@redhat.com>
12100 * utils.h: Include print-utils.h.
12101 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12102 (int_string, core_addr_to_string, core_addr_to_string_nz)
12103 (hex_string, hex_string_custom): Don't declare.
12104 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12105 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12106 (hex_string_custom, int_string, core_addr_to_string)
12107 (core_addr_to_string_nz, host_address_to_string): Move to
12108 common/print-utils.c.
12109 * common/print-utils.h: New file.
12110 * common/print-utils.c: New file
12111 * Makefile.in (SFILES): Add common/print-utils.c.
12112 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12113 (COMMON_OBS): Add print-utils.o.
12114 (print-utils.o): New target.
12116 2014-02-12 Tom Tromey <tromey@redhat.com>
12118 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12120 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12122 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12124 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12126 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12127 if a PT_IO ptrace request returns sucessfully but indicates that 0
12128 bytes were transferred.
12130 2014-02-12 Pedro Alves <palves@redhat.com>
12131 Kevin Buettner <kevinb@redhat.com>
12133 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12134 TYPE_INSTANCE_FLAG_CODE_SPACE.
12136 2014-02-12 Pedro Alves <palves@redhat.com>
12138 * h8300-tdep.c (pseudo_from_raw_register)
12139 (raw_from_pseudo_register): New functions.
12140 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12143 2014-02-12 Pedro Alves <palves@redhat.com>
12145 * h8300-tdep.c (h8300_register_sim_regno): New function.
12146 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12147 gdbarch_register_sim_regno hook.
12149 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12151 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12153 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12155 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12157 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12159 * obsd-tdep.h (obsd_init_abi): New prototype.
12160 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12161 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12162 (obsd_init_abi): New functions.
12163 * i386obsd-tdep.c: Include "obsd-tdep.h".
12164 (i386obsd_init_abi): Call obsd_init_abi.
12165 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12166 (amd64obsd_init_abi): Call obsd_init_abi.
12167 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12168 obsd-tdep.c to gdb_target_obs.
12170 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12172 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12173 double float arguments to 16-byte in the argument slots.
12175 2014-02-11 Doug Evans <xdje42@gmail.com>
12177 * configure.ac: Don't crash if pkg-config is not found and guile
12178 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12180 * configure: Regenerate.
12182 2014-02-11 Yao Qi <yao@codesourcery.com>
12184 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12185 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12186 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12187 * gnu-nat.c (gnu_xfer_memory): Likewise.
12188 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12189 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12190 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12191 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12193 2014-02-11 Yao Qi <yao@codesourcery.com>
12195 * target.h (enum target_xfer_error): Rename to ...
12196 (enum target_xfer_status): ... it. New. All users updated.
12197 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12199 (TARGET_XFER_STATUS_ERROR_P): New macro.
12200 (target_xfer_error_to_string): Remove declaration.
12201 (target_xfer_status_to_string): Declare.
12202 (target_xfer_partial_ftype): Adjust it.
12203 (struct target_ops) <to_xfer_partial>: Return
12204 target_xfer_status. Add argument xfered_len. Update
12206 * target.c (target_xfer_error_to_string): Rename to ...
12207 (target_xfer_status_to_string): ... it. New. All callers
12209 (target_read_live_memory): Likewise. Call target_xfer_partial
12210 instead of target_read.
12211 (memory_xfer_live_readonly_partial): Return
12212 target_xfer_status. Add argument xfered_len.
12213 (raw_memory_xfer_partial): Likewise.
12214 (memory_xfer_partial_1): Likewise.
12215 (memory_xfer_partial): Likewise.
12216 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12217 properly. Update debug message.
12218 (default_xfer_partial, current_xfer_partial): Likewise.
12219 (target_write_partial): Likewise.
12220 (target_read_partial): Likewise. All callers updated.
12221 (read_whatever_is_readable): Likewise.
12222 (target_write_with_progress): Likewise.
12223 (target_read_alloc_1): Likewise.
12225 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12226 * auxv.c (procfs_xfer_auxv): Likewise.
12227 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12228 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12229 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12230 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12231 * corefile.c (read_memory): Adjust.
12232 * corelow.c (core_xfer_partial): Likewise.
12233 * ctf.c (ctf_xfer_partial): Likewise.
12234 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12236 (darwin_xfer_partial): Likewise.
12237 * exec.c (section_table_xfer_memory_partial): Likewise. All
12239 (exec_xfer_partial): Likewise.
12240 * exec.h (section_table_xfer_memory_partial): Update
12242 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12244 (gnu_xfer_partial): Likewise.
12245 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12246 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12247 (ia64_hpux_xfer_solib_got): Likewise.
12248 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12249 type of 'partial_len' to ULONGEST.
12250 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12251 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12252 (linux_nat_xfer_partial): Likewise.
12253 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12254 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12255 * monitor.c (monitor_xfer_memory): Likewise.
12256 (monitor_xfer_partial): Likewise.
12257 * procfs.c (procfs_xfer_partial): Likewise.
12258 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12259 * record-full.c (record_full_xfer_partial): Likewise.
12260 (record_full_core_xfer_partial): Likewise.
12261 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12262 (gdbsim_xfer_partial): Likewise.
12263 * remote.c (remote_write_bytes_aux): Likewise. All callers
12265 (remote_write_bytes, remote_read_bytes): Likewise. All
12267 (remote_flash_erase): Likewise. All callers updated.
12268 (remote_write_qxfer): Likewise. All callers updated.
12269 (remote_read_qxfer): Likewise. All callers updated.
12270 (remote_xfer_partial): Likewise.
12271 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12272 (rs6000_xfer_shared_libraries): Likewise.
12273 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12274 (sol_thread_xfer_partial): Likewise.
12275 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12276 (sparc_xfer_partial): Likewise.
12277 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12279 (spu_xfer_partial): Likewise.
12280 * spu-multiarch.c (spu_xfer_partial): Likewise.
12281 * tracepoint.c (tfile_xfer_partial): Likewise.
12282 * windows-nat.c (windows_xfer_memory): Likewise.
12283 (windows_xfer_shared_libraries): Likewise.
12284 (windows_xfer_partial): Likewise.
12285 * valprint.c: Replace 'target_xfer_error' with
12286 'target_xfer_status' in comments.
12288 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12290 Checked in by Joel Brobecker <brobecker@adacore.com>.
12291 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12293 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12295 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12296 function parameters.
12298 2014-02-10 Will Newton <will.newton@linaro.org>
12300 * elfread.c (elf_rel_plt_read): Look for a .got section if
12301 looking up .got.plt fails.
12302 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12303 on address passed to elf_gnu_ifunc_record_cache.
12304 (elf_gnu_ifunc_resolve_addr): Likewise.
12305 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12307 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12309 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12310 (X_RETTURN): New macro.
12311 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12313 * sparc64-tdep.c (sparc64_init_abi): Hook
12314 sparc_in_function_epilogue_p.
12316 2014-02-10 Gary Benson <gbenson@redhat.com>
12318 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12319 Rename name_matcher to symbol_matcher.
12321 2014-02-10 Gary Benson <gbenson@redhat.com>
12323 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12324 Use expand_symtabs_file_matcher_ftype and
12325 expand_symtabs_symbol_matcher_ftype.
12327 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12329 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12330 (struct ada_symbol_cache): New.
12331 (ada_free_symbol_cache): Forward declare.
12332 (struct ada_pspace_data): New.
12333 (ada_pspace_data_handle): New static global.
12334 (get_ada_pspace_data, ada_pspace_data_cleanup)
12335 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12336 (cache_space, cache): Delete, now folded inside struct
12338 (ada_get_symbol_cache): New function.
12339 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12341 (_initialize_ada_language): Remove initialization of cache_space.
12342 Move call to observer_attach_inferior_exit up, grouping it
12343 with the other observer registrations inside this function.
12344 Rename command to be more general. Add call to
12345 register_program_space_data_with_cleanup.
12347 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12349 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12350 ada_new_objfile_observer.
12351 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12352 (_initialize_tasks): Update uses of ada_new_objfile_observer
12353 and ada_tasks_normal_stop_observer.
12355 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12357 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12358 returned by the 'Length attribute to integer.
12360 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12362 * ada-lang.c (_initialize_ada_language): Initialize
12363 cache_space obstack.
12365 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12367 * ada-lang.c (HASH_SIZE): New macro.
12368 (struct cache_entry): New type.
12369 (cache_space, cache): New static globals.
12370 (ada_clear_symbol_cache, find_entry): New functions.
12371 (lookup_cached_symbol, cache_symbol): Implement.
12372 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12373 (_initialize_ada_language): Attach ada_new_objfile_observer
12374 and ada_free_objfile_observer.
12376 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12378 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12379 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12380 struct block * parameter.
12381 (ada_lookup_symbol_list_worker): Constify local variable "block".
12382 Remove cast which is no longer necessary.
12384 2014-02-10 Doug Evans <xdje42@gmail.com>
12386 Add Guile as an extension language.
12387 * NEWS: Mention Guile scripting.
12388 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12389 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12390 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12391 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12392 (CLIBS): Add GUILE_LIBS.
12393 (install-guile): New rule.
12394 (guile.o): New rule.
12395 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12396 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12397 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12398 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12399 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12400 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12401 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12402 * configure.ac: New option --with-guile.
12403 * configure: Regenerate.
12404 * config.in: Regenerate.
12405 * auto-load.c: Remove #include "python/python.h". Add #include
12406 "gdb/section-scripts.h".
12407 (source_section_scripts): Handle Guile scripts.
12408 (_initialize_auto_load): Add name of Guile objfile script to
12409 scripts-directory help text.
12410 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12411 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12412 (struct breakpoint): New member scm_bp_object.
12413 * defs.h (enum command_control_type): New value guile_control.
12414 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12416 (show_user): Update comment.
12417 (_initialize_cli_cmds): Update help text for "show user". Update help
12418 text for max-user-call-depth.
12419 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12421 (multi_line_command_p): Add guile_control.
12422 (print_command_lines): Handle guile_control.
12423 (execute_control_command, recurse_read_control_structure): Ditto.
12424 (process_next_line): Recognize "guile" commands.
12425 * disasm.c (gdb_disassemble_info): Make non-static.
12426 * disasm.h: #include "dis-asm.h".
12427 (struct gdbarch): Add forward decl.
12428 (gdb_disassemble_info): Declare.
12429 * extension.c: #include "guile/guile.h".
12430 (extension_languages): Add guile.
12431 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12432 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12433 * gdbtypes.c (get_unsigned_type_max): New function.
12434 (get_signed_type_minmax): New function.
12435 * gdbtypes.h (get_unsigned_type_max): Declare.
12436 (get_signed_type_minmax): Declare.
12437 * guile/README: New file.
12438 * guile/guile-internal.h: New file.
12439 * guile/guile.c: New file.
12440 * guile/guile.h: New file.
12441 * guile/scm-arch.c: New file.
12442 * guile/scm-auto-load.c: New file.
12443 * guile/scm-block.c: New file.
12444 * guile/scm-breakpoint.c: New file.
12445 * guile/scm-disasm.c: New file.
12446 * guile/scm-exception.c: New file.
12447 * guile/scm-frame.c: New file.
12448 * guile/scm-gsmob.c: New file.
12449 * guile/scm-iterator.c: New file.
12450 * guile/scm-lazy-string.c: New file.
12451 * guile/scm-math.c: New file.
12452 * guile/scm-objfile.c: New file.
12453 * guile/scm-ports.c: New file.
12454 * guile/scm-pretty-print.c: New file.
12455 * guile/scm-safe-call.c: New file.
12456 * guile/scm-string.c: New file.
12457 * guile/scm-symbol.c: New file.
12458 * guile/scm-symtab.c: New file.
12459 * guile/scm-type.c: New file.
12460 * guile/scm-utils.c: New file.
12461 * guile/scm-value.c: New file.
12462 * guile/lib/gdb.scm: New file.
12463 * guile/lib/gdb/boot.scm: New file.
12464 * guile/lib/gdb/experimental.scm: New file.
12465 * guile/lib/gdb/init.scm: New file.
12466 * guile/lib/gdb/iterator.scm: New file.
12467 * guile/lib/gdb/printing.scm: New file.
12468 * guile/lib/gdb/types.scm: New file.
12469 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12470 (VPATH): Add $(GUILE_SRCDIR).
12471 (GUILE_DIR): New variable.
12472 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12473 (all): Add stamp-guile dependency.
12474 (stamp-guile): New rule.
12475 (clean-guile, install-guile, uninstall-guile): New rules.
12476 (install-only): Add install-guile dependency.
12477 (uninstall): Add uninstall-guile dependency.
12478 (clean): Add clean-guile dependency.
12480 2014-02-09 Doug Evans <xdje42@gmail.com>
12482 Revert this patch (which I approved, mea culpa).
12484 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12486 * Makefile.in (all-lib): Remove.
12487 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12489 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12491 Fix Python stack corruption.
12492 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12495 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12497 * Makefile.in (all-lib): Remove.
12498 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12500 2014-02-07 Doug Evans <dje@google.com>
12502 * extension-priv.h (extension_language_script_ops): Add comment.
12503 (extension_language_ops): Add comment.
12504 (active_ext_lang_state): Fix typo in comment.
12506 2014-02-07 Pedro Alves <palves@redhat.com>
12508 PR breakpoints/16292
12509 * infrun.c (handle_signal_stop) <signal arrives while stepping
12510 over a breakpoint>: Switch back to the stepping thread.
12512 2014-02-07 Yao Qi <yao@codesourcery.com>
12514 * target.c (target_xfer_partial): Return zero if LEN is zero.
12516 2014-02-07 Yao Qi <yao@codesourcery.com>
12518 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12519 (ld_so_xfer_auxv): Likewise.
12520 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12521 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12522 * corelow.c (core_xfer_partial): Likewise.
12523 * ctf.c (ctf_xfer_partial): Likewise.
12524 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12525 (darwin_xfer_partial): Likewise.
12526 * exec.c (exec_xfer_partial): Likewise.
12527 * gnu-nat.c (gnu_xfer_partial): Likewise.
12528 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12529 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12530 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12531 * linux-nat.c (linux_xfer_siginfo): Likewise.
12532 (linux_proc_xfer_spu): Likewise.
12533 * procfs.c (procfs_xfer_partial): Likewise.
12534 * record-full.c (record_full_xfer_partial): Likewise.
12535 (record_full_core_xfer_partial): Likewise.
12536 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12537 * remote.c (remote_write_qxfer): Likewise.
12538 (remote_write_qxfer, remote_read_qxfer): Likewise.
12539 (remote_xfer_partial): Likewise.
12540 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12541 (rs6000_xfer_shared_libraries): Likewise.
12542 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12543 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12544 (spu_xfer_partial): Likewise.
12545 * target.c (memory_xfer_partial_1): Likewise.
12546 * tracepoint.c (tfile_xfer_partial): Likewise.
12547 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12548 (windows_xfer_partial): Likewise.
12550 2014-02-07 Yao Qi <yao@codesourcery.com>
12552 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12554 (core_xfer_shared_libraries_aix): Likewise.
12555 * gdbarch.c, gdbarch.h: Regenerated.
12556 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12557 ULONGEST. Change 'len_avail' type to ULONGEST.
12558 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12559 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12561 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12563 2014-02-07 Yao Qi <yao@codesourcery.com>
12565 * corefile.c (memory_error): Get 'exception' from ERR and pass
12566 'exception' to throw_error.
12568 2014-02-06 Doug Evans <xdje42@gmail.com>
12570 * configure.ac (libpython checking): Remove all but python.o from
12571 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12572 * configure: Regenerate.
12574 * Makefile.in (SFILES): Add extension.c.
12575 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12576 (COMMON_OBS): Add extension.o.
12577 * extension.h: New file.
12578 * extension-priv.h: New file.
12579 * extension.c: New file.
12581 * python/python-internal.h: #include "extension.h".
12582 (gdbpy_auto_load_enabled): Declare.
12583 (gdbpy_apply_val_pretty_printer): Declare.
12584 (gdbpy_apply_frame_filter): Declare.
12585 (gdbpy_preserve_values): Declare.
12586 (gdbpy_breakpoint_cond_says_stop): Declare.
12587 (gdbpy_breakpoint_has_cond): Declare.
12588 (void source_python_script_for_objfile): Delete.
12589 * python/python.c: #include "extension-priv.h".
12590 Delete inclusion of "observer.h".
12591 (extension_language_python): Moved here and renamed from
12592 script_language_python in py-auto-load.c.
12593 Redefined to be of type extension_language_defn.
12594 (python_extension_script_ops): New global.
12595 (python_extension_ops): New global.
12596 (struct python_env): New member previous_active.
12597 (restore_python_env): Call restore_active_ext_lang.
12598 (ensure_python_env): Call set_active_ext_lang.
12599 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12601 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12603 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12605 (gdbpy_eval_from_control_command): Renamed from
12606 eval_python_from_control_command, made static. New arg extlang.
12607 (gdbpy_source_script) Renamed from source_python_script, made static.
12609 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12610 result to int. New arg extlang.
12611 (gdbpy_source_objfile_script): Renamed from
12612 source_python_script_for_objfile, made static. New arg extlang.
12613 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12614 static. New args extlang, extlang_printers. Change result type to
12616 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12617 static. New arg extlang. Rename arg printers to extlang_printers
12618 and change type to ext_lang_type_printers *.
12619 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12620 static. Replace argument arg with extlang, extlang_printers.
12621 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12622 (!HAVE_PYTHON, source_python_script): Delete.
12623 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12624 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12625 (!HAVE_PYTHON, start_type_printers): Delete.
12626 (!HAVE_PYTHON, apply_type_printers): Delete.
12627 (!HAVE_PYTHON, free_type_printers): Delete.
12628 (_initialize_python): Delete call to observer_attach_before_prompt.
12629 (finalize_python): Set/restore active extension language.
12630 (gdbpy_finish_initialization) Renamed from
12631 finish_python_initialization, made static. New arg extlang.
12632 (gdbpy_initialized): New function.
12633 * python/python.h: #include "extension.h". Delete #include
12634 "value.h", "mi/mi-cmds.h".
12635 (extension_language_python): Declare.
12636 (GDBPY_AUTO_FILE_NAME): Delete.
12637 (enum py_bt_status): Moved to extension.h and renamed to
12638 ext_lang_bt_status.
12639 (enum frame_filter_flags): Moved to extension.h.
12640 (enum py_frame_args): Moved to extension.h and renamed to
12641 ext_lang_frame_args.
12642 (finish_python_initialization): Delete.
12643 (eval_python_from_control_command): Delete.
12644 (source_python_script): Delete.
12645 (apply_val_pretty_printer): Delete.
12646 (apply_frame_filter): Delete.
12647 (preserve_python_values): Delete.
12648 (gdbpy_script_language_defn): Delete.
12649 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12650 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12652 * auto-load.c: #include "extension.h".
12653 (GDB_AUTO_FILE_NAME): Delete.
12654 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12655 (script_language_gdb): Delete, moved to extension.c and renamed to
12656 extension_language_gdb.
12657 (source_gdb_script_for_objfile): Delete.
12658 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12659 (loaded_script): Change type of language member to
12660 struct extension_language_defn *.
12661 (init_loaded_scripts_info): Initialize
12662 unsupported_script_warning_printed.
12663 (maybe_add_script): Make static. Change type of language arg to
12664 struct extension_language_defn *.
12665 (clear_section_scripts): Reset unsupported_script_warning_printed.
12666 (auto_load_objfile_script_1): Rewrite to use extension language API.
12667 (auto_load_objfile_script): Make public. Remove support-compiled-in
12668 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12669 (source_section_scripts): Rewrite to use extension language API.
12670 (load_auto_scripts_for_objfile): Rewrite to use
12671 auto_load_scripts_for_objfile.
12672 (collect_matching_scripts_data): Change type of language member to
12673 struct extension_language_defn *.
12674 (auto_load_info_scripts): Change type of language arg to
12675 struct extension_language_defn *.
12676 (unsupported_script_warning_print): New function.
12677 (script_not_found_warning_print): Make static.
12678 (_initialize_auto_load): Rewrite construction of scripts-directory
12680 * auto-load.h (struct objfile): Add forward decl.
12681 (struct script_language): Delete.
12682 (struct auto_load_pspace_info): Add forward decl.
12683 (struct extension_language_defn): Add forward decl.
12684 (maybe_add_script): Delete.
12685 (auto_load_objfile_script): Declare.
12686 (script_not_found_warning_print): Delete.
12687 (auto_load_info_scripts): Update prototype.
12688 (auto_load_gdb_scripts_enabled): Declare.
12689 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12690 auto_load_python_scripts_enabled and made public.
12691 (script_language_python): Delete, moved to python.c.
12692 (gdbpy_script_language_defn): Delete.
12693 (info_auto_load_python_scripts): Update to use
12694 extension_language_python.
12696 * breakpoint.c (condition_command): Replace call to
12697 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12698 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12699 with call to breakpoint_ext_lang_cond_says_stop.
12700 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12701 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12702 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12703 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12705 (local_setattro): Print name of extension language with existing
12708 * valprint.c (val_print, value_print): Update to call
12709 apply_ext_lang_val_pretty_printer.
12710 * cp-valprint.c (cp_print_value): Update call to
12711 apply_ext_lang_val_pretty_printer.
12712 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12713 (gdbpy_apply_val_pretty_printer): Renamed from
12714 apply_val_pretty_printer. New arg extlang.
12715 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12717 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12718 extension language API.
12719 * cli/cli-script.c (execute_control_command): Update to call
12720 eval_ext_lang_from_control_command.
12722 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12723 enum ext_lang_bt_status values. Update call to
12724 apply_ext_lang_frame_filter.
12725 (mi_cmd_stack_list_locals): Ditto.
12726 (mi_cmd_stack_list_args): Ditto.
12727 (mi_cmd_stack_list_variables): Ditto.
12728 * mi/mi-main.c: Delete #include "python/python-internal.h".
12729 Add #include "extension.h".
12730 (mi_cmd_list_features): Replace reference to python internal variable
12731 gdb_python_initialized with call to ext_lang_initialized_p.
12733 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12734 Update to use enum ext_lang_frame_args. Update to call
12735 apply_ext_lang_frame_filter.
12736 * python/py-framefilter.c (extract_sym): Update to use enum
12737 ext_lang_bt_status.
12738 (extract_value, py_print_type, py_print_value): Ditto.
12739 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12740 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12741 (py_print_frame): Ditto.
12742 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12743 New arg extlang. Update to use enum ext_lang_bt_status.
12745 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12746 finish_python_initialization. Replace with call to
12747 finish_ext_lang_initialization.
12749 * typeprint.c (do_free_global_table): Update to call
12750 free_ext_lang_type_printers.
12751 (create_global_typedef_table): Update to call
12752 start_ext_lang_type_printers.
12753 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12754 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12755 (type_print_options): Change type of global_printers from "void *"
12756 to "struct ext_lang_type_printers *".
12758 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12759 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12760 (gdbpy_preserve_values): Renamed from preserve_python_values.
12762 (!HAVE_PYTHON, preserve_python_values): Delete.
12764 * utils.c (quit_flag): Delete, moved to extension.c.
12765 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12768 * eval.c: Delete #include "python/python.h".
12769 * main.c: Delete #include "python/python.h".
12771 * defs.h: Update comment.
12773 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12777 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12779 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12782 2014-02-05 Yao Qi <yao@codesourcery.com>
12784 * remote.c (remote_pass_signals): Remove local 'buf' and use
12786 (remote_program_signals): Likewise.
12788 2014-02-05 Yao Qi <yao@codesourcery.com>
12790 * ctf.c: Include "inferior.h" and "gdbthread.h".
12791 (CTF_PID): A new macro.
12792 (ctf_open): Call inferior_appeared and add_thread_silent.
12793 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12794 (ctf_thread_alive): New function.
12795 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12797 2014-02-05 Yao Qi <yao@codesourcery.com>
12801 2013-05-24 Yao Qi <yao@codesourcery.com>
12803 * tracepoint.c (TFILE_PID): Remove.
12804 (tfile_open): Don't add thread and inferior.
12805 (tfile_close): Don't set 'inferior_ptid'. Don't call
12806 exit_inferior_silent.
12807 (tfile_thread_alive): Remove.
12808 (init_tfile_ops): Don't set field 'to_thread_alive' of
12811 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12813 * remote.c (remote_start_remote): Call remote_check_symbols even
12814 if only symbol-file (not file) has been given.
12816 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12818 * gdbarch.sh (skip_entrypoint): New callback.
12819 * gdbarch.c, gdbarch.h: Regenerate.
12820 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12821 * infrun.c (fill_in_stop_func): Likewise.
12822 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12823 (ppc_elfv2_elf_make_msymbol_special): New function.
12824 (ppc_elfv2_skip_entrypoint): Likewise.
12825 (ppc_linux_init_abi): Install them for ELFv2.
12827 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12829 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12830 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12831 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12832 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12833 structures returned in GPRs.
12835 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12837 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12838 offset to the stack parameter list for the ELFv2 ABI.
12840 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12842 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12843 set_gdbarch_convert_from_func_ptr_addr and
12844 set_gdbarch_elf_make_msymbol_special for ELFv1.
12845 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12846 function descriptors on ELFv1.
12847 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12848 set up r12 at function entry.
12850 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12852 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12853 (struct gdbarch_tdep): New member elf_abi.
12855 * rs6000-tdep.c: Include "elf/ppc64.h".
12856 (rs6000_gdbarch_init): Detect ELF ABI version.
12858 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12860 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12861 within a register pair holding a DFP 128-bit value on little-endian.
12862 (ppc64_sysv_abi_return_value_base): Likewise.
12863 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12864 (dfp_pseudo_register_write): Likewise.
12866 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12868 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12869 offset on little-endian when passing _Decimal32.
12870 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12872 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12874 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12875 of the overlapped FP register within the VSX register on little-
12877 (efpr_pseudo_register_write): Likewise.
12879 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12881 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12882 offset on little-endian when passing small structures.
12884 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12886 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12887 (struct ppc64_sysv_argpos): New data structure.
12888 (ppc64_sysv_abi_push_float): Remove.
12889 (ppc64_sysv_abi_push_val): New function.
12890 (ppc64_sysv_abi_push_integer): Likewise.
12891 (ppc64_sysv_abi_push_freg): Likewise.
12892 (ppc64_sysv_abi_push_vreg): Likewise.
12893 (ppc64_sysv_abi_push_param): Likewise.
12894 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12895 (ppc64_sysv_abi_return_value_base): New function.
12896 (ppc64_sysv_abi_return_value): Refactor to use it.
12898 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12900 * NEWS: Document new target powerpc64le-*-linux*.
12902 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12904 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12905 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12907 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12908 register set used in ELF core dumps. Add floating-point register set.
12910 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12912 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12913 dwarf2_to_gdb[] table using symbolic constants. Adjust
12914 penultimate entry from number representing the PC register
12915 to symbolic constant representing the MDR register. Add
12916 constant for the PC register to the end of the table.
12918 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12920 * bsd-kvm.c: Include <sys/param.h>
12922 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12924 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12926 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12928 * ada-lang.h (clear_ada_sym_cache): Delete.
12930 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12932 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12934 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12936 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12937 the sigreturn register save area only if the syscall is
12940 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12942 * valops.c (value_slice): Minor reformatting.
12944 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12946 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12948 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12950 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12951 New static globals.
12952 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12953 (ada_ignore_descriptive_types_p): New static global.
12954 (find_parallel_type_by_descriptive_type): Return immediately
12955 if ada_ignore_descriptive_types_p is set.
12956 (_initialize_ada_language): Register new commands "maintenance
12957 set ada", "maintenance show ada", "maintenance set ada
12958 ignore-descriptive-types" and "maintenance show ada
12959 ignore-descriptive-types".
12960 * NEWS: Add entry for new "maint ada set/show
12961 ignore-descriptive-types" commands.
12963 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12965 * record-btrace.c (record_btrace_close): Call btrace_teardown
12968 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12970 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12973 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12975 * ada-typeprint (type_is_full_subrange_of_target_type):
12977 (print_range): Add parameter bounds_prefered_p. If not set,
12978 try printing range types using the name of their base type.
12979 (print_range_type): Add parameter bounds_prefered_p.
12980 Use it in call to print_range.
12981 (print_array_type, ada_print_type): Update calls to print_range
12982 and print_range_type.
12984 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12986 * ada-typeprint.c (print_array_type, print_choices, print_range)
12987 (print_range_bound, print_dynamic_range_bound, print_range_type):
12988 Remove declaration.
12990 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12992 * ada-typeprint.c (print_range): Add missing empty line
12993 after local declaration.
12995 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12997 * ada-valprint.c (print_optional_low_bound): Get index_type's
12998 target type for as long as it is a TYPE_CODE_RANGE.
13000 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13002 * procfs.c (procfs_make_note_section): Remove assertion and
13003 associated comment.
13005 2014-01-24 Yao Qi <yao@codesourcery.com>
13007 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13008 * corelow.c (get_core_siginfo): Likewise.
13010 2014-01-24 Yao Qi <yao@codesourcery.com>
13012 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13013 ULONGEST. Don't check 'len' is negative.
13014 (remote_write_bytes): Change type of 'len' to ULONGEST.
13016 2014-01-23 Tom Tromey <tromey@redhat.com>
13019 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13020 Handle exception from frame.block.
13021 (FrameVars.fetch_frame_locals): Likewise.
13023 2014-01-23 Tom Tromey <tromey@redhat.com>
13026 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13027 on a NULL pointer. Move "goto error" to correct place.
13029 2014-01-23 Tom Tromey <tromey@redhat.com>
13032 * python/py-framefilter.c (apply_frame_filter): Call
13033 ensure_python_env after computing gdbarch.
13035 2014-01-23 Yao Qi <yao@codesourcery.com>
13037 * target.c (raw_memory_xfer_partial): Change argument type
13038 from void * to gdb_byte *.
13039 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13041 2014-01-22 Doug Evans <dje@google.com>
13043 New gdbserver option --debug-format=timestamp.
13044 * NEWS: Mention it.
13046 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13048 * syscalls/s390x-linux.xml: New file.
13049 * syscalls/s390-linux.xml: New file.
13050 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13051 (XML_SYSCALL_FILENAME_S390X): Likewise.
13052 (op_svc): New enum value for SVC opcode.
13053 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13054 (s390_linux_get_syscall_number): New function.
13055 (s390_gdbarch_init): Register '*get_syscall_number' and the
13056 syscall xml file name.
13057 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13058 "s390-linux.xml" and "s390x-linux.xml".
13059 * NEWS: Announce new feature.
13061 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13063 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13065 2014-01-22 Pedro Alves <palves@redhat.com>
13067 * xtensa-config.c: Include defs.h.
13069 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13071 * common/common-utils.h: Add "ARI:" comment beside __func__
13074 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13076 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13077 documentation a bit.
13079 2014-01-21 Roland McGrath <mcgrathr@google.com>
13081 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13082 * configure: Regenerate.
13083 * aclocal.m4: Regenerate.
13084 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13085 New substituted variables.
13086 (install-strip): New target.
13087 (INSTALL_SCRIPT): New substituted variable.
13088 (FLAGS_TO_PASS): Add it.
13089 (install-only): Use $(INSTALL_SCRIPT) rather than
13090 $(INSTALL_PROGRAM) for gcore.
13092 2014-01-20 Tom Tromey <tromey@redhat.com>
13094 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13097 2014-01-20 Tom Tromey <tromey@redhat.com>
13099 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13100 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13101 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13102 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13103 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13104 (struct cmd_list_element) <flags>: Remove.
13105 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13106 doc_allocated>: New fields.
13107 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13109 * maint.c (maintenance_do_deprecate): Update.
13110 * top.c (execute_command): Update.
13112 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13114 * xtensa-linux-nat.c: Include asm/ptrace.h.
13116 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13118 * Makefile.in (SFILES): Add d-support.c.
13119 (COMMON_OBS): Add d-support.o.
13120 * d-lang.h (d_parse_symbol): Add comment, now defined in
13122 * d-lang.c (parse_call_convention)
13123 (parse_attributes, parse_function_types)
13124 (parse_function_args, parse_type, parse_identifier)
13125 (call_convention_p, d_parse_symbol): Move functions to ...
13126 * d-support.c: ... New file.
13128 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13130 * d-lang.h (d_parse_symbol): Add declaration.
13131 * d-lang.c (extract_identifiers)
13132 (extract_type_info): Remove functions.
13133 (parse_call_convention, parse_attributes)
13134 (parse_function_types, parse_function_args)
13135 (parse_type, parse_identifier, call_convention_p)
13136 (d_parse_symbol): New functions.
13137 (d_demangle): Use d_parse_symbol to demangle D symbols.
13139 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13141 * d-lang.h (struct builtin_d_type): New data type.
13142 (builtin_d_type): Add declaration.
13143 * d-lang.c (d_language_arch_info, build_d_types)
13144 (builtin_d_type): New functions.
13145 (enum d_primitive_types): New data type.
13146 (d_language_defn): Change c_language_arch_info to
13147 d_language_arch_info.
13148 (d_type_data): New static variable.
13149 (_initialize_d_language): Initialize d_type_data.
13151 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13153 * d-lang.h (d_main_name): Add declaration.
13154 * d-lang.c (d_main_name): New function.
13155 * symtab.c (find_main_name): Add call to d_main_name.
13157 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13159 * d-lang.c (d_language_defn): Change macro_expansion_c to
13160 macro_expansion_no.
13162 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13164 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13166 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13168 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13169 gdb_exception" declaration.
13170 * remote.c (getpkt_or_notif_sane): Likewise.
13172 2014-01-17 Doug Evans <dje@google.com>
13174 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13175 function, contents of dirnames_to_char_ptr_vec_append moved here.
13176 (delim_string_to_char_ptr_vec): New function.
13177 (dirnames_to_char_ptr_vec_append): Rewrite.
13178 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13180 2014-01-17 Doug Evans <dje@google.com>
13182 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13184 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13185 #include "common-utils.h".
13186 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13187 * common/vec.h (VEC_ASSERT_PASS): Update.
13188 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13189 (MACH_CHECK_ERROR): Update.
13191 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13193 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13195 * gdbarch.h: Regenerate.
13197 2014-01-16 Tom Tromey <tromey@redhat.com>
13199 * value.c (struct value) <regnum>: Move earlier.
13201 2014-01-16 Tom Tromey <tromey@redhat.com>
13203 * remote.c (extended_remote_create_inferior): Rename from
13204 extended_remote_create_inferior_1. Add "ops" argument. Remove
13205 old implementation.
13207 2014-01-16 Pedro Alves <palves@redhat.com>
13209 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13210 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13213 2014-01-16 Doug Evans <dje@google.com>
13215 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13217 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13219 * btrace.h (btrace_thread_flag): New.
13220 (struct btrace_thread_info) <flags>: New.
13221 * record-btrace.c (record_btrace_resume_thread)
13222 (record_btrace_find_thread_to_move, btrace_step_no_history)
13223 (btrace_step_stopped, record_btrace_start_replaying)
13224 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13225 (record_btrace_find_resume_thread): New.
13226 (record_btrace_resume, record_btrace_wait): Extend.
13227 (record_btrace_can_execute_reverse): New.
13228 (record_btrace_open): Fail in non-stop mode.
13229 (record_btrace_set_replay): Split into this, ...
13230 (record_btrace_stop_replaying): ... this, ...
13231 (record_btrace_clear_histories): ... and this.
13232 (init_record_btrace_ops): Init to_can_execute_reverse.
13233 * NEWS: Announce it.
13235 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13237 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13238 (forward_target_decr_pc_after_break)
13239 (target_decr_pc_after_break): New.
13240 * target.c (forward_target_decr_pc_after_break)
13241 (target_decr_pc_after_break): New.
13242 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13243 instead of gdbarch_decr_pc_after_break.
13244 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13245 instead of gdbarch_decr_pc_after_break.
13246 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13247 instead of gdbarch_decr_pc_after_break.
13248 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13249 instead of gdbarch_decr_pc_after_break.
13250 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13251 instead of gdbarch_decr_pc_after_break.
13252 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13253 instead of gdbarch_decr_pc_after_break.
13255 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13257 * btrace.c: Include regcache.h.
13258 (btrace_add_pc): New.
13259 (btrace_enable): Call btrace_add_pc.
13260 (btrace_is_empty): New.
13261 * btrace.h (btrace_is_empty): New.
13262 * record-btrace.c (require_btrace, record_btrace_info): Call
13265 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13267 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13268 Support delta reads.
13269 (linux_disable_btrace): Change return type.
13270 * common/linux-btrace.h (linux_read_btrace): Change parameters
13271 and return type to allow error reporting. Update users.
13272 (linux_disable_btrace): Change return type. Update users.
13273 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13275 (btrace_error): New.
13276 (btrace_block) <begin>: Comment on BEGIN == 0.
13277 * btrace.c (btrace_compute_ftrace): Start from the end of
13279 (btrace_stitch_trace, btrace_clear_history): New.
13280 (btrace_fetch): Read delta trace, return if replaying.
13281 (btrace_clear): Move clear history code to btrace_clear_history.
13282 (parse_xml_btrace): Throw an error if parsing failed.
13283 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13284 and return type to allow error reporting.
13285 (target_read_btrace): Change parameters and return type to allow
13287 * target.c (target_read_btrace): Update.
13288 * remote.c (remote_read_btrace): Support delta reads. Pass
13290 * NEWS: Announce it.
13292 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13294 * record.h (record_btrace_frame_unwind)
13295 (record_btrace_tailcall_frame_unwind): New declarations.
13296 * dwarf2-frame: Include record.h
13297 (dwarf2_frame_cfa): Throw an error for btrace frames.
13298 * record-btrace.c: Include hashtab.h.
13299 (btrace_get_bfun_name): New.
13300 (btrace_call_history): Call btrace_get_bfun_name.
13301 (struct btrace_frame_cache): New.
13303 (bfcache_hash, bfcache_eq, bfcache_new): New.
13304 (btrace_get_frame_function): New.
13305 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13306 (record_btrace_frame_this_id): Compute own id.
13307 (record_btrace_frame_prev_register): Provide PC, throw_error
13308 for all other registers.
13309 (record_btrace_frame_sniffer): Detect btrace frames.
13310 (record_btrace_tailcall_frame_sniffer): New.
13311 (record_btrace_frame_dealloc_cache): New.
13312 (record_btrace_frame_unwind): Add new functions.
13313 (record_btrace_tailcall_frame_unwind): New.
13314 (_initialize_record_btrace): Allocate cache.
13315 * btrace.c (btrace_clear): Call reinit_frame_cache.
13316 * NEWS: Announce it.
13318 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13320 * record-btrace.c (record_btrace_set_replay)
13321 (record_btrace_goto_begin, record_btrace_goto_end)
13322 (record_btrace_goto): New.
13323 (init_record_btrace_ops): Initialize them.
13324 * NEWS: Announce it.
13326 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13328 * record-btrace.c (record_btrace_find_new_threads)
13329 (record_btrace_thread_alive): New.
13330 (init_record_btrace_ops): Initialize to_find_new_threads and
13333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13335 * record-btrace.c (record_btrace_resume): New.
13336 (record_btrace_wait): New.
13337 (init_record_btrace_ops): Initialize to_wait and to_resume.
13339 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13341 * record-btrace.c (record_btrace_xfer_partial)
13342 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13343 (record_btrace_allow_memory_access): New.
13344 (init_record_btrace_ops): Initialize new methods.
13345 * target.c (raw_memory_xfer_partial): Bail out if target reports
13346 that this memory is not available.
13348 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13350 * target.h (target_ops) <to_insert_breakpoint>
13351 <to_remove_breakpoint>: Add target_ops parameter.
13352 (forward_target_insert_breakpoint): New.
13353 (forward_target_remove_breakpoint): New.
13354 (memory_remove_breakpoint, memory_insert_breakpoint):
13355 Add target_ops parameter.
13356 * target.c (target_insert_breakpoint): Split into this and ...
13357 (forward_target_insert_breakpoint): ... this.
13358 (target_remove_breakpoint): Split into this and ...
13359 (forward_target_remove_breakpoint): ... this.
13360 (debug_to_insert_breakpoint): Add target_ops parameter.
13361 Call forward_target_insert_breakpoint.
13362 (debug_to_remove_breakpoint): Add target_ops parameter.
13363 Call forward_target_remove_breakpoint.
13364 (update_current_target): Do not inherit or default to_insert_breakpoint
13365 and to_remove_breakpoint.
13366 * corelow.c (ignore): Add target_ops parameter.
13367 * exec.c (ignore): Add target_ops parameter.
13368 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13369 Add target_ops parameter.
13370 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13371 Add target_ops parameter.
13372 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13373 Add target_ops parameter.
13374 * record-full.c (record_full_beneath_to_insert_breakpoint)
13375 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13376 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13377 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13378 (record_full_core_remove_breakpoint): Add target_ops parameter.
13380 (record_full_beneath_to_insert_breakpoint_ops)
13381 (record_full_beneath_to_remove_breakpoint_ops)
13382 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13383 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13384 tmp_to_remove_breakpoint_ops,
13385 record_full_beneath_to_insert_breakpoint_ops, and
13386 record_full_beneath_to_remove_breakpoint_ops.
13387 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13388 (m32r_remove_breakpoint): Add target_ops parameter.
13389 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13390 Add target_ops parameter.
13391 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13392 Add target_ops parameter.
13394 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13395 Markus Metzger <markus.t.metzger@intel.com>
13397 * record-btrace.c: Include frame-unwind.h.
13398 (record_btrace_frame_unwind_stop_reason)
13399 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13400 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13402 (init_record_btrace_ops): Install it.
13404 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13406 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13409 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13411 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13414 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13416 * frame-unwind.c: Include target.h.
13417 (frame_unwind_try_unwinder): New function with code from ...
13418 (frame_unwind_find_by_frame): ... here. New variable
13419 unwinder_from_target, call also target_get_unwinder)
13420 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13421 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13422 * target.h (struct target_ops): New fields to_get_unwinder and
13423 to_get_tailcall_unwinder.
13424 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13428 * record-btrace.c (record_btrace_fetch_registers)
13429 (record_btrace_store_registers)
13430 (record_btrace_to_prepare_to_store): New.
13431 (init_record_btrace_ops): Add the above.
13433 2014-01-16 Tom Tromey <tromey@redhat.com>
13435 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13436 * target.h (struct target_ops) <to_prepare_to_store>: Add
13438 (target_prepare_to_store): Add argument.
13439 * target.c (debug_to_prepare_to_store): Add argument.
13440 (update_current_target): Update.
13441 * remote.c (remote_prepare_to_store): Add 'self' argument.
13442 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13443 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13444 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13445 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13447 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13448 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13449 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13450 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13451 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13453 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13455 * btrace.h (replay) <replay>: New.
13456 (btrace_is_replaying): New.
13457 * btrace.c (btrace_clear): Free replay iterator.
13458 (btrace_is_replaying): New.
13459 * record-btrace.c (record_btrace_is_replaying): New.
13460 (record_btrace_info): Print insn number if replaying.
13461 (record_btrace_insn_history): Start at replay position.
13462 (record_btrace_call_history): Start at replay position.
13463 (init_record_btrace_ops): Init to_record_is_replaying.
13465 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13467 * record-btrace.c (record_btrace_insn_history_range): Include
13469 (record_btrace_insn_history_from): Adjust range.
13470 (record_btrace_call_history_range): Include
13472 (record_btrace_call_history_from): Adjust range.
13473 * NEWS: Announce changes.
13475 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13477 * record.h (enum record_print_flag)
13478 <record_print_indent_calls>: New.
13479 * record.c (get_call_history_modifiers): Recognize /c modifier.
13480 (_initialize_record): Document /c modifier.
13481 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13482 Reorder fields. Optionally indent the function name. Update
13484 * NEWS: Announce changes.
13486 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13488 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13490 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13492 * btrace.c (ftrace_new_function): Start counting at one.
13493 * record-btrace.c (record_btrace_info): Adjust number of calls
13495 * NEWS: Announce it.
13497 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13499 * record-btrace.c (btrace_call_history_insn_range): Print
13500 insn range as [begin, end].
13502 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13504 * btrace.h (struct btrace_func_link): New.
13505 (enum btrace_function_flag): New.
13506 (struct btrace_inst): Rename to ...
13507 (struct btrace_insn): ...this. Update all users.
13508 (struct btrace_func) <ibegin, iend>: Remove.
13509 (struct btrace_func_link): New.
13510 (struct btrace_func): Rename to ...
13511 (struct btrace_function): ...this. Update all users.
13512 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13513 (number, level, flags>: New.
13514 (struct btrace_insn_iterator): Rename to ...
13515 (struct btrace_insn_history): ...this.
13517 (struct btrace_insn_iterator, btrace_call_iterator): New.
13518 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13519 (struct btrace_target_info) <begin, end, level>
13520 <insn_history, call_history>: New.
13521 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13522 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13523 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13524 (btrace_call_number, btrace_call_begin, btrace_call_end)
13525 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13526 (btrace_find_function_by_number, btrace_set_insn_history)
13527 (btrace_set_call_history): New.
13528 * btrace.c (btrace_init_insn_iterator)
13529 (btrace_init_func_iterator, compute_itrace): Remove.
13530 (ftrace_print_function_name, ftrace_print_filename)
13531 (ftrace_skip_file): Change
13532 parameter to const.
13533 (ftrace_init_func): Remove.
13534 (ftrace_debug): Use new btrace_function fields.
13535 (ftrace_function_switched): Also consider gaining and
13536 losing symbol information).
13537 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13538 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13539 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13541 (ftrace_new_function): Move. Remove debug print.
13542 (ftrace_update_lines, ftrace_update_insns): New.
13543 (ftrace_update_function): Check for call, ret, and jump.
13544 (compute_ftrace): Renamed to ...
13545 (btrace_compute_ftrace): ...this. Rewritten to compute call
13547 (btrace_fetch, btrace_clear): Updated.
13548 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13549 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13550 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13551 (btrace_call_number, btrace_call_begin, btrace_call_end)
13552 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13553 (btrace_find_function_by_number, btrace_set_insn_history)
13554 (btrace_set_call_history): New.
13555 * record-btrace.c (require_btrace): Use new btrace thread
13557 (record_btrace_info, btrace_insn_history)
13558 (record_btrace_insn_history, record_btrace_insn_history_range):
13559 Use new btrace thread info fields and new iterator.
13560 (btrace_func_history_src_line): Rename to ...
13561 (btrace_call_history_src_line): ...this. Use new btrace
13562 thread info fields.
13563 (btrace_func_history): Rename to ...
13564 (btrace_call_history): ...this. Use new btrace thread info
13565 fields and new iterator.
13566 (record_btrace_call_history, record_btrace_call_history_range):
13567 Use new btrace thread info fields and new iterator.
13569 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13571 * frame.h (frame_id_build_unavailable_stack_special): New.
13572 * frame.c (frame_id_build_unavailable_stack_special): New.
13574 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13576 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13577 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13578 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13580 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13581 (i386_insn_is_jump, i386_jmp_p): New.
13582 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13583 insn_is_jump to gdbarch.
13584 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13585 * gdbarch.h: Regenerated.
13586 * gdbarch.c: Regenerated.
13587 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13588 (default_insn_is_jump): New.
13589 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13590 (default_insn_is_jump): New.
13592 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13594 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13596 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13597 (btrace_read_type) <btrace_read_new>: Change to ...
13598 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13600 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13602 * common/linux-btrace.c (linux_read_btrace): Free trace from
13603 previous iteration.
13605 2014-01-15 Doug Evans <dje@google.com>
13607 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13610 2014-01-15 Tom Tromey <tromey@redhat.com>
13612 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13613 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13614 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13615 (set_objfile_main_name): New function.
13616 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13617 language_of_main>: New fields.
13618 (set_objfile_main_name): Declare.
13619 * symtab.c (find_main_name): Loop over objfiles to find the main
13621 (set_main_name): Now static.
13622 (get_main_info): Add comment.
13623 * symtab.h (set_main_name): Don't declare.
13625 2014-01-15 Tom Tromey <tromey@redhat.com>
13627 * symtab.c (main_progspace_key): New global.
13628 (struct main_info): New.
13629 (name_of_main, language_of_main): Remove.
13630 (get_main_info, main_info_cleanup): New function.
13631 (set_main_name, main_name, main_language): Use get_main_info.
13632 (_initialize_symtab): Initialize main_progspace_key.
13634 2014-01-15 Tom Tromey <tromey@redhat.com>
13636 * dbxread.c (process_one_symbol): Update.
13637 * dwarf2read.c (read_partial_die): Update.
13638 * symfile.c (set_initial_language): Call main_language.
13639 * symtab.c (language_of_main): Now static.
13640 (set_main_name): Add 'lang' parameter.
13641 (find_main_name): Update.
13642 (main_language): New function.
13643 (symtab_observer_executable_changed): Update.
13644 * symtab.h (set_main_name): Update.
13645 (language_of_main): Remove.
13646 (main_language): Declare.
13648 2014-01-15 Tom Tromey <tromey@redhat.com>
13650 * symfile.c (init_entry_point_info): Use new "initialized" field.
13652 * objfiles.h (struct entry_point) <initialized>: New field.
13653 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13654 (struct objfile) <ei>: ...here. Remove.
13655 * objfiles.c (entry_point_address_query): Update.
13657 2014-01-15 Tom Tromey <tromey@redhat.com>
13659 * objfiles.c (entry_point_address_query): Relocate entry point
13661 (objfile_relocate1): Do not relocate entry point address.
13662 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13663 <the_bfd_section_index>: New field.
13664 * symfile.c (init_entry_point_info): Find the entry point's
13667 2014-01-15 Tom Tromey <tromey@redhat.com>
13669 * solib-frv.c (enable_break): Use entry_point_address_query.
13671 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13673 * NEWS: Add note on improved process record-replay on
13674 arm*-linux* targets.
13676 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13678 * arm-tdep.c (enum arm_record_result): New enum.
13679 (arm_record_unsupported_insn): New function.
13680 (arm_record_coproc_data_proc): Removed.
13681 (thumb2_record_ld_st_multiple): New function.
13682 (thumb2_record_ld_st_dual_ex_tbb): New function.
13683 (thumb2_record_data_proc_sreg_mimm): New function.
13684 (thumb2_record_ps_dest_generic): New function.
13685 (thumb2_record_branch_misc_cntrl): New function.
13686 (thumb2_record_str_single_data): New function.
13687 (thumb2_record_ld_mem_hints): New function.
13688 (thumb2_record_ld_word): New function.
13689 (thumb2_record_lmul_lmla_div): New function.
13690 (thumb2_record_decode_insn_handler): New function.
13691 (decode_insn): Add thumb32 instruction handlers.
13693 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13695 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13696 (struct arm_linux_record_tdep): Declare.
13697 (arm_canonicalize_syscall): New function.
13698 (arm_all_but_pc_registers_record): New function.
13699 (arm_linux_syscall_record): New function.
13700 (arm_linux_init_abi): Add syscall recording constructs.
13701 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13702 decoding. (arm_record_coproc_data_proc): Update arm syscall
13704 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13705 <arm_syscall_record>: New field.
13706 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13709 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13711 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13712 register for push instruction recording.
13714 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13716 * arm-tdep.c (thumb_record_misc): Update to correct logical
13717 error while recording ldm, ldmia and pop instructions.
13719 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13721 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13723 2014-01-15 Pedro Alves <palves@redhat.com>
13725 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13726 (go32_resume, go32_fetch_registers, store_register)
13727 (go32_store_registers, go32_prepare_to_store)
13728 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13729 (go32_create_inferior, go32_can_run, go32_terminal_init)
13730 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13733 2014-01-15 Tom Tromey <tromey@redhat.com>
13735 * target.h (async_callback_ftype): New typedef.
13736 (struct target_ops) <to_async>: Use it.
13738 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13740 * python/py-value.c (get_field_type): Remove unnecessary curly
13741 braces for single-statement if block.
13743 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13745 * python/py-type.c (convert_field): Add missing empty line
13746 after declarations.
13748 2014-01-14 Doug Evans <dje@google.com>
13750 * symfile.h (expand_symtabs_matching): Renamed from
13751 expand_partial_symbol_names. Update prototype.
13752 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13753 * symfile.c (expand_symtabs_matching): Renamed from
13754 expand_partial_symbol_names. New args file_matcher, kind.
13755 Rename arg fun to symbol_matcher.
13756 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13757 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13758 ada_expand_partial_symbol_name.
13759 (ada_make_symbol_completion_list): Update to call
13760 expand_symtabs_matching.
13761 (ada_add_global_exceptions): Call expand_symtabs_matching.
13762 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13763 call map_symbol_filenames.
13764 * symtab.c (sources_info): Update to call map_symbol_filenames.
13765 (search_symbols): Call expand_symtabs_matching.
13766 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13767 (default_make_symbol_completion_list_break_on): Update to call
13768 expand_symtabs_matching.
13769 (make_source_files_completion_list): Update to call
13770 map_symbol_filenames.
13772 2014-01-14 Doug Evans <dje@google.com>
13774 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13775 (expand_symtabs_symbol_matcher_ftype): New typedef.
13776 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13777 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13778 * symfile.c (expand_partial_symbol_names): Update to use
13779 expand_symtabs_symbol_matcher_ftype.
13780 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13781 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13782 Arg name_matcher renamed to symbol_matcher.
13783 * psymtab.c (recursively_search_psymtabs): Update to use
13784 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13786 (expand_symtabs_matching_via_partial): Update to use
13787 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13788 Arg name_matcher renamed to symbol_matcher.
13790 2014-01-14 Doug Evans <dje@google.com>
13792 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13793 (map_partial_symbol_filenames): Ditto.
13794 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13795 (map_partial_symbol_filenames): Ditto.
13796 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13797 (map_partial_symbol_filenames): Ditto.
13798 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13799 (map_partial_symbol_filenames): Ditto.
13800 * symtab.c: Delete #include "psymtab.h".
13802 2014-01-14 Pedro Alves <palves@redhat.com>
13803 Tom Tromey <tromey@redhat.com>
13805 * infrun.c (use_displaced_stepping): Use find_record_target
13806 instead of RECORD_IS_USED.
13807 (adjust_pc_after_break): Use record_full_is_used instead of
13809 * record-btrace.c (record_btrace_open): Call record_preopen
13810 instead of checking RECORD_IS_USED.
13811 * record-full.c (record_full_shortname)
13812 (record_full_core_shortname): New globals.
13813 (record_full_is_used): New function.
13814 (find_full_open): Call record_preopen instead of checking
13816 (init_record_full_ops): Set the target's shortname to
13817 record_full_shortname.
13818 (init_record_full_core_ops): Set the target's shortname to
13819 record_full_core_shortname.
13820 * record-full.h (record_full_is_used): Declare.
13821 * record.c (find_record_target): Make extern.
13822 (record_preopen): New function.
13823 * record.h (RECORD_IS_USED): Delete macro.
13824 (find_record_target, record_preopen): Declare functions.
13826 2014-01-14 Yao Qi <yao@codesourcery.com>
13828 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13829 'len''s type to ULONGEST.
13830 (core_xfer_shared_libraries_aix): Likewise.
13831 * gdbarch.c, gdbarch.h: Regenerated.
13832 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13833 Change type of 'len' to ULONGEST.
13834 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13835 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13837 2014-01-14 Yao Qi <yao@codesourcery.com>
13839 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13840 type of 'len' to ULONGEST.
13841 (linux_xfer_osdata_processgroups): Likewise.
13842 (linux_xfer_osdata_threads): Likewise.
13843 (linux_xfer_osdata_fds): Likewise.
13844 (linux_xfer_osdata_isockets): Likewise.
13845 (linux_xfer_osdata_shm): Likewise.
13846 (linux_xfer_osdata_sem): Likewise.
13847 (linux_xfer_osdata_msg): Likewise.
13848 (linux_common_xfer_osdata): Likewise.
13849 (struct osdata_type) <getter>: Likewise.
13850 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13853 2014-01-14 Yao Qi <yao@codesourcery.com>
13855 * target.h (target_xfer_partial_ftype): Update.
13856 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13858 * aix-thread.c (aix_thread_xfer_partial): Change type of
13859 argument 'len' to ULONGEST.
13860 * auxv.c (procfs_xfer_auxv): Likewise.
13861 (ld_so_xfer_auxv): Likewise.
13862 (memory_xfer_auxv): Likewise.
13863 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13864 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13865 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13866 * corelow.c (core_xfer_partial): Likewise.
13867 * ctf.c (ctf_xfer_partial): Likewise.
13868 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13870 (darwin_read_dyld_info): Likewise.
13871 (darwin_xfer_partial): Likewise.
13872 * exec.c (section_table_xfer_memory_partial): Likewise.
13873 (exec_xfer_partial): Likewise.
13874 * exec.h (section_table_xfer_memory_partial): Update
13876 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13877 instead of plongest.
13878 (gnu_xfer_partial): Likewise.
13879 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13880 (ia64_hpux_xfer_solib_got): Likewise.
13881 (ia64_hpux_xfer_partial): Likewise.
13882 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13883 * inf-ptrace.c (inf_ptrace_xfer_partial):
13884 * inf-ttrace.c (inf_ttrace_xfer_partial):
13885 * linux-nat.c (linux_xfer_siginfo): Likewise.
13886 (linux_nat_xfer_partial): Likewise.
13887 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13888 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13889 * monitor.c (monitor_xfer_memory): Likewise.
13890 (monitor_xfer_partial): Likewise.
13891 * procfs.c (procfs_xfer_partial): Likewise.
13892 * record-full.c (record_full_xfer_partial): Likewise.
13893 (record_full_core_xfer_partial): Likewise.
13894 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13895 instead of plongest.
13896 (gdbsim_xfer_partial): Likewise.
13897 * remote.c (remote_xfer_partial): Likewise.
13898 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13899 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13901 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13902 (rs6000_xfer_shared_libraries): Likewise.
13903 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13904 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13905 (sparc_xfer_partial): Likewise.
13906 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13907 (spu_xfer_partial): Likewise.
13908 * spu-multiarch.c (spu_xfer_partial): Likewise.
13909 * target.c (target_read_live_memory): Likewise.
13910 (memory_xfer_live_readonly_partial): Likewise.
13911 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13912 (target_xfer_partial, default_xfer_partial): Likewise.
13913 (current_xfer_partial): Likewise.
13914 * tracepoint.c (tfile_xfer_partial): Likewise.
13915 * windows-nat.c (windows_xfer_memory): Likewise. Call
13916 pulongest instead of plongest.
13917 (windows_xfer_partial): Likewise.
13918 (windows_xfer_shared_libraries): Likewise.
13920 2014-01-14 Yao Qi <yao@codesourcery.com>
13922 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13923 target_xfer_partial_ftype.
13925 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13929 * valops.c (value_struct_elt_bitpos): New function
13930 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13931 object to 'None' if the field name is an empty string ("").
13932 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13933 attribute to look for a field when 'name' is 'None'.
13934 (get_field_type): New function
13936 2014-01-13 Doug Evans <dje@google.com>
13939 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13940 (try_open_dwop_file): Ditto.
13941 * gdb_bfd.c: #include "vec.h".
13942 (bfdp): New typedef.
13943 (struct gdb_bfd_data): New member included_bfds.
13944 (gdb_bfd_unref): Unref all included bfds.
13945 (gdb_bfd_record_inclusion): New function.
13946 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13948 2014-01-13 Tom Tromey <tromey@redhat.com>
13950 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13952 2014-01-13 Tom Tromey <tromey@redhat.com>
13954 * defs.h (use_windows): Remove.
13955 * gdb.c (main): Update.
13956 * main.c (captured_main, gdb_main): Update.
13957 * main.h (struct captured_main_args) <use_windows>: Remove.
13958 * top.c (use_windows): Remove.
13960 2014-01-13 Tom Tromey <tromey@redhat.com>
13962 * defs.h (deprecated_flush_hook): Remove.
13964 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13967 * linux-thread-db.c (try_thread_db_load): Add parameter
13968 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13969 (try_thread_db_load_from_pdir_1): Move it there from here.
13970 (try_thread_db_load_from_sdir): Update caller.
13971 (try_thread_db_load_from_dir): Move it there from here.
13973 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13975 * regformats/regdat.sh: Always rewrite the register file.
13977 2014-01-13 Pedro Alves <palves@redhat.com>
13979 * Makefile.in (CHECK_HEADERS): New variable.
13980 (check-headers:): New rule.
13982 2014-01-13 Tom Tromey <tromey@redhat.com>
13984 * cli/cli-setshow.c (do_set_command): Update.
13985 * defs.h (deprecated_set_hook): Remove.
13986 * top.c (deprecated_set_hook): Remove.
13988 2014-01-13 Pedro Alves <palves@redhat.com>
13990 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13991 the tracepoint if the PC is a pseudo-register.
13993 2014-01-13 Tom Tromey <tromey@redhat.com>
13995 * defs.h (XCALLOC): Remove.
13996 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13997 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13998 * dwarf2loc.c (allocate_piece_closure): Likewise.
13999 * elfread.c (elf_symfile_segments): Likewise.
14000 (elf_symfile_segments): Likewise.
14001 * gdbtypes.c (copy_type_recursive): Likewise.
14002 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14003 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14004 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14006 * mt-tdep.c (mt_gdbarch_init): Likewise.
14007 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14009 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14010 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14011 * registry.c (registry_alloc_data): Likewise.
14012 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14013 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14014 * serial.c (serial_fdopen_ops): Likewise.
14015 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14017 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14018 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14021 2014-01-13 Tom Tromey <tromey@redhat.com>
14023 * defs.h (XMALLOC): Remove.
14024 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14025 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14026 * cli-out.c (struct ui_out *): Likewise.
14027 * cli/cli-dump.c (add_dump_command): Likewise.
14028 (add_dump_command): Likewise.
14029 * complaints.c (get_complaints): Likewise.
14030 (find_complaint): Likewise.
14031 * dwarf2-frame.c (execute_cfa_program): Likewise.
14032 * dwarf2read.c (abbrev_table_read_table): Likewise.
14033 * gdbarch.sh: Likewise.
14034 * gdbarch.c: Rebuild.
14035 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14036 * interps.c (interp_new): Likewise.
14037 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14038 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14039 * mi/mi-console.c (mi_console_file_new): Likewise.
14040 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14041 * mi/mi-out.c (mi_out_new): Likewise.
14042 * mi/mi-parse.c (mi_parse): Likewise.
14043 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14044 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14045 * observer.c (xalloc_observer_list_node): Likewise.
14046 * regcache.c (regcache_xmalloc_1): Likewise.
14047 * reggroups.c (reggroup_new): Likewise.
14048 (_initialize_reggroup): Likewise.
14049 * registry.c (register_data_with_cleanup): Likewise.
14050 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14051 * ser-base.c (serial_ttystate): Likewise.
14052 * ser-mingw.c (make_pipe_state): Likewise.
14053 * ser-pipe.c (pipe_open): Likewise.
14054 * serial.c (serial_open): Likewise.
14055 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14056 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14057 (tui_alloc_win_info): Likewise.
14058 (tui_add_content_elements): Likewise.
14059 * tui/tui-file.c (tui_file_new): Likewise.
14060 * tui/tui-out.c (tui_out_new): Likewise.
14061 * ui-file.c (mem_file_new): Likewise.
14062 * ui-out.c (push_level): Likewise.
14063 (make_cleanup_ui_out_end): Likewise.
14064 (append_header_to_list): Likewise.
14065 (ui_out_new): Likewise.
14066 * user-regs.c (user_reg_add_builtin): Likewise.
14068 2014-01-13 Tom Tromey <tromey@redhat.com>
14070 * defs.h (XZALLOC): Remove.
14071 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14072 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14073 (get_ada_tasks_inferior_data): Likewise.
14074 * auto-load.c (get_auto_load_pspace_data): Likewise.
14075 * auxv.c (get_auxv_inferior_data): Likewise.
14076 * bfd-target.c (target_bfd_reopen): Likewise.
14077 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14078 (deprecated_insert_raw_breakpoint): Likewise.
14079 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14080 * corelow.c (core_open): Likewise.
14081 * darwin-nat.c (darwin_check_new_threads): Likewise.
14082 (darwin_attach_pid): Likewise.
14083 * dummy-frame.c (dummy_frame_push): Likewise.
14084 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14085 * dwarf2loc.c (allocate_piece_closure): Likewise.
14086 * elfread.c (elf_symfile_segments): Likewise.
14087 * eval.c (ptrmath_type_p): Likewise.
14088 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14089 * gdbtypes.c (alloc_type_arch): Likewise.
14090 (alloc_type_instance): Likewise.
14091 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14092 * inf-child.c (inf_child_can_use_agent): Likewise.
14093 * inflow.c (get_inflow_inferior_data): Likewise.
14094 * infrun.c (save_infcall_suspend_state): Likewise.
14095 * jit.c (jit_reader_load): Likewise.
14096 (get_jit_objfile_data): Likewise.
14097 (get_jit_program_space_data): Likewise.
14098 (jit_object_open_impl): Likewise.
14099 (jit_symtab_open_impl): Likewise.
14100 (jit_block_open_impl): Likewise.
14101 (jit_frame_sniffer): Likewise.
14102 * linux-fork.c (add_fork): Likewise.
14103 * maint.c (make_command_stats_cleanup): Likewise.
14104 * objfiles.c (get_objfile_pspace_data): Likewise.
14105 * opencl-lang.c (struct lval_closure): Likewise.
14106 * osdata.c (osdata_start_osdata): Likewise.
14107 * progspace.c (new_address_space): Likewise.
14108 (add_program_space): Likewise.
14109 * remote-sim.c (get_sim_inferior_data): Likewise.
14110 * sh-tdep.c (sh_gdbarch_init): Likewise.
14111 * skip.c (Ignore): Likewise.
14112 (skip_delete_command): Likewise.
14113 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14114 (library_list_start_library): Likewise.
14115 (solib_aix_current_sos): Likewise.
14116 * solib-darwin.c (get_darwin_info): Likewise.
14117 (darwin_current_sos): Likewise.
14118 * solib-dsbt.c (get_dsbt_info): Likewise.
14119 * solib-ia64-hpux.c (new_so_list): Likewise.
14120 (ia64_hpux_get_solib_linkage_addr): Likewise.
14121 * solib-spu.c (append_ocl_sos): Likewise.
14122 (spu_current_sos): Likewise.
14123 * solib-svr4.c (get_svr4_info): Likewise.
14124 (svr4_keep_data_in_core): Likewise.
14125 (library_list_start_library): Likewise.
14126 (svr4_default_sos): Likewise.
14127 (svr4_read_so_list): Likewise.
14128 * solib-target.c (library_list_start_library): Likewise.
14129 (solib_target_current_sos): Likewise.
14130 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14131 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14132 * symfile.c (default_symfile_segments): Likewise.
14133 * target-descriptions.c (tdesc_data_init): Likewise.
14134 (tdesc_create_reg): Likewise.
14135 (struct tdesc_type *): Likewise.
14136 (tdesc_create_vector): Likewise.
14137 (tdesc_set_struct_size): Likewise.
14138 (struct tdesc_type *): Likewise.
14139 (tdesc_free_feature): Likewise.
14140 (tdesc_create_feature): Likewise.
14141 * windows-nat.c (windows_add_thread): Likewise.
14142 (windows_make_so): Likewise.
14143 * xml-support.c (gdb_xml_body_text): Likewise.
14144 (gdb_xml_create_parser_and_cleanup): Likewise.
14145 (xml_process_xincludes): Likewise.
14146 * xml-syscall.c (allocate_syscalls_info): Likewise.
14147 (syscall_create_syscall_desc): Likewise.
14149 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14151 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14152 function, with code from i386_stap_parse_special_token.
14153 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14154 (i386_stap_parse_special_token): Move code to the two functions
14155 above; simplify it.
14157 2014-01-09 Pedro Alves <palves@redhat.com>
14158 Hui Zhu <hui@codesourcery.com>
14161 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14162 bp_err_string. Don't mark the location shlib_disabled if the
14163 error thrown wasn't a generic or memory error. Catch errors
14164 thrown while inserting breakpoints in overlayed code. Output
14165 error message of software breakpoints.
14166 * remote.c (remote_insert_breakpoint): If this breakpoint has
14167 target-side commands but this stub doesn't support Z0 packets,
14168 throw NOT_SUPPORTED_ERROR error.
14169 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14170 * target.h (target_insert_breakpoint): Extend comment.
14171 (target_insert_hw_breakpoint): Add comment.
14173 2014-01-08 Pedro Alves <palves@redhat.com>
14175 * remote.c (remote_add_thread): Add threads silently if starting
14177 (remote_notice_new_inferior): If in all-stop, and starting up,
14178 don't call notice_new_inferior.
14179 (get_current_thread): New function, factored out from ...
14180 (add_current_inferior_and_thread): ... this. Adjust.
14181 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14182 found any thread, then select the remote's current thread as GDB's
14183 current thread too.
14185 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14187 * NEWS: Create a new section for the next release branch.
14188 Rename the section of the current branch, now that it has
14191 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14193 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14194 * version.in: Bump version to 7.7.50.DATE-cvs.
14196 2014-01-08 Yao Qi <yao@codesourcery.com>
14198 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14199 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14200 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14202 2014-01-08 Yao Qi <yao@codesourcery.com>
14204 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14205 return value of bfd_get_filename to symbol_file_add_from_bfd.
14207 2014-01-08 Pierre Muller <muller@sourceware.org>
14210 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14211 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14212 to prim_record_mininal_symbol_and_info.
14213 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14214 in call to prim_record_minimal_symbol_and_info.
14215 (read_pe_exported_syms): Set index field of section_data.
14217 2014-01-07 Andrew Pinski <apinski@cavium.com>
14219 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14220 * features/aarch64.c: Regenerate.
14222 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14224 * target.c (return_null): Define.
14225 (update_current_target): Use it instead of return_zero for
14226 functions that return a pointer.
14228 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14230 * source.c (add_path): Fix check for duplicated paths in the previously
14233 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14235 * ada-lang.c: Remove duplicated include statements.
14236 * alphabsd-nat.c: Ditto.
14237 * amd64-darwin-tdep.c: Ditto.
14238 * amd64fbsd-nat.c: Ditto.
14239 * auto-load.c: Ditto.
14241 * breakpoint.c: Ditto.
14242 * dbxread.c: Ditto.
14243 * fork-child.c: Ditto.
14244 * gdb_usleep.c: Ditto.
14245 * i386-darwin-tdep.c: Ditto.
14246 * i386fbsd-nat.c: Ditto.
14248 * inferior.c: Ditto.
14249 * jv-lang.c: Ditto.
14250 * linux-nat.c: Ditto.
14251 * linux-tdep.c: Ditto.
14252 * m68kbsd-nat.c: Ditto.
14253 * m68klinux-nat.c: Ditto.
14254 * microblaze-tdep.c: Ditto.
14255 * mips-linux-tdep.c: Ditto.
14256 * mn10300-tdep.c: Ditto.
14257 * nto-tdep.c: Ditto.
14258 * opencl-lang.c: Ditto.
14260 * printcmd.c: Ditto.
14261 * regcache.c: Ditto.
14262 * remote-m32r-sdi.c: Ditto.
14264 * symfile.c: Ditto.
14266 * tilegx-linux-nat.c: Ditto.
14267 * tilegx-tdep.c: Ditto.
14268 * tracepoint.c: Ditto.
14270 * vaxbsd-nat.c: Ditto.
14271 * windows-nat.c: Ditto.
14272 * xtensa-tdep.c: Ditto.
14274 2014-01-07 Yao Qi <yao@codesourcery.com>
14276 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14278 2014-01-07 Yao Qi <yao@codesourcery.com>
14279 Joel Brobecker <brobecker@adacore.com>
14281 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14282 (pdc_write_regs): Likewise.
14283 (fetch_regs_kernel_thread): Likewise.
14284 (store_regs_kernel_thread): Likewise.
14286 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14288 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14289 tagged type objects to their actual type.
14291 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14293 * ada-valprint.c (print_field_values): Add "language" parameter.
14294 Update calls to print_field_values and print_variant_part.
14295 Pass new parameter "language" in call to val_print instead
14296 of "current_language". Replace call to ada_val_print by call
14298 (print_variant_part): Add "language" parameter.
14299 (ada_val_print_struct_union): Update call to print_field_values.
14301 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14303 * ada-valprint.c (ui_memcpy): Delete.
14304 (ada_print_floating): Update documentation. Add empty line
14305 between between function documentation and implementation.
14306 Delete variable "buffer". Use ui_file_xstrdup in place of
14307 ui_file_put. Minor adjustments following this change.
14309 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14311 * ada-valprint.c (ada_val_print_string): New function,
14312 extracted from ada_val_print_array.
14313 (ada_val_print_array): Replace extracted code by call
14314 to ada_val_print_string followed by a return. Move
14315 "else" branch to the function's top block.
14317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14319 * ada-valprint.c (ada_val_print_array): Move implementation
14320 down. Rename parameter "offset" and "val" into "offset_aligned"
14321 and "original_value" respectively. Add parameter "offset".
14323 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14325 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14326 re-organizing the code. Change the "???" message printed
14327 when target type is a TYPE_CODE_UNDEF into
14328 "<ref to undefined type>".
14330 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14332 * ada-valprint.c (print_record): Delete, implementation inlined...
14333 (ada_val_print_struct_union): ... here. Remove call to
14334 ada_check_typedef in inlined implementation.
14336 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14338 * ada-valprint.c (ada_val_print_gnat_array): New function,
14339 extracted from ada_val_print_1;
14340 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14341 (ada_val_print_flt, ada_val_print_struct_union)
14342 (ada_val_print_ref): Likewise.
14343 (ada_val_print_1): Delete variables i and elttype.
14344 Replace extracted-out code by call to corresponding
14347 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14349 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14351 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14353 * ada-valprint.c (ada_val_print_1): Replace calls to
14354 ada_val_print_1 by calls to val_print.
14356 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14358 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14359 Update calls to self accordingly. Replace calls to c_val_print
14360 by calls to val_print.
14362 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14364 * ada-valprint.c (print_record): Delete declaration.
14365 (adjust_type_signedness, ada_val_print_1): Likewise.
14366 (ada_val_print): Move function implementation down.
14367 (print_variant_part, print_field_values, print_record):
14368 Move function implementation up.
14370 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14372 * python/py-type.c (typy_get_name): New function.
14373 (type_object_getset): Add entry for attribute "name".
14374 * NEWS: Add entry mentioning this new attribute.
14376 2014-01-07 Yao Qi <yao@codesourcery.com>
14378 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14381 2014-01-07 Yao Qi <yao@codesourcery.com>
14383 * gnu-nat.c (info_port_rights): Add qualifier const to
14386 2014-01-07 Yao Qi <yao@codesourcery.com>
14388 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14390 2014-01-07 Yao Qi <yao@codesourcery.com>
14392 * gnu-nat.c (make_inf) Update declaration.
14393 (make_inf): Make it static.
14394 (inf_set_traced): Likewise.
14395 (inf_port_to_thread, inf_task_died_status): Likewise.
14397 2014-01-07 Yao Qi <yao@codesourcery.com>
14399 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14401 2014-01-07 Yao Qi <yao@codesourcery.com>
14403 * gnu-nat.c (_initialize_gnu_nat): Declare.
14405 2014-01-07 Yao Qi <yao@codesourcery.com>
14407 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14409 (struct gdbarch_info) <byte_order>: Change type to
14411 <byte_order_for_code>: Likewise.
14412 * gdbarch.c, gdbarch.h: Regenerated.
14414 2014-01-06 Sasha Smundak <asmundak@google.com>
14416 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14418 2014-01-06 Tom Tromey <tromey@redhat.com>
14420 * doublest.c (convert_doublest_to_floatformat): Use const, not
14422 * somread.c (som_symtab_read): Likewise.
14424 2014-01-07 Hui Zhu <hui@codesourcery.com>
14426 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14427 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14428 (gdb_bfd_fopen): Ditto.
14429 (gdb_bfd_openr): Ditto.
14430 (gdb_bfd_openw): Ditto.
14431 (gdb_bfd_openr_iovec): Ditto.
14432 (gdb_bfd_fdopenr): Ditto.
14433 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14434 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14436 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14438 * symfile-mem.c (symbol_file_add_from_memory): Removed
14439 gdb_bfd_stash_filename.
14441 2014-01-03 Doug Evans <dje@google.com>
14443 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14446 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14448 Update year range in copyright notice of all files.
14450 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14452 * top.c (print_gdb_version): Set copyright year to 2014.
14454 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14456 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14458 For older changes see ChangeLog-2013.
14464 version-control: never