1 2014-10-25 Doug Evans <xdje42@gmail.com>
3 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
4 of local var child_die.
6 2014-10-24 Don Breazeal <donb@codesourcery.com>
8 * infrun.c (follow_fork_inferior): Update fork message printing
9 to use target_terminal_ours_for_output instead of
10 target_terminal_ours, to use _() for all format strings, to print
11 "vfork" instead of "fork" for vforks, and to add a detach message.
12 (handle_vfork_child_exec_or_exit): Update message printing to use
13 target_terminal_ours_for_output instead of target_terminal_ours, to
14 use _() for all format strings, and to fix some formatting.
16 2014-10-24 Pedro Alves <palves@redhat.com>
18 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
19 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
20 * config/vax/vax.mh: Delete.
21 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
22 obsolete configurations section.
23 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
24 * vax-nat.c: Delete file.
26 2014-10-24 Pedro Alves <palves@redhat.com>
28 * NEWS (Removed targets): Add OS/arch column.
30 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
32 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
33 on the arg type of a constructor only if it is of reference type.
35 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
37 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
38 accessors and constants from nios2 opcodes update.
39 (nios2_get_next_pc): Likewise.
41 2014-10-19 Doug Evans <xdje42@gmail.com>
43 * gdbthread.h (set_running): Fix comment.
44 (set_executing, finish_thread_state): Fix comment.
46 2014-10-18 Doug Evans <xdje42@gmail.com>
48 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
50 2014-10-17 Doug Evans <dje@google.com>
52 * NEWS: Mention new event gdb.clear_objfiles.
53 * python/py-event.h (emit_clear_objfiles_event): Clear
54 * python/py-events.h (events_object): New member clear_objfiles.
55 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
57 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
58 emit clear_objfiles event.
59 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
61 (emit_clear_objfiles_event): New function.
62 (clear_objfiles): New event.
63 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
65 * python/python.c (_initialize_python): Call
66 gdbpy_initialize_clear_objfiles_event.
68 2014-10-17 Doug Evans <dje@google.com>
70 * NEWS: Mention new gdb.Objfile.progspace attribute.
71 * python/py-objfile.c (objfpy_get_progspace): New function.
72 (objfile_getset): New entry for "progspace".
74 2014-10-17 Pedro Alves <palves@redhat.com>
77 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
78 returns a copy of the input.
79 (run_command_1, continue_command, step_1, jump_command)
80 (signal_command, until_command, advance_command, finish_command)
81 (attach_command): Adjust and install a cleanup to free the
84 2014-10-17 Pedro Alves <palves@redhat.com>
87 * infcmd.c (continue_1): If continuing all threads in the
88 foreground, make sure the inferior's terminal settings are put in
91 2014-10-17 Pedro Alves <palves@redhat.com>
94 * annotate.c (annotate_breakpoints_invalid): Use
95 target_terminal_our_for_output instead of target_terminal_ours.
96 Give back the terminal to the target.
97 (annotate_frames_invalid): Likewise.
99 2014-10-17 Pedro Alves <palves@redhat.com>
101 * target.c (enum terminal_state): New enum.
102 (terminal_state): New global.
103 (target_terminal_init): New function.
104 (target_terminal_inferior): Skip if inferior already owns the
106 (target_terminal_ours, target_terminal_ours_for_output): New
108 * target.h (target_terminal_init): Convert to function prototype.
109 (target_terminal_ours_for_output): Convert to function prototype
111 (target_terminal_ours): Convert to function prototype and tweak
113 * windows-nat.c (do_initial_windows_stuff): Call
114 target_terminal_init instead of child_terminal_init_with_pgrp.
116 2014-10-17 Pedro Alves <palves@redhat.com>
118 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
119 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
120 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
122 * NEWS: Mention that support for alpha*-*-osf* has been removed.
123 * ada-lang.h [__alpha__ && __osf__]
124 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
125 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
126 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
128 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
130 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
131 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
132 * configure: Regenerate.
133 * configure.ac: Remove references to osf.
134 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
135 section. Remove all other references to osf.
136 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
137 Remove all other references to osf.
138 * dec-thread.c: Delete file.
139 * defs.h (GDB_OSABI_OSF1): Delete.
140 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
142 * osabi.c (gdb_osabi_names): Delete "OSF/1".
143 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
145 (unconditionally_kill_inferior)
146 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
147 * solib-osf.c: Delete file.
149 2014-10-17 Pedro Alves <palves@redhat.com>
151 * remote.c (clear_threads_listing_context): Move higher up, out of
152 the HAVE_LIBEXPAT guard.
154 2014-10-16 Tristan Gingold <gingold@adacore.com>
156 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
157 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
160 2014-10-15 Pedro Alves <palves@redhat.com>
162 * dec-thread.c (dec_thread_count_gdb_threads)
163 (dec_thread_add_gdb_thread): Delete.
164 (dec_thread_update_thread_list): Delete.
165 (dec_thread_find_new_threads): Rename to ...
166 (dec_thread_update_thread_list): ... this. Delete GDB-size
167 threads that are no longer found in dec_thread_list.
168 (resync_thread_list): Delete.
169 (dec_thread_wait): Call dec_thread_update_thread_list instead of
172 2014-10-15 Pedro Alves <palves@redhat.com>
174 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
175 * remote.c (remote_update_thread_list): Skip calling prune_threads
176 if any thread listing method is supported, and instead walk over
177 the set of remote threads listed, deleting those that are not
178 found in GDB's thread list.
180 2014-10-15 Pedro Alves <palves@redhat.com>
182 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
183 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
184 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
185 (bsd_uthread_target): Adjust.
186 * corelow.c (core_open): Adjust.
187 * dec-thread.c (dec_thread_find_new_threads): Update comment.
188 (dec_thread_update_thread_list): New function.
189 (init_dec_thread_ops): Adjust.
190 * gdbthread.h (prune_threads): New declaration.
191 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
192 (thread_db_update_thread_list): ... this. Call prune_threads.
193 (init_thread_db_ops): Adjust.
194 * nto-procfs.c (procfs_find_new_threads): Rename to ...
195 (procfs_update_thread_list): ... this. Call prune_threads.
196 (procfs_attach, procfs_create_inferior, init_procfs_targets):
198 * obsd-nat.c (obsd_find_new_threads): Rename to ...
199 (obsd_update_thread_list): ... this. Call prune_threads.
200 (obsd_add_target): Adjust.
201 * procfs.c (procfs_target): Adjust.
202 (procfs_notice_thread): Update comment.
203 (procfs_find_new_threads): Rename to ...
204 (procfs_update_thread_list): ... this. Call prune_threads.
205 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
207 (ravenscar_wait): Adjust.
208 (ravenscar_find_new_threads): Rename to ...
209 (ravenscar_update_thread_list): ... this. Call prune_threads.
210 (init_ravenscar_thread_ops): Adjust.
211 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
212 (record_btrace_update_thread_list): ... this. Adjust comment.
213 (init_record_btrace_ops): Adjust.
214 * remote.c (remote_threads_info): Rename to ...
215 (remote_update_thread_list): ... this. Call prune_threads.
216 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
218 * sol-thread.c (check_for_thread_db): Adjust.
219 (sol_find_new_threads_callback): Rename to ...
220 (sol_update_thread_list_callback): ... this.
221 (sol_find_new_threads): Rename to ...
222 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
223 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
224 * target-delegates.c: Regenerate.
225 * target.c (target_find_new_threads): Rename to ...
226 (target_update_thread_list): ... this.
227 * target.h (struct target_ops): Rename to_find_new_threads field
228 to to_update_thread_list.
229 (target_find_new_threads): Rename to ...
230 (target_update_thread_list): ... this.
231 * thread.c (prune_threads): Make extern.
232 (update_thread_list): Adjust.
234 2014-10-15 Pedro Alves <palves@redhat.com>
236 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
237 Add describing comment. Return -1 if the qL packet is not
239 (struct thread_item, thread_item_t): Move higher up in
240 the file. Add comments.
241 (struct threads_parsing_context): Move higher up in
242 the file, add comments, and remote to ...
243 (struct threads_listing_context): ... this.
244 (remote_newthread_step): Don't add the thread to GDB's thread
245 database here. Instead push it to the thread_listing_context
247 (remote_find_new_threads): Rename to ...
248 (remote_get_threads_with_ql): ... this. Add target_ops and
249 targets_listing_context parameters. Pass down context.
250 (start_thread): Adjust.
251 (clear_threads_parsing_context): Rename to ...
252 (clear_threads_listing_context): ... this.
253 (remote_get_threads_with_qxfer): New, with parts salvaged from old
255 (remote_get_threads_with_qthreadinfo): Ditto.
256 (remote_threads_info): Reimplement.
258 2014-10-15 Pedro Alves <palves@redhat.com>
260 * infrun.c (resume): Don't force displaced-stepping for all
261 single-steps on software single-stepping archs.
263 2014-10-15 Pedro Alves <palves@redhat.com>
265 * breakpoint.c (single_step_breakpoints): Delete global.
266 (insert_single_step_breakpoint): Adjust to store the breakpoint
267 pointer in the current thread.
268 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
269 (cancel_single_step_breakpoints): Delete functions.
270 (breakpoint_has_location_inserted_here): Make extern.
271 (single_step_breakpoint_inserted_here_p): Adjust to walk the
273 * breakpoint.h (breakpoint_has_location_inserted_here): New
275 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
276 (cancel_single_step_breakpoints): Remove declarations.
277 * gdbthread.h (struct thread_control_state)
278 <single_step_breakpoints>: New field.
279 (delete_single_step_breakpoints)
280 (thread_has_single_step_breakpoints_set)
281 (thread_has_single_step_breakpoint_here): New declarations.
282 * infrun.c (follow_exec): Also clear the single-step breakpoints.
283 (singlestep_breakpoints_inserted_p, singlestep_ptid)
284 (singlestep_pc): Delete globals.
285 (infrun_thread_ptid_changed): Remove references to removed
287 (resume_cleanups): Delete the current thread's single-step
289 (maybe_software_singlestep): Remove references to removed globals.
290 (resume): Adjust to use thread_has_single_step_breakpoints_set and
291 delete_single_step_breakpoints.
292 (init_wait_for_inferior): Remove references to removed globals.
293 (delete_thread_infrun_breakpoints): Delete the thread's
294 single-step breakpoints too.
295 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
296 single-step breakpoints here.
297 (delete_stopped_threads_single_step_breakpoints): New function.
298 (adjust_pc_after_break): Adjust to use
299 thread_has_single_step_breakpoints_set.
300 (handle_inferior_event): Remove references to removed globals.
301 Use delete_stopped_threads_single_step_breakpoints.
302 (handle_signal_stop): Adjust to per-thread single-step
303 breakpoints. Swap test order to do cheaper tests first.
304 (switch_back_to_stepped_thread): Extend debug output. Remove
305 references to removed globals.
306 * record-full.c (record_full_wait_1): Adjust to per-thread
307 single-step breakpoints.
308 * thread.c (delete_single_step_breakpoints)
309 (thread_has_single_step_breakpoints_set)
310 (thread_has_single_step_breakpoint_here): New functions.
311 (clear_thread_inferior_resources): Also delete the thread's
312 single-step breakpoints.
314 2014-10-15 Pedro Alves <palves@redhat.com>
316 * thread.c (delete_thread_breakpoint): New function.
317 (delete_step_resume_breakpoint)
318 (delete_exception_resume_breakpoint): Use it.
319 (delete_at_next_stop): New function.
320 (clear_thread_inferior_resources): Use delete_at_next_stop.
322 2014-10-15 Pedro Alves <palves@redhat.com>
324 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
325 (breakpoint_inserted_here_p): ... here. Remove special case for
326 software single-step breakpoints.
327 (find_non_raw_software_breakpoint_inserted_here): Inline ...
328 (software_breakpoint_inserted_here_p): ... here. Remove special
329 case for software single-step breakpoints.
330 (bp_target_info_copy_insertion_state)
331 (deprecated_insert_raw_breakpoint)
332 (deprecated_remove_raw_breakpoint): Delete functions.
333 * breakpoint.h (deprecated_insert_raw_breakpoint)
334 (deprecated_remove_raw_breakpoint): Remove declarations.
336 2014-10-15 Pedro Alves <palves@redhat.com>
339 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
340 Delete array globals.
341 (single_step_breakpoints): New global.
342 (breakpoint_xfer_memory): Remove special handling for single-step
344 (update_breakpoints_after_exec): Delete bp_single_step
346 (detach_breakpoints): Remove special handling for single-step
348 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
349 (bpstat_stop_status): Add comment.
350 (bpstat_what, bptype_string, print_one_breakpoint_location)
351 (adjust_breakpoint_address, init_bp_location): Handle
353 (new_single_step_breakpoint): New function.
354 (set_momentary_breakpoint, bkpt_remove_location): Remove special
355 handling for single-step breakpoints.
356 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
357 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
359 (detach_single_step_breakpoints, find_single_step_breakpoint):
361 (breakpoint_has_location_inserted_here): New function.
362 (single_step_breakpoint_inserted_here_p): Rewrite.
363 * breakpoint.h: Remove FIXME.
364 (enum bptype) <bp_single_step>: New enum value.
365 (insert_single_step_breakpoint): Update comment.
366 * infrun.c (resume_cleanups)
367 (delete_step_thread_step_resume_breakpoint): Remove single-step
369 (fetch_inferior_event): Install a cleanup that removes infrun
371 (switch_back_to_stepped_thread) <expect thread advanced also>:
372 Clear step-over info.
374 2014-10-15 Pedro Alves <palves@redhat.com>
376 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
377 (delete_thread_infrun_breakpoints): New function, with parts
378 salvaged from delete_step_resume_breakpoint_callback.
379 (delete_step_thread_step_resume_breakpoint): Delete.
380 (for_each_just_stopped_thread_callback_func): New typedef.
381 (for_each_just_stopped_thread): New function.
382 (delete_just_stopped_threads_infrun_breakpoints): New function.
383 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
384 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
386 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
388 2014-10-15 Pedro Alves <palves@redhat.com>
390 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
391 trying to step past a non-steppable watchpoint.
392 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
394 * infrun.c (struct step_over_info): Add new field
395 'nonsteppable_watchpoint_p' and adjust comments.
396 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
398 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
399 (stepping_past_nonsteppable_watchpoint): New function.
400 (step_over_info_valid_p): Also return true if stepping past a
401 nonsteppable watchpoint.
402 (proceed): Adjust call to set_step_over_info. Remove reference to
404 (init_wait_for_inferior): Remove reference to init_infwait_state.
405 (waiton_ptid): Delete global.
406 (struct execution_control_state)
407 <stepped_after_stopped_by_watchpoint>: Delete field.
408 (wait_for_inferior, fetch_inferior_event): Always pass
409 minus_one_ptid to target_wait.
410 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
412 (init_infwait_state): Delete function.
413 (handle_inferior_event): Remove infwait_state handling.
414 (handle_signal_stop) <watchpoints handling>: Adjust after
415 stepped_after_stopped_by_watchpoint removal. Don't remove
416 breakpoints here nor set infwait_state. Set the thread's
417 stepping_over_watchpoint flag, and call keep_going instead.
418 (keep_going): Handle stepping_over_watchpoint. Adjust
419 set_step_over_info calls.
420 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
423 2014-10-15 Pedro Alves <palves@redhat.com>
425 * infrun.c (step_over_info_valid_p): New function.
426 (resume): Use step_over_info_valid_p instead of checking the
427 threads's trap_expected flag.
429 2014-10-15 Doug Evans <dje@google.com>
430 Walfred Tedeschi <walfred.tedeschi@intel.com>
433 * python/lib/gdb/__init__.py (packages): Add "printer".
434 * python/lib/gdb/command/bound_registers.py: Moved to ...
435 * python/lib/gdb/printer/bound_registers.py: ... here.
436 Add printer to global set of builtin printers. Rename printer from
437 "bound" to "mpx_bound128".
438 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
439 registered as global "builtin" printer.
440 (add_builtin_pretty_printer): New function.
441 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
442 gdb/printer/__init__.py.
444 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
446 * Makefile.in (SFILES): Remove d-support.c.
447 (COMMON_OBS): Remove d-support.o.
448 * d-lang.h (d_parse_symbol): Remove declaration.
449 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
450 * d-support.c: Remove file.
452 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
454 * gdb/infrun.c (process_event_stop_test): Apply
455 gdbarch_addr_bits_remove to longjmp resume address.
457 2014-10-15 Pedro Alves <palves@redhat.com>
459 * regformats/microblaze.dat: Delete file.
461 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
463 * features/Makefile (microblaze-expedite): Replace pc with rpc.
464 * regformats/microblaze-with-stack-protect.dat: Regenerate.
466 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
468 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
471 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
475 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
478 2014-10-14 Joel Brobecker <brobecker@adacore.com>
480 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
481 of the case where the second operand is a pointer.
482 <BINOP_SUB>: Likewise.
484 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
486 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
487 only if it is not NULL.
488 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
489 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
490 (struct probe_ops) <clear_semaphore>: Likewise.
491 * tracepoint.c (start_tracing): Call set_semaphore only if it is
493 (stop_tracing): Likewise, for clear_semaphore.
495 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
497 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
498 using language_c, instead of current_language.
500 2014-10-13 Doug Evans <dje@google.com>
502 * python/py-objfile.c (objfpy_initialize): New function.
503 (objfpy_new, objfile_to_objfile_object): Call it.
504 * python/py-progspace.c (pspy_initialize): New function.
505 (pspy_new, pspace_to_pspace_object): Call it.
507 2014-10-13 Miroslav Franc <mfranc@redhat.com>
508 Jan Kratochvil <jan.kratochvil@redhat.com>
510 Fix "save breakpoints" for "catch" command.
511 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
514 2014-10-12 Miroslav Franc <mfranc@redhat.com>
516 Fix "save breakpoints" for "disable $bpnum" command.
517 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
519 2014-10-10 Pedro Alves <palves@redhat.com>
521 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
522 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
523 (HFILES_NO_SRCDIR): Remove solib-irix.h.
524 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
526 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
527 * configure.ac: Remove references to IRIX.
528 * configure.host: Add *-*-irix* to the obsolete hosts section.
529 Remove all other references to irix.
530 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
533 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
535 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
536 isn't valid, release the tdesc arch data and return NULL.
538 2014-10-10 Pedro Alves <palves@redhat.com>
540 * linux-tdep.c: Include observer.h.
541 (linux_inferior_data): New global.
542 (struct linux_info): New structure.
543 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
544 (get_linux_inferior_data): New functions.
545 (linux_vsyscall_range): Rename to ...
546 (linux_vsyscall_range_raw): ... this.
547 (linux_vsyscall_range): New function; handles caching.
548 (_initialize_linux_tdep): Register linux_inferior_data. Install
549 inferior_exit and inferior_appeared observers.
551 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
552 Pedro Alves <palves@redhat.com>
555 * solib-svr4.c (svr4_read_so_list): Rename to ...
556 (svr4_current_sos_1): ... this and change the function comment.
557 (svr4_current_sos): New function.
559 2014-10-10 Pedro Alves <palves@redhat.com>
561 * arch-utils.c (default_vsyscall_range): New function.
562 * arch-utils.h (default_vsyscall_range): New declaration.
563 * gdbarch.sh (vsyscall_range): New hook.
564 * gdbarch.h, gdbarch.c: Regenerate.
565 * linux-tdep.c (linux_vsyscall_range): New function.
566 (linux_init_abi): Install linux_vsyscall_range as
567 vsyscall_range gdbarch hook.
568 * memrange.c (address_in_mem_range): New function.
569 * memrange.h (address_in_mem_range): New declaration.
570 * symfile-mem.c (find_vdso_size): Delete function.
571 (add_vsyscall_page): Use gdbarch_vsyscall_range.
573 2014-10-10 Pedro Alves <palves@redhat.com>
575 * infrun.c (normal_stop): Fix typo in comment.
577 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
580 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
581 typo when using logical AND to determine instruction type.
583 2014-10-09 Yao Qi <yao@codesourcery.com>
585 * infrun.c (handle_signal_stop): Remove local variable
588 2014-10-08 Stan Shebs <stan@codesourcery.com>
590 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
592 2014-10-08 Gary Benson <gbenson@redhat.com>
594 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
596 2014-10-08 Gary Benson <gbenson@redhat.com>
598 * common/common-defs.h: Include common-exceptions.h.
599 * exceptions.h: Do not include common-exceptions.h.
601 2014-10-08 Gary Benson <gbenson@redhat.com>
603 * common/common-defs.h: Include cleanups.h.
604 * common/common-exceptions.c: Do not include cleanups.h.
607 2014-10-08 Gary Benson <gbenson@redhat.com>
609 * ada-lang.c: Do not include exceptions.h.
610 * ada-valprint.c: Likewise.
611 * amd64-tdep.c: Likewise.
612 * auto-load.c: Likewise.
614 * break-catch-throw.c: Likewise.
615 * breakpoint.c: Likewise.
616 * btrace.c: Likewise.
617 * c-lang.c: Likewise.
618 * cli/cli-cmds.c: Likewise.
619 * cli/cli-interp.c: Likewise.
620 * cli/cli-script.c: Likewise.
621 * completer.c: Likewise.
622 * corefile.c: Likewise.
623 * corelow.c: Likewise.
624 * cp-abi.c: Likewise.
625 * cp-support.c: Likewise.
626 * cp-valprint.c: Likewise.
627 * darwin-nat.c: Likewise.
628 * dwarf2-frame-tailcall.c: Likewise.
629 * dwarf2-frame.c: Likewise.
630 * dwarf2loc.c: Likewise.
631 * dwarf2read.c: Likewise.
633 * event-loop.c: Likewise.
634 * event-top.c: Likewise.
635 * f-valprint.c: Likewise.
636 * frame-unwind.c: Likewise.
638 * gdbtypes.c: Likewise.
639 * gnu-v2-abi.c: Likewise.
640 * gnu-v3-abi.c: Likewise.
641 * guile/scm-auto-load.c: Likewise.
642 * guile/scm-breakpoint.c: Likewise.
643 * guile/scm-cmd.c: Likewise.
644 * guile/scm-frame.c: Likewise.
645 * guile/scm-lazy-string.c: Likewise.
646 * guile/scm-param.c: Likewise.
647 * guile/scm-symbol.c: Likewise.
648 * guile/scm-type.c: Likewise.
649 * hppa-hpux-tdep.c: Likewise.
650 * i386-tdep.c: Likewise.
651 * inf-loop.c: Likewise.
652 * infcall.c: Likewise.
653 * infcmd.c: Likewise.
654 * infrun.c: Likewise.
655 * interps.c: Likewise.
656 * interps.h: Likewise.
658 * linespec.c: Likewise.
659 * linux-nat.c: Likewise.
660 * linux-thread-db.c: Likewise.
661 * m32r-rom.c: Likewise.
663 * memory-map.c: Likewise.
664 * mi/mi-cmd-break.c: Likewise.
665 * mi/mi-cmd-stack.c: Likewise.
666 * mi/mi-interp.c: Likewise.
667 * mi/mi-main.c: Likewise.
668 * monitor.c: Likewise.
669 * nto-procfs.c: Likewise.
670 * objc-lang.c: Likewise.
671 * p-valprint.c: Likewise.
673 * ppc-linux-tdep.c: Likewise.
674 * printcmd.c: Likewise.
676 * python/py-auto-load.c: Likewise.
677 * python/py-breakpoint.c: Likewise.
678 * python/py-cmd.c: Likewise.
679 * python/py-finishbreakpoint.c: Likewise.
680 * python/py-frame.c: Likewise.
681 * python/py-framefilter.c: Likewise.
682 * python/py-function.c: Likewise.
683 * python/py-gdb-readline.c: Likewise.
684 * python/py-inferior.c: Likewise.
685 * python/py-infthread.c: Likewise.
686 * python/py-lazy-string.c: Likewise.
687 * python/py-linetable.c: Likewise.
688 * python/py-param.c: Likewise.
689 * python/py-prettyprint.c: Likewise.
690 * python/py-symbol.c: Likewise.
691 * python/py-type.c: Likewise.
692 * python/py-value.c: Likewise.
693 * python/python-internal.h: Likewise.
694 * python/python.c: Likewise.
695 * record-btrace.c: Likewise.
696 * record-full.c: Likewise.
697 * regcache.c: Likewise.
698 * remote-fileio.c: Likewise.
699 * remote-mips.c: Likewise.
700 * remote.c: Likewise.
701 * rs6000-aix-tdep.c: Likewise.
702 * rs6000-nat.c: Likewise.
704 * solib-darwin.c: Likewise.
705 * solib-dsbt.c: Likewise.
706 * solib-frv.c: Likewise.
707 * solib-ia64-hpux.c: Likewise.
708 * solib-spu.c: Likewise.
709 * solib-svr4.c: Likewise.
711 * spu-tdep.c: Likewise.
713 * stap-probe.c: Likewise.
714 * symfile-mem.c: Likewise.
715 * symmisc.c: Likewise.
716 * target.c: Likewise.
717 * thread.c: Likewise.
719 * tracepoint.c: Likewise.
720 * tui/tui-interp.c: Likewise.
721 * typeprint.c: Likewise.
723 * valarith.c: Likewise.
724 * valops.c: Likewise.
725 * valprint.c: Likewise.
727 * varobj.c: Likewise.
728 * windows-nat.c: Likewise.
729 * xml-support.c: Likewise.
731 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
733 * mips-tdep.c (add_offset_16): Rewrite to implement what the
735 (extended_mips16_next_pc): Update accordingly.
737 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
739 * mips-tdep.c (mips16_instruction_is_compact_branch): New
741 (micromips_instruction_is_compact_branch): Likewise.
742 (mips16_scan_prologue): Terminate scanning upon seeing a branch
743 or a compact jump, reaching a jump delay slot, or seeing a
744 second non-prologue instruction.
745 (micromips_scan_prologue): Also terminate scanning upon seeing a
746 compact branch or jump, or reaching a branch or jump delay slot.
747 (mips32_scan_prologue): Terminate scanning upon reaching a branch
748 or jump delay slot, or seeing a second non-prologue instruction.
749 (mips32_instruction_has_delay_slot): Retain instruction
750 examination code only, update arguments accordingly and move
751 instruction fetch pieces to...
752 (mips32_insn_at_pc_has_delay_slot): ... this new function.
753 (micromips_instruction_has_delay_slot): Likewise and to...
754 (micromips_insn_at_pc_has_delay_slot): ... this new function.
755 (mips16_instruction_has_delay_slot): Likewise and to...
756 (mips16_insn_at_pc_has_delay_slot): ... this new function.
757 (mips_single_step_through_delay): Update accordingly.
758 (mips_adjust_breakpoint_address): Likewise.
760 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
762 * mips-tdep.c (micromips_instruction_has_delay_slot): When
763 !mustbe32 also return 1 for 32-bit instructions.
764 (mips16_instruction_has_delay_slot): Likewise. Add an
767 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
769 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
772 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
774 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
776 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
777 for the breakpoint's address. Don't preinitialize `placed_size'.
778 (insert_bp_location): Set `reqstd_address' rather than
780 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
781 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
783 (bkpt_remove_location): Likewise.
784 (deprecated_insert_raw_breakpoint): Likewise.
785 (deprecated_remove_raw_breakpoint): Likewise.
786 (find_single_step_breakpoint): Likewise.
787 * mem-break.c (default_memory_insert_breakpoint): Use
788 `reqstd_address' for the breakpoint's address. Don't set
789 `placed_address' or `placed_size' if breakpoint contents couldn't
790 have been determined.
791 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
792 the breakpoint's address.
793 (remote_insert_hw_breakpoint): Likewise. Don't set
794 `placed_address' or `placed_size' if breakpoint couldn't have been
796 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
797 `reqstd_address' for the breakpoint's address.
798 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
799 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
800 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
801 * microblaze-linux-tdep.c
802 (microblaze_linux_memory_remove_breakpoint): Likewise.
803 * monitor.c (monitor_insert_breakpoint): Likewise.
804 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
805 (procfs_insert_hw_breakpoint): Likewise.
806 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
807 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
808 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
809 * remote-mips.c (mips_insert_breakpoint): Likewise.
810 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
812 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
814 * valops.c (value_assign): Check for bit field assignments
815 before calling architecture-specific register value
816 conversion functions.
818 2014-10-03 Pierre Muller <muller@sourceware.org>
820 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
822 2014-10-02 Pedro Alves <palves@redhat.com>
824 * breakpoint.c (breakpoints_should_be_inserted_now): Use
825 threads_are_executing.
826 * breakpoint.h (breakpoints_should_be_inserted_now): Add
828 * gdbthread.h (threads_are_executing): Declare.
829 (handle_signal_stop) <random signals>: Don't print about the
830 signal here if stopping.
831 (end_stepping_range): Don't notify observers here.
832 (normal_stop): Update the thread list. If stopped by a random
833 signal or a stepping range ended, notify observers.
834 * thread.c (threads_executing): New global.
835 (init_thread_list): Clear 'threads_executing'.
836 (set_executing): Set or clear 'threads_executing'.
837 (threads_are_executing): New function.
838 (update_threads_executing): New function.
839 (update_thread_list): Use it.
841 2014-10-02 Pedro Alves <palves@redhat.com>
844 * breakpoint.c (update_breakpoints_after_exec): Don't create
845 overlay, longjmp, std terminate nor exception breakpoints here.
847 2014-10-02 Pedro Alves <palves@redhat.com>
849 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
851 * inferior.c (find_inferior_for_program_space): Give preference to
852 the current inferior.
853 * inferior.h (find_inferior_for_program_space): Update comment.
854 * progspace.c (switch_to_program_space_and_thread): Prefer the
855 current inferior if it's bound to the program space requested. If
856 the inferior found doesn't have a PID yet, don't bother looking up
858 * progspace.h (switch_to_program_space_and_thread): Adjust
860 * thread.c (any_thread_of_process, any_live_thread_of_process):
861 Give preference to the current thread.
863 2014-10-01 Pedro Alves <palves@redhat.com>
865 * breakpoint.c (insert_bp_location): Error out if inserting a
866 software breakpoint at a read-only address.
867 * target.c (memory_xfer_check_region): New function, factored out
869 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
871 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
872 against the memory region attributes.
874 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
876 * NEWS: Announce new exit-code field in -list-thread-groups
878 * inferior.c (exit_inferior_1): Don't clear exit code.
879 (inferior_appeared): Clear exit code.
880 * mi/mi-main.c (print_one_inferior): Add printing of the exit
883 2014-10-01 Pedro Alves <palves@redhat.com>
885 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
886 GENERATED" along with emacs/vi read-only markers.
887 * regformats/aarch64.dat: Regenerate.
888 * regformats/arm-with-iwmmxt.dat: Regenerate.
889 * regformats/arm-with-neon.dat: Regenerate.
890 * regformats/arm-with-vfpv2.dat: Regenerate.
891 * regformats/arm-with-vfpv3.dat: Regenerate.
892 * regformats/i386/amd64-avx-linux.dat: Regenerate.
893 * regformats/i386/amd64-avx.dat: Regenerate.
894 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
895 * regformats/i386/amd64-avx512.dat: Regenerate.
896 * regformats/i386/amd64-linux.dat: Regenerate.
897 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
898 * regformats/i386/amd64-mpx.dat: Regenerate.
899 * regformats/i386/amd64.dat: Regenerate.
900 * regformats/i386/i386-avx-linux.dat: Regenerate.
901 * regformats/i386/i386-avx.dat: Regenerate.
902 * regformats/i386/i386-avx512-linux.dat: Regenerate.
903 * regformats/i386/i386-avx512.dat: Regenerate.
904 * regformats/i386/i386-linux.dat: Regenerate.
905 * regformats/i386/i386-mmx-linux.dat: Regenerate.
906 * regformats/i386/i386-mmx.dat: Regenerate.
907 * regformats/i386/i386-mpx-linux.dat: Regenerate.
908 * regformats/i386/i386-mpx.dat: Regenerate.
909 * regformats/i386/i386.dat: Regenerate.
910 * regformats/i386/x32-avx-linux.dat: Regenerate.
911 * regformats/i386/x32-avx.dat: Regenerate.
912 * regformats/i386/x32-avx512-linux.dat: Regenerate.
913 * regformats/i386/x32-avx512.dat: Regenerate.
914 * regformats/i386/x32-linux.dat: Regenerate.
915 * regformats/i386/x32.dat: Regenerate.
916 * regformats/microblaze-with-stack-protect.dat: Regenerate.
917 * regformats/mips-dsp-linux.dat: Regenerate.
918 * regformats/mips-linux.dat: Regenerate.
919 * regformats/mips64-dsp-linux.dat: Regenerate.
920 * regformats/mips64-linux.dat: Regenerate.
921 * regformats/nios2-linux.dat: Regenerate.
922 * regformats/rs6000/powerpc-32.dat: Regenerate.
923 * regformats/rs6000/powerpc-32l.dat: Regenerate.
924 * regformats/rs6000/powerpc-64l.dat: Regenerate.
925 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
926 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
927 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
928 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
929 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
930 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
931 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
932 * regformats/s390-linux32.dat: Regenerate.
933 * regformats/s390-linux32v1.dat: Regenerate.
934 * regformats/s390-linux32v2.dat: Regenerate.
935 * regformats/s390-linux64.dat: Regenerate.
936 * regformats/s390-linux64v1.dat: Regenerate.
937 * regformats/s390-linux64v2.dat: Regenerate.
938 * regformats/s390-te-linux64.dat: Regenerate.
939 * regformats/s390x-linux64.dat: Regenerate.
940 * regformats/s390x-linux64v1.dat: Regenerate.
941 * regformats/s390x-linux64v2.dat: Regenerate.
942 * regformats/s390x-te-linux64.dat: Regenerate.
943 * regformats/tic6x-c62x-linux.dat: Regenerate.
944 * regformats/tic6x-c62x.dat: Regenerate.
945 * regformats/tic6x-c64x-linux.dat: Regenerate.
946 * regformats/tic6x-c64x.dat: Regenerate.
947 * regformats/tic6x-c64xp-linux.dat: Regenerate.
948 * regformats/tic6x-c64xp.dat: Regenerate.
950 2014-10-01 Pedro Alves <palves@redhat.com>
952 * features/Makefile: Update comments.
953 (XMLTOC): List all xml files we build C files from.
954 (clean-cfiles): New rule.
956 2014-10-01 Pedro Alves <palves@redhat.com>
958 * features/i386/amd64-avx512-linux.c: Regenerate.
959 * features/i386/amd64-avx512.c: Regenerate.
960 * features/i386/x32-avx512-linux.c: Regenerate.
961 * features/i386/x32-avx512.c: Regenerate.
963 2014-10-01 Pedro Alves <palves@redhat.com>
965 * features/Makefile (WHICH): Remove arm-with-m,
966 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
968 2014-10-01 Pedro Alves <palves@redhat.com>
970 * features/Makefile (clean): New rule.
972 2014-10-01 Pedro Alves <palves@redhat.com>
974 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
975 (zmm14h): Add missing end quotes.
977 2014-10-01 Pedro Alves <palves@redhat.com>
979 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
980 * features/aarch64.c: Regenerate.
982 2014-09-30 Don Breazeal <donb@codesourcery.com>
984 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
985 code so as to work with follow_fork_inferior.
986 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
987 (inf_ttrace_create_inferior): Remove reference to
988 inf_ttrace_vfork_ppid.
989 (inf_ttrace_attach): Ditto.
990 (inf_ttrace_detach): Ditto.
991 (inf_ttrace_kill): Use current_inferior instead of
992 inf_ttrace_vfork_ppid.
993 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
994 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
995 inferior away from the parent.
996 * infrun.c (follow_fork): Call follow_fork_inferior instead of
998 (follow_fork_inferior): New function.
999 (follow_inferior_reset_breakpoints): Make function static.
1000 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1001 * linux-nat.c (linux_child_follow_fork): Move target-independent
1002 code to infrun.c:follow_fork_inferior.
1004 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1006 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1007 * gdbarch.c: Regenerate.
1008 * gdbarch.h: Likewise.
1009 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1010 gdbarch method 'regset_from_core_section'.
1011 (get_core_register_section): Remove handling for the case that
1012 regset == NULL and regset_from_core_section is defined.
1013 (get_core_registers): Drop check for deleted method.
1014 * procfs.c (procfs_do_thread_registers): Adjust comment.
1016 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1018 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1019 (linux_nat_make_corefile_notes): Remove.
1020 (linux_target_install_ops): Do not set target method
1021 'make_corefile_notes'.
1022 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1024 (linux_corefile_thread_callback): Instead of args->collect, call
1025 linux_collect_thread_registers.
1026 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1027 NULL unless there is a regset iterator.
1028 (linux_make_corefile_notes_1): Remove.
1029 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1030 by linux_make_corefile_notes.
1031 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1033 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1035 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1036 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1038 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1040 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1042 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1043 (xtensa_iterate_over_regset_sections): New.
1044 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1046 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1048 * vax-tdep.c (vax_regset_from_core_section): Remove.
1049 (vax_iterate_over_regset_sections): New.
1050 (vax_gdbarch_init): Adjust gdbarch initialization.
1052 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1054 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1055 (tilegx_regset_from_core_section): Remove.
1056 (tilegx_iterate_over_regset_sections): New.
1057 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1059 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1061 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1062 (sparc_iterate_over_regset_sections): New.
1063 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1064 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1066 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1067 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1068 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1069 target method 'make_corefile_notes'.
1071 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1073 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1074 'sizeof_gregset' and 'sizeof_fpregset'.
1075 * sh-tdep.c (sh_regset_from_core_section): Remove.
1076 (sh_iterate_over_regset_sections): New.
1077 (sh_gdbarch_init): Adjust gdbarch initialization.
1078 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1080 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1083 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1085 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1086 (score7_linux_iterate_over_regset_sections): New.
1087 (score_gdbarch_init): Adjust gdbarch initialization.
1089 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1091 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1093 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1094 method 'make_corefile_notes'.
1095 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1096 (ppcfbsd_regset_from_core_section): Remove.
1097 (ppcfbsd_iterate_over_regset_sections): New.
1098 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1100 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1101 (ppcnbsd_iterate_over_regset_sections): New.
1102 (ppcnbsd_init_abi): Adjust.
1103 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1104 (ppcobsd_iterate_over_regset_sections): New.
1105 (ppcobsd_init_abi): Adjust.
1106 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1107 (rs6000_aix_iterate_over_regset_sections): New.
1108 (rs6000_aix_init_osabi): Adjust.
1110 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1112 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1113 (nios2_regset_from_core_section): Remove.
1114 (nios2_iterate_over_regset_sections): New.
1115 (nios2_linux_init_abi): Adjust gdbarch initialization.
1117 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1119 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1120 (am33_iterate_over_regset_sections): New.
1121 (am33_linux_init_osabi): Adjust gdbarch initialization.
1123 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1125 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1126 (mips_linux_iterate_over_regset_sections): New.
1127 (mips_linux_init_abi): Adjust gdbarch initialization.
1128 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1129 (mips64obsd_iterate_over_regset_sections): New.
1130 (mips64obsd_init_abi): Adjust.
1131 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1132 (mipsnbsd_iterate_over_regset_sections): New.
1133 (mipsnbsd_init_abi): Adjust.
1135 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1137 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1138 (m88k_iterate_over_regset_sections): New.
1139 (m88k_gdbarch_init): Adjust gdbarch initialization.
1141 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1143 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1144 (ia64_linux_iterate_over_regset_sections): New.
1145 (ia64_linux_init_abi): Adjust gdbarch initialization.
1147 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1149 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1150 (m68kbsd_iterate_over_regset_sections): New.
1151 (m68kbsd_init_abi): Adjust gdbarch initialization.
1152 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1153 (m68k_linux_iterate_over_regset_sections): New.
1154 (m68k_linux_init_abi): Adjust gdbarch initialization.
1156 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1158 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1159 (m32r_linux_regset_from_core_section): Remove.
1160 (m32r_linux_iterate_over_regset_sections): New.
1161 (m32r_linux_init_abi): Adjust gdbarch initialization.
1163 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1165 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1166 (amd64obsd_iterate_over_regset_sections): New.
1167 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1168 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1170 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1171 regset_from_core_section initialization.
1172 * i386-tdep.c (i386_regset_from_core_section): Remove.
1173 (i386_iterate_over_regset_sections): New.
1174 (i386_gdbarch_init): Adjust gdbarch initialization.
1175 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1176 (i386_iterate_over_regset_sections): New prototype.
1177 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1179 (i386obsd_aout_iterate_over_regset_sections): New.
1180 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1181 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1183 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1184 (amd64fbsd_init_abi): Call fbsd_init_abi.
1185 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1186 (i386fbsd4_init_abi): Call fbsd_init_abi.
1187 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1188 target method 'make_corefile_notes'.
1189 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1191 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1193 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1194 (hppa_hpux_iterate_over_regset_sections): New.
1195 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1196 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1197 (hppa_linux_iterate_over_regset_sections): New.
1198 (hppa_linux_init_abi): Adjust.
1199 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1200 (hppanbsd_iterate_over_regset_sections): New.
1201 (hppanbsd_init_abi): Adjust.
1202 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1203 (hppaobsd_iterate_over_regset_sections): New.
1204 (hppaobsd_init_abi): Adjust.
1206 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1208 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1209 (frv_linux_iterate_over_regset_sections): New.
1210 (frv_linux_init_abi): Adjust gdbarch initialization.
1212 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1214 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1215 (armbsd_iterate_over_regset_sections): New prototype.
1216 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1217 (armbsd_iterate_over_regset_sections): New.
1218 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1221 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1223 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1224 (alpha_linux_iterate_over_regset_sections): New.
1225 (alpha_linux_init_abi): Adjust gdbarch initialization.
1226 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1228 (alphanbsd_iterate_over_regset_sections): New prototype.
1230 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1232 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1234 (aarch64_linux_iterate_over_regset_sections): New.
1235 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1237 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1239 * fbsd-tdep.c: New file.
1240 * fbsd-tdep.h: New file.
1241 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1242 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1243 (ALLDEPFILES): Add fbsd-tdep.c.
1245 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1247 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1249 * gdbarch.h: Regenerate.
1250 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1252 (get_core_register_section): Add parameter 'regset' and use it, if
1253 set. Add parameter 'min_size' and verify the bfd section size
1255 (get_core_registers_cb): Add parameter 'regset' and pass it to
1256 get_core_register section. For the "standard" register sections
1257 ".reg" and ".reg2", set an appropriate default for human_name.
1258 (get_core_registers): Don't abort when the gdbarch has an iterator
1259 but no regset_from_core_section. Add NULL/0 for parameters
1260 'regset'/'min_size' in calls to get_core_register_section.
1261 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1262 'regset' and use it instead of calling the
1263 regset_from_core_section gdbarch method.
1264 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1265 * i386-tdep.c (i386_supply_xstateregset)
1266 (i386_collect_xstateregset, i386_xstateregset): Moved to
1268 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1270 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1271 core file support only if the regset iterator hasn't been set.
1272 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1273 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1274 Moved from i386-tdep.c and renamed to *_linux*.
1275 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1276 each callback invocation. Allow any .reg-xstate size when reading
1278 * amd64-tdep.c (amd64_supply_xstateregset)
1279 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1281 (amd64_regset_from_core_section): Remove.
1282 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1283 install an amd64-specific regset_from_core_section gdbarch method.
1284 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1285 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1286 Moved from amd64-tdep.c and renamed to *_linux*.
1287 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1288 to each callback invocation. Allow any .reg-xstate size when
1289 reading from a core file.
1290 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1291 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1292 each callback invocation.
1293 (arm_linux_init_abi): No longer set the regset_from_core_section
1295 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1296 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1297 each callback invocation.
1298 (ppc_linux_init_abi): No longer set the regset_from_core_section
1300 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1301 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1302 (s390_regset_from_core_section): Remove.
1303 (s390_iterate_over_regset_sections): Add regset parameter to each
1304 callback invocation.
1305 (s390_gdbarch_init): No longer set the regset_from_core_section
1306 gdbarch method. Drop initialization of deleted tdep fields.
1308 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1310 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1311 (amd64_linux_iterate_over_regset_sections): New.
1312 (amd64_linux_init_abi_common): Don't install the regset section
1313 list, but the new iterator in gdbarch.
1314 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1315 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1316 (arm_linux_iterate_over_regset_sections): ...here. New function.
1317 (arm_linux_init_abi): Set iterator instead of section list.
1318 * corelow.c (get_core_registers_cb): New function, logic moved
1320 (get_core_registers): ...loop body here. Use new iterator method
1321 instead of walking through the regset section list.
1322 * gdbarch.sh: Remove 'core_regset_sections'. New method
1323 'iterate_over_regset_sections'. New typedef
1324 'iterate_over_regset_sections_cb'.
1325 * gdbarch.c: Regenerate.
1326 * gdbarch.h: Likewise.
1327 * i386-linux-tdep.c (i386_linux_regset_sections)
1328 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1330 (i386_linux_iterate_over_regset_sections): New.
1331 (i386_linux_init_abi): Don't choose a regset section list, but
1332 install new iterator in gdbarch.
1333 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1334 (linux_collect_regset_section_cb): New function, logic moved
1336 (linux_collect_thread_registers): ...loop body here. Use iterator
1337 method instead of walking through list.
1338 (linux_make_corefile_notes_1): Check for presence of iterator
1339 method instead of regset section list.
1340 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1341 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1342 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1343 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1344 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1345 (ppc_linux_init_abi): Don't choose from above regset section
1346 lists, but install new iterator in gdbarch.
1347 * regset.h (struct core_regset_section): Remove.
1348 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1349 have_linux_v1, have_linux_v2, and have_tdb.
1350 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1351 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1352 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1353 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1354 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1355 (s390_iterate_over_regset_sections): ...here. New function. Use
1357 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1358 regset section lists, but install new iterator.
1360 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1362 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1364 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1366 * progspace.c (print_program_space): Don't prune program spaces
1367 before printing them.
1369 2014-09-25 Pedro Alves <palves@redhat.com>
1371 * infrun.c (user_visible_resume_ptid): Don't check
1372 singlestep_breakpoints_inserted_p.
1374 2014-09-25 Pedro Alves <palves@redhat.com>
1376 * breakpoint.c (should_be_inserted): Add debug output.
1378 2014-09-25 Pedro Alves <palves@redhat.com>
1380 * infrun.c (stepping_past_instruction_at)
1381 (clear_exit_convenience_vars): Point at infrun.h instead of
1383 (handle_signal_stop): Fix typo.
1385 2014-09-24 Yao Qi <yao@codesourcery.com>
1387 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1390 2014-09-22 Gary Benson <gbenson@redhat.com>
1392 * target.c (target_stop): Updated comment.
1394 2014-09-22 Gary Benson <gbenson@redhat.com>
1396 * target/target.h (target_stop_ptid): Renamed as...
1397 (target_stop_and_wait): New function. Updated comment.
1399 (target_continue_ptid): Renamed as...
1400 (target_continue_no_signal): New function. Updated comment.
1403 2014-09-22 Pedro Alves <palves@redhat.com>
1405 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1407 * breakpoint.c (enum ugll_insert_mode): New enum.
1408 (always_inserted_mode): Now a plain boolean.
1409 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1410 (breakpoints_always_inserted_mode): Delete.
1411 (breakpoints_should_be_inserted_now): New function.
1412 (insert_breakpoints): Pass UGLL_INSERT to
1413 update_global_location_list instead of calling
1414 insert_breakpoint_locations manually.
1415 (create_solib_event_breakpoint_1): New, factored out from ...
1416 (create_solib_event_breakpoint): ... this.
1417 (create_and_insert_solib_event_breakpoint): Use
1418 create_solib_event_breakpoint_1 instead of calling
1419 insert_breakpoint_locations manually.
1420 (update_global_location_list): Change parameter type from boolean
1421 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1422 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1423 (update_global_location_list_nothrow): Change parameter type from
1424 boolean to enum ugll_insert_mode.
1425 (_initialize_breakpoint): "breakpoint always-inserted" option is
1426 now a boolean command. Update help text.
1427 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1428 (breakpoints_should_be_inserted_now): New declaration.
1429 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1430 Remove breakpoints_always_inserted_mode check.
1431 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1432 * remote.c (remote_start_remote): Likewise.
1434 2014-09-22 Pedro Alves <palves@redhat.com>
1436 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1437 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1438 Instead, pass UGLL_INSERT to update_global_location_list.
1439 (update_global_location_list): Change parameter type from boolean
1440 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1441 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1442 (create_solib_event_breakpoint_1): New, factored out from ...
1443 (create_solib_event_breakpoint): ... this.
1444 (create_and_insert_solib_event_breakpoint): Use
1445 create_solib_event_breakpoint_1 instead of calling
1446 insert_breakpoint_locations manually.
1447 (update_global_location_list): Handle UGLL_INSERT.
1449 2014-09-22 Pedro Alves <palves@redhat.com>
1451 * breakpoint.c (enum ugll_insert_mode): New enum.
1452 (update_global_location_list)
1453 (update_global_location_list_nothrow): Change parameter type from
1454 boolean to enum ugll_insert_mode. All callers adjusted.
1456 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1458 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1459 SystemTap support in GDB.
1461 2014-09-19 Don Breazeal <donb@codesourcery.com>
1463 * linux-nat.c (linux_handle_extended_wait): Call
1464 linux_ptrace_get_extended_event.
1465 (wait_lwp): Call linux_is_extended_waitstatus.
1466 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1467 and linux_is_extended_waitstatus.
1468 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1469 linux_ptrace_get_extended_event.
1470 (linux_ptrace_get_extended_event): New function.
1471 (linux_is_extended_waitstatus): New function.
1472 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1473 (linux_is_extended_waitstatus): New declarations.
1475 2014-09-19 Yao Qi <yao@codesourcery.com>
1477 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1478 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1479 comments. Callers update.
1480 (dwarf_decode_lines): Likewise.
1481 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1482 comments. Skip the line table if 'lowpc' is greater than
1483 'address'. Don't check
1484 dwarf2_per_objfile->has_section_at_zero.
1486 2014-09-18 Doug Evans <dje@google.com>
1488 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1489 * python/py-symtab.c (stpy_get_producer): New function.
1490 (symtab_object_getset): Add "producer" attribute.
1492 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1495 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1496 (do_captured_read_memory_integer): Remove.
1497 (safe_read_memory_integer): Use target_read_memory directly instead
1498 of catching errors in do_captured_read_memory_integer.
1500 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1502 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1505 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1507 * objc-lang.c (find_implementation_from_class): Remove dead code.
1509 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1512 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1513 "fprintf_unfiltered (gdb_stdlog...)".
1515 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1517 PR breakpoints/12526
1518 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1520 * breakpoint.c (watch_command_1): Use these fields to retain
1521 bitfield information.
1522 (extract_bitfield_from_watchpoint_value): New function.
1523 (watchpoint_check): Use it.
1524 (update_watchpoint): Use it. Optimize the address and length of a
1525 HW watchpoint pointing to a bitfield.
1526 * value.h (unpack_value_bitfield): New prototype.
1527 * value.c (unpack_value_bitfield): Make extern.
1529 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1531 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1533 * gnu-nat.c (inf_threads): New function.
1534 * gnu-nat.h (inf_threads_ftype): New typedef.
1535 (inf_threads): New declaration.
1536 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1537 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1538 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1539 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1540 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1541 (i386_gnu_dr_get_control): New functions.
1542 (reg_addr): New structure.
1543 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1544 i386 debugging register hooks.
1545 * NEWS: Mention this.
1547 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1549 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1550 vector data transfer instructions.
1551 (arm_record_coproc_data_proc): Updated.
1553 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1555 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1556 arm_record_exreg_ld_st_insn.
1557 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1560 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1562 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1563 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1564 processing instructions.
1566 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1568 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1569 for advance SIMD struct ld/st insn.
1570 (thumb2_record_decode_insn_handler): Replace stub handler with
1571 thumb2_record_asimd_struct_ld_st.
1573 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1575 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1576 for asimd, vfp and coprocessor insns.
1577 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1578 and coprocessor insns.
1579 (thumb2_record_coproc_insn): New function.
1580 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1582 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1585 2014-09-13 Doug Evans <xdje42@gmail.com>
1587 * NEWS: Mention new "queue-signal" command.
1588 * infcmd.c (queue_signal_command): New function.
1589 (_initialize_infcmd): Add new queue-signal command.
1591 2014-09-13 Doug Evans <xdje42@gmail.com>
1593 * linux-nat.c (wait_lwp): Add debugging printf.
1594 (linux_nat_wait_1): Ditto.
1596 2014-09-12 Pedro Alves <palves@redhat.com>
1598 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1599 (create_and_insert_solib_event_breakpoint): New functions.
1600 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1601 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1602 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1603 (remove_dbx_link_breakpoint): Delete function.
1604 (insert_dbx_link_bpt_in_file): Use
1605 create_and_insert_solib_event_breakpoint instead of
1606 deprecated_insert_raw_breakpoint.
1607 (procfs_wait): Don't check whether we hit __dbx_link here.
1608 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1610 * solib-irix.c (base_breakpoint): Delete global.
1611 (disable_break): Delete function.
1612 (enable_break): Use create_solib_event_breakpoint
1613 instead of deprecated_insert_raw_breakpoint.
1614 (irix_solib_handle_event): New function.
1615 (irix_solib_create_inferior_hook): Don't run the target or disable
1616 the mapping-complete breakpoint here.
1617 (_initialize_irix_solib): Install irix_solib_handle_event as
1618 so_ops->handle_event hook.
1620 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1621 Ulrich Weigand <uweigand@de.ibm.com>
1624 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1625 instead of read_memory_unsigned_integer.
1627 2014-09-12 Gary Benson <gbenson@redhat.com>
1629 * nat/linux-waitpid.c: Include common-defs.h.
1630 [GDBSERVER]: Add FIXME comment.
1631 [!GDBSERVER]: Don't include defs.h or signal.h.
1632 (linux_debug) [!GDBSERVER]: Remove empty block.
1634 2014-09-12 Gary Benson <gbenson@redhat.com>
1636 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1637 Don't include defs.h or server.h.
1639 2014-09-12 Gary Benson <gbenson@redhat.com>
1641 * nat/linux-btrace.c: Include common-defs.h.
1642 Don't include defs.h, server.h or gdbthread.h.
1643 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1645 2014-09-12 Gary Benson <gbenson@redhat.com>
1647 * common/agent.c: Include common-defs.h.
1648 Don't include defs.h or server.h.
1649 * common/buffer.c: Likewise.
1650 * common/common-debug.c: Likewise.
1651 * common/common-utils.c: Likewise.
1652 * common/errors.c: Likewise.
1653 * common/filestuff.c: Likewise.
1654 * common/format.c: Likewise.
1655 * common/gdb_vecs.c: Likewise.
1656 * common/print-utils.c: Likewise.
1657 * common/ptid.c: Likewise.
1658 * common/rsp-low.c: Likewise.
1659 * common/signals.c: Likewise.
1660 * common/vec.c: Likewise.
1661 * common/xml-utils.c: Likewise.
1662 * nat/linux-osdata.c: Likewise.
1663 * nat/linux-procfs.c: Likewise.
1664 * nat/linux-ptrace.c: Likewise.
1665 * nat/mips-linux-watch.c: Likewise.
1666 * target/waitstatus.c: Likewise.
1668 2014-09-12 Tom Tromey <tromey@redhat.com>
1669 Gary Benson <gbenson@redhat.com>
1671 * common/common-regcache.h: New file.
1672 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1673 * regcache.h: Include common-regcache.h.
1674 (regcache_read_pc): Don't declare.
1675 * regcache.c (get_thread_regcache_for_ptid): New function.
1676 * nat/linux-btrace.c: Don't include regcache.h.
1677 Include common-regcache.h.
1678 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1680 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1682 * regcache.h (struct regset): Declare.
1684 2014-09-11 Pedro Alves <palves@redhat.com>
1687 * main.c: Include "infrun.h".
1688 (catch_command_errors, catch_command_errors_const): Wait for the
1689 foreground command to complete.
1690 * top.c (maybe_wait_sync_command_done): New function, factored out
1692 (maybe_wait_sync_command_done): ... here.
1693 * top.h (maybe_wait_sync_command_done): New declaration.
1695 2014-09-11 Tom Tromey <tromey@redhat.com>
1696 Gary Benson <gbenson@redhat.com>
1698 * common/symbol.h: New file.
1699 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1700 * minsyms.c (find_minimal_symbol_address): New function.
1701 * common/agent.c: Include common/symbol.h.
1702 [!GDBSERVER]: Don't include objfiles.h.
1703 (agent_look_up_symbols): Use find_minimal_symbol_address.
1705 2014-09-11 Gary Benson <gbenson@redhat.com>
1707 * target/target.h (target_stop_ptid, target_continue_ptid):
1709 * target.c (target_stop_ptid, target_continue_ptid): New
1711 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1712 (agent_run_command): Always use target_stop_ptid and
1713 target_continue_ptid.
1715 2014-09-11 Tom Tromey <tromey@redhat.com>
1716 Gary Benson <gbenson@redhat.com>
1718 * target/target.h: New file.
1719 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1720 * target.h: Include target/target.h.
1721 (target_read_memory, target_write_memory): Don't declare.
1722 * target.c (target_read_uint32): New function.
1723 * common/agent.c: Include target/target.h.
1724 [!GDBSERVER]: Don't include target.h.
1725 (helper_thread_id): Type changed to uint32_t.
1726 (agent_get_helper_thread_id): Use target_read_uint32.
1727 (agent_run_command): Always use target_read_memory and
1728 target_write_memory.
1729 (agent_capability): Type changed to uint32_t.
1730 (agent_capability_check): Use target_read_uint32.
1732 2014-09-11 Gary Benson <gbenson@redhat.com>
1734 * common/common-debug.h (show_debug_regs): Declare.
1735 * common/common-debug.c (show_debug_regs): Define.
1736 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1737 all uses with show_debug_regs. Replace all uses that considered
1738 debug_hw_points as a multi-value integer with straight boolean
1740 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1741 with show_debug_regs.
1742 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1743 all uses with show_debug_regs.
1744 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1745 uses with show_debug_regs.
1747 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1749 * findvar.c (address_from_register): Handle targets requiring
1750 a special conversion routine even for plain pointer types.
1752 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1754 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1755 (store_register): Do not call exec_one_dummy_insn.
1757 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1759 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1760 dereference it first. Use value_enclosing_type instead of
1762 (ada_array_length): Likewise.
1764 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1766 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1767 Adjust function implementation and documentation accordingly.
1768 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1769 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1770 Update call to ada_value_ptr_subscript.
1772 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1774 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1775 instead of VAL's type.
1777 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1779 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1781 2014-09-09 Doug Evans <xdje42@gmail.com>
1784 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1785 last parameter to pkg-config, not first.
1786 * configure.ac: Pass --with-guile provided pkg-config path to
1787 GDB_GUILE_PROGRAM_NAMES.
1788 * configure: Regenerate.
1790 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1792 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1795 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1797 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1798 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1799 the list of sections determining GDB_OSABI_IRIX.
1801 2014-09-09 James Hogan <james.hogan@imgtec.com>
1803 * MAINTAINERS (Write After Approval): Add "James Hogan".
1805 2014-09-09 James Hogan <james.hogan@imgtec.com>
1807 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1809 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1811 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1813 2014-09-08 Doug Evans <xdje42@gmail.com>
1816 * guile.c: #include <signal.h>.
1817 (_initialize_guile): Block SIGCHLD while initializing Guile.
1819 Replaces the following, which is reverted.
1821 2014-07-26 Doug Evans <xdje42@gmail.com>
1824 * configure.ac: Add check for header gc/gc.h.
1825 Add check for function setenv.
1826 * configure: Regenerate.
1827 * config.in: Regenerate.
1828 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1830 2014-09-08 Doug Evans <xdje42@gmail.com>
1832 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1833 with named constant. Fix style of pointer comparison.
1834 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1836 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1839 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1840 decide whether we display the command on "show user".
1841 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1842 printing command name.
1843 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1844 * cli/cli-decode.c (cli_user_command_p): Create helper function
1845 to verify whether cmd_list_element is a user-defined command.
1847 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1850 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1851 Fix goto out of TRY_CATCH.
1853 2014-09-06 Doug Evans <xdje42@gmail.com>
1854 Tom Tromey <tromey@redhat.com>
1857 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1858 $_any_caller_matches.
1859 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1860 * python/lib/gdb/function/caller_is.py: New file.
1862 2014-09-06 Doug Evans <xdje42@gmail.com>
1864 * infcmd.c (program_info): Fix typo.
1866 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1869 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1870 'number'. New variable 'has_digit'. Rewrite code to deal with
1871 subexpressions on SDT probes.
1873 2014-09-04 Pedro Alves <palves@redhat.com>
1875 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1876 the input is only one character long.
1878 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1881 * f-valprint.c (f_val_print): Specify the correct print option to
1882 use when printing integer values.
1884 2014-09-04 Gary Benson <gbenson@redhat.com>
1886 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1887 Remove code to cope with LWPs wrapped as PIDs.
1888 Add assertions to ensure no wrapped LWPs are passed.
1890 2014-09-04 Pedro Alves <palves@redhat.com>
1892 * value.c (value_ranges_copy_adjusted): New function, factored out
1894 (value_contents_copy_raw): ... here.
1895 (unpack_value_bits_as_long_1): Rename back to ...
1896 (unpack_bits_as_long): ... this. Remove 'original_value' and
1897 'result' parameters. Change return type to LONGEST.
1898 (unpack_value_bits_as_long): Delete.
1899 (unpack_value_field_as_long_1): Delete.
1900 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1901 (unpack_value_bitfield): New function.
1902 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1903 (value_fetch_lazy): Use unpack_value_bitfield.
1904 * value.h (unpack_value_bits_as_long): Delete declaration.
1906 2014-09-03 Sasha Smundak <asmundak@google.com>
1908 * python/py-frame.c (frapy_read_register): New function.
1910 2014-09-03 James Hogan <james.hogan@imgtec.com>
1912 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1913 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1915 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1918 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1920 (add_cmd): Set "completer_handle_brkchars" to NULL.
1921 * cli/cli-decode.h (struct cmd_list_element)
1922 <completer_handle_brkchars>: New field.
1923 * command.h (completer_ftype_void): New typedef.
1924 (set_cmd_completer_handle_brkchars): New prototype.
1925 * completer.c (set_gdb_completion_word_break_characters): New
1927 (complete_line_internal): Call "completer_handle_brkchars"
1928 callback from command.
1929 * completer.h: Include "command.h".
1930 (set_gdb_completion_word_break_characters): New prototype.
1931 * python/py-cmd.c (cmdpy_completer_helper): New function.
1932 (cmdpy_completer_handle_brkchars): New function.
1933 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1934 (cmdpy_init): Set completer_handle_brkchars to
1935 cmdpy_completer_handle_brkchars.
1937 2014-09-03 Gary Benson <gbenson@redhat.com>
1939 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1940 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1941 Loop conditions changed to equivalent form.
1942 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1943 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1944 ALL_DEBUG_ADDRESS_REGISTERS.
1946 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1948 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1951 2014-09-02 Doug Evans <dje@google.com>
1953 * typeprint.c (find_global_typedef): Fix comment.
1955 2014-09-02 Gary Benson <gbenson@redhat.com>
1957 * i386-nat.h: Renamed as...
1958 * x86-nat.h: New file. All type, function and variable name
1959 prefixes changed from "i386_" to "x86_". All references updated.
1960 * i386-nat.c: Renamed as...
1961 * x86-nat.c: New file. All type, function and variable name
1962 prefixes changed from "i386_" to "x86_". All references updated.
1963 * common/i386-xstate.h: Renamed as...
1964 * common/x86-xstate.h: New file. All type, function and variable
1965 name prefixes changed from "i386_" to "x86_". All references
1967 * nat/i386-cpuid.h: Renamed as...
1968 * nat/x86-cpuid.h: New file. All type, function and variable name
1969 prefixes changed from "i386_" to "x86_". All references updated.
1970 * nat/i386-gcc-cpuid.h: Renamed as...
1971 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1972 name prefixes changed from "i386_" to "x86_". All references
1974 * nat/i386-dregs.h: Renamed as...
1975 * nat/x86-dregs.h: New file. All type, function and variable name
1976 prefixes changed from "i386_" to "x86_". All references updated.
1977 * nat/i386-dregs.c: Renamed as...
1978 * nat/x86-dregs.c: New file. All type, function and variable name
1979 prefixes changed from "i386_" to "x86_". All references updated.
1981 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1983 * varobj.c (_initialize_varobj): Move to the end of file.
1985 2014-08-29 Gary Benson <gbenson@redhat.com>
1987 * common/common-exceptions.h: New file.
1988 * common/common-exceptions.c: Likewise.
1989 * Makefile.in (SFILES): Add common/common-exceptions.c.
1990 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1991 (COMMON_OBS): Add common-exceptions.o.
1992 (common-exceptions.o): New rule.
1993 * exceptions.h (common-exceptions.h): Include.
1994 (gdb_setjmp.h): Do not include.
1995 (return_reason): Moved to common-exceptions.h.
1996 (enum return_reason): Likewise.
1997 (RETURN_MASK): Likewise.
1998 (typedef return_mask): Likewise.
1999 (enum errors): Likewise.
2000 (struct gdb_exception): Likewise.
2001 (exceptions_state_mc_init): Likewise.
2002 (exceptions_state_mc_action_iter): Likewise.
2003 (exceptions_state_mc_action_iter_1): Likewise.
2004 (TRY_CATCH): Likewise.
2005 (throw_exception): Likewise.
2006 (throw_verror): Likewise.
2007 (throw_vquit): Likewise.
2008 (throw_error): Likewise.
2009 (throw_quit): Likewise.
2010 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2011 (enum catcher_action): Likewise.
2012 (struct catcher): Likewise.
2013 (current_catcher): Likewise.
2014 (catcher_list_size): Likewise.
2015 (exceptions_state_mc_init): Likewise.
2016 (catcher_pop): Likewise.
2017 (exceptions_state_mc): Likewise.
2018 (exceptions_state_mc_action_iter): Likewise.
2019 (exceptions_state_mc_action_iter_1): Likewise.
2020 (throw_exception): Likewise.
2021 (exception_messages): Likewise.
2022 (exception_messages_size): Likewise.
2023 (throw_it): Likewise.
2024 (throw_verror): Likewise.
2025 (throw_vquit): Likewise.
2026 (throw_error): Likewise.
2027 (throw_quit): Likewise.
2028 (prepare_to_throw_exception): New function.
2030 2014-08-29 Gary Benson <gbenson@redhat.com>
2032 * common/gdb_setjmp.h: New file.
2033 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2034 * configure.ac: Move sigsetjmp check...
2035 * common/common.m4: ...here.
2036 * configure: Regenerate.
2037 * cp-support.c (SIGJMP_BUF): Delete.
2038 (SIGSETJMP): Likewise.
2039 (SIGLONGJMP): Likewise.
2040 * exceptions.h (gdb_setjmp.h): Include.
2041 (setjmp.h): Do not include.
2042 (EXCEPTIONS_SIGJMP_BUF): Delete.
2043 (EXCEPTIONS_SIGSETJMP): Likewise.
2044 (EXCEPTIONS_SIGLONGJMP): Likewise.
2045 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2047 * exceptions.c: Likewise.
2049 2014-08-29 Gary Benson <gbenson@redhat.com>
2051 * cleanups.h: Moved to...
2052 * common/cleanups.h: New file.
2053 * cleanups.c: Moved to...
2054 * common/cleanups.c: New file. Include common-defs.h and
2055 cleanups.h. Do not include defs.h.
2056 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2057 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2058 (cleanups.o): New rule.
2060 2014-08-29 Gary Benson <gbenson@redhat.com>
2062 * common/errors.h (internal_warning): New declaration.
2063 (internal_vwarning): Likewise.
2064 * common/errors.c (internal_warning): New function.
2065 * utils.h (internal_warning): Don't declare.
2066 (internal_vwarning): Likewise.
2067 * utils.c (internal_warning): Removed.
2069 2014-08-29 Gary Benson <gbenson@redhat.com>
2071 * main.c (captured_main): Use warning during startup.
2072 Prefix startup warning messages with command name.
2074 2014-08-29 Gary Benson <gbenson@redhat.com>
2076 * main.c (captured_main): Handle usage errors with error.
2078 2014-08-29 Gary Benson <gbenson@redhat.com>
2080 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2081 exit pair with a call to error. Wrap the message with _().
2083 2014-08-29 Gary Benson <gbenson@redhat.com>
2085 * main.c (captured_main): Replace a fprintf/exit
2086 pair with a call to error. Wrap the message with _().
2088 2014-08-29 Gary Benson <gbenson@redhat.com>
2090 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2091 pairs with calls to error. Wrap the message with _().
2093 2014-08-29 Gary Benson <gbenson@redhat.com>
2095 * utils.c (vwarning): Protect calls to target_terminal_ours
2098 2014-08-29 Gary Benson <gbenson@redhat.com>
2100 * exceptions.c (print_flush): Protect calls to
2101 target_terminal_ours and wrap_here.
2103 2014-08-29 Gary Benson <gbenson@redhat.com>
2105 * utils.h (filtered_printing_initialized): New declaration.
2106 * utils.c (abort_with_message): New function.
2107 (internal_vproblem): Use abort_with_message for first level
2108 recursive internal problems, and if gdb_stderr is not set up.
2109 Protect calls to target_terminal_ours, begin_line and query.
2111 2014-08-28 Doug Evans <dje@google.com>
2113 * symtab.c (in_prologue): Move definition to better spot.
2114 (skip_prologue_using_sal): Ditto.
2116 2014-08-28 Doug Evans <dje@google.com>
2118 * symtab.c (find_function_start_sal): Move definition to better spot.
2120 2014-08-28 Yao Qi <yao@codesourcery.com>
2122 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2123 found_stack_adjust in forward scan. Remove condition check
2124 on found_stack_adjust which is always true. Indent the code.
2126 2014-08-28 Yao Qi <yao@codesourcery.com>
2128 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2129 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2130 (dwarf_decode_lines): Remove argument
2131 want_line_info. Remove condition check on want_line_info.
2134 2014-08-27 Doug Evans <dje@google.com>
2136 * dwarf2read.c (dwarf_record_line): Fix typo.
2138 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2140 * target.h (struct target_ops::to_terminal_save_ours): Remove
2142 (target_terminal_save_ours): Remove macro.
2143 * target-delegates.c: Regenerate.
2144 * inf-child.c (inf_child_target): Don't set the nonexistent
2145 field to_terminal_save_ours.
2146 * inferior.h (child_terminal_save_ours): Remove declaration.
2147 * terminal.h (gdb_save_tty_state): New declaration.
2148 * inflow.c (child_terminal_save_ours): Rename to ...
2149 (gdb_save_tty_state): ... this.
2150 * tui/tui.c: Include terminal.h.
2151 (tui_enable): Use gdb_save_tty_state instead of
2152 target_terminal_save_ours.
2153 (tui_disable): Likewise.
2155 2014-08-25 Doug Evans <dje@google.com>
2157 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2158 Pass NULL instead of 0 for context pointer.
2160 2014-08-25 Yao Qi <yao@codesourcery.com>
2162 * dwarf2read.c: Fix grammatical error.
2164 2014-08-24 Yao Qi <yao@codesourcery.com>
2166 * dwarf2read.c (scan_partial_symbols): Update comments.
2167 Rename argument 'need_pc' with 'set_addrmap'.
2168 (add_partial_namespace): Rename argument 'need_pc' with
2170 (add_partial_module): Likewise.
2171 (add_partial_subprogram): Likewise. Update comments.
2172 (dwarf2_name): Fix typo.
2174 2014-08-22 Doug Evans <dje@google.com>
2177 * dwarf2read.c (dwarf_record_line_p): New function.
2178 (dwarf_decode_lines_1): Ignore subsequent line number entries
2179 for the same line if any entry had a non-zero discriminator.
2181 2014-08-22 Doug Evans <dje@google.com>
2183 * buildsym.h (record_line_ftype): New typedef.
2184 (record_line): Use it.
2185 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2186 (dwarf_decode_lines_1): Call them.
2188 2014-08-22 Yao Qi <yao@codesourcery.com>
2190 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2191 (ctf_end): Remove code.
2193 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2195 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2196 (linux_make_corefile_notes): call update_thread_list, protected against
2199 2014-08-21 Pedro Alves <palves@redhat.com>
2201 * infcmd.c (attach_command): Remove comment.
2203 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2205 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2206 unsigned LONGEST to ULONGEST.
2208 2014-08-20 Pedro Alves <palves@redhat.com>
2210 * Makefile.in (check-read1): New rule.
2212 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2214 * value.c (value_from_contents_and_address): Strip resolved_type's
2215 typedef layers before checking its TYPE_DATA_LOCATION.
2217 2014-08-20 Pedro Alves <palves@redhat.com>
2219 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2221 2014-08-20 Yao Qi <yao@codesourcery.com>
2223 * amd64-tdep.c (amd64_classify): Add a blank line after the
2224 example. Move "*/" to a new line.
2225 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2226 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2227 * dwarf2read.c (psymtab_include_file_name): Likewise.
2229 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2230 Pedro Alves <palves@redhat.com>
2234 * ada-lang.c (coerce_unspec_val_to_type): Use
2235 value_contents_copy_raw.
2236 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2237 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2238 * cp-valprint.c (cp_print_value_fields): Let the common printing
2239 code handle optimized out values.
2240 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2241 * d-valprint.c (dynamic_array_type): Use
2242 value_bits_any_optimized_out.
2243 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2244 check_any_valid fields.
2245 (check_pieced_value_bits): Delete and inline ...
2246 (check_pieced_synthetic_pointer): ... here.
2247 (check_pieced_value_validity): Delete.
2248 (check_pieced_value_invalid): Delete.
2249 (pieced_value_funcs): Remove check_validity and check_any_valid
2251 (read_pieced_value): Use mark_value_bits_optimized_out.
2252 (write_pieced_value): Switch to use
2253 mark_value_bytes_optimized_out.
2254 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2255 of assuming the whole value is optimized out.
2256 * findvar.c (read_frame_register_value): Remove special handling
2257 of optimized out registers.
2258 (value_from_register): Use mark_value_bytes_optimized_out.
2259 * frame-unwind.c (frame_unwind_got_optimized): Use
2260 mark_value_bytes_optimized_out.
2261 * jv-valprint.c (java_value_print): Adjust.
2262 (java_print_value_fields): Let the common printing code handle
2263 optimized out values.
2264 * mips-tdep.c (mips_print_register): Remove special handling of
2265 optimized out registers.
2266 * opencl-lang.c (lval_func_check_validity): Delete.
2267 (lval_func_check_any_valid): Delete.
2268 (opencl_value_funcs): Remove check_validity and check_any_valid
2270 * p-valprint.c (pascal_object_print_value_fields): Let the common
2271 printing code handle optimized out values.
2272 * stack.c (read_frame_arg): Remove special handling of optimized
2273 out values. Fetch both VAL and ENTRYVAL before comparing
2274 contents. Adjust to value_available_contents_eq rename.
2275 * valprint.c (valprint_check_validity)
2276 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2277 (val_print_array_elements): Adjust.
2278 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2279 (value_bits_any_optimized_out): New function.
2280 (value_entirely_covered_by_range_vector): New function, factored
2281 out from value_entirely_unavailable.
2282 (value_entirely_unavailable): Reimplement.
2283 (value_entirely_optimized_out): New function.
2284 (insert_into_bit_range_vector): New function, factored out from
2285 mark_value_bits_unavailable.
2286 (mark_value_bits_unavailable): Reimplement.
2287 (struct ranges_and_idx): New struct.
2288 (find_first_range_overlap_and_match): New function, factored out
2289 from value_available_contents_bits_eq.
2290 (value_available_contents_bits_eq): Rename to ...
2291 (value_contents_bits_eq): ... this. Check both unavailable
2292 contents and optimized out contents.
2293 (value_available_contents_eq): Rename to ...
2294 (value_contents_eq): ... this.
2295 (allocate_value_lazy): Remove reference to the old optimized_out
2297 (allocate_optimized_out_value): Use
2298 mark_value_bytes_optimized_out.
2299 (require_not_optimized_out): Adjust to check whether the
2300 optimized_out vec is empty.
2301 (ranges_copy_adjusted): New function, factored out from
2302 value_contents_copy_raw.
2303 (value_contents_copy_raw): Also copy the optimized out ranges.
2304 Assert the destination ranges aren't optimized out.
2305 (value_contents_copy): Update comment, remove call to
2306 require_not_optimized_out.
2307 (value_contents_equal): Adjust to check whether the optimized_out
2309 (set_value_optimized_out, value_optimized_out_const): Delete.
2310 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2312 (value_entirely_optimized_out, value_bits_valid): Delete.
2313 (value_copy): Take a VEC copy of the 'optimized_out' field.
2314 (value_primitive_field): Remove special handling of optimized out.
2315 (value_fetch_lazy): Assert that lazy values have no unavailable
2316 regions. Use value_bits_any_optimized_out. Remove some special
2317 handling for optimized out values.
2318 * value.h: Add intro comment about <optimized out> and
2320 (struct lval_funcs): Remove check_validity and check_any_valid
2322 (set_value_optimized_out, value_optimized_out_const): Remove.
2323 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2325 (value_bits_any_optimized_out): New declaration.
2326 (value_bits_valid): Delete declaration.
2327 (value_available_contents_eq): Rename to ...
2328 (value_contents_eq): ... this, and extend comments.
2330 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2332 Fix -fsanitize=address on unreadable inferior strings.
2333 * valprint.c (val_print_string): Fix access before BUFFER.
2335 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2337 * target.c (target_struct_size): Remove.
2338 (target_struct_allocsize): Remove.
2339 (DEFAULT_ALLOCSIZE): Remove.
2340 (target_ops_p): New typedef.
2341 (DEF_VEC_P (target_ops_p)): New vector type.
2342 (target_structs): Change type to VEC (target_ops_p).
2343 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2344 (find_default_run_target): Rewrite for loop following changes to
2347 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2349 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2350 Adjust code accordingly. Adjust function description comment.
2352 2014-08-19 Yao Qi <yao@codesourcery.com>
2354 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2357 2014-08-19 Alan Modra <amodra@gmail.com>
2359 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2360 * config.in: Regenerate.
2361 * configure: Regenerate.
2363 2014-08-19 Tom Tromey <tromey@redhat.com>
2364 Gary Benson <gbenson@redhat.com>
2366 * common/common-debug.h: New file.
2367 * common/common-debug.c: Likewise.
2368 * debug.c: Likewise.
2369 * Makefile.in (SFILES): Add common/common-debug.c.
2370 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2371 (COMMON_OBS): Add common-debug.o and debug.o.
2372 (common-debug.o): New rule.
2373 * common/common-defs.h: Include common-debug.h.
2374 * common/agent.c (debug_agent_printf): New function.
2375 (DEBUG_AGENT): Redefine.
2376 * nat/i386-dregs.c (debug_printf): Undefine.
2378 2014-08-19 Gary Benson <gbenson@redhat.com>
2380 * common/common-defs.h: Include print-utils.h.
2381 * utils.h: Do not include print-utils.h.
2383 2014-08-19 Tom Tromey <tromey@redhat.com>
2384 Gary Benson <gbenson@redhat.com>
2386 * common/common-types.h: New file.
2387 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2388 * common/common-defs.h: Include common-types.h.
2389 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2392 2014-08-19 Tom Tromey <tromey@redhat.com>
2393 Gary Benson <gbenson@redhat.com>
2395 * common/errors.h: New file.
2396 * common/errors.c: Likewise.
2397 * Makefile.in (SFILES): Add common/errors.c.
2398 (HFILES_NO_SRCDIR): Add common/errors.h.
2399 (COMMON_OBS): Add errors.o.
2400 (errors.o): New rule.
2401 * common/common-defs.h: Include errors.h.
2402 * utils.h (perror_with_name, error, verror, warning, vwarning):
2404 * common/common-utils.h: (malloc_failure, internal_error):
2407 2014-08-19 Gary Benson <gbenson@redhat.com>
2409 * utils.c (internal_vproblem): Always print the message.
2411 2014-08-18 Doug Evans <dje@google.com>
2413 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2415 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2417 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2418 Return 0 if TYPE is dynamic.
2419 (print_range): Add handling of dynamic ranges.
2421 2014-08-18 Keven Boell <keven.boell@intel.com>
2422 Joel Brobecker <brobecker@adacore.com>
2424 * gdbtypes.h (struct main_type): Add field "data_location".
2425 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2426 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2427 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2428 a dynamic data location.
2429 (resolve_dynamic_type): Add DW_AT_data_location handling.
2430 (copy_recursive, copy_type): Copy the data_location information
2432 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2433 * value.c (value_from_contents_and_address): Add
2434 DW_AT_data_location handling.
2436 2014-08-18 Keven Boell <keven.boell@intel.com>
2437 Joel Brobecker <brobecker@adacore.com>
2439 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2440 field "get_object_address".
2441 * dwarf2expr.c (execute_stack_op): Add handling for
2442 DW_OP_push_object_address.
2443 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2444 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2445 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2446 (dwarf_expr_get_obj_addr): New function.
2447 (dwarf_expr_ctx_funcs): Add get_object_address field.
2448 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2449 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2450 (dwarf2_evaluate_property): Add parameter "address". Use it.
2451 (needs_get_obj_addr): New function.
2452 (needs_frame_ctx_funcs): Add get_object_address field.
2453 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2454 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2455 (resolve_dynamic_array): Likewise.
2457 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2459 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2460 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2461 fixed value for records and unions for which some GNAT encodings
2464 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2466 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2467 rewrite to avoid "else if" and "else" constructs. Should be
2468 a no-op in practice.
2470 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2472 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2475 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2478 * eval.c: Update all calls to find_overload_match.
2479 * valarith.c: Likewise.
2480 (value_user_defined_cpp_op, value_user_defined_op): New
2481 argument NOSIDE. Update all callers.
2482 * valops.c (find_overload_match): New argument NOSIDE.
2483 * value.h (find_overload_match): Update signature.
2485 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2487 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2488 'items' methods instead of 'iteritems' method on dictionaries.
2490 2014-08-15 Doug Evans <dje@google.com>
2492 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2495 2014-08-15 Doug Evans <dje@google.com>
2497 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2499 2014-08-15 Doug Evans <dje@google.com>
2501 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2503 2014-08-15 Doug Evans <dje@google.com>
2505 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2508 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2510 * dcache.h: Include target.h, to avoid compile time warnings.
2512 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2514 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2515 frame_info" partial declaration.
2516 * gdbarch.h: Regenerate.
2518 2014-08-15 Yao Qi <yao@codesourcery.com>
2520 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2521 Add parameter 'decode_for_pst_p'. Callers update.
2523 2014-08-13 Yao Qi <yao@codesourcery.com>
2526 * configure.ac: Use local variable 'pos'.
2527 * configure: Regenerated.
2529 2014-08-11 Doug Evans <dje@google.com>
2531 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2532 message, it is redundant with "Reading symbols from ..." message.
2534 2014-08-10 Doug Evans <xdje42@gmail.com>
2536 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2538 2014-08-09 Yao Qi <yao@codesourcery.com>
2541 * remote.c (remote_xfer_partial): Remove dead code.
2543 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2545 * ia64-linux-tdep.c: Include "regset.h".
2546 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2547 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2548 (ia64_linux_supply_fpregset): New function.
2549 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2550 (ia64_linux_regset_from_core_section): New function.
2551 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2554 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2556 * m68klinux-tdep.c: Include "regset.h".
2557 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2558 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2559 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2560 (m68k_linux_regset_from_core_section): New function.
2561 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2564 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2566 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2567 function. Move logic to...
2568 (tilegx_linux_regmap): ... this new register map.
2569 (tilegx_linux_regset): Refer to register map, replace supply
2570 method by regcache_supply_regset, and add collect method.
2571 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2572 TILEGX_FIRST_EASY_REGNUM.
2574 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2576 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2577 that calls regcache_supply_regset and handles the EPC register
2578 separately. Move main logic to...
2579 (score7_linux_gregmap): ... this new register map.
2580 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2581 (score7_linux_gregset): Refer to register map. Add collect method.
2582 (score7_linux_regset_from_core_section): Replace
2583 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2584 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2585 (struct regset): Delete unused forward declaraction.
2586 (struct pt_regs): Delete structure definition.
2587 (elf_gregset_t): Delete typedef.
2589 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2591 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2592 (nios2_core_regset): Add collect method.
2594 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2596 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2597 platform-independent and don't write to read-only input buffer.
2598 (m32r_linux_collect_gregset): New function.
2599 (m32r_linux_gregset): Add collect method.
2601 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2603 * hppa-linux-tdep.c (greg_map): Rename to...
2604 (hppa_linux_gregmap): ... this. Also convert to
2605 regcache_map_entry format.
2606 (hppa_linux_supply_regset): Delete function.
2607 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2608 (hppa_linux_fpregmap): ... this new register map.
2609 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2610 register map, replace supply method by regcache_supply_regset, and
2611 add collect method regcache_collect_regset.
2613 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2615 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2616 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2617 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2618 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2619 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2620 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2621 (frv_linux_supply_gregset): Replace main logic by call to
2622 regcache_supply_regset, but keep clearing gr32-gr63.
2623 (frv_linux_supply_fpregset): Delete function.
2624 (frv_linux_gregset): Refer to appropriate register map and add
2625 regcache_collect_regset as the collect method.
2626 (frv_linux_fpregset): Likewise. Also exchange the supply method
2627 by regcache_supply_regset.
2629 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2631 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2632 by call to alpha_supply_int_regs.
2633 (alpha_linux_collect_gregset): New function.
2634 (alpha_linux_supply_fpregset): Replace logic by call to
2635 alpha_supply_fp_regs.
2636 (alpha_linux_collect_fpregset): New function.
2637 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2639 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2641 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2642 by call to regcache_collect_regset.
2643 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2644 instead of aarch64_linux_supply_gregset/_fpregset.
2645 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2646 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2647 header file instead.
2648 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2649 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2650 functions. Move logic to ...
2651 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2653 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2654 refer to new register maps, replace *_regset_from_core by
2655 regcache_supply_regset, and also use regcache_collect_regset.
2656 * aarch64-linux-tdep.h: Include "regset.h".
2657 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2659 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2660 macros, moved from C source file.
2661 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2662 variable declarations.
2664 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2666 * s390-linux-nat.c: Include "regset.h".
2667 (regmap_gregset): Delete macro.
2668 (s390_64_regmap_gregset): New register map for
2669 regcache_supply/_collect_regset.
2670 (s390_64_gregset): New regset.
2671 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2672 (regmap_fpregset): Delete macro.
2673 (s390_native_supply, s390_native_collect): Delete functions.
2674 (supply_gregset, fill_gregset): Replace s390-specific regmap
2675 handling by a call to regcache_supply/_collect_regset.
2676 (supply_fpregset, fill_fpregset): Call regcache_supply/
2677 _collect_regset instead of s390_native_supply/_collect.
2678 (fetch_regset, store_regset): Likewise. Also change the last
2679 parameter to a regset instead of a regmap.
2680 (s390_linux_fetch_inferior_registers)
2681 (390_linux_store_inferior_registers): Adjust last parameter in
2682 calls to fetch_regset and store_regset.
2683 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2684 (s390_gregmap): ... this. Also make static const and convert to
2685 regcache_map_entry format.
2686 (s390x_regmap_gregset): Delete.
2687 (s390_regmap_fpregset): Rename to...
2688 (s390_fpregmap): ... this. Make static const and convert to
2689 regcache_map_entry format.
2690 (s390_regmap_upper, s390_regmap_last_break)
2691 (s390x_regmap_last_break, s390_regmap_system_call)
2692 (s390_regmap_tdb): Likewise.
2693 (s390_supply_regset, s390_collect_regset): Remove functions.
2694 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2696 (s390_gregset, s390_fpregset, s390_upper_regset)
2697 (s390_last_break_regset, s390x_last_break_regset)
2698 (s390_system_call_regset, s390_tdb_regset): Make global and
2699 replace s390_supply/_collect_regset by regcache_supply/
2701 (s390x_gregset): Delete.
2702 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2703 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2704 (s390_regmap_fpregset, s390_regmap_last_break)
2705 (s390x_regmap_last_break, s390_regmap_system_call)
2706 (s390_regmap_tdb): Delete global variable declarations.
2707 (s390_gregset, s390_fpregset, s390_last_break_regset)
2708 (s390x_last_break_regset, s390_system_call_regset)
2709 (s390_tdb_regset): New global variable declarations.
2711 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2713 * regcache.c: Include "regset.h".
2714 (regcache_transfer_regset): New local function.
2715 (regcache_supply_regset, regcache_collect_regset): New functions.
2716 * regcache.h (struct regcache_map_entry): New structure.
2717 (REGCACHE_MAP_SKIP): New enum value.
2718 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2720 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2722 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2723 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2724 (ppc_linux_collect_gregset ): Likewise.
2725 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2726 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2727 (ppc_collect_vrregset): Likewise.
2728 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2731 2014-08-07 Yao Qi <yao@codesourcery.com>
2733 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2734 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2735 * remote.c (remote_read_bytes): Likewise.
2737 2014-08-07 Yao Qi <yao@codesourcery.com>
2739 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2741 2014-08-07 Yao Qi <yao@codesourcery.com>
2744 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2745 TARGET_XFER_OK instead of 0.
2747 2014-08-07 Gary Benson <gbenson@redhat.com>
2749 * common/common-defs.h: Include errno.h.
2750 * defs.h: Do not include errno.h.
2751 * ada-typeprint.c: Likewise.
2752 * c-typeprint.c: Likewise.
2753 * core-regset.c: Likewise.
2754 * corefile.c: Likewise.
2755 * corelow.c: Likewise.
2756 * event-loop.c: Likewise.
2757 * f-typeprint.c: Likewise.
2758 * gnu-nat.c: Likewise.
2759 * go32-nat.c: Likewise.
2760 * i386gnu-nat.c: Likewise.
2761 * m2-typeprint.c: Likewise.
2762 * nat/linux-btrace.c: Likewise.
2763 * p-typeprint.c: Likewise.
2764 * procfs.c: Likewise.
2765 * remote-sim.c: Likewise.
2766 * rs6000-nat.c: Likewise.
2767 * target.c: Likewise.
2768 * typeprint.c: Likewise.
2769 * ui-file.c: Likewise.
2770 * valops.c: Likewise.
2771 * valprint.c: Likewise.
2773 2014-08-07 Gary Benson <gbenson@redhat.com>
2775 * common/common-defs.h: Include string.h.
2776 * aarch64-tdep.c: Do not include string.h.
2777 * ada-exp.y: Likewise.
2778 * ada-lang.c: Likewise.
2779 * ada-lex.l: Likewise.
2780 * ada-typeprint.c: Likewise.
2781 * ada-valprint.c: Likewise.
2782 * aix-thread.c: Likewise.
2783 * alpha-linux-tdep.c: Likewise.
2784 * alpha-mdebug-tdep.c: Likewise.
2785 * alpha-nat.c: Likewise.
2786 * alpha-osf1-tdep.c: Likewise.
2787 * alpha-tdep.c: Likewise.
2788 * alphanbsd-tdep.c: Likewise.
2789 * amd64-dicos-tdep.c: Likewise.
2790 * amd64-linux-tdep.c: Likewise.
2791 * amd64-nat.c: Likewise.
2792 * amd64-sol2-tdep.c: Likewise.
2793 * amd64fbsd-tdep.c: Likewise.
2794 * amd64obsd-tdep.c: Likewise.
2795 * arch-utils.c: Likewise.
2796 * arm-linux-nat.c: Likewise.
2797 * arm-linux-tdep.c: Likewise.
2798 * arm-tdep.c: Likewise.
2799 * arm-wince-tdep.c: Likewise.
2800 * armbsd-tdep.c: Likewise.
2801 * armnbsd-nat.c: Likewise.
2802 * armnbsd-tdep.c: Likewise.
2803 * armobsd-tdep.c: Likewise.
2804 * avr-tdep.c: Likewise.
2805 * ax-gdb.c: Likewise.
2806 * ax-general.c: Likewise.
2807 * bcache.c: Likewise.
2808 * bfin-tdep.c: Likewise.
2809 * breakpoint.c: Likewise.
2810 * build-id.c: Likewise.
2811 * buildsym.c: Likewise.
2812 * c-exp.y: Likewise.
2813 * c-lang.c: Likewise.
2814 * c-typeprint.c: Likewise.
2815 * c-valprint.c: Likewise.
2816 * charset.c: Likewise.
2817 * cli-out.c: Likewise.
2818 * cli/cli-cmds.c: Likewise.
2819 * cli/cli-decode.c: Likewise.
2820 * cli/cli-dump.c: Likewise.
2821 * cli/cli-interp.c: Likewise.
2822 * cli/cli-logging.c: Likewise.
2823 * cli/cli-script.c: Likewise.
2824 * cli/cli-setshow.c: Likewise.
2825 * cli/cli-utils.c: Likewise.
2826 * coffread.c: Likewise.
2827 * common/agent.c: Likewise.
2828 * common/buffer.c: Likewise.
2829 * common/buffer.h: Likewise.
2830 * common/common-utils.c: Likewise.
2831 * common/filestuff.c: Likewise.
2832 * common/filestuff.c: Likewise.
2833 * common/format.c: Likewise.
2834 * common/print-utils.c: Likewise.
2835 * common/rsp-low.c: Likewise.
2836 * common/signals.c: Likewise.
2837 * common/vec.h: Likewise.
2838 * common/xml-utils.c: Likewise.
2839 * core-regset.c: Likewise.
2840 * corefile.c: Likewise.
2841 * corelow.c: Likewise.
2842 * cp-abi.c: Likewise.
2843 * cp-name-parser.y: Likewise.
2844 * cp-support.c: Likewise.
2845 * cp-valprint.c: Likewise.
2846 * cris-tdep.c: Likewise.
2847 * d-exp.y: Likewise.
2848 * darwin-nat.c: Likewise.
2849 * dbxread.c: Likewise.
2850 * dcache.c: Likewise.
2851 * demangle.c: Likewise.
2852 * dicos-tdep.c: Likewise.
2853 * disasm.c: Likewise.
2854 * doublest.c: Likewise.
2855 * dsrec.c: Likewise.
2856 * dummy-frame.c: Likewise.
2857 * dwarf2-frame.c: Likewise.
2858 * dwarf2loc.c: Likewise.
2859 * dwarf2read.c: Likewise.
2860 * elfread.c: Likewise.
2861 * environ.c: Likewise.
2863 * event-loop.c: Likewise.
2864 * exceptions.c: Likewise.
2866 * expprint.c: Likewise.
2867 * f-exp.y: Likewise.
2868 * f-lang.c: Likewise.
2869 * f-typeprint.c: Likewise.
2870 * f-valprint.c: Likewise.
2871 * fbsd-nat.c: Likewise.
2872 * findcmd.c: Likewise.
2873 * findvar.c: Likewise.
2874 * fork-child.c: Likewise.
2875 * frame.c: Likewise.
2876 * frv-linux-tdep.c: Likewise.
2877 * frv-tdep.c: Likewise.
2879 * gdb_bfd.c: Likewise.
2880 * gdbarch.c: Likewise.
2881 * gdbarch.sh: Likewise.
2882 * gdbtypes.c: Likewise.
2883 * gnu-nat.c: Likewise.
2884 * gnu-v2-abi.c: Likewise.
2885 * gnu-v3-abi.c: Likewise.
2886 * go-exp.y: Likewise.
2887 * go-lang.c: Likewise.
2888 * go32-nat.c: Likewise.
2889 * guile/guile.c: Likewise.
2890 * guile/scm-auto-load.c: Likewise.
2891 * hppa-hpux-tdep.c: Likewise.
2892 * hppa-linux-nat.c: Likewise.
2893 * hppanbsd-tdep.c: Likewise.
2894 * hppaobsd-tdep.c: Likewise.
2895 * i386-cygwin-tdep.c: Likewise.
2896 * i386-dicos-tdep.c: Likewise.
2897 * i386-linux-tdep.c: Likewise.
2898 * i386-nto-tdep.c: Likewise.
2899 * i386-sol2-tdep.c: Likewise.
2900 * i386-tdep.c: Likewise.
2901 * i386bsd-tdep.c: Likewise.
2902 * i386gnu-nat.c: Likewise.
2903 * i386nbsd-tdep.c: Likewise.
2904 * i386obsd-tdep.c: Likewise.
2905 * i387-tdep.c: Likewise.
2906 * ia64-libunwind-tdep.c: Likewise.
2907 * ia64-linux-nat.c: Likewise.
2908 * inf-child.c: Likewise.
2909 * inf-ptrace.c: Likewise.
2910 * inf-ttrace.c: Likewise.
2911 * infcall.c: Likewise.
2912 * infcmd.c: Likewise.
2913 * inflow.c: Likewise.
2914 * infrun.c: Likewise.
2915 * interps.c: Likewise.
2916 * iq2000-tdep.c: Likewise.
2917 * irix5-nat.c: Likewise.
2918 * jv-exp.y: Likewise.
2919 * jv-lang.c: Likewise.
2920 * jv-typeprint.c: Likewise.
2921 * jv-valprint.c: Likewise.
2922 * language.c: Likewise.
2923 * linux-fork.c: Likewise.
2924 * linux-nat.c: Likewise.
2925 * lm32-tdep.c: Likewise.
2926 * m2-exp.y: Likewise.
2927 * m2-typeprint.c: Likewise.
2928 * m32c-tdep.c: Likewise.
2929 * m32r-linux-nat.c: Likewise.
2930 * m32r-linux-tdep.c: Likewise.
2931 * m32r-rom.c: Likewise.
2932 * m32r-tdep.c: Likewise.
2933 * m68hc11-tdep.c: Likewise.
2934 * m68k-tdep.c: Likewise.
2935 * m68kbsd-tdep.c: Likewise.
2936 * m68klinux-nat.c: Likewise.
2937 * m68klinux-tdep.c: Likewise.
2938 * m88k-tdep.c: Likewise.
2939 * machoread.c: Likewise.
2940 * macrocmd.c: Likewise.
2942 * mdebugread.c: Likewise.
2943 * mem-break.c: Likewise.
2944 * memattr.c: Likewise.
2945 * memory-map.c: Likewise.
2946 * mep-tdep.c: Likewise.
2947 * mi/mi-cmd-break.c: Likewise.
2948 * mi/mi-cmd-disas.c: Likewise.
2949 * mi/mi-cmd-env.c: Likewise.
2950 * mi/mi-cmd-stack.c: Likewise.
2951 * mi/mi-cmd-var.c: Likewise.
2952 * mi/mi-cmds.c: Likewise.
2953 * mi/mi-console.c: Likewise.
2954 * mi/mi-getopt.c: Likewise.
2955 * mi/mi-interp.c: Likewise.
2956 * mi/mi-main.c: Likewise.
2957 * mi/mi-parse.c: Likewise.
2958 * microblaze-rom.c: Likewise.
2959 * microblaze-tdep.c: Likewise.
2960 * mingw-hdep.c: Likewise.
2961 * minidebug.c: Likewise.
2962 * minsyms.c: Likewise.
2963 * mips-irix-tdep.c: Likewise.
2964 * mips-linux-tdep.c: Likewise.
2965 * mips-tdep.c: Likewise.
2966 * mips64obsd-tdep.c: Likewise.
2967 * mipsnbsd-tdep.c: Likewise.
2968 * mipsread.c: Likewise.
2969 * mn10300-linux-tdep.c: Likewise.
2970 * mn10300-tdep.c: Likewise.
2971 * monitor.c: Likewise.
2972 * moxie-tdep.c: Likewise.
2973 * mt-tdep.c: Likewise.
2974 * nat/linux-btrace.c: Likewise.
2975 * nat/linux-osdata.c: Likewise.
2976 * nat/linux-procfs.c: Likewise.
2977 * nat/linux-ptrace.c: Likewise.
2978 * nat/linux-waitpid.c: Likewise.
2979 * nbsd-tdep.c: Likewise.
2980 * nios2-linux-tdep.c: Likewise.
2981 * nto-procfs.c: Likewise.
2982 * nto-tdep.c: Likewise.
2983 * objc-lang.c: Likewise.
2984 * objfiles.c: Likewise.
2985 * opencl-lang.c: Likewise.
2986 * osabi.c: Likewise.
2987 * osdata.c: Likewise.
2988 * p-exp.y: Likewise.
2989 * p-lang.c: Likewise.
2990 * p-typeprint.c: Likewise.
2991 * parse.c: Likewise.
2992 * posix-hdep.c: Likewise.
2993 * ppc-linux-nat.c: Likewise.
2994 * ppc-sysv-tdep.c: Likewise.
2995 * ppcfbsd-tdep.c: Likewise.
2996 * ppcnbsd-tdep.c: Likewise.
2997 * ppcobsd-tdep.c: Likewise.
2998 * printcmd.c: Likewise.
2999 * procfs.c: Likewise.
3000 * prologue-value.c: Likewise.
3001 * python/py-auto-load.c: Likewise.
3002 * python/py-gdb-readline.c: Likewise.
3003 * ravenscar-thread.c: Likewise.
3004 * regcache.c: Likewise.
3005 * registry.c: Likewise.
3006 * remote-fileio.c: Likewise.
3007 * remote-m32r-sdi.c: Likewise.
3008 * remote-mips.c: Likewise.
3009 * remote-notif.c: Likewise.
3010 * remote-sim.c: Likewise.
3011 * remote.c: Likewise.
3012 * reverse.c: Likewise.
3013 * rs6000-aix-tdep.c: Likewise.
3014 * ser-base.c: Likewise.
3015 * ser-go32.c: Likewise.
3016 * ser-mingw.c: Likewise.
3017 * ser-pipe.c: Likewise.
3018 * ser-tcp.c: Likewise.
3019 * ser-unix.c: Likewise.
3020 * serial.c: Likewise.
3021 * sh-tdep.c: Likewise.
3022 * sh64-tdep.c: Likewise.
3023 * shnbsd-tdep.c: Likewise.
3025 * sol-thread.c: Likewise.
3026 * solib-dsbt.c: Likewise.
3027 * solib-frv.c: Likewise.
3028 * solib-osf.c: Likewise.
3029 * solib-som.c: Likewise.
3030 * solib-spu.c: Likewise.
3031 * solib-target.c: Likewise.
3032 * solib.c: Likewise.
3033 * somread.c: Likewise.
3034 * source.c: Likewise.
3035 * sparc-nat.c: Likewise.
3036 * sparc-sol2-tdep.c: Likewise.
3037 * sparc-tdep.c: Likewise.
3038 * sparc64-tdep.c: Likewise.
3039 * sparc64fbsd-tdep.c: Likewise.
3040 * sparc64nbsd-tdep.c: Likewise.
3041 * sparcnbsd-tdep.c: Likewise.
3042 * spu-linux-nat.c: Likewise.
3043 * spu-multiarch.c: Likewise.
3044 * spu-tdep.c: Likewise.
3045 * stabsread.c: Likewise.
3046 * stack.c: Likewise.
3047 * std-regs.c: Likewise.
3048 * symfile.c: Likewise.
3049 * symmisc.c: Likewise.
3050 * symtab.c: Likewise.
3051 * target.c: Likewise.
3052 * thread.c: Likewise.
3053 * tilegx-linux-nat.c: Likewise.
3054 * tilegx-tdep.c: Likewise.
3056 * tracepoint.c: Likewise.
3057 * tui/tui-command.c: Likewise.
3058 * tui/tui-data.c: Likewise.
3059 * tui/tui-disasm.c: Likewise.
3060 * tui/tui-file.c: Likewise.
3061 * tui/tui-layout.c: Likewise.
3062 * tui/tui-out.c: Likewise.
3063 * tui/tui-regs.c: Likewise.
3064 * tui/tui-source.c: Likewise.
3065 * tui/tui-stack.c: Likewise.
3066 * tui/tui-win.c: Likewise.
3067 * tui/tui-windata.c: Likewise.
3068 * tui/tui-winsource.c: Likewise.
3069 * typeprint.c: Likewise.
3070 * ui-file.c: Likewise.
3071 * ui-out.c: Likewise.
3072 * user-regs.c: Likewise.
3073 * utils.c: Likewise.
3074 * v850-tdep.c: Likewise.
3075 * valarith.c: Likewise.
3076 * valops.c: Likewise.
3077 * valprint.c: Likewise.
3078 * value.c: Likewise.
3079 * varobj.c: Likewise.
3080 * vax-tdep.c: Likewise.
3081 * vaxnbsd-tdep.c: Likewise.
3082 * vaxobsd-tdep.c: Likewise.
3083 * windows-nat.c: Likewise.
3084 * xcoffread.c: Likewise.
3085 * xml-support.c: Likewise.
3086 * xstormy16-tdep.c: Likewise.
3087 * xtensa-linux-nat.c: Likewise.
3089 2014-08-07 Gary Benson <gbenson@redhat.com>
3091 * common/common-defs.h: Include gdb_assert.h.
3092 * aarch64-tdep.c: Do not include gdb_assert.h.
3093 * addrmap.c: Likewise.
3094 * aix-thread.c: Likewise.
3095 * alpha-linux-tdep.c: Likewise.
3096 * alpha-mdebug-tdep.c: Likewise.
3097 * alphanbsd-tdep.c: Likewise.
3098 * amd64-nat.c: Likewise.
3099 * amd64-tdep.c: Likewise.
3100 * amd64bsd-nat.c: Likewise.
3101 * amd64fbsd-nat.c: Likewise.
3102 * amd64fbsd-tdep.c: Likewise.
3103 * amd64nbsd-nat.c: Likewise.
3104 * amd64nbsd-tdep.c: Likewise.
3105 * amd64obsd-nat.c: Likewise.
3106 * amd64obsd-tdep.c: Likewise.
3107 * arch-utils.c: Likewise.
3108 * arm-tdep.c: Likewise.
3109 * armbsd-tdep.c: Likewise.
3111 * bcache.c: Likewise.
3112 * bfin-tdep.c: Likewise.
3113 * blockframe.c: Likewise.
3114 * breakpoint.c: Likewise.
3115 * bsd-kvm.c: Likewise.
3116 * bsd-uthread.c: Likewise.
3117 * buildsym.c: Likewise.
3118 * c-exp.y: Likewise.
3119 * c-lang.c: Likewise.
3120 * charset.c: Likewise.
3121 * cleanups.c: Likewise.
3122 * cli-out.c: Likewise.
3123 * cli/cli-decode.c: Likewise.
3124 * cli/cli-dump.c: Likewise.
3125 * cli/cli-logging.c: Likewise.
3126 * cli/cli-script.c: Likewise.
3127 * cli/cli-utils.c: Likewise.
3128 * coffread.c: Likewise.
3129 * common/common-utils.c: Likewise.
3130 * common/queue.h: Likewise.
3131 * common/signals.c: Likewise.
3132 * common/vec.h: Likewise.
3133 * complaints.c: Likewise.
3134 * completer.c: Likewise.
3135 * corelow.c: Likewise.
3136 * cp-abi.c: Likewise.
3137 * cp-name-parser.y: Likewise.
3138 * cp-namespace.c: Likewise.
3139 * cp-support.c: Likewise.
3140 * cris-tdep.c: Likewise.
3141 * dbxread.c: Likewise.
3142 * dictionary.c: Likewise.
3143 * doublest.c: Likewise.
3144 * dsrec.c: Likewise.
3145 * dummy-frame.c: Likewise.
3146 * dwarf2-frame-tailcall.c: Likewise.
3147 * dwarf2-frame.c: Likewise.
3148 * dwarf2expr.c: Likewise.
3149 * dwarf2loc.c: Likewise.
3150 * dwarf2read.c: Likewise.
3152 * event-loop.c: Likewise.
3153 * exceptions.c: Likewise.
3154 * expprint.c: Likewise.
3155 * f-valprint.c: Likewise.
3156 * fbsd-nat.c: Likewise.
3157 * findvar.c: Likewise.
3158 * frame-unwind.c: Likewise.
3159 * frame.c: Likewise.
3160 * frv-tdep.c: Likewise.
3161 * gcore.c: Likewise.
3162 * gdb-dlfcn.c: Likewise.
3163 * gdb_bfd.c: Likewise.
3164 * gdbarch.c: Likewise.
3165 * gdbarch.sh: Likewise.
3166 * gdbtypes.c: Likewise.
3167 * gnu-nat.c: Likewise.
3168 * gnu-v3-abi.c: Likewise.
3169 * go-lang.c: Likewise.
3170 * guile/scm-exception.c: Likewise.
3171 * guile/scm-gsmob.c: Likewise.
3172 * guile/scm-lazy-string.c: Likewise.
3173 * guile/scm-math.c: Likewise.
3174 * guile/scm-pretty-print.c: Likewise.
3175 * guile/scm-safe-call.c: Likewise.
3176 * guile/scm-utils.c: Likewise.
3177 * guile/scm-value.c: Likewise.
3178 * h8300-tdep.c: Likewise.
3179 * hppa-hpux-nat.c: Likewise.
3180 * hppa-tdep.c: Likewise.
3181 * hppanbsd-tdep.c: Likewise.
3182 * hppaobsd-tdep.c: Likewise.
3183 * i386-darwin-nat.c: Likewise.
3184 * i386-darwin-tdep.c: Likewise.
3185 * i386-nto-tdep.c: Likewise.
3186 * i386-tdep.c: Likewise.
3187 * i386bsd-nat.c: Likewise.
3188 * i386fbsd-tdep.c: Likewise.
3189 * i386gnu-nat.c: Likewise.
3190 * i386nbsd-tdep.c: Likewise.
3191 * i386obsd-tdep.c: Likewise.
3192 * i387-tdep.c: Likewise.
3193 * ia64-libunwind-tdep.c: Likewise.
3194 * ia64-tdep.c: Likewise.
3195 * inf-ptrace.c: Likewise.
3196 * inf-ttrace.c: Likewise.
3197 * infcall.c: Likewise.
3198 * infcmd.c: Likewise.
3199 * infrun.c: Likewise.
3200 * inline-frame.c: Likewise.
3201 * interps.c: Likewise.
3202 * jv-lang.c: Likewise.
3203 * jv-typeprint.c: Likewise.
3204 * linux-fork.c: Likewise.
3205 * linux-nat.c: Likewise.
3206 * linux-thread-db.c: Likewise.
3207 * m32c-tdep.c: Likewise.
3208 * m32r-linux-nat.c: Likewise.
3209 * m32r-tdep.c: Likewise.
3210 * m68k-tdep.c: Likewise.
3211 * m68kbsd-nat.c: Likewise.
3212 * m68kbsd-tdep.c: Likewise.
3213 * m88k-tdep.c: Likewise.
3214 * machoread.c: Likewise.
3215 * macroexp.c: Likewise.
3216 * macrotab.c: Likewise.
3217 * maint.c: Likewise.
3218 * mdebugread.c: Likewise.
3219 * memory-map.c: Likewise.
3220 * mep-tdep.c: Likewise.
3221 * mi/mi-common.c: Likewise.
3222 * microblaze-tdep.c: Likewise.
3223 * mingw-hdep.c: Likewise.
3224 * mips-linux-nat.c: Likewise.
3225 * mips-linux-tdep.c: Likewise.
3226 * mips-tdep.c: Likewise.
3227 * mips64obsd-tdep.c: Likewise.
3228 * mipsnbsd-tdep.c: Likewise.
3229 * mn10300-linux-tdep.c: Likewise.
3230 * mn10300-tdep.c: Likewise.
3231 * moxie-tdep.c: Likewise.
3232 * mt-tdep.c: Likewise.
3233 * nat/linux-btrace.c: Likewise.
3234 * nat/linux-osdata.c: Likewise.
3235 * nat/linux-ptrace.c: Likewise.
3236 * nat/mips-linux-watch.c: Likewise.
3237 * nios2-linux-tdep.c: Likewise.
3238 * nios2-tdep.c: Likewise.
3239 * objc-lang.c: Likewise.
3240 * objfiles.c: Likewise.
3241 * obsd-nat.c: Likewise.
3242 * opencl-lang.c: Likewise.
3243 * osabi.c: Likewise.
3244 * parse.c: Likewise.
3245 * ppc-linux-nat.c: Likewise.
3246 * ppc-sysv-tdep.c: Likewise.
3247 * ppcfbsd-nat.c: Likewise.
3248 * ppcfbsd-tdep.c: Likewise.
3249 * ppcnbsd-nat.c: Likewise.
3250 * ppcnbsd-tdep.c: Likewise.
3251 * ppcobsd-nat.c: Likewise.
3252 * ppcobsd-tdep.c: Likewise.
3253 * printcmd.c: Likewise.
3254 * procfs.c: Likewise.
3255 * prologue-value.c: Likewise.
3256 * psymtab.c: Likewise.
3257 * python/py-lazy-string.c: Likewise.
3258 * python/py-value.c: Likewise.
3259 * regcache.c: Likewise.
3260 * reggroups.c: Likewise.
3261 * registry.c: Likewise.
3262 * remote-sim.c: Likewise.
3263 * remote.c: Likewise.
3264 * rs6000-aix-tdep.c: Likewise.
3265 * rs6000-tdep.c: Likewise.
3266 * s390-linux-tdep.c: Likewise.
3267 * score-tdep.c: Likewise.
3268 * ser-base.c: Likewise.
3269 * ser-mingw.c: Likewise.
3270 * sh-tdep.c: Likewise.
3271 * sh64-tdep.c: Likewise.
3272 * solib-darwin.c: Likewise.
3273 * solib-spu.c: Likewise.
3274 * solib-svr4.c: Likewise.
3275 * source.c: Likewise.
3276 * sparc-nat.c: Likewise.
3277 * sparc-sol2-tdep.c: Likewise.
3278 * sparc-tdep.c: Likewise.
3279 * sparc64-sol2-tdep.c: Likewise.
3280 * sparc64-tdep.c: Likewise.
3281 * sparc64fbsd-tdep.c: Likewise.
3282 * sparc64nbsd-tdep.c: Likewise.
3283 * sparc64obsd-tdep.c: Likewise.
3284 * sparcnbsd-tdep.c: Likewise.
3285 * sparcobsd-tdep.c: Likewise.
3286 * spu-multiarch.c: Likewise.
3287 * spu-tdep.c: Likewise.
3288 * stabsread.c: Likewise.
3289 * stack.c: Likewise.
3290 * symfile.c: Likewise.
3291 * symtab.c: Likewise.
3292 * target-descriptions.c: Likewise.
3293 * target-memory.c: Likewise.
3294 * target.c: Likewise.
3295 * tic6x-linux-tdep.c: Likewise.
3296 * tic6x-tdep.c: Likewise.
3297 * tilegx-linux-nat.c: Likewise.
3298 * tilegx-tdep.c: Likewise.
3300 * tramp-frame.c: Likewise.
3301 * tui/tui-out.c: Likewise.
3302 * tui/tui-winsource.c: Likewise.
3303 * ui-out.c: Likewise.
3304 * user-regs.c: Likewise.
3305 * utils.c: Likewise.
3306 * v850-tdep.c: Likewise.
3307 * valops.c: Likewise.
3308 * value.c: Likewise.
3309 * varobj.c: Likewise.
3310 * vax-nat.c: Likewise.
3311 * xml-syscall.c: Likewise.
3312 * xml-tdesc.c: Likewise.
3313 * xstormy16-tdep.c: Likewise.
3314 * xtensa-linux-nat.c: Likewise.
3315 * xtensa-tdep.c: Likewise.
3317 2014-08-07 Gary Benson <gbenson@redhat.com>
3319 * common/common-defs.h: Include common-utils.h.
3320 * defs.h: Do not include common-utils.h.
3321 * common/gdb_assert.h: Likewise.
3322 * darwin-nat.h: Likewise.
3323 * nat/linux-btrace.c: Likewise.
3324 * target/waitstatus.h: Likewise.
3326 2014-08-07 Gary Benson <gbenson@redhat.com>
3328 * common/common-defs.h: Include ptid.h.
3329 * defs.h: Do not include ptid.h.
3330 * inferior.h: Likewise.
3331 * infrun.h: Likewise.
3332 * nat/linux-btrace.h: Likewise.
3333 * nat/linux-osdata.h: Likewise.
3334 * target/waitstatus.h: Likewise.
3336 2014-08-07 Gary Benson <gbenson@redhat.com>
3338 * common/common-defs.h: Include gdb_locale.h.
3339 * defs.h: Do not include gdb_locale.h.
3341 2014-08-07 Gary Benson <gbenson@redhat.com>
3343 * common/common-defs.h: Include gdb/signals.h.
3344 * defs.h: Do not include gdb/signals.h.
3346 2014-08-07 Gary Benson <gbenson@redhat.com>
3348 * common/common-defs.h: Include pathmax.h.
3349 * defs.h: Do not include pathmax.h.
3351 2014-08-07 Gary Benson <gbenson@redhat.com>
3353 * common/common-defs.h: Include libiberty.h.
3354 * defs.h: Do not include libiberty.h.
3355 * common/queue.h: Likewise.
3356 * cp-name-parser.y: Likewise.
3357 * mi/mi-cmd-catch.c: Likewise.
3358 * python/python.c: Likewise.
3360 2014-08-07 Gary Benson <gbenson@redhat.com>
3362 * common/common-defs.h: Include ansidecl.h.
3363 * defs.h: Do not include ansidecl.h.
3364 * common/buffer.h: Likewise.
3365 * common/common-utils.h: Likewise.
3367 2014-08-07 Gary Benson <gbenson@redhat.com>
3369 * common/common-defs.h: Include stddef.h.
3370 * defs.h: Do not include stddef.h.
3371 * common/common-utils.h: Likewise.
3372 * amd64fbsd-nat.c: Likewise.
3373 * bcache.c: Likewise.
3374 * charset.c: Likewise.
3375 * common/buffer.h: Likewise.
3376 * common/vec.h: Likewise.
3377 * i386bsd-nat.c: Likewise.
3378 * nat/linux-btrace.h: Likewise.
3379 * ppcfbsd-nat.c: Likewise.
3380 * ppcnbsd-tdep.h: Likewise.
3381 * ppcobsd-nat.c: Likewise.
3382 * ppcobsd-tdep.h: Likewise.
3383 * python/py-gdb-readline.c: Likewise.
3385 2014-08-07 Gary Benson <gbenson@redhat.com>
3387 * common/common-defs.h: Include stdarg.h.
3388 * defs.h: Do not include stdarg.h.
3389 * ada-lang.c: Likewise.
3390 * common/common-utils.h: Likewise.
3391 * guile/scm-string.c: Likewise.
3392 * guile/scm-utils.c: Likewise.
3393 * m32c-tdep.c: Likewise.
3395 2014-08-07 Gary Benson <gbenson@redhat.com>
3397 * common/common-defs.h: Include stdlib.h.
3398 * defs.h: Do not include stdlib.h.
3399 * addrmap.c: Likewise.
3400 * bcache.c: Likewise.
3401 * common/buffer.c: Likewise.
3402 * common/common-utils.c: Likewise.
3403 * cp-name-parser.y: Likewise.
3404 * go32-nat.c: Likewise.
3405 * mn10300-linux-tdep.c: Likewise.
3406 * nat/linux-osdata.c: Likewise.
3407 * tui/tui.c: Likewise.
3408 * windows-nat.c: Likewise.
3410 2014-08-07 Gary Benson <gbenson@redhat.com>
3412 * common/common-defs.h: Include stdio.h.
3413 * defs.h: Do not include stdio.h.
3414 * ada-lang.c: Likewise.
3415 * common/buffer.c: Likewise.
3416 * common/common-utils.c: Likewise.
3417 * cp-name-parser.y: Likewise.
3418 * gnu-nat.c: Likewise.
3419 * go32-nat.c: Likewise.
3420 * i386gnu-nat.c: Likewise.
3421 * proc-api.c: Likewise.
3422 * proc-events.c: Likewise.
3423 * proc-flags.c: Likewise.
3424 * proc-why.c: Likewise.
3425 * python/python-internal.h: Likewise.
3426 * target-memory.c: Likewise.
3427 * tui/tui-io.c: Likewise.
3428 * tui/tui.c: Likewise.
3430 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3432 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3433 (scan_dyntag_auxv): Same.
3435 2014-08-06 Yao Qi <yao@codesourcery.com>
3437 * amd64-linux-nat.c: Remove duplicated include
3439 * i386-linux-nat.c: Likewise.
3441 2014-08-06 Yao Qi <yao@codesourcery.com>
3443 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3444 operand" with "Special opcode" in comments.
3446 2014-08-05 Gary Benson <gbenson@redhat.com>
3448 * interps.c (initialize_interps): Remove prototype.
3449 (interpreter_initialized): Remove static global.
3450 (interp_add): Do not call initialize_interps.
3451 (initialize_interps): Remove function.
3453 2014-08-05 Gary Benson <gbenson@redhat.com>
3455 * utils.c (vwarning): Remove spurious va_end.
3457 2014-08-05 Alan Modra <amodra@gmail.com>
3459 * charset.c (convert_between_encodings): Cast result of obstack_base.
3460 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3461 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3462 (read_unwind_info): Use size_t for some locals.
3463 * jit.c (finalize_symtab): Likewise.
3464 * utils.c (hashtab_obstack_allocate): Likewise.
3465 * symmisc.c (print_objfile_statistics): Update format strings.
3467 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3469 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3470 (Changes in GDB 7.8): ... here.
3472 2014-08-04 Tom Tromey <tromey@redhat.com>
3474 * target.c (set_targetdebug): New function.
3475 (initialize_targets): Pass set_targetdebug when creating "set
3478 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3480 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3481 if detecting a variable-sized field that is not the last field.
3482 Fix struct type length computation.
3484 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3486 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3489 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3491 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3492 Remove "+ 8" offset in computation of CHAIN_VMA.
3494 2014-07-31 Doug Evans <dje@google.com>
3496 * inflow.c (child_terminal_inferior): Add comment.
3497 (child_terminal_ours_for_output): Add comment.
3498 (child_terminal_ours): Add comment.
3499 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3500 (linux_nat_terminal_ours): Add comment.
3502 2014-07-31 Gary Benson <gbenson@redhat.com>
3504 * common/btrace-common.h: Do not include defs.h or server.h.
3505 * nat/mips-linux-watch.h: Likewise.
3506 * gdb-dlfcn.h: Do not include defs.h.
3507 * tracefile.h: Likewise.
3509 2014-07-30 Roland McGrath <mcgrathr@google.com>
3511 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3513 2014-07-30 Tom Tromey <tromey@redhat.com>
3515 * bsd-kvm.c (bsd_kvm_open): Constify.
3516 * corelow.c (core_open): Constify.
3517 * ctf.c (ctf_open): Constify.
3518 * dbug-rom.c (dbug_open): Constify.
3519 * exec.c (exec_open): Constify.
3520 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3521 * microblaze-rom.c (picobug_open): Constify.
3522 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3524 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3525 * record-btrace.c (record_btrace_open): Constify.
3526 * record-full.c (record_full_core_open_1, record_full_open_1)
3527 (record_full_open): Constify.
3528 * remote-m32r-sdi.c (m32r_open): Constify.
3529 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3530 (rockhopper_open, lsi_open): Constify.
3531 * remote-sim.c (gdbsim_open): Constify.
3532 * remote.c (remote_open, extended_remote_open, remote_open_1):
3534 * target.h (struct target_ops) <to_open>: Make "arg" const.
3535 * tracefile-tfile.c (tfile_open): Constify.
3537 2014-07-30 Tom Tromey <tromey@redhat.com>
3539 * breakpoint.c (map_breakpoint_numbers): Update.
3540 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3541 (get_number_const): New function.
3542 (get_number): Rewrite using get_number_const.
3543 (init_number_or_range): Make "string" const.
3544 (number_is_in_list): Make "list" const.
3545 * cli/cli-utils.h (get_number_const): Declare.
3546 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3547 (init_number_or_range, number_is_in_list): Update.
3548 * printcmd.c (map_display_numbers): Update.
3549 * value.c (value_from_history_ref): Constify.
3550 * value.h (value_from_history_ref): Update.
3552 2014-07-30 Tom Tromey <tromey@redhat.com>
3554 * corefile.c (hook_type, call_extra_exec_file_hooks)
3555 (specify_exec_file_hook): Constify.
3556 * exec.c (exec_file_attach): Make "filename" const.
3557 * gdbcore.h (deprecated_exec_file_display_hook)
3558 (specify_exec_file_hook, exec_file_attach): Constify.
3559 * main.c (captured_main): Use catch_command_errors_const.
3561 2014-07-30 Tom Tromey <tromey@redhat.com>
3563 * target.c (open_target): New function.
3564 (add_target_with_completer, add_deprecated_target_alias): Use
3565 set_cmd_sfunc, set_cmd_context.
3566 (debug_to_open): Remove.
3567 (setup_target_debug): Update.
3569 2014-07-30 Yao Qi <yao@codesourcery.com>
3571 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3573 * parse.c (exp_iterate): Update comments.
3575 2014-07-30 Gary Benson <gbenson@redhat.com>
3577 * common/common-defs.h: New file.
3578 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3579 * defs.h: Include common-defs.h.
3580 Do not include config.h or build-gnulib/config.h.
3582 2014-07-30 Gary Benson <gbenson@redhat.com>
3584 * common/common-utils.h: Do not include config.h.
3585 * nat/linux-btrace.h: Likewise.
3587 2014-07-30 Gary Benson <gbenson@redhat.com>
3589 * btrace.c: Include defs.h.
3590 * common/ptid.c: Include defs.h or server.h as appropriate.
3591 * nat/mips-linux-watch.c: Likewise.
3593 2014-07-29 Tom Tromey <tromey@redhat.com>
3595 * target.c (target_is_pushed): Simplify.
3597 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3601 2014-07-29 Yao Qi <yao@codesourcery.com>
3604 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3606 2014-07-28 Doug Evans <xdje42@gmail.com>
3609 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3610 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3613 2014-07-28 Will Newton <will.newton@linaro.org>
3615 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3616 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3617 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3618 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3619 (THUMB2_EABI_SYSCALL): Likewise.
3620 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3622 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3623 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3625 2014-07-27 Doug Evans <xdje42@gmail.com>
3627 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3629 2014-07-27 Doug Evans <xdje42@gmail.com>
3631 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3633 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3634 Doug Evans <xdje42@gmail.com>
3637 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3638 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3639 * configure.ac: Try to use guild to compile an scm file, if it fails
3640 then disable guile support.
3641 * configure: Regenerate.
3642 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3644 (GUILE_COMPILED_FILES): New variable.
3645 (GUILE_FILES) Update.
3646 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3647 (stamp-guile): Compile scm files.
3648 * guile/guile.c (boot_guile_support): New function.
3649 (standard_throw_args_p): New function.
3650 (print_standard_throw_error, print_throw_error): New functions.
3651 (handle_boot_error): New function.
3652 (initialize_scheme_side): Rewrite to call boot_guile_support.
3653 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3654 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3656 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3657 Doug Evans <xdje42@gmail.com>
3660 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3661 * guile/lib/gdb/support.scm: New file.
3662 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3663 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3665 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3667 (%assert-type): Ditto, and renamed to assert-type.
3668 (%exception-print-style): Delete.
3670 2014-07-26 Doug Evans <xdje42@gmail.com>
3673 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3674 * configure: Regenerate.
3675 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3677 (PYTHON_FILES): New variable.
3678 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3679 (GUILE_FILES): New variable.
3680 (stamp-python, install-python, uninstall-python): Handle empty
3682 (stamp-guile, install-guile, uninstall-guile): Ditto.
3684 2014-07-26 Doug Evans <xdje42@gmail.com>
3687 * guile/lib/gdb.scm (pretty-printers): Export.
3688 (set-pretty-printers!): Export.
3689 * guile/lib/gdb/printing.scm (gdb module): Update.
3690 (prepend-pretty-printer!, append-pretty-printer!): Update.
3691 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3692 (pretty_printer_list_var): Delete.
3693 (pretty_printer_list): New static global.
3694 (gdbscm_pretty_printers): New function.
3695 (gdbscm_set_pretty_printers_x): New function.
3696 (ppscm_find_pretty_printer_from_gdb): Update.
3697 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3698 (gdbscm_initialize_pretty_printers): Update.
3700 2014-07-26 Doug Evans <xdje42@gmail.com>
3703 * configure.ac: Add check for header gc/gc.h.
3704 Add check for function setenv.
3705 * configure: Regenerate.
3706 * config.in: Regenerate.
3707 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3709 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3711 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3712 variation in gdbarch matching.
3714 2014-07-25 Tom Tromey <tromey@redhat.com>
3716 * exec.c (using_exec_ops): Remove.
3717 (exec_close_1): Update. Remove extraneous block, reindent.
3718 (add_target_sections): Use target_is_pushed.
3720 2014-07-25 Pedro Alves <palves@redhat.com>
3722 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3723 * monitor.c (monitor_create_inferior): Likewise.
3724 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3725 * remote-sim.c (gdbsim_create_inferior): Likewise.
3726 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3727 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3728 * windows-nat.c (do_initial_windows_stuff): Likewise.
3730 2014-07-25 Pedro Alves <palves@redhat.com>
3732 * NEWS: Mention signal passing and "signal" command changes.
3733 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3735 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3737 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3738 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3739 (jump_command): Adjust clear_proceed_status call.
3740 (signal_command): Warn if other thread that are resumed have
3741 signals that will be delivered. Adjust clear_proceed_status call.
3742 (until_next_command, finish_command)
3743 (proceed_after_attach_callback, attach_command_post_wait)
3744 (attach_command): Adjust clear_proceed_status call.
3745 * infrun.c (proceed_after_vfork_done): Likewise.
3746 (proceed_after_attach_callback): Adjust comment.
3747 (clear_proceed_status_thread): Clear stop_signal if not in pass
3749 (clear_proceed_status_callback): Delete.
3750 (clear_proceed_status): New 'step' parameter. Only clear the
3751 proceed status of threads the command being prepared is about to
3753 (proceed): If passed in an explicit signal, override stop_signal
3754 with it. Don't pass the last stop signal to the thread we're
3756 (init_wait_for_inferior): Adjust clear_proceed_status call.
3757 (switch_back_to_stepped_thread): Clear the signal if it should not
3759 * infrun.h (clear_proceed_status): New 'step' parameter.
3760 (user_visible_resume_ptid): Add comment.
3761 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3762 signal is in pass state.
3763 * remote.c (append_pending_thread_resumptions): Likewise.
3764 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3766 2014-07-25 Tom Tromey <tromey@redhat.com>
3768 * target.h (target_stopped_data_address)
3769 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3772 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3774 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3776 (avr_pointer_to_address): Likewise.
3778 2014-07-24 Tom Tromey <tromey@redhat.com>
3780 * monitor.c (compile_pattern): Update.
3781 * target.h (struct target_ops) <to_shortname, to_longname,
3784 2014-07-24 Tom Tromey <tromey@redhat.com>
3786 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3787 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3788 (add_info_alias, add_com): Make "doc" const.
3789 (print_doc_line): Make "str" const.
3790 (delete_cmd): Update.
3791 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3792 (print_doc_line): Update.
3793 * cli/cli-script.c (document_command): Update.
3794 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3795 (add_com, add_info, add_info_alias): Update.
3796 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3797 * python/py-cmd.c (cmdpy_destroyer): Update.
3799 2014-07-24 Tom Tromey <tromey@redhat.com>
3801 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3802 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3803 (help_cmd_list): Constify.
3804 (lookup_cmd): Update.
3805 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3807 (help_cmd_list, apropos_cmd): Update.
3808 * cli/cli-script.c (show_user): Update.
3809 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3810 * cli/cli-setshow.h (cmd_show_list): Update.
3811 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3812 (cmd_show_list): Update.
3813 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3814 * python/py-cmd.c (cmdpy_destroyer): Update.
3816 2014-07-24 Tom Tromey <tromey@redhat.com>
3818 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3819 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3821 * command.h (deprecate_cmd): Update.
3822 * maint.c (maintenance_do_deprecate): Add casts.
3824 2014-07-24 Tom Tromey <tromey@redhat.com>
3826 * cli/cli-decode.c (help_cmd): Make parameter "const".
3827 * cli/cli-decode.h (help_cmd): Update.
3829 2014-07-24 Tom Tromey <tromey@redhat.com>
3831 * stack.c (up_silently_base, down_silently_base): Make argument
3834 2014-07-24 Tom Tromey <tromey@redhat.com>
3836 * solib.c (solib_add): Make "pattern" const.
3837 * solib.h (solib_add): Update.
3839 2014-07-24 Tom Tromey <tromey@redhat.com>
3841 * remote.c (remote_serial_open, print_packet, putpkt)
3842 (putpkt_binary): Constify.
3843 * remote.h (putpkt): Update.
3845 2014-07-24 Tom Tromey <tromey@redhat.com>
3847 * monitor.c (monitor_open): Make "args" const.
3848 * monitor.h (monitor_open): Update.
3850 2014-07-24 Tom Tromey <tromey@redhat.com>
3852 * maint.c (match_bfd_flags): Make "string" const.
3853 (print_bfd_section_info): Remove casts.
3854 (print_objfile_section_info): Make "string" const.
3856 2014-07-24 Tom Tromey <tromey@redhat.com>
3858 * inf-child.c (inf_child_open_target): Make "arg" const.
3859 * inf-child.h (inf_child_open_target): Update.
3861 2014-07-24 Tom Tromey <tromey@redhat.com>
3863 * environ.c (unset_in_environ): Make "var" const.
3864 * environ.h (unset_in_environ): Update.
3866 2014-07-24 Tom Tromey <tromey@redhat.com>
3868 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3870 (scan_filename_with_cleanup): Likewise.
3871 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3872 Make arguments const.
3873 (restore_command): Update.
3875 2014-07-24 Pedro Alves <palves@redhat.com>
3877 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3879 2014-07-24 Tom Tromey <tromey@redhat.com>
3880 Gary Benson <gbenson@redhat.com>
3882 * nat/linux-ptrace.c (additional_flags): New global.
3883 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3884 additional_flags; don't check GDBSERVER.
3885 (linux_ptrace_set_additional_flags): New function.
3886 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3888 * linux-nat.c (_initialize_linux_nat): Call
3889 linux_ptrace_set_additional_flags.
3891 2014-07-24 Tom Tromey <tromey@redhat.com>
3893 * make-target-delegates (munge_type, write_debugmethod): New
3895 (debug_names): New global.
3896 ($TARGET_DEBUG_PRINTER): New global.
3897 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3899 Write debug methods. Generate init_debug_target.
3900 * target-debug.h: New file.
3901 * target-delegates.c: Rebuild.
3902 * target.c: Include target-debug.h.
3903 (debug_target): Hoist definition.
3904 (target_kill, target_get_section_table, target_memory_map)
3905 (target_flash_erase, target_flash_done, target_detach)
3906 (target_disconnect, target_wait, target_resume)
3907 (target_pass_signals, target_program_signals, target_follow_fork)
3908 (target_mourn_inferior, target_search_memory)
3909 (target_thread_address_space, target_close)
3910 (target_find_new_threads, target_core_of_thread)
3911 (target_verify_memory, target_insert_mask_watchpoint)
3912 (target_remove_mask_watchpoint): Remove targetdebug code.
3913 (debug_to_post_attach, debug_to_prepare_to_store)
3914 (debug_to_files_info, debug_to_insert_breakpoint)
3915 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3916 (debug_to_region_ok_for_hw_watchpoint)
3917 (debug_to_can_accel_watchpoint_condition)
3918 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3919 (debug_to_watchpoint_addr_within_range)
3920 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3921 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3922 (debug_to_terminal_init, debug_to_terminal_inferior)
3923 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3924 (debug_to_terminal_save_ours, debug_to_terminal_info)
3925 (debug_to_load, debug_to_post_startup_inferior)
3926 (debug_to_insert_fork_catchpoint)
3927 (debug_to_remove_fork_catchpoint)
3928 (debug_to_insert_vfork_catchpoint)
3929 (debug_to_remove_vfork_catchpoint)
3930 (debug_to_insert_exec_catchpoint)
3931 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3932 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3933 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3934 (setup_target_debug): Call init_debug_target.
3935 * target.h (TARGET_DEBUG_PRINTER): New macro.
3936 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3937 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3939 2014-07-24 Gary Benson <gbenson@redhat.com>
3941 * exceptions.h (throw_vfatal): Renamed to...
3942 (throw_vquit): New declaration.
3943 (throw_quit): Likewise.
3944 * exceptions.c (throw_vfatal): Renamed to...
3945 (throw_vquit): New function.
3946 (throw_quit): Likewise.
3947 (throw_error): Call throw_verror rather than throw_it.
3948 * utils.h (vfatal): Removed.
3950 * utils.c (vfatal): Removed.
3952 (internal_verror): Replaced call to fatal with call to throw_quit.
3953 (quit): Replaced calls to fatal with calls to throw_quit.
3955 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3957 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3960 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3962 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3963 less than zero in conditional expression.
3965 2014-07-23 Tom Tromey <tromey@redhat.com>
3967 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3968 ($INTRO_PART): Don't match whitespace.
3969 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3971 ($METHOD): Add $METHOD_TRAILER.
3973 (scan_target_h): New sub.
3974 Change main loop not to collect state.
3975 * target-delegates.c: Rebuild.
3977 2014-07-23 Gary Benson <gbenson@redhat.com>
3979 * cp-support.c (gdb_demangle): Fix build on systems without
3982 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3984 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3985 for reference entry value target data value.
3987 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3989 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3990 value_available_contents_eq.
3992 2014-07-22 Pedro Alves <palves@redhat.com>
3994 * value.c (allocate_optimized_out_value): Don't mark value as
3997 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3999 * MAINTAINERS (Write After Approval): Update my email address.
4001 2014-07-20 Doug Evans <dje@google.com>
4004 * remote.c (putpkt_binary): Add text to error message.
4006 2014-07-20 Yao Qi <yao@codesourcery.com>
4008 * eval.c: Remove "Chill" from comments.
4009 * gdbtypes.h: Likewise.
4010 * symtab.h: Likewise.
4012 2014-07-20 Yao Qi <yao@codesourcery.com>
4014 * std-operator.def: Update comments to TERNOP_SLICE.
4016 2014-07-20 Yao Qi <yao@codesourcery.com>
4018 * std-operator.def: Remove BINOP_RANGE.
4019 * breakpoint.c (watchpoint_exp_is_const): Update.
4020 * expprint.c (dump_subexp_body_standard): Likewise.
4021 * eval.c (init_array_element): Remove dead code.
4022 (evaluate_subexp_standard): Likewise.
4024 2014-07-20 Yao Qi <yao@codesourcery.com>
4026 * std-operator.def: Remove BINOP_IN.
4027 * breakpoint.c (watchpoint_exp_is_const): Update.
4028 * eval.c (evaluate_subexp_standard): Likewise.
4029 * expprint.c (dump_subexp_body_standard): Likewise.
4031 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4033 * microblaze-tdep.c (microblaze_register_names): Add
4034 the rshr and rslr register names.
4035 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4036 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4037 Use of tdesc_numbered_register. Use of
4038 microblaze_register_g_packet_guesses. Use of
4039 tdesc_use_registers. Use of set_gdbarch_register_type.
4040 (microblaze_register_g_packet_guesses): New.
4041 * microblaze-tdep.h (microblaze_reg_num): Add
4042 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4043 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4044 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4045 * features/microblaze-core.xml: New file.
4046 * features/microblaze-stack-protect.xml: New file.
4047 * features/microblaze-with-stack-protect.c: New file.
4048 * features/microblaze-with-stack-protect.xml: New file.
4049 * features/microblaze.xml: New file.
4050 * features/microblaze.c: New file.
4051 * features/Makefile (microblaze-with-stack-protect): Add
4052 microblaze-with-stack-protect microblaze and microblaze-expedite.
4053 * regformats/microblaze-with-stack-protect.dat: New file.
4054 * regformats/microblaze.dat: New file.
4055 * doc/gdb.texinfo (MicroBlaze Features): Added.
4057 2014-07-18 Tom Tromey <tromey@redhat.com>
4059 * exec.c (exec_ops): Now static.
4060 * exec.h (exec_ops): Don't declare.
4062 2014-07-18 Tom Tromey <tromey@redhat.com>
4064 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4065 to find_target_beneath.
4066 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4067 find_target_beneath.
4068 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4070 2014-07-18 Tom Tromey <tromey@redhat.com>
4073 * utils.c (quit): Use target_supports_terminal_ours.
4074 * target.h (target_supports_terminal_ours): Declare.
4075 * target.c (target_supports_delete_record): Don't check
4076 to_delete_record against NULL.
4077 (target_supports_terminal_ours): New function.
4079 2014-07-18 Tom Tromey <tromey@redhat.com>
4082 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4083 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4084 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4085 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4086 * windows-nat.c (windows_xfer_partial): Always delegate.
4087 * record-btrace.c (record_btrace_xfer_partial): Simplify
4089 (record_btrace_fetch_registers, record_btrace_store_registers)
4090 (record_btrace_prepare_to_store, record_btrace_resume)
4091 (record_btrace_wait, record_btrace_find_new_threads)
4092 (record_btrace_thread_alive): Likewise.
4093 * procfs.c (procfs_xfer_partial): Always delegate.
4094 * corelow.c (core_xfer_partial): Always delegate.
4095 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4097 2014-07-18 Tom Tromey <tromey@redhat.com>
4099 * exec.c (exec_make_note_section): Move earlier.
4101 2014-07-17 Doug Evans <dje@google.com>
4104 * maint.c (count_symtabs_and_blocks): Handle NULL
4105 current_program_space.
4106 (report_command_stats): Check global enabled flag in addition to
4107 recorded enabled flag.
4108 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4110 2014-07-16 Pedro Alves <palves@redhat.com>
4112 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4114 2014-07-16 Tom Tromey <tromey@redhat.com>
4116 * target.h (struct target_ops) <to_delete_record>: Reformat
4119 2014-07-16 Tom Tromey <tromey@redhat.com>
4121 * target-delegates.c: Rebuild.
4123 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4125 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4126 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4127 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4128 (avr_pointer_to_address): Likewise.
4129 (avr_address_class_type_flags): New function.
4130 (avr_address_class_type_flags_to_name): Likewise.
4131 (avr_address_class_name_to_type_flags): Likewise.
4132 (avr_gdbarch_init): Set address_class_type_flags,
4133 address_class_type_flags_to_name and
4134 address_class_name_to_type_flags.
4136 2014-07-15 Pedro Alves <palves@redhat.com>
4138 * linux-nat.c (kill_callback): Save errno and work with saved
4141 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4143 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4145 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4147 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4148 breakpoint support correctly.
4150 2014-07-14 Pedro Alves <palves@redhat.com>
4152 * utils.c (prompt_for_continue): Call target_terminal_ours.
4154 2014-07-14 Pedro Alves <palves@redhat.com>
4156 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4157 catch_errors. Don't re-enable stdin or notify observers where,
4159 (fetch_inferior_event_wrapper): Delete.
4161 2014-07-14 Pedro Alves <palves@redhat.com>
4164 * top.c: Include "inf-loop.h".
4165 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4167 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4169 (gdb_readline_wrapper): Store whether the target is async, and
4172 2014-07-14 Pedro Alves <palves@redhat.com>
4175 * top.c (gdb_readline_wrapper_line): Tweak comment.
4176 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4177 the input handler callback.
4179 2014-07-14 Pedro Alves <palves@redhat.com>
4182 * main.c: Include event-top.h.
4183 (handle_command_errors): New function.
4184 (catch_command_errors, catch_command_errors_const): Use it.
4186 2014-07-14 Pedro Alves <palves@redhat.com>
4188 * exceptions.c (catch_command_errors, catch_command_errors_const):
4190 * exceptions.h (catch_command_errors_ftype)
4191 (catch_command_errors_const_ftype): Moved to main.c.
4192 (catch_command_errors, catch_command_errors_const): Delete
4194 * main.c (catch_command_errors_ftype)
4195 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4196 (catch_command_errors, catch_command_errors_const)): Moved here
4197 from exceptions.c and make static.
4199 2014-07-14 Pedro Alves <palves@redhat.com>
4201 * exceptions.c (print_any_exception): Delete.
4202 (catch_exceptions_with_msg): Use exception_print instead of
4203 print_any_exception.
4204 (catch_errors): Use exception_fprintf instead of
4205 print_any_exception.
4206 (catch_command_errors, catch_command_errors_const): Use
4207 exception_print instead of print_any_exception.
4209 2014-07-14 Pedro Alves <palves@redhat.com>
4211 * infcall.c (run_inferior_call): Set 'sync_execution' while
4212 running the inferior call.
4214 2014-07-14 Pedro Alves <palves@redhat.com>
4216 * value.c (value_contents_equal): Delete function.
4217 * value.h (value_contents_equal): Delete declaration.
4219 2014-07-14 Tom Tromey <tromey@redhat.com>
4222 * gdbtypes.c (is_dynamic_type_internal): New function, from
4224 (is_dynamic_type): Rewrite.
4225 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4226 (resolve_dynamic_struct): Likewise.
4227 (resolve_dynamic_type_internal): New function, from
4228 resolve_dynamic_type.
4229 (resolve_dynamic_type): Rewrite.
4231 2014-07-14 Tom Tromey <tromey@redhat.com>
4233 * target.c (target_require_runnable): Also check record_stratum.
4236 2014-07-11 Yao Qi <yao@codesourcery.com>
4238 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4239 thumb_instruction_restores_sp return true.
4241 2014-07-11 Yao Qi <yao@codesourcery.com>
4243 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4244 (thumb_in_function_epilogue_p): Call
4245 thumb_instruction_restores_sp.
4247 2014-07-11 Yao Qi <yao@codesourcery.com>
4249 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4251 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4253 2014-07-11 Gary Benson <gbenson@redhat.com>
4255 * amd64-linux-nat.c (gdbcore.h): Remove include.
4256 (regset.h): Likewise.
4257 (nat/linux-btrace.h): Likewise.
4258 (btrace.h): Likewise.
4259 (gdb_assert.h): Likewise.
4260 (string.h): Likewise.
4261 (sys/uio.h): Likewise.
4262 (sys/debugreg.h): Likewise.
4263 (sys/syscall.h): Likewise.
4264 (sys/procfs.h): Likewise.
4265 (sys/user.h): Likewise.
4266 (asm/ptrace.h): Likewise.
4267 (i386-nat.h): Likewise.
4268 * i386-linux-nat.c (i386-nat.h): Likewise.
4269 (regset.h): Likewise.
4270 (target.h): Likewise.
4271 (linux-nat.h): Likewise.
4272 (nat/linux-btrace.h): Likewise.
4273 (btrace.h): Likewise.
4274 (gdb_assert.h): Likewise.
4275 (string.h): Likewise.
4276 (sys/uio.h): Likewise.
4277 (sys/user.h): Likewise.
4278 (sys/procfs.h): Likewise.
4279 (sys/reg.h): Likewise.
4280 (sys/debugreg.h): Likewise.
4281 (ORIG_EAX): Remove definition.
4283 2014-07-11 Gary Benson <gbenson@redhat.com>
4285 * i386-linux-nat.h: New file.
4286 * x86-linux-nat.h: Likewise.
4287 * x86-linux-nat.c: Likewise.
4288 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4289 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4290 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4291 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4292 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4293 (PTRACE_SETREGSET): Likewise.
4294 (arch_lwp_info): Now in x86-linux-nat.c.
4295 (have_ptrace_getregset): Now in x86-linux-nat.h.
4296 (x86_linux_dr_get): Now in x86-linux-nat.c.
4297 (x86_linux_dr_set): Likewise.
4298 (x86_linux_dr_get_addr): Likewise.
4299 (x86_linux_dr_get_control): Likewise.
4300 (x86_linux_dr_get_status): Likewise.
4301 (update_debug_registers_callback): Likewise.
4302 (x86_linux_dr_set_control): Likewise.
4303 (x86_linux_dr_set_addr): Likewise.
4304 (x86_linux_prepare_to_resume): Likewise.
4305 (x86_linux_new_thread): Likewise.
4306 (x86_linux_new_fork): Likewise.
4307 (x86_linux_get_thread_area): Likewise.
4308 (super_post_startup_inferior): Likewise.
4309 (x86_linux_child_post_startup_inferior): Likewise.
4310 (AMD64_LINUX_USER64_CS): Likewise.
4311 (AMD64_LINUX_X32_DS): Likewise.
4312 (x86_linux_read_description): Likewise.
4313 (x86_linux_enable_btrace): Likewise.
4314 (x86_linux_disable_btrace): Likewise.
4315 (x86_linux_teardown_btrace): Likewise.
4316 (x86_linux_read_btrace): Likewise.
4317 (x86_linux_create_target): Likewise.
4318 (x86_linux_add_target): Likewise.
4319 * i386-linux-nat.c (x86-linux-nat.h): New include.
4320 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4321 (PTRACE_SETREGSET): Likewise.
4322 (arch_lwp_info): Now in x86-linux-nat.c.
4323 (have_ptrace_getregset): Now in x86-linux-nat.h.
4324 (x86_linux_dr_get): Now in x86-linux-nat.c.
4325 (x86_linux_dr_set): Likewise.
4326 (x86_linux_dr_get_addr): Likewise.
4327 (x86_linux_dr_get_control): Likewise.
4328 (x86_linux_dr_get_status): Likewise.
4329 (update_debug_registers_callback): Likewise.
4330 (x86_linux_dr_set_control): Likewise.
4331 (x86_linux_dr_set_addr): Likewise.
4332 (x86_linux_prepare_to_resume): Likewise.
4333 (x86_linux_new_thread): Likewise.
4334 (x86_linux_new_fork): Likewise.
4335 (x86_linux_get_thread_area): Likewise.
4336 (super_post_startup_inferior): Likewise.
4337 (x86_linux_child_post_startup_inferior): Likewise.
4338 (AMD64_LINUX_USER64_CS): Likewise.
4339 (AMD64_LINUX_X32_DS): Likewise.
4340 (x86_linux_read_description): Likewise.
4341 (x86_linux_enable_btrace): Likewise.
4342 (x86_linux_disable_btrace): Likewise.
4343 (x86_linux_teardown_btrace): Likewise.
4344 (x86_linux_read_btrace): Likewise.
4345 (x86_linux_create_target): Likewise.
4346 (x86_linux_add_target): Likewise.
4348 2014-07-11 Gary Benson <gbenson@redhat.com>
4350 * amd64-linux-nat.c: Comment and whitespace changes.
4351 * i386-linux-nat.c: Comment and whitespace changes.
4353 2014-07-11 Gary Benson <gbenson@redhat.com>
4355 * amd64-linux-nat.c (x86_linux_create_target): New function.
4356 (x86_linux_add_target): Likewise.
4357 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4358 * i386-linux-nat.c (x86_linux_create_target): New function.
4359 (x86_linux_add_target): Likewise.
4360 (_initialize_i386_linux_nat): Delegate to the above new functions.
4362 2014-07-11 Gary Benson <gbenson@redhat.com>
4364 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4365 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4366 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4367 (ps_get_thread_area): Delegate to the above.
4369 2014-07-11 Gary Benson <gbenson@redhat.com>
4371 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4372 x86_linux_read_description. All uses updated. amd64-specific
4373 code conditionalized. Conditionalized i386-specific code added.
4374 Redundant cast removed.
4375 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4376 x86_linux_read_description. All uses updated. i386-specific
4377 code conditionalized. Conditionalized amd64-specific code added.
4378 One sizeof replaced with the actual type it is describing.
4380 2014-07-11 Gary Benson <gbenson@redhat.com>
4382 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4383 x86_linux_dr_get. All uses updated.
4384 (amd64_linux_dr_set): Renamed to
4385 x86_linux_dr_set. All uses updated.
4386 (amd64_linux_dr_get_addr): Renamed to
4387 x86_linux_dr_get_addr. All uses updated.
4388 (amd64_linux_dr_get_control): Renamed to
4389 x86_linux_dr_get_control. All uses updated.
4390 (amd64_linux_dr_get_status): Renamed to
4391 x86_linux_dr_get_status. All uses updated.
4392 (amd64_linux_dr_set_control): Renamed to
4393 x86_linux_dr_set_control. All uses updated.
4394 (amd64_linux_dr_set_addr): Renamed to
4395 x86_linux_dr_set_addr. All uses updated.
4396 (amd64_linux_prepare_to_resume): Renamed to
4397 x86_linux_prepare_to_resume. All uses updated.
4398 (amd64_linux_new_thread): Renamed to
4399 x86_linux_new_thread. All uses updated.
4400 (amd64_linux_new_fork): Renamed to
4401 x86_linux_new_fork. All uses updated.
4402 (amd64_linux_child_post_startup_inferior): Renamed to
4403 x86_linux_child_post_startup_inferior. All uses updated.
4404 (amd64_linux_enable_btrace): Renamed to
4405 x86_linux_enable_btrace. All uses updated.
4406 (amd64_linux_disable_btrace): Renamed to
4407 x86_linux_disable_btrace. All uses updated.
4408 (amd64_linux_teardown_btrace): Renamed to
4409 x86_linux_teardown_btrace. All uses updated.
4410 (amd64_linux_read_btrace): Renamed to
4411 x86_linux_read_btrace. All uses updated.
4412 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4413 x86_linux_dr_get. All uses updated.
4414 (i386_linux_dr_set): Renamed to
4415 x86_linux_dr_set. All uses updated.
4416 (i386_linux_dr_get_addr): Renamed to
4417 x86_linux_dr_get_addr. All uses updated.
4418 (i386_linux_dr_get_control): Renamed to
4419 x86_linux_dr_get_control. All uses updated.
4420 (i386_linux_dr_get_status): Renamed to
4421 x86_linux_dr_get_status. All uses updated.
4422 (i386_linux_dr_set_control): Renamed to
4423 x86_linux_dr_set_control. All uses updated.
4424 (i386_linux_dr_set_addr): Renamed to
4425 x86_linux_dr_set_addr. All uses updated.
4426 (i386_linux_prepare_to_resume): Renamed to
4427 x86_linux_prepare_to_resume. All uses updated.
4428 (i386_linux_new_thread): Renamed to
4429 x86_linux_new_thread. All uses updated.
4430 (i386_linux_new_fork): Renamed to
4431 x86_linux_new_fork. All uses updated.
4432 (i386_linux_child_post_startup_inferior): Renamed to
4433 x86_linux_child_post_startup_inferior. All uses updated.
4434 (i386_linux_enable_btrace): Renamed to
4435 x86_linux_enable_btrace. All uses updated.
4436 (i386_linux_disable_btrace): Renamed to
4437 x86_linux_disable_btrace. All uses updated.
4438 (i386_linux_teardown_btrace): Renamed to
4439 x86_linux_teardown_btrace. All uses updated.
4440 (i386_linux_read_btrace): Renamed to
4441 x86_linux_read_btrace. All uses updated.
4443 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4445 * remote.c (extended_remote_post_attach): New function.
4446 (init_extended_remote_ops): Install it as to_post_attach method.
4448 2014-07-09 Pedro Alves <palves@redhat.com>
4450 * infcmd.c (attach_command_post_wait): Don't call
4451 target_terminal_inferior here.
4452 (attach_command): Call it here instead.
4454 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4456 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4458 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4459 from varobj.c, with additional checks.
4460 (c_varobj_ops): Fill in is_path_expr_parent field.
4461 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4462 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4464 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4466 (varobj_default_is_path_expr_parent): New function.
4467 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4468 (varobj_default_is_path_expr_parent): Declare new function.
4470 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4472 * infcmd.c (finish_backward): Turn internal error into normal error.
4474 2014-07-07 Pedro Alves <palves@redhat.com>
4477 * remote.c (async_handle_remote_sigint)
4478 (async_handle_remote_sigint_twice): Call
4479 gdb_call_async_signal_handler instead of
4480 mark_async_signal_handler.
4482 2014-07-07 Tom Tromey <tromey@redhat.com>
4484 * target-delegates.c: Rebuild.
4485 * target.c (target_info_record): Remove.
4486 * record.c (info_record_command): Unconditionally call
4488 * target.h (struct target_ops) <to_info_record>: Use
4489 TARGET_DEFAULT_IGNORE.
4490 (target_info_record): Remove.
4492 2014-07-07 Tom Tromey <tromey@redhat.com>
4494 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4495 TARGET_DEFAULT_NORETURN.
4496 * target.c (generic_tls_error): New function.
4497 (target_translate_tls_address): Don't search target stack.
4498 * target-delegates.c: Rebuild.
4499 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4501 * linux-thread-db.c (thread_db_get_thread_local_address):
4502 Unconditionally call beneath target.
4504 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4506 * cli/cli-logging.c (pop_output_files): Assign targerr to
4509 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4511 * MAINTAINERS (Write After Approval): Update my email address.
4513 2014-07-02 Gary Benson <gbenson@redhat.com>
4515 * proc-service.c (ps_xfer_memory): Update comment.
4516 (ps_pstop): Remove unused function.
4517 (ps_pcontinue): Likewise.
4518 (ps_lstop): Likewise.
4519 (ps_lcontinue): Likewise.
4520 (ps_lgetxregsize): Likewise.
4521 (ps_lgetxregs): Likewise.
4522 (ps_lsetxregs): Likewise.
4523 (ps_plog): Likewise.
4524 (ps_ptread): Likewise.
4525 (ps_ptwrite): Likewise.
4527 2014-07-01 Mark Wielaard <mjw@redhat.com>
4529 * dwarf2read.c (add_array_cv_type): New function.
4530 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4531 (read_tag_volatile_type): Likewise.
4533 2014-07-01 Tom Tromey <tromey@redhat.com>
4535 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4536 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4537 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4538 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4539 * command.h (cmd_cfunc_ftype): Move earlier.
4540 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4541 (add_com, add_info): Use cmd_cfunc_ftype.
4543 2014-06-30 Tom Tromey <tromey@redhat.com>
4545 * symtab.c (operator_chars): Make parameters and return type
4547 (file_matches): Make "files" const.
4548 (struct search_symbols_data) <files>: Now const.
4549 (search_symbols): Make "regexp" and "files" parameters const.
4551 (symtab_symbol_info): Remove cast.
4552 (rbreak_command): Update.
4553 * symtab.h (search_symbols): Update.
4555 2014-06-27 Yao Qi <yao@codesourcery.com>
4557 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4558 Change parameter type to 'struct thread_info *'. Caller
4560 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4562 * dummy-frame.c (struct dummy_frame_id): New.
4563 (dummy_frame_id_eq): New function.
4564 (struct dummy_frame) <id>: Change its type to 'struct
4566 (dummy_frame_push): Add parameter ptid and save it in
4568 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4570 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4572 (lookup_dummy_frame): Change parameter type to 'struct
4573 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4574 instead of frame_id_eq.
4575 (dummy_frame_pop): Add parameter ptid. Callers updated.
4576 Update comments. Compose dummy_frame_id and pass it to
4578 (dummy_frame_discard): Add parameter ptid.
4579 (dummy_frame_sniffer): Compose dummy_frame_id and call
4580 dummy_frame_id_eq instead of frame_id_eq.
4581 (fprint_dummy_frames): Print ptid.
4582 * dummy-frame.h: Remove comments.
4583 (dummy_frame_push): Add ptid in declaration.
4584 (dummy_frame_pop, dummy_frame_discard): Likewise.
4586 2014-06-26 Tom Tromey <tromey@redhat.com>
4588 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4589 * command.h (error_no_arg): Update.
4591 2014-06-26 Tom Tromey <tromey@redhat.com>
4593 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4594 (do_show_command): Make "arg" const.
4595 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4597 2014-06-26 Tom Tromey <tromey@redhat.com>
4599 * record-full.c (record_full_get_bookmark): Make "args" const.
4600 (record_full_goto_bookmark): Make "raw_bookmark" const.
4601 * record.c (record_goto): New function.
4602 (cmd_record_goto): Use it. Now static.
4603 * record.h (record_goto): Declare.
4604 (cmd_record_goto): Remove declaration.
4605 * target-delegates.c: Rebuild.
4606 * target.h (struct target_ops) <to_get_bookmark,
4607 to_goto_bookmark>: Make parameter const.
4609 2014-06-26 Tom Tromey <tromey@redhat.com>
4611 * defs.h (generic_load): Update.
4612 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4613 * monitor.c (monitor_load): Make "args" const.
4614 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4615 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4617 (mips_load): Make "file" const.
4618 * remote-sim.c (gdbsim_load): Make "args" const.
4619 * remote.c (remote_load): Make "name" const.
4620 * symfile.c (generic_load): Make "args" const.
4621 * target-delegates.c: Rebuild.
4622 * target.c (target_load): Make "arg" const.
4623 (debug_to_load): Make "args" const.
4624 * target.h (struct target_ops) <to_load>: Make parameter const.
4625 (target_load): Update.
4627 2014-06-26 Tom Tromey <tromey@redhat.com>
4630 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4631 (dwarf2_physname, read_partial_die)
4632 (guess_partial_die_structure_name, fixup_partial_die)
4633 (guess_full_die_structure_name, anonymous_struct_prefix)
4634 (dwarf2_name): Use per-BFD obstack.
4636 2014-06-26 Yao Qi <yao@codesourcery.com>
4638 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4639 dummyframe and this_id into inner block below.
4641 2014-06-26 Yao Qi <yao@codesourcery.com>
4643 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4644 with "signal_pass[0]" in the initialization of signal_pass.
4646 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4648 * record-btrace.c (record_btrace_generating_corefile)
4649 (record_btrace_prepare_to_generate_core)
4650 (record_btrace_done_generating_core): New.
4651 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4652 (record_btrace_store_registers, record_btrace_prepare_to_store):
4653 Forward request when generating a core file.
4654 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4655 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4656 to_done_generating_core.
4658 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4660 * target.h (target_ops) <to_prepare_to_generate_core>
4661 <to_done_generating_core>: New.
4662 (target_prepare_to_generate_core, target_done_generating_core): New.
4663 * target.c (target_prepare_to_generate_core)
4664 (target_done_generating_core): New.
4665 * target-delegates.c: Regenerate.
4666 * gcore.c: (write_gcore_file): Rename to ...
4667 (write_gcore_file_1): ...this.
4668 (write_gcore_file): Call target_prepare_to_generate_core
4669 and target_done_generating_core.
4671 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4673 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4674 * gcore.c (write_gcore_file): Free memory returned from
4675 make_corefile_notes.
4676 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4677 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4679 2014-06-24 Yao Qi <yao@codesourcery.com>
4681 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4682 (arm_linux_init_abi): Set skip_trampoline_code with
4683 gdbarch_skip_trampoline_code instead of
4684 find_solib_trampoline_target.
4686 2014-06-24 Yao Qi <yao@codesourcery.com>
4688 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4689 arm_skip_bx_reg returns non-zero.
4691 2014-06-24 Yao Qi <yao@codesourcery.com>
4693 * arm-tdep.c (arm_skip_bx_reg): New function.
4694 (arm_skip_stub): Call arm_skip_bx_reg.
4696 2014-06-23 Don Breazeal <donb@codesourcery.com>
4698 * MAINTAINERS: Add myself as write-after-approval maintainer.
4700 2014-06-23 Pedro Alves <palves@redhat.com>
4702 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4703 DR_CONTROL before setting DR0..DR3.
4704 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4705 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4706 bits of DR_CONTROL related to the debug register slot being
4707 disabled. If all slots are vacant, clear local slowdown as well,
4708 and assert DR_CONTROL is 0.
4710 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4712 * python/lib/gdb/command/xmethods.py
4713 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4714 current progspace only if the string "progspace" matches LOCUS_RE.
4716 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4718 Fix --with-system-readline with readline-6.3 patch 5.
4719 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4720 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4723 2014-06-20 Tom Tromey <tromey@redhat.com>
4725 * dwarf2read.c (dw2_get_real_path): Use correct type in
4727 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4729 2014-06-20 Gary Benson <gbenson@redhat.com>
4731 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4732 * common/glibc_thread_db.h: Likewise.
4733 * common/i386-cpuid.h: Likewise.
4734 * common/i386-gcc-cpuid.h: Likewise.
4735 * common/linux-btrace.h: Likewise.
4736 * common/linux-osdata.h: Likewise.
4737 * common/linux-procfs.h: Likewise.
4738 * common/linux-ptrace.h: Likewise.
4739 * common/mips-linux-watch.h: Likewise.
4740 * common/linux-btrace.c: Moved to nat.
4741 * common/linux-osdata.c: Likewise.
4742 * common/linux-procfs.c: Likewise.
4743 * common/linux-ptrace.c: Likewise.
4744 * common/mips-linux-watch.c: Likewise.
4745 * nat/gdb_thread_db.h: Moved from common.
4746 * nat/glibc_thread_db.h: Likewise.
4747 * nat/i386-cpuid.h: Likewise.
4748 * nat/i386-gcc-cpuid.h: Likewise.
4749 * nat/linux-btrace.c: Likewise.
4750 * nat/linux-btrace.h: Likewise.
4751 * nat/linux-osdata.c: Likewise.
4752 * nat/linux-osdata.h: Likewise.
4753 * nat/linux-procfs.c: Likewise.
4754 * nat/linux-procfs.h: Likewise.
4755 * nat/linux-ptrace.c: Likewise.
4756 * nat/linux-ptrace.h: Likewise.
4757 * nat/mips-linux-watch.c: Likewise.
4758 * nat/mips-linux-watch.h: Likewise.
4759 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4760 (object file files): Reordered.
4761 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4762 of glibc_thread_db.h.
4764 2014-06-20 Gary Benson <gbenson@redhat.com>
4766 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4767 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4768 (i386_dr_low): Likewise.
4769 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4770 (i386_dr_low_set_addr): Likewise.
4771 (i386_dr_low_get_addr): Likewise.
4772 (i386_dr_low_can_set_control): Likewise.
4773 (i386_dr_low_set_control): Likewise.
4774 (i386_dr_low_get_control): Likewise.
4775 (i386_dr_low_get_status): Likewise.
4776 (i386_get_debug_register_length): Likewise.
4777 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4778 (i386_dr_low): Likewise.
4779 * nat/i386-dregs.c (i386-low.h): Remove include.
4780 (i386-nat.h): Likewise.
4781 (nat/i386-dregs.h): New include.
4782 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4783 (i386_dr_low_set_addr): Likewise.
4784 (i386_dr_low_get_addr): Likewise.
4785 (i386_dr_low_can_set_control): Likewise.
4786 (i386_dr_low_set_control): Likewise.
4787 (i386_dr_low_get_control): Likewise.
4788 (i386_dr_low_get_status): Likewise.
4789 (i386_get_debug_register_length): Likewise.
4790 (debug_hw_points): Likewise.
4792 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4794 * Makefile.in (SFILES): Add d-exp.y.
4795 (YYFILES): Add d-exp.c.
4796 (YYOBJ): Add d-exp.o.
4797 (local-maintainer-clean): Delete d-exp.c.
4798 * d-exp.y: New file.
4799 * d-lang.h (d_parse): New declaration.
4800 (d_error): New declaration.
4801 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4802 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4803 PREC_ORDER operators.
4804 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4806 2014-06-19 Yao Qi <yao@codesourcery.com>
4808 * gdbthread.h (any_running): Remove the declaration.
4809 * thread.c (any_running): Remove.
4811 2014-06-19 Yao Qi <yao@codesourcery.com>
4813 * gdbthread.h (struct thread_info) <state>: Change its type to
4814 'enum thread_state'. Update comments.
4816 2014-06-19 Pedro Alves <palves@redhat.com>
4818 * gdbthread.h (ALL_THREADS): Delete.
4819 (ALL_NON_EXITED_THREADS): New macro.
4820 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4821 instead of ALL_THREADS.
4822 * infrun.c (find_thread_needs_step_over)
4823 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4824 instead of ALL_THREADS.
4825 * record-btrace.c (record_btrace_open)
4826 (record_btrace_stop_recording, record_btrace_close)
4827 (record_btrace_is_replaying, record_btrace_resume)
4828 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4829 * remote.c (append_pending_thread_resumptions): Likewise.
4830 * thread.c (thread_apply_all_command): Likewise.
4832 2014-06-19 Gary Benson <gbenson@redhat.com>
4834 * i386-nat.c (i386_stopped_by_watchpoint):
4835 Use i386_dr_stopped_by_watchpoint.
4836 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4837 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4839 2014-06-19 Gary Benson <gbenson@redhat.com>
4841 * nat/i386-dregs.c: New file.
4842 * Makefile.in (i386-dregs.o): New rule.
4843 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4844 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4845 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4846 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4847 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4848 * config/i386/go32.mh (NATDEPFILES): Likewise.
4849 * config/i386/linux.mh (NATDEPFILES): Likewise.
4850 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4851 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4852 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4853 * i386-nat.h (debug_hw_points): New declaration.
4854 * i386-nat.c (breakpoint.h): Remove include.
4855 (command.h): Likewise.
4856 (target.h): Likewise.
4857 (gdb_assert.h): Likewise.
4858 (debug_hw_points): Made nonstatic.
4859 (debug_printf): Now in i386-dregs.c.
4860 (TARGET_HAS_DR_LEN_8): Likewise.
4861 (DR_CONTROL_SHIFT): Likewise.
4862 (DR_CONTROL_SIZE): Likewise.
4863 (DR_RW_EXECUTE): Likewise.
4864 (DR_RW_WRITE): Likewise.
4865 (DR_RW_READ): Likewise.
4866 (DR_RW_IORW): Likewise.
4867 (DR_LEN_1): Likewise.
4868 (DR_LEN_2): Likewise.
4869 (DR_LEN_4): Likewise.
4870 (DR_LEN_8): Likewise.
4871 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4872 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4873 (DR_ENABLE_SIZE): Likewise.
4874 (DR_LOCAL_SLOWDOWN): Likewise.
4875 (DR_GLOBAL_SLOWDOWN): Likewise.
4876 (DR_CONTROL_RESERVED): Likewise.
4877 (I386_DR_CONTROL_MASK): Likewise.
4878 (I386_DR_VACANT): Likewise.
4879 (I386_DR_LOCAL_ENABLE): Likewise.
4880 (I386_DR_GLOBAL_ENABLE): Likewise.
4881 (I386_DR_DISABLE): Likewise.
4882 (I386_DR_SET_RW_LEN): Likewise.
4883 (I386_DR_GET_RW_LEN): Likewise.
4884 (I386_DR_WATCH_HIT): Likewise.
4885 (i386_wp_op_t): Likewise.
4886 (i386_show_dr): Likewise.
4887 (i386_length_and_rw_bits): Likewise.
4888 (i386_insert_aligned_watchpoint): Likewise.
4889 (i386_remove_aligned_watchpoint): Likewise.
4890 (i386_handle_nonaligned_watchpoint): Likewise.
4891 (i386_update_inferior_debug_regs): Likewise.
4892 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4893 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4894 (i386_region_ok_for_watchpoint):
4895 Use i386_dr_region_ok_for_watchpoint.
4896 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4898 2014-06-19 Gary Benson <gbenson@redhat.com>
4900 * i386-nat.c (i386_insert_hw_breakpoint): Use
4901 i386_insert_watchpoint.
4902 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4904 2014-06-19 Gary Benson <gbenson@redhat.com>
4906 * i386-nat.c (i386_dr_show): Renamed to
4907 i386_show_dr and made static. All uses updated.
4908 (i386_dr_length_and_rw_bits): Renamed to
4909 i386_length_and_rw_bits and made static.
4911 (i386_dr_insert_aligned_watchpoint): Renamed to
4912 i386_insert_aligned_watchpoint and made static.
4914 (i386_dr_remove_aligned_watchpoint): Renamed to
4915 i386_remove_aligned_watchpoint and made static.
4917 (i386_dr_update_inferior_debug_regs): Renamed to
4918 i386_update_inferior_debug_regs and made static.
4920 * nat/i386-dregs.h (i386_dr_show): Removed.
4921 (i386_dr_length_and_rw_bits): Likewise.
4922 (i386_dr_insert_aligned_watchpoint): Likewise.
4923 (i386_dr_remove_aligned_watchpoint): Likewise.
4924 (i386_dr_update_inferior_debug_regs): Likewise.
4926 2014-06-19 Gary Benson <gbenson@redhat.com>
4928 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4929 * configure: Regenerate.
4930 * config.in: Likewise.
4931 * main.c (signal.h): New include.
4932 (setup_alternate_signal_stack): New function.
4933 (captured_main): Call the above.
4934 * cp-support.c (signal.h): New include.
4935 (catch_demangler_crashes): New flag.
4936 (SIGJMP_BUF): New define.
4937 (SIGSETJMP): Likewise.
4938 (SIGLONGJMP): Likewise.
4939 (gdb_demangle_jmp_buf): New static global.
4940 (gdb_demangle_attempt_core_dump): Likewise.
4941 (gdb_demangle_signal_handler): New function.
4942 (gdb_demangle): If catch_demangler_crashes is set, install the
4943 above signal handler before calling bfd_demangle, and restore
4944 the original signal handler afterwards. Display the offending
4945 symbol and call demangler_warning the first time a segmentation
4947 (_initialize_cp_support): New maint set/show command.
4949 2014-06-19 Gary Benson <gbenson@redhat.com>
4951 * utils.h (resource_limit_kind): New enum.
4952 (can_dump_core): New declaration.
4953 (warn_cant_dump_core): Likewise.
4954 (dump_core): Likewise.
4955 * utils.c (dump_core): Made nonstatic. Added new
4956 parameter "limit_kind".
4957 (can_dump_core): Made nonstatic. Moved printing code to...
4958 (warn_cant_dump_core): New function.
4959 (can_dump_core_warn): Likewise.
4960 (internal_vproblem): Replace calls to can_dump_core with
4961 calls to can_dump_core_warn. Supply new argument to each.
4963 2014-06-19 Gary Benson <gbenson@redhat.com>
4965 * utils.h (demangler_vwarning): New declaration.
4966 (demangler_warning): Likewise.
4967 * utils.c (struct internal_problem)
4968 <user_settable_should_quit>: New field.
4969 <user_settable_should_dump_core>: Likewise
4970 (internal_error_problem): Add values for above new fields.
4971 (internal_warning_problem): Likewise.
4972 (demangler_warning_problem): New static global.
4973 (demangler_vwarning): New function.
4974 (demangler_warning): Likewise.
4975 (add_internal_problem_command): Selectively add commands.
4976 (_initialize_utils): New internal problem command.
4977 * maint.c (maintenance_demangler_warning): New function.
4978 (_initialize_maint_cmds): New command.
4980 2014-06-18 Tom Tromey <tromey@redhat.com>
4982 * f-valprint.c (info_common_command_for_block): Update.
4983 * symtab.h (struct general_symbol_info) <common_block>: Now
4986 2014-06-18 Tom Tromey <tromey@redhat.com>
4988 * symtab.h (struct symtab) <blockvector>: Now const.
4989 * ada-lang.c (ada_add_global_exceptions): Update.
4990 * buildsym.c (augment_type_symtab): Update.
4991 * dwarf2read.c (dw2_lookup_symbol): Update.
4992 * jit.c (finalize_symtab): Update.
4993 * jv-lang.c (add_class_symtab_symbol): Update.
4994 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4996 * objfiles.c (objfile_relocate1): Update.
4997 * psymtab.c (lookup_symbol_aux_psymtabs)
4998 (maintenance_check_psymtabs): Update.
4999 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5001 * spu-tdep.c (spu_catch_start): Update.
5002 * symmisc.c (dump_symtab_1): Update.
5003 * symtab.c (lookup_global_symbol_from_objfile)
5004 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5005 (basic_lookup_transparent_type_quick)
5006 (basic_lookup_transparent_type, find_pc_sect_symtab)
5007 (find_pc_sect_line, search_symbols): Update.
5008 * block.c (find_block_in_blockvector): Make "bl" const.
5009 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5011 (blockvector_contains_pc): Make "bv" const.
5012 (block_for_pc_sect): Update.
5013 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5014 (blockvector_contains_pc): Update.
5015 * breakpoint.c (resolve_sal_pc): Update.
5016 * inline-frame.c (block_starting_point_at): Update.
5018 2014-06-18 Tom Tromey <tromey@redhat.com>
5020 * completer.c (complete_line): Make "line_buffer" const.
5021 * completer.h (complete_line): Update.
5023 2014-06-18 Tom Tromey <tromey@redhat.com>
5025 * symtab.c (add_macro_name): Remove unneeded cast.
5027 2014-06-18 Tom Tromey <tromey@redhat.com>
5029 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5030 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5032 2014-06-18 Tom Tromey <tromey@redhat.com>
5034 * probe.c (info_probes_for_ops): Make "arg" const.
5035 * probe.h (info_probes_for_ops): Update.
5037 2014-06-18 Tom Tromey <tromey@redhat.com>
5039 * varobj.c (varobj_create): Update.
5040 * valops.c (value_of_this): Update.
5041 * tracepoint.c (add_local_symbols, scope_info): Update.
5042 * symtab.h (struct general_symbol_info) <block>: Now const.
5043 * symtab.c (skip_prologue_sal)
5044 (default_make_symbol_completion_list_break_on)
5045 (skip_prologue_using_sal): Update.
5046 * stack.h (iterate_over_block_locals)
5047 (iterate_over_block_local_vars): Update.
5048 * stack.c (print_frame_args): Update.
5049 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5051 (get_selected_block): Make return type const.
5052 * python/py-frame.c (frapy_block): Update.
5053 * python/py-block.c (gdbpy_block_for_pc): Update.
5054 * p-exp.y (%union) <bval>: Now const.
5055 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5056 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5057 * m2-exp.y (%union) <bval>: Now const.
5058 * linespec.c (get_current_search_block): Make return type const.
5059 (create_sals_line_offset, find_label_symbols): Update.
5060 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5062 (block_starting_point_at): Make "block" const.
5063 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5064 (check_exception_resume): Update.
5065 * guile/scm-frame.c (gdbscm_frame_block): Update.
5066 * guile/scm-block.c (gdbscm_lookup_block): Update.
5067 * frame.h (get_frame_block): Update.
5068 (get_selected_block): Make return type const.
5069 * frame.c (frame_id_inner): Update.
5070 * f-valprint.c (info_common_command_for_block)
5071 (info_common_command): Update.
5072 * dwarf2loc.c (dwarf2_find_location_expression)
5073 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5074 (locexpr_describe_location_piece): Update.
5075 * c-exp.y (%union) <bval>: Now const.
5076 * breakpoint.c (resolve_sal_pc): Update.
5077 * blockframe.c (get_frame_block):Make return type const.
5078 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5079 (block_innermost_frame): Update.
5080 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5081 (block_for_pc, block_for_pc_sect): Update.
5082 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5084 (block_for_pc_sect, block_for_pc): Make return type const.
5085 * ax-gdb.c (gen_expr): Update.
5086 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5087 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5088 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5089 (ada_read_var_value): Update.
5090 * ada-exp.y (struct name_info) <block>: Now const.
5092 (block_lookup): Constify.
5094 2014-06-18 Gary Benson <gbenson@redhat.com>
5096 * nat/i386-dregs.h: New file.
5097 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5098 * i386-nat.h (i386-dregs.h): New include.
5099 (DR_FIRSTADDR): Now in i386-dregs.h.
5100 (DR_LASTADDR): Likewise.
5101 (DR_NADDR): Likewise.
5102 (DR_STATUS): Likewise.
5103 (DR_CONTROL): Likewise.
5104 (i386_debug_reg_state): Likewise.
5105 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5107 2014-06-18 Don Breazeal <donb@codesourcery.com>
5109 * breakpoint.c (set_longjmp_breakpoint): Call
5110 momentary_breakpoint_from_master with additional argument.
5111 (set_longjmp_breakpoint_for_call_dummy): Call
5112 momentary_breakpoint_from_master with additional argument.
5113 (set_std_terminate_breakpoint): Call
5114 momentary_breakpoint_from_master with additional argument.
5115 (momentary_breakpoint_from_master): Add argument to function
5116 definition and use it to initialize structure member flag.
5117 (clone_momentary_breakpoint): Call
5118 momentary_breakpoint_from_master with additional argument.
5119 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5120 member flags set in momentary_breakpoint_from_master.
5122 2014-06-18 Gary Benson <gbenson@redhat.com>
5124 * i386-nat.c (i386_show_dr): Renamed to
5125 i386_dr_show and made nonstatic. All uses updated.
5126 (i386_length_and_rw_bits): Renamed to
5127 i386_dr_length_and_rw_bits and made nonstatic.
5129 (i386_insert_aligned_watchpoint): Renamed to
5130 i386_dr_insert_aligned_watchpoint and made nonstatic.
5132 (i386_remove_aligned_watchpoint): Renamed to
5133 i386_dr_remove_aligned_watchpoint and made nonstatic.
5135 (i386_update_inferior_debug_regs): Renamed to
5136 i386_dr_update_inferior_debug_regs and made nonstatic.
5139 2014-06-18 Gary Benson <gbenson@redhat.com>
5141 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5142 (i386_dr_low_can_set_control): Likewise.
5143 (i386_dr_low_set_addr): Likewise.
5144 (i386_dr_low_set_control): Likewise.
5145 (i386_dr_low_get_addr): Likewise.
5146 (i386_dr_low_get_status): Likewise.
5147 (i386_dr_low_get_control): Likewise.
5148 (i386_insert_aligned_watchpoint): Use new macros.
5149 (i386_update_inferior_debug_regs): Likewise.
5150 (i386_stopped_data_address): Likewise.
5152 2014-06-18 Gary Benson <gbenson@redhat.com>
5154 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5155 New parameter. All uses updated.
5157 2014-06-18 Gary Benson <gbenson@redhat.com>
5159 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5162 2014-06-18 Gary Benson <gbenson@redhat.com>
5164 * i386-nat.c (debug_printf): New macro.
5165 (i386_get_debug_register_length): Likewise.
5166 (TARGET_HAS_DR_LEN_8): Use above macro.
5167 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5168 and printf_unfiltered. Use phex to format values.
5170 2014-06-18 Gary Benson <gbenson@redhat.com>
5172 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5175 2014-06-18 Gary Benson <gbenson@redhat.com>
5177 * i386-nat.c: Comment changes.
5179 2014-06-18 Gary Benson <gbenson@redhat.com>
5181 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5183 2014-06-18 Gary Benson <gbenson@redhat.com>
5185 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5186 (i386_insert_aligned_watchpoint): Likewise.
5187 (i386_remove_aligned_watchpoint): Likewise.
5188 (i386_handle_nonaligned_watchpoint): Likewise.
5190 2014-06-18 Gary Benson <gbenson@redhat.com>
5192 * i386-nat.c: Whitespace changes.
5194 2014-06-17 Samuel Bronson <naesten@gmail.com>
5196 * MAINTAINERS: Update Roland McGrath's email address.
5197 Thanks to Sergio Durigan Junior for pointing out that he left
5198 Red Hat a while ago, and giving me a current address.
5200 2014-06-17 Tom Tromey <tromey@redhat.com>
5202 * utils.h (savestring): Remove declaration.
5204 2014-06-17 Tom Tromey <tromey@redhat.com>
5206 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5208 2014-06-16 Keith Seitz <keiths@redhat.com>
5211 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5212 to update the varobj if inferior_ptid is null_ptid.
5214 2014-06-16 Tom Tromey <tromey@redhat.com>
5216 * target.h (struct target_ops) <to_info_proc>: Make parameter
5218 (target_info_proc): Update.
5219 * target.c (target_info_proc): Make "args" const.
5220 * procfs.c (procfs_info_proc): Update.
5221 * linux-tdep.c (linux_info_proc): Update.
5222 (linux_core_info_proc_mappings): Make "args" const.
5223 (linux_core_info_proc): Update.
5224 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5225 * gdbarch.c: Rebuild.
5226 * gdbarch.h: Rebuild.
5227 * corelow.c (core_info_proc): Update.
5229 2014-06-16 Tom Tromey <tromey@redhat.com>
5231 * target.h (struct target_ops) <to_disconnect>: Make parameter
5233 (target_disconnect): Update.
5234 * target.c (target_disconnect): Make "args" const.
5235 * target-delegates.c: Rebuild.
5236 * remote.c (remote_disconnect): Update.
5237 * record.h (record_disconnect): Update.
5238 * record.c (record_disconnect): Update.
5239 * inf-child.c (inf_child_disconnect): Update.
5241 2014-06-16 Tom Tromey <tromey@redhat.com>
5243 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5244 * target.c (debug_to_rcmd, default_rcmd): Update.
5245 * target-delegates.c: Rebuild.
5246 * remote.c (remote_rcmd): Update.
5247 * monitor.c (monitor_rcmd): Update.
5249 2014-06-16 Pedro Alves <palves@redhat.com>
5251 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5252 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5253 have OBJF_SHARED set.
5254 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5255 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5256 instead of OBJF_USERLOADED.
5257 * objfiles.h (OBJF_SHARED): Update comment.
5258 (userloaded_objfile_contains_address_p): Rename to ...
5259 (shared_objfile_contains_address_p): ... this, and update
5261 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5263 (remove_symbol_file_command): Skip objfiles that don't have
5266 2014-06-16 Tom Tromey <tromey@redhat.com>
5268 * minsyms.h (prim_record_minimal_symbol)
5269 (prim_record_minimal_symbol_and_info): Update comments.
5271 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5273 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5274 or --without-guile, according to how GDB was built.
5276 2014-06-13 Tom Tromey <tromey@redhat.com>
5278 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5280 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5282 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5284 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5285 help_list.Pass all_commands, not -1, to help_list.
5286 * cli/cli-dump.c (dump_command, append_command)
5287 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5288 (binary_dump_command, binary_append_command): Pass all_commands,
5289 not -1, to help_list.
5290 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5292 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5294 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5296 * top.c (set_history): Pass all_commands, not -1, to help_list.
5297 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5298 all_commands, not -1, to help_list.
5299 * symfile.c (overlay_command): Pass all_commands, not -1, to
5301 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5303 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5305 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5307 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5308 not -1, to help_list.
5309 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5310 not -1, to help_list.
5311 * maint.c (maintenance_command, maintenance_info_command)
5312 (maintenance_print_command, maintenance_set_cmd): Pass
5313 all_commands, not -1, to help_list.
5314 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5316 * language.c (set_check): Pass all_commands, not -1, to help_list.
5317 * infcmd.c (unset_command): Pass all_commands, not -1, to
5319 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5321 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5323 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5325 * breakpoint.c (save_command): Pass all_commands, not -1, to
5327 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5328 all_commands, not -1, to help_list.
5330 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5332 * regcache.c (struct register_to_invalidate): New structure.
5333 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5335 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5337 2014-06-12 Yao Qi <yao@codesourcery.com>
5339 * varobj.c (varobj_get_num_children): Call
5340 varobj_is_dynamic_p.
5341 (varobj_list_children): Likewise.
5342 (varobj_update): Likewise. Update comments.
5344 2014-06-12 Yao Qi <yao@codesourcery.com>
5346 * varobj.c (varobj_pretty_printed_p): Rename to ...
5347 (varobj_is_dynamic_p): ... this. New function.
5348 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5349 (varobj_is_dynamic_p): Declare.
5350 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5351 (mi_print_value_p, varobj_update_one): Likewise.
5353 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5354 Yao Qi <yao@codesourcery.com>
5356 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5357 (varobj_get_iterator): Wrap up code for pretty-printer by
5358 "#if HAVE_PYTHON" and "#endif".
5359 (update_dynamic_varobj_children): Likewise.
5361 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5362 Yao Qi <yao@codesourcery.com>
5364 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5365 gdb_python_initialized is false. Move some code from varobj.c.
5366 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5367 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5368 (struct varobj_item): Moved to varobj-iter.h".
5369 (varobj_clear_saved_item): New function.
5370 (update_dynamic_varobj_children): Move python-related code to
5372 (free_variable): Call varobj_clear_saved_item and
5375 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5376 Yao Qi <yao@codesourcery.com>
5378 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5379 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5380 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5381 (py-varobj.o): New rule.
5382 * python/py-varobj.c: New file.
5383 * python/python-internal.h (py_varobj_get_iterator): Declare.
5384 * varobj-iter.h: New file.
5385 * varobj.c: Include "varobj-iter.h"
5386 (struct varobj) <child_iter>: Change its type from "PyObject *"
5387 to "struct varobj_iter *".
5388 <saved_item>: Likewise.
5389 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5390 [HAVE_PYTHON] (varobj_get_iterator): New function.
5391 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5392 python-specific code to python/py-varobj.c.
5393 (install_visualizer): Call varobj_iter_delete instead of
5395 * varobj.h (varobj_ensure_python_env): Declare.
5397 2014-06-12 Yao Qi <yao@codesourcery.com>
5399 * varobj.c (struct varobj_item): New structure.
5400 (create_child_with_value): Update declaration.
5401 (varobj_add_child): Replace arguments 'name' and 'value' with
5402 'item'. All callers updated.
5403 (install_dynamic_child): Likewise.
5404 (update_dynamic_varobj_children): Likewise.
5405 (varobj_add_child): Likewise.
5406 (create_child_with_value): Likewise.
5408 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5410 * NEWS: Create a new section for the next release branch.
5411 Rename the section of the current branch, now that it has
5414 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5416 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5417 * version.in: Bump version to 7.8.50.DATE-cvs.
5419 2014-06-11 Pedro Alves <palves@redhat.com>
5422 * ser-mingw.c (net_windows_socket_check_pending): New function.
5423 (net_windows_select_thread): Ignore spurious wakeups. Use
5424 net_windows_socket_check_pending.
5425 (net_windows_wait_handle): Check for pending events with
5426 ioctlsocket, through net_windows_socket_check_pending, instead of
5427 checking the socket's event.
5429 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5431 * python/python-internal.h (gdb_PyObject_GetAttrString)
5432 (gdb_PyObject_HasAttrString): New inline function definitions.
5433 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5434 char * of the second argument to PyObject_GetAttrString.
5436 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5438 * serial.c (serial_write): Fix index of character to be printed
5439 in call to serial_logchar when serial debug traces are enabled.
5441 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5443 * gdbtypes (resolve_dynamic_range): Add function description.
5445 2014-06-09 Pedro Alves <palves@redhat.com>
5447 * linux-nat.c (linux_child_follow_fork): Initialize status with
5448 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5449 inner block. Only pass the signal to PTRACE_DETACH if in pass
5452 2014-06-09 Gary Benson <gbenson@redhat.com>
5454 * common/signals.c (gdb_signal_from_host): Reorder to separate
5455 the always-available ANSI-standard signals from the signals that
5457 (do_gdb_signal_to_host): Likewise.
5458 * proc-events.c (signal_table): Likewise.
5460 2014-06-08 Hui Zhu <hui@codesourcery.com>
5462 * common/linux-ptrace.c (linux_disable_event_reporting): New
5464 * common/linux-ptrace.h (linux_disable_event_reporting): New
5466 * linux-nat.c (linux_child_follow_fork): Do a single step before
5469 2014-06-07 Keith Seitz <keiths@redhat.com>
5473 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5474 from symbol_matches_domain in symtab.c. All local callers
5475 of symbol_matches_domain updated.
5476 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5477 search STRUCT_DOMAIN.
5478 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5479 independently. standard_lookup will do that automatically.
5480 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5481 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5482 (cp_lookup_symbol_in_namespace): Likewise.
5483 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5484 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5485 may return a STRUCT_DOMAIN match.
5486 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5487 * cp-support.c: Include language.h.
5488 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5490 * psymtab.c (match_partial_symbol): Compare the requested
5491 domain with the symbol's domain directly.
5492 (lookup_partial_symbol): Likewise.
5493 * symtab.c (lookup_symbol_in_language): Explain when/why
5494 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5495 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5496 appropriate languages.
5497 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5498 and moved to ada-lang.c
5499 (lookup_block_symbol): Explain that this function only returns
5500 symbol matching the requested DOMAIN.
5501 Compare the requested domain with the symbol's domain directly.
5502 (iterate_over_symbols): Compare the requested domain with the
5503 symbol's domain directly.
5504 * symtab.h (symbol_matches_domain): Remove.
5506 2014-06-06 Doug Evans <xdje42@gmail.com>
5508 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5509 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5510 (gdbscm_guile_version_is_at_least): Declare.
5511 (gdbscm_scm_string_to_int): Declare.
5512 * guile/guile.c (gdbscm_guile_major_version): New global.
5513 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5514 (guile_datadir): New static global.
5515 (gdbscm_guile_data_directory): New function.
5516 (initialize_scheme_side): Update.
5517 (misc_guile_functions): Add guile-data-directory.
5518 (initialize_gdb_module): Fetch guile version number.
5519 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5520 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5521 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5522 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5524 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5525 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5526 * guile/scm-value.c (gdbscm_value_to_string): Only call
5527 scm_port_conversion_strategy if Guile version >= 2.0.6.
5529 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5531 * main.c (print_gdb_help): Add -q and --silent.
5533 2014-06-06 Gary Benson <gbenson@redhat.com>
5535 * common/signals.c: Remove preprocessor conditionals for
5536 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5537 SIGSEGV and SIGTERM.
5538 * proc-events.c: Likewise.
5540 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5542 * symfile.c (symfile_free_objfile): Remove restriction to
5544 * symfile-mem.c (symbol_file_add_from_memory): Call
5545 add_target_sections_of_objfile.
5547 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5549 * guile/scm-value.c (gdbscm_history_append_x): Use
5550 'vlscm_get_value_smob_arg_unsafe' instead of
5551 'vlscm_scm_to_value'.
5553 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5556 * utils.c (printchar): Don't escape at all if quoter is NUL.
5557 Update function documentation to clarify effect of parameter
5559 * remote.c (escape_buffer): Pass '\\' as the quoter to
5560 fputstrn_unfiltered.
5561 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5562 generate the output.
5563 (mi_solib_unloaded): Same.
5565 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5567 * development.sh: Delete.
5568 * Makefile.in (config.status): Adjust dependency on development.sh.
5569 * configure.ac: Adjust development.sh source call.
5570 * configure: Regenerate.
5572 2014-06-04 Doug Evans <xdje42@gmail.com>
5574 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5575 is_scheme_bkpt, spec.
5576 (bpscm_make_breakpoint_smob): Initialize new members.
5577 (gdbscm_create_breakpoint_x): Split into two ...
5578 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5579 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5580 (scheme_function breakpoint_functions): Update.
5581 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5582 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5583 register-breakpoint!.
5585 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5588 * mem-break.c (z_type_supported): Return zero if
5589 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5591 2014-06-04 Tom Tromey <tromey@redhat.com>
5593 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5594 value_from_contents_and_address_unresolved.
5595 (ada_template_to_fixed_record_type_1): Likewise.
5596 (ada_which_variant_applies): Likewise.
5597 * value.h (value_from_contents_and_address_unresolved): Declare.
5598 * value.c (value_from_contents_and_address_unresolved): New
5600 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5601 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5602 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5604 2014-06-04 Tom Tromey <tromey@redhat.com>
5606 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5608 2014-06-04 Tom Tromey <tromey@redhat.com>
5610 * procfs.c (procfs_attach): Make "args" const.
5611 * windows-nat.c (windows_attach): Make "args" const.
5612 * nto-procfs.c (procfs_attach): Make "args" const.
5613 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5614 * go32-nat.c (go32_attach): Make "args" const.
5615 * gnu-nat.c (gnu_attach): Make "args" const.
5616 * darwin-nat.c (darwin_attach): Make "args" const.
5617 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5618 * linux-nat.c (linux_nat_attach): Make "args" const.
5619 * remote.c (extended_remote_attach_1, extended_remote_attach):
5621 * target.h (struct target_ops) <to_attach>: Make "args" const.
5622 (find_default_attach): Likewise.
5623 * utils.c (parse_pid_to_attach): Make "args" const.
5624 * utils.h (parse_pid_to_attach): Update.
5626 2014-06-04 Tom Tromey <tromey@redhat.com>
5628 * target-delegates.c: Rebuild.
5629 * target.c (default_thread_address_space): New function.
5630 (target_thread_address_space): Simplify.
5631 * target.h (struct target_ops) <to_thread_address_space>: Add
5632 TARGET_DEFAULT_FUNC.
5634 2014-06-04 Doug Evans <xdje42@gmail.com>
5636 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5638 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5640 * record-btrace.c: Include event-loop.h and inf-loop.h.
5641 (record_btrace_resume_exec_dir)
5642 (record_btrace_async_inferior_event_handler)
5643 (record_btrace_handle_async_inferior_event): New.
5644 (record_btrace_open): Create async event handler.
5645 (record_btrace_close): Delete async event handler.
5646 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5647 Mark async event handler.
5648 (record_btrace_execution_direction): New.
5649 (init_record_btrace_ops): Initialize to_execution_direction.
5651 2014-06-03 Doug Evans <xdje42@gmail.com>
5653 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5654 (gdbscm_make_parameter): Ditto.
5656 2014-06-03 Doug Evans <dje@google.com>
5658 * exec.c (exec_close_1): Call clear_section_table instead of
5659 resize_section_table.
5660 (clear_section_table): New function.
5661 (resize_section_table): Make static. Rename arg num_added to
5663 * exec.h (clear_section_table): Declare.
5664 (resize_section_table): Delete.
5665 * progspace.c (release_program_space): Call clear_section_table
5666 instead of resize_section_table.
5668 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5670 * NEWS (Python Scripting): Add entry about the new xmethods
5673 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5675 * python/py-xmethods.c: New file.
5676 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5677 (objfpy_dealloc): XDECREF on the new xmethods field.
5678 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5680 (objfpy_get_xmethods): New function.
5681 (objfile_getset): New entry 'xmethods'.
5682 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5683 (pspy_dealloc): XDECREF on the new xmethods field.
5684 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5686 (pspy_get_xmethods): New function.
5687 (pspace_getset): New entry 'xmethods'.
5688 * python/python-internal.h: Add declarations for new functions.
5689 * python/python.c (_initialize_python): Invoke
5690 gdbpy_initialize_xmethods.
5691 * python/lib/gdb/__init__.py (xmethods): New
5693 * python/lib/gdb/xmethod.py: New file.
5694 * python/lib/gdb/command/xmethods.py: New file.
5696 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5698 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5699 best match method returned by find_overload_match is an xmethod.
5700 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5701 the best matching operator returned by find_overload_match is an
5703 * valops.c: #include "extension.h".
5704 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5705 Return void. The list of matching source methods is returned in
5706 "fn_list" and a vector of matching debug method workers is
5707 returned in "xm_worker_vec". Update all callers.
5708 (value_find_oload_method_list): Likewise.
5709 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5710 non-NULL, then the index of the best matching method in this
5711 vector is returned. Update all callers.
5712 (find_overload_match): Include xmethods while performing overload
5715 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5717 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5718 * extension-priv.h (struct extension_language_ops): Add the
5720 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5721 get_matching_xmethod_workers, get_xmethod_argtypes,
5722 invoke_xmethod, free_xmethod_worker,
5723 free_xmethod_worker_vec): New functions.
5724 * extension.h: #include "common/vec.h".
5725 New function declarations.
5726 (struct xmethod_worker): New struct.
5727 (VEC (xmethod_worker_ptr)): New vector type.
5728 (xmethod_worker_ptr): New typedef.
5729 (xmethod_worker_vec): Likewise.
5730 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5732 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5733 (struct builtin_type): New field "xmethod".
5734 * valarith.c (value_ptradd): Assert that the value argument is not
5736 * valops.c (value_must_coerce_to_target): Return 0 for
5737 lval_xcallable values.
5738 * value.c (struct value): New field XM_WORKER in the field
5740 (value_address, value_raw_address): Return 0 for lval_xcallable
5742 (set_value_address): Assert that the value is not an
5744 (value_free): Free the associated xmethod worker when freeing
5745 lval_xcallable values.
5746 (set_value_component_location): Assert that the WHOLE value is not
5748 (value_of_xmethod, call_xmethod): New functions.
5749 * value.h: Declare "struct xmethod_worker".
5750 Declare new functions value_of_xmethod, call_xmethod.
5752 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5753 Pedro Alves <palves@redhat.com>
5755 PR breakpoints/17000
5756 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5757 New function, extracted from software_breakpoint_inserted_here_p.
5758 (software_breakpoint_inserted_here_p): Replace factored out code
5759 by call to find_non_raw_software_breakpoint_inserted_here.
5760 (bp_target_info_copy_insertion_state): New function.
5761 (bkpt_insert_location): Handle the case of a single-step
5762 breakpoint already inserted at the same address.
5763 (bkpt_remove_location): Handle the case of a single-step
5764 breakpoint still inserted at the same address.
5765 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5766 breakpoint already inserted at the same address.
5767 (deprecated_remove_raw_breakpoint): Handle the case of a
5768 non-raw breakpoint still inserted at the same address.
5769 (find_single_step_breakpoint): New function, extracted from
5770 single_step_breakpoint_inserted_here_p.
5771 (find_single_step_breakpoint): New function,
5772 factored out from single_step_breakpoint_inserted_here_p.
5773 (single_step_breakpoint_inserted_here_p): Reimplement.
5775 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5777 Pushed by Joel Brobecker <brobecker@adacore.com>
5778 * source.c (show_substitute_path_command): Fix display of matching
5781 2014-06-03 Gary Benson <gbenson@redhat.com>
5783 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5785 2014-06-02 Doug Evans <xdje42@gmail.com>
5787 Add parameter support for Guile.
5788 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5789 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5790 (scm-param.o): New rule.
5791 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5792 (gdbscm_misc_error): Declare.
5793 (gdbscm_canonicalize_command_name): Declare.
5794 (gdbscm_scm_to_host_string): Declare.
5795 (gdbscm_scm_from_host_string): Declare.
5796 (gdbscm_initialize_parameters): Declare.
5797 * guile/guile.c (initialize_gdb_module): Call
5798 gdbscm_initialize_parameters.
5799 * guile/lib/gdb.scm: Export parameter symbols.
5800 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5801 cmdscm_canonicalize_name and made public. All callers updated.
5802 * guile/scm-exception.c (gdbscm_misc_error): New function.
5803 * guile/scm-param.c: New file.
5804 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5805 (gdbscm_scm_to_host_string): New function.
5806 (gdbscm_scm_from_host_string): New function.
5807 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5809 2014-06-02 Doug Evans <xdje42@gmail.com>
5811 Add command support for Guile.
5812 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5813 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5814 (scm-cmd.o): New rule.
5815 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5816 (gdbscm_user_error_p): Declare.
5817 (gdbscm_parse_command_name): Declare.
5818 (gdbscm_valid_command_class_p): Declare.
5819 (gdbscm_initialize_commands): Declare.
5820 * guile/guile.c (initialize_gdb_module): Call
5821 gdbscm_initialize_commands.
5822 * guile/lib/gdb.scm: Export command symbols.
5823 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5824 (throw-user-error): New function.
5825 * guile/scm-cmd.c: New file.
5826 * guile/scm-exception.c (user_error_symbol): New static global.
5827 (gdbscm_user_error_p): New function.
5828 (gdbscm_initialize_exceptions): Set user_error_symbol.
5829 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5831 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5833 * top.c (command_loop): Handle comments here...
5834 (command_line_input): ... not here.
5836 2014-06-02 Doug Evans <xdje42@gmail.com>
5838 Add progspace support for Guile.
5839 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5840 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5841 (scm-progspace.o): New rule.
5842 * guile/guile-internal.h (pspace_smob): New typedef.
5843 (psscm_pspace_smob_pretty_printers): Declare.
5844 (psscm_pspace_smob_from_pspace): Declare.
5845 (psscm_scm_from_pspace): Declare.
5846 * guile/guile.c (initialize_gdb_module): Call
5847 gdbscm_initialize_pspaces.
5848 * guile/lib/gdb.scm: Export progspace symbols.
5849 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5851 (append-pretty-printer!): Ditto.
5852 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5854 * guile/scm-progspace.c: New file.
5856 2014-06-03 Alan Modra <amodra@gmail.com>
5858 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5859 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5861 2014-06-02 Doug Evans <dje@google.com>
5863 Add support for skeletonless type units.
5864 * dwarf2read.c (struct dwarf2_per_objfile): New member
5865 n_allocated_type_units.
5866 (struct dwarf2_per_objfile) <tu_stats>: New member
5867 nr_all_type_units_reallocs.
5868 (create_signatured_type_table_from_index): Initialize
5869 n_allocated_type_units
5870 (create_all_type_units): Ditto.
5871 (add_type_unit): Move up in file. New arg slot.
5872 All callers updated. Increase space for all_type_units more
5874 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5875 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5876 (lookup_dwp_signatured_type): Ditto.
5877 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5878 All callers updated.
5879 (build_type_psymtabs_1): Leave type_unit_groups as
5880 NULL if no TUs present.
5881 (print_tu_stats): New function.
5882 (process_skeletonless_type_unit): New function.
5883 (process_dwo_file_for_skeletonless_type_units): New
5885 (process_skeletonless_type_units): New function.
5886 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5887 Call print tu_stats if debugging enabled.
5889 2014-06-02 Pedro Alves <palves@redhat.com>
5891 * breakpoint.c (build_target_command_list): Don't build a command
5892 list if we have any duplicate location that isn't a dprintf.
5894 2014-06-02 Pedro Alves <palves@redhat.com>
5896 * breakpoint.c (dprintf_breakpoint_hit): New function.
5897 (initialize_breakpoint_ops): Install it as dprintf's
5898 breakpoint_hit method.
5900 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5902 * source.c (substitute_path_rule_matches): Simplify using
5903 filename_ncmp instead of FILENAME_CMP.
5905 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5907 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5909 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5911 * configure.ac: When Guile is available, check for the
5912 availability of 'scm_new_smob'.
5913 * configure, config.h.in: Regenerate.
5914 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5917 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5919 * frame.c (struct frame_info): Add stop_string field.
5920 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5921 (get_prev_frame_always): Old content moved into
5922 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5923 TRY_CATCH, handle MEMORY_ERROR exceptions.
5924 (frame_stop_reason_string): New function definition.
5925 * frame.h (unwind_stop_reason_to_string): Extend comment to
5926 mention frame_stop_reason_string.
5927 (frame_stop_reason_string): New function declaration.
5928 * stack.c (frame_info): Switch to frame_stop_reason_string.
5929 (backtrace_command_1): Switch to frame_stop_reason_string.
5930 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5931 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5932 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5934 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5936 * frame.c (frame_stop_reason_string): Rename to ...
5937 (unwind_stop_reason_to_string): this.
5938 * frame.h (frame_stop_reason_string): Rename to ...
5939 (unwind_stop_reason_to_string): this.
5940 * stack.c (frame_info): Update call to frame_stop_reason_string.
5941 (backtrace_command_1): Likewise.
5942 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5943 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5945 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5947 * frame.c (remove_prev_frame): New function.
5948 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5951 2014-05-29 Pedro Alves <palves@redhat.com>
5953 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5954 and make it const. When a single-step decays to a continue,
5955 clear 'step', not 'hw_step'. Pass whether the caller wanted
5956 to step to user_visible_resume_ptid, not what we ask the
5959 2014-05-29 Pedro Alves <palves@redhat.com>
5961 * infrun.c (process_event_stop_test, handle_step_into_function)
5962 (handle_step_into_function_backward): Adjust.
5963 Don't set the even thread's stop_step and call stop_waiting before
5964 calling end_stepping_range. Instead do that ...
5965 (end_stepping_range): ... here. Take an ecs pointer parameter.
5967 2014-05-29 Pedro Alves <palves@redhat.com>
5969 * infrun.c (stop_stepping): Rename to ...
5970 (stop_waiting): ... this.
5971 (proceed): Update comment.
5972 (process_event_stop_test, handle_inferior_event)
5973 (handle_signal_stop, handle_step_into_function)
5974 (handle_step_into_function_backward): Update.
5976 2014-05-29 Pedro Alves <palves@redhat.com>
5978 * infcall.c (run_inferior_call): Don't check whether the current
5979 thread is running after the proceed call.
5981 2014-05-29 Pedro Alves <palves@redhat.com>
5982 Tom Tromey <tromey@redhat.com>
5984 * NEWS: Mention "maint set target-async", "set mi-async", and that
5985 background execution commands are now always available.
5986 * target.h (target_async_permitted): Update comment.
5987 * target.c (target_async_permitted, target_async_permitted_1):
5989 (set_target_async_command): Rename to ...
5990 (maint_set_target_async_command): ... this.
5991 (show_target_async_command): Rename to ...
5992 (maint_show_target_async_command): ... this.
5993 (_initialize_target): Adjust.
5994 * infcmd.c (prepare_execution_command): Make extern.
5995 * inferior.h (prepare_execution_command): Declare.
5996 * infrun.c (set_observer_mode): Leave target async alone.
5997 * mi/mi-interp.c (mi_interpreter_init): Install
5998 mi_on_sync_execution_done as sync_execution_done observer.
5999 (mi_on_sync_execution_done): New function.
6000 (mi_execute_command_input_handler): Don't print the prompt if we
6001 just started a synchronous command with an async target.
6002 (mi_on_resume): Check sync_execution before printing prompt.
6003 * mi/mi-main.h (mi_async_p): Declare.
6004 * mi/mi-main.c: Include gdbcmd.h.
6005 (mi_async_p): New function.
6006 (mi_async, mi_async_1): New globals.
6007 (set_mi_async_command, show_mi_async_command, mi_async): New
6009 (exec_continue): Call prepare_execution_command.
6010 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6011 (mi_execute_async_cli_command): Use mi_async_p.
6012 (_initialize_mi_main): Install "set mi-async". Make
6013 "target-async" a deprecated alias.
6015 2014-05-29 Pedro Alves <palves@redhat.com>
6017 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6018 (_initialize_cli_interp): Adjust.
6019 * event-loop.c: Include "observer.h".
6020 (start_event_loop): Notify 'command_error' observers instead of
6021 calling display_gdb_prompt. Remove FIXME comment.
6022 * event-top.c (display_gdb_prompt): Remove call into the
6024 * inf-loop.c: Include "observer.h".
6025 (inferior_event_handler): Notify 'command_error' observers instead
6026 of calling display_gdb_prompt.
6027 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6028 observers instead of calling display_gdb_prompt.
6029 * interps.c (interp_set): Don't call display_gdb_prompt.
6030 (current_interp_display_prompt_p): Delete.
6031 * interps.h (interp_prompt_p): Delete declaration.
6032 (interp_prompt_p_ftype): Delete.
6033 (struct interp_procs) <prompt_proc_p>: Delete field.
6034 (current_interp_display_prompt_p): Delete declaration.
6035 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6036 (_initialize_mi_interp): Adjust.
6037 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6038 'command_error' observers.
6039 (tui_on_sync_execution_done, tui_on_command_error): New
6041 (tui_display_prompt_p): Delete.
6042 (_initialize_tui_interp): Adjust.
6044 2014-05-29 Pedro Alves <palves@redhat.com>
6047 * cli/cli-interp.c: Include infrun.h and observer.h.
6048 (cli_uiout, cli_interp): New globals.
6049 (cli_on_signal_received, cli_on_end_stepping_range)
6050 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6052 (cli_interpreter_init): Install them as 'end_stepping_range',
6053 'signal_received' 'signal_exited', 'exited' and 'no_history'
6055 (_initialize_cli_interp): Remove cli_interp local.
6056 * infrun.c (handle_inferior_event): Call the several stop reason
6057 observers instead of printing the stop reason directly.
6058 (end_stepping_range): New function.
6059 (print_end_stepping_range_reason, print_signal_exited_reason)
6060 (print_exited_reason, print_signal_received_reason)
6061 (print_no_history_reason): Make static, and add an uiout
6062 parameter. Print to that instead of to CURRENT_UIOUT.
6063 * infrun.h (print_end_stepping_range_reason)
6064 (print_signal_exited_reason, print_exited_reason)
6065 (print_signal_received_reason print_no_history_reason): New
6067 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6069 <cli_uiout>: New field.
6070 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6071 uiout for CLI output. Install 'signal_received',
6072 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6074 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6075 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6076 (mi_on_no_history): New functions.
6077 (ui_out_free_cleanup): Delete function.
6078 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6079 instead use the one already stored in the MI interpreter data.
6080 (mi_ui_out): Adjust.
6081 * tui/tui-interp.c: Include infrun.h and observer.h.
6082 (tui_interp): New global.
6083 (tui_on_signal_received, tui_on_end_stepping_range)
6084 (tui_on_signal_exited, tui_on_exited)
6085 (tui_on_no_history): New functions.
6086 (tui_init): Install them as 'end_stepping_range',
6087 'signal_received' 'signal_exited', 'exited' and 'no_history'
6089 (_initialize_tui_interp): Delete tui_interp local.
6091 2014-05-29 Pedro Alves <palves@redhat.com>
6094 * linux-nat.c (linux_nat_resume_callback): Rename the second
6095 parameter to 'except'. Skip LP if it points to EXCEPT.
6096 (linux_nat_resume): Don't mark the event lwp as not stopped
6097 before resuming sibling lwps. Instead ask
6098 linux_nat_resume_callback to skip the event lwp. Mark it as not
6099 stopped after actually resuming it.
6100 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6102 (wait_lwp): Mark the lwp as stopped here.
6103 (stop_wait_callback): Mark the lwp as not stopped right after
6104 resuming it. Don't mark lwps as stopped here.
6105 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6106 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6108 2014-05-29 Pedro Alves <palves@redhat.com>
6111 * infrun.c (resume): Determine how much to resume depending on
6112 whether the caller wanted a step, not whether we can hardware step
6113 the target. Mark all threads that we intend to run as running,
6114 unless we're calling an inferior function.
6115 (normal_stop): If the thread is running an infcall, don't finish
6117 * target.c (target_resume): Don't mark threads as running here.
6119 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6121 * serial.c (_initialize_serial): Remove support for
6122 the "set remotebaud" and "show remotebaud" commands.
6123 * NEWS: Add entry documenting the removal of that command.
6125 2014-05-28 Yao Qi <yao@codesourcery.com>
6127 * charset.c: Fix typo in comments.
6129 2014-05-27 Gary Benson <gbenson@redhat.com>
6131 * utils.c (internal_vproblem): Prompt for a bug report.
6133 2014-05-26 Andy Wingo <wingo@igalia.com>
6135 * guile/scm-arch.c (arscm_mark_arch_smob):
6136 * guile/scm-block.c (bkscm_mark_block_smob)
6137 (bkscm_mark_block_syms_progress_smob):
6138 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6139 * guile/scm-exception.c (exscm_mark_exception_smob):
6140 * guile/scm-frame.c (frscm_mark_frame_smob):
6141 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6142 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6143 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6144 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6145 (ppscm_mark_pretty_printer_worker_smob):
6146 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6147 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6148 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6149 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6151 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6154 2014-05-26 Andy Wingo <wingo@igalia.com>
6155 Doug Evans <xdje42@gmail.com>
6157 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6158 empty_base_class. All uses updated.
6159 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6160 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6162 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6163 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6164 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6165 (gdbscm_gsmob_has_property_p, add_property_name)
6166 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6167 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6168 (gdb-object-has-property?, gdb-object-properties): Remove.
6169 (gdb-object-kind): Renamed from gsmob-kind.
6171 2014-05-26 Andy Wingo <wingo@igalia.com>
6173 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6174 * configure: Regenerate.
6176 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6178 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6180 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6182 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6183 (replay_memory_access_read_only, replay_memory_access_read_write)
6184 (replay_memory_access_types, replay_memory_access)
6185 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6186 (cmd_set_record_btrace, cmd_show_record_btrace)
6187 (cmd_show_replay_memory_access): New.
6188 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6189 (record_btrace_remove_breakpoint): Replace
6190 record_btrace_allow_memory_access with replay_memory_access.
6191 (_initialize_record_btrace): Add commands.
6192 * NEWS: Announce it.
6194 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6196 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6198 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6200 * MAINTAINERS (Write After Approval): Move self back from
6203 2014-05-22 Pedro Alves <palves@redhat.com>
6205 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6206 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6207 (disable_randomization, enum exec_direction_kind)
6208 (execution_direction, stop_registers, start_remote)
6209 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6210 (wait_for_inferior, normal_stop, get_last_target_status)
6211 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6212 (insert_step_resume_breakpoint_at_sal)
6213 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6214 (set_step_info, print_stop_event, signal_stop_state)
6215 (signal_print_state, signal_pass_state, signal_stop_update)
6216 (signal_print_update, signal_pass_update)
6217 (update_signals_program_target, clear_exit_convenience_vars)
6218 (displaced_step_dump_bytes, update_observer_mode)
6219 (signal_catch_update, gdb_signal_from_command): Move
6221 * infrun.h: ... to this new file.
6222 * amd64-tdep.c: Include infrun.h.
6223 * annotate.c: Include infrun.h.
6224 * arch-utils.c: Include infrun.h.
6225 * arm-linux-tdep.c: Include infrun.h.
6226 * arm-tdep.c: Include infrun.h.
6227 * break-catch-sig.c: Include infrun.h.
6228 * breakpoint.c: Include infrun.h.
6229 * common/agent.c: Include infrun.h instead of inferior.h.
6230 * corelow.c: Include infrun.h.
6231 * event-top.c: Include infrun.h.
6232 * go32-nat.c: Include infrun.h.
6233 * i386-tdep.c: Include infrun.h.
6234 * inf-loop.c: Include infrun.h.
6235 * infcall.c: Include infrun.h.
6236 * infcmd.c: Include infrun.h.
6237 * infrun.c: Include infrun.h.
6238 * linux-fork.c: Include infrun.h.
6239 * linux-nat.c: Include infrun.h.
6240 * linux-thread-db.c: Include infrun.h.
6241 * monitor.c: Include infrun.h.
6242 * nto-tdep.c: Include infrun.h.
6243 * procfs.c: Include infrun.h.
6244 * record-btrace.c: Include infrun.h.
6245 * record-full.c: Include infrun.h.
6246 * remote-m32r-sdi.c: Include infrun.h.
6247 * remote-mips.c: Include infrun.h.
6248 * remote-notif.c: Include infrun.h.
6249 * remote-sim.c: Include infrun.h.
6250 * remote.c: Include infrun.h.
6251 * reverse.c: Include infrun.h.
6252 * rs6000-tdep.c: Include infrun.h.
6253 * s390-linux-tdep.c: Include infrun.h.
6254 * solib-irix.c: Include infrun.h.
6255 * solib-osf.c: Include infrun.h.
6256 * solib-svr4.c: Include infrun.h.
6257 * target.c: Include infrun.h.
6258 * top.c: Include infrun.h.
6259 * windows-nat.c: Include infrun.h.
6260 * mi/mi-interp.c: Include infrun.h.
6261 * mi/mi-main.c: Include infrun.h.
6262 * python/py-threadevent.c: Include infrun.h.
6264 2014-05-22 Pedro Alves <palves@redhat.com>
6266 * infrun.c (handle_inferior_event): Store the exit code for
6267 --return-child-result here, instead of ...
6268 (print_exited_reason): ... here.
6270 2014-05-21 Pedro Alves <palves@redhat.com>
6273 * gdbthread.h (struct thread_control_state): New field
6275 * infrun.c (follow_fork): Copy the new thread control field to the
6277 (clear_proceed_status_thread): Clear the new thread control field.
6278 (proceed): Set the new thread control field.
6279 * interps.h (command_interp): Declare.
6280 * interps.c (command_interpreter): New global.
6281 (command_interp): New function.
6282 (interp_exec): Set `command_interpreter' while here.
6283 * cli-out.c (cli_uiout_dtor): New function.
6284 (cli_ui_out_impl): Install it.
6285 * mi/mi-interp.c: Include cli-out.h.
6286 (mi_cmd_interpreter_exec): Add comment.
6287 (restore_current_uiout_cleanup): New function.
6288 (ui_out_free_cleanup): New function.
6289 (mi_on_normal_stop): If finishing an execution command started by
6290 a CLI command, or any kind of breakpoint-like event triggered,
6291 print the stop event to the output (CLI) stream.
6292 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6294 2014-05-21 Pedro Alves <palves@redhat.com>
6296 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6297 current source line having changed.
6298 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6299 * infrun.c (normal_stop): Adjust call to
6300 set_current_sal_from_frame.
6301 * source.c (clear_lines_listed_range): New function.
6302 (set_current_source_symtab_and_line, identify_source_line): Clear
6303 the lines listed range.
6304 (line_info): Handle the first "info line" after the current source
6305 line having changed.
6306 * stack.c (print_stack_frame): Remove center handling.
6307 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6310 2014-05-21 Pedro Alves <palves@redhat.com>
6312 * inf-child.c (inf_child_mourn_inferior): New function.
6313 * inf-child.h (inf_child_mourn_inferior): New declaration.
6314 * darwin-nat.c (darwin_mourn_inferior): Use
6315 inf_child_mourn_inferior.
6316 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6317 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6318 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6319 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6320 * windows-nat.c (windows_mourn_inferior): Likewise.
6322 2014-05-21 Doug Evans <xdje42@gmail.com>
6324 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6326 2014-05-21 Doug Evans <xdje42@gmail.com>
6328 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6329 (gdbscm_out_of_range_error): Ditto.
6330 (gdbscm_memory_error): Ditto.
6331 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6332 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6333 (gdbscm_out_of_range_error): Update.
6334 (gdbscm_memory_error): Update.
6335 (gdbscm_scm_to_target_string_unsafe): Delete.
6337 2014-05-21 Pedro Alves <palves@redhat.com>
6339 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6341 (inf_child_open_target): New function.
6342 (inf_child_open): Use inf_child_open_target to push the target
6343 instead of erroring out.
6344 (inf_child_disconnect, inf_child_close)
6345 (inf_child_maybe_unpush_target): New functions.
6346 (inf_child_target): Install inf_child_disconnect and
6347 inf_child_close. Store a pointer to the returned object.
6348 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6350 * target.c (auto_connect_native_target): New global.
6351 (show_default_run_target): New function.
6352 (find_default_run_target): Return NULL if automatically connecting
6353 to the native target is disabled.
6354 (_initialize_target): Install set/show auto-connect-native-target.
6355 * NEWS: Mention "set auto-connect-native-target", and "target
6357 * linux-nat.c (super_close): New global.
6358 (linux_nat_close): Call super_close.
6359 (linux_nat_add_target): Store a pointer to the base class's
6361 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6362 inf_child_maybe_unpush.
6363 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6365 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6366 the inferior. Use inf_child_maybe_unpush_target.
6367 (inf_ttrace_attach): Don't push the target if it is already
6369 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6370 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6371 after mourning the inferior. Use inf_child_maybe_unpush_target.
6372 (darwin_attach_pid): Don't push the target if it is already
6374 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6375 mourning the inferior. Use inf_child_maybe_unpush_target.
6376 (gnu_detach): Use inf_child_maybe_unpush_target.
6377 * go32-nat.c (go32_create_inferior): Don't push the target if it
6379 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6380 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6381 (procfs_open): Rename to ...
6382 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6383 comments. Can target_preopen before changing node. Call
6384 inf_child_open_target to push the target explicitly.
6385 (procfs_attach): Don't push the target if it is already pushed.
6386 (procfs_detach): Use inf_child_maybe_unpush_target.
6387 (procfs_create_inferior): Don't push the target if it is already
6389 (nto_native_ops): New global.
6390 (procfs_open): Reimplement.
6391 (procfs_native_open): New function.
6392 (init_procfs_targets): Install procfs_native_open as to_open of
6393 "target native". Store a pointer to the "native" target in
6395 * procfs.c (procfs_attach): Don't push the target if it is already
6397 (procfs_detach): Use inf_child_maybe_unpush_target.
6398 (procfs_mourn_inferior): Only unpush the target after mourning the
6399 inferior. Use inf_child_maybe_unpush_target.
6400 (procfs_init_inferior): Don't push the target if it is already
6402 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6403 if it is already pushed.
6405 2014-05-21 Pedro Alves <palves@redhat.com>
6407 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6408 and "procfs" targets are now called "native" instead.
6410 2014-05-21 Pedro Alves <palves@redhat.com>
6412 * go32-nat.c (go32_open): Delete.
6413 (go32_target): Don't override the to_open method.
6415 2014-05-21 Pedro Alves <palves@redhat.com>
6417 * nto-procfs.c (procfs_can_run): New function.
6418 (nto_procfs_ops): New global.
6419 (init_procfs_targets): New, based on procfs_target. Install
6420 "target native" in addition to "target procfs".
6421 (_initialize_procfs): Call init_procfs_targets instead of adding
6424 2014-05-21 Pedro Alves <palves@redhat.com>
6426 * windows-nat.c (windows_target): Don't override to_shortname,
6427 to_longname or to_doc.
6429 2014-05-21 Pedro Alves <palves@redhat.com>
6431 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6434 2014-05-21 Pedro Alves <palves@redhat.com>
6436 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6437 to_shortname, to_longname or to_doc.
6439 2014-05-21 Pedro Alves <palves@redhat.com>
6441 * go32-nat.c (go32_target): Don't override to_shortname,
6442 to_longname or to_doc.
6444 2014-05-21 Pedro Alves <palves@redhat.com>
6446 * inf-child.c (inf_child_open): Remove mention of "child".
6447 (inf_child_target): Rename target to "native" instead of "child".
6449 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6451 * Makefile.in (SFILES): Delete "regset.c".
6452 (COMMON_OBS): Delete "regset.o".
6454 * regset.h (regset_alloc): Delete prototype.
6456 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6458 * sparc-linux-tdep.c (sparc32_linux_gregset)
6459 (sparc32_linux_fpregset): New static regset structures.
6460 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6461 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6463 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6464 (sparc64_linux_fpregset): New static regset structures.
6465 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6466 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6467 New static regset structures.
6468 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6469 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6470 New static regset structures.
6471 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6472 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6473 New static regset structures.
6474 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6475 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6476 New static regset structures.
6477 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6479 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6481 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6482 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6483 register maps ("regmaps") from "*regset" to "*regmap". Do this
6484 for all regmap types and variables.
6485 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6486 (sparc32_linux_supply_core_gregset)
6487 (sparc32_linux_collect_core_gregset)
6488 (sparc32_linux_supply_core_fpregset)
6489 (sparc32_linux_collect_core_fpregset): Likewise.
6490 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6491 (sparc_gregmap, sparc_fpregmap): ... these.
6492 (sparc_supply_gregset, sparc_collect_gregset)
6493 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6494 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6495 (_initialize_sparc_nat): Rename regmaps.
6496 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6497 (sparc_gregmap, sparc_fpregmap): ... these.
6498 (sparc_supply_gregset, sparc_collect_gregset)
6499 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6500 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6502 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6503 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6505 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6507 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6508 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6509 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6511 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6512 (sparc32_bsd_fpregset): Rename to...
6513 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6514 (sparc32_bsd_fpregmap): ... these.
6515 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6516 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6517 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6518 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6519 (struct sparc_gregmap, struct sparc_fpregmap)
6520 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6521 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6522 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6523 (sparc32_supply_regset, sparc32_collect_gregset)
6524 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6526 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6527 (sparc64_linux_ptrace_gregmap): ... this.
6528 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6529 (_initialize_sparc64_linux_nat): Rename regmaps.
6530 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6531 (sparc64_linux_core_gregmap): ... this.
6532 (sparc64_linux_supply_core_gregset)
6533 (sparc64_linux_collect_core_gregset)
6534 (sparc64_linux_supply_core_fpregset)
6535 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6536 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6537 (sparc64_sol2_fpregset): Rename to...
6538 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6539 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6540 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6542 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6543 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6544 (sparc64_bsd_fpregset): Rename to...
6545 (struct sparc_gregmap, sparc64_sol2_gregmap)
6546 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6547 (sparc64_bsd_fpregmap): ... these.
6548 (sparc64_supply_gregset, sparc64_collect_gregset)
6549 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6551 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6552 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6553 (sparc64fbsd_gregmap): ... this.
6554 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6555 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6557 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6558 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6559 (sparc64nbsd_collect_fpregset): Likewise.
6560 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6561 (sparc64nbsd_gregmap): ... this.
6562 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6564 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6565 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6566 (sparc64obsd_gregmap): ... this.
6567 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6569 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6570 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6571 (sparc32nbsd_gregmap): ... this.
6572 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6575 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6577 * score-tdep.c (score7_linux_gregset): New static regset
6579 (score7_linux_regset_from_core_section): Remove dynamic regset
6581 (score_gdbarch_init): Drop allocation of tdep structure.
6582 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6586 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6588 (am33_regset_from_core_section): Remove dynamic regset
6591 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6593 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6594 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6596 (mips_linux_regset_from_core_section): Remove dynamic regset
6598 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6599 'gregset64', 'fpregset', and 'fpregset64'.
6600 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6601 deleted tdep fields.
6603 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6605 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6607 (amd64_regset_from_core_section): Remove dynamic regset
6609 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6611 (amd64obsd_regset_from_core_section): Remove dynamic regset
6613 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6615 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6616 x86-common regset supply function.
6617 * i386-tdep.c (i386_collect_gregset): Make static.
6618 (i386_gregset): New global regset structure.
6619 (i386_fpregset, i386_xstateregset): New static regset structures.
6620 (i386_regset_from_core_section): Remove dynamic regset
6622 (i386_gdbarch_init): Remove initialization of tdep fields
6623 'gregset', 'fpregset', and 'xstateregset'.
6624 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6625 'fpregset', and 'xstateregset'.
6626 (i386_collect_gregset): Remove prototype.
6627 (i386_gregset): New declaration.
6628 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6630 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6633 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6635 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6636 (arm_linux_vfpregset): New static regset structures.
6637 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6639 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6640 and 'vfpregset' fields.
6642 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6644 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6645 (aarch64_linux_fpregset): New static regset structures.
6646 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6647 of regset structures.
6648 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6651 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6653 * regset.h (struct regset): Remove gdbarch field.
6654 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6655 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6656 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6658 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6659 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6660 (ppc32_linux_vsxregset): Likewise.
6661 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6662 via the regcache instead of the regset.
6663 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6664 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6665 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6666 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6669 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6671 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6672 Constify structures.
6673 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6674 (alphanbsd_aout_gregset): Likewise.
6675 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6676 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6678 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6679 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6681 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6682 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6683 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6684 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6685 * m88k-tdep.c (m88k_gregset): Likewise.
6686 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6687 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6688 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6689 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6690 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6691 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6692 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6693 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6694 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6696 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6697 * sh-tdep.h (sh_corefile_gregset): Likewise.
6698 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6699 * vax-tdep.c (vax_gregset): Likewise.
6701 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6703 Fix TLS access for -static -pthread.
6704 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6705 (try_thread_db_load_1): Initialize it.
6706 (thread_db_get_thread_local_address): Call it if LM is zero.
6707 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6708 * target.h (struct target_ops) (to_get_thread_local_address): Add
6709 load_module_addr comment.
6711 2014-05-21 Pedro Alves <palves@redhat.com>
6713 * dcache.c (dcache_read_memory_partial): If reading the cache line
6714 fails, fallback to reading just the memory the caller wanted.
6716 2014-05-20 Doug Evans <dje@google.com>
6718 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6719 instead of get_current_arch.
6721 2014-05-20 Pedro Alves <palves@redhat.com>
6723 * NEWS: Mention that compare-sections now works with all targets.
6725 * remote.c (PACKET_qCRC): New enum value.
6726 (remote_verify_memory): Don't send qCRC if the target has no
6727 execution. Use packet_support/packet_ok. If the target doesn't
6728 support the qCRC packet, fallback to a deep memory copy.
6729 (compare_sections_command): Say "target image" instead of "remote
6731 (_initialize_remote): Add PACKET_qCRC to the list of config
6732 packets that have no associated command. Extend comment.
6733 * target.c (simple_verify_memory, default_verify_memory): New
6735 * target.h (struct target_ops) <to_verify_memory>: Default to
6736 default_verify_memory.
6737 (simple_verify_memory): New declaration.
6738 * target-delegates.c: Regenerate.
6740 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6742 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6744 2014-05-20 Hui Zhu <hui@codesourcery.com>
6745 Yao Qi <yao@codesourcery.com>
6748 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6749 and change address of sp and pc.
6751 2014-05-19 Tom Tromey <tromey@redhat.com>
6753 * gdbtypes.c (rank_function): Use XNEWVEC.
6754 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6756 2014-05-19 Doug Evans <dje@google.com>
6758 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6759 build_type_unit_groups and moved closer to only caller. Remove
6760 arguments. All references updated. Remove outdated .gdb_index
6762 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6763 build_type_psymtabs_1.
6765 2014-05-19 Doug Evans <dje@google.com>
6767 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6768 n_type_unit_groups, all_type_unit_groups. All uses removed.
6769 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6770 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6771 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6772 (add_type_unit_group_to_table): Delete.
6774 2014-05-19 Doug Evans <dje@google.com>
6776 * eval.c (evaluate_subexp_standard): Add some comments.
6778 2014-05-17 Doug Evans <xdje42@gmail.com>
6780 * progspace.c (remove_program_space): Delete, unused.
6781 * progspace.h (remove_program_space): Ditto.
6783 2014-05-17 Doug Evans <xdje42@gmail.com>
6785 * inferior.c (prune_inferiors): Fix comment.
6786 (remove_inferior_command): Call prune_program_spaces.
6788 2014-05-16 Doug Evans <dje@google.com>
6790 New command line option -D.
6792 * main.c (set_gdb_data_directory): New function.
6793 (captured_main): Recognize -D. Flag error for --data-directory "".
6794 Call set_gdb_data_directory.
6795 (print_gdb_help): Print --data-directory, -D.
6796 * main.h (set_gdb_data_directory): Declare.
6797 * top.c (staged_gdb_datadir): New static global.
6798 (set_gdb_datadir): Call set_gdb_data_directory
6799 (show_gdb_datadir): New function.
6800 (init_main): Update init of data-directory parameter.
6802 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6804 Import the "dirfd" gnulib module.
6805 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6806 * gnulib/aclocal.m4: Update.
6807 * gnulib/config.in: Update.
6808 * gnulib/configure: Update.
6809 * gnulib/import/Makefile.am: Update.
6810 * gnulib/import/Makefile.in: Update.
6811 * gnulib/import/dirfd.c: New.
6812 * gnulib/import/m4/dirfd.m4: New.
6813 * gnulib/import/m4/gnulib-cache.m4: Update.
6814 * gnulib/import/m4/gnulib-comp.m4: Update.
6816 2014-05-16 Pierre Muller <muller@sourceware.org>
6817 Yao Qi <yao@codesourcery.com>
6819 * valprint.c (print_wchar): Move the code on checking whether
6820 W is a printable wide char to the default branch of switch
6821 statement below. Call wchar_printable instead of gdb_iswprint.
6823 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6825 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6826 ldr.w and ldrd instructions.
6828 2014-05-15 Doug Evans <dje@google.com>
6830 * dwarf2read.c (read_structure_type): Delete outdated comments.
6832 2014-05-14 Tom Tromey <tromey@redhat.com>
6834 * macrocmd.c (print_macro_definition): Reindent.
6836 2014-05-13 Doug Evans <xdje42@gmail.com>
6838 * python/py-cmd.c (cmdpy_completer): Add comment.
6839 (completers): Make const.
6841 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6843 * infrun.c (resume): Remove should_resume (unused). Move up
6844 declaration of resume_ptid.
6846 2014-05-13 Tom Tromey <tromey@redhat.com>
6848 * language.h (unop_type_check): Remove.
6849 (binop_type_check): Don't declare.
6851 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6853 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6854 call to regcache_raw_collect.
6856 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6858 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6859 mi_console->quote as the quoting character.
6861 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6863 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6865 2014-04-29 Tom Tromey <tromey@redhat.com>
6867 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6868 "show debug varobj".
6870 2014-05-07 Kyle McMartin <kyle@redhat.com>
6872 Pushed by Joel Brobecker <brobecker@adacore.com>.
6873 * aarch64-tdep.c (aarch64_software_single_step): New function.
6874 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6875 with aarch64_software_single_step.
6877 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6881 2014-05-05 Keith Seitz <keiths@redhat.com>
6883 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6884 variable or history value is successfully parsed.
6886 2014-05-05 Yao Qi <yao@codesourcery.com>
6887 Pedro Alves <palves@redhat.com>
6889 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6890 address of blocks that intersects the requested range. Trim
6891 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6893 * ctf.c (ctf_xfer_partial): Likewise.
6895 2014-05-05 Yao Qi <yao@codesourcery.com>
6897 * printcmd.c (display_command): Remove the check to
6898 target_has_execution.
6900 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6902 * ppcobsd-nat.c: Include "obsd-nat.h".
6903 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6905 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6907 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6909 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6910 and 16-bit signed and unsigned arguments. Update comment.
6911 (stap_parse_probe_arguments): Extend code to handle such
6912 arguments. Use warning instead of complaint to notify about
6913 unrecognized bitness.
6915 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6917 PR breakpoints/16889
6918 * stap-probe.c (stap_parse_probe_arguments): Simplify
6919 check for non-prefixed probes (i.e., probes whose
6920 arguments do not start with "N@"). Always set the
6921 argument type to a sane value.
6923 2014-05-01 David Taylor <dtaylor@emc.com>
6925 * remote.c (compare_sections_command): Add -r option to compare
6926 all loadable read-only sections.
6928 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6930 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6931 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6933 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6934 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6935 Remove unused CORE_ADDR argument. Update all callers.
6937 2014-04-29 Pedro Alves <palves@redhat.com>
6939 * remote.c (struct packet_config) <detect>: Extend comment.
6940 (add_packet_config_cmd): Don't set the config's detect or support
6942 (init_all_packet_configs): Also initialize the config's 'detect'
6944 (reset_all_packet_configs_support): New function.
6945 (remote_open_1): Call reset_all_packet_configs_support instead of
6946 init_all_packet_configs.
6947 (_initialize_remote): Initialize all packet configs. Assert that
6948 all packets have an associated command, except a few known
6951 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6953 * dwarf2read.c (read_subrange_type): Handle dynamic
6954 DW_AT_lower_bound attributes.
6956 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6958 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6959 dynamic bounds before computing its upper bound.
6960 (ada_discrete_type_low_bound): Same as above with the lower bound.
6962 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6964 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6965 range types. Adjust the array handling implementation to
6966 take advantage of this change.
6967 (resolve_dynamic_range): New function, mostly extracted from
6968 resolve_dynamic_bounds.
6969 (resolve_dynamic_array): New function, mostly extracted from
6970 resolve_dynamic_bounds.
6971 (resolve_dynamic_bounds): Delete.
6972 (resolve_dynamic_type): Reimplement. Add handling of
6973 TYPE_CODE_RANGE types.
6975 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6977 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6978 handling of parallel ___XA types.
6980 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6982 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6983 unnecessary second call to static_unwrap_type.
6985 2014-04-27 Hui Zhu <hui@codesourcery.com>
6987 * stack.c (print_frame_info): Call do_gdb_disassembly with
6988 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6990 2014-04-26 Doug Evans <xdje42@gmail.com>
6992 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6994 2014-04-25 Pedro Alves <palves@redhat.com>
6997 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6998 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6999 and newline from built string.
7000 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7001 (linux_ptrace_attach_fail_reason): ... this.
7002 * linux-nat.c (linux_nat_attach): Adjust to use
7003 linux_ptrace_attach_fail_reason.
7005 2014-04-25 Pedro Alves <palves@redhat.com>
7007 * remote.c (struct remote_state): Remove multi_process_aware,
7008 non_stop_aware, cond_tracepoints, cond_breakpoints,
7009 breakpoint_commands, fast_tracepoints, static_tracepoints,
7010 install_in_trace, disconnected_tracing,
7011 enable_disable_tracepoints, string_tracing, and
7012 augmented_libraries_svr4_read fields.
7013 (remote_multi_process_p): Move further below in the file.
7014 (struct packet_config): Add comments.
7015 (update_packet_config): Delete function.
7016 (show_packet_config_cmd): Use packet_config_support.
7017 (add_packet_config_cmd): Use NULL as set callback.
7018 (packet_ok): "set remote foo-packet"-style commands no longer
7019 change config->supported -- adjust.
7020 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7021 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7022 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7023 (PACKET_QNonStop, PACKET_multiprocess_feature)
7024 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7025 (PACKET_DisconnectedTracing_feature)
7026 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7027 (set_remote_protocol_packet_cmd): Delete function.
7028 (packet_config_support, packet_support): New functions.
7029 (set_remote_protocol_Z_packet_cmd): Don't call
7030 update_packet_config.
7031 (remote_query_attached, remote_pass_signals)
7032 (remote_program_signals, remote_threads_info)
7033 (remote_threads_extra_info, remote_start_remote): Use
7035 (remote_start_remote): Use packet_config_support and
7037 (init_all_packet_configs): Set all packets to unknown support,
7038 instead of calling update_packet_config.
7039 (remote_check_symbols): Use packet_support.
7040 (remote_supported_packet): Unconditionally set the packet config's
7042 (remote_multi_process_feature, remote_non_stop_feature)
7043 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7044 (remote_breakpoint_commands_feature)
7045 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7046 (remote_install_in_trace_feature)
7047 (remote_disconnected_tracing_feature)
7048 (remote_enable_disable_tracepoint_feature)
7049 (remote_string_tracing_feature)
7050 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7051 (remote_protocol_features): Adjust to use remote_supported_packet
7052 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7053 "ConditionalTracepoints", "ConditionalBreakpoints",
7054 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7055 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7056 "EnableDisableTracepoints", and "tracenz".
7057 (remote_query_supported): Use packet_support.
7058 (remote_open_1): Adjust.
7059 (extended_remote_attach_1): Use packet_support. Switch on the
7060 result of packet_ok instead of checking whether the packet ended
7062 (remote_vcont_resume): Use packet_support.
7063 (remote_resume, remote_stop_ns, fetch_register_using_p)
7064 (remote_prepare_to_store, store_register_using_P)
7065 (check_binary_download, remote_write_bytes): Use packet_support.
7066 (remote_vkill): Use packet_support. Switch on the result of
7067 packet_ok instead of checking whether the packet ended up
7069 (extended_remote_supports_disable_randomization): Use
7071 (extended_remote_run): Switch on the result of packet_ok instead
7072 of checking whether the packet ended up disabled.
7073 (remote_insert_breakpoint, remote_remove_breakpoint)
7074 (remote_insert_watchpoint, remote_remove_watchpoint)
7075 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7077 (remote_search_memory): Use packet_config_support.
7078 (remote_get_thread_local_address, remote_get_tib_address)
7079 (remote_hostio_send_command, remote_can_execute_reverse): Use
7081 (remote_supports_cond_tracepoints)
7082 (remote_supports_cond_breakpoints)
7083 (remote_supports_fast_tracepoints)
7084 (remote_supports_static_tracepoints)
7085 (remote_supports_install_in_trace)
7086 (remote_supports_enable_disable_tracepoint)
7087 (remote_supports_string_tracing)
7088 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7089 the packet config says the feature is enabled or disabled.
7090 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7091 (remote_get_trace_status): Use packet_support.
7092 (remote_set_disconnected_tracing): Adjust to check whether the
7093 feature is enabled with packet_support.
7094 (remote_set_trace_buffer_size, remote_use_agent)
7095 (remote_can_use_agent, remote_supports_btrace): Use
7097 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7098 Use packet_config_support.
7099 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7100 the packet config says the feature is enabled or disabled.
7101 (set_range_stepping): Use packet_support.
7103 2014-04-25 Tom Tromey <tromey@redhat.com>
7105 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7108 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7110 * NEWS: Mention support for C99 variable length arrays.
7112 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7114 * ada-lang.c (standard_exc): Expand introductory comment.
7116 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7117 Walfred Tedeschi <walfred.tedeschi@intel.com>
7119 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7121 (amd64_linux_read_description): Add code to handle AVX512 xstate
7122 mask and return respective tdesc.
7123 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7124 and features/i386/x32-avx512-linux.c.
7125 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7126 (amd64_linux_core_read_description): Add code to handle AVX512
7127 xstate mask and return respective tdesc.
7128 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7129 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7131 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7132 (tdesc_amd64_avx512_linux): New prototype.
7133 (tdesc_x32_avx512_linux): Likewise.
7134 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7135 features/i386/x32-avx512.c.
7136 (amd64_ymm_avx512_names): New register names for pseudo
7138 (amd64_ymmh_avx512_names): New register names for raw registers
7140 (amd64_k_names): New register names for K registers.
7141 (amd64_zmmh_names): New register names for ZMM raw registers.
7142 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7143 (amd64_xmm_avx512_names): New register names for XMM16-31
7145 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7147 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7148 if feature is present.
7149 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7150 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7151 (AMD64_NUM_REGS): Adjust to new number of registers.
7152 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7153 registers supplied via XSTATE by AVX512 registers.
7154 (i386_linux_read_description): Add case for AVX512.
7155 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7156 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7157 (i386_linux_core_read_description): Add case for AVX512.
7158 (i386_linux_init_abi): Install supported register note section
7160 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7162 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7163 registers to be number of zmm7h + 1.
7164 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7165 * i386-tdep.c: Include features/i386/i386-avx512.c.
7166 (i386_zmm_names): Add ZMM pseudo register names array.
7167 (i386_zmmh_names): Add ZMM raw register names array.
7168 (i386_k_names): Add K raw register names array.
7169 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7170 registers. AVX512 has 16 more ZMM registers than there are YMM
7172 (i386_zmmh_regnum_p): Add function to look up register number of
7174 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7175 (i386_k_regnum_p): Likewise for K raw registers.
7176 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7177 registers added by AVX512.
7178 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7179 registers added by AVX512.
7180 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7182 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7183 (i386_pseudo_register_name): Add ZMM pseudo registers.
7184 (i386_zmm_type): Construct and return vector registers type for ZMM
7186 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7187 ZMM0-31 pseudo registers and K registers.
7188 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7189 and YMM16-31 registers from register cache.
7190 (i386_pseudo_register_write): Add code to write K, ZMM and
7192 (i386_register_reggroup_p): Add code to include/exclude AVX512
7193 registers in/from respective register groups.
7194 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7195 registers if feature is present in xcr0.
7196 (i386_gdbarch_init): Add code to initialize AVX512 feature
7197 variables in tdep structure, wire in pseudo registers and call
7198 initialize_tdesc_i386_avx512.
7199 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7201 (i386_regnum): Add AVX512 registers.
7202 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7203 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7204 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7205 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7207 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7208 (i386_ymm_avx512_regnum_p): Likewise.
7209 (i386_k_regnum_p): Likewise.
7210 (i386_zmm_regnum_p): Likewise.
7211 (i386_zmmh_regnum_p): Likewise.
7212 * i387-tdep.c : Update year in copyright notice.
7213 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7215 (XSAVE_YMM_AVX512_ADDR): New macro.
7216 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7218 (XSAVE_XMM_AVX512_ADDR): New macro.
7219 (xsave_avx512_k_offset): New table for K register offsets in
7221 (XSAVE_AVX512_K_ADDR): New macro.
7222 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7224 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7225 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7227 (i387_collect_xsave): Add code to collect AVX512 registers from
7229 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7230 of XMM16-31 registers.
7231 (I387_NUM_K_REGS): New define for number of K registers.
7232 (I387_K0_REGNUM): New define for K0 register number.
7233 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7234 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7235 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7237 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7238 (I387_XMM16_REGNUM): New define for XMM16 register number.
7239 (I387_YMM0_REGNUM): New define for YMM0 register number.
7240 (I387_KEND_REGNUM): New define for last K register number.
7241 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7242 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7244 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7246 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7248 * features/Makefile: Add AVX512 related files.
7249 * features/i386/32bit-avx512.xml: New file.
7250 * features/i386/64bit-avx512.xml: Likewise.
7251 * features/i386/amd64-avx512-linux.c: Likewise.
7252 * features/i386/amd64-avx512-linux.xml: Likewise.
7253 * features/i386/amd64-avx512.c: Likewise.
7254 * features/i386/amd64-avx512.xml: Likewise.
7255 * features/i386/i386-avx512-linux.c: Likewise.
7256 * features/i386/i386-avx512-linux.xml: Likewise.
7257 * features/i386/i386-avx512.c: Likewise.
7258 * features/i386/i386-avx512.xml: Likewise.
7259 * features/i386/x32-avx512-linux.c: Likewise.
7260 * features/i386/x32-avx512-linux.xml: Likewise.
7261 * features/i386/x32-avx512.c: Likewise.
7262 * features/i386/x32-avx512.xml: Likewise.
7263 * regformats/i386/amd64-avx512-linux.dat: New file.
7264 * regformats/i386/amd64-avx512.dat: Likewise.
7265 * regformats/i386/i386-avx512-linux.dat: Likewise.
7266 * regformats/i386/i386-avx512.dat: Likewise.
7267 * regformats/i386/x32-avx512-linux.dat: Likewise.
7268 * regformats/i386/x32-avx512.dat: Likewise.
7269 * NEWS: Add note about new support for AVX512.
7272 2014-04-23 Pedro Alves <palves@redhat.com>
7274 * breakpoint.c (insert_bp_location): Tolerate errors if the
7275 breakpoint is set in a user-loaded objfile.
7276 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7277 location is marked shlib_disabled. If the breakpoint is set in a
7278 user-loaded objfile is a GDB-side memory breakpoint, validate it
7279 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7280 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7282 * mem-break.c (memory_validate_breakpoint): New function.
7283 * objfiles.c (userloaded_objfile_contains_address_p): New
7285 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7286 * target.h (memory_validate_breakpoint): New declaration.
7288 2014-04-23 Pedro Alves <palves@redhat.com>
7290 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7291 the breakpoint is set in a shared library, only suppress
7292 errors for software breakpoints, not hardware breakpoints.
7294 2014-04-22 Pedro Alves <palves@redhat.com>
7296 * infrun.c (schedlock_applies): New function, factored out from
7297 find_thread_needs_step_over.
7298 (find_thread_needs_step_over): Use it.
7299 (switch_back_to_stepped_thread): Always clear trap_expected if the
7300 step over is finished. Return early if scheduler locking applies.
7301 Look for the stepping thread and a potential step-over thread with
7303 (currently_stepping_or_nexting_callback): Delete.
7305 2014-04-22 Nick Clifton <nickc@redhat.com>
7307 * NEWS: Mention that ARM sim now supports tracing.
7309 2014-04-22 Yao Qi <yao@codesourcery.com>
7311 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7313 * tracefile.c (tracefile_fetch_registers): ... it. New
7315 * tracefile.h (tracefile_fetch_registers): Declare.
7316 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7317 tracefile_fetch_registers.
7319 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7322 * windows-nat.c (thread_rec): Don't display a warning when
7323 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7324 fails for any reason, set th->suspended to -1, so that we don't
7325 try to resume such a thread. Also, don't return NULL in these
7326 cases, to avoid completely ruin the session due to "PC register is
7327 not available" error.
7328 (do_windows_fetch_inferior_registers): Check errors in
7329 GetThreadContext call.
7330 (windows_continue): Accept an additional argument KILLED; if not
7331 zero, ignore errors in the SetThreadContext call, since the
7332 inferior was killed and is shutting down.
7333 (windows_resume, get_windows_debug_event)
7334 (windows_create_inferior, windows_mourn_inferior)
7335 (windows_kill_inferior): All callers of windows_continue changed
7336 to adjust to its new calling sequence.
7338 2014-04-19 Yao Qi <yao@codesourcery.com>
7340 * ctf.c (ctf_open): Call post_create_inferior.
7342 2014-04-19 Yao Qi <yao@codesourcery.com>
7344 * ctf.c (handle_id): New static variable.
7345 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7346 value. Get the declaration of event "register" and get length
7347 of field "contents".
7349 2014-04-19 Yao Qi <yao@codesourcery.com>
7351 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7353 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7355 * valops.c (oload_method_static): Remove unnecessary argument
7356 METHOD. Update all callers.
7358 2014-04-18 Pedro alves <palves@redhat.com>
7359 Tom Tromey <tromey@redhat.com>
7362 * frame.c (get_prev_frame_1): Rename to ...
7363 (get_prev_frame_always): ... this, and make extern. Adjust.
7364 (skip_artificial_frames): Use get_prev_frame_always.
7365 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7366 (get_frame_unwind_stop_reason): Adjust to rename.
7367 * frame.h (get_prev_frame_always): Declare.
7368 * inline-frame.c: Include frame.h.
7369 (inline_frame_this_id): Use get_prev_frame_always.
7371 2014-04-18 Tristan Gingold <gingold@adacore.com>
7373 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7374 code by using bfd_mach_o_get_base_address.
7376 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7378 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7379 (spu_ax_pseudo_register_collect): New function.
7380 (spu_ax_pseudo_register_push_stack): Likewise.
7381 (spu_dwarf_reg_to_regnum): Likewise.
7382 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7384 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7386 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7387 Replace FRAME argument with FRAME_ID.
7388 * gdbarch.c, gdbarch.h: Regenerate.
7389 * findvar.c (default_value_from_register): Add GDBARCH argument;
7390 replace FRAME by FRAME_ID. No longer call get_frame_id.
7391 (value_from_register): Update call to gdbarch_value_from_register.
7392 * value.h (default_value_from_register): Update prototype.
7393 * s390-linux-tdep.c (s390_value_from_register): Update interface
7394 and call to default_value_from_register.
7395 * spu-tdep.c (spu_value_from_register): Likewise.
7397 * findvar.c (address_from_register): Remove TYPE argument.
7398 Do not call value_from_register; use gdbarch_value_from_register
7399 with null_frame_id instead.
7400 * value.h (address_from_register): Update prototype.
7401 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7402 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7403 address_from_register interface change.
7405 2014-04-17 Yao Qi <yao@codesourcery.com>
7407 * gdbtypes.h: Update comments to link to types and macros'
7410 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7412 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7414 2014-04-16 Keith Seitz <keiths@redhat.com>
7417 * dwarf2read.c (skip_one_die): Check that all relative-offset
7418 sibling DIEs fall within range of the current reader's buffer.
7419 (read_partial_die): Likewise.
7421 2014-04-16 Keith Seitz <keiths@redhat.com>
7424 * cp-namespace.c (lookup_symbol_file): If the type name of
7425 `this' is NULL, return immediately.
7427 2014-04-14 Keith Seitz <keiths@redhat.com>
7430 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7431 from symbol_matches_domain in symtab.c. All local callers
7432 of symbol_matches_domain updated.
7433 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7434 search STRUCT_DOMAIN.
7435 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7436 independently. standard_lookup will do that automatically.
7437 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7438 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7439 (cp_lookup_symbol_in_namespace): Likewise.
7440 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7441 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7442 may return a STRUCT_DOMAIN match.
7443 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7444 * cp-support.c: Include language.h.
7445 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7447 * psymtab.c (match_partial_symbol): Compare the requested
7448 domain with the symbol's domain directly.
7449 (lookup_partial_symbol): Likewise.
7450 * symtab.c (lookup_symbol_in_language): Explain when/why
7451 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7452 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7453 appropriate languages.
7454 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7455 and moved to ada-lang.c
7456 (lookup_block_symbol): Explain that this function only returns
7457 symbol matching the requested DOMAIN.
7458 Compare the requested domain with the symbol's domain directly.
7459 (iterate_over_symbols): Compare the requested domain with the
7460 symbol's domain directly.
7461 * symtab.h (symbol_matches_domain): Remove.
7463 2014-04-14 Tom Tromey <tromey@redhat.com>
7466 * c-exp.y (type_aggregate_p): New function.
7467 (qualified_name, classify_inner_name): Use it.
7468 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7469 and TYPE_TARGET_TYPE of an enum type.
7470 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7472 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7473 handle TYPE_DECLARED_CLASS.
7474 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7476 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7477 * valops.c (enum_constant_from_type): New function.
7478 (value_aggregate_elt): Use it.
7479 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7482 2014-04-14 Tom Tromey <tromey@redhat.com>
7484 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7485 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7487 * value.h (value_aggregate_elt): Update.
7489 2014-04-14 Tom Tromey <tromey@redhat.com>
7491 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7493 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7495 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7496 (evaluate_subexp_standard): Pass noside argument.
7497 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7498 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7499 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7500 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7501 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7503 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7505 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7506 points to a constant blob.
7508 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7510 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7511 property and store it as the high bound and flag the range accordingly.
7512 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7513 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7514 * gdbtypes.h (enum range_flags): New enum.
7515 (struct range_bounds): Add flags member.
7517 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7519 * c-typeprint.c (c_type_print_varspec_suffix): Added
7520 check for not yet resolved high bound. If unresolved, print
7521 "variable length" string to the console instead of random
7524 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7526 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7528 (ada_template_to_fixed_record_type_1): Likewise.
7529 (ada_to_fixed_type_1): Likewise.
7530 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7531 (cp_print_value): Likewise.
7532 * d-valprint.c (dynamic_array_type): Likewise.
7533 * findvar.c (address_of_variable): Likewise.
7534 * jv-valprint.c (java_value_print): Likewise.
7535 * valops.c (value_ind): Likewise.
7536 * value.c (coerce_ref): Likewise.
7538 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7540 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7541 value and retrieve the dynamic type size.
7543 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7545 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7546 passed to sizeof is dynamic evaluate the argument to compute the length.
7548 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7549 Joel Brobecker <brobecker@adacore.com>
7551 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7552 (dwarf2_evaluate_property): New function.
7553 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7554 * dwarf2read.c (attr_to_dynamic_prop): New function.
7555 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7557 * gdbtypes.c: Include dwarf2loc.h.
7558 (is_dynamic_type): New function.
7559 (resolve_dynamic_type): New function.
7560 (resolve_dynamic_bounds): New function.
7561 (get_type_length): New function.
7562 (check_typedef): Use get_type_length to compute type length.
7563 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7564 (TYPE_LOW_BOUND_KIND): New macro.
7565 (is_dynamic_type): New function prototype.
7566 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7567 to resolve dynamic properties of the type. Update comment.
7568 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7570 2014-04-14 Richard Henderson <rth@redhat.com>
7572 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7574 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7575 Doug Evans <xdje42@gmail.com>
7577 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7578 dereference TYPE_CODE_REF values.
7580 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7582 Revert the following changes due to regressions:
7584 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7585 (dwarf2_evaluate_property): New function.
7586 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7587 * dwarf2read.c (attr_to_dynamic_prop): New function.
7588 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7590 * gdbtypes.c: Include dwarf2loc.h.
7591 (is_dynamic_type): New function.
7592 (resolve_dynamic_type): New function.
7593 (resolve_dynamic_bounds): New function.
7594 (get_type_length): New function.
7595 (check_typedef): Use get_type_length to compute type length.
7596 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7597 (TYPE_LOW_BOUND_KIND): New macro.
7598 (is_dynamic_type): New function prototype.
7599 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7600 to resolve dynamic properties of the type. Update comment.
7601 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7603 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7604 passed to sizeof is dynamic evaluate the argument to compute the length.
7606 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7607 value and retrieve the dynamic type size.
7609 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7610 (ada_template_to_fixed_record_type_1): Likewise.
7611 (ada_to_fixed_type_1): Likewise.
7612 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7613 (cp_print_value): Likewise.
7614 * d-valprint.c (dynamic_array_type): Likewise.
7615 * eval.c (evaluate_subexp_with_coercion): Likewise.
7616 * findvar.c (address_of_variable): Likewise.
7617 * jv-valprint.c (java_value_print): Likewise.
7618 * valops.c (value_ind): Likewise.
7619 * value.c (coerce_ref): Likewise.
7621 * c-typeprint.c (c_type_print_varspec_suffix): Added
7622 check for not yet resolved high bound. If unresolved, print
7623 "variable length" string to the console instead of random
7626 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7627 property and store it as the high bound and flag the range accordingly.
7628 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7629 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7630 * gdbtypes.h (enum range_flags): New enum.
7631 (struct range_bounds): Add flags member.
7633 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7634 points to a constant blob.
7636 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7637 (evaluate_subexp_standard): Pass noside argument.
7638 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7639 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7640 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7641 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7642 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7644 2014-04-11 Keith Seitz <keiths@redhat.com>
7647 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7648 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7651 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7653 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7654 (evaluate_subexp_standard): Pass noside argument.
7655 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7656 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7657 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7658 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7659 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7661 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7663 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7664 points to a constant blob.
7666 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7668 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7669 property and store it as the high bound and flag the range accordingly.
7670 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7671 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7672 * gdbtypes.h (enum range_flags): New enum.
7673 (struct range_bounds): Add flags member.
7675 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7677 * c-typeprint.c (c_type_print_varspec_suffix): Added
7678 check for not yet resolved high bound. If unresolved, print
7679 "variable length" string to the console instead of random
7682 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7684 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7685 (ada_template_to_fixed_record_type_1): Likewise.
7686 (ada_to_fixed_type_1): Likewise.
7687 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7688 (cp_print_value): Likewise.
7689 * d-valprint.c (dynamic_array_type): Likewise.
7690 * eval.c (evaluate_subexp_with_coercion): Likewise.
7691 * findvar.c (address_of_variable): Likewise.
7692 * jv-valprint.c (java_value_print): Likewise.
7693 * valops.c (value_ind): Likewise.
7694 * value.c (coerce_ref): Likewise.
7696 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7698 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7699 value and retrieve the dynamic type size.
7701 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7703 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7704 passed to sizeof is dynamic evaluate the argument to compute the length.
7706 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7708 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7709 (dwarf2_evaluate_property): New function.
7710 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7711 * dwarf2read.c (attr_to_dynamic_prop): New function.
7712 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7714 * gdbtypes.c: Include dwarf2loc.h.
7715 (is_dynamic_type): New function.
7716 (resolve_dynamic_type): New function.
7717 (resolve_dynamic_bounds): New function.
7718 (get_type_length): New function.
7719 (check_typedef): Use get_type_length to compute type length.
7720 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7721 (TYPE_LOW_BOUND_KIND): New macro.
7722 (is_dynamic_type): New function prototype.
7723 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7724 to resolve dynamic properties of the type. Update comment.
7725 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7727 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7729 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7730 declaring high/low bounds and change uses accordingly. Call
7731 create_range_type instead of create_static_range_type.
7732 * gdbtypes.c (create_range_type): New function.
7733 (create_range_type): Convert bounds into struct bound_prop and pass
7734 them to create_range_type.
7735 * gdbtypes.h (struct bound_prop): New struct.
7736 (create_range_type): New function prototype.
7737 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7738 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7739 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7741 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7743 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7745 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7746 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7747 * ada-lang.c: All uses of create_range_type updated.
7748 * coffread.c: All uses of create_range_type updated.
7749 * dwarf2read.c: All uses of create_range_type updated.
7750 * f-exp.y: All uses of create_range_type updated.
7751 * m2-valprint.c: All uses of create_range_type updated.
7752 * mdebugread.c: All uses of create_range_type updated.
7753 * stabsread.c: All uses of create_range_type updated.
7754 * valops.c: All uses of create_range_type updated.
7755 * valprint.c: All uses of create_range_type updated.
7757 2014-04-10 Pedro Alves <palves@redhat.com>
7759 * breakpoint.c (single_step_breakpoints)
7760 (single_step_gdbarch): Move up in the file.
7761 (one_breakpoint_xfer_memory): New function, factored out from ...
7762 (breakpoint_xfer_memory): ... here. Also process single-step
7765 2014-04-09 Tristan Gingold <gingold@adacore.com>
7767 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7769 (darwin_decode_exception_message): Free port only after use.
7771 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7773 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7774 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7775 when setting the size of call_length.
7777 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7779 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7780 dereference TYPE_CODE_REF values.
7782 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7784 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7785 end of warning message.
7787 2014-04-03 Doug Evans <dje@google.com>
7789 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7790 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7792 2014-04-02 Alan Modra <amodra@gmail.com>
7794 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7795 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7796 (struct symbol_file_add_from_memory_args): Add size field.
7797 (find_vdso_size): New function.
7798 (add_vsyscall_page): Attempt to find vdso size.
7800 2014-04-01 Doug Evans <dje@google.com>
7802 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7804 2014-04-01 Tristan Gingold <gingold@adacore.com>
7806 * darwin-nat.c (darwin_encode_reply): Add prototype.
7807 (darwin_decode_exception_message): Reply to unknown inferiors.
7808 (darwin_decode_message): Handle message by id. Ignore message
7809 to unknown inferior.
7810 (darwin_wait): Discard unknown messages, add debug trace.
7812 2014-03-31 Doug Evans <dje@google.com>
7814 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7817 2014-03-31 Doug Evans <dje@google.com>
7819 New option "set print symbol-loading".
7821 * solib.c (solib_read_symbols): Only print symbol loading messages
7823 (solib_add): If symbol loading is in "brief" mode, notify user
7824 symbols are being loaded.
7825 (reload_shared_libraries_1): Ditto.
7826 * symfile.c (print_symbol_loading_off): New static global.
7827 (print_symbol_loading_brief): New static global.
7828 (print_symbol_loading_full): New static global.
7829 (print_symbol_loading_enums): New static global.
7830 (print_symbol_loading): New static global.
7831 (print_symbol_loading_p): New function.
7832 (symbol_file_add_with_addrs): Only print symbol loading messages
7834 (_initialize_symfile): Register "print symbol-loading" set/show
7836 * symfile.h (print_symbol_loading_p): Declare.
7838 2014-03-30 Doug Evans <xdje42@gmail.com>
7840 * infrun.c (set_last_target_status): New function.
7841 (handle_inferior_event): Call it.
7843 2014-03-30 Doug Evans <xdje42@gmail.com>
7845 * inferior.h (enum stop_kind): Improve comment.
7847 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7849 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7850 a reference, strip the reference layer before calling
7851 the lang_ops value_has_mutated callback.
7853 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7855 Remove some globals from our parser.
7856 * language.c (unk_lang_parser): Add "struct parser_state"
7858 * language.h (struct language_defn) <la_parser>: Likewise.
7859 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7860 (initialize_expout): Add "struct parser_state" argument.
7861 Rewrite function to use the parser state.
7862 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7863 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7864 write_exp_elt_longcst, write_exp_elt_dblcst,
7865 write_exp_elt_decfloatcst, write_exp_elt_type,
7866 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7867 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7868 write_dollar_variable): Likewise.
7869 (parse_exp_in_context_1): Use parser state.
7870 (insert_type_address_space): Add "struct parser_state" argument.
7872 (increase_expout_size): New function.
7873 * parser-defs.h: Forward declare "struct language_defn" and
7874 "struct parser_state".
7875 (expout, expout_size, expout_ptr): Remove extern declarations.
7876 (parse_gdbarch, parse_language): Rewrite macro declarations to
7877 accept the parser state.
7878 (struct parser_state): New struct.
7879 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7880 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7881 write_exp_elt_decfloatcst, write_exp_elt_type,
7882 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7883 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7884 write_exp_msymbol, write_dollar_variable,
7885 mark_struct_expression, insert_type_address_space): Add "struct
7886 parser_state" argument.
7887 (increase_expout_size): New function.
7888 * utils.c (do_clear_parser_state): New function.
7889 (make_cleanup_clear_parser_state): Likewise.
7890 * utils.h (make_cleanup_clear_parser_state): New function
7892 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7893 Update calls to write_exp* in order to pass the parser state.
7894 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7895 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7896 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7897 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7898 * stap-probe.c (stap_parse_register_operand): Likewise.
7899 (stap_parse_single_operand): Likewise.
7900 (stap_parse_argument_1): Likewise.
7901 (stap_parse_argument): Use parser state.
7902 * stap-probe.h: Include "parser-defs.h".
7903 (struct stap_parse_info) <pstate>: New field.
7904 * c-exp.y (parse_type): Rewrite to use parser state.
7905 (yyparse): Redefine to c_parse_internal.
7906 (pstate): New global variable.
7907 (parse_number): Add "struct parser_state" argument.
7908 (write_destructor_name): Likewise.
7909 (type_exp): Update calls to write_exp* and similars in order to
7911 (exp1, exp, variable, qualified_name, space_identifier,
7912 typename, typebase): Likewise.
7913 (write_destructor_name, parse_number, lex_one_token,
7914 classify_name, classify_inner_name, c_parse): Add "struct
7915 parser_state" argument. Update function to use parser state.
7916 * c-lang.h: Forward declare "struct parser_state".
7917 (c_parse): Add "struct parser_state" argument.
7918 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7919 (yyparse): Redefine macro to ada_parse_internal.
7920 (pstate): New variable.
7921 (write_int, write_object_renaming, write_var_or_type,
7922 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7923 type_int, type_long, type_long_long, type_float, type_double,
7924 type_long_double, type_char, type_boolean, type_system_address):
7925 Add "struct parser_state" argument.
7926 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7927 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7928 var_or_type, aggregate, aggregate_component_list,
7929 positional_list, others, component_group,
7930 component_associations): Update calls to write_exp* and similar
7931 functions in order to use parser state.
7932 (ada_parse, write_var_from_sym, write_int,
7933 write_exp_op_with_string, write_object_renaming,
7934 find_primitive_type, write_selectors, write_ambiguous_var,
7935 write_var_or_type, write_name_assoc, type_int, type_long,
7936 type_long_long, type_float, type_double, type_long_double,
7937 type_char, type_boolean, type_system_address): Add "struct
7938 parser_state" argument. Adjust function to use parser state.
7939 * ada-lang.c (parse): Likewise.
7940 * ada-lang.h: Forward declare "struct parser_state".
7941 (ada_parse): Add "struct parser_state" argument.
7942 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7943 calls to both functions.
7944 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7946 (yyparse): Redefine macro to f_parse_internal.
7947 (pstate): New variable.
7948 (parse_number): Add "struct parser_state" argument.
7949 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7950 and similars in order to use parser state.
7951 (parse_number): Adjust code to use parser state.
7953 (f_parse): New function.
7954 * f-lang.h: Forward declare "struct parser_state".
7955 (f_parse): Add "struct parser_state" argument.
7956 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7958 (yyparse): Redefine macro for java_parse_internal.
7959 (pstate): New variable.
7960 (push_expression_name, push_expression_name, insert_exp): Add
7961 "struct parser_state" argument.
7962 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7963 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7964 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7965 PostIncrementExpression, PostDecrementExpression,
7966 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7967 UnaryExpressionNotPlusMinus, CastExpression,
7968 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7969 RelationalExpression, EqualityExpression, AndExpression,
7970 ExclusiveOrExpression, InclusiveOrExpression,
7971 ConditionalAndExpression, ConditionalOrExpression,
7972 ConditionalExpression, Assignment, LeftHandSide): Update
7973 calls to write_exp* and similars in order to use parser state.
7974 (parse_number): Ajust code to use parser state.
7976 (java_parse): New function.
7977 (push_variable): Add "struct parser_state" argument. Adjust
7978 code to user parser state.
7979 (push_fieldnames, push_qualified_expression_name,
7980 push_expression_name, insert_exp): Likewise.
7981 * jv-lang.h: Forward declare "struct parser_state".
7982 (java_parse): Add "struct parser_state" argument.
7983 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7985 (yyparse): Redefine macro to m2_parse_internal.
7986 (pstate): New variable.
7987 (type_exp, exp, fblock, variable, type): Update calls to
7988 write_exp* and similars to use parser state.
7990 (m2_parse): New function.
7991 * m2-lang.h: Forward declare "struct parser_state".
7992 (m2_parse): Add "struct parser_state" argument.
7993 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7994 * objc-lang.h: Forward declare "struct parser_state".
7995 (end_msglist): Add "struct parser_state" argument.
7996 * p-exp.y (parse_type): Rewrite macro to use parser state.
7997 (yyparse): Redefine macro to pascal_parse_internal.
7998 (pstate): New variable.
7999 (parse_number): Add "struct parser_state" argument.
8000 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8001 write_exp* and similars in order to use parser state.
8002 (parse_number, yylex): Adjust code to use parser state.
8003 (pascal_parse): New function.
8004 * p-lang.h: Forward declare "struct parser_state".
8005 (pascal_parse): Add "struct parser_state" argument.
8006 * go-exp.y (parse_type): Rewrite macro to use parser state.
8007 (yyparse): Redefine macro to go_parse_internal.
8008 (pstate): New variable.
8009 (parse_number): Add "struct parser_state" argument.
8010 (type_exp, exp1, exp, variable, type): Update calls to
8011 write_exp* and similars in order to use parser state.
8012 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8013 to use parser state.
8014 (go_parse): Likewise.
8015 * go-lang.h: Forward declare "struct parser_state".
8016 (go_parse): Add "struct parser_state" argument.
8018 2014-03-27 Doug Evans <dje@google.com>
8020 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8022 2014-03-27 Doug Evans <dje@google.com>
8024 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8025 Remove argument abbrev_section. All callers updated.
8027 2014-03-27 Doug Evans <dje@google.com>
8029 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8030 addr_base, ranges_base.
8032 2014-03-26 Keith Seitz <keiths@redhat.com>
8034 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8035 types, not VAR_DOMAIN.
8037 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8039 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8041 * features/nios2-linux.c: Regenerated.
8042 * features/nios2.c: Regenerated.
8044 2014-03-25 Pedro Alves <palves@redhat.com>
8046 * cli/cli-script.c (script_from_file): Force the interpreter to
8049 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8051 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8052 small stack allocation.
8054 2014-03-24 Tristan Gingold <gingold@adacore.com>
8056 * darwin-nat.c (exc_server): Remove unused prototype.
8057 (darwin_dump_message): Correctly display data on x86_64.
8058 (darwin_encode_reply): Fix style.
8059 Add comments and fix indentation.
8061 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8063 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8065 2014-03-22 Doug Evans <xdje42@gmail.com>
8067 * infcmd.c: Whitespace fixes.
8068 (interrupt_command): Merge two function comments into one.
8070 2014-03-22 Doug Evans <xdje42@gmail.com>
8072 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8075 2014-03-22 Yao Qi <yao@codesourcery.com>
8077 * remote.c (target_read_live_memory): Remove.
8078 (memory_xfer_live_readonly_partial): Rename it to
8079 remote_xfer_live_readonly_partial. Remove argument 'object'.
8080 All callers updated. Call remote_read_bytes_1
8081 instead of target_read_live_memory.
8082 * tracepoint.c (set_traceframe_number): Remove.
8083 (make_cleanup_restore_traceframe_number): Likewise .
8084 * tracepoint.h (set_traceframe_number): Remove declaration.
8085 (make_cleanup_restore_traceframe_number): Likewise.
8087 2014-03-22 Yao Qi <yao@codesourcery.com>
8089 * remote.c (remote_read_bytes): Move code on reading from the
8091 (remote_read_bytes_1): ... here. New function.
8093 2014-03-22 Yao Qi <yao@codesourcery.com>
8095 * ctf.c (ctf_xfer_partial): Check the return value of
8096 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8097 return TARGET_XFER_UNAVAILABLE.
8098 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8099 * target.c (target_read_live_memory): Move it to remote.c.
8100 (memory_xfer_live_readonly_partial): Likewise.
8101 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8102 * remote.c (target_read_live_memory): Moved from target.c.
8103 (memory_xfer_live_readonly_partial): Likewise.
8104 (remote_read_bytes): Factored out from
8105 memory_xfer_partial_1.
8107 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8109 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8112 2014-03-21 Pedro Alves <palves@redhat.com>
8114 * infrun.c (normal_stop): Extend comment.
8116 2014-03-21 Hui Zhu <hui@codesourcery.com>
8117 Pedro Alves <palves@redhat.com>
8119 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8121 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8122 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8123 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8125 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8127 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8128 `z' formatted output modifier.
8130 2014-03-20 Tom Tromey <tromey@redhat.com>
8131 Sergio Durigan Junior <sergiodj@redhat.com>
8133 * probe.c (parse_probes): Turn assert into an ordinary error.
8134 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8135 exceptions when parsing probes. Rearrange the code for clarity.
8137 2014-03-20 Tom Tromey <tromey@redhat.com>
8140 * top.c (execute_command): Only dispatch events if the command
8143 2014-03-20 Tom Tromey <tromey@redhat.com>
8146 * infcall.c: Include event-top.h.
8147 (run_inferior_call): Call async_disable_stdin if needed.
8149 2014-03-20 Pedro Alves <palves@redhat.com>
8151 * infrun.c (prepare_to_proceed): Delete.
8152 (thread_still_needs_step_over): New function.
8153 (find_thread_needs_step_over): New function.
8154 (proceed): If the current thread needs a step-over, set its
8155 steping_over_breakpoint flag. Adjust to use
8156 find_thread_needs_step_over instead of prepare_to_proceed.
8157 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8158 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8160 (switch_back_to_stepped_thread): Step over breakpoints of all
8161 threads not the stepping thread, before switching back to the
8164 2014-03-20 Pedro Alves <palves@redhat.com>
8166 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8168 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8169 * infrun.c (saved_singlestep_ptid)
8170 (stepping_past_singlestep_breakpoint): Delete.
8171 (resume): Remove stepping_past_singlestep_breakpoint handling.
8172 (proceed): Store the prev_pc of the stepping thread too.
8173 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8175 (enum infwait_states): Delete infwait_thread_hop_state.
8176 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8178 (handle_inferior_event): Adjust.
8179 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8180 handling and the thread-hop code. Before removing single-step
8181 breakpoints, check whether the thread hit a single-step breakpoint
8182 of another thread. If it did, the trap is not a random signal.
8183 (switch_back_to_stepped_thread): If the event thread hit a
8184 single-step breakpoint, unblock it before switching to the
8185 stepping thread. Handle the case of the stepped thread having
8187 (keep_going): Handle the case of the current thread moving past a
8188 single-step breakpoint.
8190 2014-03-20 Pedro Alves <palves@redhat.com>
8193 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8194 are being stepped over.
8195 (breakpoint_address_match): Make extern.
8196 * breakpoint.h (breakpoint_address_match): New declaration.
8197 * inferior.h (stepping_past_instruction_at): New declaration.
8198 * infrun.c (struct step_over_info): New type.
8199 (step_over_info): New global.
8200 (set_step_over_info, clear_step_over_info)
8201 (stepping_past_instruction_at): New functions.
8202 (handle_inferior_event): Clear the step-over info when
8203 trap_expected is cleared.
8204 (resume): Remove now stale comment.
8205 (clear_proceed_status): Clear step-over info.
8206 (proceed): Adjust step-over handling to set or clear the step-over
8207 info instead of removing all breakpoints.
8208 (handle_signal_stop): When setting up a thread-hop, don't remove
8210 (stop_stepping): Clear step-over info.
8211 (keep_going): Adjust step-over handling to set or clear step-over
8212 info and then always inserting breakpoints, instead of removing
8213 all breakpoints when stepping over one.
8215 2014-03-20 Pedro Alves <palves@redhat.com>
8217 * infrun.c (previous_inferior_ptid): Adjust comment.
8218 (deferred_step_ptid): Delete.
8219 (infrun_thread_ptid_changed, prepare_to_proceed)
8220 (init_wait_for_inferior): Adjust.
8221 (handle_signal_stop): Delete deferred_step_ptid handling.
8223 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8226 * defs.h (sync_quit_force_run): New declaration.
8227 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8228 * event-top.c (async_sigterm_handler): New declaration.
8229 (async_sigterm_token): New variable.
8230 (async_init_signals): Create also async_sigterm_token.
8231 (async_sigterm_handler): New function.
8232 (sync_quit_force_run): New variable.
8233 (handle_sigterm): Replace quit_force call by other calls.
8234 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8236 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8238 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8239 offset into SPE pseudo registers.
8241 2014-03-18 Pedro Alves <palves@redhat.com>
8244 * inferior.h (print_stop_event): Declare.
8245 * infrun.c (print_stop_event): New, factored out from ...
8246 (normal_stop): ... this.
8247 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8248 of bpstat_print/print_stack_frame.
8250 2014-03-17 Tom Tromey <tromey@redhat.com>
8252 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8254 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8256 * ada-lang.c (decode_constrained_packed_array): Perform a
8257 minimal coercion for reference with coerce_ref instead of
8260 2014-03-17 Tristan Gingold <gingold@adacore.com>
8262 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8263 (darwin_solib_create_inferior_hook): Emit a warning if version
8266 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8268 * python/py-value.c (get_field_flag): Cast flag_name argument to
8269 PyObject_GetAttrString to support Python 2.4.
8271 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8273 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8274 (Global Maintainers): Remove Jan Kratochvil.
8276 2014-03-14 Pedro Alves <palves@redhat.com>
8278 * inferior.h (terminal_ours_for_output): Rename to ...
8279 (child_terminal_ours_for_output): ... this.
8280 (terminal_save_ours): Rename to ...
8281 (child_terminal_save_ours): ... this.
8282 (terminal_ours): Rename to ...
8283 (child_terminal_ours): ... this.
8284 (terminal_inferior): Rename to ...
8285 (child_terminal_inferior): ... this.
8286 (terminal_init_inferior): Rename to ...
8287 (child_terminal_init_inferior): ... this.
8288 (terminal_init_inferior_with_pgrp): Rename to ...
8289 (child_terminal_init_inferior_with_pgrp): ... this.
8290 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8291 (child_terminal_init_with_pgrp): ... this.
8292 (terminal_save_ours): Rename to ...
8293 (child_terminal_save_ours): ... this.
8294 (terminal_init_inferior): Rename to ...
8295 (child_terminal_init): ... this. Adjust.
8296 (terminal_inferior): Rename to ...
8297 (child_terminal_inferior): ... this.
8298 (terminal_ours_for_output): Rename to ...
8299 (child_terminal_ours_for_output): ... this. Adjust.
8300 (terminal_ours): Rename to ...
8301 (child_terminal_ours): ... this.
8302 (terminal_ours_1): Rename to ...
8303 (child_terminal_ours_1): ... this. Adjust.
8304 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8305 * windows-nat.c (do_initial_windows_stuff): Adjust.
8306 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8307 (gnu_terminal_init): ... this. Adjust.
8308 (gnu_target): Adjust.
8309 * inf-child.c (inf_child_target): Adjust.
8311 2014-03-13 Doug Evans <xdje42@gmail.com>
8314 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8317 2014-03-13 Doug Evans <xdje42@gmail.com>
8319 * value.c (record_latest_value): Call release_value_or_incref
8320 instead of release_value.
8322 2014-03-13 Pedro Alves <palves@redhat.com>
8324 * procfs.c (procfs_target): Don't override to_shortname,
8325 to_longname or to_doc.
8327 2014-03-13 Pedro Alves <palves@redhat.com>
8329 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8330 Unix in user visible strings.
8332 2014-03-12 Stan Shebs <stan@codesourcery.com>
8334 * gdbtypes.h: Annotate comments for Doxygen, add a page
8335 block comment with some general info.
8337 2014-03-12 Pedro Alves <palves@redhat.com>
8339 * infcmd.c (prepare_execution_command): New function, factored out
8340 from several execution commands.
8341 (run_command_1, continue_command, step_1, jump_command)
8342 (signal_command, until_command, advance_command, finish_command)
8343 (attach_command): Use prepare_execution_command.
8345 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8347 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8350 (struct arm_linux_thread_points): Removed.
8351 (struct arm_linux_process_info): New.
8352 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8353 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8354 (arm_linux_find_breakpoints_by_tid): Removed.
8355 (struct arch_lwp_info): New.
8356 (arm_linux_find_process_pid): New functions.
8357 (arm_linux_add_process): New functions.
8358 (arm_linux_process_info_get): New functions.
8359 (arm_linux_forget_process): New function.
8360 (arm_linux_get_debug_reg_state): New function.
8361 (struct update_registers_data): New.
8362 (update_registers_callback): New function.
8363 (arm_linux_insert_hw_breakpoint1): Updated.
8364 (arm_linux_remove_hw_breakpoint1): Updated.
8365 (arm_linux_insert_hw_breakpoint): Updated.
8366 (arm_linux_remove_hw_breakpoint): Updated.
8367 (arm_linux_insert_watchpoint): Updated.
8368 (arm_linux_remove_watchpoint): Updated.
8369 (arm_linux_new_thread): Updated.
8370 (arm_linux_prepare_to_resume): New function.
8371 (arm_linux_new_fork): New function.
8372 (_initialize_arm_linux_nat): Updated.
8374 2014-03-12 Pedro Alves <palves@redhat.com>
8376 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8378 2014-03-12 Tom Tromey <tromey@redhat.com>
8380 * inf-child.c (return_zero): New function.
8381 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8382 * aix-thread.c (aix_thread_inferior_created): New function.
8383 (aix_thread_attach): Remove.
8384 (init_aix_thread_ops): Don't set to_attach.
8385 (_initialize_aix_thread): Register inferior_created observer.
8386 * corelow.c (init_core_ops): Don't set to_attach or
8388 * exec.c (init_exec_ops): Don't set to_attach or
8390 * infcmd.c (run_command_1): Use find_run_target. Make direct
8392 (attach_command): Use find_attach_target. Make direct target
8394 * record-btrace.c (init_record_btrace_ops): Don't set
8396 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8398 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8399 set to_create_inferior.
8400 * target.c (complete_target_initialization): Add assertion.
8401 (target_create_inferior): Remove.
8402 (find_default_attach, find_default_create_inferior): Remove.
8403 (find_attach_target, find_run_target): New functions.
8404 (find_default_is_async_p, find_default_can_async_p)
8405 (target_supports_non_stop, target_attach): Remove.
8406 (init_dummy_target): Don't set to_create_inferior or
8407 to_supports_non_stop.
8408 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8409 TARGET_DEFAULT_FUNC.
8410 <to_create_inferior>: Add comment.
8411 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8412 TARGET_DEFAULT_RETURN.
8413 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8414 (find_attach_target, find_run_target): Declare.
8415 (target_create_inferior): Remove.
8416 (target_has_execution_1): Update comment.
8417 (target_supports_non_stop): Remove.
8418 * target-delegates.c: Rebuild.
8420 2014-03-12 Pedro Alves <palves@redhat.com>
8422 * inf-child.h: Update comment to not mention Unix.
8424 2014-03-12 Pedro Alves <palves@redhat.com>
8426 * inf-child.c: Update top comment to not mention Unix. Add
8427 generic comment describing how this target is meant to be used.
8428 (inf_child_post_attach, inf_child_post_startup_inferior)
8429 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8432 2014-03-12 Pedro Alves <palves@redhat.com>
8434 * nto-procfs.c: Include inf-child.h.
8435 (procfs_ops): Delete global.
8436 (procfs_can_run): Delete method.
8437 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8438 target pointer instead of referencing procfs_ops.
8439 (procfs_prepare_to_store): Delete.
8440 (init_procfs_ops): Delete function.
8441 (procfs_target): New function, based on init_procfs_ops, but
8442 inherit inf_child_target.
8443 (_initialize_procfs): Use procfs_target.
8445 2014-03-12 Pedro Alves <palves@redhat.com>
8447 * windows-nat.c: Include inf-child.h.
8448 (windows_ops): Delete global.
8449 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8451 (init_windows_ops): Delete function.
8452 (windows_target): New function, based on init_windows_ops, but
8453 inherit inf_child_target.
8454 (_initialize_windows_nat): Use windows_target. Install x86
8455 specific target methods here.
8457 2014-03-10 Doug Evans <xdje42@gmail.com>
8459 * guile/guile.c (call_initialize_gdb_module): New function.
8460 (initialize_guile): Replace call to scm_init_guile with call to
8463 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8465 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8466 in call to TYPE_CODE macro.
8468 2014-03-10 Jerome Guitton <guitton@adacore.com>
8470 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8471 Resolve tagged types to full view.
8473 2014-03-10 Hui Zhu <hui@codesourcery.com>
8475 * target.h (target_insert_breakpoint): Remove "hardware" from its
8478 2014-03-07 Doug Evans <dje@google.com>
8480 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8482 2014-03-07 Doug Evans <dje@google.com>
8484 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8485 Remove unused local comp_dir_attr. Assert exactly one of
8486 stub_comp_unit_die, stub_comp_dir is non-NULL.
8488 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8490 * target.h (complete_target_initialization, add_target):
8493 2014-03-07 Pedro Alves <palves@redhat.com>
8495 * go32-nat.c: Include inf-child.h.
8496 (go32_ops): Delete global.
8497 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8499 (go32_create_inferior): Push the passed in target pointer instead
8500 of referencing go32_ops.
8501 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8502 (go32_target): New function, based on init_go32_ops, but inherit
8504 (_initialize_go32_nat): Use go32_target. Move parts of
8507 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8509 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8510 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8511 SYMBOL_VALUE_ADDRESS.
8512 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8514 2014-03-06 Yao Qi <yao@codesourcery.com>
8516 * breakpoint.c (get_tracepoint_by_number): Remove argument
8517 optional_p. All callers updated. Adjust comments. Update
8519 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8521 2014-03-06 Yao Qi <yao@codesourcery.com>
8523 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8524 early if get_number returns zero. Use 'p' instead of 'args'.
8526 2014-03-06 Yao Qi <yao@codesourcery.com>
8528 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8531 2014-03-06 Yao Qi <yao@codesourcery.com>
8533 PR breakpoints/16508
8534 * tracepoint.c (check_trace_running): New function.
8535 (trace_find_command): Move code to check_trace_running and
8536 call check_trace_running.
8537 (trace_find_pc_command): Likewise.
8538 (trace_find_tracepoint_command): Likewise.
8539 (trace_find_line_command): Likewise.
8540 (trace_find_range_command): Likewise.
8541 * tracepoint.h (check_trace_running): Likewise.
8542 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8544 2014-03-06 Yao Qi <yao@codesourcery.com>
8546 * target.h (struct target_ops) <to_traceframe_info>: Use
8547 TARGET_DEFAULT_NORETURN (tcomplain ()).
8548 * target-delegates.c: Regenerated.
8550 2014-03-05 Pedro Alves <palves@redhat.com>
8553 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8554 void. Update comment.
8555 (dcache_xfer_memory): Delete.
8556 (dcache_read_memory_partial): New, based on the read bits of
8558 (dcache_update): Add status parameter. Use ULONGEST for len, and
8559 adjust. Discard cache lines if the reason for the update was
8561 * dcache.h (dcache_xfer_memory): Delete declaration.
8562 (dcache_read_memory_partial): New declaration.
8563 (dcache_update): Update prototype.
8564 * target.c (raw_memory_xfer_partial): Update the dcache here.
8565 (memory_xfer_partial_1): Don't handle dcache writes here.
8567 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8569 * remote-sim.c (gdbsim_load): Add const to prog.
8571 2014-03-03 Tom Tromey <tromey@redhat.com>
8573 * elfread.c (probe_key): Change to bfd_data.
8574 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8575 now per-BFD, not per-objfile.
8576 * stap-probe.c (stap_probe_destroy): Update comment.
8577 (handle_stap_probe): Allocate on the per-BFD obstack.
8579 2014-03-03 Tom Tromey <tromey@redhat.com>
8581 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8582 * breakpoint.c (create_longjmp_master_breakpoint): Use
8584 (add_location_to_breakpoint, bkpt_probe_insert_location)
8585 (bkpt_probe_remove_location): Update.
8586 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8587 * elfread.c (elf_symfile_relocate_probe): Remove.
8588 (elf_probe_fns): Update.
8589 (insert_exception_resume_breakpoint): Change type of "probe"
8590 parameter to bound_probe.
8591 (check_exception_resume): Update.
8592 * objfiles.c (objfile_relocate1): Don't relocate probes.
8593 * probe.c (bound_probe_s): New typedef.
8594 (parse_probes): Use get_probe_address. Set sal's objfile.
8595 (find_probe_by_pc): Return a bound_probe.
8596 (collect_probes): Return a VEC(bound_probe_s).
8597 (compare_probes): Update.
8598 (gen_ui_out_table_header_info): Change type of "probes"
8600 (info_probes_for_ops): Update.
8601 (get_probe_address): New function.
8602 (probe_safe_evaluate_at_pc): Update.
8603 * probe.h (struct probe_ops) <get_probe_address>: New field.
8604 <set_semaphore, clear_semaphore>: Add objfile parameter.
8605 (struct probe) <objfile>: Remove field.
8607 <address>: Update comment.
8608 (struct bound_probe): New.
8609 (find_probe_by_pc): Return a bound_probe.
8610 (get_probe_address): Declare.
8611 * solib-svr4.c (struct probe_and_action) <address>: New field.
8612 (hash_probe_and_action, equal_probe_and_action): Update.
8613 (register_solib_event_probe): Add address parameter.
8614 (solib_event_probe_at): Update.
8615 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8617 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8618 (stap_get_probe_address): New function.
8619 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8620 (compile_probe_arg): Update.
8621 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8623 (handle_stap_probe): Don't relocate the probe.
8624 (stap_relocate): Remove.
8625 (stap_gen_info_probes_table_values): Update.
8626 (stap_probe_ops): Remove stap_relocate.
8627 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8628 (debug_sym_probe_fns): Update.
8629 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8630 * symtab.c (init_sal): Use memset.
8631 * symtab.h (struct symtab_and_line) <objfile>: New field.
8632 * tracepoint.c (start_tracing, stop_tracing): Update.
8634 2014-03-03 Tom Tromey <tromey@redhat.com>
8636 * probe.h (parse_probes, find_probe_by_pc)
8637 (find_probes_in_objfile): Fix comments.
8639 2014-03-02 Doug Evans <xdje42@gmail.com>
8641 * infrun.c (handle_signal_stop): Replace test for
8642 TARGET_WAITKIND_STOPPED with an assert.
8644 2014-03-02 Doug Evans <xdje42@gmail.com>
8646 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8648 2014-03-02 Doug Evans <xdje42@gmail.com>
8650 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8652 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8654 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8656 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8658 * i386obsd-nat.c: Include "obsd-nat.h".
8659 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8661 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8663 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8665 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8667 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8669 * mips64obsd-nat.c: Include "obsd-nath".
8670 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8672 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8674 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8676 * amd64obsd-nat.c: Include "obsd-nat,h.
8677 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8679 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8681 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8683 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8684 (find_overload_match): Update call to find_oload_champ.
8685 (find_oload_champ_namespace_loop): Likewise
8687 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8689 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8691 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8692 * config/sparc/obsd64.mh: New file.
8693 * sparc64obsd-nat.c: New file.
8695 * obsd-nat.h: New file.
8696 * obsd-nat.c: New file.
8697 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8698 (ALLDEPFILES): Add obsd-nat.c.
8700 2014-02-28 Tom Tromey <tromey@redhat.com>
8702 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8703 * cli-out.h (cli_ui_out_impl): Now const.
8704 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8705 * ui-out.c (struct ui_out) <impl>: Now const.
8706 (default_ui_out_impl): Now const.
8707 (ui_out_new): Make 'impl' parameter const.
8708 * ui-out.h (ui_out_new): Update.
8710 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8712 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8714 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8716 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8718 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8720 Additional PR 8882 fix.
8721 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8723 2014-02-27 Pedro Alves <palves@redhat.com>
8725 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8728 2014-02-27 Pedro Alves <palves@redhat.com>
8731 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8732 * nat/linux-waitpid.c: Include string.h.
8733 (status_to_str): Moved here and made extern.
8734 * nat/linux-waitpid.h (status_to_str): New declaration.
8736 2014-02-27 Hui Zhu <hui@codesourcery.com>
8739 * infrun.c (ptid_match): Move ...
8740 * common/ptid.c (ptid_match): ... here.
8741 * inferior.h (ptid_match): Move ...
8742 * common/ptid.h (ptid_match): ... here.
8744 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8746 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8747 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8750 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8752 * obsd-tdep.c (obsd_auxv_parse): New function.
8753 (obsd_init_abi): Set auxv_parse.
8755 * gdbarch.sh (auxv_parse): New.
8756 * gdbarch.h: Regenerated.
8757 * gdbarch.c: Regenerated.
8758 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8760 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8762 * guile/scm-value.c (gdbscm_history_append_x): New function.
8763 (value_functions): Add it.
8765 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8767 * dwarf2read.c (attr_value_as_address): New function.
8768 (dwarf2_find_base_address, read_call_site_scope): Use
8769 attr_value_as_address in place of DW_ADDR.
8770 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8771 the low and high addresses. Slight rework of the handling
8772 of the high pc being a constant form, and limit it to
8773 DWARF verson 4 or higher.
8774 (dwarf2_record_block_ranges): Likewise.
8775 (read_partial_die): Likewise.
8776 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8778 2014-02-26 Tom Tromey <tromey@redhat.com>
8780 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8782 2014-02-26 Tom Tromey <tromey@redhat.com>
8784 * elfread.c (elf_read_minimal_symbols): Return early if
8785 minimal symbols have already been read. Add "ei" parameter.
8786 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8787 * minsyms.c (prim_record_minimal_symbol_full): Update.
8788 * objfiles.h (struct objstats) <n_minsyms>: Move...
8789 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8790 * symmisc.c (print_objfile_statistics): Update.
8792 2014-02-26 Tom Tromey <tromey@redhat.com>
8794 * elfread.c (elf_read_minimal_symbols): New function, from
8796 (elf_symfile_read): Call it.
8798 2014-02-26 Tom Tromey <tromey@redhat.com>
8800 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8801 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8802 (lookup_minimal_symbol_solib_trampoline)
8803 (lookup_minimal_symbol_by_pc_section_1)
8804 (lookup_minimal_symbol_and_objfile): Update.
8805 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8806 Don't allocate a minimal symbol if minsyms have already been read.
8807 (build_minimal_symbol_hash_tables): Update.
8808 (install_minimal_symbols): Do nothing if minsyms already read.
8809 Use the per-BFD obstack.
8810 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8811 * objfiles.c (allocate_objfile): Call
8812 terminate_minimal_symbol_table later.
8813 (have_minimal_symbols): Update.
8814 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8815 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8816 Move from struct objfile.
8817 <minsyms_read>: New field.
8818 (struct objfile) <msymbols, minimal_symbol_count,
8819 msymbol_hash, msymbol_demangled_hash>: Move.
8820 (ALL_OBJFILE_MSYMBOLS): Update.
8821 * symfile.c (read_symbols): Set minsyms_read.
8822 (reread_symbols): Update.
8823 * symmisc.c (dump_objfile, dump_msymbols): Update.
8825 2014-02-26 Tom Tromey <tromey@redhat.com>
8827 * minsyms.c (msymbols_sort): Remove.
8828 * minsyms.h (msymbols_sort): Remove.
8829 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8830 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8831 * elfread.c (elf_symtab_read): Don't add section offsets.
8832 * xcoffread.c (record_minimal_symbol): Don't add section offset
8833 to minimal symbol address.
8834 * somread.c (text_offset, data_offset): Remove.
8835 (som_symtab_read): Don't add section offsets to minimal symbol
8837 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8838 Don't add section offsets to minimal symbols.
8839 * coffread.c (coff_symtab_read): Don't add section offsets
8840 to minimal symbol addresses.
8841 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8842 to minimal symbol addresses.
8843 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8844 section offset to minimal symbol addresses.
8845 * mdebugread.c (parse_partial_symbols): Don't add section
8846 offset to minimal symbol addresses.
8847 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8848 offset to minimal symbol addresses.
8850 2014-02-26 Tom Tromey <tromey@redhat.com>
8852 * ada-lang.c (ada_main_name): Update.
8853 (ada_add_standard_exceptions): Update.
8854 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8855 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8856 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8857 * auxv.c (ld_so_xfer_auxv): Update.
8858 * avr-tdep.c (avr_scan_prologue): Update.
8859 * ax-gdb.c (gen_var_ref): Update.
8860 * blockframe.c (get_pc_function_start)
8861 (find_pc_partial_function_gnu_ifunc): Update.
8862 * breakpoint.c (create_overlay_event_breakpoint)
8863 (create_longjmp_master_breakpoint)
8864 (create_std_terminate_master_breakpoint)
8865 (create_exception_master_breakpoint): Update.
8866 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8867 * c-valprint.c (c_val_print): Update.
8868 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8869 * common/agent.c (agent_look_up_symbols): Update.
8870 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8871 * dwarf2loc.c (call_site_to_target_addr): Update.
8872 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8873 * elfread.c (elf_gnu_ifunc_record_cache)
8874 (elf_gnu_ifunc_resolve_by_got): Update.
8875 * findvar.c (default_read_var_value): Update.
8876 * frame.c (inside_main_func): Update.
8877 * frv-tdep.c (frv_frame_this_id): Update.
8878 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8879 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8881 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8882 (hppa_hpux_find_dummy_bpaddr): Update.
8883 * hppa-tdep.c (hppa_symbol_address): Update.
8884 * infcmd.c (until_next_command): Update.
8885 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8887 * linespec.c (minsym_found, add_minsym): Update.
8888 * linux-nat.c (get_signo): Update.
8889 * linux-thread-db.c (inferior_has_bug): Update.
8890 * m32c-tdep.c (m32c_return_value)
8891 (m32c_m16c_address_to_pointer): Update.
8892 * m32r-tdep.c (m32r_frame_this_id): Update.
8893 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8894 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8895 * maint.c (maintenance_translate_address): Update.
8896 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8897 (frob_address): New function.
8898 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8899 frob_address. Rename parameter to "pc_in".
8900 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8902 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8904 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8905 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8906 * objc-lang.c (find_objc_msgsend): Update.
8907 * objfiles.c (objfile_relocate1): Update.
8908 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8909 * p-valprint.c (pascal_val_print): Update.
8910 * parse.c (write_exp_msymbol): Update.
8911 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8912 (ppc_elfv2_skip_entrypoint): Update.
8913 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8914 * printcmd.c (build_address_symbolic, msym_info)
8915 (address_info): Update.
8916 * proc-service.c (ps_pglobal_lookup): Update.
8917 * psymtab.c (find_pc_sect_psymtab_closer)
8918 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8919 Change msymbol parameter to bound_minimal_symbol.
8920 * ravenscar-thread.c (get_running_thread_id): Update.
8921 * remote.c (remote_check_symbols): Update.
8922 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8924 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8925 * solib-dsbt.c (lm_base): Update.
8926 * solib-frv.c (lm_base, main_got): Update.
8927 * solib-irix.c (locate_base): Update.
8928 * solib-som.c (som_solib_create_inferior_hook)
8929 (link_map_start): Update.
8930 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8931 * solib-svr4.c (elf_locate_base, enable_break): Update.
8932 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8933 (flush_ea_cache): Update.
8934 * stabsread.c (define_symbol, scan_file_globals): Update.
8935 * stack.c (find_frame_funname): Update.
8936 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8937 (debug_qf_find_pc_sect_symtab): Update.
8938 * symfile.c (simple_read_overlay_table)
8939 (simple_overlay_update): Update.
8940 * symfile.h (struct quick_symbol_functions)
8941 <find_pc_sect_symtab>: Change type of msymbol to
8942 bound_minimal_symbol.
8943 * symmisc.c (dump_msymbols): Update.
8944 * symtab.c (find_pc_sect_symtab_via_partial)
8945 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8946 (search_symbols, print_msymbol_info): Update.
8947 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8948 (MSYMBOL_VALUE_ADDRESS): Redefine.
8949 (BMSYMBOL_VALUE_ADDRESS): New macro.
8950 * tracepoint.c (scope_info): Update.
8951 * tui/tui-disasm.c (tui_find_disassembly_address)
8952 (tui_get_begin_asm_address): Update.
8953 * valops.c (find_function_in_inferior): Update.
8954 * value.c (value_static_field, value_fn_field): Update.
8956 2014-02-26 Tom Tromey <tromey@redhat.com>
8958 * ada-lang.c (ada_update_initial_language): Update.
8959 (ada_main_name, ada_has_this_exception_support): Update.
8960 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8961 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8962 * arm-tdep.c (arm_skip_stub): Update.
8963 * auxv.c (ld_so_xfer_auxv): Update.
8964 * avr-tdep.c (avr_scan_prologue): Update.
8965 * ax-gdb.c (gen_var_ref): Update.
8966 * breakpoint.c (struct breakpoint_objfile_data)
8967 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8968 type to bound_minimal_symbol.
8969 (create_overlay_event_breakpoint)
8970 (create_longjmp_master_breakpoint)
8971 (create_std_terminate_master_breakpoint)
8972 (create_exception_master_breakpoint): Update.
8973 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8974 * c-exp.y (classify_name): Update.
8975 * coffread.c (coff_symfile_read): Update.
8976 * common/agent.c (agent_look_up_symbols): Update.
8977 * d-lang.c (d_main_name): Update.
8978 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8979 * dec-thread.c (enable_dec_thread): Update.
8980 * dwarf2loc.c (call_site_to_target_addr): Update.
8981 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8982 * eval.c (evaluate_subexp_standard): Update.
8983 * findvar.c (struct minsym_lookup_data) <result>: Change type
8984 to bound_minimal_symbol.
8986 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8987 * frame.c (inside_main_func): Update.
8988 * frv-tdep.c (frv_frame_this_id): Update.
8989 * gcore.c (call_target_sbrk): Update.
8990 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8991 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8993 * go-lang.c (go_main_name): Update.
8994 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8995 (hppa_hpux_find_import_stub_for_addr): Update.
8996 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8997 Update. Change return type.
8998 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9000 * jit.c (jit_breakpoint_re_set_internal): Update.
9001 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9003 * linux-nat.c (get_signo): Update.
9004 * linux-thread-db.c (inferior_has_bug): Update
9005 * m32c-tdep.c (m32c_return_value)
9006 (m32c_m16c_address_to_pointer): Update.
9007 * m32r-tdep.c (m32r_frame_this_id): Update.
9008 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9009 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9010 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9011 lookup_minimal_symbol. Change return type.
9012 (lookup_minimal_symbol): Remove.
9013 (lookup_bound_minimal_symbol): Update.
9014 (lookup_minimal_symbol_text): Change return type.
9015 (lookup_minimal_symbol_solib_trampoline): Change return type.
9016 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9017 (lookup_minimal_symbol_solib_trampoline): Change return type.
9018 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9019 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9020 (value_nsstring, find_imps): Update.
9021 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9022 * p-lang.c (pascal_main_name): Update.
9023 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9024 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9025 * proc-service.c (ps_pglobal_lookup): Update.
9026 * ravenscar-thread.c (get_running_thread_msymbol): Change
9028 (has_ravenscar_runtime, get_running_thread_id): Update.
9029 * remote.c (remote_check_symbols): Update.
9030 * sol-thread.c (ps_pglobal_lookup): Update.
9031 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9032 * solib-dsbt.c (lm_base): Update.
9033 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9035 * solib-irix.c (locate_base): Update.
9036 * solib-som.c (som_solib_create_inferior_hook)
9037 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9039 * solib-spu.c (spu_enable_break): Update.
9040 * solib-svr4.c (elf_locate_base, enable_break): Update.
9041 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9042 (flush_ea_cache): Update.
9043 * stabsread.c (define_symbol): Update.
9044 * symfile.c (simple_read_overlay_table): Update.
9045 * symtab.c (find_pc_sect_line): Update.
9046 * tracepoint.c (scope_info): Update.
9047 * tui-disasm.c (tui_get_begin_asm_address): Update.
9048 * value.c (value_static_field): Update.
9050 2014-02-26 Tom Tromey <tromey@redhat.com>
9052 * minsyms.c (prim_record_minimal_symbol_full): Use
9053 SET_MSYMBOL_VALUE_ADDRESS.
9054 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9055 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9056 SET_MSYMBOL_VALUE_ADDRESS.
9057 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9058 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9060 2014-02-26 Tom Tromey <tromey@redhat.com>
9062 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9063 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9064 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9065 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9066 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9067 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9068 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9069 * ada-lang.c (ada_main_name): Update.
9070 (ada_lookup_simple_minsym): Update.
9071 (ada_make_symbol_completion_list): Update.
9072 (ada_add_standard_exceptions): Update.
9073 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9074 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9075 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9076 * arm-tdep.c (skip_prologue_function): Update.
9077 (arm_skip_stack_protector, arm_skip_stub): Update.
9078 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9079 (arm_wince_skip_main_prologue): Update.
9080 * auxv.c (ld_so_xfer_auxv): Update.
9081 * avr-tdep.c (avr_scan_prologue): Update.
9082 * ax-gdb.c (gen_var_ref): Update.
9083 * block.c (call_site_for_pc): Update.
9084 * blockframe.c (get_pc_function_start): Update.
9085 (find_pc_partial_function_gnu_ifunc): Update.
9086 * breakpoint.c (create_overlay_event_breakpoint): Update.
9087 (create_longjmp_master_breakpoint): Update.
9088 (create_std_terminate_master_breakpoint): Update.
9089 (create_exception_master_breakpoint): Update.
9090 (resolve_sal_pc): Update.
9091 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9092 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9094 * c-valprint.c (c_val_print): Update.
9095 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9096 * coffread.c (coff_symfile_read): Update.
9097 * common/agent.c (agent_look_up_symbols): Update.
9098 * dbxread.c (find_stab_function_addr): Update.
9099 (end_psymtab): Update.
9100 * dwarf2loc.c (call_site_to_target_addr): Update.
9101 (func_verify_no_selftailcall): Update.
9102 (tailcall_dump): Update.
9103 (call_site_find_chain_1): Update.
9104 (dwarf_expr_reg_to_entry_parameter): Update.
9105 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9106 (elf_gnu_ifunc_resolve_by_got): Update.
9107 * f-valprint.c (info_common_command): Update.
9108 * findvar.c (read_var_value): Update.
9109 * frame.c (get_prev_frame_1): Update.
9110 (inside_main_func): Update.
9111 * frv-tdep.c (frv_skip_main_prologue): Update.
9112 (frv_frame_this_id): Update.
9113 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9114 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9115 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9116 (gnuv3_skip_trampoline): Update.
9117 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9118 (hppa64_hpux_in_solib_call_trampoline): Update.
9119 (hppa_hpux_skip_trampoline_code): Update.
9120 (hppa64_hpux_search_dummy_call_sequence): Update.
9121 (hppa_hpux_find_import_stub_for_addr): Update.
9122 (hppa_hpux_find_dummy_bpaddr): Update.
9123 * hppa-tdep.c (hppa_symbol_address)
9124 (hppa_lookup_stub_minimal_symbol): Update.
9125 * i386-tdep.c (i386_skip_main_prologue): Update.
9126 (i386_pe_skip_trampoline_code): Update.
9127 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9128 * infcall.c (get_function_name): Update.
9129 * infcmd.c (until_next_command): Update.
9130 * jit.c (jit_breakpoint_re_set_internal): Update.
9131 (jit_inferior_init): Update.
9132 * linespec.c (minsym_found): Update.
9133 (add_minsym): Update.
9134 * linux-fork.c (info_checkpoints_command): Update.
9135 * linux-nat.c (get_signo): Update.
9136 * linux-thread-db.c (inferior_has_bug): Update.
9137 * m32c-tdep.c (m32c_return_value): Update.
9138 (m32c_m16c_address_to_pointer): Update.
9139 (m32c_m16c_pointer_to_address): Update.
9140 * m32r-tdep.c (m32r_frame_this_id): Update.
9141 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9142 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9143 * maint.c (maintenance_translate_address): Update.
9144 * minsyms.c (add_minsym_to_hash_table): Update.
9145 (add_minsym_to_demangled_hash_table): Update.
9146 (msymbol_objfile): Update.
9147 (lookup_minimal_symbol): Update.
9148 (iterate_over_minimal_symbols): Update.
9149 (lookup_minimal_symbol_text): Update.
9150 (lookup_minimal_symbol_by_pc_name): Update.
9151 (lookup_minimal_symbol_solib_trampoline): Update.
9152 (lookup_minimal_symbol_by_pc_section_1): Update.
9153 (lookup_minimal_symbol_and_objfile): Update.
9154 (prim_record_minimal_symbol_full): Update.
9155 (compare_minimal_symbols): Update.
9156 (compact_minimal_symbols): Update.
9157 (build_minimal_symbol_hash_tables): Update.
9158 (install_minimal_symbols): Update.
9159 (terminate_minimal_symbol_table): Update.
9160 (find_solib_trampoline_target): Update.
9161 (minimal_symbol_upper_bound): Update.
9162 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9163 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9164 (mips_skip_pic_trampoline_code): Update.
9165 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9166 * objc-lang.c (selectors_info): Update.
9167 (classes_info): Update.
9168 (find_methods): Update.
9169 (find_imps): Update.
9170 (find_objc_msgsend): Update.
9171 * objfiles.c (objfile_relocate1): Update.
9172 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9173 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9174 * p-valprint.c (pascal_val_print): Update.
9175 * parse.c (write_exp_msymbol): Update.
9176 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9177 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9178 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9179 * printcmd.c (build_address_symbolic): Update.
9181 (address_info): Update.
9182 * proc-service.c (ps_pglobal_lookup): Update.
9183 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9184 (find_pc_sect_psymtab): Update.
9185 * python/py-framefilter.c (py_print_frame): Update.
9186 * ravenscar-thread.c (get_running_thread_id): Update.
9187 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9189 * remote.c (remote_check_symbols): Update.
9190 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9191 (rs6000_skip_trampoline_code): Update.
9192 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9193 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9194 * solib-dsbt.c (lm_base): Update.
9195 * solib-frv.c (lm_base): Update.
9197 * solib-irix.c (locate_base): Update.
9198 * solib-som.c (som_solib_create_inferior_hook): Update.
9199 (som_solib_desire_dynamic_linker_symbols): Update.
9200 (link_map_start): Update.
9201 * solib-spu.c (spu_enable_break): Update.
9202 (ocl_enable_break): Update.
9203 * solib-svr4.c (elf_locate_base): Update.
9204 (enable_break): Update.
9205 * spu-tdep.c (spu_get_overlay_table): Update.
9206 (spu_catch_start): Update.
9207 (flush_ea_cache): Update.
9208 * stabsread.c (define_symbol): Update.
9209 (scan_file_globals): Update.
9210 * stack.c (find_frame_funname): Update.
9211 (frame_info): Update.
9212 * symfile.c (simple_read_overlay_table): Update.
9213 (simple_overlay_update): Update.
9214 * symmisc.c (dump_msymbols): Update.
9215 * symtab.c (fixup_section): Update.
9216 (find_pc_sect_line): Update.
9217 (skip_prologue_sal): Update.
9218 (search_symbols): Update.
9219 (print_msymbol_info): Update.
9220 (rbreak_command): Update.
9221 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9222 (completion_list_objc_symbol): Update.
9223 (default_make_symbol_completion_list_break_on): Update.
9224 * tracepoint.c (scope_info): Update.
9225 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9226 (tui_get_begin_asm_address): Update.
9227 * valops.c (find_function_in_inferior): Update.
9228 * value.c (value_static_field): Update.
9229 (value_fn_field): Update.
9231 2014-02-26 Tom Tromey <tromey@redhat.com>
9233 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9234 bound minimal symbols. Move code that knows about minsym
9236 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9238 * minsyms.h (minimal_symbol_upper_bound): Declare.
9239 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9240 minimal_symbol_upper_bound.
9242 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9244 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9245 Use the type's name if its basic type does not have a tag.
9247 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9249 * dwarf2read.c (read_subrange_type): Add comment.
9251 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9253 * dwarf2read.c (update_enumeration_type_from_children): New
9254 function, mostly extracted from process_structure_scope.
9255 (read_enumeration_type): Call update_enumeration_type_from_children.
9256 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9257 and flag_flag_enum fields.
9259 2014-02-26 Pedro Alves <palves@redhat.com>
9261 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9262 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9263 to_xfer_partial method.
9265 2014-02-26 Pedro Alves <palves@redhat.com>
9267 * target.c (complete_target_initialization): Don't install
9268 default_xfer_partial as to_xfer_partial hook.
9270 (update_current_target): Don't INHERIT nor de_fault
9271 deprecated_xfer_memory. Delete de_fault macro.
9272 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9273 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9274 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9277 2014-02-26 Pedro Alves <palves@redhat.com>
9279 * go32-nat.c (my_write_child): New function.
9280 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9281 (go32_xfer_partial): New function.
9282 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9283 Instead install a to_xfer_partial hook.
9285 2014-02-26 Pedro Alves <palves@redhat.com>
9287 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9288 to_xfer_partial helper. Rewrite.
9289 (procfs_xfer_partial): New function.
9290 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9291 Install a to_xfer_partial hook.
9293 2014-02-26 Pedro Alves <palves@redhat.com>
9295 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9296 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9297 (m32r_xfer_partial): New function.
9298 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9299 Install a to_xfer_partial hook.
9301 2014-02-26 Pedro Alves <palves@redhat.com>
9303 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9305 (mips_xfer_partial): New function.
9306 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9307 hook. Install a to_xfer_partial hook.
9309 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9311 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9312 * gdbtypes.c (create_array_type_with_stride): New function,
9313 renaming create_array_type, but with an added parameter
9314 called "bit_stride".
9315 (create_array_type): Re-implement using
9316 create_array_type_with_stride.
9317 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9318 and DW_AT_bit_stride attributes.
9320 2014-02-26 Pedro Alves <palves@redhat.com>
9322 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9323 task-specific breakpoints.
9325 2014-02-25 Pedro Alves <palves@redhat.com>
9327 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9328 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9330 2014-02-25 Stan Shebs <stan@codesourcery.com>
9332 * defs.h: Annotate comments for Doxygen.
9334 2014-02-25 Tom Tromey <tromey@redhat.com>
9336 * target.h (target_ignore): Don't declare.
9337 * target.c (target_ignore): Remove.
9339 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9342 * auto-load.c (auto_load_objfile_script_1): Change filename to
9345 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9347 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9348 documentation. Adjust prototype to match the target_ops
9349 to_xfer_partial method. Adjust implementation accordingly.
9351 2014-02-25 Hui Zhu <hui@codesourcery.com>
9353 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9356 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9358 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9359 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9360 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9361 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9362 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9363 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9364 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9365 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9367 (rl78_register_type): Use a data pointer type for SP and
9368 new pseudo registers mentioned above. Use a 16 bit integer
9369 type for all other register pairs.
9370 (rl78_register_name, rl78_g10_register_name): Update for
9371 new pseudo registers.
9372 (rl78_pseudo_register_read): Likewise.
9373 (rl78_pseudo_register_write): Likewise.
9374 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9375 to the newly added pseudo registers.
9377 2014-02-24 Doug Evans <dje@google.com>
9379 * value.c (record_latest_value): Fix comment.
9380 * printcmd.c (print_command_1): Remove code to handle -1 return from
9381 record_latest_value.
9383 2014-02-24 Pedro Alves <palves@redhat.com>
9385 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9386 deprecated_xfer_memory hook.
9387 (procfs_xfer_partial): Call procfs_xfer_memory instead
9388 of the deprecated_xfer_memory target hook.
9389 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9392 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9394 * windows-nat.c (windows_xfer_shared_libraries): Return
9395 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9396 requested object is TARGET_OBJECT_LIBRARIES.
9398 2014-02-24 Yao Qi <yao@codesourcery.com>
9400 * target.h (enum target_xfer_status)
9401 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9402 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9404 * corefile.c (memory_error_message): User updated.
9405 * exec.c (section_table_read_available_memory): Likewise.
9406 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9407 * target.c (target_xfer_status_to_string): Likewise.
9408 (raw_memory_xfer_partial): Likewise.
9409 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9410 * valops.c (read_value_memory): Likewise.
9411 * exec.h: Update comments.
9413 2014-02-24 Yao Qi <yao@codesourcery.com>
9415 * target.c (target_xfer_status_to_string): Rename argument err
9417 * target.h (target_xfer_status_to_string): Update declaration.
9418 Replace target_xfer_error_to_string with
9419 target_xfer_status_to_string in comment.
9421 2014-02-24 Yao Qi <yao@codesourcery.com>
9423 * mips-linux-nat.c (super_close): Update its type.
9424 (mips_linux_close): Pass 'self' to super_close.
9426 2014-02-24 Yao Qi <yao@codesourcery.com>
9428 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9429 * corefile.c (read_memory): Adjusted.
9430 * target.c (target_write_with_progress): Adjusted.
9432 2014-02-23 Yao Qi <yao@codesourcery.com>
9436 2013-10-25 Yao Qi <yao@codesourcery.com>
9438 * remote.c (remote_traceframe_info): Return early if
9439 traceframe is not selected.
9441 2013-07-19 Yao Qi <yao@codesourcery.com>
9443 * target.c (update_current_target): Change the default action
9444 of 'to_traceframe_info' from tcomplain to return_zero.
9445 * target.h (struct target_ops) <to_traceframe_info>: Add more
9448 2014-02-23 Yao Qi <yao@codesourcery.com>
9450 * valops.c (read_value_memory): Rewrite it. Call
9451 target_xfer_partial in a loop.
9452 * exec.h (section_table_available_memory): Remove declaration.
9453 Move comments to ...
9454 * exec.c (section_table_available_memory): ... here. Make it
9457 2014-02-23 Yao Qi <yao@codesourcery.com>
9459 * exec.c (section_table_read_available_memory): New function.
9460 * exec.h (section_table_read_available_memory): Declare.
9461 * ctf.c (ctf_xfer_partial): Call
9462 section_table_read_available_memory.
9463 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9465 2014-02-23 Yao Qi <yao@codesourcery.com>
9467 * ctf.c (ctf_xfer_partial): Move code to ...
9468 * exec.c (exec_read_partial_read_only): ... it. New function.
9469 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9470 * tracefile.c: Include "exec.h".
9471 * exec.h (exec_read_partial_read_only): Declare.
9473 2014-02-23 Yao Qi <yao@codesourcery.com>
9475 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9476 (tfile_has_memory): Remove.
9477 (init_tfile_ops): Don't set fields to_has_all_memory and
9478 to_has_memory of tfile_ops.
9479 * tracefile.c (tracefile_has_all_memory): New function.
9480 (tracefile_has_memory): New function.
9481 (init_tracefile_ops): Initialize fields to_has_all_memory and
9482 to_has_memory of 'ops'.
9484 2014-02-23 Yao Qi <yao@codesourcery.com>
9486 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9487 (ctf_thread_alive, ctf_get_trace_status): Remove.
9488 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9490 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9491 (tfile_has_stack, tfile_has_registers): Remove.
9492 (tfile_thread_alive): Remove.
9493 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9495 * tracefile.c (tracefile_has_stack): New function.
9496 (tracefile_has_registers): New function.
9497 (tracefile_thread_alive): New function.
9498 (tracefile_get_trace_status): New function.
9499 (init_tracefile_ops): New function.
9500 * tracefile.h (init_tracefile_ops): Declare.
9502 2014-02-23 Yao Qi <yao@codesourcery.com>
9504 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9505 (O_LARGEFILE): Likewise.
9506 (tfile_ops): Likewise.
9507 (TRACE_HEADER_SIZE): Likewise.
9508 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9509 (cur_data_size): Likewise.
9510 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9511 (tfile_close, tfile_files_info): Likewise.
9512 (tfile_get_trace_status): Likewise.
9513 (tfile_get_tracepoint_status): Likewise.
9514 (tfile_get_traceframe_address): Likewise.
9515 (tfile_trace_find, match_blocktype): Likewise.
9516 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9517 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9518 (tfile_get_trace_state_variable_value): Likewise.
9519 (tfile_has_all_memory, tfile_has_memory): Likewise.
9520 (tfile_has_stack, tfile_has_registers): Likewise.
9521 (tfile_thread_alive, build_traceframe_info): Likewise.
9522 (tfile_traceframe_info, init_tfile_ops): Likewise.
9523 (_initialize_tracepoint): Don't call init_tfile_ops
9524 and add_target_with_completer.
9525 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9526 exec.h, completer.h and filenames.h.
9527 (_initialize_tracefile_tfile): New function.
9529 2014-02-23 Yao Qi <yao@codesourcery.com>
9531 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9533 (HFILES_NO_SRCDIR): Add tracefile.h.
9534 * ctf.c: Include "tracefile.h".
9535 * tracefile.h: New file.
9536 * tracefile.c: New file
9537 * tracefile-tfile.c: New file.
9538 * tracepoint.c: Include "tracefile.h".
9539 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9540 (stop_reason_names): Add const.
9541 (trace_file_writer_xfree): Move it to tracefile.c.
9542 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9543 (trace_save_ctf): Likewise.
9544 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9545 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9546 (tfile_write_header, tfile_write_regblock_type): Likewise.
9547 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9548 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9549 (tfile_write_raw_data, tfile_end): Likewise.
9550 (tfile_trace_file_writer_new): Likewise.
9551 (free_uploaded_tp): Make it extern.
9552 (free_uploaded_tsv): Make it extern.
9553 (_initialize_tracepoint): Move code to register command 'tsave'
9555 * tracepoint.h (stop_reason_names): Declare.
9556 (struct trace_frame_write_ops): Move it to tracefile.h.
9557 (struct trace_file_write_ops): Likewise.
9558 (struct trace_file_writer): Likewise.
9559 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9561 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9564 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9566 (get_cores_used_by_process): New parameter num_cores, use it.
9567 (linux_xfer_osdata_processes): Pass num_cores to it.
9568 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9571 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9573 * target.c (memory_xfer_partial): Fix length arg in call to
9574 breakpoint_xfer_memory.
9576 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9579 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9580 number comes after the + or - signs. Adjust length of register
9581 name to be extracted.
9583 2014-02-20 Tom Tromey <tromey@redhat.com>
9585 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9586 (ada_varobj_ops): Mark "extern".
9588 2014-02-20 Tom Tromey <tromey@redhat.com>
9590 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9592 2014-02-20 Doug Evans <xdje42@gmail.com>
9594 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9595 All callers updated.
9596 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9597 All callers updated.
9598 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9599 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9601 2014-02-20 lin zuojian <manjian2006@gmail.com>
9602 Joel Brobecker <brobecker@adacore.com>
9603 Doug Evans <xdje42@gmail.com>
9606 * dwarf2read.c (struct die_info): New member in_process.
9607 (reset_die_in_process): New function.
9608 (process_die): Set it at the start, reset when returning.
9609 (inherit_abstract_dies): Only call process_die if origin_child_die
9610 not already being processed.
9612 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9614 * windows-nat.c (handle_unload_dll): Add function documentation.
9615 (do_initial_windows_stuff): Add comment explaining why we wait
9616 until after inferior initialization has finished before
9617 processing all DLLs.
9619 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9621 * windows-nat.c (get_module_name): Delete.
9622 (windows_get_exec_module_filename): New function, mostly
9623 inspired from get_module_name.
9624 (windows_pid_to_exec_file): Replace call to get_module_name
9625 by call to windows_get_exec_module_filename.
9627 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9629 * windows-nat.c (handle_load_dll): Rewrite this function's
9630 introductory comment. Remove code using get_module_name
9631 to get the DLL's name.
9633 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9635 * windows-nat.c (get_windows_debug_event): Ignore
9636 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9637 if windows_initialization_done == 0.
9638 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9639 Adjust implementation to always load all DLLs.
9640 (do_initial_windows_stuff): Replace call to
9641 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9643 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9645 * windows-nat.c (_initialize_windows_nat): Deprecate the
9646 "dll-symbols" command. Turn the "add-shared-symbol-files"
9647 and "assf" aliases into commands, and deprecate them as well.
9648 * NEWS: Add entry explaining that "dll-symbols" and its two
9649 aliases are now deprecated.
9651 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9653 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9654 new-line in debug string. Remove trailing spaces.
9656 2014-02-19 Stan Shebs <stan@codesourcery.com>
9658 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9660 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9662 * NEWS: Add entry for the new feature
9663 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9666 2014-02-19 Stan Shebs <stan@codesourcery.com>
9668 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9670 2014-02-19 Pedro Alves <palves@redhat.com>
9672 * common/ptid.h (struct ptid): Mention that process_stratum
9673 targets should prefer ptid.lwp.
9675 2014-02-19 Pedro Alves <palves@redhat.com>
9677 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9678 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9679 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9680 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9681 store remote thread ids rather than ptid.tid.
9682 (_initialize_remote): Adjust.
9684 2014-02-19 Tom Tromey <tromey@redhat.com>
9686 * target.c (target_get_unwinder): Rewrite.
9687 (target_get_tailcall_unwinder): Rewrite.
9688 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9689 (record_btrace_to_get_tailcall_unwinder): New function.
9690 (init_record_btrace_ops): Update.
9691 * target.h (struct target_ops) <to_get_unwinder,
9692 to_get_tailcall_unwinder>: Now function pointers. Use
9693 TARGET_DEFAULT_RETURN.
9695 2014-02-19 Tom Tromey <tromey@redhat.com>
9697 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9699 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9701 2014-02-19 Tom Tromey <tromey@redhat.com>
9703 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9705 * target-delegates.c: Rebuild.
9706 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9707 TARGET_DEFAULT_FUNC.
9708 * target.c (default_target_decr_pc_after_break): Rename from
9709 forward_target_decr_pc_after_break. Simplify.
9710 (target_decr_pc_after_break): Rely on delegation.
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9714 * target.c (update_current_target): Do not INHERIT to_doc or
9715 to_magic. Do not de_fault to_open or to_close.
9717 2014-02-19 Tom Tromey <tromey@redhat.com>
9719 * gcore.h (objfile_find_memory_regions): Declare.
9720 * gcore.c (objfile_find_memory_regions): No longer static. Add
9722 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9723 * exec.c: Include gcore.h.
9724 (exec_set_find_memory_regions): Remove.
9725 (exec_find_memory_regions): Remove.
9726 (exec_do_find_memory_regions): Remove.
9727 (init_exec_ops): Update.
9728 * defs.h (exec_set_find_memory_regions): Remove.
9730 2014-02-19 Tom Tromey <tromey@redhat.com>
9732 * target-delegates.c: Rebuild.
9733 * target.h (struct target_ops) <to_extra_thread_info,
9734 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9735 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9736 not 0, in TARGET_DEFAULT_RETURN.
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9740 * target.c (complete_target_initialization): Remove casts. Use
9741 return_zero_has_execution.
9742 (return_zero): Add "ignore" argument.
9743 (return_zero_has_execution): New function.
9744 (init_dummy_target): Remove casts. Use
9745 return_zero_has_execution.
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * target.c (update_current_target): Update comments. Do not
9752 2014-02-19 Tom Tromey <tromey@redhat.com>
9754 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9756 * corelow.c (core_read_description): Delegate when needed.
9757 * remote.c (remote_read_description): Delegate when needed.
9758 * target-delegates.c: Rebuild.
9759 * target.c (target_read_description): Rewrite.
9760 * target.h (struct target_ops) <to_read_description>: Update
9761 comment. Use TARGET_DEFAULT_RETURN.
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9765 * target-delegates.c: Rebuild.
9766 * target.c (update_current_target): Don't inherit or default
9768 (find_default_run_target): Check against delegate_can_run.
9769 * target.h (struct target_ops) <to_can_run>: Use
9770 TARGET_DEFAULT_RETURN.
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9774 * target-delegates.c: Rebuild.
9775 * target.c (target_disconnect): Unconditionally delegate.
9776 * target.h (struct target_ops) <to_disconnect>: Use
9777 TARGET_DEFAULT_NORETURN.
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * record.c (record_stop): Unconditionally delegate.
9782 * target-delegates.c: Rebuild.
9783 * target.c (target_stop_recording): Unconditionally delegate.
9784 * target.h (struct target_ops) <to_stop_recording>: Use
9785 TARGET_DEFAULT_IGNORE.
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9789 * target-delegates.c: Rebuild.
9790 * target.c (target_enable_btrace): Unconditionally delegate.
9791 * target.h (struct target_ops) <to_enable_btrace>: Use
9792 TARGET_DEFAULT_NORETURN.
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9796 * target-delegates.c: Rebuild.
9797 * target.c (target_read_btrace): Unconditionally delegate.
9798 * target.h (struct target_ops) <to_read_btrace>: Use
9799 TARGET_DEFAULT_NORETURN.
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9803 * target-delegates.c: Rebuild.
9804 * target.c (target_teardown_btrace): Unconditionally delegate.
9805 * target.h (struct target_ops) <to_teardown_btrace>: Use
9806 TARGET_DEFAULT_NORETURN.
9808 2014-02-19 Tom Tromey <tromey@redhat.com>
9810 * target-delegates.c: Rebuild.
9811 * target.c (target_disable_btrace): Unconditionally delegate.
9812 * target.h (struct target_ops) <to_disable_btrace>: Use
9813 TARGET_DEFAULT_NORETURN.
9815 2014-02-19 Tom Tromey <tromey@redhat.com>
9817 * target-delegates.c: Rebuild.
9818 * target.c (default_search_memory): New function.
9819 (simple_search_memory): Update comment.
9820 (target_search_memory): Unconditionally delegate.
9821 * target.h (struct target_ops) <to_search_memory>: Use
9822 TARGET_DEFAULT_FUNC.
9824 2014-02-19 Tom Tromey <tromey@redhat.com>
9826 * auxv.c (default_auxv_parse): No longer static.
9827 (target_auxv_parse): Unconditionally delegate.
9828 * auxv.h (default_auxv_parse): Declare.
9829 * target-delegates.c: Rebuild.
9830 * target.c: Include auxv.h.
9831 * target.h (struct target_ops) <to_auxv_parse>: Use
9832 TARGET_DEFAULT_FUNC.
9834 2014-02-19 Tom Tromey <tromey@redhat.com>
9836 * target-delegates.c: Rebuild.
9837 * target.c (target_memory_map): Unconditionally delegate.
9838 * target.h (struct target_ops) <to_memory_map>: Use
9839 TARGET_DEFAULT_RETURN.
9841 2014-02-19 Tom Tromey <tromey@redhat.com>
9843 * target-delegates.c: Rebuild.
9844 * target.c (target_thread_alive): Unconditionally delegate.
9845 * target.h (struct target_ops) <to_thread_alive>: Use
9846 TARGET_DEFAULT_RETURN.
9848 2014-02-19 Tom Tromey <tromey@redhat.com>
9850 * target-delegates.c: Rebuild.
9851 * target.c (target_save_record): Unconditionally delegate.
9852 * target.h (struct target_ops) <to_save_record>: Use
9853 TARGET_DEFAULT_NORETURN.
9855 2014-02-19 Tom Tromey <tromey@redhat.com>
9857 * target-delegates.c: Rebuild.
9858 * target.c (target_delete_record): Unconditionally delegate.
9859 * target.h (struct target_ops) <to_delete_record>: Use
9860 TARGET_DEFAULT_NORETURN.
9862 2014-02-19 Tom Tromey <tromey@redhat.com>
9864 * target-delegates.c: Rebuild.
9865 * target.c (target_record_is_replaying): Unconditionally
9867 * target.h (struct target_ops) <to_record_is_replaying>: Use
9868 TARGET_DEFAULT_RETURN.
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target-delegates.c: Rebuild.
9873 * target.c (target_goto_record_begin): Unconditionally delegate.
9874 * target.h (struct target_ops) <to_goto_record_begin>: Use
9875 TARGET_DEFAULT_NORETURN.
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target-delegates.c: Rebuild.
9880 * target.c (target_goto_record_end): Unconditionally delegate.
9881 * target.h (struct target_ops) <to_goto_record_end>: Use
9882 TARGET_DEFAULT_NORETURN.
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9886 * target-delegates.c: Rebuild.
9887 * target.c (target_goto_record): Unconditionally delegate.
9888 * target.h (struct target_ops) <to_goto_record>: Use
9889 TARGET_DEFAULT_NORETURN.
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9893 * target-delegates.c: Rebuild.
9894 * target.c (target_insn_history): Unconditionally delegate.
9895 * target.h (struct target_ops) <to_insn_history>: Use
9896 TARGET_DEFAULT_NORETURN.
9898 2014-02-19 Tom Tromey <tromey@redhat.com>
9900 * target-delegates.c: Rebuild.
9901 * target.c (target_insn_history_from): Unconditionally delegate.
9902 * target.h (struct target_ops) <to_insn_history_from>: Use
9903 TARGET_DEFAULT_NORETURN.
9905 2014-02-19 Tom Tromey <tromey@redhat.com>
9907 * target-delegates.c: Rebuild.
9908 * target.c (target_insn_history_range): Unconditionally delegate.
9909 * target.h (struct target_ops) <to_insn_history_range>: Use
9910 TARGET_DEFAULT_NORETURN.
9912 2014-02-19 Tom Tromey <tromey@redhat.com>
9914 * target-delegates.c: Rebuild.
9915 * target.c (target_call_history): Unconditionally delegate.
9916 * target.h (struct target_ops) <to_call_history>: Use
9917 TARGET_DEFAULT_NORETURN.
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9921 * target-delegates.c: Rebuild.
9922 * target.c (target_call_history_from): Unconditionally delegate.
9923 * target.h (struct target_ops) <to_call_history_from>: Use
9924 TARGET_DEFAULT_NORETURN.
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9928 * target-delegates.c: Rebuild.
9929 * target.c (target_call_history_range): Unconditionally delegate.
9930 * target.h (struct target_ops) <to_call_history_range>: Use
9931 TARGET_DEFAULT_NORETURN.
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9935 * target-delegates.c: Rebuild.
9936 * target.c (target_verify_memory): Unconditionally delegate.
9937 * target.h (struct target_ops) <to_verify_memory>: Use
9938 TARGET_DEFAULT_NORETURN.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * target-delegates.c: Rebuild.
9943 * target.c (target_core_of_thread): Unconditionally delegate.
9944 * target.h (struct target_ops) <to_core_of_thread>: Use
9945 TARGET_DEFAULT_RETURN.
9947 2014-02-19 Tom Tromey <tromey@redhat.com>
9949 * target-delegates.c: Rebuild.
9950 * target.c (target_flash_done): Unconditionally delegate.
9951 * target.h (struct target_ops) <to_flash_done>: Use
9952 TARGET_DEFAULT_NORETURN.
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9956 * target-delegates.c: Rebuild.
9957 * target.c (target_flash_erase): Unconditionally delegate.
9958 * target.h (struct target_ops) <to_flash_erase>: Use
9959 TARGET_DEFAULT_NORETURN.
9961 2014-02-19 Tom Tromey <tromey@redhat.com>
9963 * target-delegates.c: Rebuild.
9964 * target.c (target_get_section_table): Unconditionally delegate.
9965 * target.h (struct target_ops) <to_get_section_table>: Use
9966 TARGET_DEFAULT_RETURN.
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9970 * target-delegates.c: Rebuild.
9971 * target.c (target_pid_to_str): Unconditionally delegate.
9972 (init_dummy_target): Don't initialize to_pid_to_str.
9973 (default_pid_to_str): Rename from dummy_pid_to_str.
9974 * target.h (struct target_ops) <to_pid_to_str>: Use
9975 TARGET_DEFAULT_FUNC.
9977 2014-02-19 Tom Tromey <tromey@redhat.com>
9979 * target-delegates.c: Rebuild.
9980 * target.c (target_find_new_threads): Unconditionally delegate.
9981 * target.h (struct target_ops) <to_find_new_threads>: Use
9982 TARGET_DEFAULT_RETURN.
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9986 * target-delegates.c: Rebuild.
9987 * target.c (target_program_signals): Unconditionally delegate.
9988 * target.h (struct target_ops) <to_program_signals>: Use
9989 TARGET_DEFAULT_IGNORE.
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * target-delegates.c: Rebuild.
9994 * target.c (target_pass_signals): Unconditionally delegate.
9995 * target.h (struct target_ops) <to_pass_signals>: Use
9996 TARGET_DEFAULT_IGNORE.
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
10000 * target-delegates.c: Rebuild.
10001 * target.c (default_mourn_inferior): New function.
10002 (target_mourn_inferior): Unconditionally delegate.
10003 * target.h (struct target_ops) <to_mourn_inferior>: Use
10004 TARGET_DEFAULT_FUNC.
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10008 * target-delegates.c: Rebuild.
10009 * target.c (default_follow_fork): New function.
10010 (target_follow_fork): Unconditionally delegate.
10011 * target.h (struct target_ops) <to_follow_fork>: Use
10012 TARGET_DEFAULT_FUNC.
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10016 * target-delegates.c: Rebuild.
10017 * target.c (target_kill): Unconditionally delegate.
10018 * target.h (struct target_ops) <to_kill>: Use
10019 TARGET_DEFAULT_NORETURN.
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10023 * target-delegates.c: Rebuild.
10024 * target.c (target_masked_watch_num_registers): Unconditionally
10026 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10027 Use TARGET_DEFAULT_RETURN.
10029 2014-02-19 Tom Tromey <tromey@redhat.com>
10031 * target-delegates.c: Rebuild.
10032 * target.c (target_remove_mask_watchpoint): Unconditionally
10034 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10035 TARGET_DEFAULT_RETURN.
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10039 * target-delegates.c: Rebuild.
10040 * target.c (target_insert_mask_watchpoint): Unconditionally
10042 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10043 TARGET_DEFAULT_RETURN.
10045 2014-02-19 Tom Tromey <tromey@redhat.com>
10047 * target-delegates.c: Rebuild.
10048 * target.c (target_ranged_break_num_registers): Unconditionally
10050 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10051 Use TARGET_DEFAULT_RETURN.
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10055 * target-delegates.c: Rebuild.
10056 * target.c (target_fetch_registers): Unconditionally delegate.
10057 * target.h (struct target_ops) <to_fetch_registers>: Use
10058 TARGET_DEFAULT_NORETURN.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target-delegates.c: Rebuild.
10063 * target.c (update_current_target): Don't inherit or default
10065 * target.h (struct target_ops) <to_stop>: Use
10066 TARGET_DEFAULT_IGNORE.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target-delegates.c: Rebuild.
10071 * target.c (update_current_target): Don't inherit or default
10072 to_can_run_breakpoint_commands.
10073 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10074 Use TARGET_DEFAULT_RETURN.
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10078 * target-delegates.c: Rebuild.
10079 * target.c (update_current_target): Don't inherit or default
10080 to_supports_evaluation_of_breakpoint_conditions.
10081 * target.h (struct target_ops)
10082 <to_supports_evaluation_of_breakpoint_conditions>: Use
10083 TARGET_DEFAULT_RETURN.
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10087 * target-delegates.c: Rebuild.
10088 * target.c (update_current_target): Don't inherit or default
10089 to_augmented_libraries_svr4_read.
10090 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10091 Use TARGET_DEFAULT_RETURN.
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10095 * target-delegates.c: Rebuild.
10096 * target.c (update_current_target): Don't inherit or default
10098 * target.h (struct target_ops) <to_can_use_agent>: Use
10099 TARGET_DEFAULT_RETURN.
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10103 * target-delegates.c: Rebuild.
10104 * target.c (update_current_target): Don't inherit or default
10106 * target.h (struct target_ops) <to_use_agent>: Use
10107 TARGET_DEFAULT_NORETURN.
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10111 * target-delegates.c: Rebuild.
10112 * target.c (update_current_target): Don't inherit or default
10113 to_traceframe_info.
10114 (return_null): Remove.
10115 * target.h (struct target_ops) <to_traceframe_info>: Use
10116 TARGET_DEFAULT_RETURN.
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10120 * target-delegates.c: Rebuild.
10121 * target.c (update_current_target): Don't inherit or default
10122 to_static_tracepoint_markers_by_strid.
10123 * target.h (struct target_ops)
10124 <to_static_tracepoint_markers_by_strid>: Use
10125 TARGET_DEFAULT_NORETURN.
10127 2014-02-19 Tom Tromey <tromey@redhat.com>
10129 * target-delegates.c: Rebuild.
10130 * target.c (update_current_target): Don't inherit or default
10131 to_static_tracepoint_marker_at.
10132 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10133 Use TARGET_DEFAULT_RETURN.
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10137 * target-delegates.c: Rebuild.
10138 * target.c (update_current_target): Don't inherit or default
10139 to_set_permissions.
10140 * target.h (struct target_ops) <to_set_permissions>: Use
10141 TARGET_DEFAULT_IGNORE.
10143 2014-02-19 Tom Tromey <tromey@redhat.com>
10145 * target-delegates.c: Rebuild.
10146 * target.c (update_current_target): Don't inherit or default
10147 to_get_tib_address.
10148 * target.h (struct target_ops) <to_get_tib_address>: Use
10149 TARGET_DEFAULT_NORETURN.
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * target-delegates.c: Rebuild.
10154 * target.c (update_current_target): Don't inherit or default
10155 to_set_trace_notes.
10156 * target.h (struct target_ops) <to_set_trace_notes>: Use
10157 TARGET_DEFAULT_RETURN.
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10161 * target-delegates.c: Rebuild.
10162 * target.c (update_current_target): Don't initialize
10163 to_set_trace_buffer_size.
10164 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10165 TARGET_DEFAULT_IGNORE.
10167 2014-02-19 Tom Tromey <tromey@redhat.com>
10169 * target-delegates.c: Rebuild.
10170 * target.c (update_current_target): Don't inherit or default
10171 to_set_circular_trace_buffer.
10172 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10173 TARGET_DEFAULT_IGNORE.
10175 2014-02-19 Tom Tromey <tromey@redhat.com>
10177 * target-delegates.c: Rebuild.
10178 * target.c (update_current_target): Don't inherit or default
10179 to_set_disconnected_tracing.
10180 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10181 TARGET_DEFAULT_IGNORE.
10183 2014-02-19 Tom Tromey <tromey@redhat.com>
10185 * target-delegates.c: Rebuild.
10186 * target.c (update_current_target): Don't inherit or default
10187 to_get_min_fast_tracepoint_insn_len.
10188 (return_minus_one): Remove.
10189 * target.h (struct target_ops)
10190 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10192 2014-02-19 Tom Tromey <tromey@redhat.com>
10194 * target-delegates.c: Rebuild.
10195 * target.c (update_current_target): Don't inherit or default
10196 to_get_raw_trace_data.
10197 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10198 TARGET_DEFAULT_NORETURN.
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * target-delegates.c: Rebuild.
10203 * target.c (update_current_target): Don't inherit or default
10204 to_upload_trace_state_variables.
10205 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10206 Use TARGET_DEFAULT_RETURN.
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10210 * target-delegates.c: Rebuild.
10211 * target.c (update_current_target): Don't inherit or default
10212 to_upload_tracepoints.
10213 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10214 TARGET_DEFAULT_RETURN.
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10218 * target-delegates.c: Rebuild.
10219 * target.c (update_current_target): Don't inherit or default
10220 to_save_trace_data.
10221 * target.h (struct target_ops) <to_save_trace_data>: Use
10222 TARGET_DEFAULT_NORETURN.
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10226 * target-delegates.c: Rebuild.
10227 * target.c (update_current_target): Don't inherit or default
10228 to_get_trace_state_variable_value.
10229 * target.h (struct target_ops)
10230 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10234 * target-delegates.c: Rebuild.
10235 * target.c (update_current_target): Don't inherit or default
10237 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10241 * target-delegates.c: Rebuild.
10242 * target.c (update_current_target): Don't inherit or default
10244 * target.h (struct target_ops) <to_trace_stop>: Use
10245 TARGET_DEFAULT_NORETURN.
10247 2014-02-19 Tom Tromey <tromey@redhat.com>
10249 * target-delegates.c: Rebuild.
10250 * target.c (update_current_target): Don't inherit or default
10251 to_get_tracepoint_status.
10252 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10253 TARGET_DEFAULT_NORETURN.
10255 2014-02-19 Tom Tromey <tromey@redhat.com>
10257 * target-delegates.c: Rebuild.
10258 * target.c (update_current_target): Don't inherit or default
10259 to_get_trace_status.
10260 * target.h (struct target_ops) <to_get_trace_status>: Use
10261 TARGET_DEFAULT_RETURN.
10263 2014-02-19 Tom Tromey <tromey@redhat.com>
10265 * target-delegates.c: Rebuild.
10266 * target.c (update_current_target): Don't inherit or default
10268 * target.h (struct target_ops) <to_trace_start>: Use
10269 TARGET_DEFAULT_NORETURN.
10271 2014-02-19 Tom Tromey <tromey@redhat.com>
10273 * target-delegates.c: Rebuild.
10274 * target.c (update_current_target): Don't inherit or default
10275 to_trace_set_readonly_regions.
10276 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10277 Use TARGET_DEFAULT_NORETURN.
10279 2014-02-19 Tom Tromey <tromey@redhat.com>
10281 * target-delegates.c: Rebuild.
10282 * target.c (update_current_target): Don't inherit or default
10283 to_disable_tracepoint.
10284 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10285 TARGET_DEFAULT_NORETURN.
10287 2014-02-19 Tom Tromey <tromey@redhat.com>
10289 * target-delegates.c: Rebuild.
10290 * target.c (update_current_target): Don't inherit or default
10291 to_enable_tracepoint.
10292 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10293 TARGET_DEFAULT_NORETURN.
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target-delegates.c: Rebuild.
10298 * target.c (update_current_target): Don't inherit or default
10299 to_download_trace_state_variable.
10300 * target.h (struct target_ops) <to_download_trace_state_variable>:
10301 Use TARGET_DEFAULT_NORETURN.
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10305 * target-delegates.c: Rebuild.
10306 * target.c (update_current_target): Don't inherit or default
10307 to_can_download_tracepoint.
10308 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10309 TARGET_DEFAULT_RETURN.
10311 2014-02-19 Tom Tromey <tromey@redhat.com>
10313 * target-delegates.c: Rebuild.
10314 * target.c (update_current_target): Don't inherit or default
10315 to_download_tracepoint.
10316 * target.h (struct target_ops) <to_download_tracepoint>: Use
10317 TARGET_DEFAULT_NORETURN.
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10321 * target-delegates.c: Rebuild.
10322 * target.c (update_current_target): Don't inherit or default
10324 * target.h (struct target_ops) <to_trace_init>: Use
10325 TARGET_DEFAULT_RETURN.
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10329 * target-delegates.c: Rebuild.
10330 * target.c (update_current_target): Don't inherit or default
10331 to_supports_string_tracing.
10332 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10333 TARGET_DEFAULT_RETURN.
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10337 * target-delegates.c: Rebuild.
10338 * target.c (update_current_target): Don't inherit or default
10339 to_supports_enable_disable_tracepoint.
10340 * target.h (struct target_ops)
10341 <to_supports_enable_disable_tracepoint>: Use
10342 TARGET_DEFAULT_RETURN.
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10346 * target-delegates.c: Rebuild.
10347 * target.c (update_current_target): Don't inherit or default
10348 to_supports_multi_process.
10349 * target.h (struct target_ops) <to_supports_multi_process>: Use
10350 TARGET_DEFAULT_RETURN.
10352 2014-02-19 Tom Tromey <tromey@redhat.com>
10354 * target-delegates.c: Rebuild.
10355 * target.c (update_current_target): Don't inherit or default
10356 to_get_ada_task_ptid.
10357 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10358 TARGET_DEFAULT_FUNC.
10360 2014-02-19 Tom Tromey <tromey@redhat.com>
10362 * target-delegates.c: Rebuild.
10363 * target.c (update_current_target): Don't inherit or default
10364 to_thread_architecture.
10365 * target.h (struct target_ops) <to_thread_architecture>: Use
10366 TARGET_DEFAULT_FUNC.
10368 2014-02-19 Tom Tromey <tromey@redhat.com>
10370 * target-delegates.c: Rebuild.
10371 * target.c (update_current_target): Don't inherit or default
10372 to_execution_direction.
10373 * target.h (struct target_ops) <to_execution_direction>: Use
10374 TARGET_DEFAULT_FUNC.
10376 2014-02-19 Tom Tromey <tromey@redhat.com>
10378 * target-delegates.c: Rebuild.
10379 * target.c (update_current_target): Don't inherit or default
10380 to_can_execute_reverse.
10381 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10382 TARGET_DEFAULT_RETURN.
10383 (target_can_execute_reverse): Unconditionally delegate.
10385 2014-02-19 Tom Tromey <tromey@redhat.com>
10387 * target-delegates.c: Rebuild.
10388 * target.c (update_current_target): Don't inherit or default
10390 (dummy_goto_bookmark): Remove.
10391 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10392 * target.h (struct target_ops) <to_goto_bookmark>: Use
10393 TARGET_DEFAULT_NORETURN.
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target-delegates.c: Rebuild.
10398 * target.c (update_current_target): Don't inherit or default
10400 (dummy_get_bookmark): Remove.
10401 (init_dummy_target): Don't inherit or default to_get_bookmark.
10402 * target.h (struct target_ops) <to_get_bookmark>: Use
10403 TARGET_DEFAULT_NORETURN
10405 2014-02-19 Tom Tromey <tromey@redhat.com>
10407 * target-delegates.c: Rebuild.
10408 * target.c (update_current_target): Don't inherit or default
10409 to_make_corefile_notes.
10410 (init_dummy_target): Don't initialize to_make_corefile_notes.
10411 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10412 TARGET_DEFAULT_FUNC.
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10416 * target-delegates.c: Rebuild.
10417 * target.c (update_current_target): Don't inherit or default
10418 to_find_memory_regions.
10419 (init_dummy_target): Don't initialize to_find_memory_regions.
10420 * target.h (struct target_ops) <to_find_memory_regions>: Use
10421 TARGET_DEFAULT_FUNC.
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10425 * target-delegates.c: Rebuild.
10426 * target.c (update_current_target): Don't inherit or default
10428 * target.h (struct target_ops) <to_log_command>: Use
10429 TARGET_DEFAULT_IGNORE.
10430 (target_log_command): Unconditionally delegate.
10432 2014-02-19 Tom Tromey <tromey@redhat.com>
10434 * target-delegates.c: Rebuild.
10435 * target.c (update_current_target): Don't inherit or default
10436 to_pid_to_exec_file.
10437 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10438 TARGET_DEFAULT_RETURN.
10440 2014-02-19 Tom Tromey <tromey@redhat.com>
10442 * target-delegates.c: Rebuild.
10443 * target.c (update_current_target): Don't inherit or default
10445 (target_thread_name): Unconditionally delegate.
10446 * target.h (struct target_ops) <to_thread_name>: Use
10447 TARGET_DEFAULT_RETURN.
10449 2014-02-19 Tom Tromey <tromey@redhat.com>
10451 * target-delegates.c: Rebuild.
10452 * target.c (update_current_target): Don't inherit or default
10453 to_extra_thread_info.
10454 * target.h (struct target_ops) <to_extra_thread_info>: Use
10455 TARGET_DEFAULT_RETURN.
10457 2014-02-19 Tom Tromey <tromey@redhat.com>
10459 * target-delegates.c: Rebuild.
10460 * target.c (update_current_target): Don't inherit or default
10462 * target.h (struct target_ops) <to_has_exited>: Use
10463 TARGET_DEFAULT_RETURN..
10465 2014-02-19 Tom Tromey <tromey@redhat.com>
10467 * target-delegates.c: Rebuild.
10468 * target.c (update_current_target): Don't inherit or default
10469 to_set_syscall_catchpoint.
10470 (return_one): Remove.
10471 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10472 TARGET_DEFAULT_RETURN.
10474 2014-02-19 Tom Tromey <tromey@redhat.com>
10476 * target-delegates.c: Rebuild.
10477 * target.c (update_current_target): Don't inherit or default
10478 to_insert_exec_catchpoint.
10479 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10480 TARGET_DEFAULT_RETURN.
10482 2014-01-08 Tom Tromey <tromey@redhat.com>
10484 * target-delegates.c: Rebuild.
10485 * target.c (update_current_target): Don't inherit or default
10486 to_insert_exec_catchpoint.
10487 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10488 TARGET_DEFAULT_RETURN.
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10494 to_remove_vfork_catchpoint.
10495 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10496 TARGET_DEFAULT_RETURN.
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10500 * target-delegates.c: Rebuild.
10501 * target.c (update_current_target): Don't inherit or default
10502 to_insert_vfork_catchpoint.
10503 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10504 TARGET_DEFAULT_RETURN.
10506 2014-02-19 Tom Tromey <tromey@redhat.com>
10508 * target-delegates.c: Rebuild.
10509 * target.c (update_current_target): Don't inherit or default
10510 to_remove_fork_catchpoint.
10511 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10512 TARGET_DEFAULT_RETURN.
10514 2014-02-19 Tom Tromey <tromey@redhat.com>
10516 * target-delegates.c: Rebuild.
10517 * target.c (update_current_target): Don't inherit or default
10518 to_insert_fork_catchpoint.
10519 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10520 TARGET_DEFAULT_RETURN.
10522 2014-02-19 Tom Tromey <tromey@redhat.com>
10524 * target-delegates.c: Rebuild.
10525 * target.c (update_current_target): Don't inherit or default
10526 to_post_startup_inferior.
10527 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10528 TARGET_DEFAULT_IGNORE.
10530 2014-02-19 Tom Tromey <tromey@redhat.com>
10532 * target-delegates.c: Rebuild.
10533 * target.c (update_current_target): Don't inherit or default
10535 * target.h (struct target_ops) <to_load>: Use
10536 TARGET_DEFAULT_NORETURN.
10538 2014-02-19 Tom Tromey <tromey@redhat.com>
10540 * target-delegates.c: Rebuild.
10541 * target.c (update_current_target): Don't inherit or default
10543 * target.h (struct target_ops) <to_terminal_info>: Use
10544 TARGET_DEFAULT_FUNC.
10546 2014-02-19 Tom Tromey <tromey@redhat.com>
10548 * target-delegates.c: Rebuild.
10549 * target.c (update_current_target): Don't inherit or default
10550 to_terminal_save_ours.
10551 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10552 TARGET_DEFAULT_IGNORE.
10554 2014-02-19 Tom Tromey <tromey@redhat.com>
10556 * target-delegates.c: Rebuild.
10557 * target.c (update_current_target): Don't inherit or default
10559 * target.h (struct target_ops) <to_terminal_ours>: Use
10560 TARGET_DEFAULT_IGNORE.
10562 2014-02-19 Tom Tromey <tromey@redhat.com>
10564 * target-delegates.c: Rebuild.
10565 * target.c (update_current_target): Don't inherit or default
10566 to_terminal_ours_for_output.
10567 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10568 TARGET_DEFAULT_IGNORE.
10570 2014-02-19 Tom Tromey <tromey@redhat.com>
10572 * target-delegates.c: Rebuild.
10573 * target.c (update_current_target): Don't inherit or default
10574 to_terminal_inferior.
10575 * target.h (struct target_ops) <to_terminal_inferior>: Use
10576 TARGET_DEFAULT_IGNORE.
10578 2014-02-19 Tom Tromey <tromey@redhat.com>
10580 * target-delegates.c: Rebuild.
10581 * target.c (update_current_target): Don't inherit or default
10583 * target.h (struct target_ops) <to_terminal_init>: Use
10584 TARGET_DEFAULT_IGNORE.
10586 2014-02-19 Tom Tromey <tromey@redhat.com>
10588 * target-delegates.c: Rebuild.
10589 * target.c (update_current_target): Don't inherit or default
10590 to_can_accel_watchpoint_condition.
10591 * target.h (struct target_ops)
10592 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10594 2014-02-19 Tom Tromey <tromey@redhat.com>
10596 * target-delegates.c: Rebuild.
10597 * target.c (update_current_target): Don't inherit or default
10598 to_region_ok_for_hw_watchpoint.
10599 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10600 Use TARGET_DEFAULT_FUNC.
10602 2014-02-19 Tom Tromey <tromey@redhat.com>
10604 * target-delegates.c: Rebuild.
10605 * target.c (update_current_target): Don't inherit or default
10606 to_watchpoint_addr_within_range.
10607 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10608 Use TARGET_DEFAULT_FUNC.
10610 2014-02-19 Tom Tromey <tromey@redhat.com>
10612 * target-delegates.c: Rebuild.
10613 * target.c (update_current_target): Don't inherit or default
10614 to_remove_watchpoint.
10615 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10616 TARGET_DEFAULT_NORETURN.
10618 2014-02-19 Tom Tromey <tromey@redhat.com>
10620 * target-delegates.c: Rebuild.
10621 * target.c (update_current_target): Don't inherit or default
10622 to_insert_watchpoint.
10623 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10624 TARGET_DEFAULT_RETURN.
10626 2014-02-19 Tom Tromey <tromey@redhat.com>
10628 * target-delegates.c: Rebuild.
10629 * target.c (update_current_target): Don't inherit or default
10630 to_remove_hw_breakpoint.
10631 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10632 TARGET_DEFAULT_RETURN.
10634 2014-02-19 Tom Tromey <tromey@redhat.com>
10636 * target-delegates.c: Rebuild.
10637 * target.c (update_current_target): Don't inherit or default
10638 to_insert_hw_breakpoint.
10639 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10640 TARGET_DEFAULT_RETURN.
10642 2014-02-19 Tom Tromey <tromey@redhat.com>
10644 * target-delegates.c: Rebuild.
10645 * target.c (update_current_target): Don't inherit or default
10646 to_can_use_hw_breakpoint.
10647 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10648 TARGET_DEFAULT_RETURN.
10650 2014-02-19 Tom Tromey <tromey@redhat.com>
10652 * target-delegates.c: Rebuild.
10653 * target.c (update_current_target): Don't inherit or default
10655 * target.h (struct target_ops) <to_files_info>: Use
10656 TARGET_DEFAULT_IGNORE.
10658 2014-02-19 Tom Tromey <tromey@redhat.com>
10660 * target-delegates.c: Rebuild.
10661 * target.c (update_current_target): Don't inherit or default
10663 * target.h (struct target_ops) <to_store>: Use
10664 TARGET_DEFAULT_NORETURN.
10666 2014-02-19 Tom Tromey <tromey@redhat.com>
10668 * target-delegates.c: Rebuild.
10669 * target.c (update_current_target): Don't inherit or default
10671 * target.h (struct target_ops) <to_post_attach>: Use
10672 TARGET_DEFAULT_IGNORE.
10674 2014-02-19 Tom Tromey <tromey@redhat.com>
10676 * target-delegates.c: Rebuild.
10677 * target.c (update_current_target): Don't inherit or default
10679 (default_rcmd): New function.
10680 (do_monitor_command): Unconditionally delegate.
10681 * target.h (struct target_ops) <to_rmcd>: Use
10682 TARGET_DEFAULT_FUNC.
10684 2014-02-19 Tom Tromey <tromey@redhat.com>
10686 * target-delegates.c: Rebuild.
10687 * target.c (init_dummy_target): Don't initialize to_attach.
10688 (target_attach): Unconditionally delegate.
10689 * target.h (struct target_ops) <to_attach>: Use
10690 TARGET_DEFAULT_FUNC.
10692 2014-02-19 Tom Tromey <tromey@redhat.com>
10694 * target-delegates.c: Rebuild.
10695 * target.c (target_detach): Unconditionally delegate.
10696 (init_dummy_target): Don't initialize to_detach.
10697 * target.h (struct target_ops) <to_detach>: Use
10698 TARGET_DEFAULT_IGNORE.
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10702 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10704 (target_augmented_libraries_svr4_read): Add argument.
10705 * target.c (update_current_target): Update.
10706 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10709 2014-02-19 Tom Tromey <tromey@redhat.com>
10711 * target.h (struct target_ops) <to_call_history_range>: Add
10713 * target.c (target_call_history_range): Add argument.
10714 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10716 (record_btrace_call_history_from): Update.
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10720 * target.h (struct target_ops) <to_call_history_from>: Add
10722 * target.c (target_call_history_from): Add argument.
10723 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10728 * target.h (struct target_ops) <to_call_history>: Add argument.
10729 * target.c (target_call_history): Add argument.
10730 * record-btrace.c (record_btrace_call_history): Add 'self'
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10735 * target.h (struct target_ops) <to_insn_history_range>: Add
10737 * target.c (target_insn_history_range): Add argument.
10738 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10740 (record_btrace_insn_history_from): Update.
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10744 * target.h (struct target_ops) <to_insn_history_from>: Add
10746 * target.c (target_insn_history_from): Add argument.
10747 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10750 2014-02-19 Tom Tromey <tromey@redhat.com>
10752 * target.h (struct target_ops) <to_insn_history>: Add argument.
10753 * target.c (target_insn_history): Add argument.
10754 * record-btrace.c (record_btrace_insn_history): Add 'self'
10757 2014-02-19 Tom Tromey <tromey@redhat.com>
10759 * target.h (struct target_ops) <to_goto_record>: Add argument.
10760 * target.c (target_goto_record): Add argument.
10761 * record-full.c (record_full_goto): Add 'self' argument.
10762 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10764 2014-02-19 Tom Tromey <tromey@redhat.com>
10766 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10767 * target.c (target_goto_record_end): Add argument.
10768 * record-full.c (record_full_goto_end): Add 'self' argument.
10769 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10773 * target.h (struct target_ops) <to_goto_record_begin>: Add
10775 * target.c (target_goto_record_begin): Add argument.
10776 * record-full.c (record_full_goto_begin): Add 'self' argument.
10777 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10780 2014-02-19 Tom Tromey <tromey@redhat.com>
10782 * target.h (struct target_ops) <to_record_is_replaying>: Add
10784 * target.c (target_record_is_replaying): Add argument.
10785 * record-full.c (record_full_is_replaying): Add 'self' argument.
10786 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10788 (record_btrace_xfer_partial, record_btrace_store_registers)
10789 (record_btrace_prepare_to_store, record_btrace_resume)
10790 (record_btrace_wait, record_btrace_decr_pc_after_break)
10791 (record_btrace_find_new_threads, record_btrace_thread_alive):
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10796 * target.h (struct target_ops) <to_delete_record>: Add argument.
10797 * target.c (target_delete_record): Add argument.
10798 * record-full.c (record_full_delete): Add 'self' argument.
10800 2014-02-19 Tom Tromey <tromey@redhat.com>
10802 * target.h (struct target_ops) <to_save_record>: Add argument.
10803 * target.c (target_save_record): Add argument.
10804 * record-full.c (record_full_save): Add 'self' argument.
10805 (record_full_save): Add 'self' argument.
10807 2014-02-19 Tom Tromey <tromey@redhat.com>
10809 * target.h (struct target_ops) <to_info_record>: Add argument.
10810 * target.c (target_info_record): Add argument.
10811 * record.c (info_record_command): Add argument.
10812 * record-full.c (record_full_info): Add 'self' argument.
10813 * record-btrace.c (record_btrace_info): Add 'self' argument.
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10817 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10818 * target.c (target_stop_recording): Add argument.
10819 * record.c (record_stop): Add argument.
10820 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10823 2014-02-19 Tom Tromey <tromey@redhat.com>
10825 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10826 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10827 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10829 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10830 (_initialize_amd64_linux_nat): Use it.
10831 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10832 (_initialize_i386_linux_nat): Use it.
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10837 * target.c (target_teardown_btrace): Add argument.
10838 * remote.c (remote_teardown_btrace): Add 'self' argument.
10839 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10841 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10844 2014-02-19 Tom Tromey <tromey@redhat.com>
10846 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10847 * target.c (target_disable_btrace): Add argument.
10848 * remote.c (remote_disable_btrace): Add 'self' argument.
10849 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10851 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10856 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10857 * target.c (target_enable_btrace): Add argument.
10858 * remote.c (remote_enable_btrace): Add 'self' argument.
10859 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10861 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10864 2014-02-19 Tom Tromey <tromey@redhat.com>
10866 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10867 (target_can_use_agent): Add argument.
10868 * target.c (update_current_target): Update.
10869 * remote.c (remote_can_use_agent): Add 'self' argument.
10870 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10872 2014-02-19 Tom Tromey <tromey@redhat.com>
10874 * target.h (struct target_ops) <to_use_agent>: Add argument.
10875 (target_use_agent): Add argument.
10876 * target.c (update_current_target): Update.
10877 * remote.c (remote_use_agent): Add 'self' argument.
10878 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10882 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10883 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10884 (target_traceframe_info): Add argument.
10885 * target.c (update_current_target): Update.
10886 * remote.c (remote_traceframe_info): Add 'self' argument.
10887 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10891 * target.h (target_static_tracepoint_markers_by_strid): Add
10893 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10895 * target.c (update_current_target): Update.
10896 * remote.c (struct target_ops)
10897 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10898 * linux-nat.c (struct target_ops)
10899 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10901 2014-02-19 Tom Tromey <tromey@redhat.com>
10903 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10905 (target_static_tracepoint_marker_at): Add argument.
10906 * target.c (update_current_target): Update.
10907 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10912 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10913 (target_set_permissions): Add argument.
10914 * target.c (update_current_target): Update.
10915 * remote.c (remote_set_permissions): Add 'self' argument.
10916 (remote_start_remote): Update.
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10920 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10921 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10922 (target_get_tib_address): Add argument.
10923 * target.c (update_current_target): Update.
10924 * remote.c (remote_get_tib_address): Add 'self' argument.
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10928 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10929 (target_set_trace_notes): Add argument.
10930 * target.c (update_current_target): Update.
10931 * remote.c (remote_set_trace_notes): Add 'self' argument.
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10935 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10937 (target_set_trace_buffer_size): Add argument.
10938 * target.c (update_current_target): Update.
10939 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10941 2014-02-19 Tom Tromey <tromey@redhat.com>
10943 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10945 (target_set_circular_trace_buffer): Add argument.
10946 * target.c (update_current_target): Update.
10947 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10950 2014-02-19 Tom Tromey <tromey@redhat.com>
10952 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10954 (target_set_disconnected_tracing): Add argument.
10955 * target.c (update_current_target): Update.
10956 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10960 * target.h (struct target_ops)
10961 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10962 (target_get_min_fast_tracepoint_insn_len): Add argument.
10963 * target.c (update_current_target): Update.
10964 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10967 2014-02-19 Tom Tromey <tromey@redhat.com>
10969 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10971 (target_get_raw_trace_data): Add argument.
10972 * target.c (update_current_target): Update.
10973 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10975 2014-02-19 Tom Tromey <tromey@redhat.com>
10977 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10979 (target_upload_trace_state_variables): Add argument.
10980 * target.c (update_current_target): Update.
10981 * remote.c (remote_upload_trace_state_variables): Add 'self'
10983 (remote_start_remote): Update.
10985 2014-02-19 Tom Tromey <tromey@redhat.com>
10987 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10989 (target_upload_tracepoints): Add argument.
10990 * target.c (update_current_target): Update.
10991 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10992 (remote_start_remote): Update.
10994 2014-02-19 Tom Tromey <tromey@redhat.com>
10996 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10997 (target_save_trace_data): Add argument.
10998 * target.c (update_current_target): Update.
10999 * remote.c (remote_save_trace_data): Add 'self' argument.
11001 2014-02-19 Tom Tromey <tromey@redhat.com>
11003 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11005 * target.h (struct target_ops)
11006 <to_get_trace_state_variable_value>: Add argument.
11007 (target_get_trace_state_variable_value): Add argument.
11008 * target.c (update_current_target): Update.
11009 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11011 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11013 2014-02-19 Tom Tromey <tromey@redhat.com>
11015 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11016 * target.h (struct target_ops) <to_trace_find>: Add argument.
11017 (target_trace_find): Add argument.
11018 * target.c (update_current_target): Update.
11019 * remote.c (remote_trace_find): Add 'self' argument.
11020 * ctf.c (ctf_trace_find): Add 'self' argument.
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11024 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11025 (target_trace_stop): Add argument.
11026 * target.c (update_current_target): Update.
11027 * remote.c (remote_trace_stop): Add 'self' argument.
11029 2014-02-19 Tom Tromey <tromey@redhat.com>
11031 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11032 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11034 (target_get_tracepoint_status): Add argument.
11035 * target.c (update_current_target): Update.
11036 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11038 2014-02-19 Tom Tromey <tromey@redhat.com>
11040 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11041 * target.h (struct target_ops) <to_get_trace_status>: Add
11043 (target_get_trace_status): Add argument.
11044 * target.c (update_current_target): Update.
11045 * remote.c (remote_get_trace_status): Add 'self' argument.
11046 (remote_start_remote, remote_can_download_tracepoint): Update.
11047 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11049 2014-02-19 Tom Tromey <tromey@redhat.com>
11051 * target.h (struct target_ops) <to_trace_start>: Add argument.
11052 (target_trace_start): Add argument.
11053 * target.c (update_current_target): Update.
11054 * remote.c (remote_trace_start): Add 'self' argument.
11056 2014-02-19 Tom Tromey <tromey@redhat.com>
11058 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11060 (target_trace_set_readonly_regions): Add argument.
11061 * target.c (update_current_target): Update.
11062 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11065 2014-02-19 Tom Tromey <tromey@redhat.com>
11067 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11069 (target_disable_tracepoint): Add argument.
11070 * target.c (update_current_target): Update.
11071 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11073 2014-02-19 Tom Tromey <tromey@redhat.com>
11075 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11077 (target_enable_tracepoint): Add argument.
11078 * target.c (update_current_target): Update.
11079 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11081 2014-02-19 Tom Tromey <tromey@redhat.com>
11083 * target.h (struct target_ops) <to_download_trace_state_variable>:
11085 (target_download_trace_state_variable): Add argument.
11086 * target.c (update_current_target): Update.
11087 * remote.c (remote_download_trace_state_variable): Add 'self'
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11092 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11094 (target_can_download_tracepoint): Add argument.
11095 * target.c (update_current_target): Update.
11096 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11098 2014-02-19 Tom Tromey <tromey@redhat.com>
11100 * target.h (struct target_ops) <to_download_tracepoint>: Add
11102 (target_download_tracepoint): Add argument.
11103 * target.c (update_current_target): Update.
11104 * remote.c (remote_download_tracepoint): Add 'self' argument.
11106 2014-02-19 Tom Tromey <tromey@redhat.com>
11108 * target.h (struct target_ops) <to_trace_init>: Add argument.
11109 (target_trace_init): Add argument.
11110 * target.c (update_current_target): Update.
11111 * remote.c (remote_trace_init): Add 'self' argument.
11113 2014-02-19 Tom Tromey <tromey@redhat.com>
11115 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11116 * target.c (target_fileio_readlink): Add argument.
11117 * remote.c (remote_hostio_readlink): Add 'self' argument.
11118 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11120 2014-02-19 Tom Tromey <tromey@redhat.com>
11122 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11123 * target.c (target_fileio_unlink): Add argument.
11124 * remote.c (remote_hostio_unlink): Add 'self' argument.
11125 (remote_file_delete): Update.
11126 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11128 2014-02-19 Tom Tromey <tromey@redhat.com>
11130 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11131 * target.c (target_fileio_close): Add argument.
11132 * remote.c (remote_hostio_close): Add 'self' argument.
11133 (remote_hostio_close_cleanup): Update.
11134 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11136 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11138 2014-02-19 Tom Tromey <tromey@redhat.com>
11140 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11141 * target.c (target_fileio_pread): Add argument.
11142 * remote.c (remote_hostio_pread): Add 'self' argument.
11143 (remote_bfd_iovec_pread, remote_file_get): Update.
11144 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11146 2014-02-19 Tom Tromey <tromey@redhat.com>
11148 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11149 * target.c (target_fileio_pwrite): Add argument.
11150 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11151 (remote_file_put): Update.
11152 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11154 2014-02-19 Tom Tromey <tromey@redhat.com>
11156 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11157 * target.c (target_fileio_open): Add argument.
11158 * remote.c (remote_hostio_open): Add 'self' argument.
11159 (remote_bfd_iovec_open): Add 'self' argument.
11160 (remote_file_put): Add 'self' argument.
11161 (remote_file_get): Add 'self' argument.
11162 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11168 (target_can_run_breakpoint_commands): Add argument.
11169 * target.c (update_current_target): Update.
11170 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11172 (remote_insert_breakpoint): Add 'self' argument.
11173 (remote_insert_hw_breakpoint): Add 'self' argument.
11174 (remote_can_run_breakpoint_commands): Add 'self' argument.
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11178 * target.h (struct target_ops)
11179 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11180 (target_supports_evaluation_of_breakpoint_conditions): Add
11182 * target.c (update_current_target): Update.
11183 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11185 (remote_insert_breakpoint): Add 'self' argument.
11186 (remote_insert_hw_breakpoint): Add 'self' argument.
11187 (remote_supports_cond_breakpoints): Add 'self' argument.
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11191 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11193 (target_supports_string_tracing): Add argument.
11194 * target.c (update_current_target): Update.
11195 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11199 * target.h (struct target_ops)
11200 <to_supports_disable_randomization>: Add argument.
11201 * target.c (find_default_supports_disable_randomization): Add
11203 (target_supports_disable_randomization): Add argument.
11204 (find_default_supports_disable_randomization): Add 'self'
11206 * remote.c (extended_remote_supports_disable_randomization): Add
11208 (remote_supports_disable_randomization): Add 'self' argument.
11209 (extended_remote_create_inferior): Update.
11210 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11215 * target.h (struct target_ops)
11216 <to_supports_enable_disable_tracepoint>: Add argument.
11217 (target_supports_enable_disable_tracepoint): Add argument.
11218 * target.c (update_current_target): Update.
11219 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11224 * target.h (struct target_ops) <to_supports_multi_process>: Add
11226 (target_supports_multi_process): Add argument.
11227 * target.c (update_current_target): Update.
11228 * remote.c (remote_supports_multi_process): Add 'self' argument.
11229 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11231 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11234 2014-02-19 Tom Tromey <tromey@redhat.com>
11236 * target.h (struct target_ops) <to_execution_direction>: Add
11238 (target_execution_direction): Add argument.
11239 * target.c (default_execution_direction): Add 'self' argument.
11240 * record-full.c (record_full_execution_direction): Add 'self'
11243 2014-02-19 Tom Tromey <tromey@redhat.com>
11245 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11247 (target_can_execute_reverse): Add argument.
11248 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11249 * record-full.c (record_full_can_execute_reverse): Add 'self'
11251 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11256 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11257 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11259 (target_get_ada_task_ptid): Add argument.
11260 * target.c (update_current_target): Update.
11261 (default_get_ada_task_ptid): Add 'self' argument.
11262 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11263 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11264 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11266 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11268 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11270 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11272 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11273 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11276 2014-02-19 Tom Tromey <tromey@redhat.com>
11278 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11279 (target_goto_bookmark): Add argument.
11280 * target.c (dummy_goto_bookmark): Add 'self' argument.
11281 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11283 2014-02-19 Tom Tromey <tromey@redhat.com>
11285 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11286 (target_get_bookmark): Add argument.
11287 * target.c (dummy_get_bookmark): Add 'self' argument.
11288 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11290 2014-02-19 Tom Tromey <tromey@redhat.com>
11292 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11294 (target_make_corefile_notes): Add argument.
11295 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11296 * procfs.c (procfs_make_note_section): Add 'self' argument.
11297 (procfs_make_note_section): Add 'self' argument.
11298 (procfs_make_note_section): Add 'self' argument.
11299 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11301 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11302 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11303 * exec.c (exec_make_note_section): Add 'self' argument.
11304 (exec_make_note_section): Add 'self' argument.
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11308 * target.h (struct target_ops) <to_find_memory_regions>: Add
11310 (target_find_memory_regions): Add argument.
11311 * target.c (dummy_find_memory_regions): Add 'self' argument.
11312 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11313 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11314 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11315 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11316 * exec. (exec_do_find_memory_regions): New global.
11317 (exec_set_find_memory_regions): Rewrite.
11318 (exec_find_memory_regions): New function.
11319 (init_exec_ops): Use exec_find_memory_regions.
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11323 * target.h (struct target_ops) <to_supports_non_stop>: Add
11325 * target.c (find_default_supports_non_stop): Add argument.
11326 (target_supports_non_stop): Add argument.
11327 (find_default_supports_non_stop): Add 'self' argument.
11328 * remote.c (remote_supports_non_stop): Add 'self' argument.
11329 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11331 2014-02-19 Tom Tromey <tromey@redhat.com>
11333 * target.h (struct target_ops) <to_log_command>: Add argument.
11334 (target_log_command): Add argument.
11335 * serial.h (serial_log_command): Add 'self' argument.
11336 * serial.c (serial_log_command): Add 'self' argument.
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11340 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11341 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11343 (target_pid_to_exec_file): Add argument.
11344 * target.c (debug_to_pid_to_exec_file): Add argument.
11345 (update_current_target): Update.
11346 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11347 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11348 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11349 (linux_handle_extended_wait): Update.
11350 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11351 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11352 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11353 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11355 2014-02-19 Tom Tromey <tromey@redhat.com>
11357 * target.h (struct target_ops) <to_rcmd>: Add argument.
11358 (target_rcmd): Add argument.
11359 * target.c (debug_to_rcmd): Add argument.
11360 (update_current_target, do_monitor_command): Update.
11361 * remote.c (remote_rcmd): Add 'self' argument.
11362 * monitor.c (monitor_rcmd): Add 'self' argument.
11364 2014-02-19 Tom Tromey <tromey@redhat.com>
11366 * windows-nat.c (windows_stop): Add 'self' argument.
11367 * target.h (struct target_ops) <to_stop>: Add argument.
11368 * target.c (target_stop): Add argument.
11369 (debug_to_stop): Add argument.
11370 (update_current_target): Update.
11371 * remote.c (remote_stop): Add 'self' argument.
11372 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11373 (gdbsim_cntrl_c): Update.
11374 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11375 * procfs.c (procfs_stop): Add 'self' argument.
11376 * nto-procfs.c (procfs_stop): Add 'self' argument.
11377 * monitor.c (monitor_stop): Add 'self' argument.
11378 (monitor_open): Update.
11379 * linux-nat.c (linux_nat_stop): Add argument.
11380 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11381 * gnu-nat.c (gnu_stop): Add 'self' argument.
11382 * darwin-nat.c (darwin_stop): Add 'self' argument.
11384 2014-02-19 Tom Tromey <tromey@redhat.com>
11386 * target.h (struct target_ops) <to_thread_name>: Add argument.
11387 * target.c (target_thread_name): Add argument.
11388 (update_current_target): Update.
11389 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11391 2014-02-19 Tom Tromey <tromey@redhat.com>
11393 * target.h (struct target_ops) <to_extra_thread_info>: Add
11395 (target_extra_thread_info): Add argument.
11396 * target.c (update_current_target): Update.
11397 * remote.c (remote_threads_extra_info): Add 'self' argument.
11398 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11400 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11401 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11402 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11404 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11406 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11408 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11411 2014-02-19 Tom Tromey <tromey@redhat.com>
11413 * target.h (struct target_ops) <to_program_signals>: Add argument.
11414 * target.c (target_program_signals): Add argument.
11415 * remote.c (remote_program_signals): Add 'self' argument.
11417 2014-02-19 Tom Tromey <tromey@redhat.com>
11419 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11420 * target.c (target_pass_signals): Add argument.
11421 * remote.c (remote_pass_signals): Add 'self' argument.
11422 (remote_start_remote): Update.
11423 * procfs.c (procfs_pass_signals): Add 'self' argument.
11424 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11425 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11426 (linux_nat_create_inferior, linux_nat_attach): Update.
11428 2014-02-19 Tom Tromey <tromey@redhat.com>
11430 * windows-nat.c (windows_can_run): Add 'self' argument.
11431 * target.h (struct target_ops) <to_can_run>: Add argument.
11432 (target_can_run): Add argument.
11433 * target.c (debug_to_can_run): Add argument.
11434 (update_current_target): Update.
11435 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11436 * inf-child.c (inf_child_can_run): Add 'self' argument.
11437 * go32-nat.c (go32_can_run): Add 'self' argument.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * target.h (struct target_ops) <to_has_exited>: Add argument.
11442 (target_has_exited): Add argument.
11443 * target.c (debug_to_has_exited): Add argument.
11444 (update_current_target): Update.
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11448 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11450 (target_set_syscall_catchpoint): Add argument.
11451 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11453 * target.c (update_current_target): Update.
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11457 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11459 (target_remove_exec_catchpoint): Add argument.
11460 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11461 (update_current_target): Update.
11462 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11467 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11469 (target_insert_exec_catchpoint): Add argument.
11470 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11471 (update_current_target): Update.
11472 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11477 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11479 (target_remove_vfork_catchpoint): Add argument.
11480 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11481 (update_current_target): Update.
11482 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11485 2014-02-19 Tom Tromey <tromey@redhat.com>
11487 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11489 (target_insert_vfork_catchpoint): Add argument.
11490 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11491 (update_current_target): Update.
11492 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11495 2014-02-19 Tom Tromey <tromey@redhat.com>
11497 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11499 (target_remove_fork_catchpoint): Add argument.
11500 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11501 (update_current_target): Update.
11502 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11505 2014-02-19 Tom Tromey <tromey@redhat.com>
11507 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11509 (target_insert_fork_catchpoint): Add argument.
11510 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11511 (update_current_target): Update.
11512 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11515 2014-02-19 Tom Tromey <tromey@redhat.com>
11517 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11519 (target_post_startup_inferior): Add argument.
11520 * target.c (debug_to_post_startup_inferior): Add argument.
11521 (update_current_target): Update.
11522 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11524 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11526 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11528 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11530 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11532 (super_post_startup_inferior): Likewise.
11533 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11535 (super_post_startup_inferior): Likewise.
11536 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11537 Add 'self' argument.
11538 (super_post_startup_inferior): Likewise.
11540 2014-02-19 Tom Tromey <tromey@redhat.com>
11542 * target.h (struct target_ops) <to_load>: Add argument.
11543 * target.c (target_load): Add argument.
11544 (debug_to_load): Add argument.
11545 (update_current_target): Update.
11546 * remote.c (remote_load): Add 'self' argument.
11547 * remote-sim.c (gdbsim_load): Add 'self' argument.
11548 * remote-mips.c (mips_load): Add 'self' argument.
11549 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11550 * monitor.c (monitor_load): Add 'self' argument.
11551 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11553 2014-02-19 Tom Tromey <tromey@redhat.com>
11555 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11556 (target_terminal_info): Add argument.
11557 * target.c (debug_to_terminal_info): Add argument.
11558 (default_terminal_info): Likewise.
11559 * inflow.c (child_terminal_info): Add 'self' argument.
11560 * inferior.h (child_terminal_info): Add 'self' argument.
11561 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11563 2014-02-19 Tom Tromey <tromey@redhat.com>
11565 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11567 (target_terminal_save_ours): Add argument.
11568 * target.c (debug_to_terminal_save_ours): Add argument.
11569 (update_current_target): Update.
11570 * inflow.c (terminal_save_ours): Add 'self' argument.
11571 * inferior.h (terminal_save_ours): Add 'self' argument.
11573 2014-02-19 Tom Tromey <tromey@redhat.com>
11575 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11576 (target_terminal_ours): Add argument.
11577 * target.c (debug_to_terminal_ours): Add argument.
11578 (update_current_target): Update.
11579 * remote.c (remote_terminal_ours): Add 'self' argument.
11580 (remote_close): Update.
11581 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11582 * inflow.c (terminal_ours): Add 'self' argument.
11583 * inferior.h (terminal_ours): Add 'self' argument.
11584 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11586 2014-02-19 Pedro Alves <palves@redhat.com>
11587 Tom Tromey <tromey@redhat.com>
11589 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11591 (target_terminal_ours_for_output): Add argument.
11592 * target.c (debug_to_terminal_ours_for_output): Add argument.
11593 (update_current_target): Update.
11594 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11595 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11596 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11598 2014-02-19 Tom Tromey <tromey@redhat.com>
11600 * target.h (struct target_ops) <to_terminal_inferior>: Add
11602 * target.c (target_terminal_inferior): Add argument.
11603 (update_current_target): Update.
11604 * remote.c (remote_terminal_inferior): Add 'self' argument.
11605 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11606 * inflow.c (terminal_inferior): Add 'self' argument.
11607 * inferior.h (terminal_inferior): Add 'self' argument.
11608 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11609 (go32_terminal_inferior): Add 'self' argument.
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11613 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11614 (target_terminal_init): Add argument.
11615 * target.c (debug_to_terminal_init): Add argument.
11616 (update_current_target): Update.
11617 * inflow.c (terminal_init_inferior): Add 'self' argument.
11618 * inferior.h (terminal_init_inferior): Add 'self' argument.
11619 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11620 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11622 2014-02-19 Tom Tromey <tromey@redhat.com>
11624 * target.h (struct target_ops)
11625 <to_can_accel_watchpoint_condition>: Add argument.
11626 (target_can_accel_watchpoint_condition): Add argument.
11627 * target.c (debug_to_can_accel_watchpoint_condition): Add
11629 (update_current_target): Update.
11630 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11633 2014-02-19 Tom Tromey <tromey@redhat.com>
11635 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11637 (target_region_ok_for_hw_watchpoint): Add argument.
11638 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11639 (default_region_ok_for_hw_watchpoint): Add argument.
11640 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11641 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11643 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11645 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11647 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11649 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11651 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11653 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11654 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11656 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11657 Add 'self' argument.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11663 (target_insert_watchpoint): Add argument.
11664 * target.c (debug_to_insert_watchpoint): Add argument.
11665 (update_current_target): Update.
11666 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11667 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11668 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11669 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11670 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11671 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11673 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11674 (procfs_insert_hw_watchpoint): Add 'self' argument.
11675 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11677 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11679 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11681 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11682 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11684 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11687 2014-02-19 Tom Tromey <tromey@redhat.com>
11689 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11691 (target_remove_watchpoint): Add argument.
11692 * target.c (debug_to_remove_watchpoint): Add argument.
11693 (update_current_target): Update.
11694 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11695 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11696 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11697 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11698 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11699 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11701 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11702 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11704 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11706 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11708 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11709 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11711 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11716 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11718 (target_remove_hw_breakpoint): Add argument.
11719 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11720 (update_current_target): Update.
11721 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11722 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11724 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11725 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11727 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11730 2014-02-19 Tom Tromey <tromey@redhat.com>
11732 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11734 (target_insert_hw_breakpoint): Add argument.
11735 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11736 (update_current_target): Update.
11737 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11738 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11740 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11741 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11742 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11744 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11747 2014-02-19 Tom Tromey <tromey@redhat.com>
11749 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11751 (target_can_use_hardware_watchpoint): Add argument.
11752 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11753 (update_current_target): Update.
11754 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11756 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11758 * remote.c (remote_check_watch_resources): Add 'self' argument.
11759 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11760 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11762 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11763 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11765 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11767 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11769 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11771 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11773 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11775 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11776 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11778 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11781 2014-02-19 Tom Tromey <tromey@redhat.com>
11783 * target.h (struct target_ops) <to_post_attach>: Add argument.
11784 (target_post_attach): Add argument.
11785 * target.c (debug_to_post_attach): Add argument.
11786 (update_current_target): Update.
11787 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11788 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11789 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11790 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11791 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11795 * windows-nat.c (windows_close): Add 'self' argument.
11796 * tracepoint.c (tfile_close): Add 'self' argument.
11797 * target.h (struct target_ops) <to_close>: Add argument.
11798 * target.c (target_close): Add argument.
11799 (update_current_target): Update.
11800 * remote.c (remote_close): Add 'self' argument.
11801 * remote-sim.c (gdbsim_close): Add 'self' argument.
11802 * remote-mips.c (mips_close): Add 'self' argument.
11803 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11804 * record-full.c (record_full_close): Add 'self' argument.
11805 * record-btrace.c (record_btrace_close): Add 'self' argument.
11806 * monitor.h (monitor_close): Add 'self' argument.
11807 * monitor.c (monitor_close): Add 'self' argument.
11808 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11809 * linux-nat.c (linux_nat_close): Add argument.
11810 * go32-nat.c (go32_close): Add 'self' argument.
11811 * exec.c (exec_close_1): Add 'self' argument.
11812 * ctf.c (ctf_close): Add 'self' argument.
11813 * corelow.c (core_close): Add 'self' argument.
11814 (core_close_cleanup): Update.
11815 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11816 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11818 2014-02-19 Tom Tromey <tromey@redhat.com>
11820 * remote.c (remote_load): New function.
11821 (init_remote_ops): Use it.
11823 2014-02-19 Tom Tromey <tromey@redhat.com>
11825 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11827 * common/linux-btrace.h (linux_supports_btrace): Update.
11828 * remote.c (remote_supports_btrace): Add "self" argument.
11829 * target-delegates.c: Rebuild.
11830 * target.c (target_supports_btrace): Remove.
11831 * target.h (struct target_ops) <to_supports_btrace>: Add
11832 target_ops argument.
11833 (target_supports_btrace): New define.
11835 2014-02-19 Tom Tromey <tromey@redhat.com>
11837 * record-full.c (record_full_beneath_to_resume_ops)
11838 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11839 (record_full_beneath_to_wait)
11840 (record_full_beneath_to_store_registers_ops)
11841 (record_full_beneath_to_store_registers)
11842 (record_full_beneath_to_xfer_partial_ops)
11843 (record_full_beneath_to_xfer_partial)
11844 (record_full_beneath_to_insert_breakpoint_ops)
11845 (record_full_beneath_to_insert_breakpoint)
11846 (record_full_beneath_to_remove_breakpoint_ops)
11847 (record_full_beneath_to_remove_breakpoint)
11848 (record_full_beneath_to_stopped_by_watchpoint)
11849 (record_full_beneath_to_stopped_data_address)
11850 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11851 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11852 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11853 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11854 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11855 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11856 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11857 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11858 (record_full_resume, record_full_wait_1)
11859 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11860 (record_full_store_registers, record_full_xfer_partial)
11861 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11862 (record_full_async, record_full_core_xfer_partial): Use target
11864 * target-delegates.c: Rebuild.
11865 * target.c (current_xfer_partial): Remove.
11866 (update_current_target): Do not INHERIT or de_fault
11867 to_insert_breakpoint, to_remove_breakpoint,
11868 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11869 to_is_async_p, to_async. Do not set to_xfer_partial field.
11870 (default_xfer_partial): Simplify.
11871 (current_xfer_partial): Remove.
11872 (target_wait, target_resume): Simplify.
11873 (find_default_can_async_p, find_default_is_async_p): Update.
11874 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11875 to_xfer_partial, to_stopped_by_watchpoint,
11876 to_stopped_data_address.
11877 (target_store_registers): Simplify.
11878 (forward_target_remove_breakpoint)
11879 (forward_target_insert_breakpoint): Remove.
11880 (target_remove_breakpoint, target_insert_breakpoint)
11881 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11882 * target.h (struct target_ops) <to_resume, to_wait,
11883 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11884 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11885 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11887 (forward_target_remove_breakpoint)
11888 (forward_target_insert_breakpoint): Remove.
11889 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11891 (record_btrace_insert_breakpoint): Delegate directly.
11893 2014-02-19 Tom Tromey <tromey@redhat.com>
11896 * target-delegates.c: New file.
11897 * target.c: Include target-delegates.c.
11898 (init_dummy_target): Call install_dummy_methods.
11899 (complete_target_initialization): Call install_delegators.
11900 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11901 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11902 * make-target-delegates: New file.
11904 2014-02-19 Tom Tromey <tromey@redhat.com>
11906 * record.c (find_record_target): Use find_target_at.
11907 * target.c (find_target_at): New function.
11908 * target.h (find_target_at): Declare.
11910 2014-02-19 Tom Tromey <tromey@redhat.com>
11912 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11913 Add 'ops' argument.
11914 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11916 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11917 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11919 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11921 * linux-nat.c (save_sigtrap): Update.
11922 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11923 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11924 (linux_nat_close): Update.
11925 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11927 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11929 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11930 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11931 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11932 (tmp_to_async): Add 'ops' argument.
11933 (record_full_stopped_by_watchpoint, record_full_async)
11934 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11936 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11937 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11938 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11939 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11940 (remote_is_async_p, remote_async): Add 'ops' argument.
11941 (remote_stopped_data_address): Update.
11942 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11943 * target.c (update_current_target)
11944 (find_default_can_async_p, find_default_is_async_p): Update.
11945 (init_dummy_target): Update.
11946 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11947 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11948 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11949 (target_can_async_p, target_is_async_p, target_async)
11950 (target_stopped_by_watchpoint): Update.
11952 2014-02-19 Yao Qi <yao@codesourcery.com>
11955 * gdbarch.sh: Remove startup_gdbarch.
11956 * gdbarch.c: Regenerated.
11957 * gdbarch.h: Likewise.
11959 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11961 * rl78-tdep.c (rl78_g10_register_name): New function.
11962 (rl78_return_value): Add g10 support.
11963 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11966 2014-02-17 Doug Evans <xdje42@gmail.com>
11968 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11969 (SUBDIR_GUILE_SRCS): Ditto.
11970 (scm-gsmob.o): Ditto.
11972 2014-02-17 Yao Qi <yao@codesourcery.com>
11974 * gnu-nat.c (ILL_RPC): Declare defined function.
11976 2014-02-17 Yao Qi <yao@codesourcery.com>
11978 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11979 mach_msg_type_number_t.
11980 (gnu_write_inferior): Likewise.
11982 2014-02-17 Yao Qi <yao@codesourcery.com>
11984 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11986 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11987 (inf_validate_procs, inf_signal): Likewise.
11988 (S_exception_raise_request): Likewise.
11989 (do_mach_notify_dead_name): Likewise.
11990 (steal_exc_port): Likewise.
11991 (gnu_read_inferior): Change 'copy_count''s type to
11992 mach_msg_type_number_t.
11993 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11996 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11998 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11999 flag. Adjust all users; in particular...
12000 (gnu_wait): ..., don't decrement its value in here...
12001 (gnu_create_inferior): ..., and instead set the flag in here,
12002 around the startup_inferior call, and call that one with
12003 START_INFERIOR_TRAPS_EXPECTED.
12005 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12006 (ILL_RPC): ... new macro.
12007 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12008 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12009 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12010 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12011 functions with ILL_RPC macro.
12012 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12013 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12014 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12015 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12016 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12017 (S_proc_getlogin_reply, S_proc_getsid_reply)
12018 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12019 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12020 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12021 (S_proc_getnports_reply, S_proc_is_important_reply)
12022 (S_proc_get_code_reply): New stub functions, generated with
12025 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12026 collected the type check structures.
12028 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12030 2014-02-14 Doug Evans <dje@google.com>
12032 * target.c (target_write_partial): Fix result type.
12034 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12036 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12037 the proper offsets to access fpregset_t.
12039 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12041 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12042 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12043 * h8300-tdep.c (setmachinelist): Remove global.
12044 * hppa-tdep.c (hppa_sigtramp): Remove global.
12045 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12046 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12047 * ravenscar-thread.c (update_target_observer): Remove global.
12048 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12050 2014-02-12 Tom Tromey <tromey@redhat.com>
12052 * common/rsp-low.c: Update comments.
12053 * common/rsp-low.h: Update comments.
12055 2014-02-12 Tom Tromey <tromey@redhat.com>
12057 * common/rsp-low.c (convert_ascii_to_int): Remove.
12058 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12060 2014-02-12 Tom Tromey <tromey@redhat.com>
12062 * common/rsp-low.h (unhexify): Don't declare.
12063 * common/rsp-low.c (unhexify): Remove.
12065 2014-02-12 Tom Tromey <tromey@redhat.com>
12067 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12068 * common/rsp-low.c (convert_int_to_ascii): Remove.
12070 2014-02-12 Tom Tromey <tromey@redhat.com>
12072 * common/rsp-low.h (hexify): Don't declare.
12073 * common/rsp-low.c (hexify): Remove.
12075 2014-02-12 Tom Tromey <tromey@redhat.com>
12077 * common/rsp-low.c (hexify): Never take strlen of argument.
12079 2014-02-12 Tom Tromey <tromey@redhat.com>
12081 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12082 * remote.c (extended_remote_run, remote_rcmd)
12083 (remote_download_trace_state_variable, remote_save_trace_data)
12084 (remote_set_trace_notes): Update.
12085 * tracepoint.c (encode_source_string, tfile_write_status)
12086 (tfile_write_uploaded_tsv): Update.
12088 2014-02-12 Tom Tromey <tromey@redhat.com>
12090 * tracepoint.c: Include rsp-low.h.
12091 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12092 * remote.c: Include rsp-low.h.
12093 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12094 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12095 (remote_unescape_input): Move to common/rsp-low.c.
12096 * common/rsp-low.h: New file.
12097 * common/rsp-low.c: New file.
12098 * Makefile.in (SFILES): Add common/rsp-low.c.
12099 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12100 (COMMON_OBS): Add rsp-low.o.
12101 (rsp-low.o): New target.
12103 2014-02-12 Tom Tromey <tromey@redhat.com>
12105 * utils.h: Include print-utils.h.
12106 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12107 (int_string, core_addr_to_string, core_addr_to_string_nz)
12108 (hex_string, hex_string_custom): Don't declare.
12109 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12110 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12111 (hex_string_custom, int_string, core_addr_to_string)
12112 (core_addr_to_string_nz, host_address_to_string): Move to
12113 common/print-utils.c.
12114 * common/print-utils.h: New file.
12115 * common/print-utils.c: New file
12116 * Makefile.in (SFILES): Add common/print-utils.c.
12117 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12118 (COMMON_OBS): Add print-utils.o.
12119 (print-utils.o): New target.
12121 2014-02-12 Tom Tromey <tromey@redhat.com>
12123 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12125 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12127 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12129 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12131 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12132 if a PT_IO ptrace request returns sucessfully but indicates that 0
12133 bytes were transferred.
12135 2014-02-12 Pedro Alves <palves@redhat.com>
12136 Kevin Buettner <kevinb@redhat.com>
12138 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12139 TYPE_INSTANCE_FLAG_CODE_SPACE.
12141 2014-02-12 Pedro Alves <palves@redhat.com>
12143 * h8300-tdep.c (pseudo_from_raw_register)
12144 (raw_from_pseudo_register): New functions.
12145 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12148 2014-02-12 Pedro Alves <palves@redhat.com>
12150 * h8300-tdep.c (h8300_register_sim_regno): New function.
12151 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12152 gdbarch_register_sim_regno hook.
12154 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12156 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12158 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12160 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12162 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12164 * obsd-tdep.h (obsd_init_abi): New prototype.
12165 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12166 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12167 (obsd_init_abi): New functions.
12168 * i386obsd-tdep.c: Include "obsd-tdep.h".
12169 (i386obsd_init_abi): Call obsd_init_abi.
12170 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12171 (amd64obsd_init_abi): Call obsd_init_abi.
12172 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12173 obsd-tdep.c to gdb_target_obs.
12175 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12177 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12178 double float arguments to 16-byte in the argument slots.
12180 2014-02-11 Doug Evans <xdje42@gmail.com>
12182 * configure.ac: Don't crash if pkg-config is not found and guile
12183 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12185 * configure: Regenerate.
12187 2014-02-11 Yao Qi <yao@codesourcery.com>
12189 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12190 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12191 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12192 * gnu-nat.c (gnu_xfer_memory): Likewise.
12193 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12194 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12195 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12196 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12198 2014-02-11 Yao Qi <yao@codesourcery.com>
12200 * target.h (enum target_xfer_error): Rename to ...
12201 (enum target_xfer_status): ... it. New. All users updated.
12202 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12204 (TARGET_XFER_STATUS_ERROR_P): New macro.
12205 (target_xfer_error_to_string): Remove declaration.
12206 (target_xfer_status_to_string): Declare.
12207 (target_xfer_partial_ftype): Adjust it.
12208 (struct target_ops) <to_xfer_partial>: Return
12209 target_xfer_status. Add argument xfered_len. Update
12211 * target.c (target_xfer_error_to_string): Rename to ...
12212 (target_xfer_status_to_string): ... it. New. All callers
12214 (target_read_live_memory): Likewise. Call target_xfer_partial
12215 instead of target_read.
12216 (memory_xfer_live_readonly_partial): Return
12217 target_xfer_status. Add argument xfered_len.
12218 (raw_memory_xfer_partial): Likewise.
12219 (memory_xfer_partial_1): Likewise.
12220 (memory_xfer_partial): Likewise.
12221 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12222 properly. Update debug message.
12223 (default_xfer_partial, current_xfer_partial): Likewise.
12224 (target_write_partial): Likewise.
12225 (target_read_partial): Likewise. All callers updated.
12226 (read_whatever_is_readable): Likewise.
12227 (target_write_with_progress): Likewise.
12228 (target_read_alloc_1): Likewise.
12230 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12231 * auxv.c (procfs_xfer_auxv): Likewise.
12232 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12233 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12234 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12235 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12236 * corefile.c (read_memory): Adjust.
12237 * corelow.c (core_xfer_partial): Likewise.
12238 * ctf.c (ctf_xfer_partial): Likewise.
12239 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12241 (darwin_xfer_partial): Likewise.
12242 * exec.c (section_table_xfer_memory_partial): Likewise. All
12244 (exec_xfer_partial): Likewise.
12245 * exec.h (section_table_xfer_memory_partial): Update
12247 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12249 (gnu_xfer_partial): Likewise.
12250 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12251 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12252 (ia64_hpux_xfer_solib_got): Likewise.
12253 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12254 type of 'partial_len' to ULONGEST.
12255 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12256 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12257 (linux_nat_xfer_partial): Likewise.
12258 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12259 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12260 * monitor.c (monitor_xfer_memory): Likewise.
12261 (monitor_xfer_partial): Likewise.
12262 * procfs.c (procfs_xfer_partial): Likewise.
12263 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12264 * record-full.c (record_full_xfer_partial): Likewise.
12265 (record_full_core_xfer_partial): Likewise.
12266 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12267 (gdbsim_xfer_partial): Likewise.
12268 * remote.c (remote_write_bytes_aux): Likewise. All callers
12270 (remote_write_bytes, remote_read_bytes): Likewise. All
12272 (remote_flash_erase): Likewise. All callers updated.
12273 (remote_write_qxfer): Likewise. All callers updated.
12274 (remote_read_qxfer): Likewise. All callers updated.
12275 (remote_xfer_partial): Likewise.
12276 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12277 (rs6000_xfer_shared_libraries): Likewise.
12278 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12279 (sol_thread_xfer_partial): Likewise.
12280 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12281 (sparc_xfer_partial): Likewise.
12282 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12284 (spu_xfer_partial): Likewise.
12285 * spu-multiarch.c (spu_xfer_partial): Likewise.
12286 * tracepoint.c (tfile_xfer_partial): Likewise.
12287 * windows-nat.c (windows_xfer_memory): Likewise.
12288 (windows_xfer_shared_libraries): Likewise.
12289 (windows_xfer_partial): Likewise.
12290 * valprint.c: Replace 'target_xfer_error' with
12291 'target_xfer_status' in comments.
12293 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12295 Checked in by Joel Brobecker <brobecker@adacore.com>.
12296 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12298 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12300 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12301 function parameters.
12303 2014-02-10 Will Newton <will.newton@linaro.org>
12305 * elfread.c (elf_rel_plt_read): Look for a .got section if
12306 looking up .got.plt fails.
12307 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12308 on address passed to elf_gnu_ifunc_record_cache.
12309 (elf_gnu_ifunc_resolve_addr): Likewise.
12310 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12312 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12314 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12315 (X_RETTURN): New macro.
12316 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12318 * sparc64-tdep.c (sparc64_init_abi): Hook
12319 sparc_in_function_epilogue_p.
12321 2014-02-10 Gary Benson <gbenson@redhat.com>
12323 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12324 Rename name_matcher to symbol_matcher.
12326 2014-02-10 Gary Benson <gbenson@redhat.com>
12328 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12329 Use expand_symtabs_file_matcher_ftype and
12330 expand_symtabs_symbol_matcher_ftype.
12332 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12334 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12335 (struct ada_symbol_cache): New.
12336 (ada_free_symbol_cache): Forward declare.
12337 (struct ada_pspace_data): New.
12338 (ada_pspace_data_handle): New static global.
12339 (get_ada_pspace_data, ada_pspace_data_cleanup)
12340 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12341 (cache_space, cache): Delete, now folded inside struct
12343 (ada_get_symbol_cache): New function.
12344 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12346 (_initialize_ada_language): Remove initialization of cache_space.
12347 Move call to observer_attach_inferior_exit up, grouping it
12348 with the other observer registrations inside this function.
12349 Rename command to be more general. Add call to
12350 register_program_space_data_with_cleanup.
12352 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12354 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12355 ada_new_objfile_observer.
12356 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12357 (_initialize_tasks): Update uses of ada_new_objfile_observer
12358 and ada_tasks_normal_stop_observer.
12360 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12362 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12363 returned by the 'Length attribute to integer.
12365 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12367 * ada-lang.c (_initialize_ada_language): Initialize
12368 cache_space obstack.
12370 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12372 * ada-lang.c (HASH_SIZE): New macro.
12373 (struct cache_entry): New type.
12374 (cache_space, cache): New static globals.
12375 (ada_clear_symbol_cache, find_entry): New functions.
12376 (lookup_cached_symbol, cache_symbol): Implement.
12377 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12378 (_initialize_ada_language): Attach ada_new_objfile_observer
12379 and ada_free_objfile_observer.
12381 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12383 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12384 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12385 struct block * parameter.
12386 (ada_lookup_symbol_list_worker): Constify local variable "block".
12387 Remove cast which is no longer necessary.
12389 2014-02-10 Doug Evans <xdje42@gmail.com>
12391 Add Guile as an extension language.
12392 * NEWS: Mention Guile scripting.
12393 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12394 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12395 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12396 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12397 (CLIBS): Add GUILE_LIBS.
12398 (install-guile): New rule.
12399 (guile.o): New rule.
12400 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12401 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12402 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12403 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12404 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12405 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12406 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12407 * configure.ac: New option --with-guile.
12408 * configure: Regenerate.
12409 * config.in: Regenerate.
12410 * auto-load.c: Remove #include "python/python.h". Add #include
12411 "gdb/section-scripts.h".
12412 (source_section_scripts): Handle Guile scripts.
12413 (_initialize_auto_load): Add name of Guile objfile script to
12414 scripts-directory help text.
12415 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12416 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12417 (struct breakpoint): New member scm_bp_object.
12418 * defs.h (enum command_control_type): New value guile_control.
12419 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12421 (show_user): Update comment.
12422 (_initialize_cli_cmds): Update help text for "show user". Update help
12423 text for max-user-call-depth.
12424 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12426 (multi_line_command_p): Add guile_control.
12427 (print_command_lines): Handle guile_control.
12428 (execute_control_command, recurse_read_control_structure): Ditto.
12429 (process_next_line): Recognize "guile" commands.
12430 * disasm.c (gdb_disassemble_info): Make non-static.
12431 * disasm.h: #include "dis-asm.h".
12432 (struct gdbarch): Add forward decl.
12433 (gdb_disassemble_info): Declare.
12434 * extension.c: #include "guile/guile.h".
12435 (extension_languages): Add guile.
12436 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12437 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12438 * gdbtypes.c (get_unsigned_type_max): New function.
12439 (get_signed_type_minmax): New function.
12440 * gdbtypes.h (get_unsigned_type_max): Declare.
12441 (get_signed_type_minmax): Declare.
12442 * guile/README: New file.
12443 * guile/guile-internal.h: New file.
12444 * guile/guile.c: New file.
12445 * guile/guile.h: New file.
12446 * guile/scm-arch.c: New file.
12447 * guile/scm-auto-load.c: New file.
12448 * guile/scm-block.c: New file.
12449 * guile/scm-breakpoint.c: New file.
12450 * guile/scm-disasm.c: New file.
12451 * guile/scm-exception.c: New file.
12452 * guile/scm-frame.c: New file.
12453 * guile/scm-gsmob.c: New file.
12454 * guile/scm-iterator.c: New file.
12455 * guile/scm-lazy-string.c: New file.
12456 * guile/scm-math.c: New file.
12457 * guile/scm-objfile.c: New file.
12458 * guile/scm-ports.c: New file.
12459 * guile/scm-pretty-print.c: New file.
12460 * guile/scm-safe-call.c: New file.
12461 * guile/scm-string.c: New file.
12462 * guile/scm-symbol.c: New file.
12463 * guile/scm-symtab.c: New file.
12464 * guile/scm-type.c: New file.
12465 * guile/scm-utils.c: New file.
12466 * guile/scm-value.c: New file.
12467 * guile/lib/gdb.scm: New file.
12468 * guile/lib/gdb/boot.scm: New file.
12469 * guile/lib/gdb/experimental.scm: New file.
12470 * guile/lib/gdb/init.scm: New file.
12471 * guile/lib/gdb/iterator.scm: New file.
12472 * guile/lib/gdb/printing.scm: New file.
12473 * guile/lib/gdb/types.scm: New file.
12474 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12475 (VPATH): Add $(GUILE_SRCDIR).
12476 (GUILE_DIR): New variable.
12477 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12478 (all): Add stamp-guile dependency.
12479 (stamp-guile): New rule.
12480 (clean-guile, install-guile, uninstall-guile): New rules.
12481 (install-only): Add install-guile dependency.
12482 (uninstall): Add uninstall-guile dependency.
12483 (clean): Add clean-guile dependency.
12485 2014-02-09 Doug Evans <xdje42@gmail.com>
12487 Revert this patch (which I approved, mea culpa).
12489 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12491 * Makefile.in (all-lib): Remove.
12492 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12494 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12496 Fix Python stack corruption.
12497 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12500 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12502 * Makefile.in (all-lib): Remove.
12503 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12505 2014-02-07 Doug Evans <dje@google.com>
12507 * extension-priv.h (extension_language_script_ops): Add comment.
12508 (extension_language_ops): Add comment.
12509 (active_ext_lang_state): Fix typo in comment.
12511 2014-02-07 Pedro Alves <palves@redhat.com>
12513 PR breakpoints/16292
12514 * infrun.c (handle_signal_stop) <signal arrives while stepping
12515 over a breakpoint>: Switch back to the stepping thread.
12517 2014-02-07 Yao Qi <yao@codesourcery.com>
12519 * target.c (target_xfer_partial): Return zero if LEN is zero.
12521 2014-02-07 Yao Qi <yao@codesourcery.com>
12523 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12524 (ld_so_xfer_auxv): Likewise.
12525 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12526 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12527 * corelow.c (core_xfer_partial): Likewise.
12528 * ctf.c (ctf_xfer_partial): Likewise.
12529 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12530 (darwin_xfer_partial): Likewise.
12531 * exec.c (exec_xfer_partial): Likewise.
12532 * gnu-nat.c (gnu_xfer_partial): Likewise.
12533 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12534 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12535 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12536 * linux-nat.c (linux_xfer_siginfo): Likewise.
12537 (linux_proc_xfer_spu): Likewise.
12538 * procfs.c (procfs_xfer_partial): Likewise.
12539 * record-full.c (record_full_xfer_partial): Likewise.
12540 (record_full_core_xfer_partial): Likewise.
12541 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12542 * remote.c (remote_write_qxfer): Likewise.
12543 (remote_write_qxfer, remote_read_qxfer): Likewise.
12544 (remote_xfer_partial): Likewise.
12545 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12546 (rs6000_xfer_shared_libraries): Likewise.
12547 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12548 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12549 (spu_xfer_partial): Likewise.
12550 * target.c (memory_xfer_partial_1): Likewise.
12551 * tracepoint.c (tfile_xfer_partial): Likewise.
12552 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12553 (windows_xfer_partial): Likewise.
12555 2014-02-07 Yao Qi <yao@codesourcery.com>
12557 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12559 (core_xfer_shared_libraries_aix): Likewise.
12560 * gdbarch.c, gdbarch.h: Regenerated.
12561 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12562 ULONGEST. Change 'len_avail' type to ULONGEST.
12563 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12564 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12566 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12568 2014-02-07 Yao Qi <yao@codesourcery.com>
12570 * corefile.c (memory_error): Get 'exception' from ERR and pass
12571 'exception' to throw_error.
12573 2014-02-06 Doug Evans <xdje42@gmail.com>
12575 * configure.ac (libpython checking): Remove all but python.o from
12576 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12577 * configure: Regenerate.
12579 * Makefile.in (SFILES): Add extension.c.
12580 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12581 (COMMON_OBS): Add extension.o.
12582 * extension.h: New file.
12583 * extension-priv.h: New file.
12584 * extension.c: New file.
12586 * python/python-internal.h: #include "extension.h".
12587 (gdbpy_auto_load_enabled): Declare.
12588 (gdbpy_apply_val_pretty_printer): Declare.
12589 (gdbpy_apply_frame_filter): Declare.
12590 (gdbpy_preserve_values): Declare.
12591 (gdbpy_breakpoint_cond_says_stop): Declare.
12592 (gdbpy_breakpoint_has_cond): Declare.
12593 (void source_python_script_for_objfile): Delete.
12594 * python/python.c: #include "extension-priv.h".
12595 Delete inclusion of "observer.h".
12596 (extension_language_python): Moved here and renamed from
12597 script_language_python in py-auto-load.c.
12598 Redefined to be of type extension_language_defn.
12599 (python_extension_script_ops): New global.
12600 (python_extension_ops): New global.
12601 (struct python_env): New member previous_active.
12602 (restore_python_env): Call restore_active_ext_lang.
12603 (ensure_python_env): Call set_active_ext_lang.
12604 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12606 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12608 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12610 (gdbpy_eval_from_control_command): Renamed from
12611 eval_python_from_control_command, made static. New arg extlang.
12612 (gdbpy_source_script) Renamed from source_python_script, made static.
12614 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12615 result to int. New arg extlang.
12616 (gdbpy_source_objfile_script): Renamed from
12617 source_python_script_for_objfile, made static. New arg extlang.
12618 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12619 static. New args extlang, extlang_printers. Change result type to
12621 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12622 static. New arg extlang. Rename arg printers to extlang_printers
12623 and change type to ext_lang_type_printers *.
12624 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12625 static. Replace argument arg with extlang, extlang_printers.
12626 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12627 (!HAVE_PYTHON, source_python_script): Delete.
12628 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12629 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12630 (!HAVE_PYTHON, start_type_printers): Delete.
12631 (!HAVE_PYTHON, apply_type_printers): Delete.
12632 (!HAVE_PYTHON, free_type_printers): Delete.
12633 (_initialize_python): Delete call to observer_attach_before_prompt.
12634 (finalize_python): Set/restore active extension language.
12635 (gdbpy_finish_initialization) Renamed from
12636 finish_python_initialization, made static. New arg extlang.
12637 (gdbpy_initialized): New function.
12638 * python/python.h: #include "extension.h". Delete #include
12639 "value.h", "mi/mi-cmds.h".
12640 (extension_language_python): Declare.
12641 (GDBPY_AUTO_FILE_NAME): Delete.
12642 (enum py_bt_status): Moved to extension.h and renamed to
12643 ext_lang_bt_status.
12644 (enum frame_filter_flags): Moved to extension.h.
12645 (enum py_frame_args): Moved to extension.h and renamed to
12646 ext_lang_frame_args.
12647 (finish_python_initialization): Delete.
12648 (eval_python_from_control_command): Delete.
12649 (source_python_script): Delete.
12650 (apply_val_pretty_printer): Delete.
12651 (apply_frame_filter): Delete.
12652 (preserve_python_values): Delete.
12653 (gdbpy_script_language_defn): Delete.
12654 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12655 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12657 * auto-load.c: #include "extension.h".
12658 (GDB_AUTO_FILE_NAME): Delete.
12659 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12660 (script_language_gdb): Delete, moved to extension.c and renamed to
12661 extension_language_gdb.
12662 (source_gdb_script_for_objfile): Delete.
12663 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12664 (loaded_script): Change type of language member to
12665 struct extension_language_defn *.
12666 (init_loaded_scripts_info): Initialize
12667 unsupported_script_warning_printed.
12668 (maybe_add_script): Make static. Change type of language arg to
12669 struct extension_language_defn *.
12670 (clear_section_scripts): Reset unsupported_script_warning_printed.
12671 (auto_load_objfile_script_1): Rewrite to use extension language API.
12672 (auto_load_objfile_script): Make public. Remove support-compiled-in
12673 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12674 (source_section_scripts): Rewrite to use extension language API.
12675 (load_auto_scripts_for_objfile): Rewrite to use
12676 auto_load_scripts_for_objfile.
12677 (collect_matching_scripts_data): Change type of language member to
12678 struct extension_language_defn *.
12679 (auto_load_info_scripts): Change type of language arg to
12680 struct extension_language_defn *.
12681 (unsupported_script_warning_print): New function.
12682 (script_not_found_warning_print): Make static.
12683 (_initialize_auto_load): Rewrite construction of scripts-directory
12685 * auto-load.h (struct objfile): Add forward decl.
12686 (struct script_language): Delete.
12687 (struct auto_load_pspace_info): Add forward decl.
12688 (struct extension_language_defn): Add forward decl.
12689 (maybe_add_script): Delete.
12690 (auto_load_objfile_script): Declare.
12691 (script_not_found_warning_print): Delete.
12692 (auto_load_info_scripts): Update prototype.
12693 (auto_load_gdb_scripts_enabled): Declare.
12694 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12695 auto_load_python_scripts_enabled and made public.
12696 (script_language_python): Delete, moved to python.c.
12697 (gdbpy_script_language_defn): Delete.
12698 (info_auto_load_python_scripts): Update to use
12699 extension_language_python.
12701 * breakpoint.c (condition_command): Replace call to
12702 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12703 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12704 with call to breakpoint_ext_lang_cond_says_stop.
12705 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12706 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12707 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12708 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12710 (local_setattro): Print name of extension language with existing
12713 * valprint.c (val_print, value_print): Update to call
12714 apply_ext_lang_val_pretty_printer.
12715 * cp-valprint.c (cp_print_value): Update call to
12716 apply_ext_lang_val_pretty_printer.
12717 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12718 (gdbpy_apply_val_pretty_printer): Renamed from
12719 apply_val_pretty_printer. New arg extlang.
12720 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12722 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12723 extension language API.
12724 * cli/cli-script.c (execute_control_command): Update to call
12725 eval_ext_lang_from_control_command.
12727 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12728 enum ext_lang_bt_status values. Update call to
12729 apply_ext_lang_frame_filter.
12730 (mi_cmd_stack_list_locals): Ditto.
12731 (mi_cmd_stack_list_args): Ditto.
12732 (mi_cmd_stack_list_variables): Ditto.
12733 * mi/mi-main.c: Delete #include "python/python-internal.h".
12734 Add #include "extension.h".
12735 (mi_cmd_list_features): Replace reference to python internal variable
12736 gdb_python_initialized with call to ext_lang_initialized_p.
12738 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12739 Update to use enum ext_lang_frame_args. Update to call
12740 apply_ext_lang_frame_filter.
12741 * python/py-framefilter.c (extract_sym): Update to use enum
12742 ext_lang_bt_status.
12743 (extract_value, py_print_type, py_print_value): Ditto.
12744 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12745 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12746 (py_print_frame): Ditto.
12747 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12748 New arg extlang. Update to use enum ext_lang_bt_status.
12750 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12751 finish_python_initialization. Replace with call to
12752 finish_ext_lang_initialization.
12754 * typeprint.c (do_free_global_table): Update to call
12755 free_ext_lang_type_printers.
12756 (create_global_typedef_table): Update to call
12757 start_ext_lang_type_printers.
12758 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12759 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12760 (type_print_options): Change type of global_printers from "void *"
12761 to "struct ext_lang_type_printers *".
12763 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12764 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12765 (gdbpy_preserve_values): Renamed from preserve_python_values.
12767 (!HAVE_PYTHON, preserve_python_values): Delete.
12769 * utils.c (quit_flag): Delete, moved to extension.c.
12770 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12773 * eval.c: Delete #include "python/python.h".
12774 * main.c: Delete #include "python/python.h".
12776 * defs.h: Update comment.
12778 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12782 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12784 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12787 2014-02-05 Yao Qi <yao@codesourcery.com>
12789 * remote.c (remote_pass_signals): Remove local 'buf' and use
12791 (remote_program_signals): Likewise.
12793 2014-02-05 Yao Qi <yao@codesourcery.com>
12795 * ctf.c: Include "inferior.h" and "gdbthread.h".
12796 (CTF_PID): A new macro.
12797 (ctf_open): Call inferior_appeared and add_thread_silent.
12798 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12799 (ctf_thread_alive): New function.
12800 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12802 2014-02-05 Yao Qi <yao@codesourcery.com>
12806 2013-05-24 Yao Qi <yao@codesourcery.com>
12808 * tracepoint.c (TFILE_PID): Remove.
12809 (tfile_open): Don't add thread and inferior.
12810 (tfile_close): Don't set 'inferior_ptid'. Don't call
12811 exit_inferior_silent.
12812 (tfile_thread_alive): Remove.
12813 (init_tfile_ops): Don't set field 'to_thread_alive' of
12816 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12818 * remote.c (remote_start_remote): Call remote_check_symbols even
12819 if only symbol-file (not file) has been given.
12821 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12823 * gdbarch.sh (skip_entrypoint): New callback.
12824 * gdbarch.c, gdbarch.h: Regenerate.
12825 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12826 * infrun.c (fill_in_stop_func): Likewise.
12827 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12828 (ppc_elfv2_elf_make_msymbol_special): New function.
12829 (ppc_elfv2_skip_entrypoint): Likewise.
12830 (ppc_linux_init_abi): Install them for ELFv2.
12832 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12834 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12835 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12836 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12837 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12838 structures returned in GPRs.
12840 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12842 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12843 offset to the stack parameter list for the ELFv2 ABI.
12845 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12847 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12848 set_gdbarch_convert_from_func_ptr_addr and
12849 set_gdbarch_elf_make_msymbol_special for ELFv1.
12850 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12851 function descriptors on ELFv1.
12852 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12853 set up r12 at function entry.
12855 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12857 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12858 (struct gdbarch_tdep): New member elf_abi.
12860 * rs6000-tdep.c: Include "elf/ppc64.h".
12861 (rs6000_gdbarch_init): Detect ELF ABI version.
12863 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12865 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12866 within a register pair holding a DFP 128-bit value on little-endian.
12867 (ppc64_sysv_abi_return_value_base): Likewise.
12868 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12869 (dfp_pseudo_register_write): Likewise.
12871 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12873 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12874 offset on little-endian when passing _Decimal32.
12875 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12877 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12879 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12880 of the overlapped FP register within the VSX register on little-
12882 (efpr_pseudo_register_write): Likewise.
12884 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12886 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12887 offset on little-endian when passing small structures.
12889 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12891 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12892 (struct ppc64_sysv_argpos): New data structure.
12893 (ppc64_sysv_abi_push_float): Remove.
12894 (ppc64_sysv_abi_push_val): New function.
12895 (ppc64_sysv_abi_push_integer): Likewise.
12896 (ppc64_sysv_abi_push_freg): Likewise.
12897 (ppc64_sysv_abi_push_vreg): Likewise.
12898 (ppc64_sysv_abi_push_param): Likewise.
12899 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12900 (ppc64_sysv_abi_return_value_base): New function.
12901 (ppc64_sysv_abi_return_value): Refactor to use it.
12903 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12905 * NEWS: Document new target powerpc64le-*-linux*.
12907 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12909 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12910 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12912 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12913 register set used in ELF core dumps. Add floating-point register set.
12915 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12917 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12918 dwarf2_to_gdb[] table using symbolic constants. Adjust
12919 penultimate entry from number representing the PC register
12920 to symbolic constant representing the MDR register. Add
12921 constant for the PC register to the end of the table.
12923 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12925 * bsd-kvm.c: Include <sys/param.h>
12927 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12929 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12931 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12933 * ada-lang.h (clear_ada_sym_cache): Delete.
12935 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12937 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12939 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12941 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12942 the sigreturn register save area only if the syscall is
12945 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12947 * valops.c (value_slice): Minor reformatting.
12949 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12951 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12953 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12955 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12956 New static globals.
12957 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12958 (ada_ignore_descriptive_types_p): New static global.
12959 (find_parallel_type_by_descriptive_type): Return immediately
12960 if ada_ignore_descriptive_types_p is set.
12961 (_initialize_ada_language): Register new commands "maintenance
12962 set ada", "maintenance show ada", "maintenance set ada
12963 ignore-descriptive-types" and "maintenance show ada
12964 ignore-descriptive-types".
12965 * NEWS: Add entry for new "maint ada set/show
12966 ignore-descriptive-types" commands.
12968 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12970 * record-btrace.c (record_btrace_close): Call btrace_teardown
12973 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12975 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12978 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12980 * ada-typeprint (type_is_full_subrange_of_target_type):
12982 (print_range): Add parameter bounds_prefered_p. If not set,
12983 try printing range types using the name of their base type.
12984 (print_range_type): Add parameter bounds_prefered_p.
12985 Use it in call to print_range.
12986 (print_array_type, ada_print_type): Update calls to print_range
12987 and print_range_type.
12989 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12991 * ada-typeprint.c (print_array_type, print_choices, print_range)
12992 (print_range_bound, print_dynamic_range_bound, print_range_type):
12993 Remove declaration.
12995 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12997 * ada-typeprint.c (print_range): Add missing empty line
12998 after local declaration.
13000 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13002 * ada-valprint.c (print_optional_low_bound): Get index_type's
13003 target type for as long as it is a TYPE_CODE_RANGE.
13005 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13007 * procfs.c (procfs_make_note_section): Remove assertion and
13008 associated comment.
13010 2014-01-24 Yao Qi <yao@codesourcery.com>
13012 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13013 * corelow.c (get_core_siginfo): Likewise.
13015 2014-01-24 Yao Qi <yao@codesourcery.com>
13017 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13018 ULONGEST. Don't check 'len' is negative.
13019 (remote_write_bytes): Change type of 'len' to ULONGEST.
13021 2014-01-23 Tom Tromey <tromey@redhat.com>
13024 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13025 Handle exception from frame.block.
13026 (FrameVars.fetch_frame_locals): Likewise.
13028 2014-01-23 Tom Tromey <tromey@redhat.com>
13031 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13032 on a NULL pointer. Move "goto error" to correct place.
13034 2014-01-23 Tom Tromey <tromey@redhat.com>
13037 * python/py-framefilter.c (apply_frame_filter): Call
13038 ensure_python_env after computing gdbarch.
13040 2014-01-23 Yao Qi <yao@codesourcery.com>
13042 * target.c (raw_memory_xfer_partial): Change argument type
13043 from void * to gdb_byte *.
13044 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13046 2014-01-22 Doug Evans <dje@google.com>
13048 New gdbserver option --debug-format=timestamp.
13049 * NEWS: Mention it.
13051 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13053 * syscalls/s390x-linux.xml: New file.
13054 * syscalls/s390-linux.xml: New file.
13055 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13056 (XML_SYSCALL_FILENAME_S390X): Likewise.
13057 (op_svc): New enum value for SVC opcode.
13058 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13059 (s390_linux_get_syscall_number): New function.
13060 (s390_gdbarch_init): Register '*get_syscall_number' and the
13061 syscall xml file name.
13062 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13063 "s390-linux.xml" and "s390x-linux.xml".
13064 * NEWS: Announce new feature.
13066 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13068 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13070 2014-01-22 Pedro Alves <palves@redhat.com>
13072 * xtensa-config.c: Include defs.h.
13074 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13076 * common/common-utils.h: Add "ARI:" comment beside __func__
13079 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13081 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13082 documentation a bit.
13084 2014-01-21 Roland McGrath <mcgrathr@google.com>
13086 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13087 * configure: Regenerate.
13088 * aclocal.m4: Regenerate.
13089 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13090 New substituted variables.
13091 (install-strip): New target.
13092 (INSTALL_SCRIPT): New substituted variable.
13093 (FLAGS_TO_PASS): Add it.
13094 (install-only): Use $(INSTALL_SCRIPT) rather than
13095 $(INSTALL_PROGRAM) for gcore.
13097 2014-01-20 Tom Tromey <tromey@redhat.com>
13099 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13102 2014-01-20 Tom Tromey <tromey@redhat.com>
13104 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13105 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13106 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13107 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13108 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13109 (struct cmd_list_element) <flags>: Remove.
13110 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13111 doc_allocated>: New fields.
13112 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13114 * maint.c (maintenance_do_deprecate): Update.
13115 * top.c (execute_command): Update.
13117 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13119 * xtensa-linux-nat.c: Include asm/ptrace.h.
13121 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13123 * Makefile.in (SFILES): Add d-support.c.
13124 (COMMON_OBS): Add d-support.o.
13125 * d-lang.h (d_parse_symbol): Add comment, now defined in
13127 * d-lang.c (parse_call_convention)
13128 (parse_attributes, parse_function_types)
13129 (parse_function_args, parse_type, parse_identifier)
13130 (call_convention_p, d_parse_symbol): Move functions to ...
13131 * d-support.c: ... New file.
13133 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13135 * d-lang.h (d_parse_symbol): Add declaration.
13136 * d-lang.c (extract_identifiers)
13137 (extract_type_info): Remove functions.
13138 (parse_call_convention, parse_attributes)
13139 (parse_function_types, parse_function_args)
13140 (parse_type, parse_identifier, call_convention_p)
13141 (d_parse_symbol): New functions.
13142 (d_demangle): Use d_parse_symbol to demangle D symbols.
13144 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13146 * d-lang.h (struct builtin_d_type): New data type.
13147 (builtin_d_type): Add declaration.
13148 * d-lang.c (d_language_arch_info, build_d_types)
13149 (builtin_d_type): New functions.
13150 (enum d_primitive_types): New data type.
13151 (d_language_defn): Change c_language_arch_info to
13152 d_language_arch_info.
13153 (d_type_data): New static variable.
13154 (_initialize_d_language): Initialize d_type_data.
13156 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13158 * d-lang.h (d_main_name): Add declaration.
13159 * d-lang.c (d_main_name): New function.
13160 * symtab.c (find_main_name): Add call to d_main_name.
13162 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13164 * d-lang.c (d_language_defn): Change macro_expansion_c to
13165 macro_expansion_no.
13167 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13169 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13171 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13173 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13174 gdb_exception" declaration.
13175 * remote.c (getpkt_or_notif_sane): Likewise.
13177 2014-01-17 Doug Evans <dje@google.com>
13179 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13180 function, contents of dirnames_to_char_ptr_vec_append moved here.
13181 (delim_string_to_char_ptr_vec): New function.
13182 (dirnames_to_char_ptr_vec_append): Rewrite.
13183 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13185 2014-01-17 Doug Evans <dje@google.com>
13187 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13189 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13190 #include "common-utils.h".
13191 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13192 * common/vec.h (VEC_ASSERT_PASS): Update.
13193 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13194 (MACH_CHECK_ERROR): Update.
13196 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13198 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13200 * gdbarch.h: Regenerate.
13202 2014-01-16 Tom Tromey <tromey@redhat.com>
13204 * value.c (struct value) <regnum>: Move earlier.
13206 2014-01-16 Tom Tromey <tromey@redhat.com>
13208 * remote.c (extended_remote_create_inferior): Rename from
13209 extended_remote_create_inferior_1. Add "ops" argument. Remove
13210 old implementation.
13212 2014-01-16 Pedro Alves <palves@redhat.com>
13214 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13215 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13218 2014-01-16 Doug Evans <dje@google.com>
13220 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13224 * btrace.h (btrace_thread_flag): New.
13225 (struct btrace_thread_info) <flags>: New.
13226 * record-btrace.c (record_btrace_resume_thread)
13227 (record_btrace_find_thread_to_move, btrace_step_no_history)
13228 (btrace_step_stopped, record_btrace_start_replaying)
13229 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13230 (record_btrace_find_resume_thread): New.
13231 (record_btrace_resume, record_btrace_wait): Extend.
13232 (record_btrace_can_execute_reverse): New.
13233 (record_btrace_open): Fail in non-stop mode.
13234 (record_btrace_set_replay): Split into this, ...
13235 (record_btrace_stop_replaying): ... this, ...
13236 (record_btrace_clear_histories): ... and this.
13237 (init_record_btrace_ops): Init to_can_execute_reverse.
13238 * NEWS: Announce it.
13240 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13242 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13243 (forward_target_decr_pc_after_break)
13244 (target_decr_pc_after_break): New.
13245 * target.c (forward_target_decr_pc_after_break)
13246 (target_decr_pc_after_break): New.
13247 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13248 instead of gdbarch_decr_pc_after_break.
13249 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13250 instead of gdbarch_decr_pc_after_break.
13251 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13252 instead of gdbarch_decr_pc_after_break.
13253 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13254 instead of gdbarch_decr_pc_after_break.
13255 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13256 instead of gdbarch_decr_pc_after_break.
13257 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13258 instead of gdbarch_decr_pc_after_break.
13260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13262 * btrace.c: Include regcache.h.
13263 (btrace_add_pc): New.
13264 (btrace_enable): Call btrace_add_pc.
13265 (btrace_is_empty): New.
13266 * btrace.h (btrace_is_empty): New.
13267 * record-btrace.c (require_btrace, record_btrace_info): Call
13270 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13272 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13273 Support delta reads.
13274 (linux_disable_btrace): Change return type.
13275 * common/linux-btrace.h (linux_read_btrace): Change parameters
13276 and return type to allow error reporting. Update users.
13277 (linux_disable_btrace): Change return type. Update users.
13278 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13280 (btrace_error): New.
13281 (btrace_block) <begin>: Comment on BEGIN == 0.
13282 * btrace.c (btrace_compute_ftrace): Start from the end of
13284 (btrace_stitch_trace, btrace_clear_history): New.
13285 (btrace_fetch): Read delta trace, return if replaying.
13286 (btrace_clear): Move clear history code to btrace_clear_history.
13287 (parse_xml_btrace): Throw an error if parsing failed.
13288 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13289 and return type to allow error reporting.
13290 (target_read_btrace): Change parameters and return type to allow
13292 * target.c (target_read_btrace): Update.
13293 * remote.c (remote_read_btrace): Support delta reads. Pass
13295 * NEWS: Announce it.
13297 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13299 * record.h (record_btrace_frame_unwind)
13300 (record_btrace_tailcall_frame_unwind): New declarations.
13301 * dwarf2-frame: Include record.h
13302 (dwarf2_frame_cfa): Throw an error for btrace frames.
13303 * record-btrace.c: Include hashtab.h.
13304 (btrace_get_bfun_name): New.
13305 (btrace_call_history): Call btrace_get_bfun_name.
13306 (struct btrace_frame_cache): New.
13308 (bfcache_hash, bfcache_eq, bfcache_new): New.
13309 (btrace_get_frame_function): New.
13310 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13311 (record_btrace_frame_this_id): Compute own id.
13312 (record_btrace_frame_prev_register): Provide PC, throw_error
13313 for all other registers.
13314 (record_btrace_frame_sniffer): Detect btrace frames.
13315 (record_btrace_tailcall_frame_sniffer): New.
13316 (record_btrace_frame_dealloc_cache): New.
13317 (record_btrace_frame_unwind): Add new functions.
13318 (record_btrace_tailcall_frame_unwind): New.
13319 (_initialize_record_btrace): Allocate cache.
13320 * btrace.c (btrace_clear): Call reinit_frame_cache.
13321 * NEWS: Announce it.
13323 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13325 * record-btrace.c (record_btrace_set_replay)
13326 (record_btrace_goto_begin, record_btrace_goto_end)
13327 (record_btrace_goto): New.
13328 (init_record_btrace_ops): Initialize them.
13329 * NEWS: Announce it.
13331 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13333 * record-btrace.c (record_btrace_find_new_threads)
13334 (record_btrace_thread_alive): New.
13335 (init_record_btrace_ops): Initialize to_find_new_threads and
13338 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13340 * record-btrace.c (record_btrace_resume): New.
13341 (record_btrace_wait): New.
13342 (init_record_btrace_ops): Initialize to_wait and to_resume.
13344 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13346 * record-btrace.c (record_btrace_xfer_partial)
13347 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13348 (record_btrace_allow_memory_access): New.
13349 (init_record_btrace_ops): Initialize new methods.
13350 * target.c (raw_memory_xfer_partial): Bail out if target reports
13351 that this memory is not available.
13353 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13355 * target.h (target_ops) <to_insert_breakpoint>
13356 <to_remove_breakpoint>: Add target_ops parameter.
13357 (forward_target_insert_breakpoint): New.
13358 (forward_target_remove_breakpoint): New.
13359 (memory_remove_breakpoint, memory_insert_breakpoint):
13360 Add target_ops parameter.
13361 * target.c (target_insert_breakpoint): Split into this and ...
13362 (forward_target_insert_breakpoint): ... this.
13363 (target_remove_breakpoint): Split into this and ...
13364 (forward_target_remove_breakpoint): ... this.
13365 (debug_to_insert_breakpoint): Add target_ops parameter.
13366 Call forward_target_insert_breakpoint.
13367 (debug_to_remove_breakpoint): Add target_ops parameter.
13368 Call forward_target_remove_breakpoint.
13369 (update_current_target): Do not inherit or default to_insert_breakpoint
13370 and to_remove_breakpoint.
13371 * corelow.c (ignore): Add target_ops parameter.
13372 * exec.c (ignore): Add target_ops parameter.
13373 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13374 Add target_ops parameter.
13375 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13376 Add target_ops parameter.
13377 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13378 Add target_ops parameter.
13379 * record-full.c (record_full_beneath_to_insert_breakpoint)
13380 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13381 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13382 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13383 (record_full_core_remove_breakpoint): Add target_ops parameter.
13385 (record_full_beneath_to_insert_breakpoint_ops)
13386 (record_full_beneath_to_remove_breakpoint_ops)
13387 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13388 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13389 tmp_to_remove_breakpoint_ops,
13390 record_full_beneath_to_insert_breakpoint_ops, and
13391 record_full_beneath_to_remove_breakpoint_ops.
13392 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13393 (m32r_remove_breakpoint): Add target_ops parameter.
13394 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13395 Add target_ops parameter.
13396 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13397 Add target_ops parameter.
13399 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13400 Markus Metzger <markus.t.metzger@intel.com>
13402 * record-btrace.c: Include frame-unwind.h.
13403 (record_btrace_frame_unwind_stop_reason)
13404 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13405 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13407 (init_record_btrace_ops): Install it.
13409 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13411 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13414 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13416 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13419 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13421 * frame-unwind.c: Include target.h.
13422 (frame_unwind_try_unwinder): New function with code from ...
13423 (frame_unwind_find_by_frame): ... here. New variable
13424 unwinder_from_target, call also target_get_unwinder)
13425 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13426 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13427 * target.h (struct target_ops): New fields to_get_unwinder and
13428 to_get_tailcall_unwinder.
13429 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13431 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13433 * record-btrace.c (record_btrace_fetch_registers)
13434 (record_btrace_store_registers)
13435 (record_btrace_to_prepare_to_store): New.
13436 (init_record_btrace_ops): Add the above.
13438 2014-01-16 Tom Tromey <tromey@redhat.com>
13440 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13441 * target.h (struct target_ops) <to_prepare_to_store>: Add
13443 (target_prepare_to_store): Add argument.
13444 * target.c (debug_to_prepare_to_store): Add argument.
13445 (update_current_target): Update.
13446 * remote.c (remote_prepare_to_store): Add 'self' argument.
13447 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13448 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13449 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13450 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13452 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13453 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13454 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13455 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13456 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13460 * btrace.h (replay) <replay>: New.
13461 (btrace_is_replaying): New.
13462 * btrace.c (btrace_clear): Free replay iterator.
13463 (btrace_is_replaying): New.
13464 * record-btrace.c (record_btrace_is_replaying): New.
13465 (record_btrace_info): Print insn number if replaying.
13466 (record_btrace_insn_history): Start at replay position.
13467 (record_btrace_call_history): Start at replay position.
13468 (init_record_btrace_ops): Init to_record_is_replaying.
13470 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13472 * record-btrace.c (record_btrace_insn_history_range): Include
13474 (record_btrace_insn_history_from): Adjust range.
13475 (record_btrace_call_history_range): Include
13477 (record_btrace_call_history_from): Adjust range.
13478 * NEWS: Announce changes.
13480 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13482 * record.h (enum record_print_flag)
13483 <record_print_indent_calls>: New.
13484 * record.c (get_call_history_modifiers): Recognize /c modifier.
13485 (_initialize_record): Document /c modifier.
13486 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13487 Reorder fields. Optionally indent the function name. Update
13489 * NEWS: Announce changes.
13491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13493 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13495 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13497 * btrace.c (ftrace_new_function): Start counting at one.
13498 * record-btrace.c (record_btrace_info): Adjust number of calls
13500 * NEWS: Announce it.
13502 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13504 * record-btrace.c (btrace_call_history_insn_range): Print
13505 insn range as [begin, end].
13507 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13509 * btrace.h (struct btrace_func_link): New.
13510 (enum btrace_function_flag): New.
13511 (struct btrace_inst): Rename to ...
13512 (struct btrace_insn): ...this. Update all users.
13513 (struct btrace_func) <ibegin, iend>: Remove.
13514 (struct btrace_func_link): New.
13515 (struct btrace_func): Rename to ...
13516 (struct btrace_function): ...this. Update all users.
13517 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13518 (number, level, flags>: New.
13519 (struct btrace_insn_iterator): Rename to ...
13520 (struct btrace_insn_history): ...this.
13522 (struct btrace_insn_iterator, btrace_call_iterator): New.
13523 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13524 (struct btrace_target_info) <begin, end, level>
13525 <insn_history, call_history>: New.
13526 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13527 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13528 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13529 (btrace_call_number, btrace_call_begin, btrace_call_end)
13530 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13531 (btrace_find_function_by_number, btrace_set_insn_history)
13532 (btrace_set_call_history): New.
13533 * btrace.c (btrace_init_insn_iterator)
13534 (btrace_init_func_iterator, compute_itrace): Remove.
13535 (ftrace_print_function_name, ftrace_print_filename)
13536 (ftrace_skip_file): Change
13537 parameter to const.
13538 (ftrace_init_func): Remove.
13539 (ftrace_debug): Use new btrace_function fields.
13540 (ftrace_function_switched): Also consider gaining and
13541 losing symbol information).
13542 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13543 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13544 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13546 (ftrace_new_function): Move. Remove debug print.
13547 (ftrace_update_lines, ftrace_update_insns): New.
13548 (ftrace_update_function): Check for call, ret, and jump.
13549 (compute_ftrace): Renamed to ...
13550 (btrace_compute_ftrace): ...this. Rewritten to compute call
13552 (btrace_fetch, btrace_clear): Updated.
13553 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13554 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13555 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13556 (btrace_call_number, btrace_call_begin, btrace_call_end)
13557 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13558 (btrace_find_function_by_number, btrace_set_insn_history)
13559 (btrace_set_call_history): New.
13560 * record-btrace.c (require_btrace): Use new btrace thread
13562 (record_btrace_info, btrace_insn_history)
13563 (record_btrace_insn_history, record_btrace_insn_history_range):
13564 Use new btrace thread info fields and new iterator.
13565 (btrace_func_history_src_line): Rename to ...
13566 (btrace_call_history_src_line): ...this. Use new btrace
13567 thread info fields.
13568 (btrace_func_history): Rename to ...
13569 (btrace_call_history): ...this. Use new btrace thread info
13570 fields and new iterator.
13571 (record_btrace_call_history, record_btrace_call_history_range):
13572 Use new btrace thread info fields and new iterator.
13574 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13576 * frame.h (frame_id_build_unavailable_stack_special): New.
13577 * frame.c (frame_id_build_unavailable_stack_special): New.
13579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13581 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13582 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13583 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13585 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13586 (i386_insn_is_jump, i386_jmp_p): New.
13587 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13588 insn_is_jump to gdbarch.
13589 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13590 * gdbarch.h: Regenerated.
13591 * gdbarch.c: Regenerated.
13592 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13593 (default_insn_is_jump): New.
13594 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13595 (default_insn_is_jump): New.
13597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13599 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13601 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13602 (btrace_read_type) <btrace_read_new>: Change to ...
13603 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13607 * common/linux-btrace.c (linux_read_btrace): Free trace from
13608 previous iteration.
13610 2014-01-15 Doug Evans <dje@google.com>
13612 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13615 2014-01-15 Tom Tromey <tromey@redhat.com>
13617 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13618 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13619 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13620 (set_objfile_main_name): New function.
13621 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13622 language_of_main>: New fields.
13623 (set_objfile_main_name): Declare.
13624 * symtab.c (find_main_name): Loop over objfiles to find the main
13626 (set_main_name): Now static.
13627 (get_main_info): Add comment.
13628 * symtab.h (set_main_name): Don't declare.
13630 2014-01-15 Tom Tromey <tromey@redhat.com>
13632 * symtab.c (main_progspace_key): New global.
13633 (struct main_info): New.
13634 (name_of_main, language_of_main): Remove.
13635 (get_main_info, main_info_cleanup): New function.
13636 (set_main_name, main_name, main_language): Use get_main_info.
13637 (_initialize_symtab): Initialize main_progspace_key.
13639 2014-01-15 Tom Tromey <tromey@redhat.com>
13641 * dbxread.c (process_one_symbol): Update.
13642 * dwarf2read.c (read_partial_die): Update.
13643 * symfile.c (set_initial_language): Call main_language.
13644 * symtab.c (language_of_main): Now static.
13645 (set_main_name): Add 'lang' parameter.
13646 (find_main_name): Update.
13647 (main_language): New function.
13648 (symtab_observer_executable_changed): Update.
13649 * symtab.h (set_main_name): Update.
13650 (language_of_main): Remove.
13651 (main_language): Declare.
13653 2014-01-15 Tom Tromey <tromey@redhat.com>
13655 * symfile.c (init_entry_point_info): Use new "initialized" field.
13657 * objfiles.h (struct entry_point) <initialized>: New field.
13658 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13659 (struct objfile) <ei>: ...here. Remove.
13660 * objfiles.c (entry_point_address_query): Update.
13662 2014-01-15 Tom Tromey <tromey@redhat.com>
13664 * objfiles.c (entry_point_address_query): Relocate entry point
13666 (objfile_relocate1): Do not relocate entry point address.
13667 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13668 <the_bfd_section_index>: New field.
13669 * symfile.c (init_entry_point_info): Find the entry point's
13672 2014-01-15 Tom Tromey <tromey@redhat.com>
13674 * solib-frv.c (enable_break): Use entry_point_address_query.
13676 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13678 * NEWS: Add note on improved process record-replay on
13679 arm*-linux* targets.
13681 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13683 * arm-tdep.c (enum arm_record_result): New enum.
13684 (arm_record_unsupported_insn): New function.
13685 (arm_record_coproc_data_proc): Removed.
13686 (thumb2_record_ld_st_multiple): New function.
13687 (thumb2_record_ld_st_dual_ex_tbb): New function.
13688 (thumb2_record_data_proc_sreg_mimm): New function.
13689 (thumb2_record_ps_dest_generic): New function.
13690 (thumb2_record_branch_misc_cntrl): New function.
13691 (thumb2_record_str_single_data): New function.
13692 (thumb2_record_ld_mem_hints): New function.
13693 (thumb2_record_ld_word): New function.
13694 (thumb2_record_lmul_lmla_div): New function.
13695 (thumb2_record_decode_insn_handler): New function.
13696 (decode_insn): Add thumb32 instruction handlers.
13698 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13700 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13701 (struct arm_linux_record_tdep): Declare.
13702 (arm_canonicalize_syscall): New function.
13703 (arm_all_but_pc_registers_record): New function.
13704 (arm_linux_syscall_record): New function.
13705 (arm_linux_init_abi): Add syscall recording constructs.
13706 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13707 decoding. (arm_record_coproc_data_proc): Update arm syscall
13709 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13710 <arm_syscall_record>: New field.
13711 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13714 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13716 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13717 register for push instruction recording.
13719 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13721 * arm-tdep.c (thumb_record_misc): Update to correct logical
13722 error while recording ldm, ldmia and pop instructions.
13724 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13726 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13728 2014-01-15 Pedro Alves <palves@redhat.com>
13730 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13731 (go32_resume, go32_fetch_registers, store_register)
13732 (go32_store_registers, go32_prepare_to_store)
13733 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13734 (go32_create_inferior, go32_can_run, go32_terminal_init)
13735 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13738 2014-01-15 Tom Tromey <tromey@redhat.com>
13740 * target.h (async_callback_ftype): New typedef.
13741 (struct target_ops) <to_async>: Use it.
13743 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13745 * python/py-value.c (get_field_type): Remove unnecessary curly
13746 braces for single-statement if block.
13748 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13750 * python/py-type.c (convert_field): Add missing empty line
13751 after declarations.
13753 2014-01-14 Doug Evans <dje@google.com>
13755 * symfile.h (expand_symtabs_matching): Renamed from
13756 expand_partial_symbol_names. Update prototype.
13757 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13758 * symfile.c (expand_symtabs_matching): Renamed from
13759 expand_partial_symbol_names. New args file_matcher, kind.
13760 Rename arg fun to symbol_matcher.
13761 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13762 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13763 ada_expand_partial_symbol_name.
13764 (ada_make_symbol_completion_list): Update to call
13765 expand_symtabs_matching.
13766 (ada_add_global_exceptions): Call expand_symtabs_matching.
13767 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13768 call map_symbol_filenames.
13769 * symtab.c (sources_info): Update to call map_symbol_filenames.
13770 (search_symbols): Call expand_symtabs_matching.
13771 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13772 (default_make_symbol_completion_list_break_on): Update to call
13773 expand_symtabs_matching.
13774 (make_source_files_completion_list): Update to call
13775 map_symbol_filenames.
13777 2014-01-14 Doug Evans <dje@google.com>
13779 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13780 (expand_symtabs_symbol_matcher_ftype): New typedef.
13781 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13782 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13783 * symfile.c (expand_partial_symbol_names): Update to use
13784 expand_symtabs_symbol_matcher_ftype.
13785 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13786 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13787 Arg name_matcher renamed to symbol_matcher.
13788 * psymtab.c (recursively_search_psymtabs): Update to use
13789 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13791 (expand_symtabs_matching_via_partial): Update to use
13792 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13793 Arg name_matcher renamed to symbol_matcher.
13795 2014-01-14 Doug Evans <dje@google.com>
13797 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13798 (map_partial_symbol_filenames): Ditto.
13799 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13800 (map_partial_symbol_filenames): Ditto.
13801 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13802 (map_partial_symbol_filenames): Ditto.
13803 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13804 (map_partial_symbol_filenames): Ditto.
13805 * symtab.c: Delete #include "psymtab.h".
13807 2014-01-14 Pedro Alves <palves@redhat.com>
13808 Tom Tromey <tromey@redhat.com>
13810 * infrun.c (use_displaced_stepping): Use find_record_target
13811 instead of RECORD_IS_USED.
13812 (adjust_pc_after_break): Use record_full_is_used instead of
13814 * record-btrace.c (record_btrace_open): Call record_preopen
13815 instead of checking RECORD_IS_USED.
13816 * record-full.c (record_full_shortname)
13817 (record_full_core_shortname): New globals.
13818 (record_full_is_used): New function.
13819 (find_full_open): Call record_preopen instead of checking
13821 (init_record_full_ops): Set the target's shortname to
13822 record_full_shortname.
13823 (init_record_full_core_ops): Set the target's shortname to
13824 record_full_core_shortname.
13825 * record-full.h (record_full_is_used): Declare.
13826 * record.c (find_record_target): Make extern.
13827 (record_preopen): New function.
13828 * record.h (RECORD_IS_USED): Delete macro.
13829 (find_record_target, record_preopen): Declare functions.
13831 2014-01-14 Yao Qi <yao@codesourcery.com>
13833 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13834 'len''s type to ULONGEST.
13835 (core_xfer_shared_libraries_aix): Likewise.
13836 * gdbarch.c, gdbarch.h: Regenerated.
13837 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13838 Change type of 'len' to ULONGEST.
13839 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13840 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13842 2014-01-14 Yao Qi <yao@codesourcery.com>
13844 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13845 type of 'len' to ULONGEST.
13846 (linux_xfer_osdata_processgroups): Likewise.
13847 (linux_xfer_osdata_threads): Likewise.
13848 (linux_xfer_osdata_fds): Likewise.
13849 (linux_xfer_osdata_isockets): Likewise.
13850 (linux_xfer_osdata_shm): Likewise.
13851 (linux_xfer_osdata_sem): Likewise.
13852 (linux_xfer_osdata_msg): Likewise.
13853 (linux_common_xfer_osdata): Likewise.
13854 (struct osdata_type) <getter>: Likewise.
13855 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13858 2014-01-14 Yao Qi <yao@codesourcery.com>
13860 * target.h (target_xfer_partial_ftype): Update.
13861 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13863 * aix-thread.c (aix_thread_xfer_partial): Change type of
13864 argument 'len' to ULONGEST.
13865 * auxv.c (procfs_xfer_auxv): Likewise.
13866 (ld_so_xfer_auxv): Likewise.
13867 (memory_xfer_auxv): Likewise.
13868 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13869 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13870 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13871 * corelow.c (core_xfer_partial): Likewise.
13872 * ctf.c (ctf_xfer_partial): Likewise.
13873 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13875 (darwin_read_dyld_info): Likewise.
13876 (darwin_xfer_partial): Likewise.
13877 * exec.c (section_table_xfer_memory_partial): Likewise.
13878 (exec_xfer_partial): Likewise.
13879 * exec.h (section_table_xfer_memory_partial): Update
13881 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13882 instead of plongest.
13883 (gnu_xfer_partial): Likewise.
13884 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13885 (ia64_hpux_xfer_solib_got): Likewise.
13886 (ia64_hpux_xfer_partial): Likewise.
13887 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13888 * inf-ptrace.c (inf_ptrace_xfer_partial):
13889 * inf-ttrace.c (inf_ttrace_xfer_partial):
13890 * linux-nat.c (linux_xfer_siginfo): Likewise.
13891 (linux_nat_xfer_partial): Likewise.
13892 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13893 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13894 * monitor.c (monitor_xfer_memory): Likewise.
13895 (monitor_xfer_partial): Likewise.
13896 * procfs.c (procfs_xfer_partial): Likewise.
13897 * record-full.c (record_full_xfer_partial): Likewise.
13898 (record_full_core_xfer_partial): Likewise.
13899 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13900 instead of plongest.
13901 (gdbsim_xfer_partial): Likewise.
13902 * remote.c (remote_xfer_partial): Likewise.
13903 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13904 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13906 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13907 (rs6000_xfer_shared_libraries): Likewise.
13908 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13909 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13910 (sparc_xfer_partial): Likewise.
13911 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13912 (spu_xfer_partial): Likewise.
13913 * spu-multiarch.c (spu_xfer_partial): Likewise.
13914 * target.c (target_read_live_memory): Likewise.
13915 (memory_xfer_live_readonly_partial): Likewise.
13916 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13917 (target_xfer_partial, default_xfer_partial): Likewise.
13918 (current_xfer_partial): Likewise.
13919 * tracepoint.c (tfile_xfer_partial): Likewise.
13920 * windows-nat.c (windows_xfer_memory): Likewise. Call
13921 pulongest instead of plongest.
13922 (windows_xfer_partial): Likewise.
13923 (windows_xfer_shared_libraries): Likewise.
13925 2014-01-14 Yao Qi <yao@codesourcery.com>
13927 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13928 target_xfer_partial_ftype.
13930 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13934 * valops.c (value_struct_elt_bitpos): New function
13935 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13936 object to 'None' if the field name is an empty string ("").
13937 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13938 attribute to look for a field when 'name' is 'None'.
13939 (get_field_type): New function
13941 2014-01-13 Doug Evans <dje@google.com>
13944 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13945 (try_open_dwop_file): Ditto.
13946 * gdb_bfd.c: #include "vec.h".
13947 (bfdp): New typedef.
13948 (struct gdb_bfd_data): New member included_bfds.
13949 (gdb_bfd_unref): Unref all included bfds.
13950 (gdb_bfd_record_inclusion): New function.
13951 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13953 2014-01-13 Tom Tromey <tromey@redhat.com>
13955 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13957 2014-01-13 Tom Tromey <tromey@redhat.com>
13959 * defs.h (use_windows): Remove.
13960 * gdb.c (main): Update.
13961 * main.c (captured_main, gdb_main): Update.
13962 * main.h (struct captured_main_args) <use_windows>: Remove.
13963 * top.c (use_windows): Remove.
13965 2014-01-13 Tom Tromey <tromey@redhat.com>
13967 * defs.h (deprecated_flush_hook): Remove.
13969 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13972 * linux-thread-db.c (try_thread_db_load): Add parameter
13973 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13974 (try_thread_db_load_from_pdir_1): Move it there from here.
13975 (try_thread_db_load_from_sdir): Update caller.
13976 (try_thread_db_load_from_dir): Move it there from here.
13978 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13980 * regformats/regdat.sh: Always rewrite the register file.
13982 2014-01-13 Pedro Alves <palves@redhat.com>
13984 * Makefile.in (CHECK_HEADERS): New variable.
13985 (check-headers:): New rule.
13987 2014-01-13 Tom Tromey <tromey@redhat.com>
13989 * cli/cli-setshow.c (do_set_command): Update.
13990 * defs.h (deprecated_set_hook): Remove.
13991 * top.c (deprecated_set_hook): Remove.
13993 2014-01-13 Pedro Alves <palves@redhat.com>
13995 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13996 the tracepoint if the PC is a pseudo-register.
13998 2014-01-13 Tom Tromey <tromey@redhat.com>
14000 * defs.h (XCALLOC): Remove.
14001 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14002 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14003 * dwarf2loc.c (allocate_piece_closure): Likewise.
14004 * elfread.c (elf_symfile_segments): Likewise.
14005 (elf_symfile_segments): Likewise.
14006 * gdbtypes.c (copy_type_recursive): Likewise.
14007 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14008 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14009 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14011 * mt-tdep.c (mt_gdbarch_init): Likewise.
14012 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14014 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14015 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14016 * registry.c (registry_alloc_data): Likewise.
14017 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14018 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14019 * serial.c (serial_fdopen_ops): Likewise.
14020 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14022 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14023 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14026 2014-01-13 Tom Tromey <tromey@redhat.com>
14028 * defs.h (XMALLOC): Remove.
14029 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14030 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14031 * cli-out.c (struct ui_out *): Likewise.
14032 * cli/cli-dump.c (add_dump_command): Likewise.
14033 (add_dump_command): Likewise.
14034 * complaints.c (get_complaints): Likewise.
14035 (find_complaint): Likewise.
14036 * dwarf2-frame.c (execute_cfa_program): Likewise.
14037 * dwarf2read.c (abbrev_table_read_table): Likewise.
14038 * gdbarch.sh: Likewise.
14039 * gdbarch.c: Rebuild.
14040 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14041 * interps.c (interp_new): Likewise.
14042 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14043 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14044 * mi/mi-console.c (mi_console_file_new): Likewise.
14045 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14046 * mi/mi-out.c (mi_out_new): Likewise.
14047 * mi/mi-parse.c (mi_parse): Likewise.
14048 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14049 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14050 * observer.c (xalloc_observer_list_node): Likewise.
14051 * regcache.c (regcache_xmalloc_1): Likewise.
14052 * reggroups.c (reggroup_new): Likewise.
14053 (_initialize_reggroup): Likewise.
14054 * registry.c (register_data_with_cleanup): Likewise.
14055 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14056 * ser-base.c (serial_ttystate): Likewise.
14057 * ser-mingw.c (make_pipe_state): Likewise.
14058 * ser-pipe.c (pipe_open): Likewise.
14059 * serial.c (serial_open): Likewise.
14060 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14061 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14062 (tui_alloc_win_info): Likewise.
14063 (tui_add_content_elements): Likewise.
14064 * tui/tui-file.c (tui_file_new): Likewise.
14065 * tui/tui-out.c (tui_out_new): Likewise.
14066 * ui-file.c (mem_file_new): Likewise.
14067 * ui-out.c (push_level): Likewise.
14068 (make_cleanup_ui_out_end): Likewise.
14069 (append_header_to_list): Likewise.
14070 (ui_out_new): Likewise.
14071 * user-regs.c (user_reg_add_builtin): Likewise.
14073 2014-01-13 Tom Tromey <tromey@redhat.com>
14075 * defs.h (XZALLOC): Remove.
14076 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14077 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14078 (get_ada_tasks_inferior_data): Likewise.
14079 * auto-load.c (get_auto_load_pspace_data): Likewise.
14080 * auxv.c (get_auxv_inferior_data): Likewise.
14081 * bfd-target.c (target_bfd_reopen): Likewise.
14082 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14083 (deprecated_insert_raw_breakpoint): Likewise.
14084 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14085 * corelow.c (core_open): Likewise.
14086 * darwin-nat.c (darwin_check_new_threads): Likewise.
14087 (darwin_attach_pid): Likewise.
14088 * dummy-frame.c (dummy_frame_push): Likewise.
14089 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14090 * dwarf2loc.c (allocate_piece_closure): Likewise.
14091 * elfread.c (elf_symfile_segments): Likewise.
14092 * eval.c (ptrmath_type_p): Likewise.
14093 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14094 * gdbtypes.c (alloc_type_arch): Likewise.
14095 (alloc_type_instance): Likewise.
14096 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14097 * inf-child.c (inf_child_can_use_agent): Likewise.
14098 * inflow.c (get_inflow_inferior_data): Likewise.
14099 * infrun.c (save_infcall_suspend_state): Likewise.
14100 * jit.c (jit_reader_load): Likewise.
14101 (get_jit_objfile_data): Likewise.
14102 (get_jit_program_space_data): Likewise.
14103 (jit_object_open_impl): Likewise.
14104 (jit_symtab_open_impl): Likewise.
14105 (jit_block_open_impl): Likewise.
14106 (jit_frame_sniffer): Likewise.
14107 * linux-fork.c (add_fork): Likewise.
14108 * maint.c (make_command_stats_cleanup): Likewise.
14109 * objfiles.c (get_objfile_pspace_data): Likewise.
14110 * opencl-lang.c (struct lval_closure): Likewise.
14111 * osdata.c (osdata_start_osdata): Likewise.
14112 * progspace.c (new_address_space): Likewise.
14113 (add_program_space): Likewise.
14114 * remote-sim.c (get_sim_inferior_data): Likewise.
14115 * sh-tdep.c (sh_gdbarch_init): Likewise.
14116 * skip.c (Ignore): Likewise.
14117 (skip_delete_command): Likewise.
14118 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14119 (library_list_start_library): Likewise.
14120 (solib_aix_current_sos): Likewise.
14121 * solib-darwin.c (get_darwin_info): Likewise.
14122 (darwin_current_sos): Likewise.
14123 * solib-dsbt.c (get_dsbt_info): Likewise.
14124 * solib-ia64-hpux.c (new_so_list): Likewise.
14125 (ia64_hpux_get_solib_linkage_addr): Likewise.
14126 * solib-spu.c (append_ocl_sos): Likewise.
14127 (spu_current_sos): Likewise.
14128 * solib-svr4.c (get_svr4_info): Likewise.
14129 (svr4_keep_data_in_core): Likewise.
14130 (library_list_start_library): Likewise.
14131 (svr4_default_sos): Likewise.
14132 (svr4_read_so_list): Likewise.
14133 * solib-target.c (library_list_start_library): Likewise.
14134 (solib_target_current_sos): Likewise.
14135 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14136 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14137 * symfile.c (default_symfile_segments): Likewise.
14138 * target-descriptions.c (tdesc_data_init): Likewise.
14139 (tdesc_create_reg): Likewise.
14140 (struct tdesc_type *): Likewise.
14141 (tdesc_create_vector): Likewise.
14142 (tdesc_set_struct_size): Likewise.
14143 (struct tdesc_type *): Likewise.
14144 (tdesc_free_feature): Likewise.
14145 (tdesc_create_feature): Likewise.
14146 * windows-nat.c (windows_add_thread): Likewise.
14147 (windows_make_so): Likewise.
14148 * xml-support.c (gdb_xml_body_text): Likewise.
14149 (gdb_xml_create_parser_and_cleanup): Likewise.
14150 (xml_process_xincludes): Likewise.
14151 * xml-syscall.c (allocate_syscalls_info): Likewise.
14152 (syscall_create_syscall_desc): Likewise.
14154 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14156 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14157 function, with code from i386_stap_parse_special_token.
14158 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14159 (i386_stap_parse_special_token): Move code to the two functions
14160 above; simplify it.
14162 2014-01-09 Pedro Alves <palves@redhat.com>
14163 Hui Zhu <hui@codesourcery.com>
14166 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14167 bp_err_string. Don't mark the location shlib_disabled if the
14168 error thrown wasn't a generic or memory error. Catch errors
14169 thrown while inserting breakpoints in overlayed code. Output
14170 error message of software breakpoints.
14171 * remote.c (remote_insert_breakpoint): If this breakpoint has
14172 target-side commands but this stub doesn't support Z0 packets,
14173 throw NOT_SUPPORTED_ERROR error.
14174 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14175 * target.h (target_insert_breakpoint): Extend comment.
14176 (target_insert_hw_breakpoint): Add comment.
14178 2014-01-08 Pedro Alves <palves@redhat.com>
14180 * remote.c (remote_add_thread): Add threads silently if starting
14182 (remote_notice_new_inferior): If in all-stop, and starting up,
14183 don't call notice_new_inferior.
14184 (get_current_thread): New function, factored out from ...
14185 (add_current_inferior_and_thread): ... this. Adjust.
14186 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14187 found any thread, then select the remote's current thread as GDB's
14188 current thread too.
14190 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14192 * NEWS: Create a new section for the next release branch.
14193 Rename the section of the current branch, now that it has
14196 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14198 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14199 * version.in: Bump version to 7.7.50.DATE-cvs.
14201 2014-01-08 Yao Qi <yao@codesourcery.com>
14203 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14204 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14205 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14207 2014-01-08 Yao Qi <yao@codesourcery.com>
14209 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14210 return value of bfd_get_filename to symbol_file_add_from_bfd.
14212 2014-01-08 Pierre Muller <muller@sourceware.org>
14215 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14216 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14217 to prim_record_mininal_symbol_and_info.
14218 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14219 in call to prim_record_minimal_symbol_and_info.
14220 (read_pe_exported_syms): Set index field of section_data.
14222 2014-01-07 Andrew Pinski <apinski@cavium.com>
14224 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14225 * features/aarch64.c: Regenerate.
14227 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14229 * target.c (return_null): Define.
14230 (update_current_target): Use it instead of return_zero for
14231 functions that return a pointer.
14233 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14235 * source.c (add_path): Fix check for duplicated paths in the previously
14238 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14240 * ada-lang.c: Remove duplicated include statements.
14241 * alphabsd-nat.c: Ditto.
14242 * amd64-darwin-tdep.c: Ditto.
14243 * amd64fbsd-nat.c: Ditto.
14244 * auto-load.c: Ditto.
14246 * breakpoint.c: Ditto.
14247 * dbxread.c: Ditto.
14248 * fork-child.c: Ditto.
14249 * gdb_usleep.c: Ditto.
14250 * i386-darwin-tdep.c: Ditto.
14251 * i386fbsd-nat.c: Ditto.
14253 * inferior.c: Ditto.
14254 * jv-lang.c: Ditto.
14255 * linux-nat.c: Ditto.
14256 * linux-tdep.c: Ditto.
14257 * m68kbsd-nat.c: Ditto.
14258 * m68klinux-nat.c: Ditto.
14259 * microblaze-tdep.c: Ditto.
14260 * mips-linux-tdep.c: Ditto.
14261 * mn10300-tdep.c: Ditto.
14262 * nto-tdep.c: Ditto.
14263 * opencl-lang.c: Ditto.
14265 * printcmd.c: Ditto.
14266 * regcache.c: Ditto.
14267 * remote-m32r-sdi.c: Ditto.
14269 * symfile.c: Ditto.
14271 * tilegx-linux-nat.c: Ditto.
14272 * tilegx-tdep.c: Ditto.
14273 * tracepoint.c: Ditto.
14275 * vaxbsd-nat.c: Ditto.
14276 * windows-nat.c: Ditto.
14277 * xtensa-tdep.c: Ditto.
14279 2014-01-07 Yao Qi <yao@codesourcery.com>
14281 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14283 2014-01-07 Yao Qi <yao@codesourcery.com>
14284 Joel Brobecker <brobecker@adacore.com>
14286 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14287 (pdc_write_regs): Likewise.
14288 (fetch_regs_kernel_thread): Likewise.
14289 (store_regs_kernel_thread): Likewise.
14291 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14293 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14294 tagged type objects to their actual type.
14296 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14298 * ada-valprint.c (print_field_values): Add "language" parameter.
14299 Update calls to print_field_values and print_variant_part.
14300 Pass new parameter "language" in call to val_print instead
14301 of "current_language". Replace call to ada_val_print by call
14303 (print_variant_part): Add "language" parameter.
14304 (ada_val_print_struct_union): Update call to print_field_values.
14306 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14308 * ada-valprint.c (ui_memcpy): Delete.
14309 (ada_print_floating): Update documentation. Add empty line
14310 between between function documentation and implementation.
14311 Delete variable "buffer". Use ui_file_xstrdup in place of
14312 ui_file_put. Minor adjustments following this change.
14314 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14316 * ada-valprint.c (ada_val_print_string): New function,
14317 extracted from ada_val_print_array.
14318 (ada_val_print_array): Replace extracted code by call
14319 to ada_val_print_string followed by a return. Move
14320 "else" branch to the function's top block.
14322 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14324 * ada-valprint.c (ada_val_print_array): Move implementation
14325 down. Rename parameter "offset" and "val" into "offset_aligned"
14326 and "original_value" respectively. Add parameter "offset".
14328 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14330 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14331 re-organizing the code. Change the "???" message printed
14332 when target type is a TYPE_CODE_UNDEF into
14333 "<ref to undefined type>".
14335 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14337 * ada-valprint.c (print_record): Delete, implementation inlined...
14338 (ada_val_print_struct_union): ... here. Remove call to
14339 ada_check_typedef in inlined implementation.
14341 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14343 * ada-valprint.c (ada_val_print_gnat_array): New function,
14344 extracted from ada_val_print_1;
14345 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14346 (ada_val_print_flt, ada_val_print_struct_union)
14347 (ada_val_print_ref): Likewise.
14348 (ada_val_print_1): Delete variables i and elttype.
14349 Replace extracted-out code by call to corresponding
14352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14354 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14356 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14358 * ada-valprint.c (ada_val_print_1): Replace calls to
14359 ada_val_print_1 by calls to val_print.
14361 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14363 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14364 Update calls to self accordingly. Replace calls to c_val_print
14365 by calls to val_print.
14367 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14369 * ada-valprint.c (print_record): Delete declaration.
14370 (adjust_type_signedness, ada_val_print_1): Likewise.
14371 (ada_val_print): Move function implementation down.
14372 (print_variant_part, print_field_values, print_record):
14373 Move function implementation up.
14375 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14377 * python/py-type.c (typy_get_name): New function.
14378 (type_object_getset): Add entry for attribute "name".
14379 * NEWS: Add entry mentioning this new attribute.
14381 2014-01-07 Yao Qi <yao@codesourcery.com>
14383 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14386 2014-01-07 Yao Qi <yao@codesourcery.com>
14388 * gnu-nat.c (info_port_rights): Add qualifier const to
14391 2014-01-07 Yao Qi <yao@codesourcery.com>
14393 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14395 2014-01-07 Yao Qi <yao@codesourcery.com>
14397 * gnu-nat.c (make_inf) Update declaration.
14398 (make_inf): Make it static.
14399 (inf_set_traced): Likewise.
14400 (inf_port_to_thread, inf_task_died_status): Likewise.
14402 2014-01-07 Yao Qi <yao@codesourcery.com>
14404 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14406 2014-01-07 Yao Qi <yao@codesourcery.com>
14408 * gnu-nat.c (_initialize_gnu_nat): Declare.
14410 2014-01-07 Yao Qi <yao@codesourcery.com>
14412 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14414 (struct gdbarch_info) <byte_order>: Change type to
14416 <byte_order_for_code>: Likewise.
14417 * gdbarch.c, gdbarch.h: Regenerated.
14419 2014-01-06 Sasha Smundak <asmundak@google.com>
14421 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14423 2014-01-06 Tom Tromey <tromey@redhat.com>
14425 * doublest.c (convert_doublest_to_floatformat): Use const, not
14427 * somread.c (som_symtab_read): Likewise.
14429 2014-01-07 Hui Zhu <hui@codesourcery.com>
14431 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14432 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14433 (gdb_bfd_fopen): Ditto.
14434 (gdb_bfd_openr): Ditto.
14435 (gdb_bfd_openw): Ditto.
14436 (gdb_bfd_openr_iovec): Ditto.
14437 (gdb_bfd_fdopenr): Ditto.
14438 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14439 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14441 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14443 * symfile-mem.c (symbol_file_add_from_memory): Removed
14444 gdb_bfd_stash_filename.
14446 2014-01-03 Doug Evans <dje@google.com>
14448 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14451 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14453 Update year range in copyright notice of all files.
14455 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14457 * top.c (print_gdb_version): Set copyright year to 2014.
14459 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14461 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14463 For older changes see ChangeLog-2013.
14469 version-control: never