1 2014-10-17 Doug Evans <dje@google.com>
3 * NEWS: Mention new event gdb.clear_objfiles.
4 * python/py-event.h (emit_clear_objfiles_event): Clear
5 * python/py-events.h (events_object): New member clear_objfiles.
6 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
8 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
9 emit clear_objfiles event.
10 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
12 (emit_clear_objfiles_event): New function.
13 (clear_objfiles): New event.
14 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
16 * python/python.c (_initialize_python): Call
17 gdbpy_initialize_clear_objfiles_event.
19 2014-10-17 Doug Evans <dje@google.com>
21 * NEWS: Mention new gdb.Objfile.progspace attribute.
22 * python/py-objfile.c (objfpy_get_progspace): New function.
23 (objfile_getset): New entry for "progspace".
25 2014-10-17 Pedro Alves <palves@redhat.com>
28 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
29 returns a copy of the input.
30 (run_command_1, continue_command, step_1, jump_command)
31 (signal_command, until_command, advance_command, finish_command)
32 (attach_command): Adjust and install a cleanup to free the
35 2014-10-17 Pedro Alves <palves@redhat.com>
38 * infcmd.c (continue_1): If continuing all threads in the
39 foreground, make sure the inferior's terminal settings are put in
42 2014-10-17 Pedro Alves <palves@redhat.com>
45 * annotate.c (annotate_breakpoints_invalid): Use
46 target_terminal_our_for_output instead of target_terminal_ours.
47 Give back the terminal to the target.
48 (annotate_frames_invalid): Likewise.
50 2014-10-17 Pedro Alves <palves@redhat.com>
52 * target.c (enum terminal_state): New enum.
53 (terminal_state): New global.
54 (target_terminal_init): New function.
55 (target_terminal_inferior): Skip if inferior already owns the
57 (target_terminal_ours, target_terminal_ours_for_output): New
59 * target.h (target_terminal_init): Convert to function prototype.
60 (target_terminal_ours_for_output): Convert to function prototype
62 (target_terminal_ours): Convert to function prototype and tweak
64 * windows-nat.c (do_initial_windows_stuff): Call
65 target_terminal_init instead of child_terminal_init_with_pgrp.
67 2014-10-17 Pedro Alves <palves@redhat.com>
69 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
70 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
71 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
73 * NEWS: Mention that support for alpha*-*-osf* has been removed.
74 * ada-lang.h [__alpha__ && __osf__]
75 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
76 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
77 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
79 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
81 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
82 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
83 * configure: Regenerate.
84 * configure.ac: Remove references to osf.
85 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
86 section. Remove all other references to osf.
87 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
88 Remove all other references to osf.
89 * dec-thread.c: Delete file.
90 * defs.h (GDB_OSABI_OSF1): Delete.
91 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
93 * osabi.c (gdb_osabi_names): Delete "OSF/1".
94 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
96 (unconditionally_kill_inferior)
97 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
98 * solib-osf.c: Delete file.
100 2014-10-17 Pedro Alves <palves@redhat.com>
102 * remote.c (clear_threads_listing_context): Move higher up, out of
103 the HAVE_LIBEXPAT guard.
105 2014-10-16 Tristan Gingold <gingold@adacore.com>
107 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
108 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
111 2014-10-15 Pedro Alves <palves@redhat.com>
113 * dec-thread.c (dec_thread_count_gdb_threads)
114 (dec_thread_add_gdb_thread): Delete.
115 (dec_thread_update_thread_list): Delete.
116 (dec_thread_find_new_threads): Rename to ...
117 (dec_thread_update_thread_list): ... this. Delete GDB-size
118 threads that are no longer found in dec_thread_list.
119 (resync_thread_list): Delete.
120 (dec_thread_wait): Call dec_thread_update_thread_list instead of
123 2014-10-15 Pedro Alves <palves@redhat.com>
125 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
126 * remote.c (remote_update_thread_list): Skip calling prune_threads
127 if any thread listing method is supported, and instead walk over
128 the set of remote threads listed, deleting those that are not
129 found in GDB's thread list.
131 2014-10-15 Pedro Alves <palves@redhat.com>
133 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
134 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
135 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
136 (bsd_uthread_target): Adjust.
137 * corelow.c (core_open): Adjust.
138 * dec-thread.c (dec_thread_find_new_threads): Update comment.
139 (dec_thread_update_thread_list): New function.
140 (init_dec_thread_ops): Adjust.
141 * gdbthread.h (prune_threads): New declaration.
142 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
143 (thread_db_update_thread_list): ... this. Call prune_threads.
144 (init_thread_db_ops): Adjust.
145 * nto-procfs.c (procfs_find_new_threads): Rename to ...
146 (procfs_update_thread_list): ... this. Call prune_threads.
147 (procfs_attach, procfs_create_inferior, init_procfs_targets):
149 * obsd-nat.c (obsd_find_new_threads): Rename to ...
150 (obsd_update_thread_list): ... this. Call prune_threads.
151 (obsd_add_target): Adjust.
152 * procfs.c (procfs_target): Adjust.
153 (procfs_notice_thread): Update comment.
154 (procfs_find_new_threads): Rename to ...
155 (procfs_update_thread_list): ... this. Call prune_threads.
156 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
158 (ravenscar_wait): Adjust.
159 (ravenscar_find_new_threads): Rename to ...
160 (ravenscar_update_thread_list): ... this. Call prune_threads.
161 (init_ravenscar_thread_ops): Adjust.
162 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
163 (record_btrace_update_thread_list): ... this. Adjust comment.
164 (init_record_btrace_ops): Adjust.
165 * remote.c (remote_threads_info): Rename to ...
166 (remote_update_thread_list): ... this. Call prune_threads.
167 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
169 * sol-thread.c (check_for_thread_db): Adjust.
170 (sol_find_new_threads_callback): Rename to ...
171 (sol_update_thread_list_callback): ... this.
172 (sol_find_new_threads): Rename to ...
173 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
174 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
175 * target-delegates.c: Regenerate.
176 * target.c (target_find_new_threads): Rename to ...
177 (target_update_thread_list): ... this.
178 * target.h (struct target_ops): Rename to_find_new_threads field
179 to to_update_thread_list.
180 (target_find_new_threads): Rename to ...
181 (target_update_thread_list): ... this.
182 * thread.c (prune_threads): Make extern.
183 (update_thread_list): Adjust.
185 2014-10-15 Pedro Alves <palves@redhat.com>
187 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
188 Add describing comment. Return -1 if the qL packet is not
190 (struct thread_item, thread_item_t): Move higher up in
191 the file. Add comments.
192 (struct threads_parsing_context): Move higher up in
193 the file, add comments, and remote to ...
194 (struct threads_listing_context): ... this.
195 (remote_newthread_step): Don't add the thread to GDB's thread
196 database here. Instead push it to the thread_listing_context
198 (remote_find_new_threads): Rename to ...
199 (remote_get_threads_with_ql): ... this. Add target_ops and
200 targets_listing_context parameters. Pass down context.
201 (start_thread): Adjust.
202 (clear_threads_parsing_context): Rename to ...
203 (clear_threads_listing_context): ... this.
204 (remote_get_threads_with_qxfer): New, with parts salvaged from old
206 (remote_get_threads_with_qthreadinfo): Ditto.
207 (remote_threads_info): Reimplement.
209 2014-10-15 Pedro Alves <palves@redhat.com>
211 * infrun.c (resume): Don't force displaced-stepping for all
212 single-steps on software single-stepping archs.
214 2014-10-15 Pedro Alves <palves@redhat.com>
216 * breakpoint.c (single_step_breakpoints): Delete global.
217 (insert_single_step_breakpoint): Adjust to store the breakpoint
218 pointer in the current thread.
219 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
220 (cancel_single_step_breakpoints): Delete functions.
221 (breakpoint_has_location_inserted_here): Make extern.
222 (single_step_breakpoint_inserted_here_p): Adjust to walk the
224 * breakpoint.h (breakpoint_has_location_inserted_here): New
226 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
227 (cancel_single_step_breakpoints): Remove declarations.
228 * gdbthread.h (struct thread_control_state)
229 <single_step_breakpoints>: New field.
230 (delete_single_step_breakpoints)
231 (thread_has_single_step_breakpoints_set)
232 (thread_has_single_step_breakpoint_here): New declarations.
233 * infrun.c (follow_exec): Also clear the single-step breakpoints.
234 (singlestep_breakpoints_inserted_p, singlestep_ptid)
235 (singlestep_pc): Delete globals.
236 (infrun_thread_ptid_changed): Remove references to removed
238 (resume_cleanups): Delete the current thread's single-step
240 (maybe_software_singlestep): Remove references to removed globals.
241 (resume): Adjust to use thread_has_single_step_breakpoints_set and
242 delete_single_step_breakpoints.
243 (init_wait_for_inferior): Remove references to removed globals.
244 (delete_thread_infrun_breakpoints): Delete the thread's
245 single-step breakpoints too.
246 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
247 single-step breakpoints here.
248 (delete_stopped_threads_single_step_breakpoints): New function.
249 (adjust_pc_after_break): Adjust to use
250 thread_has_single_step_breakpoints_set.
251 (handle_inferior_event): Remove references to removed globals.
252 Use delete_stopped_threads_single_step_breakpoints.
253 (handle_signal_stop): Adjust to per-thread single-step
254 breakpoints. Swap test order to do cheaper tests first.
255 (switch_back_to_stepped_thread): Extend debug output. Remove
256 references to removed globals.
257 * record-full.c (record_full_wait_1): Adjust to per-thread
258 single-step breakpoints.
259 * thread.c (delete_single_step_breakpoints)
260 (thread_has_single_step_breakpoints_set)
261 (thread_has_single_step_breakpoint_here): New functions.
262 (clear_thread_inferior_resources): Also delete the thread's
263 single-step breakpoints.
265 2014-10-15 Pedro Alves <palves@redhat.com>
267 * thread.c (delete_thread_breakpoint): New function.
268 (delete_step_resume_breakpoint)
269 (delete_exception_resume_breakpoint): Use it.
270 (delete_at_next_stop): New function.
271 (clear_thread_inferior_resources): Use delete_at_next_stop.
273 2014-10-15 Pedro Alves <palves@redhat.com>
275 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
276 (breakpoint_inserted_here_p): ... here. Remove special case for
277 software single-step breakpoints.
278 (find_non_raw_software_breakpoint_inserted_here): Inline ...
279 (software_breakpoint_inserted_here_p): ... here. Remove special
280 case for software single-step breakpoints.
281 (bp_target_info_copy_insertion_state)
282 (deprecated_insert_raw_breakpoint)
283 (deprecated_remove_raw_breakpoint): Delete functions.
284 * breakpoint.h (deprecated_insert_raw_breakpoint)
285 (deprecated_remove_raw_breakpoint): Remove declarations.
287 2014-10-15 Pedro Alves <palves@redhat.com>
290 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
291 Delete array globals.
292 (single_step_breakpoints): New global.
293 (breakpoint_xfer_memory): Remove special handling for single-step
295 (update_breakpoints_after_exec): Delete bp_single_step
297 (detach_breakpoints): Remove special handling for single-step
299 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
300 (bpstat_stop_status): Add comment.
301 (bpstat_what, bptype_string, print_one_breakpoint_location)
302 (adjust_breakpoint_address, init_bp_location): Handle
304 (new_single_step_breakpoint): New function.
305 (set_momentary_breakpoint, bkpt_remove_location): Remove special
306 handling for single-step breakpoints.
307 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
308 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
310 (detach_single_step_breakpoints, find_single_step_breakpoint):
312 (breakpoint_has_location_inserted_here): New function.
313 (single_step_breakpoint_inserted_here_p): Rewrite.
314 * breakpoint.h: Remove FIXME.
315 (enum bptype) <bp_single_step>: New enum value.
316 (insert_single_step_breakpoint): Update comment.
317 * infrun.c (resume_cleanups)
318 (delete_step_thread_step_resume_breakpoint): Remove single-step
320 (fetch_inferior_event): Install a cleanup that removes infrun
322 (switch_back_to_stepped_thread) <expect thread advanced also>:
323 Clear step-over info.
325 2014-10-15 Pedro Alves <palves@redhat.com>
327 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
328 (delete_thread_infrun_breakpoints): New function, with parts
329 salvaged from delete_step_resume_breakpoint_callback.
330 (delete_step_thread_step_resume_breakpoint): Delete.
331 (for_each_just_stopped_thread_callback_func): New typedef.
332 (for_each_just_stopped_thread): New function.
333 (delete_just_stopped_threads_infrun_breakpoints): New function.
334 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
335 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
337 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
339 2014-10-15 Pedro Alves <palves@redhat.com>
341 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
342 trying to step past a non-steppable watchpoint.
343 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
345 * infrun.c (struct step_over_info): Add new field
346 'nonsteppable_watchpoint_p' and adjust comments.
347 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
349 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
350 (stepping_past_nonsteppable_watchpoint): New function.
351 (step_over_info_valid_p): Also return true if stepping past a
352 nonsteppable watchpoint.
353 (proceed): Adjust call to set_step_over_info. Remove reference to
355 (init_wait_for_inferior): Remove reference to init_infwait_state.
356 (waiton_ptid): Delete global.
357 (struct execution_control_state)
358 <stepped_after_stopped_by_watchpoint>: Delete field.
359 (wait_for_inferior, fetch_inferior_event): Always pass
360 minus_one_ptid to target_wait.
361 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
363 (init_infwait_state): Delete function.
364 (handle_inferior_event): Remove infwait_state handling.
365 (handle_signal_stop) <watchpoints handling>: Adjust after
366 stepped_after_stopped_by_watchpoint removal. Don't remove
367 breakpoints here nor set infwait_state. Set the thread's
368 stepping_over_watchpoint flag, and call keep_going instead.
369 (keep_going): Handle stepping_over_watchpoint. Adjust
370 set_step_over_info calls.
371 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
374 2014-10-15 Pedro Alves <palves@redhat.com>
376 * infrun.c (step_over_info_valid_p): New function.
377 (resume): Use step_over_info_valid_p instead of checking the
378 threads's trap_expected flag.
380 2014-10-15 Doug Evans <dje@google.com>
381 Walfred Tedeschi <walfred.tedeschi@intel.com>
384 * python/lib/gdb/__init__.py (packages): Add "printer".
385 * python/lib/gdb/command/bound_registers.py: Moved to ...
386 * python/lib/gdb/printer/bound_registers.py: ... here.
387 Add printer to global set of builtin printers. Rename printer from
388 "bound" to "mpx_bound128".
389 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
390 registered as global "builtin" printer.
391 (add_builtin_pretty_printer): New function.
392 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
393 gdb/printer/__init__.py.
395 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
397 * Makefile.in (SFILES): Remove d-support.c.
398 (COMMON_OBS): Remove d-support.o.
399 * d-lang.h (d_parse_symbol): Remove declaration.
400 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
401 * d-support.c: Remove file.
403 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
405 * gdb/infrun.c (process_event_stop_test): Apply
406 gdbarch_addr_bits_remove to longjmp resume address.
408 2014-10-15 Pedro Alves <palves@redhat.com>
410 * regformats/microblaze.dat: Delete file.
412 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
414 * features/Makefile (microblaze-expedite): Replace pc with rpc.
415 * regformats/microblaze-with-stack-protect.dat: Regenerate.
417 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
419 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
422 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
426 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
429 2014-10-14 Joel Brobecker <brobecker@adacore.com>
431 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
432 of the case where the second operand is a pointer.
433 <BINOP_SUB>: Likewise.
435 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
437 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
438 only if it is not NULL.
439 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
440 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
441 (struct probe_ops) <clear_semaphore>: Likewise.
442 * tracepoint.c (start_tracing): Call set_semaphore only if it is
444 (stop_tracing): Likewise, for clear_semaphore.
446 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
448 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
449 using language_c, instead of current_language.
451 2014-10-13 Doug Evans <dje@google.com>
453 * python/py-objfile.c (objfpy_initialize): New function.
454 (objfpy_new, objfile_to_objfile_object): Call it.
455 * python/py-progspace.c (pspy_initialize): New function.
456 (pspy_new, pspace_to_pspace_object): Call it.
458 2014-10-13 Miroslav Franc <mfranc@redhat.com>
459 Jan Kratochvil <jan.kratochvil@redhat.com>
461 Fix "save breakpoints" for "catch" command.
462 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
465 2014-10-12 Miroslav Franc <mfranc@redhat.com>
467 Fix "save breakpoints" for "disable $bpnum" command.
468 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
470 2014-10-10 Pedro Alves <palves@redhat.com>
472 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
473 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
474 (HFILES_NO_SRCDIR): Remove solib-irix.h.
475 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
477 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
478 * configure.ac: Remove references to IRIX.
479 * configure.host: Add *-*-irix* to the obsolete hosts section.
480 Remove all other references to irix.
481 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
484 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
486 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
487 isn't valid, release the tdesc arch data and return NULL.
489 2014-10-10 Pedro Alves <palves@redhat.com>
491 * linux-tdep.c: Include observer.h.
492 (linux_inferior_data): New global.
493 (struct linux_info): New structure.
494 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
495 (get_linux_inferior_data): New functions.
496 (linux_vsyscall_range): Rename to ...
497 (linux_vsyscall_range_raw): ... this.
498 (linux_vsyscall_range): New function; handles caching.
499 (_initialize_linux_tdep): Register linux_inferior_data. Install
500 inferior_exit and inferior_appeared observers.
502 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
503 Pedro Alves <palves@redhat.com>
506 * solib-svr4.c (svr4_read_so_list): Rename to ...
507 (svr4_current_sos_1): ... this and change the function comment.
508 (svr4_current_sos): New function.
510 2014-10-10 Pedro Alves <palves@redhat.com>
512 * arch-utils.c (default_vsyscall_range): New function.
513 * arch-utils.h (default_vsyscall_range): New declaration.
514 * gdbarch.sh (vsyscall_range): New hook.
515 * gdbarch.h, gdbarch.c: Regenerate.
516 * linux-tdep.c (linux_vsyscall_range): New function.
517 (linux_init_abi): Install linux_vsyscall_range as
518 vsyscall_range gdbarch hook.
519 * memrange.c (address_in_mem_range): New function.
520 * memrange.h (address_in_mem_range): New declaration.
521 * symfile-mem.c (find_vdso_size): Delete function.
522 (add_vsyscall_page): Use gdbarch_vsyscall_range.
524 2014-10-10 Pedro Alves <palves@redhat.com>
526 * infrun.c (normal_stop): Fix typo in comment.
528 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
531 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
532 typo when using logical AND to determine instruction type.
534 2014-10-09 Yao Qi <yao@codesourcery.com>
536 * infrun.c (handle_signal_stop): Remove local variable
539 2014-10-08 Stan Shebs <stan@codesourcery.com>
541 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
543 2014-10-08 Gary Benson <gbenson@redhat.com>
545 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
547 2014-10-08 Gary Benson <gbenson@redhat.com>
549 * common/common-defs.h: Include common-exceptions.h.
550 * exceptions.h: Do not include common-exceptions.h.
552 2014-10-08 Gary Benson <gbenson@redhat.com>
554 * common/common-defs.h: Include cleanups.h.
555 * common/common-exceptions.c: Do not include cleanups.h.
558 2014-10-08 Gary Benson <gbenson@redhat.com>
560 * ada-lang.c: Do not include exceptions.h.
561 * ada-valprint.c: Likewise.
562 * amd64-tdep.c: Likewise.
563 * auto-load.c: Likewise.
565 * break-catch-throw.c: Likewise.
566 * breakpoint.c: Likewise.
567 * btrace.c: Likewise.
568 * c-lang.c: Likewise.
569 * cli/cli-cmds.c: Likewise.
570 * cli/cli-interp.c: Likewise.
571 * cli/cli-script.c: Likewise.
572 * completer.c: Likewise.
573 * corefile.c: Likewise.
574 * corelow.c: Likewise.
575 * cp-abi.c: Likewise.
576 * cp-support.c: Likewise.
577 * cp-valprint.c: Likewise.
578 * darwin-nat.c: Likewise.
579 * dwarf2-frame-tailcall.c: Likewise.
580 * dwarf2-frame.c: Likewise.
581 * dwarf2loc.c: Likewise.
582 * dwarf2read.c: Likewise.
584 * event-loop.c: Likewise.
585 * event-top.c: Likewise.
586 * f-valprint.c: Likewise.
587 * frame-unwind.c: Likewise.
589 * gdbtypes.c: Likewise.
590 * gnu-v2-abi.c: Likewise.
591 * gnu-v3-abi.c: Likewise.
592 * guile/scm-auto-load.c: Likewise.
593 * guile/scm-breakpoint.c: Likewise.
594 * guile/scm-cmd.c: Likewise.
595 * guile/scm-frame.c: Likewise.
596 * guile/scm-lazy-string.c: Likewise.
597 * guile/scm-param.c: Likewise.
598 * guile/scm-symbol.c: Likewise.
599 * guile/scm-type.c: Likewise.
600 * hppa-hpux-tdep.c: Likewise.
601 * i386-tdep.c: Likewise.
602 * inf-loop.c: Likewise.
603 * infcall.c: Likewise.
604 * infcmd.c: Likewise.
605 * infrun.c: Likewise.
606 * interps.c: Likewise.
607 * interps.h: Likewise.
609 * linespec.c: Likewise.
610 * linux-nat.c: Likewise.
611 * linux-thread-db.c: Likewise.
612 * m32r-rom.c: Likewise.
614 * memory-map.c: Likewise.
615 * mi/mi-cmd-break.c: Likewise.
616 * mi/mi-cmd-stack.c: Likewise.
617 * mi/mi-interp.c: Likewise.
618 * mi/mi-main.c: Likewise.
619 * monitor.c: Likewise.
620 * nto-procfs.c: Likewise.
621 * objc-lang.c: Likewise.
622 * p-valprint.c: Likewise.
624 * ppc-linux-tdep.c: Likewise.
625 * printcmd.c: Likewise.
627 * python/py-auto-load.c: Likewise.
628 * python/py-breakpoint.c: Likewise.
629 * python/py-cmd.c: Likewise.
630 * python/py-finishbreakpoint.c: Likewise.
631 * python/py-frame.c: Likewise.
632 * python/py-framefilter.c: Likewise.
633 * python/py-function.c: Likewise.
634 * python/py-gdb-readline.c: Likewise.
635 * python/py-inferior.c: Likewise.
636 * python/py-infthread.c: Likewise.
637 * python/py-lazy-string.c: Likewise.
638 * python/py-linetable.c: Likewise.
639 * python/py-param.c: Likewise.
640 * python/py-prettyprint.c: Likewise.
641 * python/py-symbol.c: Likewise.
642 * python/py-type.c: Likewise.
643 * python/py-value.c: Likewise.
644 * python/python-internal.h: Likewise.
645 * python/python.c: Likewise.
646 * record-btrace.c: Likewise.
647 * record-full.c: Likewise.
648 * regcache.c: Likewise.
649 * remote-fileio.c: Likewise.
650 * remote-mips.c: Likewise.
651 * remote.c: Likewise.
652 * rs6000-aix-tdep.c: Likewise.
653 * rs6000-nat.c: Likewise.
655 * solib-darwin.c: Likewise.
656 * solib-dsbt.c: Likewise.
657 * solib-frv.c: Likewise.
658 * solib-ia64-hpux.c: Likewise.
659 * solib-spu.c: Likewise.
660 * solib-svr4.c: Likewise.
662 * spu-tdep.c: Likewise.
664 * stap-probe.c: Likewise.
665 * symfile-mem.c: Likewise.
666 * symmisc.c: Likewise.
667 * target.c: Likewise.
668 * thread.c: Likewise.
670 * tracepoint.c: Likewise.
671 * tui/tui-interp.c: Likewise.
672 * typeprint.c: Likewise.
674 * valarith.c: Likewise.
675 * valops.c: Likewise.
676 * valprint.c: Likewise.
678 * varobj.c: Likewise.
679 * windows-nat.c: Likewise.
680 * xml-support.c: Likewise.
682 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
684 * mips-tdep.c (add_offset_16): Rewrite to implement what the
686 (extended_mips16_next_pc): Update accordingly.
688 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
690 * mips-tdep.c (mips16_instruction_is_compact_branch): New
692 (micromips_instruction_is_compact_branch): Likewise.
693 (mips16_scan_prologue): Terminate scanning upon seeing a branch
694 or a compact jump, reaching a jump delay slot, or seeing a
695 second non-prologue instruction.
696 (micromips_scan_prologue): Also terminate scanning upon seeing a
697 compact branch or jump, or reaching a branch or jump delay slot.
698 (mips32_scan_prologue): Terminate scanning upon reaching a branch
699 or jump delay slot, or seeing a second non-prologue instruction.
700 (mips32_instruction_has_delay_slot): Retain instruction
701 examination code only, update arguments accordingly and move
702 instruction fetch pieces to...
703 (mips32_insn_at_pc_has_delay_slot): ... this new function.
704 (micromips_instruction_has_delay_slot): Likewise and to...
705 (micromips_insn_at_pc_has_delay_slot): ... this new function.
706 (mips16_instruction_has_delay_slot): Likewise and to...
707 (mips16_insn_at_pc_has_delay_slot): ... this new function.
708 (mips_single_step_through_delay): Update accordingly.
709 (mips_adjust_breakpoint_address): Likewise.
711 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
713 * mips-tdep.c (micromips_instruction_has_delay_slot): When
714 !mustbe32 also return 1 for 32-bit instructions.
715 (mips16_instruction_has_delay_slot): Likewise. Add an
718 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
720 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
723 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
725 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
727 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
728 for the breakpoint's address. Don't preinitialize `placed_size'.
729 (insert_bp_location): Set `reqstd_address' rather than
731 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
732 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
734 (bkpt_remove_location): Likewise.
735 (deprecated_insert_raw_breakpoint): Likewise.
736 (deprecated_remove_raw_breakpoint): Likewise.
737 (find_single_step_breakpoint): Likewise.
738 * mem-break.c (default_memory_insert_breakpoint): Use
739 `reqstd_address' for the breakpoint's address. Don't set
740 `placed_address' or `placed_size' if breakpoint contents couldn't
741 have been determined.
742 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
743 the breakpoint's address.
744 (remote_insert_hw_breakpoint): Likewise. Don't set
745 `placed_address' or `placed_size' if breakpoint couldn't have been
747 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
748 `reqstd_address' for the breakpoint's address.
749 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
750 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
751 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
752 * microblaze-linux-tdep.c
753 (microblaze_linux_memory_remove_breakpoint): Likewise.
754 * monitor.c (monitor_insert_breakpoint): Likewise.
755 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
756 (procfs_insert_hw_breakpoint): Likewise.
757 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
758 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
759 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
760 * remote-mips.c (mips_insert_breakpoint): Likewise.
761 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
763 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
765 * valops.c (value_assign): Check for bit field assignments
766 before calling architecture-specific register value
767 conversion functions.
769 2014-10-03 Pierre Muller <muller@sourceware.org>
771 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
773 2014-10-02 Pedro Alves <palves@redhat.com>
775 * breakpoint.c (breakpoints_should_be_inserted_now): Use
776 threads_are_executing.
777 * breakpoint.h (breakpoints_should_be_inserted_now): Add
779 * gdbthread.h (threads_are_executing): Declare.
780 (handle_signal_stop) <random signals>: Don't print about the
781 signal here if stopping.
782 (end_stepping_range): Don't notify observers here.
783 (normal_stop): Update the thread list. If stopped by a random
784 signal or a stepping range ended, notify observers.
785 * thread.c (threads_executing): New global.
786 (init_thread_list): Clear 'threads_executing'.
787 (set_executing): Set or clear 'threads_executing'.
788 (threads_are_executing): New function.
789 (update_threads_executing): New function.
790 (update_thread_list): Use it.
792 2014-10-02 Pedro Alves <palves@redhat.com>
795 * breakpoint.c (update_breakpoints_after_exec): Don't create
796 overlay, longjmp, std terminate nor exception breakpoints here.
798 2014-10-02 Pedro Alves <palves@redhat.com>
800 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
802 * inferior.c (find_inferior_for_program_space): Give preference to
803 the current inferior.
804 * inferior.h (find_inferior_for_program_space): Update comment.
805 * progspace.c (switch_to_program_space_and_thread): Prefer the
806 current inferior if it's bound to the program space requested. If
807 the inferior found doesn't have a PID yet, don't bother looking up
809 * progspace.h (switch_to_program_space_and_thread): Adjust
811 * thread.c (any_thread_of_process, any_live_thread_of_process):
812 Give preference to the current thread.
814 2014-10-01 Pedro Alves <palves@redhat.com>
816 * breakpoint.c (insert_bp_location): Error out if inserting a
817 software breakpoint at a read-only address.
818 * target.c (memory_xfer_check_region): New function, factored out
820 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
822 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
823 against the memory region attributes.
825 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
827 * NEWS: Announce new exit-code field in -list-thread-groups
829 * inferior.c (exit_inferior_1): Don't clear exit code.
830 (inferior_appeared): Clear exit code.
831 * mi/mi-main.c (print_one_inferior): Add printing of the exit
834 2014-10-01 Pedro Alves <palves@redhat.com>
836 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
837 GENERATED" along with emacs/vi read-only markers.
838 * regformats/aarch64.dat: Regenerate.
839 * regformats/arm-with-iwmmxt.dat: Regenerate.
840 * regformats/arm-with-neon.dat: Regenerate.
841 * regformats/arm-with-vfpv2.dat: Regenerate.
842 * regformats/arm-with-vfpv3.dat: Regenerate.
843 * regformats/i386/amd64-avx-linux.dat: Regenerate.
844 * regformats/i386/amd64-avx.dat: Regenerate.
845 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
846 * regformats/i386/amd64-avx512.dat: Regenerate.
847 * regformats/i386/amd64-linux.dat: Regenerate.
848 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
849 * regformats/i386/amd64-mpx.dat: Regenerate.
850 * regformats/i386/amd64.dat: Regenerate.
851 * regformats/i386/i386-avx-linux.dat: Regenerate.
852 * regformats/i386/i386-avx.dat: Regenerate.
853 * regformats/i386/i386-avx512-linux.dat: Regenerate.
854 * regformats/i386/i386-avx512.dat: Regenerate.
855 * regformats/i386/i386-linux.dat: Regenerate.
856 * regformats/i386/i386-mmx-linux.dat: Regenerate.
857 * regformats/i386/i386-mmx.dat: Regenerate.
858 * regformats/i386/i386-mpx-linux.dat: Regenerate.
859 * regformats/i386/i386-mpx.dat: Regenerate.
860 * regformats/i386/i386.dat: Regenerate.
861 * regformats/i386/x32-avx-linux.dat: Regenerate.
862 * regformats/i386/x32-avx.dat: Regenerate.
863 * regformats/i386/x32-avx512-linux.dat: Regenerate.
864 * regformats/i386/x32-avx512.dat: Regenerate.
865 * regformats/i386/x32-linux.dat: Regenerate.
866 * regformats/i386/x32.dat: Regenerate.
867 * regformats/microblaze-with-stack-protect.dat: Regenerate.
868 * regformats/mips-dsp-linux.dat: Regenerate.
869 * regformats/mips-linux.dat: Regenerate.
870 * regformats/mips64-dsp-linux.dat: Regenerate.
871 * regformats/mips64-linux.dat: Regenerate.
872 * regformats/nios2-linux.dat: Regenerate.
873 * regformats/rs6000/powerpc-32.dat: Regenerate.
874 * regformats/rs6000/powerpc-32l.dat: Regenerate.
875 * regformats/rs6000/powerpc-64l.dat: Regenerate.
876 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
877 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
878 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
879 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
880 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
881 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
882 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
883 * regformats/s390-linux32.dat: Regenerate.
884 * regformats/s390-linux32v1.dat: Regenerate.
885 * regformats/s390-linux32v2.dat: Regenerate.
886 * regformats/s390-linux64.dat: Regenerate.
887 * regformats/s390-linux64v1.dat: Regenerate.
888 * regformats/s390-linux64v2.dat: Regenerate.
889 * regformats/s390-te-linux64.dat: Regenerate.
890 * regformats/s390x-linux64.dat: Regenerate.
891 * regformats/s390x-linux64v1.dat: Regenerate.
892 * regformats/s390x-linux64v2.dat: Regenerate.
893 * regformats/s390x-te-linux64.dat: Regenerate.
894 * regformats/tic6x-c62x-linux.dat: Regenerate.
895 * regformats/tic6x-c62x.dat: Regenerate.
896 * regformats/tic6x-c64x-linux.dat: Regenerate.
897 * regformats/tic6x-c64x.dat: Regenerate.
898 * regformats/tic6x-c64xp-linux.dat: Regenerate.
899 * regformats/tic6x-c64xp.dat: Regenerate.
901 2014-10-01 Pedro Alves <palves@redhat.com>
903 * features/Makefile: Update comments.
904 (XMLTOC): List all xml files we build C files from.
905 (clean-cfiles): New rule.
907 2014-10-01 Pedro Alves <palves@redhat.com>
909 * features/i386/amd64-avx512-linux.c: Regenerate.
910 * features/i386/amd64-avx512.c: Regenerate.
911 * features/i386/x32-avx512-linux.c: Regenerate.
912 * features/i386/x32-avx512.c: Regenerate.
914 2014-10-01 Pedro Alves <palves@redhat.com>
916 * features/Makefile (WHICH): Remove arm-with-m,
917 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
919 2014-10-01 Pedro Alves <palves@redhat.com>
921 * features/Makefile (clean): New rule.
923 2014-10-01 Pedro Alves <palves@redhat.com>
925 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
926 (zmm14h): Add missing end quotes.
928 2014-10-01 Pedro Alves <palves@redhat.com>
930 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
931 * features/aarch64.c: Regenerate.
933 2014-09-30 Don Breazeal <donb@codesourcery.com>
935 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
936 code so as to work with follow_fork_inferior.
937 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
938 (inf_ttrace_create_inferior): Remove reference to
939 inf_ttrace_vfork_ppid.
940 (inf_ttrace_attach): Ditto.
941 (inf_ttrace_detach): Ditto.
942 (inf_ttrace_kill): Use current_inferior instead of
943 inf_ttrace_vfork_ppid.
944 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
945 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
946 inferior away from the parent.
947 * infrun.c (follow_fork): Call follow_fork_inferior instead of
949 (follow_fork_inferior): New function.
950 (follow_inferior_reset_breakpoints): Make function static.
951 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
952 * linux-nat.c (linux_child_follow_fork): Move target-independent
953 code to infrun.c:follow_fork_inferior.
955 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
957 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
958 * gdbarch.c: Regenerate.
959 * gdbarch.h: Likewise.
960 * corelow.c (sniff_core_bfd): Drop presence check for deleted
961 gdbarch method 'regset_from_core_section'.
962 (get_core_register_section): Remove handling for the case that
963 regset == NULL and regset_from_core_section is defined.
964 (get_core_registers): Drop check for deleted method.
965 * procfs.c (procfs_do_thread_registers): Adjust comment.
967 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
969 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
970 (linux_nat_make_corefile_notes): Remove.
971 (linux_target_install_ops): Do not set target method
972 'make_corefile_notes'.
973 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
975 (linux_corefile_thread_callback): Instead of args->collect, call
976 linux_collect_thread_registers.
977 (linux_make_corefile_notes): Remove 'collect' parameter. Return
978 NULL unless there is a regset iterator.
979 (linux_make_corefile_notes_1): Remove.
980 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
981 by linux_make_corefile_notes.
982 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
984 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
986 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
987 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
989 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
991 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
993 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
994 (xtensa_iterate_over_regset_sections): New.
995 (xtensa_gdbarch_init): Adjust gdbarch initialization.
997 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
999 * vax-tdep.c (vax_regset_from_core_section): Remove.
1000 (vax_iterate_over_regset_sections): New.
1001 (vax_gdbarch_init): Adjust gdbarch initialization.
1003 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1005 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1006 (tilegx_regset_from_core_section): Remove.
1007 (tilegx_iterate_over_regset_sections): New.
1008 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1010 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1012 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1013 (sparc_iterate_over_regset_sections): New.
1014 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1015 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1017 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1018 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1019 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1020 target method 'make_corefile_notes'.
1022 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1024 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1025 'sizeof_gregset' and 'sizeof_fpregset'.
1026 * sh-tdep.c (sh_regset_from_core_section): Remove.
1027 (sh_iterate_over_regset_sections): New.
1028 (sh_gdbarch_init): Adjust gdbarch initialization.
1029 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1031 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1034 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1036 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1037 (score7_linux_iterate_over_regset_sections): New.
1038 (score_gdbarch_init): Adjust gdbarch initialization.
1040 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1042 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1044 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1045 method 'make_corefile_notes'.
1046 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1047 (ppcfbsd_regset_from_core_section): Remove.
1048 (ppcfbsd_iterate_over_regset_sections): New.
1049 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1051 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1052 (ppcnbsd_iterate_over_regset_sections): New.
1053 (ppcnbsd_init_abi): Adjust.
1054 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1055 (ppcobsd_iterate_over_regset_sections): New.
1056 (ppcobsd_init_abi): Adjust.
1057 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1058 (rs6000_aix_iterate_over_regset_sections): New.
1059 (rs6000_aix_init_osabi): Adjust.
1061 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1063 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1064 (nios2_regset_from_core_section): Remove.
1065 (nios2_iterate_over_regset_sections): New.
1066 (nios2_linux_init_abi): Adjust gdbarch initialization.
1068 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1070 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1071 (am33_iterate_over_regset_sections): New.
1072 (am33_linux_init_osabi): Adjust gdbarch initialization.
1074 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1076 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1077 (mips_linux_iterate_over_regset_sections): New.
1078 (mips_linux_init_abi): Adjust gdbarch initialization.
1079 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1080 (mips64obsd_iterate_over_regset_sections): New.
1081 (mips64obsd_init_abi): Adjust.
1082 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1083 (mipsnbsd_iterate_over_regset_sections): New.
1084 (mipsnbsd_init_abi): Adjust.
1086 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1088 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1089 (m88k_iterate_over_regset_sections): New.
1090 (m88k_gdbarch_init): Adjust gdbarch initialization.
1092 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1094 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1095 (ia64_linux_iterate_over_regset_sections): New.
1096 (ia64_linux_init_abi): Adjust gdbarch initialization.
1098 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1100 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1101 (m68kbsd_iterate_over_regset_sections): New.
1102 (m68kbsd_init_abi): Adjust gdbarch initialization.
1103 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1104 (m68k_linux_iterate_over_regset_sections): New.
1105 (m68k_linux_init_abi): Adjust gdbarch initialization.
1107 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1109 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1110 (m32r_linux_regset_from_core_section): Remove.
1111 (m32r_linux_iterate_over_regset_sections): New.
1112 (m32r_linux_init_abi): Adjust gdbarch initialization.
1114 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1116 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1117 (amd64obsd_iterate_over_regset_sections): New.
1118 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1119 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1121 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1122 regset_from_core_section initialization.
1123 * i386-tdep.c (i386_regset_from_core_section): Remove.
1124 (i386_iterate_over_regset_sections): New.
1125 (i386_gdbarch_init): Adjust gdbarch initialization.
1126 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1127 (i386_iterate_over_regset_sections): New prototype.
1128 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1130 (i386obsd_aout_iterate_over_regset_sections): New.
1131 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1132 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1134 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1135 (amd64fbsd_init_abi): Call fbsd_init_abi.
1136 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1137 (i386fbsd4_init_abi): Call fbsd_init_abi.
1138 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1139 target method 'make_corefile_notes'.
1140 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1142 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1144 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1145 (hppa_hpux_iterate_over_regset_sections): New.
1146 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1147 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1148 (hppa_linux_iterate_over_regset_sections): New.
1149 (hppa_linux_init_abi): Adjust.
1150 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1151 (hppanbsd_iterate_over_regset_sections): New.
1152 (hppanbsd_init_abi): Adjust.
1153 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1154 (hppaobsd_iterate_over_regset_sections): New.
1155 (hppaobsd_init_abi): Adjust.
1157 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1159 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1160 (frv_linux_iterate_over_regset_sections): New.
1161 (frv_linux_init_abi): Adjust gdbarch initialization.
1163 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1165 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1166 (armbsd_iterate_over_regset_sections): New prototype.
1167 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1168 (armbsd_iterate_over_regset_sections): New.
1169 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1174 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1175 (alpha_linux_iterate_over_regset_sections): New.
1176 (alpha_linux_init_abi): Adjust gdbarch initialization.
1177 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1179 (alphanbsd_iterate_over_regset_sections): New prototype.
1181 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1183 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1185 (aarch64_linux_iterate_over_regset_sections): New.
1186 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1188 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1190 * fbsd-tdep.c: New file.
1191 * fbsd-tdep.h: New file.
1192 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1193 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1194 (ALLDEPFILES): Add fbsd-tdep.c.
1196 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1198 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1200 * gdbarch.h: Regenerate.
1201 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1203 (get_core_register_section): Add parameter 'regset' and use it, if
1204 set. Add parameter 'min_size' and verify the bfd section size
1206 (get_core_registers_cb): Add parameter 'regset' and pass it to
1207 get_core_register section. For the "standard" register sections
1208 ".reg" and ".reg2", set an appropriate default for human_name.
1209 (get_core_registers): Don't abort when the gdbarch has an iterator
1210 but no regset_from_core_section. Add NULL/0 for parameters
1211 'regset'/'min_size' in calls to get_core_register_section.
1212 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1213 'regset' and use it instead of calling the
1214 regset_from_core_section gdbarch method.
1215 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1216 * i386-tdep.c (i386_supply_xstateregset)
1217 (i386_collect_xstateregset, i386_xstateregset): Moved to
1219 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1221 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1222 core file support only if the regset iterator hasn't been set.
1223 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1224 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1225 Moved from i386-tdep.c and renamed to *_linux*.
1226 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1227 each callback invocation. Allow any .reg-xstate size when reading
1229 * amd64-tdep.c (amd64_supply_xstateregset)
1230 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1232 (amd64_regset_from_core_section): Remove.
1233 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1234 install an amd64-specific regset_from_core_section gdbarch method.
1235 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1236 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1237 Moved from amd64-tdep.c and renamed to *_linux*.
1238 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1239 to each callback invocation. Allow any .reg-xstate size when
1240 reading from a core file.
1241 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1242 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1243 each callback invocation.
1244 (arm_linux_init_abi): No longer set the regset_from_core_section
1246 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1247 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1248 each callback invocation.
1249 (ppc_linux_init_abi): No longer set the regset_from_core_section
1251 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1252 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1253 (s390_regset_from_core_section): Remove.
1254 (s390_iterate_over_regset_sections): Add regset parameter to each
1255 callback invocation.
1256 (s390_gdbarch_init): No longer set the regset_from_core_section
1257 gdbarch method. Drop initialization of deleted tdep fields.
1259 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1261 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1262 (amd64_linux_iterate_over_regset_sections): New.
1263 (amd64_linux_init_abi_common): Don't install the regset section
1264 list, but the new iterator in gdbarch.
1265 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1266 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1267 (arm_linux_iterate_over_regset_sections): ...here. New function.
1268 (arm_linux_init_abi): Set iterator instead of section list.
1269 * corelow.c (get_core_registers_cb): New function, logic moved
1271 (get_core_registers): ...loop body here. Use new iterator method
1272 instead of walking through the regset section list.
1273 * gdbarch.sh: Remove 'core_regset_sections'. New method
1274 'iterate_over_regset_sections'. New typedef
1275 'iterate_over_regset_sections_cb'.
1276 * gdbarch.c: Regenerate.
1277 * gdbarch.h: Likewise.
1278 * i386-linux-tdep.c (i386_linux_regset_sections)
1279 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1281 (i386_linux_iterate_over_regset_sections): New.
1282 (i386_linux_init_abi): Don't choose a regset section list, but
1283 install new iterator in gdbarch.
1284 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1285 (linux_collect_regset_section_cb): New function, logic moved
1287 (linux_collect_thread_registers): ...loop body here. Use iterator
1288 method instead of walking through list.
1289 (linux_make_corefile_notes_1): Check for presence of iterator
1290 method instead of regset section list.
1291 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1292 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1293 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1294 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1295 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1296 (ppc_linux_init_abi): Don't choose from above regset section
1297 lists, but install new iterator in gdbarch.
1298 * regset.h (struct core_regset_section): Remove.
1299 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1300 have_linux_v1, have_linux_v2, and have_tdb.
1301 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1302 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1303 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1304 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1305 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1306 (s390_iterate_over_regset_sections): ...here. New function. Use
1308 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1309 regset section lists, but install new iterator.
1311 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1313 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1315 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1317 * progspace.c (print_program_space): Don't prune program spaces
1318 before printing them.
1320 2014-09-25 Pedro Alves <palves@redhat.com>
1322 * infrun.c (user_visible_resume_ptid): Don't check
1323 singlestep_breakpoints_inserted_p.
1325 2014-09-25 Pedro Alves <palves@redhat.com>
1327 * breakpoint.c (should_be_inserted): Add debug output.
1329 2014-09-25 Pedro Alves <palves@redhat.com>
1331 * infrun.c (stepping_past_instruction_at)
1332 (clear_exit_convenience_vars): Point at infrun.h instead of
1334 (handle_signal_stop): Fix typo.
1336 2014-09-24 Yao Qi <yao@codesourcery.com>
1338 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1341 2014-09-22 Gary Benson <gbenson@redhat.com>
1343 * target.c (target_stop): Updated comment.
1345 2014-09-22 Gary Benson <gbenson@redhat.com>
1347 * target/target.h (target_stop_ptid): Renamed as...
1348 (target_stop_and_wait): New function. Updated comment.
1350 (target_continue_ptid): Renamed as...
1351 (target_continue_no_signal): New function. Updated comment.
1354 2014-09-22 Pedro Alves <palves@redhat.com>
1356 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1358 * breakpoint.c (enum ugll_insert_mode): New enum.
1359 (always_inserted_mode): Now a plain boolean.
1360 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1361 (breakpoints_always_inserted_mode): Delete.
1362 (breakpoints_should_be_inserted_now): New function.
1363 (insert_breakpoints): Pass UGLL_INSERT to
1364 update_global_location_list instead of calling
1365 insert_breakpoint_locations manually.
1366 (create_solib_event_breakpoint_1): New, factored out from ...
1367 (create_solib_event_breakpoint): ... this.
1368 (create_and_insert_solib_event_breakpoint): Use
1369 create_solib_event_breakpoint_1 instead of calling
1370 insert_breakpoint_locations manually.
1371 (update_global_location_list): Change parameter type from boolean
1372 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1373 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1374 (update_global_location_list_nothrow): Change parameter type from
1375 boolean to enum ugll_insert_mode.
1376 (_initialize_breakpoint): "breakpoint always-inserted" option is
1377 now a boolean command. Update help text.
1378 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1379 (breakpoints_should_be_inserted_now): New declaration.
1380 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1381 Remove breakpoints_always_inserted_mode check.
1382 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1383 * remote.c (remote_start_remote): Likewise.
1385 2014-09-22 Pedro Alves <palves@redhat.com>
1387 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1388 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1389 Instead, pass UGLL_INSERT to update_global_location_list.
1390 (update_global_location_list): Change parameter type from boolean
1391 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1392 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1393 (create_solib_event_breakpoint_1): New, factored out from ...
1394 (create_solib_event_breakpoint): ... this.
1395 (create_and_insert_solib_event_breakpoint): Use
1396 create_solib_event_breakpoint_1 instead of calling
1397 insert_breakpoint_locations manually.
1398 (update_global_location_list): Handle UGLL_INSERT.
1400 2014-09-22 Pedro Alves <palves@redhat.com>
1402 * breakpoint.c (enum ugll_insert_mode): New enum.
1403 (update_global_location_list)
1404 (update_global_location_list_nothrow): Change parameter type from
1405 boolean to enum ugll_insert_mode. All callers adjusted.
1407 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1409 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1410 SystemTap support in GDB.
1412 2014-09-19 Don Breazeal <donb@codesourcery.com>
1414 * linux-nat.c (linux_handle_extended_wait): Call
1415 linux_ptrace_get_extended_event.
1416 (wait_lwp): Call linux_is_extended_waitstatus.
1417 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1418 and linux_is_extended_waitstatus.
1419 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1420 linux_ptrace_get_extended_event.
1421 (linux_ptrace_get_extended_event): New function.
1422 (linux_is_extended_waitstatus): New function.
1423 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1424 (linux_is_extended_waitstatus): New declarations.
1426 2014-09-19 Yao Qi <yao@codesourcery.com>
1428 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1429 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1430 comments. Callers update.
1431 (dwarf_decode_lines): Likewise.
1432 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1433 comments. Skip the line table if 'lowpc' is greater than
1434 'address'. Don't check
1435 dwarf2_per_objfile->has_section_at_zero.
1437 2014-09-18 Doug Evans <dje@google.com>
1439 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1440 * python/py-symtab.c (stpy_get_producer): New function.
1441 (symtab_object_getset): Add "producer" attribute.
1443 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1446 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1447 (do_captured_read_memory_integer): Remove.
1448 (safe_read_memory_integer): Use target_read_memory directly instead
1449 of catching errors in do_captured_read_memory_integer.
1451 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1453 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1456 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1458 * objc-lang.c (find_implementation_from_class): Remove dead code.
1460 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1463 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1464 "fprintf_unfiltered (gdb_stdlog...)".
1466 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1468 PR breakpoints/12526
1469 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1471 * breakpoint.c (watch_command_1): Use these fields to retain
1472 bitfield information.
1473 (extract_bitfield_from_watchpoint_value): New function.
1474 (watchpoint_check): Use it.
1475 (update_watchpoint): Use it. Optimize the address and length of a
1476 HW watchpoint pointing to a bitfield.
1477 * value.h (unpack_value_bitfield): New prototype.
1478 * value.c (unpack_value_bitfield): Make extern.
1480 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1482 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1484 * gnu-nat.c (inf_threads): New function.
1485 * gnu-nat.h (inf_threads_ftype): New typedef.
1486 (inf_threads): New declaration.
1487 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1488 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1489 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1490 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1491 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1492 (i386_gnu_dr_get_control): New functions.
1493 (reg_addr): New structure.
1494 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1495 i386 debugging register hooks.
1496 * NEWS: Mention this.
1498 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1500 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1501 vector data transfer instructions.
1502 (arm_record_coproc_data_proc): Updated.
1504 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1506 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1507 arm_record_exreg_ld_st_insn.
1508 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1511 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1513 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1514 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1515 processing instructions.
1517 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1519 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1520 for advance SIMD struct ld/st insn.
1521 (thumb2_record_decode_insn_handler): Replace stub handler with
1522 thumb2_record_asimd_struct_ld_st.
1524 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1526 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1527 for asimd, vfp and coprocessor insns.
1528 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1529 and coprocessor insns.
1530 (thumb2_record_coproc_insn): New function.
1531 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1533 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1536 2014-09-13 Doug Evans <xdje42@gmail.com>
1538 * NEWS: Mention new "queue-signal" command.
1539 * infcmd.c (queue_signal_command): New function.
1540 (_initialize_infcmd): Add new queue-signal command.
1542 2014-09-13 Doug Evans <xdje42@gmail.com>
1544 * linux-nat.c (wait_lwp): Add debugging printf.
1545 (linux_nat_wait_1): Ditto.
1547 2014-09-12 Pedro Alves <palves@redhat.com>
1549 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1550 (create_and_insert_solib_event_breakpoint): New functions.
1551 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1552 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1553 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1554 (remove_dbx_link_breakpoint): Delete function.
1555 (insert_dbx_link_bpt_in_file): Use
1556 create_and_insert_solib_event_breakpoint instead of
1557 deprecated_insert_raw_breakpoint.
1558 (procfs_wait): Don't check whether we hit __dbx_link here.
1559 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1561 * solib-irix.c (base_breakpoint): Delete global.
1562 (disable_break): Delete function.
1563 (enable_break): Use create_solib_event_breakpoint
1564 instead of deprecated_insert_raw_breakpoint.
1565 (irix_solib_handle_event): New function.
1566 (irix_solib_create_inferior_hook): Don't run the target or disable
1567 the mapping-complete breakpoint here.
1568 (_initialize_irix_solib): Install irix_solib_handle_event as
1569 so_ops->handle_event hook.
1571 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1572 Ulrich Weigand <uweigand@de.ibm.com>
1575 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1576 instead of read_memory_unsigned_integer.
1578 2014-09-12 Gary Benson <gbenson@redhat.com>
1580 * nat/linux-waitpid.c: Include common-defs.h.
1581 [GDBSERVER]: Add FIXME comment.
1582 [!GDBSERVER]: Don't include defs.h or signal.h.
1583 (linux_debug) [!GDBSERVER]: Remove empty block.
1585 2014-09-12 Gary Benson <gbenson@redhat.com>
1587 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1588 Don't include defs.h or server.h.
1590 2014-09-12 Gary Benson <gbenson@redhat.com>
1592 * nat/linux-btrace.c: Include common-defs.h.
1593 Don't include defs.h, server.h or gdbthread.h.
1594 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1596 2014-09-12 Gary Benson <gbenson@redhat.com>
1598 * common/agent.c: Include common-defs.h.
1599 Don't include defs.h or server.h.
1600 * common/buffer.c: Likewise.
1601 * common/common-debug.c: Likewise.
1602 * common/common-utils.c: Likewise.
1603 * common/errors.c: Likewise.
1604 * common/filestuff.c: Likewise.
1605 * common/format.c: Likewise.
1606 * common/gdb_vecs.c: Likewise.
1607 * common/print-utils.c: Likewise.
1608 * common/ptid.c: Likewise.
1609 * common/rsp-low.c: Likewise.
1610 * common/signals.c: Likewise.
1611 * common/vec.c: Likewise.
1612 * common/xml-utils.c: Likewise.
1613 * nat/linux-osdata.c: Likewise.
1614 * nat/linux-procfs.c: Likewise.
1615 * nat/linux-ptrace.c: Likewise.
1616 * nat/mips-linux-watch.c: Likewise.
1617 * target/waitstatus.c: Likewise.
1619 2014-09-12 Tom Tromey <tromey@redhat.com>
1620 Gary Benson <gbenson@redhat.com>
1622 * common/common-regcache.h: New file.
1623 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1624 * regcache.h: Include common-regcache.h.
1625 (regcache_read_pc): Don't declare.
1626 * regcache.c (get_thread_regcache_for_ptid): New function.
1627 * nat/linux-btrace.c: Don't include regcache.h.
1628 Include common-regcache.h.
1629 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1631 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1633 * regcache.h (struct regset): Declare.
1635 2014-09-11 Pedro Alves <palves@redhat.com>
1638 * main.c: Include "infrun.h".
1639 (catch_command_errors, catch_command_errors_const): Wait for the
1640 foreground command to complete.
1641 * top.c (maybe_wait_sync_command_done): New function, factored out
1643 (maybe_wait_sync_command_done): ... here.
1644 * top.h (maybe_wait_sync_command_done): New declaration.
1646 2014-09-11 Tom Tromey <tromey@redhat.com>
1647 Gary Benson <gbenson@redhat.com>
1649 * common/symbol.h: New file.
1650 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1651 * minsyms.c (find_minimal_symbol_address): New function.
1652 * common/agent.c: Include common/symbol.h.
1653 [!GDBSERVER]: Don't include objfiles.h.
1654 (agent_look_up_symbols): Use find_minimal_symbol_address.
1656 2014-09-11 Gary Benson <gbenson@redhat.com>
1658 * target/target.h (target_stop_ptid, target_continue_ptid):
1660 * target.c (target_stop_ptid, target_continue_ptid): New
1662 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1663 (agent_run_command): Always use target_stop_ptid and
1664 target_continue_ptid.
1666 2014-09-11 Tom Tromey <tromey@redhat.com>
1667 Gary Benson <gbenson@redhat.com>
1669 * target/target.h: New file.
1670 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1671 * target.h: Include target/target.h.
1672 (target_read_memory, target_write_memory): Don't declare.
1673 * target.c (target_read_uint32): New function.
1674 * common/agent.c: Include target/target.h.
1675 [!GDBSERVER]: Don't include target.h.
1676 (helper_thread_id): Type changed to uint32_t.
1677 (agent_get_helper_thread_id): Use target_read_uint32.
1678 (agent_run_command): Always use target_read_memory and
1679 target_write_memory.
1680 (agent_capability): Type changed to uint32_t.
1681 (agent_capability_check): Use target_read_uint32.
1683 2014-09-11 Gary Benson <gbenson@redhat.com>
1685 * common/common-debug.h (show_debug_regs): Declare.
1686 * common/common-debug.c (show_debug_regs): Define.
1687 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1688 all uses with show_debug_regs. Replace all uses that considered
1689 debug_hw_points as a multi-value integer with straight boolean
1691 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1692 with show_debug_regs.
1693 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1694 all uses with show_debug_regs.
1695 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1696 uses with show_debug_regs.
1698 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1700 * findvar.c (address_from_register): Handle targets requiring
1701 a special conversion routine even for plain pointer types.
1703 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1705 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1706 (store_register): Do not call exec_one_dummy_insn.
1708 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1710 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1711 dereference it first. Use value_enclosing_type instead of
1713 (ada_array_length): Likewise.
1715 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1717 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1718 Adjust function implementation and documentation accordingly.
1719 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1720 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1721 Update call to ada_value_ptr_subscript.
1723 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1725 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1726 instead of VAL's type.
1728 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1730 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1732 2014-09-09 Doug Evans <xdje42@gmail.com>
1735 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1736 last parameter to pkg-config, not first.
1737 * configure.ac: Pass --with-guile provided pkg-config path to
1738 GDB_GUILE_PROGRAM_NAMES.
1739 * configure: Regenerate.
1741 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1743 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1746 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1748 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1749 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1750 the list of sections determining GDB_OSABI_IRIX.
1752 2014-09-09 James Hogan <james.hogan@imgtec.com>
1754 * MAINTAINERS (Write After Approval): Add "James Hogan".
1756 2014-09-09 James Hogan <james.hogan@imgtec.com>
1758 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1760 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1762 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1764 2014-09-08 Doug Evans <xdje42@gmail.com>
1767 * guile.c: #include <signal.h>.
1768 (_initialize_guile): Block SIGCHLD while initializing Guile.
1770 Replaces the following, which is reverted.
1772 2014-07-26 Doug Evans <xdje42@gmail.com>
1775 * configure.ac: Add check for header gc/gc.h.
1776 Add check for function setenv.
1777 * configure: Regenerate.
1778 * config.in: Regenerate.
1779 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1781 2014-09-08 Doug Evans <xdje42@gmail.com>
1783 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1784 with named constant. Fix style of pointer comparison.
1785 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1787 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1790 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1791 decide whether we display the command on "show user".
1792 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1793 printing command name.
1794 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1795 * cli/cli-decode.c (cli_user_command_p): Create helper function
1796 to verify whether cmd_list_element is a user-defined command.
1798 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1801 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1802 Fix goto out of TRY_CATCH.
1804 2014-09-06 Doug Evans <xdje42@gmail.com>
1805 Tom Tromey <tromey@redhat.com>
1808 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1809 $_any_caller_matches.
1810 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1811 * python/lib/gdb/function/caller_is.py: New file.
1813 2014-09-06 Doug Evans <xdje42@gmail.com>
1815 * infcmd.c (program_info): Fix typo.
1817 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1820 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1821 'number'. New variable 'has_digit'. Rewrite code to deal with
1822 subexpressions on SDT probes.
1824 2014-09-04 Pedro Alves <palves@redhat.com>
1826 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1827 the input is only one character long.
1829 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1832 * f-valprint.c (f_val_print): Specify the correct print option to
1833 use when printing integer values.
1835 2014-09-04 Gary Benson <gbenson@redhat.com>
1837 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1838 Remove code to cope with LWPs wrapped as PIDs.
1839 Add assertions to ensure no wrapped LWPs are passed.
1841 2014-09-04 Pedro Alves <palves@redhat.com>
1843 * value.c (value_ranges_copy_adjusted): New function, factored out
1845 (value_contents_copy_raw): ... here.
1846 (unpack_value_bits_as_long_1): Rename back to ...
1847 (unpack_bits_as_long): ... this. Remove 'original_value' and
1848 'result' parameters. Change return type to LONGEST.
1849 (unpack_value_bits_as_long): Delete.
1850 (unpack_value_field_as_long_1): Delete.
1851 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1852 (unpack_value_bitfield): New function.
1853 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1854 (value_fetch_lazy): Use unpack_value_bitfield.
1855 * value.h (unpack_value_bits_as_long): Delete declaration.
1857 2014-09-03 Sasha Smundak <asmundak@google.com>
1859 * python/py-frame.c (frapy_read_register): New function.
1861 2014-09-03 James Hogan <james.hogan@imgtec.com>
1863 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1864 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1866 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1869 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1871 (add_cmd): Set "completer_handle_brkchars" to NULL.
1872 * cli/cli-decode.h (struct cmd_list_element)
1873 <completer_handle_brkchars>: New field.
1874 * command.h (completer_ftype_void): New typedef.
1875 (set_cmd_completer_handle_brkchars): New prototype.
1876 * completer.c (set_gdb_completion_word_break_characters): New
1878 (complete_line_internal): Call "completer_handle_brkchars"
1879 callback from command.
1880 * completer.h: Include "command.h".
1881 (set_gdb_completion_word_break_characters): New prototype.
1882 * python/py-cmd.c (cmdpy_completer_helper): New function.
1883 (cmdpy_completer_handle_brkchars): New function.
1884 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1885 (cmdpy_init): Set completer_handle_brkchars to
1886 cmdpy_completer_handle_brkchars.
1888 2014-09-03 Gary Benson <gbenson@redhat.com>
1890 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1891 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1892 Loop conditions changed to equivalent form.
1893 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1894 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1895 ALL_DEBUG_ADDRESS_REGISTERS.
1897 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1899 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1902 2014-09-02 Doug Evans <dje@google.com>
1904 * typeprint.c (find_global_typedef): Fix comment.
1906 2014-09-02 Gary Benson <gbenson@redhat.com>
1908 * i386-nat.h: Renamed as...
1909 * x86-nat.h: New file. All type, function and variable name
1910 prefixes changed from "i386_" to "x86_". All references updated.
1911 * i386-nat.c: Renamed as...
1912 * x86-nat.c: New file. All type, function and variable name
1913 prefixes changed from "i386_" to "x86_". All references updated.
1914 * common/i386-xstate.h: Renamed as...
1915 * common/x86-xstate.h: New file. All type, function and variable
1916 name prefixes changed from "i386_" to "x86_". All references
1918 * nat/i386-cpuid.h: Renamed as...
1919 * nat/x86-cpuid.h: New file. All type, function and variable name
1920 prefixes changed from "i386_" to "x86_". All references updated.
1921 * nat/i386-gcc-cpuid.h: Renamed as...
1922 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1923 name prefixes changed from "i386_" to "x86_". All references
1925 * nat/i386-dregs.h: Renamed as...
1926 * nat/x86-dregs.h: New file. All type, function and variable name
1927 prefixes changed from "i386_" to "x86_". All references updated.
1928 * nat/i386-dregs.c: Renamed as...
1929 * nat/x86-dregs.c: New file. All type, function and variable name
1930 prefixes changed from "i386_" to "x86_". All references updated.
1932 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1934 * varobj.c (_initialize_varobj): Move to the end of file.
1936 2014-08-29 Gary Benson <gbenson@redhat.com>
1938 * common/common-exceptions.h: New file.
1939 * common/common-exceptions.c: Likewise.
1940 * Makefile.in (SFILES): Add common/common-exceptions.c.
1941 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1942 (COMMON_OBS): Add common-exceptions.o.
1943 (common-exceptions.o): New rule.
1944 * exceptions.h (common-exceptions.h): Include.
1945 (gdb_setjmp.h): Do not include.
1946 (return_reason): Moved to common-exceptions.h.
1947 (enum return_reason): Likewise.
1948 (RETURN_MASK): Likewise.
1949 (typedef return_mask): Likewise.
1950 (enum errors): Likewise.
1951 (struct gdb_exception): Likewise.
1952 (exceptions_state_mc_init): Likewise.
1953 (exceptions_state_mc_action_iter): Likewise.
1954 (exceptions_state_mc_action_iter_1): Likewise.
1955 (TRY_CATCH): Likewise.
1956 (throw_exception): Likewise.
1957 (throw_verror): Likewise.
1958 (throw_vquit): Likewise.
1959 (throw_error): Likewise.
1960 (throw_quit): Likewise.
1961 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1962 (enum catcher_action): Likewise.
1963 (struct catcher): Likewise.
1964 (current_catcher): Likewise.
1965 (catcher_list_size): Likewise.
1966 (exceptions_state_mc_init): Likewise.
1967 (catcher_pop): Likewise.
1968 (exceptions_state_mc): Likewise.
1969 (exceptions_state_mc_action_iter): Likewise.
1970 (exceptions_state_mc_action_iter_1): Likewise.
1971 (throw_exception): Likewise.
1972 (exception_messages): Likewise.
1973 (exception_messages_size): Likewise.
1974 (throw_it): Likewise.
1975 (throw_verror): Likewise.
1976 (throw_vquit): Likewise.
1977 (throw_error): Likewise.
1978 (throw_quit): Likewise.
1979 (prepare_to_throw_exception): New function.
1981 2014-08-29 Gary Benson <gbenson@redhat.com>
1983 * common/gdb_setjmp.h: New file.
1984 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1985 * configure.ac: Move sigsetjmp check...
1986 * common/common.m4: ...here.
1987 * configure: Regenerate.
1988 * cp-support.c (SIGJMP_BUF): Delete.
1989 (SIGSETJMP): Likewise.
1990 (SIGLONGJMP): Likewise.
1991 * exceptions.h (gdb_setjmp.h): Include.
1992 (setjmp.h): Do not include.
1993 (EXCEPTIONS_SIGJMP_BUF): Delete.
1994 (EXCEPTIONS_SIGSETJMP): Likewise.
1995 (EXCEPTIONS_SIGLONGJMP): Likewise.
1996 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1998 * exceptions.c: Likewise.
2000 2014-08-29 Gary Benson <gbenson@redhat.com>
2002 * cleanups.h: Moved to...
2003 * common/cleanups.h: New file.
2004 * cleanups.c: Moved to...
2005 * common/cleanups.c: New file. Include common-defs.h and
2006 cleanups.h. Do not include defs.h.
2007 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2008 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2009 (cleanups.o): New rule.
2011 2014-08-29 Gary Benson <gbenson@redhat.com>
2013 * common/errors.h (internal_warning): New declaration.
2014 (internal_vwarning): Likewise.
2015 * common/errors.c (internal_warning): New function.
2016 * utils.h (internal_warning): Don't declare.
2017 (internal_vwarning): Likewise.
2018 * utils.c (internal_warning): Removed.
2020 2014-08-29 Gary Benson <gbenson@redhat.com>
2022 * main.c (captured_main): Use warning during startup.
2023 Prefix startup warning messages with command name.
2025 2014-08-29 Gary Benson <gbenson@redhat.com>
2027 * main.c (captured_main): Handle usage errors with error.
2029 2014-08-29 Gary Benson <gbenson@redhat.com>
2031 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2032 exit pair with a call to error. Wrap the message with _().
2034 2014-08-29 Gary Benson <gbenson@redhat.com>
2036 * main.c (captured_main): Replace a fprintf/exit
2037 pair with a call to error. Wrap the message with _().
2039 2014-08-29 Gary Benson <gbenson@redhat.com>
2041 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2042 pairs with calls to error. Wrap the message with _().
2044 2014-08-29 Gary Benson <gbenson@redhat.com>
2046 * utils.c (vwarning): Protect calls to target_terminal_ours
2049 2014-08-29 Gary Benson <gbenson@redhat.com>
2051 * exceptions.c (print_flush): Protect calls to
2052 target_terminal_ours and wrap_here.
2054 2014-08-29 Gary Benson <gbenson@redhat.com>
2056 * utils.h (filtered_printing_initialized): New declaration.
2057 * utils.c (abort_with_message): New function.
2058 (internal_vproblem): Use abort_with_message for first level
2059 recursive internal problems, and if gdb_stderr is not set up.
2060 Protect calls to target_terminal_ours, begin_line and query.
2062 2014-08-28 Doug Evans <dje@google.com>
2064 * symtab.c (in_prologue): Move definition to better spot.
2065 (skip_prologue_using_sal): Ditto.
2067 2014-08-28 Doug Evans <dje@google.com>
2069 * symtab.c (find_function_start_sal): Move definition to better spot.
2071 2014-08-28 Yao Qi <yao@codesourcery.com>
2073 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2074 found_stack_adjust in forward scan. Remove condition check
2075 on found_stack_adjust which is always true. Indent the code.
2077 2014-08-28 Yao Qi <yao@codesourcery.com>
2079 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2080 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2081 (dwarf_decode_lines): Remove argument
2082 want_line_info. Remove condition check on want_line_info.
2085 2014-08-27 Doug Evans <dje@google.com>
2087 * dwarf2read.c (dwarf_record_line): Fix typo.
2089 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2091 * target.h (struct target_ops::to_terminal_save_ours): Remove
2093 (target_terminal_save_ours): Remove macro.
2094 * target-delegates.c: Regenerate.
2095 * inf-child.c (inf_child_target): Don't set the nonexistent
2096 field to_terminal_save_ours.
2097 * inferior.h (child_terminal_save_ours): Remove declaration.
2098 * terminal.h (gdb_save_tty_state): New declaration.
2099 * inflow.c (child_terminal_save_ours): Rename to ...
2100 (gdb_save_tty_state): ... this.
2101 * tui/tui.c: Include terminal.h.
2102 (tui_enable): Use gdb_save_tty_state instead of
2103 target_terminal_save_ours.
2104 (tui_disable): Likewise.
2106 2014-08-25 Doug Evans <dje@google.com>
2108 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2109 Pass NULL instead of 0 for context pointer.
2111 2014-08-25 Yao Qi <yao@codesourcery.com>
2113 * dwarf2read.c: Fix grammatical error.
2115 2014-08-24 Yao Qi <yao@codesourcery.com>
2117 * dwarf2read.c (scan_partial_symbols): Update comments.
2118 Rename argument 'need_pc' with 'set_addrmap'.
2119 (add_partial_namespace): Rename argument 'need_pc' with
2121 (add_partial_module): Likewise.
2122 (add_partial_subprogram): Likewise. Update comments.
2123 (dwarf2_name): Fix typo.
2125 2014-08-22 Doug Evans <dje@google.com>
2128 * dwarf2read.c (dwarf_record_line_p): New function.
2129 (dwarf_decode_lines_1): Ignore subsequent line number entries
2130 for the same line if any entry had a non-zero discriminator.
2132 2014-08-22 Doug Evans <dje@google.com>
2134 * buildsym.h (record_line_ftype): New typedef.
2135 (record_line): Use it.
2136 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2137 (dwarf_decode_lines_1): Call them.
2139 2014-08-22 Yao Qi <yao@codesourcery.com>
2141 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2142 (ctf_end): Remove code.
2144 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2146 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2147 (linux_make_corefile_notes): call update_thread_list, protected against
2150 2014-08-21 Pedro Alves <palves@redhat.com>
2152 * infcmd.c (attach_command): Remove comment.
2154 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2156 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2157 unsigned LONGEST to ULONGEST.
2159 2014-08-20 Pedro Alves <palves@redhat.com>
2161 * Makefile.in (check-read1): New rule.
2163 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2165 * value.c (value_from_contents_and_address): Strip resolved_type's
2166 typedef layers before checking its TYPE_DATA_LOCATION.
2168 2014-08-20 Pedro Alves <palves@redhat.com>
2170 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2172 2014-08-20 Yao Qi <yao@codesourcery.com>
2174 * amd64-tdep.c (amd64_classify): Add a blank line after the
2175 example. Move "*/" to a new line.
2176 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2177 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2178 * dwarf2read.c (psymtab_include_file_name): Likewise.
2180 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2181 Pedro Alves <palves@redhat.com>
2185 * ada-lang.c (coerce_unspec_val_to_type): Use
2186 value_contents_copy_raw.
2187 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2188 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2189 * cp-valprint.c (cp_print_value_fields): Let the common printing
2190 code handle optimized out values.
2191 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2192 * d-valprint.c (dynamic_array_type): Use
2193 value_bits_any_optimized_out.
2194 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2195 check_any_valid fields.
2196 (check_pieced_value_bits): Delete and inline ...
2197 (check_pieced_synthetic_pointer): ... here.
2198 (check_pieced_value_validity): Delete.
2199 (check_pieced_value_invalid): Delete.
2200 (pieced_value_funcs): Remove check_validity and check_any_valid
2202 (read_pieced_value): Use mark_value_bits_optimized_out.
2203 (write_pieced_value): Switch to use
2204 mark_value_bytes_optimized_out.
2205 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2206 of assuming the whole value is optimized out.
2207 * findvar.c (read_frame_register_value): Remove special handling
2208 of optimized out registers.
2209 (value_from_register): Use mark_value_bytes_optimized_out.
2210 * frame-unwind.c (frame_unwind_got_optimized): Use
2211 mark_value_bytes_optimized_out.
2212 * jv-valprint.c (java_value_print): Adjust.
2213 (java_print_value_fields): Let the common printing code handle
2214 optimized out values.
2215 * mips-tdep.c (mips_print_register): Remove special handling of
2216 optimized out registers.
2217 * opencl-lang.c (lval_func_check_validity): Delete.
2218 (lval_func_check_any_valid): Delete.
2219 (opencl_value_funcs): Remove check_validity and check_any_valid
2221 * p-valprint.c (pascal_object_print_value_fields): Let the common
2222 printing code handle optimized out values.
2223 * stack.c (read_frame_arg): Remove special handling of optimized
2224 out values. Fetch both VAL and ENTRYVAL before comparing
2225 contents. Adjust to value_available_contents_eq rename.
2226 * valprint.c (valprint_check_validity)
2227 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2228 (val_print_array_elements): Adjust.
2229 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2230 (value_bits_any_optimized_out): New function.
2231 (value_entirely_covered_by_range_vector): New function, factored
2232 out from value_entirely_unavailable.
2233 (value_entirely_unavailable): Reimplement.
2234 (value_entirely_optimized_out): New function.
2235 (insert_into_bit_range_vector): New function, factored out from
2236 mark_value_bits_unavailable.
2237 (mark_value_bits_unavailable): Reimplement.
2238 (struct ranges_and_idx): New struct.
2239 (find_first_range_overlap_and_match): New function, factored out
2240 from value_available_contents_bits_eq.
2241 (value_available_contents_bits_eq): Rename to ...
2242 (value_contents_bits_eq): ... this. Check both unavailable
2243 contents and optimized out contents.
2244 (value_available_contents_eq): Rename to ...
2245 (value_contents_eq): ... this.
2246 (allocate_value_lazy): Remove reference to the old optimized_out
2248 (allocate_optimized_out_value): Use
2249 mark_value_bytes_optimized_out.
2250 (require_not_optimized_out): Adjust to check whether the
2251 optimized_out vec is empty.
2252 (ranges_copy_adjusted): New function, factored out from
2253 value_contents_copy_raw.
2254 (value_contents_copy_raw): Also copy the optimized out ranges.
2255 Assert the destination ranges aren't optimized out.
2256 (value_contents_copy): Update comment, remove call to
2257 require_not_optimized_out.
2258 (value_contents_equal): Adjust to check whether the optimized_out
2260 (set_value_optimized_out, value_optimized_out_const): Delete.
2261 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2263 (value_entirely_optimized_out, value_bits_valid): Delete.
2264 (value_copy): Take a VEC copy of the 'optimized_out' field.
2265 (value_primitive_field): Remove special handling of optimized out.
2266 (value_fetch_lazy): Assert that lazy values have no unavailable
2267 regions. Use value_bits_any_optimized_out. Remove some special
2268 handling for optimized out values.
2269 * value.h: Add intro comment about <optimized out> and
2271 (struct lval_funcs): Remove check_validity and check_any_valid
2273 (set_value_optimized_out, value_optimized_out_const): Remove.
2274 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2276 (value_bits_any_optimized_out): New declaration.
2277 (value_bits_valid): Delete declaration.
2278 (value_available_contents_eq): Rename to ...
2279 (value_contents_eq): ... this, and extend comments.
2281 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2283 Fix -fsanitize=address on unreadable inferior strings.
2284 * valprint.c (val_print_string): Fix access before BUFFER.
2286 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2288 * target.c (target_struct_size): Remove.
2289 (target_struct_allocsize): Remove.
2290 (DEFAULT_ALLOCSIZE): Remove.
2291 (target_ops_p): New typedef.
2292 (DEF_VEC_P (target_ops_p)): New vector type.
2293 (target_structs): Change type to VEC (target_ops_p).
2294 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2295 (find_default_run_target): Rewrite for loop following changes to
2298 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2300 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2301 Adjust code accordingly. Adjust function description comment.
2303 2014-08-19 Yao Qi <yao@codesourcery.com>
2305 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2308 2014-08-19 Alan Modra <amodra@gmail.com>
2310 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2311 * config.in: Regenerate.
2312 * configure: Regenerate.
2314 2014-08-19 Tom Tromey <tromey@redhat.com>
2315 Gary Benson <gbenson@redhat.com>
2317 * common/common-debug.h: New file.
2318 * common/common-debug.c: Likewise.
2319 * debug.c: Likewise.
2320 * Makefile.in (SFILES): Add common/common-debug.c.
2321 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2322 (COMMON_OBS): Add common-debug.o and debug.o.
2323 (common-debug.o): New rule.
2324 * common/common-defs.h: Include common-debug.h.
2325 * common/agent.c (debug_agent_printf): New function.
2326 (DEBUG_AGENT): Redefine.
2327 * nat/i386-dregs.c (debug_printf): Undefine.
2329 2014-08-19 Gary Benson <gbenson@redhat.com>
2331 * common/common-defs.h: Include print-utils.h.
2332 * utils.h: Do not include print-utils.h.
2334 2014-08-19 Tom Tromey <tromey@redhat.com>
2335 Gary Benson <gbenson@redhat.com>
2337 * common/common-types.h: New file.
2338 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2339 * common/common-defs.h: Include common-types.h.
2340 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2343 2014-08-19 Tom Tromey <tromey@redhat.com>
2344 Gary Benson <gbenson@redhat.com>
2346 * common/errors.h: New file.
2347 * common/errors.c: Likewise.
2348 * Makefile.in (SFILES): Add common/errors.c.
2349 (HFILES_NO_SRCDIR): Add common/errors.h.
2350 (COMMON_OBS): Add errors.o.
2351 (errors.o): New rule.
2352 * common/common-defs.h: Include errors.h.
2353 * utils.h (perror_with_name, error, verror, warning, vwarning):
2355 * common/common-utils.h: (malloc_failure, internal_error):
2358 2014-08-19 Gary Benson <gbenson@redhat.com>
2360 * utils.c (internal_vproblem): Always print the message.
2362 2014-08-18 Doug Evans <dje@google.com>
2364 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2366 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2368 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2369 Return 0 if TYPE is dynamic.
2370 (print_range): Add handling of dynamic ranges.
2372 2014-08-18 Keven Boell <keven.boell@intel.com>
2373 Joel Brobecker <brobecker@adacore.com>
2375 * gdbtypes.h (struct main_type): Add field "data_location".
2376 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2377 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2378 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2379 a dynamic data location.
2380 (resolve_dynamic_type): Add DW_AT_data_location handling.
2381 (copy_recursive, copy_type): Copy the data_location information
2383 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2384 * value.c (value_from_contents_and_address): Add
2385 DW_AT_data_location handling.
2387 2014-08-18 Keven Boell <keven.boell@intel.com>
2388 Joel Brobecker <brobecker@adacore.com>
2390 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2391 field "get_object_address".
2392 * dwarf2expr.c (execute_stack_op): Add handling for
2393 DW_OP_push_object_address.
2394 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2395 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2396 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2397 (dwarf_expr_get_obj_addr): New function.
2398 (dwarf_expr_ctx_funcs): Add get_object_address field.
2399 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2400 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2401 (dwarf2_evaluate_property): Add parameter "address". Use it.
2402 (needs_get_obj_addr): New function.
2403 (needs_frame_ctx_funcs): Add get_object_address field.
2404 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2405 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2406 (resolve_dynamic_array): Likewise.
2408 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2410 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2411 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2412 fixed value for records and unions for which some GNAT encodings
2415 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2417 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2418 rewrite to avoid "else if" and "else" constructs. Should be
2419 a no-op in practice.
2421 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2423 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2426 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2429 * eval.c: Update all calls to find_overload_match.
2430 * valarith.c: Likewise.
2431 (value_user_defined_cpp_op, value_user_defined_op): New
2432 argument NOSIDE. Update all callers.
2433 * valops.c (find_overload_match): New argument NOSIDE.
2434 * value.h (find_overload_match): Update signature.
2436 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2438 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2439 'items' methods instead of 'iteritems' method on dictionaries.
2441 2014-08-15 Doug Evans <dje@google.com>
2443 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2446 2014-08-15 Doug Evans <dje@google.com>
2448 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2450 2014-08-15 Doug Evans <dje@google.com>
2452 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2454 2014-08-15 Doug Evans <dje@google.com>
2456 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2459 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2461 * dcache.h: Include target.h, to avoid compile time warnings.
2463 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2465 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2466 frame_info" partial declaration.
2467 * gdbarch.h: Regenerate.
2469 2014-08-15 Yao Qi <yao@codesourcery.com>
2471 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2472 Add parameter 'decode_for_pst_p'. Callers update.
2474 2014-08-13 Yao Qi <yao@codesourcery.com>
2477 * configure.ac: Use local variable 'pos'.
2478 * configure: Regenerated.
2480 2014-08-11 Doug Evans <dje@google.com>
2482 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2483 message, it is redundant with "Reading symbols from ..." message.
2485 2014-08-10 Doug Evans <xdje42@gmail.com>
2487 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2489 2014-08-09 Yao Qi <yao@codesourcery.com>
2492 * remote.c (remote_xfer_partial): Remove dead code.
2494 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2496 * ia64-linux-tdep.c: Include "regset.h".
2497 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2498 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2499 (ia64_linux_supply_fpregset): New function.
2500 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2501 (ia64_linux_regset_from_core_section): New function.
2502 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2505 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2507 * m68klinux-tdep.c: Include "regset.h".
2508 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2509 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2510 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2511 (m68k_linux_regset_from_core_section): New function.
2512 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2515 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2517 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2518 function. Move logic to...
2519 (tilegx_linux_regmap): ... this new register map.
2520 (tilegx_linux_regset): Refer to register map, replace supply
2521 method by regcache_supply_regset, and add collect method.
2522 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2523 TILEGX_FIRST_EASY_REGNUM.
2525 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2527 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2528 that calls regcache_supply_regset and handles the EPC register
2529 separately. Move main logic to...
2530 (score7_linux_gregmap): ... this new register map.
2531 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2532 (score7_linux_gregset): Refer to register map. Add collect method.
2533 (score7_linux_regset_from_core_section): Replace
2534 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2535 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2536 (struct regset): Delete unused forward declaraction.
2537 (struct pt_regs): Delete structure definition.
2538 (elf_gregset_t): Delete typedef.
2540 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2542 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2543 (nios2_core_regset): Add collect method.
2545 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2547 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2548 platform-independent and don't write to read-only input buffer.
2549 (m32r_linux_collect_gregset): New function.
2550 (m32r_linux_gregset): Add collect method.
2552 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2554 * hppa-linux-tdep.c (greg_map): Rename to...
2555 (hppa_linux_gregmap): ... this. Also convert to
2556 regcache_map_entry format.
2557 (hppa_linux_supply_regset): Delete function.
2558 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2559 (hppa_linux_fpregmap): ... this new register map.
2560 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2561 register map, replace supply method by regcache_supply_regset, and
2562 add collect method regcache_collect_regset.
2564 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2566 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2567 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2568 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2569 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2570 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2571 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2572 (frv_linux_supply_gregset): Replace main logic by call to
2573 regcache_supply_regset, but keep clearing gr32-gr63.
2574 (frv_linux_supply_fpregset): Delete function.
2575 (frv_linux_gregset): Refer to appropriate register map and add
2576 regcache_collect_regset as the collect method.
2577 (frv_linux_fpregset): Likewise. Also exchange the supply method
2578 by regcache_supply_regset.
2580 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2582 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2583 by call to alpha_supply_int_regs.
2584 (alpha_linux_collect_gregset): New function.
2585 (alpha_linux_supply_fpregset): Replace logic by call to
2586 alpha_supply_fp_regs.
2587 (alpha_linux_collect_fpregset): New function.
2588 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2590 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2592 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2593 by call to regcache_collect_regset.
2594 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2595 instead of aarch64_linux_supply_gregset/_fpregset.
2596 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2597 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2598 header file instead.
2599 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2600 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2601 functions. Move logic to ...
2602 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2604 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2605 refer to new register maps, replace *_regset_from_core by
2606 regcache_supply_regset, and also use regcache_collect_regset.
2607 * aarch64-linux-tdep.h: Include "regset.h".
2608 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2610 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2611 macros, moved from C source file.
2612 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2613 variable declarations.
2615 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2617 * s390-linux-nat.c: Include "regset.h".
2618 (regmap_gregset): Delete macro.
2619 (s390_64_regmap_gregset): New register map for
2620 regcache_supply/_collect_regset.
2621 (s390_64_gregset): New regset.
2622 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2623 (regmap_fpregset): Delete macro.
2624 (s390_native_supply, s390_native_collect): Delete functions.
2625 (supply_gregset, fill_gregset): Replace s390-specific regmap
2626 handling by a call to regcache_supply/_collect_regset.
2627 (supply_fpregset, fill_fpregset): Call regcache_supply/
2628 _collect_regset instead of s390_native_supply/_collect.
2629 (fetch_regset, store_regset): Likewise. Also change the last
2630 parameter to a regset instead of a regmap.
2631 (s390_linux_fetch_inferior_registers)
2632 (390_linux_store_inferior_registers): Adjust last parameter in
2633 calls to fetch_regset and store_regset.
2634 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2635 (s390_gregmap): ... this. Also make static const and convert to
2636 regcache_map_entry format.
2637 (s390x_regmap_gregset): Delete.
2638 (s390_regmap_fpregset): Rename to...
2639 (s390_fpregmap): ... this. Make static const and convert to
2640 regcache_map_entry format.
2641 (s390_regmap_upper, s390_regmap_last_break)
2642 (s390x_regmap_last_break, s390_regmap_system_call)
2643 (s390_regmap_tdb): Likewise.
2644 (s390_supply_regset, s390_collect_regset): Remove functions.
2645 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2647 (s390_gregset, s390_fpregset, s390_upper_regset)
2648 (s390_last_break_regset, s390x_last_break_regset)
2649 (s390_system_call_regset, s390_tdb_regset): Make global and
2650 replace s390_supply/_collect_regset by regcache_supply/
2652 (s390x_gregset): Delete.
2653 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2654 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2655 (s390_regmap_fpregset, s390_regmap_last_break)
2656 (s390x_regmap_last_break, s390_regmap_system_call)
2657 (s390_regmap_tdb): Delete global variable declarations.
2658 (s390_gregset, s390_fpregset, s390_last_break_regset)
2659 (s390x_last_break_regset, s390_system_call_regset)
2660 (s390_tdb_regset): New global variable declarations.
2662 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2664 * regcache.c: Include "regset.h".
2665 (regcache_transfer_regset): New local function.
2666 (regcache_supply_regset, regcache_collect_regset): New functions.
2667 * regcache.h (struct regcache_map_entry): New structure.
2668 (REGCACHE_MAP_SKIP): New enum value.
2669 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2671 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2673 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2674 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2675 (ppc_linux_collect_gregset ): Likewise.
2676 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2677 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2678 (ppc_collect_vrregset): Likewise.
2679 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2682 2014-08-07 Yao Qi <yao@codesourcery.com>
2684 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2685 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2686 * remote.c (remote_read_bytes): Likewise.
2688 2014-08-07 Yao Qi <yao@codesourcery.com>
2690 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2692 2014-08-07 Yao Qi <yao@codesourcery.com>
2695 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2696 TARGET_XFER_OK instead of 0.
2698 2014-08-07 Gary Benson <gbenson@redhat.com>
2700 * common/common-defs.h: Include errno.h.
2701 * defs.h: Do not include errno.h.
2702 * ada-typeprint.c: Likewise.
2703 * c-typeprint.c: Likewise.
2704 * core-regset.c: Likewise.
2705 * corefile.c: Likewise.
2706 * corelow.c: Likewise.
2707 * event-loop.c: Likewise.
2708 * f-typeprint.c: Likewise.
2709 * gnu-nat.c: Likewise.
2710 * go32-nat.c: Likewise.
2711 * i386gnu-nat.c: Likewise.
2712 * m2-typeprint.c: Likewise.
2713 * nat/linux-btrace.c: Likewise.
2714 * p-typeprint.c: Likewise.
2715 * procfs.c: Likewise.
2716 * remote-sim.c: Likewise.
2717 * rs6000-nat.c: Likewise.
2718 * target.c: Likewise.
2719 * typeprint.c: Likewise.
2720 * ui-file.c: Likewise.
2721 * valops.c: Likewise.
2722 * valprint.c: Likewise.
2724 2014-08-07 Gary Benson <gbenson@redhat.com>
2726 * common/common-defs.h: Include string.h.
2727 * aarch64-tdep.c: Do not include string.h.
2728 * ada-exp.y: Likewise.
2729 * ada-lang.c: Likewise.
2730 * ada-lex.l: Likewise.
2731 * ada-typeprint.c: Likewise.
2732 * ada-valprint.c: Likewise.
2733 * aix-thread.c: Likewise.
2734 * alpha-linux-tdep.c: Likewise.
2735 * alpha-mdebug-tdep.c: Likewise.
2736 * alpha-nat.c: Likewise.
2737 * alpha-osf1-tdep.c: Likewise.
2738 * alpha-tdep.c: Likewise.
2739 * alphanbsd-tdep.c: Likewise.
2740 * amd64-dicos-tdep.c: Likewise.
2741 * amd64-linux-tdep.c: Likewise.
2742 * amd64-nat.c: Likewise.
2743 * amd64-sol2-tdep.c: Likewise.
2744 * amd64fbsd-tdep.c: Likewise.
2745 * amd64obsd-tdep.c: Likewise.
2746 * arch-utils.c: Likewise.
2747 * arm-linux-nat.c: Likewise.
2748 * arm-linux-tdep.c: Likewise.
2749 * arm-tdep.c: Likewise.
2750 * arm-wince-tdep.c: Likewise.
2751 * armbsd-tdep.c: Likewise.
2752 * armnbsd-nat.c: Likewise.
2753 * armnbsd-tdep.c: Likewise.
2754 * armobsd-tdep.c: Likewise.
2755 * avr-tdep.c: Likewise.
2756 * ax-gdb.c: Likewise.
2757 * ax-general.c: Likewise.
2758 * bcache.c: Likewise.
2759 * bfin-tdep.c: Likewise.
2760 * breakpoint.c: Likewise.
2761 * build-id.c: Likewise.
2762 * buildsym.c: Likewise.
2763 * c-exp.y: Likewise.
2764 * c-lang.c: Likewise.
2765 * c-typeprint.c: Likewise.
2766 * c-valprint.c: Likewise.
2767 * charset.c: Likewise.
2768 * cli-out.c: Likewise.
2769 * cli/cli-cmds.c: Likewise.
2770 * cli/cli-decode.c: Likewise.
2771 * cli/cli-dump.c: Likewise.
2772 * cli/cli-interp.c: Likewise.
2773 * cli/cli-logging.c: Likewise.
2774 * cli/cli-script.c: Likewise.
2775 * cli/cli-setshow.c: Likewise.
2776 * cli/cli-utils.c: Likewise.
2777 * coffread.c: Likewise.
2778 * common/agent.c: Likewise.
2779 * common/buffer.c: Likewise.
2780 * common/buffer.h: Likewise.
2781 * common/common-utils.c: Likewise.
2782 * common/filestuff.c: Likewise.
2783 * common/filestuff.c: Likewise.
2784 * common/format.c: Likewise.
2785 * common/print-utils.c: Likewise.
2786 * common/rsp-low.c: Likewise.
2787 * common/signals.c: Likewise.
2788 * common/vec.h: Likewise.
2789 * common/xml-utils.c: Likewise.
2790 * core-regset.c: Likewise.
2791 * corefile.c: Likewise.
2792 * corelow.c: Likewise.
2793 * cp-abi.c: Likewise.
2794 * cp-name-parser.y: Likewise.
2795 * cp-support.c: Likewise.
2796 * cp-valprint.c: Likewise.
2797 * cris-tdep.c: Likewise.
2798 * d-exp.y: Likewise.
2799 * darwin-nat.c: Likewise.
2800 * dbxread.c: Likewise.
2801 * dcache.c: Likewise.
2802 * demangle.c: Likewise.
2803 * dicos-tdep.c: Likewise.
2804 * disasm.c: Likewise.
2805 * doublest.c: Likewise.
2806 * dsrec.c: Likewise.
2807 * dummy-frame.c: Likewise.
2808 * dwarf2-frame.c: Likewise.
2809 * dwarf2loc.c: Likewise.
2810 * dwarf2read.c: Likewise.
2811 * elfread.c: Likewise.
2812 * environ.c: Likewise.
2814 * event-loop.c: Likewise.
2815 * exceptions.c: Likewise.
2817 * expprint.c: Likewise.
2818 * f-exp.y: Likewise.
2819 * f-lang.c: Likewise.
2820 * f-typeprint.c: Likewise.
2821 * f-valprint.c: Likewise.
2822 * fbsd-nat.c: Likewise.
2823 * findcmd.c: Likewise.
2824 * findvar.c: Likewise.
2825 * fork-child.c: Likewise.
2826 * frame.c: Likewise.
2827 * frv-linux-tdep.c: Likewise.
2828 * frv-tdep.c: Likewise.
2830 * gdb_bfd.c: Likewise.
2831 * gdbarch.c: Likewise.
2832 * gdbarch.sh: Likewise.
2833 * gdbtypes.c: Likewise.
2834 * gnu-nat.c: Likewise.
2835 * gnu-v2-abi.c: Likewise.
2836 * gnu-v3-abi.c: Likewise.
2837 * go-exp.y: Likewise.
2838 * go-lang.c: Likewise.
2839 * go32-nat.c: Likewise.
2840 * guile/guile.c: Likewise.
2841 * guile/scm-auto-load.c: Likewise.
2842 * hppa-hpux-tdep.c: Likewise.
2843 * hppa-linux-nat.c: Likewise.
2844 * hppanbsd-tdep.c: Likewise.
2845 * hppaobsd-tdep.c: Likewise.
2846 * i386-cygwin-tdep.c: Likewise.
2847 * i386-dicos-tdep.c: Likewise.
2848 * i386-linux-tdep.c: Likewise.
2849 * i386-nto-tdep.c: Likewise.
2850 * i386-sol2-tdep.c: Likewise.
2851 * i386-tdep.c: Likewise.
2852 * i386bsd-tdep.c: Likewise.
2853 * i386gnu-nat.c: Likewise.
2854 * i386nbsd-tdep.c: Likewise.
2855 * i386obsd-tdep.c: Likewise.
2856 * i387-tdep.c: Likewise.
2857 * ia64-libunwind-tdep.c: Likewise.
2858 * ia64-linux-nat.c: Likewise.
2859 * inf-child.c: Likewise.
2860 * inf-ptrace.c: Likewise.
2861 * inf-ttrace.c: Likewise.
2862 * infcall.c: Likewise.
2863 * infcmd.c: Likewise.
2864 * inflow.c: Likewise.
2865 * infrun.c: Likewise.
2866 * interps.c: Likewise.
2867 * iq2000-tdep.c: Likewise.
2868 * irix5-nat.c: Likewise.
2869 * jv-exp.y: Likewise.
2870 * jv-lang.c: Likewise.
2871 * jv-typeprint.c: Likewise.
2872 * jv-valprint.c: Likewise.
2873 * language.c: Likewise.
2874 * linux-fork.c: Likewise.
2875 * linux-nat.c: Likewise.
2876 * lm32-tdep.c: Likewise.
2877 * m2-exp.y: Likewise.
2878 * m2-typeprint.c: Likewise.
2879 * m32c-tdep.c: Likewise.
2880 * m32r-linux-nat.c: Likewise.
2881 * m32r-linux-tdep.c: Likewise.
2882 * m32r-rom.c: Likewise.
2883 * m32r-tdep.c: Likewise.
2884 * m68hc11-tdep.c: Likewise.
2885 * m68k-tdep.c: Likewise.
2886 * m68kbsd-tdep.c: Likewise.
2887 * m68klinux-nat.c: Likewise.
2888 * m68klinux-tdep.c: Likewise.
2889 * m88k-tdep.c: Likewise.
2890 * machoread.c: Likewise.
2891 * macrocmd.c: Likewise.
2893 * mdebugread.c: Likewise.
2894 * mem-break.c: Likewise.
2895 * memattr.c: Likewise.
2896 * memory-map.c: Likewise.
2897 * mep-tdep.c: Likewise.
2898 * mi/mi-cmd-break.c: Likewise.
2899 * mi/mi-cmd-disas.c: Likewise.
2900 * mi/mi-cmd-env.c: Likewise.
2901 * mi/mi-cmd-stack.c: Likewise.
2902 * mi/mi-cmd-var.c: Likewise.
2903 * mi/mi-cmds.c: Likewise.
2904 * mi/mi-console.c: Likewise.
2905 * mi/mi-getopt.c: Likewise.
2906 * mi/mi-interp.c: Likewise.
2907 * mi/mi-main.c: Likewise.
2908 * mi/mi-parse.c: Likewise.
2909 * microblaze-rom.c: Likewise.
2910 * microblaze-tdep.c: Likewise.
2911 * mingw-hdep.c: Likewise.
2912 * minidebug.c: Likewise.
2913 * minsyms.c: Likewise.
2914 * mips-irix-tdep.c: Likewise.
2915 * mips-linux-tdep.c: Likewise.
2916 * mips-tdep.c: Likewise.
2917 * mips64obsd-tdep.c: Likewise.
2918 * mipsnbsd-tdep.c: Likewise.
2919 * mipsread.c: Likewise.
2920 * mn10300-linux-tdep.c: Likewise.
2921 * mn10300-tdep.c: Likewise.
2922 * monitor.c: Likewise.
2923 * moxie-tdep.c: Likewise.
2924 * mt-tdep.c: Likewise.
2925 * nat/linux-btrace.c: Likewise.
2926 * nat/linux-osdata.c: Likewise.
2927 * nat/linux-procfs.c: Likewise.
2928 * nat/linux-ptrace.c: Likewise.
2929 * nat/linux-waitpid.c: Likewise.
2930 * nbsd-tdep.c: Likewise.
2931 * nios2-linux-tdep.c: Likewise.
2932 * nto-procfs.c: Likewise.
2933 * nto-tdep.c: Likewise.
2934 * objc-lang.c: Likewise.
2935 * objfiles.c: Likewise.
2936 * opencl-lang.c: Likewise.
2937 * osabi.c: Likewise.
2938 * osdata.c: Likewise.
2939 * p-exp.y: Likewise.
2940 * p-lang.c: Likewise.
2941 * p-typeprint.c: Likewise.
2942 * parse.c: Likewise.
2943 * posix-hdep.c: Likewise.
2944 * ppc-linux-nat.c: Likewise.
2945 * ppc-sysv-tdep.c: Likewise.
2946 * ppcfbsd-tdep.c: Likewise.
2947 * ppcnbsd-tdep.c: Likewise.
2948 * ppcobsd-tdep.c: Likewise.
2949 * printcmd.c: Likewise.
2950 * procfs.c: Likewise.
2951 * prologue-value.c: Likewise.
2952 * python/py-auto-load.c: Likewise.
2953 * python/py-gdb-readline.c: Likewise.
2954 * ravenscar-thread.c: Likewise.
2955 * regcache.c: Likewise.
2956 * registry.c: Likewise.
2957 * remote-fileio.c: Likewise.
2958 * remote-m32r-sdi.c: Likewise.
2959 * remote-mips.c: Likewise.
2960 * remote-notif.c: Likewise.
2961 * remote-sim.c: Likewise.
2962 * remote.c: Likewise.
2963 * reverse.c: Likewise.
2964 * rs6000-aix-tdep.c: Likewise.
2965 * ser-base.c: Likewise.
2966 * ser-go32.c: Likewise.
2967 * ser-mingw.c: Likewise.
2968 * ser-pipe.c: Likewise.
2969 * ser-tcp.c: Likewise.
2970 * ser-unix.c: Likewise.
2971 * serial.c: Likewise.
2972 * sh-tdep.c: Likewise.
2973 * sh64-tdep.c: Likewise.
2974 * shnbsd-tdep.c: Likewise.
2976 * sol-thread.c: Likewise.
2977 * solib-dsbt.c: Likewise.
2978 * solib-frv.c: Likewise.
2979 * solib-osf.c: Likewise.
2980 * solib-som.c: Likewise.
2981 * solib-spu.c: Likewise.
2982 * solib-target.c: Likewise.
2983 * solib.c: Likewise.
2984 * somread.c: Likewise.
2985 * source.c: Likewise.
2986 * sparc-nat.c: Likewise.
2987 * sparc-sol2-tdep.c: Likewise.
2988 * sparc-tdep.c: Likewise.
2989 * sparc64-tdep.c: Likewise.
2990 * sparc64fbsd-tdep.c: Likewise.
2991 * sparc64nbsd-tdep.c: Likewise.
2992 * sparcnbsd-tdep.c: Likewise.
2993 * spu-linux-nat.c: Likewise.
2994 * spu-multiarch.c: Likewise.
2995 * spu-tdep.c: Likewise.
2996 * stabsread.c: Likewise.
2997 * stack.c: Likewise.
2998 * std-regs.c: Likewise.
2999 * symfile.c: Likewise.
3000 * symmisc.c: Likewise.
3001 * symtab.c: Likewise.
3002 * target.c: Likewise.
3003 * thread.c: Likewise.
3004 * tilegx-linux-nat.c: Likewise.
3005 * tilegx-tdep.c: Likewise.
3007 * tracepoint.c: Likewise.
3008 * tui/tui-command.c: Likewise.
3009 * tui/tui-data.c: Likewise.
3010 * tui/tui-disasm.c: Likewise.
3011 * tui/tui-file.c: Likewise.
3012 * tui/tui-layout.c: Likewise.
3013 * tui/tui-out.c: Likewise.
3014 * tui/tui-regs.c: Likewise.
3015 * tui/tui-source.c: Likewise.
3016 * tui/tui-stack.c: Likewise.
3017 * tui/tui-win.c: Likewise.
3018 * tui/tui-windata.c: Likewise.
3019 * tui/tui-winsource.c: Likewise.
3020 * typeprint.c: Likewise.
3021 * ui-file.c: Likewise.
3022 * ui-out.c: Likewise.
3023 * user-regs.c: Likewise.
3024 * utils.c: Likewise.
3025 * v850-tdep.c: Likewise.
3026 * valarith.c: Likewise.
3027 * valops.c: Likewise.
3028 * valprint.c: Likewise.
3029 * value.c: Likewise.
3030 * varobj.c: Likewise.
3031 * vax-tdep.c: Likewise.
3032 * vaxnbsd-tdep.c: Likewise.
3033 * vaxobsd-tdep.c: Likewise.
3034 * windows-nat.c: Likewise.
3035 * xcoffread.c: Likewise.
3036 * xml-support.c: Likewise.
3037 * xstormy16-tdep.c: Likewise.
3038 * xtensa-linux-nat.c: Likewise.
3040 2014-08-07 Gary Benson <gbenson@redhat.com>
3042 * common/common-defs.h: Include gdb_assert.h.
3043 * aarch64-tdep.c: Do not include gdb_assert.h.
3044 * addrmap.c: Likewise.
3045 * aix-thread.c: Likewise.
3046 * alpha-linux-tdep.c: Likewise.
3047 * alpha-mdebug-tdep.c: Likewise.
3048 * alphanbsd-tdep.c: Likewise.
3049 * amd64-nat.c: Likewise.
3050 * amd64-tdep.c: Likewise.
3051 * amd64bsd-nat.c: Likewise.
3052 * amd64fbsd-nat.c: Likewise.
3053 * amd64fbsd-tdep.c: Likewise.
3054 * amd64nbsd-nat.c: Likewise.
3055 * amd64nbsd-tdep.c: Likewise.
3056 * amd64obsd-nat.c: Likewise.
3057 * amd64obsd-tdep.c: Likewise.
3058 * arch-utils.c: Likewise.
3059 * arm-tdep.c: Likewise.
3060 * armbsd-tdep.c: Likewise.
3062 * bcache.c: Likewise.
3063 * bfin-tdep.c: Likewise.
3064 * blockframe.c: Likewise.
3065 * breakpoint.c: Likewise.
3066 * bsd-kvm.c: Likewise.
3067 * bsd-uthread.c: Likewise.
3068 * buildsym.c: Likewise.
3069 * c-exp.y: Likewise.
3070 * c-lang.c: Likewise.
3071 * charset.c: Likewise.
3072 * cleanups.c: Likewise.
3073 * cli-out.c: Likewise.
3074 * cli/cli-decode.c: Likewise.
3075 * cli/cli-dump.c: Likewise.
3076 * cli/cli-logging.c: Likewise.
3077 * cli/cli-script.c: Likewise.
3078 * cli/cli-utils.c: Likewise.
3079 * coffread.c: Likewise.
3080 * common/common-utils.c: Likewise.
3081 * common/queue.h: Likewise.
3082 * common/signals.c: Likewise.
3083 * common/vec.h: Likewise.
3084 * complaints.c: Likewise.
3085 * completer.c: Likewise.
3086 * corelow.c: Likewise.
3087 * cp-abi.c: Likewise.
3088 * cp-name-parser.y: Likewise.
3089 * cp-namespace.c: Likewise.
3090 * cp-support.c: Likewise.
3091 * cris-tdep.c: Likewise.
3092 * dbxread.c: Likewise.
3093 * dictionary.c: Likewise.
3094 * doublest.c: Likewise.
3095 * dsrec.c: Likewise.
3096 * dummy-frame.c: Likewise.
3097 * dwarf2-frame-tailcall.c: Likewise.
3098 * dwarf2-frame.c: Likewise.
3099 * dwarf2expr.c: Likewise.
3100 * dwarf2loc.c: Likewise.
3101 * dwarf2read.c: Likewise.
3103 * event-loop.c: Likewise.
3104 * exceptions.c: Likewise.
3105 * expprint.c: Likewise.
3106 * f-valprint.c: Likewise.
3107 * fbsd-nat.c: Likewise.
3108 * findvar.c: Likewise.
3109 * frame-unwind.c: Likewise.
3110 * frame.c: Likewise.
3111 * frv-tdep.c: Likewise.
3112 * gcore.c: Likewise.
3113 * gdb-dlfcn.c: Likewise.
3114 * gdb_bfd.c: Likewise.
3115 * gdbarch.c: Likewise.
3116 * gdbarch.sh: Likewise.
3117 * gdbtypes.c: Likewise.
3118 * gnu-nat.c: Likewise.
3119 * gnu-v3-abi.c: Likewise.
3120 * go-lang.c: Likewise.
3121 * guile/scm-exception.c: Likewise.
3122 * guile/scm-gsmob.c: Likewise.
3123 * guile/scm-lazy-string.c: Likewise.
3124 * guile/scm-math.c: Likewise.
3125 * guile/scm-pretty-print.c: Likewise.
3126 * guile/scm-safe-call.c: Likewise.
3127 * guile/scm-utils.c: Likewise.
3128 * guile/scm-value.c: Likewise.
3129 * h8300-tdep.c: Likewise.
3130 * hppa-hpux-nat.c: Likewise.
3131 * hppa-tdep.c: Likewise.
3132 * hppanbsd-tdep.c: Likewise.
3133 * hppaobsd-tdep.c: Likewise.
3134 * i386-darwin-nat.c: Likewise.
3135 * i386-darwin-tdep.c: Likewise.
3136 * i386-nto-tdep.c: Likewise.
3137 * i386-tdep.c: Likewise.
3138 * i386bsd-nat.c: Likewise.
3139 * i386fbsd-tdep.c: Likewise.
3140 * i386gnu-nat.c: Likewise.
3141 * i386nbsd-tdep.c: Likewise.
3142 * i386obsd-tdep.c: Likewise.
3143 * i387-tdep.c: Likewise.
3144 * ia64-libunwind-tdep.c: Likewise.
3145 * ia64-tdep.c: Likewise.
3146 * inf-ptrace.c: Likewise.
3147 * inf-ttrace.c: Likewise.
3148 * infcall.c: Likewise.
3149 * infcmd.c: Likewise.
3150 * infrun.c: Likewise.
3151 * inline-frame.c: Likewise.
3152 * interps.c: Likewise.
3153 * jv-lang.c: Likewise.
3154 * jv-typeprint.c: Likewise.
3155 * linux-fork.c: Likewise.
3156 * linux-nat.c: Likewise.
3157 * linux-thread-db.c: Likewise.
3158 * m32c-tdep.c: Likewise.
3159 * m32r-linux-nat.c: Likewise.
3160 * m32r-tdep.c: Likewise.
3161 * m68k-tdep.c: Likewise.
3162 * m68kbsd-nat.c: Likewise.
3163 * m68kbsd-tdep.c: Likewise.
3164 * m88k-tdep.c: Likewise.
3165 * machoread.c: Likewise.
3166 * macroexp.c: Likewise.
3167 * macrotab.c: Likewise.
3168 * maint.c: Likewise.
3169 * mdebugread.c: Likewise.
3170 * memory-map.c: Likewise.
3171 * mep-tdep.c: Likewise.
3172 * mi/mi-common.c: Likewise.
3173 * microblaze-tdep.c: Likewise.
3174 * mingw-hdep.c: Likewise.
3175 * mips-linux-nat.c: Likewise.
3176 * mips-linux-tdep.c: Likewise.
3177 * mips-tdep.c: Likewise.
3178 * mips64obsd-tdep.c: Likewise.
3179 * mipsnbsd-tdep.c: Likewise.
3180 * mn10300-linux-tdep.c: Likewise.
3181 * mn10300-tdep.c: Likewise.
3182 * moxie-tdep.c: Likewise.
3183 * mt-tdep.c: Likewise.
3184 * nat/linux-btrace.c: Likewise.
3185 * nat/linux-osdata.c: Likewise.
3186 * nat/linux-ptrace.c: Likewise.
3187 * nat/mips-linux-watch.c: Likewise.
3188 * nios2-linux-tdep.c: Likewise.
3189 * nios2-tdep.c: Likewise.
3190 * objc-lang.c: Likewise.
3191 * objfiles.c: Likewise.
3192 * obsd-nat.c: Likewise.
3193 * opencl-lang.c: Likewise.
3194 * osabi.c: Likewise.
3195 * parse.c: Likewise.
3196 * ppc-linux-nat.c: Likewise.
3197 * ppc-sysv-tdep.c: Likewise.
3198 * ppcfbsd-nat.c: Likewise.
3199 * ppcfbsd-tdep.c: Likewise.
3200 * ppcnbsd-nat.c: Likewise.
3201 * ppcnbsd-tdep.c: Likewise.
3202 * ppcobsd-nat.c: Likewise.
3203 * ppcobsd-tdep.c: Likewise.
3204 * printcmd.c: Likewise.
3205 * procfs.c: Likewise.
3206 * prologue-value.c: Likewise.
3207 * psymtab.c: Likewise.
3208 * python/py-lazy-string.c: Likewise.
3209 * python/py-value.c: Likewise.
3210 * regcache.c: Likewise.
3211 * reggroups.c: Likewise.
3212 * registry.c: Likewise.
3213 * remote-sim.c: Likewise.
3214 * remote.c: Likewise.
3215 * rs6000-aix-tdep.c: Likewise.
3216 * rs6000-tdep.c: Likewise.
3217 * s390-linux-tdep.c: Likewise.
3218 * score-tdep.c: Likewise.
3219 * ser-base.c: Likewise.
3220 * ser-mingw.c: Likewise.
3221 * sh-tdep.c: Likewise.
3222 * sh64-tdep.c: Likewise.
3223 * solib-darwin.c: Likewise.
3224 * solib-spu.c: Likewise.
3225 * solib-svr4.c: Likewise.
3226 * source.c: Likewise.
3227 * sparc-nat.c: Likewise.
3228 * sparc-sol2-tdep.c: Likewise.
3229 * sparc-tdep.c: Likewise.
3230 * sparc64-sol2-tdep.c: Likewise.
3231 * sparc64-tdep.c: Likewise.
3232 * sparc64fbsd-tdep.c: Likewise.
3233 * sparc64nbsd-tdep.c: Likewise.
3234 * sparc64obsd-tdep.c: Likewise.
3235 * sparcnbsd-tdep.c: Likewise.
3236 * sparcobsd-tdep.c: Likewise.
3237 * spu-multiarch.c: Likewise.
3238 * spu-tdep.c: Likewise.
3239 * stabsread.c: Likewise.
3240 * stack.c: Likewise.
3241 * symfile.c: Likewise.
3242 * symtab.c: Likewise.
3243 * target-descriptions.c: Likewise.
3244 * target-memory.c: Likewise.
3245 * target.c: Likewise.
3246 * tic6x-linux-tdep.c: Likewise.
3247 * tic6x-tdep.c: Likewise.
3248 * tilegx-linux-nat.c: Likewise.
3249 * tilegx-tdep.c: Likewise.
3251 * tramp-frame.c: Likewise.
3252 * tui/tui-out.c: Likewise.
3253 * tui/tui-winsource.c: Likewise.
3254 * ui-out.c: Likewise.
3255 * user-regs.c: Likewise.
3256 * utils.c: Likewise.
3257 * v850-tdep.c: Likewise.
3258 * valops.c: Likewise.
3259 * value.c: Likewise.
3260 * varobj.c: Likewise.
3261 * vax-nat.c: Likewise.
3262 * xml-syscall.c: Likewise.
3263 * xml-tdesc.c: Likewise.
3264 * xstormy16-tdep.c: Likewise.
3265 * xtensa-linux-nat.c: Likewise.
3266 * xtensa-tdep.c: Likewise.
3268 2014-08-07 Gary Benson <gbenson@redhat.com>
3270 * common/common-defs.h: Include common-utils.h.
3271 * defs.h: Do not include common-utils.h.
3272 * common/gdb_assert.h: Likewise.
3273 * darwin-nat.h: Likewise.
3274 * nat/linux-btrace.c: Likewise.
3275 * target/waitstatus.h: Likewise.
3277 2014-08-07 Gary Benson <gbenson@redhat.com>
3279 * common/common-defs.h: Include ptid.h.
3280 * defs.h: Do not include ptid.h.
3281 * inferior.h: Likewise.
3282 * infrun.h: Likewise.
3283 * nat/linux-btrace.h: Likewise.
3284 * nat/linux-osdata.h: Likewise.
3285 * target/waitstatus.h: Likewise.
3287 2014-08-07 Gary Benson <gbenson@redhat.com>
3289 * common/common-defs.h: Include gdb_locale.h.
3290 * defs.h: Do not include gdb_locale.h.
3292 2014-08-07 Gary Benson <gbenson@redhat.com>
3294 * common/common-defs.h: Include gdb/signals.h.
3295 * defs.h: Do not include gdb/signals.h.
3297 2014-08-07 Gary Benson <gbenson@redhat.com>
3299 * common/common-defs.h: Include pathmax.h.
3300 * defs.h: Do not include pathmax.h.
3302 2014-08-07 Gary Benson <gbenson@redhat.com>
3304 * common/common-defs.h: Include libiberty.h.
3305 * defs.h: Do not include libiberty.h.
3306 * common/queue.h: Likewise.
3307 * cp-name-parser.y: Likewise.
3308 * mi/mi-cmd-catch.c: Likewise.
3309 * python/python.c: Likewise.
3311 2014-08-07 Gary Benson <gbenson@redhat.com>
3313 * common/common-defs.h: Include ansidecl.h.
3314 * defs.h: Do not include ansidecl.h.
3315 * common/buffer.h: Likewise.
3316 * common/common-utils.h: Likewise.
3318 2014-08-07 Gary Benson <gbenson@redhat.com>
3320 * common/common-defs.h: Include stddef.h.
3321 * defs.h: Do not include stddef.h.
3322 * common/common-utils.h: Likewise.
3323 * amd64fbsd-nat.c: Likewise.
3324 * bcache.c: Likewise.
3325 * charset.c: Likewise.
3326 * common/buffer.h: Likewise.
3327 * common/vec.h: Likewise.
3328 * i386bsd-nat.c: Likewise.
3329 * nat/linux-btrace.h: Likewise.
3330 * ppcfbsd-nat.c: Likewise.
3331 * ppcnbsd-tdep.h: Likewise.
3332 * ppcobsd-nat.c: Likewise.
3333 * ppcobsd-tdep.h: Likewise.
3334 * python/py-gdb-readline.c: Likewise.
3336 2014-08-07 Gary Benson <gbenson@redhat.com>
3338 * common/common-defs.h: Include stdarg.h.
3339 * defs.h: Do not include stdarg.h.
3340 * ada-lang.c: Likewise.
3341 * common/common-utils.h: Likewise.
3342 * guile/scm-string.c: Likewise.
3343 * guile/scm-utils.c: Likewise.
3344 * m32c-tdep.c: Likewise.
3346 2014-08-07 Gary Benson <gbenson@redhat.com>
3348 * common/common-defs.h: Include stdlib.h.
3349 * defs.h: Do not include stdlib.h.
3350 * addrmap.c: Likewise.
3351 * bcache.c: Likewise.
3352 * common/buffer.c: Likewise.
3353 * common/common-utils.c: Likewise.
3354 * cp-name-parser.y: Likewise.
3355 * go32-nat.c: Likewise.
3356 * mn10300-linux-tdep.c: Likewise.
3357 * nat/linux-osdata.c: Likewise.
3358 * tui/tui.c: Likewise.
3359 * windows-nat.c: Likewise.
3361 2014-08-07 Gary Benson <gbenson@redhat.com>
3363 * common/common-defs.h: Include stdio.h.
3364 * defs.h: Do not include stdio.h.
3365 * ada-lang.c: Likewise.
3366 * common/buffer.c: Likewise.
3367 * common/common-utils.c: Likewise.
3368 * cp-name-parser.y: Likewise.
3369 * gnu-nat.c: Likewise.
3370 * go32-nat.c: Likewise.
3371 * i386gnu-nat.c: Likewise.
3372 * proc-api.c: Likewise.
3373 * proc-events.c: Likewise.
3374 * proc-flags.c: Likewise.
3375 * proc-why.c: Likewise.
3376 * python/python-internal.h: Likewise.
3377 * target-memory.c: Likewise.
3378 * tui/tui-io.c: Likewise.
3379 * tui/tui.c: Likewise.
3381 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3383 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3384 (scan_dyntag_auxv): Same.
3386 2014-08-06 Yao Qi <yao@codesourcery.com>
3388 * amd64-linux-nat.c: Remove duplicated include
3390 * i386-linux-nat.c: Likewise.
3392 2014-08-06 Yao Qi <yao@codesourcery.com>
3394 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3395 operand" with "Special opcode" in comments.
3397 2014-08-05 Gary Benson <gbenson@redhat.com>
3399 * interps.c (initialize_interps): Remove prototype.
3400 (interpreter_initialized): Remove static global.
3401 (interp_add): Do not call initialize_interps.
3402 (initialize_interps): Remove function.
3404 2014-08-05 Gary Benson <gbenson@redhat.com>
3406 * utils.c (vwarning): Remove spurious va_end.
3408 2014-08-05 Alan Modra <amodra@gmail.com>
3410 * charset.c (convert_between_encodings): Cast result of obstack_base.
3411 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3412 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3413 (read_unwind_info): Use size_t for some locals.
3414 * jit.c (finalize_symtab): Likewise.
3415 * utils.c (hashtab_obstack_allocate): Likewise.
3416 * symmisc.c (print_objfile_statistics): Update format strings.
3418 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3420 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3421 (Changes in GDB 7.8): ... here.
3423 2014-08-04 Tom Tromey <tromey@redhat.com>
3425 * target.c (set_targetdebug): New function.
3426 (initialize_targets): Pass set_targetdebug when creating "set
3429 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3431 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3432 if detecting a variable-sized field that is not the last field.
3433 Fix struct type length computation.
3435 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3437 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3440 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3442 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3443 Remove "+ 8" offset in computation of CHAIN_VMA.
3445 2014-07-31 Doug Evans <dje@google.com>
3447 * inflow.c (child_terminal_inferior): Add comment.
3448 (child_terminal_ours_for_output): Add comment.
3449 (child_terminal_ours): Add comment.
3450 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3451 (linux_nat_terminal_ours): Add comment.
3453 2014-07-31 Gary Benson <gbenson@redhat.com>
3455 * common/btrace-common.h: Do not include defs.h or server.h.
3456 * nat/mips-linux-watch.h: Likewise.
3457 * gdb-dlfcn.h: Do not include defs.h.
3458 * tracefile.h: Likewise.
3460 2014-07-30 Roland McGrath <mcgrathr@google.com>
3462 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3464 2014-07-30 Tom Tromey <tromey@redhat.com>
3466 * bsd-kvm.c (bsd_kvm_open): Constify.
3467 * corelow.c (core_open): Constify.
3468 * ctf.c (ctf_open): Constify.
3469 * dbug-rom.c (dbug_open): Constify.
3470 * exec.c (exec_open): Constify.
3471 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3472 * microblaze-rom.c (picobug_open): Constify.
3473 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3475 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3476 * record-btrace.c (record_btrace_open): Constify.
3477 * record-full.c (record_full_core_open_1, record_full_open_1)
3478 (record_full_open): Constify.
3479 * remote-m32r-sdi.c (m32r_open): Constify.
3480 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3481 (rockhopper_open, lsi_open): Constify.
3482 * remote-sim.c (gdbsim_open): Constify.
3483 * remote.c (remote_open, extended_remote_open, remote_open_1):
3485 * target.h (struct target_ops) <to_open>: Make "arg" const.
3486 * tracefile-tfile.c (tfile_open): Constify.
3488 2014-07-30 Tom Tromey <tromey@redhat.com>
3490 * breakpoint.c (map_breakpoint_numbers): Update.
3491 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3492 (get_number_const): New function.
3493 (get_number): Rewrite using get_number_const.
3494 (init_number_or_range): Make "string" const.
3495 (number_is_in_list): Make "list" const.
3496 * cli/cli-utils.h (get_number_const): Declare.
3497 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3498 (init_number_or_range, number_is_in_list): Update.
3499 * printcmd.c (map_display_numbers): Update.
3500 * value.c (value_from_history_ref): Constify.
3501 * value.h (value_from_history_ref): Update.
3503 2014-07-30 Tom Tromey <tromey@redhat.com>
3505 * corefile.c (hook_type, call_extra_exec_file_hooks)
3506 (specify_exec_file_hook): Constify.
3507 * exec.c (exec_file_attach): Make "filename" const.
3508 * gdbcore.h (deprecated_exec_file_display_hook)
3509 (specify_exec_file_hook, exec_file_attach): Constify.
3510 * main.c (captured_main): Use catch_command_errors_const.
3512 2014-07-30 Tom Tromey <tromey@redhat.com>
3514 * target.c (open_target): New function.
3515 (add_target_with_completer, add_deprecated_target_alias): Use
3516 set_cmd_sfunc, set_cmd_context.
3517 (debug_to_open): Remove.
3518 (setup_target_debug): Update.
3520 2014-07-30 Yao Qi <yao@codesourcery.com>
3522 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3524 * parse.c (exp_iterate): Update comments.
3526 2014-07-30 Gary Benson <gbenson@redhat.com>
3528 * common/common-defs.h: New file.
3529 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3530 * defs.h: Include common-defs.h.
3531 Do not include config.h or build-gnulib/config.h.
3533 2014-07-30 Gary Benson <gbenson@redhat.com>
3535 * common/common-utils.h: Do not include config.h.
3536 * nat/linux-btrace.h: Likewise.
3538 2014-07-30 Gary Benson <gbenson@redhat.com>
3540 * btrace.c: Include defs.h.
3541 * common/ptid.c: Include defs.h or server.h as appropriate.
3542 * nat/mips-linux-watch.c: Likewise.
3544 2014-07-29 Tom Tromey <tromey@redhat.com>
3546 * target.c (target_is_pushed): Simplify.
3548 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3552 2014-07-29 Yao Qi <yao@codesourcery.com>
3555 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3557 2014-07-28 Doug Evans <xdje42@gmail.com>
3560 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3561 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3564 2014-07-28 Will Newton <will.newton@linaro.org>
3566 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3567 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3568 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3569 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3570 (THUMB2_EABI_SYSCALL): Likewise.
3571 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3573 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3574 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3576 2014-07-27 Doug Evans <xdje42@gmail.com>
3578 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3580 2014-07-27 Doug Evans <xdje42@gmail.com>
3582 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3584 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3585 Doug Evans <xdje42@gmail.com>
3588 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3589 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3590 * configure.ac: Try to use guild to compile an scm file, if it fails
3591 then disable guile support.
3592 * configure: Regenerate.
3593 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3595 (GUILE_COMPILED_FILES): New variable.
3596 (GUILE_FILES) Update.
3597 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3598 (stamp-guile): Compile scm files.
3599 * guile/guile.c (boot_guile_support): New function.
3600 (standard_throw_args_p): New function.
3601 (print_standard_throw_error, print_throw_error): New functions.
3602 (handle_boot_error): New function.
3603 (initialize_scheme_side): Rewrite to call boot_guile_support.
3604 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3605 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3607 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3608 Doug Evans <xdje42@gmail.com>
3611 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3612 * guile/lib/gdb/support.scm: New file.
3613 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3614 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3616 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3618 (%assert-type): Ditto, and renamed to assert-type.
3619 (%exception-print-style): Delete.
3621 2014-07-26 Doug Evans <xdje42@gmail.com>
3624 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3625 * configure: Regenerate.
3626 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3628 (PYTHON_FILES): New variable.
3629 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3630 (GUILE_FILES): New variable.
3631 (stamp-python, install-python, uninstall-python): Handle empty
3633 (stamp-guile, install-guile, uninstall-guile): Ditto.
3635 2014-07-26 Doug Evans <xdje42@gmail.com>
3638 * guile/lib/gdb.scm (pretty-printers): Export.
3639 (set-pretty-printers!): Export.
3640 * guile/lib/gdb/printing.scm (gdb module): Update.
3641 (prepend-pretty-printer!, append-pretty-printer!): Update.
3642 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3643 (pretty_printer_list_var): Delete.
3644 (pretty_printer_list): New static global.
3645 (gdbscm_pretty_printers): New function.
3646 (gdbscm_set_pretty_printers_x): New function.
3647 (ppscm_find_pretty_printer_from_gdb): Update.
3648 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3649 (gdbscm_initialize_pretty_printers): Update.
3651 2014-07-26 Doug Evans <xdje42@gmail.com>
3654 * configure.ac: Add check for header gc/gc.h.
3655 Add check for function setenv.
3656 * configure: Regenerate.
3657 * config.in: Regenerate.
3658 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3660 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3662 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3663 variation in gdbarch matching.
3665 2014-07-25 Tom Tromey <tromey@redhat.com>
3667 * exec.c (using_exec_ops): Remove.
3668 (exec_close_1): Update. Remove extraneous block, reindent.
3669 (add_target_sections): Use target_is_pushed.
3671 2014-07-25 Pedro Alves <palves@redhat.com>
3673 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3674 * monitor.c (monitor_create_inferior): Likewise.
3675 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3676 * remote-sim.c (gdbsim_create_inferior): Likewise.
3677 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3678 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3679 * windows-nat.c (do_initial_windows_stuff): Likewise.
3681 2014-07-25 Pedro Alves <palves@redhat.com>
3683 * NEWS: Mention signal passing and "signal" command changes.
3684 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3686 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3688 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3689 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3690 (jump_command): Adjust clear_proceed_status call.
3691 (signal_command): Warn if other thread that are resumed have
3692 signals that will be delivered. Adjust clear_proceed_status call.
3693 (until_next_command, finish_command)
3694 (proceed_after_attach_callback, attach_command_post_wait)
3695 (attach_command): Adjust clear_proceed_status call.
3696 * infrun.c (proceed_after_vfork_done): Likewise.
3697 (proceed_after_attach_callback): Adjust comment.
3698 (clear_proceed_status_thread): Clear stop_signal if not in pass
3700 (clear_proceed_status_callback): Delete.
3701 (clear_proceed_status): New 'step' parameter. Only clear the
3702 proceed status of threads the command being prepared is about to
3704 (proceed): If passed in an explicit signal, override stop_signal
3705 with it. Don't pass the last stop signal to the thread we're
3707 (init_wait_for_inferior): Adjust clear_proceed_status call.
3708 (switch_back_to_stepped_thread): Clear the signal if it should not
3710 * infrun.h (clear_proceed_status): New 'step' parameter.
3711 (user_visible_resume_ptid): Add comment.
3712 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3713 signal is in pass state.
3714 * remote.c (append_pending_thread_resumptions): Likewise.
3715 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3717 2014-07-25 Tom Tromey <tromey@redhat.com>
3719 * target.h (target_stopped_data_address)
3720 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3723 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3725 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3727 (avr_pointer_to_address): Likewise.
3729 2014-07-24 Tom Tromey <tromey@redhat.com>
3731 * monitor.c (compile_pattern): Update.
3732 * target.h (struct target_ops) <to_shortname, to_longname,
3735 2014-07-24 Tom Tromey <tromey@redhat.com>
3737 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3738 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3739 (add_info_alias, add_com): Make "doc" const.
3740 (print_doc_line): Make "str" const.
3741 (delete_cmd): Update.
3742 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3743 (print_doc_line): Update.
3744 * cli/cli-script.c (document_command): Update.
3745 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3746 (add_com, add_info, add_info_alias): Update.
3747 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3748 * python/py-cmd.c (cmdpy_destroyer): Update.
3750 2014-07-24 Tom Tromey <tromey@redhat.com>
3752 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3753 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3754 (help_cmd_list): Constify.
3755 (lookup_cmd): Update.
3756 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3758 (help_cmd_list, apropos_cmd): Update.
3759 * cli/cli-script.c (show_user): Update.
3760 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3761 * cli/cli-setshow.h (cmd_show_list): Update.
3762 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3763 (cmd_show_list): Update.
3764 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3765 * python/py-cmd.c (cmdpy_destroyer): Update.
3767 2014-07-24 Tom Tromey <tromey@redhat.com>
3769 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3770 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3772 * command.h (deprecate_cmd): Update.
3773 * maint.c (maintenance_do_deprecate): Add casts.
3775 2014-07-24 Tom Tromey <tromey@redhat.com>
3777 * cli/cli-decode.c (help_cmd): Make parameter "const".
3778 * cli/cli-decode.h (help_cmd): Update.
3780 2014-07-24 Tom Tromey <tromey@redhat.com>
3782 * stack.c (up_silently_base, down_silently_base): Make argument
3785 2014-07-24 Tom Tromey <tromey@redhat.com>
3787 * solib.c (solib_add): Make "pattern" const.
3788 * solib.h (solib_add): Update.
3790 2014-07-24 Tom Tromey <tromey@redhat.com>
3792 * remote.c (remote_serial_open, print_packet, putpkt)
3793 (putpkt_binary): Constify.
3794 * remote.h (putpkt): Update.
3796 2014-07-24 Tom Tromey <tromey@redhat.com>
3798 * monitor.c (monitor_open): Make "args" const.
3799 * monitor.h (monitor_open): Update.
3801 2014-07-24 Tom Tromey <tromey@redhat.com>
3803 * maint.c (match_bfd_flags): Make "string" const.
3804 (print_bfd_section_info): Remove casts.
3805 (print_objfile_section_info): Make "string" const.
3807 2014-07-24 Tom Tromey <tromey@redhat.com>
3809 * inf-child.c (inf_child_open_target): Make "arg" const.
3810 * inf-child.h (inf_child_open_target): Update.
3812 2014-07-24 Tom Tromey <tromey@redhat.com>
3814 * environ.c (unset_in_environ): Make "var" const.
3815 * environ.h (unset_in_environ): Update.
3817 2014-07-24 Tom Tromey <tromey@redhat.com>
3819 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3821 (scan_filename_with_cleanup): Likewise.
3822 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3823 Make arguments const.
3824 (restore_command): Update.
3826 2014-07-24 Pedro Alves <palves@redhat.com>
3828 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3830 2014-07-24 Tom Tromey <tromey@redhat.com>
3831 Gary Benson <gbenson@redhat.com>
3833 * nat/linux-ptrace.c (additional_flags): New global.
3834 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3835 additional_flags; don't check GDBSERVER.
3836 (linux_ptrace_set_additional_flags): New function.
3837 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3839 * linux-nat.c (_initialize_linux_nat): Call
3840 linux_ptrace_set_additional_flags.
3842 2014-07-24 Tom Tromey <tromey@redhat.com>
3844 * make-target-delegates (munge_type, write_debugmethod): New
3846 (debug_names): New global.
3847 ($TARGET_DEBUG_PRINTER): New global.
3848 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3850 Write debug methods. Generate init_debug_target.
3851 * target-debug.h: New file.
3852 * target-delegates.c: Rebuild.
3853 * target.c: Include target-debug.h.
3854 (debug_target): Hoist definition.
3855 (target_kill, target_get_section_table, target_memory_map)
3856 (target_flash_erase, target_flash_done, target_detach)
3857 (target_disconnect, target_wait, target_resume)
3858 (target_pass_signals, target_program_signals, target_follow_fork)
3859 (target_mourn_inferior, target_search_memory)
3860 (target_thread_address_space, target_close)
3861 (target_find_new_threads, target_core_of_thread)
3862 (target_verify_memory, target_insert_mask_watchpoint)
3863 (target_remove_mask_watchpoint): Remove targetdebug code.
3864 (debug_to_post_attach, debug_to_prepare_to_store)
3865 (debug_to_files_info, debug_to_insert_breakpoint)
3866 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3867 (debug_to_region_ok_for_hw_watchpoint)
3868 (debug_to_can_accel_watchpoint_condition)
3869 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3870 (debug_to_watchpoint_addr_within_range)
3871 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3872 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3873 (debug_to_terminal_init, debug_to_terminal_inferior)
3874 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3875 (debug_to_terminal_save_ours, debug_to_terminal_info)
3876 (debug_to_load, debug_to_post_startup_inferior)
3877 (debug_to_insert_fork_catchpoint)
3878 (debug_to_remove_fork_catchpoint)
3879 (debug_to_insert_vfork_catchpoint)
3880 (debug_to_remove_vfork_catchpoint)
3881 (debug_to_insert_exec_catchpoint)
3882 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3883 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3884 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3885 (setup_target_debug): Call init_debug_target.
3886 * target.h (TARGET_DEBUG_PRINTER): New macro.
3887 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3888 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3890 2014-07-24 Gary Benson <gbenson@redhat.com>
3892 * exceptions.h (throw_vfatal): Renamed to...
3893 (throw_vquit): New declaration.
3894 (throw_quit): Likewise.
3895 * exceptions.c (throw_vfatal): Renamed to...
3896 (throw_vquit): New function.
3897 (throw_quit): Likewise.
3898 (throw_error): Call throw_verror rather than throw_it.
3899 * utils.h (vfatal): Removed.
3901 * utils.c (vfatal): Removed.
3903 (internal_verror): Replaced call to fatal with call to throw_quit.
3904 (quit): Replaced calls to fatal with calls to throw_quit.
3906 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3908 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3911 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3913 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3914 less than zero in conditional expression.
3916 2014-07-23 Tom Tromey <tromey@redhat.com>
3918 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3919 ($INTRO_PART): Don't match whitespace.
3920 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3922 ($METHOD): Add $METHOD_TRAILER.
3924 (scan_target_h): New sub.
3925 Change main loop not to collect state.
3926 * target-delegates.c: Rebuild.
3928 2014-07-23 Gary Benson <gbenson@redhat.com>
3930 * cp-support.c (gdb_demangle): Fix build on systems without
3933 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3935 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3936 for reference entry value target data value.
3938 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3940 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3941 value_available_contents_eq.
3943 2014-07-22 Pedro Alves <palves@redhat.com>
3945 * value.c (allocate_optimized_out_value): Don't mark value as
3948 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3950 * MAINTAINERS (Write After Approval): Update my email address.
3952 2014-07-20 Doug Evans <dje@google.com>
3955 * remote.c (putpkt_binary): Add text to error message.
3957 2014-07-20 Yao Qi <yao@codesourcery.com>
3959 * eval.c: Remove "Chill" from comments.
3960 * gdbtypes.h: Likewise.
3961 * symtab.h: Likewise.
3963 2014-07-20 Yao Qi <yao@codesourcery.com>
3965 * std-operator.def: Update comments to TERNOP_SLICE.
3967 2014-07-20 Yao Qi <yao@codesourcery.com>
3969 * std-operator.def: Remove BINOP_RANGE.
3970 * breakpoint.c (watchpoint_exp_is_const): Update.
3971 * expprint.c (dump_subexp_body_standard): Likewise.
3972 * eval.c (init_array_element): Remove dead code.
3973 (evaluate_subexp_standard): Likewise.
3975 2014-07-20 Yao Qi <yao@codesourcery.com>
3977 * std-operator.def: Remove BINOP_IN.
3978 * breakpoint.c (watchpoint_exp_is_const): Update.
3979 * eval.c (evaluate_subexp_standard): Likewise.
3980 * expprint.c (dump_subexp_body_standard): Likewise.
3982 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3984 * microblaze-tdep.c (microblaze_register_names): Add
3985 the rshr and rslr register names.
3986 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3987 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3988 Use of tdesc_numbered_register. Use of
3989 microblaze_register_g_packet_guesses. Use of
3990 tdesc_use_registers. Use of set_gdbarch_register_type.
3991 (microblaze_register_g_packet_guesses): New.
3992 * microblaze-tdep.h (microblaze_reg_num): Add
3993 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3994 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3995 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3996 * features/microblaze-core.xml: New file.
3997 * features/microblaze-stack-protect.xml: New file.
3998 * features/microblaze-with-stack-protect.c: New file.
3999 * features/microblaze-with-stack-protect.xml: New file.
4000 * features/microblaze.xml: New file.
4001 * features/microblaze.c: New file.
4002 * features/Makefile (microblaze-with-stack-protect): Add
4003 microblaze-with-stack-protect microblaze and microblaze-expedite.
4004 * regformats/microblaze-with-stack-protect.dat: New file.
4005 * regformats/microblaze.dat: New file.
4006 * doc/gdb.texinfo (MicroBlaze Features): Added.
4008 2014-07-18 Tom Tromey <tromey@redhat.com>
4010 * exec.c (exec_ops): Now static.
4011 * exec.h (exec_ops): Don't declare.
4013 2014-07-18 Tom Tromey <tromey@redhat.com>
4015 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4016 to find_target_beneath.
4017 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4018 find_target_beneath.
4019 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4021 2014-07-18 Tom Tromey <tromey@redhat.com>
4024 * utils.c (quit): Use target_supports_terminal_ours.
4025 * target.h (target_supports_terminal_ours): Declare.
4026 * target.c (target_supports_delete_record): Don't check
4027 to_delete_record against NULL.
4028 (target_supports_terminal_ours): New function.
4030 2014-07-18 Tom Tromey <tromey@redhat.com>
4033 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4034 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4035 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4036 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4037 * windows-nat.c (windows_xfer_partial): Always delegate.
4038 * record-btrace.c (record_btrace_xfer_partial): Simplify
4040 (record_btrace_fetch_registers, record_btrace_store_registers)
4041 (record_btrace_prepare_to_store, record_btrace_resume)
4042 (record_btrace_wait, record_btrace_find_new_threads)
4043 (record_btrace_thread_alive): Likewise.
4044 * procfs.c (procfs_xfer_partial): Always delegate.
4045 * corelow.c (core_xfer_partial): Always delegate.
4046 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4048 2014-07-18 Tom Tromey <tromey@redhat.com>
4050 * exec.c (exec_make_note_section): Move earlier.
4052 2014-07-17 Doug Evans <dje@google.com>
4055 * maint.c (count_symtabs_and_blocks): Handle NULL
4056 current_program_space.
4057 (report_command_stats): Check global enabled flag in addition to
4058 recorded enabled flag.
4059 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4061 2014-07-16 Pedro Alves <palves@redhat.com>
4063 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4065 2014-07-16 Tom Tromey <tromey@redhat.com>
4067 * target.h (struct target_ops) <to_delete_record>: Reformat
4070 2014-07-16 Tom Tromey <tromey@redhat.com>
4072 * target-delegates.c: Rebuild.
4074 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4076 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4077 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4078 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4079 (avr_pointer_to_address): Likewise.
4080 (avr_address_class_type_flags): New function.
4081 (avr_address_class_type_flags_to_name): Likewise.
4082 (avr_address_class_name_to_type_flags): Likewise.
4083 (avr_gdbarch_init): Set address_class_type_flags,
4084 address_class_type_flags_to_name and
4085 address_class_name_to_type_flags.
4087 2014-07-15 Pedro Alves <palves@redhat.com>
4089 * linux-nat.c (kill_callback): Save errno and work with saved
4092 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4094 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4096 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4098 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4099 breakpoint support correctly.
4101 2014-07-14 Pedro Alves <palves@redhat.com>
4103 * utils.c (prompt_for_continue): Call target_terminal_ours.
4105 2014-07-14 Pedro Alves <palves@redhat.com>
4107 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4108 catch_errors. Don't re-enable stdin or notify observers where,
4110 (fetch_inferior_event_wrapper): Delete.
4112 2014-07-14 Pedro Alves <palves@redhat.com>
4115 * top.c: Include "inf-loop.h".
4116 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4118 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4120 (gdb_readline_wrapper): Store whether the target is async, and
4123 2014-07-14 Pedro Alves <palves@redhat.com>
4126 * top.c (gdb_readline_wrapper_line): Tweak comment.
4127 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4128 the input handler callback.
4130 2014-07-14 Pedro Alves <palves@redhat.com>
4133 * main.c: Include event-top.h.
4134 (handle_command_errors): New function.
4135 (catch_command_errors, catch_command_errors_const): Use it.
4137 2014-07-14 Pedro Alves <palves@redhat.com>
4139 * exceptions.c (catch_command_errors, catch_command_errors_const):
4141 * exceptions.h (catch_command_errors_ftype)
4142 (catch_command_errors_const_ftype): Moved to main.c.
4143 (catch_command_errors, catch_command_errors_const): Delete
4145 * main.c (catch_command_errors_ftype)
4146 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4147 (catch_command_errors, catch_command_errors_const)): Moved here
4148 from exceptions.c and make static.
4150 2014-07-14 Pedro Alves <palves@redhat.com>
4152 * exceptions.c (print_any_exception): Delete.
4153 (catch_exceptions_with_msg): Use exception_print instead of
4154 print_any_exception.
4155 (catch_errors): Use exception_fprintf instead of
4156 print_any_exception.
4157 (catch_command_errors, catch_command_errors_const): Use
4158 exception_print instead of print_any_exception.
4160 2014-07-14 Pedro Alves <palves@redhat.com>
4162 * infcall.c (run_inferior_call): Set 'sync_execution' while
4163 running the inferior call.
4165 2014-07-14 Pedro Alves <palves@redhat.com>
4167 * value.c (value_contents_equal): Delete function.
4168 * value.h (value_contents_equal): Delete declaration.
4170 2014-07-14 Tom Tromey <tromey@redhat.com>
4173 * gdbtypes.c (is_dynamic_type_internal): New function, from
4175 (is_dynamic_type): Rewrite.
4176 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4177 (resolve_dynamic_struct): Likewise.
4178 (resolve_dynamic_type_internal): New function, from
4179 resolve_dynamic_type.
4180 (resolve_dynamic_type): Rewrite.
4182 2014-07-14 Tom Tromey <tromey@redhat.com>
4184 * target.c (target_require_runnable): Also check record_stratum.
4187 2014-07-11 Yao Qi <yao@codesourcery.com>
4189 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4190 thumb_instruction_restores_sp return true.
4192 2014-07-11 Yao Qi <yao@codesourcery.com>
4194 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4195 (thumb_in_function_epilogue_p): Call
4196 thumb_instruction_restores_sp.
4198 2014-07-11 Yao Qi <yao@codesourcery.com>
4200 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4202 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4204 2014-07-11 Gary Benson <gbenson@redhat.com>
4206 * amd64-linux-nat.c (gdbcore.h): Remove include.
4207 (regset.h): Likewise.
4208 (nat/linux-btrace.h): Likewise.
4209 (btrace.h): Likewise.
4210 (gdb_assert.h): Likewise.
4211 (string.h): Likewise.
4212 (sys/uio.h): Likewise.
4213 (sys/debugreg.h): Likewise.
4214 (sys/syscall.h): Likewise.
4215 (sys/procfs.h): Likewise.
4216 (sys/user.h): Likewise.
4217 (asm/ptrace.h): Likewise.
4218 (i386-nat.h): Likewise.
4219 * i386-linux-nat.c (i386-nat.h): Likewise.
4220 (regset.h): Likewise.
4221 (target.h): Likewise.
4222 (linux-nat.h): Likewise.
4223 (nat/linux-btrace.h): Likewise.
4224 (btrace.h): Likewise.
4225 (gdb_assert.h): Likewise.
4226 (string.h): Likewise.
4227 (sys/uio.h): Likewise.
4228 (sys/user.h): Likewise.
4229 (sys/procfs.h): Likewise.
4230 (sys/reg.h): Likewise.
4231 (sys/debugreg.h): Likewise.
4232 (ORIG_EAX): Remove definition.
4234 2014-07-11 Gary Benson <gbenson@redhat.com>
4236 * i386-linux-nat.h: New file.
4237 * x86-linux-nat.h: Likewise.
4238 * x86-linux-nat.c: Likewise.
4239 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4240 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4241 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4242 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4243 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4244 (PTRACE_SETREGSET): Likewise.
4245 (arch_lwp_info): Now in x86-linux-nat.c.
4246 (have_ptrace_getregset): Now in x86-linux-nat.h.
4247 (x86_linux_dr_get): Now in x86-linux-nat.c.
4248 (x86_linux_dr_set): Likewise.
4249 (x86_linux_dr_get_addr): Likewise.
4250 (x86_linux_dr_get_control): Likewise.
4251 (x86_linux_dr_get_status): Likewise.
4252 (update_debug_registers_callback): Likewise.
4253 (x86_linux_dr_set_control): Likewise.
4254 (x86_linux_dr_set_addr): Likewise.
4255 (x86_linux_prepare_to_resume): Likewise.
4256 (x86_linux_new_thread): Likewise.
4257 (x86_linux_new_fork): Likewise.
4258 (x86_linux_get_thread_area): Likewise.
4259 (super_post_startup_inferior): Likewise.
4260 (x86_linux_child_post_startup_inferior): Likewise.
4261 (AMD64_LINUX_USER64_CS): Likewise.
4262 (AMD64_LINUX_X32_DS): Likewise.
4263 (x86_linux_read_description): Likewise.
4264 (x86_linux_enable_btrace): Likewise.
4265 (x86_linux_disable_btrace): Likewise.
4266 (x86_linux_teardown_btrace): Likewise.
4267 (x86_linux_read_btrace): Likewise.
4268 (x86_linux_create_target): Likewise.
4269 (x86_linux_add_target): Likewise.
4270 * i386-linux-nat.c (x86-linux-nat.h): New include.
4271 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4272 (PTRACE_SETREGSET): Likewise.
4273 (arch_lwp_info): Now in x86-linux-nat.c.
4274 (have_ptrace_getregset): Now in x86-linux-nat.h.
4275 (x86_linux_dr_get): Now in x86-linux-nat.c.
4276 (x86_linux_dr_set): Likewise.
4277 (x86_linux_dr_get_addr): Likewise.
4278 (x86_linux_dr_get_control): Likewise.
4279 (x86_linux_dr_get_status): Likewise.
4280 (update_debug_registers_callback): Likewise.
4281 (x86_linux_dr_set_control): Likewise.
4282 (x86_linux_dr_set_addr): Likewise.
4283 (x86_linux_prepare_to_resume): Likewise.
4284 (x86_linux_new_thread): Likewise.
4285 (x86_linux_new_fork): Likewise.
4286 (x86_linux_get_thread_area): Likewise.
4287 (super_post_startup_inferior): Likewise.
4288 (x86_linux_child_post_startup_inferior): Likewise.
4289 (AMD64_LINUX_USER64_CS): Likewise.
4290 (AMD64_LINUX_X32_DS): Likewise.
4291 (x86_linux_read_description): Likewise.
4292 (x86_linux_enable_btrace): Likewise.
4293 (x86_linux_disable_btrace): Likewise.
4294 (x86_linux_teardown_btrace): Likewise.
4295 (x86_linux_read_btrace): Likewise.
4296 (x86_linux_create_target): Likewise.
4297 (x86_linux_add_target): Likewise.
4299 2014-07-11 Gary Benson <gbenson@redhat.com>
4301 * amd64-linux-nat.c: Comment and whitespace changes.
4302 * i386-linux-nat.c: Comment and whitespace changes.
4304 2014-07-11 Gary Benson <gbenson@redhat.com>
4306 * amd64-linux-nat.c (x86_linux_create_target): New function.
4307 (x86_linux_add_target): Likewise.
4308 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4309 * i386-linux-nat.c (x86_linux_create_target): New function.
4310 (x86_linux_add_target): Likewise.
4311 (_initialize_i386_linux_nat): Delegate to the above new functions.
4313 2014-07-11 Gary Benson <gbenson@redhat.com>
4315 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4316 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4317 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4318 (ps_get_thread_area): Delegate to the above.
4320 2014-07-11 Gary Benson <gbenson@redhat.com>
4322 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4323 x86_linux_read_description. All uses updated. amd64-specific
4324 code conditionalized. Conditionalized i386-specific code added.
4325 Redundant cast removed.
4326 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4327 x86_linux_read_description. All uses updated. i386-specific
4328 code conditionalized. Conditionalized amd64-specific code added.
4329 One sizeof replaced with the actual type it is describing.
4331 2014-07-11 Gary Benson <gbenson@redhat.com>
4333 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4334 x86_linux_dr_get. All uses updated.
4335 (amd64_linux_dr_set): Renamed to
4336 x86_linux_dr_set. All uses updated.
4337 (amd64_linux_dr_get_addr): Renamed to
4338 x86_linux_dr_get_addr. All uses updated.
4339 (amd64_linux_dr_get_control): Renamed to
4340 x86_linux_dr_get_control. All uses updated.
4341 (amd64_linux_dr_get_status): Renamed to
4342 x86_linux_dr_get_status. All uses updated.
4343 (amd64_linux_dr_set_control): Renamed to
4344 x86_linux_dr_set_control. All uses updated.
4345 (amd64_linux_dr_set_addr): Renamed to
4346 x86_linux_dr_set_addr. All uses updated.
4347 (amd64_linux_prepare_to_resume): Renamed to
4348 x86_linux_prepare_to_resume. All uses updated.
4349 (amd64_linux_new_thread): Renamed to
4350 x86_linux_new_thread. All uses updated.
4351 (amd64_linux_new_fork): Renamed to
4352 x86_linux_new_fork. All uses updated.
4353 (amd64_linux_child_post_startup_inferior): Renamed to
4354 x86_linux_child_post_startup_inferior. All uses updated.
4355 (amd64_linux_enable_btrace): Renamed to
4356 x86_linux_enable_btrace. All uses updated.
4357 (amd64_linux_disable_btrace): Renamed to
4358 x86_linux_disable_btrace. All uses updated.
4359 (amd64_linux_teardown_btrace): Renamed to
4360 x86_linux_teardown_btrace. All uses updated.
4361 (amd64_linux_read_btrace): Renamed to
4362 x86_linux_read_btrace. All uses updated.
4363 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4364 x86_linux_dr_get. All uses updated.
4365 (i386_linux_dr_set): Renamed to
4366 x86_linux_dr_set. All uses updated.
4367 (i386_linux_dr_get_addr): Renamed to
4368 x86_linux_dr_get_addr. All uses updated.
4369 (i386_linux_dr_get_control): Renamed to
4370 x86_linux_dr_get_control. All uses updated.
4371 (i386_linux_dr_get_status): Renamed to
4372 x86_linux_dr_get_status. All uses updated.
4373 (i386_linux_dr_set_control): Renamed to
4374 x86_linux_dr_set_control. All uses updated.
4375 (i386_linux_dr_set_addr): Renamed to
4376 x86_linux_dr_set_addr. All uses updated.
4377 (i386_linux_prepare_to_resume): Renamed to
4378 x86_linux_prepare_to_resume. All uses updated.
4379 (i386_linux_new_thread): Renamed to
4380 x86_linux_new_thread. All uses updated.
4381 (i386_linux_new_fork): Renamed to
4382 x86_linux_new_fork. All uses updated.
4383 (i386_linux_child_post_startup_inferior): Renamed to
4384 x86_linux_child_post_startup_inferior. All uses updated.
4385 (i386_linux_enable_btrace): Renamed to
4386 x86_linux_enable_btrace. All uses updated.
4387 (i386_linux_disable_btrace): Renamed to
4388 x86_linux_disable_btrace. All uses updated.
4389 (i386_linux_teardown_btrace): Renamed to
4390 x86_linux_teardown_btrace. All uses updated.
4391 (i386_linux_read_btrace): Renamed to
4392 x86_linux_read_btrace. All uses updated.
4394 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4396 * remote.c (extended_remote_post_attach): New function.
4397 (init_extended_remote_ops): Install it as to_post_attach method.
4399 2014-07-09 Pedro Alves <palves@redhat.com>
4401 * infcmd.c (attach_command_post_wait): Don't call
4402 target_terminal_inferior here.
4403 (attach_command): Call it here instead.
4405 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4407 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4409 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4410 from varobj.c, with additional checks.
4411 (c_varobj_ops): Fill in is_path_expr_parent field.
4412 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4413 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4415 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4417 (varobj_default_is_path_expr_parent): New function.
4418 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4419 (varobj_default_is_path_expr_parent): Declare new function.
4421 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4423 * infcmd.c (finish_backward): Turn internal error into normal error.
4425 2014-07-07 Pedro Alves <palves@redhat.com>
4428 * remote.c (async_handle_remote_sigint)
4429 (async_handle_remote_sigint_twice): Call
4430 gdb_call_async_signal_handler instead of
4431 mark_async_signal_handler.
4433 2014-07-07 Tom Tromey <tromey@redhat.com>
4435 * target-delegates.c: Rebuild.
4436 * target.c (target_info_record): Remove.
4437 * record.c (info_record_command): Unconditionally call
4439 * target.h (struct target_ops) <to_info_record>: Use
4440 TARGET_DEFAULT_IGNORE.
4441 (target_info_record): Remove.
4443 2014-07-07 Tom Tromey <tromey@redhat.com>
4445 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4446 TARGET_DEFAULT_NORETURN.
4447 * target.c (generic_tls_error): New function.
4448 (target_translate_tls_address): Don't search target stack.
4449 * target-delegates.c: Rebuild.
4450 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4452 * linux-thread-db.c (thread_db_get_thread_local_address):
4453 Unconditionally call beneath target.
4455 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4457 * cli/cli-logging.c (pop_output_files): Assign targerr to
4460 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4462 * MAINTAINERS (Write After Approval): Update my email address.
4464 2014-07-02 Gary Benson <gbenson@redhat.com>
4466 * proc-service.c (ps_xfer_memory): Update comment.
4467 (ps_pstop): Remove unused function.
4468 (ps_pcontinue): Likewise.
4469 (ps_lstop): Likewise.
4470 (ps_lcontinue): Likewise.
4471 (ps_lgetxregsize): Likewise.
4472 (ps_lgetxregs): Likewise.
4473 (ps_lsetxregs): Likewise.
4474 (ps_plog): Likewise.
4475 (ps_ptread): Likewise.
4476 (ps_ptwrite): Likewise.
4478 2014-07-01 Mark Wielaard <mjw@redhat.com>
4480 * dwarf2read.c (add_array_cv_type): New function.
4481 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4482 (read_tag_volatile_type): Likewise.
4484 2014-07-01 Tom Tromey <tromey@redhat.com>
4486 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4487 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4488 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4489 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4490 * command.h (cmd_cfunc_ftype): Move earlier.
4491 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4492 (add_com, add_info): Use cmd_cfunc_ftype.
4494 2014-06-30 Tom Tromey <tromey@redhat.com>
4496 * symtab.c (operator_chars): Make parameters and return type
4498 (file_matches): Make "files" const.
4499 (struct search_symbols_data) <files>: Now const.
4500 (search_symbols): Make "regexp" and "files" parameters const.
4502 (symtab_symbol_info): Remove cast.
4503 (rbreak_command): Update.
4504 * symtab.h (search_symbols): Update.
4506 2014-06-27 Yao Qi <yao@codesourcery.com>
4508 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4509 Change parameter type to 'struct thread_info *'. Caller
4511 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4513 * dummy-frame.c (struct dummy_frame_id): New.
4514 (dummy_frame_id_eq): New function.
4515 (struct dummy_frame) <id>: Change its type to 'struct
4517 (dummy_frame_push): Add parameter ptid and save it in
4519 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4521 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4523 (lookup_dummy_frame): Change parameter type to 'struct
4524 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4525 instead of frame_id_eq.
4526 (dummy_frame_pop): Add parameter ptid. Callers updated.
4527 Update comments. Compose dummy_frame_id and pass it to
4529 (dummy_frame_discard): Add parameter ptid.
4530 (dummy_frame_sniffer): Compose dummy_frame_id and call
4531 dummy_frame_id_eq instead of frame_id_eq.
4532 (fprint_dummy_frames): Print ptid.
4533 * dummy-frame.h: Remove comments.
4534 (dummy_frame_push): Add ptid in declaration.
4535 (dummy_frame_pop, dummy_frame_discard): Likewise.
4537 2014-06-26 Tom Tromey <tromey@redhat.com>
4539 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4540 * command.h (error_no_arg): Update.
4542 2014-06-26 Tom Tromey <tromey@redhat.com>
4544 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4545 (do_show_command): Make "arg" const.
4546 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4548 2014-06-26 Tom Tromey <tromey@redhat.com>
4550 * record-full.c (record_full_get_bookmark): Make "args" const.
4551 (record_full_goto_bookmark): Make "raw_bookmark" const.
4552 * record.c (record_goto): New function.
4553 (cmd_record_goto): Use it. Now static.
4554 * record.h (record_goto): Declare.
4555 (cmd_record_goto): Remove declaration.
4556 * target-delegates.c: Rebuild.
4557 * target.h (struct target_ops) <to_get_bookmark,
4558 to_goto_bookmark>: Make parameter const.
4560 2014-06-26 Tom Tromey <tromey@redhat.com>
4562 * defs.h (generic_load): Update.
4563 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4564 * monitor.c (monitor_load): Make "args" const.
4565 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4566 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4568 (mips_load): Make "file" const.
4569 * remote-sim.c (gdbsim_load): Make "args" const.
4570 * remote.c (remote_load): Make "name" const.
4571 * symfile.c (generic_load): Make "args" const.
4572 * target-delegates.c: Rebuild.
4573 * target.c (target_load): Make "arg" const.
4574 (debug_to_load): Make "args" const.
4575 * target.h (struct target_ops) <to_load>: Make parameter const.
4576 (target_load): Update.
4578 2014-06-26 Tom Tromey <tromey@redhat.com>
4581 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4582 (dwarf2_physname, read_partial_die)
4583 (guess_partial_die_structure_name, fixup_partial_die)
4584 (guess_full_die_structure_name, anonymous_struct_prefix)
4585 (dwarf2_name): Use per-BFD obstack.
4587 2014-06-26 Yao Qi <yao@codesourcery.com>
4589 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4590 dummyframe and this_id into inner block below.
4592 2014-06-26 Yao Qi <yao@codesourcery.com>
4594 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4595 with "signal_pass[0]" in the initialization of signal_pass.
4597 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4599 * record-btrace.c (record_btrace_generating_corefile)
4600 (record_btrace_prepare_to_generate_core)
4601 (record_btrace_done_generating_core): New.
4602 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4603 (record_btrace_store_registers, record_btrace_prepare_to_store):
4604 Forward request when generating a core file.
4605 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4606 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4607 to_done_generating_core.
4609 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4611 * target.h (target_ops) <to_prepare_to_generate_core>
4612 <to_done_generating_core>: New.
4613 (target_prepare_to_generate_core, target_done_generating_core): New.
4614 * target.c (target_prepare_to_generate_core)
4615 (target_done_generating_core): New.
4616 * target-delegates.c: Regenerate.
4617 * gcore.c: (write_gcore_file): Rename to ...
4618 (write_gcore_file_1): ...this.
4619 (write_gcore_file): Call target_prepare_to_generate_core
4620 and target_done_generating_core.
4622 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4624 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4625 * gcore.c (write_gcore_file): Free memory returned from
4626 make_corefile_notes.
4627 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4628 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4630 2014-06-24 Yao Qi <yao@codesourcery.com>
4632 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4633 (arm_linux_init_abi): Set skip_trampoline_code with
4634 gdbarch_skip_trampoline_code instead of
4635 find_solib_trampoline_target.
4637 2014-06-24 Yao Qi <yao@codesourcery.com>
4639 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4640 arm_skip_bx_reg returns non-zero.
4642 2014-06-24 Yao Qi <yao@codesourcery.com>
4644 * arm-tdep.c (arm_skip_bx_reg): New function.
4645 (arm_skip_stub): Call arm_skip_bx_reg.
4647 2014-06-23 Don Breazeal <donb@codesourcery.com>
4649 * MAINTAINERS: Add myself as write-after-approval maintainer.
4651 2014-06-23 Pedro Alves <palves@redhat.com>
4653 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4654 DR_CONTROL before setting DR0..DR3.
4655 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4656 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4657 bits of DR_CONTROL related to the debug register slot being
4658 disabled. If all slots are vacant, clear local slowdown as well,
4659 and assert DR_CONTROL is 0.
4661 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4663 * python/lib/gdb/command/xmethods.py
4664 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4665 current progspace only if the string "progspace" matches LOCUS_RE.
4667 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4669 Fix --with-system-readline with readline-6.3 patch 5.
4670 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4671 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4674 2014-06-20 Tom Tromey <tromey@redhat.com>
4676 * dwarf2read.c (dw2_get_real_path): Use correct type in
4678 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4680 2014-06-20 Gary Benson <gbenson@redhat.com>
4682 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4683 * common/glibc_thread_db.h: Likewise.
4684 * common/i386-cpuid.h: Likewise.
4685 * common/i386-gcc-cpuid.h: Likewise.
4686 * common/linux-btrace.h: Likewise.
4687 * common/linux-osdata.h: Likewise.
4688 * common/linux-procfs.h: Likewise.
4689 * common/linux-ptrace.h: Likewise.
4690 * common/mips-linux-watch.h: Likewise.
4691 * common/linux-btrace.c: Moved to nat.
4692 * common/linux-osdata.c: Likewise.
4693 * common/linux-procfs.c: Likewise.
4694 * common/linux-ptrace.c: Likewise.
4695 * common/mips-linux-watch.c: Likewise.
4696 * nat/gdb_thread_db.h: Moved from common.
4697 * nat/glibc_thread_db.h: Likewise.
4698 * nat/i386-cpuid.h: Likewise.
4699 * nat/i386-gcc-cpuid.h: Likewise.
4700 * nat/linux-btrace.c: Likewise.
4701 * nat/linux-btrace.h: Likewise.
4702 * nat/linux-osdata.c: Likewise.
4703 * nat/linux-osdata.h: Likewise.
4704 * nat/linux-procfs.c: Likewise.
4705 * nat/linux-procfs.h: Likewise.
4706 * nat/linux-ptrace.c: Likewise.
4707 * nat/linux-ptrace.h: Likewise.
4708 * nat/mips-linux-watch.c: Likewise.
4709 * nat/mips-linux-watch.h: Likewise.
4710 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4711 (object file files): Reordered.
4712 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4713 of glibc_thread_db.h.
4715 2014-06-20 Gary Benson <gbenson@redhat.com>
4717 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4718 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4719 (i386_dr_low): Likewise.
4720 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4721 (i386_dr_low_set_addr): Likewise.
4722 (i386_dr_low_get_addr): Likewise.
4723 (i386_dr_low_can_set_control): Likewise.
4724 (i386_dr_low_set_control): Likewise.
4725 (i386_dr_low_get_control): Likewise.
4726 (i386_dr_low_get_status): Likewise.
4727 (i386_get_debug_register_length): Likewise.
4728 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4729 (i386_dr_low): Likewise.
4730 * nat/i386-dregs.c (i386-low.h): Remove include.
4731 (i386-nat.h): Likewise.
4732 (nat/i386-dregs.h): New include.
4733 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4734 (i386_dr_low_set_addr): Likewise.
4735 (i386_dr_low_get_addr): Likewise.
4736 (i386_dr_low_can_set_control): Likewise.
4737 (i386_dr_low_set_control): Likewise.
4738 (i386_dr_low_get_control): Likewise.
4739 (i386_dr_low_get_status): Likewise.
4740 (i386_get_debug_register_length): Likewise.
4741 (debug_hw_points): Likewise.
4743 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4745 * Makefile.in (SFILES): Add d-exp.y.
4746 (YYFILES): Add d-exp.c.
4747 (YYOBJ): Add d-exp.o.
4748 (local-maintainer-clean): Delete d-exp.c.
4749 * d-exp.y: New file.
4750 * d-lang.h (d_parse): New declaration.
4751 (d_error): New declaration.
4752 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4753 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4754 PREC_ORDER operators.
4755 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4757 2014-06-19 Yao Qi <yao@codesourcery.com>
4759 * gdbthread.h (any_running): Remove the declaration.
4760 * thread.c (any_running): Remove.
4762 2014-06-19 Yao Qi <yao@codesourcery.com>
4764 * gdbthread.h (struct thread_info) <state>: Change its type to
4765 'enum thread_state'. Update comments.
4767 2014-06-19 Pedro Alves <palves@redhat.com>
4769 * gdbthread.h (ALL_THREADS): Delete.
4770 (ALL_NON_EXITED_THREADS): New macro.
4771 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4772 instead of ALL_THREADS.
4773 * infrun.c (find_thread_needs_step_over)
4774 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4775 instead of ALL_THREADS.
4776 * record-btrace.c (record_btrace_open)
4777 (record_btrace_stop_recording, record_btrace_close)
4778 (record_btrace_is_replaying, record_btrace_resume)
4779 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4780 * remote.c (append_pending_thread_resumptions): Likewise.
4781 * thread.c (thread_apply_all_command): Likewise.
4783 2014-06-19 Gary Benson <gbenson@redhat.com>
4785 * i386-nat.c (i386_stopped_by_watchpoint):
4786 Use i386_dr_stopped_by_watchpoint.
4787 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4788 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4790 2014-06-19 Gary Benson <gbenson@redhat.com>
4792 * nat/i386-dregs.c: New file.
4793 * Makefile.in (i386-dregs.o): New rule.
4794 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4795 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4796 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4797 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4798 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4799 * config/i386/go32.mh (NATDEPFILES): Likewise.
4800 * config/i386/linux.mh (NATDEPFILES): Likewise.
4801 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4802 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4803 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4804 * i386-nat.h (debug_hw_points): New declaration.
4805 * i386-nat.c (breakpoint.h): Remove include.
4806 (command.h): Likewise.
4807 (target.h): Likewise.
4808 (gdb_assert.h): Likewise.
4809 (debug_hw_points): Made nonstatic.
4810 (debug_printf): Now in i386-dregs.c.
4811 (TARGET_HAS_DR_LEN_8): Likewise.
4812 (DR_CONTROL_SHIFT): Likewise.
4813 (DR_CONTROL_SIZE): Likewise.
4814 (DR_RW_EXECUTE): Likewise.
4815 (DR_RW_WRITE): Likewise.
4816 (DR_RW_READ): Likewise.
4817 (DR_RW_IORW): Likewise.
4818 (DR_LEN_1): Likewise.
4819 (DR_LEN_2): Likewise.
4820 (DR_LEN_4): Likewise.
4821 (DR_LEN_8): Likewise.
4822 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4823 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4824 (DR_ENABLE_SIZE): Likewise.
4825 (DR_LOCAL_SLOWDOWN): Likewise.
4826 (DR_GLOBAL_SLOWDOWN): Likewise.
4827 (DR_CONTROL_RESERVED): Likewise.
4828 (I386_DR_CONTROL_MASK): Likewise.
4829 (I386_DR_VACANT): Likewise.
4830 (I386_DR_LOCAL_ENABLE): Likewise.
4831 (I386_DR_GLOBAL_ENABLE): Likewise.
4832 (I386_DR_DISABLE): Likewise.
4833 (I386_DR_SET_RW_LEN): Likewise.
4834 (I386_DR_GET_RW_LEN): Likewise.
4835 (I386_DR_WATCH_HIT): Likewise.
4836 (i386_wp_op_t): Likewise.
4837 (i386_show_dr): Likewise.
4838 (i386_length_and_rw_bits): Likewise.
4839 (i386_insert_aligned_watchpoint): Likewise.
4840 (i386_remove_aligned_watchpoint): Likewise.
4841 (i386_handle_nonaligned_watchpoint): Likewise.
4842 (i386_update_inferior_debug_regs): Likewise.
4843 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4844 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4845 (i386_region_ok_for_watchpoint):
4846 Use i386_dr_region_ok_for_watchpoint.
4847 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4849 2014-06-19 Gary Benson <gbenson@redhat.com>
4851 * i386-nat.c (i386_insert_hw_breakpoint): Use
4852 i386_insert_watchpoint.
4853 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4855 2014-06-19 Gary Benson <gbenson@redhat.com>
4857 * i386-nat.c (i386_dr_show): Renamed to
4858 i386_show_dr and made static. All uses updated.
4859 (i386_dr_length_and_rw_bits): Renamed to
4860 i386_length_and_rw_bits and made static.
4862 (i386_dr_insert_aligned_watchpoint): Renamed to
4863 i386_insert_aligned_watchpoint and made static.
4865 (i386_dr_remove_aligned_watchpoint): Renamed to
4866 i386_remove_aligned_watchpoint and made static.
4868 (i386_dr_update_inferior_debug_regs): Renamed to
4869 i386_update_inferior_debug_regs and made static.
4871 * nat/i386-dregs.h (i386_dr_show): Removed.
4872 (i386_dr_length_and_rw_bits): Likewise.
4873 (i386_dr_insert_aligned_watchpoint): Likewise.
4874 (i386_dr_remove_aligned_watchpoint): Likewise.
4875 (i386_dr_update_inferior_debug_regs): Likewise.
4877 2014-06-19 Gary Benson <gbenson@redhat.com>
4879 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4880 * configure: Regenerate.
4881 * config.in: Likewise.
4882 * main.c (signal.h): New include.
4883 (setup_alternate_signal_stack): New function.
4884 (captured_main): Call the above.
4885 * cp-support.c (signal.h): New include.
4886 (catch_demangler_crashes): New flag.
4887 (SIGJMP_BUF): New define.
4888 (SIGSETJMP): Likewise.
4889 (SIGLONGJMP): Likewise.
4890 (gdb_demangle_jmp_buf): New static global.
4891 (gdb_demangle_attempt_core_dump): Likewise.
4892 (gdb_demangle_signal_handler): New function.
4893 (gdb_demangle): If catch_demangler_crashes is set, install the
4894 above signal handler before calling bfd_demangle, and restore
4895 the original signal handler afterwards. Display the offending
4896 symbol and call demangler_warning the first time a segmentation
4898 (_initialize_cp_support): New maint set/show command.
4900 2014-06-19 Gary Benson <gbenson@redhat.com>
4902 * utils.h (resource_limit_kind): New enum.
4903 (can_dump_core): New declaration.
4904 (warn_cant_dump_core): Likewise.
4905 (dump_core): Likewise.
4906 * utils.c (dump_core): Made nonstatic. Added new
4907 parameter "limit_kind".
4908 (can_dump_core): Made nonstatic. Moved printing code to...
4909 (warn_cant_dump_core): New function.
4910 (can_dump_core_warn): Likewise.
4911 (internal_vproblem): Replace calls to can_dump_core with
4912 calls to can_dump_core_warn. Supply new argument to each.
4914 2014-06-19 Gary Benson <gbenson@redhat.com>
4916 * utils.h (demangler_vwarning): New declaration.
4917 (demangler_warning): Likewise.
4918 * utils.c (struct internal_problem)
4919 <user_settable_should_quit>: New field.
4920 <user_settable_should_dump_core>: Likewise
4921 (internal_error_problem): Add values for above new fields.
4922 (internal_warning_problem): Likewise.
4923 (demangler_warning_problem): New static global.
4924 (demangler_vwarning): New function.
4925 (demangler_warning): Likewise.
4926 (add_internal_problem_command): Selectively add commands.
4927 (_initialize_utils): New internal problem command.
4928 * maint.c (maintenance_demangler_warning): New function.
4929 (_initialize_maint_cmds): New command.
4931 2014-06-18 Tom Tromey <tromey@redhat.com>
4933 * f-valprint.c (info_common_command_for_block): Update.
4934 * symtab.h (struct general_symbol_info) <common_block>: Now
4937 2014-06-18 Tom Tromey <tromey@redhat.com>
4939 * symtab.h (struct symtab) <blockvector>: Now const.
4940 * ada-lang.c (ada_add_global_exceptions): Update.
4941 * buildsym.c (augment_type_symtab): Update.
4942 * dwarf2read.c (dw2_lookup_symbol): Update.
4943 * jit.c (finalize_symtab): Update.
4944 * jv-lang.c (add_class_symtab_symbol): Update.
4945 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4947 * objfiles.c (objfile_relocate1): Update.
4948 * psymtab.c (lookup_symbol_aux_psymtabs)
4949 (maintenance_check_psymtabs): Update.
4950 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4952 * spu-tdep.c (spu_catch_start): Update.
4953 * symmisc.c (dump_symtab_1): Update.
4954 * symtab.c (lookup_global_symbol_from_objfile)
4955 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4956 (basic_lookup_transparent_type_quick)
4957 (basic_lookup_transparent_type, find_pc_sect_symtab)
4958 (find_pc_sect_line, search_symbols): Update.
4959 * block.c (find_block_in_blockvector): Make "bl" const.
4960 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4962 (blockvector_contains_pc): Make "bv" const.
4963 (block_for_pc_sect): Update.
4964 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4965 (blockvector_contains_pc): Update.
4966 * breakpoint.c (resolve_sal_pc): Update.
4967 * inline-frame.c (block_starting_point_at): Update.
4969 2014-06-18 Tom Tromey <tromey@redhat.com>
4971 * completer.c (complete_line): Make "line_buffer" const.
4972 * completer.h (complete_line): Update.
4974 2014-06-18 Tom Tromey <tromey@redhat.com>
4976 * symtab.c (add_macro_name): Remove unneeded cast.
4978 2014-06-18 Tom Tromey <tromey@redhat.com>
4980 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4981 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4983 2014-06-18 Tom Tromey <tromey@redhat.com>
4985 * probe.c (info_probes_for_ops): Make "arg" const.
4986 * probe.h (info_probes_for_ops): Update.
4988 2014-06-18 Tom Tromey <tromey@redhat.com>
4990 * varobj.c (varobj_create): Update.
4991 * valops.c (value_of_this): Update.
4992 * tracepoint.c (add_local_symbols, scope_info): Update.
4993 * symtab.h (struct general_symbol_info) <block>: Now const.
4994 * symtab.c (skip_prologue_sal)
4995 (default_make_symbol_completion_list_break_on)
4996 (skip_prologue_using_sal): Update.
4997 * stack.h (iterate_over_block_locals)
4998 (iterate_over_block_local_vars): Update.
4999 * stack.c (print_frame_args): Update.
5000 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5002 (get_selected_block): Make return type const.
5003 * python/py-frame.c (frapy_block): Update.
5004 * python/py-block.c (gdbpy_block_for_pc): Update.
5005 * p-exp.y (%union) <bval>: Now const.
5006 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5007 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5008 * m2-exp.y (%union) <bval>: Now const.
5009 * linespec.c (get_current_search_block): Make return type const.
5010 (create_sals_line_offset, find_label_symbols): Update.
5011 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5013 (block_starting_point_at): Make "block" const.
5014 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5015 (check_exception_resume): Update.
5016 * guile/scm-frame.c (gdbscm_frame_block): Update.
5017 * guile/scm-block.c (gdbscm_lookup_block): Update.
5018 * frame.h (get_frame_block): Update.
5019 (get_selected_block): Make return type const.
5020 * frame.c (frame_id_inner): Update.
5021 * f-valprint.c (info_common_command_for_block)
5022 (info_common_command): Update.
5023 * dwarf2loc.c (dwarf2_find_location_expression)
5024 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5025 (locexpr_describe_location_piece): Update.
5026 * c-exp.y (%union) <bval>: Now const.
5027 * breakpoint.c (resolve_sal_pc): Update.
5028 * blockframe.c (get_frame_block):Make return type const.
5029 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5030 (block_innermost_frame): Update.
5031 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5032 (block_for_pc, block_for_pc_sect): Update.
5033 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5035 (block_for_pc_sect, block_for_pc): Make return type const.
5036 * ax-gdb.c (gen_expr): Update.
5037 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5038 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5039 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5040 (ada_read_var_value): Update.
5041 * ada-exp.y (struct name_info) <block>: Now const.
5043 (block_lookup): Constify.
5045 2014-06-18 Gary Benson <gbenson@redhat.com>
5047 * nat/i386-dregs.h: New file.
5048 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5049 * i386-nat.h (i386-dregs.h): New include.
5050 (DR_FIRSTADDR): Now in i386-dregs.h.
5051 (DR_LASTADDR): Likewise.
5052 (DR_NADDR): Likewise.
5053 (DR_STATUS): Likewise.
5054 (DR_CONTROL): Likewise.
5055 (i386_debug_reg_state): Likewise.
5056 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5058 2014-06-18 Don Breazeal <donb@codesourcery.com>
5060 * breakpoint.c (set_longjmp_breakpoint): Call
5061 momentary_breakpoint_from_master with additional argument.
5062 (set_longjmp_breakpoint_for_call_dummy): Call
5063 momentary_breakpoint_from_master with additional argument.
5064 (set_std_terminate_breakpoint): Call
5065 momentary_breakpoint_from_master with additional argument.
5066 (momentary_breakpoint_from_master): Add argument to function
5067 definition and use it to initialize structure member flag.
5068 (clone_momentary_breakpoint): Call
5069 momentary_breakpoint_from_master with additional argument.
5070 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5071 member flags set in momentary_breakpoint_from_master.
5073 2014-06-18 Gary Benson <gbenson@redhat.com>
5075 * i386-nat.c (i386_show_dr): Renamed to
5076 i386_dr_show and made nonstatic. All uses updated.
5077 (i386_length_and_rw_bits): Renamed to
5078 i386_dr_length_and_rw_bits and made nonstatic.
5080 (i386_insert_aligned_watchpoint): Renamed to
5081 i386_dr_insert_aligned_watchpoint and made nonstatic.
5083 (i386_remove_aligned_watchpoint): Renamed to
5084 i386_dr_remove_aligned_watchpoint and made nonstatic.
5086 (i386_update_inferior_debug_regs): Renamed to
5087 i386_dr_update_inferior_debug_regs and made nonstatic.
5090 2014-06-18 Gary Benson <gbenson@redhat.com>
5092 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5093 (i386_dr_low_can_set_control): Likewise.
5094 (i386_dr_low_set_addr): Likewise.
5095 (i386_dr_low_set_control): Likewise.
5096 (i386_dr_low_get_addr): Likewise.
5097 (i386_dr_low_get_status): Likewise.
5098 (i386_dr_low_get_control): Likewise.
5099 (i386_insert_aligned_watchpoint): Use new macros.
5100 (i386_update_inferior_debug_regs): Likewise.
5101 (i386_stopped_data_address): Likewise.
5103 2014-06-18 Gary Benson <gbenson@redhat.com>
5105 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5106 New parameter. All uses updated.
5108 2014-06-18 Gary Benson <gbenson@redhat.com>
5110 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5113 2014-06-18 Gary Benson <gbenson@redhat.com>
5115 * i386-nat.c (debug_printf): New macro.
5116 (i386_get_debug_register_length): Likewise.
5117 (TARGET_HAS_DR_LEN_8): Use above macro.
5118 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5119 and printf_unfiltered. Use phex to format values.
5121 2014-06-18 Gary Benson <gbenson@redhat.com>
5123 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5126 2014-06-18 Gary Benson <gbenson@redhat.com>
5128 * i386-nat.c: Comment changes.
5130 2014-06-18 Gary Benson <gbenson@redhat.com>
5132 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5134 2014-06-18 Gary Benson <gbenson@redhat.com>
5136 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5137 (i386_insert_aligned_watchpoint): Likewise.
5138 (i386_remove_aligned_watchpoint): Likewise.
5139 (i386_handle_nonaligned_watchpoint): Likewise.
5141 2014-06-18 Gary Benson <gbenson@redhat.com>
5143 * i386-nat.c: Whitespace changes.
5145 2014-06-17 Samuel Bronson <naesten@gmail.com>
5147 * MAINTAINERS: Update Roland McGrath's email address.
5148 Thanks to Sergio Durigan Junior for pointing out that he left
5149 Red Hat a while ago, and giving me a current address.
5151 2014-06-17 Tom Tromey <tromey@redhat.com>
5153 * utils.h (savestring): Remove declaration.
5155 2014-06-17 Tom Tromey <tromey@redhat.com>
5157 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5159 2014-06-16 Keith Seitz <keiths@redhat.com>
5162 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5163 to update the varobj if inferior_ptid is null_ptid.
5165 2014-06-16 Tom Tromey <tromey@redhat.com>
5167 * target.h (struct target_ops) <to_info_proc>: Make parameter
5169 (target_info_proc): Update.
5170 * target.c (target_info_proc): Make "args" const.
5171 * procfs.c (procfs_info_proc): Update.
5172 * linux-tdep.c (linux_info_proc): Update.
5173 (linux_core_info_proc_mappings): Make "args" const.
5174 (linux_core_info_proc): Update.
5175 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5176 * gdbarch.c: Rebuild.
5177 * gdbarch.h: Rebuild.
5178 * corelow.c (core_info_proc): Update.
5180 2014-06-16 Tom Tromey <tromey@redhat.com>
5182 * target.h (struct target_ops) <to_disconnect>: Make parameter
5184 (target_disconnect): Update.
5185 * target.c (target_disconnect): Make "args" const.
5186 * target-delegates.c: Rebuild.
5187 * remote.c (remote_disconnect): Update.
5188 * record.h (record_disconnect): Update.
5189 * record.c (record_disconnect): Update.
5190 * inf-child.c (inf_child_disconnect): Update.
5192 2014-06-16 Tom Tromey <tromey@redhat.com>
5194 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5195 * target.c (debug_to_rcmd, default_rcmd): Update.
5196 * target-delegates.c: Rebuild.
5197 * remote.c (remote_rcmd): Update.
5198 * monitor.c (monitor_rcmd): Update.
5200 2014-06-16 Pedro Alves <palves@redhat.com>
5202 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5203 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5204 have OBJF_SHARED set.
5205 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5206 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5207 instead of OBJF_USERLOADED.
5208 * objfiles.h (OBJF_SHARED): Update comment.
5209 (userloaded_objfile_contains_address_p): Rename to ...
5210 (shared_objfile_contains_address_p): ... this, and update
5212 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5214 (remove_symbol_file_command): Skip objfiles that don't have
5217 2014-06-16 Tom Tromey <tromey@redhat.com>
5219 * minsyms.h (prim_record_minimal_symbol)
5220 (prim_record_minimal_symbol_and_info): Update comments.
5222 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5224 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5225 or --without-guile, according to how GDB was built.
5227 2014-06-13 Tom Tromey <tromey@redhat.com>
5229 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5231 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5233 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5235 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5236 help_list.Pass all_commands, not -1, to help_list.
5237 * cli/cli-dump.c (dump_command, append_command)
5238 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5239 (binary_dump_command, binary_append_command): Pass all_commands,
5240 not -1, to help_list.
5241 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5243 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5245 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5247 * top.c (set_history): Pass all_commands, not -1, to help_list.
5248 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5249 all_commands, not -1, to help_list.
5250 * symfile.c (overlay_command): Pass all_commands, not -1, to
5252 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5254 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5256 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5258 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5259 not -1, to help_list.
5260 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5261 not -1, to help_list.
5262 * maint.c (maintenance_command, maintenance_info_command)
5263 (maintenance_print_command, maintenance_set_cmd): Pass
5264 all_commands, not -1, to help_list.
5265 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5267 * language.c (set_check): Pass all_commands, not -1, to help_list.
5268 * infcmd.c (unset_command): Pass all_commands, not -1, to
5270 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5272 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5274 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5276 * breakpoint.c (save_command): Pass all_commands, not -1, to
5278 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5279 all_commands, not -1, to help_list.
5281 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5283 * regcache.c (struct register_to_invalidate): New structure.
5284 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5286 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5288 2014-06-12 Yao Qi <yao@codesourcery.com>
5290 * varobj.c (varobj_get_num_children): Call
5291 varobj_is_dynamic_p.
5292 (varobj_list_children): Likewise.
5293 (varobj_update): Likewise. Update comments.
5295 2014-06-12 Yao Qi <yao@codesourcery.com>
5297 * varobj.c (varobj_pretty_printed_p): Rename to ...
5298 (varobj_is_dynamic_p): ... this. New function.
5299 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5300 (varobj_is_dynamic_p): Declare.
5301 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5302 (mi_print_value_p, varobj_update_one): Likewise.
5304 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5305 Yao Qi <yao@codesourcery.com>
5307 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5308 (varobj_get_iterator): Wrap up code for pretty-printer by
5309 "#if HAVE_PYTHON" and "#endif".
5310 (update_dynamic_varobj_children): Likewise.
5312 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5313 Yao Qi <yao@codesourcery.com>
5315 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5316 gdb_python_initialized is false. Move some code from varobj.c.
5317 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5318 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5319 (struct varobj_item): Moved to varobj-iter.h".
5320 (varobj_clear_saved_item): New function.
5321 (update_dynamic_varobj_children): Move python-related code to
5323 (free_variable): Call varobj_clear_saved_item and
5326 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5327 Yao Qi <yao@codesourcery.com>
5329 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5330 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5331 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5332 (py-varobj.o): New rule.
5333 * python/py-varobj.c: New file.
5334 * python/python-internal.h (py_varobj_get_iterator): Declare.
5335 * varobj-iter.h: New file.
5336 * varobj.c: Include "varobj-iter.h"
5337 (struct varobj) <child_iter>: Change its type from "PyObject *"
5338 to "struct varobj_iter *".
5339 <saved_item>: Likewise.
5340 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5341 [HAVE_PYTHON] (varobj_get_iterator): New function.
5342 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5343 python-specific code to python/py-varobj.c.
5344 (install_visualizer): Call varobj_iter_delete instead of
5346 * varobj.h (varobj_ensure_python_env): Declare.
5348 2014-06-12 Yao Qi <yao@codesourcery.com>
5350 * varobj.c (struct varobj_item): New structure.
5351 (create_child_with_value): Update declaration.
5352 (varobj_add_child): Replace arguments 'name' and 'value' with
5353 'item'. All callers updated.
5354 (install_dynamic_child): Likewise.
5355 (update_dynamic_varobj_children): Likewise.
5356 (varobj_add_child): Likewise.
5357 (create_child_with_value): Likewise.
5359 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5361 * NEWS: Create a new section for the next release branch.
5362 Rename the section of the current branch, now that it has
5365 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5367 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5368 * version.in: Bump version to 7.8.50.DATE-cvs.
5370 2014-06-11 Pedro Alves <palves@redhat.com>
5373 * ser-mingw.c (net_windows_socket_check_pending): New function.
5374 (net_windows_select_thread): Ignore spurious wakeups. Use
5375 net_windows_socket_check_pending.
5376 (net_windows_wait_handle): Check for pending events with
5377 ioctlsocket, through net_windows_socket_check_pending, instead of
5378 checking the socket's event.
5380 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5382 * python/python-internal.h (gdb_PyObject_GetAttrString)
5383 (gdb_PyObject_HasAttrString): New inline function definitions.
5384 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5385 char * of the second argument to PyObject_GetAttrString.
5387 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5389 * serial.c (serial_write): Fix index of character to be printed
5390 in call to serial_logchar when serial debug traces are enabled.
5392 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5394 * gdbtypes (resolve_dynamic_range): Add function description.
5396 2014-06-09 Pedro Alves <palves@redhat.com>
5398 * linux-nat.c (linux_child_follow_fork): Initialize status with
5399 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5400 inner block. Only pass the signal to PTRACE_DETACH if in pass
5403 2014-06-09 Gary Benson <gbenson@redhat.com>
5405 * common/signals.c (gdb_signal_from_host): Reorder to separate
5406 the always-available ANSI-standard signals from the signals that
5408 (do_gdb_signal_to_host): Likewise.
5409 * proc-events.c (signal_table): Likewise.
5411 2014-06-08 Hui Zhu <hui@codesourcery.com>
5413 * common/linux-ptrace.c (linux_disable_event_reporting): New
5415 * common/linux-ptrace.h (linux_disable_event_reporting): New
5417 * linux-nat.c (linux_child_follow_fork): Do a single step before
5420 2014-06-07 Keith Seitz <keiths@redhat.com>
5424 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5425 from symbol_matches_domain in symtab.c. All local callers
5426 of symbol_matches_domain updated.
5427 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5428 search STRUCT_DOMAIN.
5429 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5430 independently. standard_lookup will do that automatically.
5431 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5432 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5433 (cp_lookup_symbol_in_namespace): Likewise.
5434 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5435 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5436 may return a STRUCT_DOMAIN match.
5437 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5438 * cp-support.c: Include language.h.
5439 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5441 * psymtab.c (match_partial_symbol): Compare the requested
5442 domain with the symbol's domain directly.
5443 (lookup_partial_symbol): Likewise.
5444 * symtab.c (lookup_symbol_in_language): Explain when/why
5445 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5446 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5447 appropriate languages.
5448 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5449 and moved to ada-lang.c
5450 (lookup_block_symbol): Explain that this function only returns
5451 symbol matching the requested DOMAIN.
5452 Compare the requested domain with the symbol's domain directly.
5453 (iterate_over_symbols): Compare the requested domain with the
5454 symbol's domain directly.
5455 * symtab.h (symbol_matches_domain): Remove.
5457 2014-06-06 Doug Evans <xdje42@gmail.com>
5459 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5460 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5461 (gdbscm_guile_version_is_at_least): Declare.
5462 (gdbscm_scm_string_to_int): Declare.
5463 * guile/guile.c (gdbscm_guile_major_version): New global.
5464 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5465 (guile_datadir): New static global.
5466 (gdbscm_guile_data_directory): New function.
5467 (initialize_scheme_side): Update.
5468 (misc_guile_functions): Add guile-data-directory.
5469 (initialize_gdb_module): Fetch guile version number.
5470 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5471 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5472 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5473 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5475 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5476 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5477 * guile/scm-value.c (gdbscm_value_to_string): Only call
5478 scm_port_conversion_strategy if Guile version >= 2.0.6.
5480 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5482 * main.c (print_gdb_help): Add -q and --silent.
5484 2014-06-06 Gary Benson <gbenson@redhat.com>
5486 * common/signals.c: Remove preprocessor conditionals for
5487 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5488 SIGSEGV and SIGTERM.
5489 * proc-events.c: Likewise.
5491 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5493 * symfile.c (symfile_free_objfile): Remove restriction to
5495 * symfile-mem.c (symbol_file_add_from_memory): Call
5496 add_target_sections_of_objfile.
5498 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5500 * guile/scm-value.c (gdbscm_history_append_x): Use
5501 'vlscm_get_value_smob_arg_unsafe' instead of
5502 'vlscm_scm_to_value'.
5504 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5507 * utils.c (printchar): Don't escape at all if quoter is NUL.
5508 Update function documentation to clarify effect of parameter
5510 * remote.c (escape_buffer): Pass '\\' as the quoter to
5511 fputstrn_unfiltered.
5512 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5513 generate the output.
5514 (mi_solib_unloaded): Same.
5516 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5518 * development.sh: Delete.
5519 * Makefile.in (config.status): Adjust dependency on development.sh.
5520 * configure.ac: Adjust development.sh source call.
5521 * configure: Regenerate.
5523 2014-06-04 Doug Evans <xdje42@gmail.com>
5525 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5526 is_scheme_bkpt, spec.
5527 (bpscm_make_breakpoint_smob): Initialize new members.
5528 (gdbscm_create_breakpoint_x): Split into two ...
5529 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5530 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5531 (scheme_function breakpoint_functions): Update.
5532 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5533 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5534 register-breakpoint!.
5536 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5539 * mem-break.c (z_type_supported): Return zero if
5540 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5542 2014-06-04 Tom Tromey <tromey@redhat.com>
5544 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5545 value_from_contents_and_address_unresolved.
5546 (ada_template_to_fixed_record_type_1): Likewise.
5547 (ada_which_variant_applies): Likewise.
5548 * value.h (value_from_contents_and_address_unresolved): Declare.
5549 * value.c (value_from_contents_and_address_unresolved): New
5551 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5552 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5553 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5555 2014-06-04 Tom Tromey <tromey@redhat.com>
5557 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5559 2014-06-04 Tom Tromey <tromey@redhat.com>
5561 * procfs.c (procfs_attach): Make "args" const.
5562 * windows-nat.c (windows_attach): Make "args" const.
5563 * nto-procfs.c (procfs_attach): Make "args" const.
5564 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5565 * go32-nat.c (go32_attach): Make "args" const.
5566 * gnu-nat.c (gnu_attach): Make "args" const.
5567 * darwin-nat.c (darwin_attach): Make "args" const.
5568 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5569 * linux-nat.c (linux_nat_attach): Make "args" const.
5570 * remote.c (extended_remote_attach_1, extended_remote_attach):
5572 * target.h (struct target_ops) <to_attach>: Make "args" const.
5573 (find_default_attach): Likewise.
5574 * utils.c (parse_pid_to_attach): Make "args" const.
5575 * utils.h (parse_pid_to_attach): Update.
5577 2014-06-04 Tom Tromey <tromey@redhat.com>
5579 * target-delegates.c: Rebuild.
5580 * target.c (default_thread_address_space): New function.
5581 (target_thread_address_space): Simplify.
5582 * target.h (struct target_ops) <to_thread_address_space>: Add
5583 TARGET_DEFAULT_FUNC.
5585 2014-06-04 Doug Evans <xdje42@gmail.com>
5587 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5589 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5591 * record-btrace.c: Include event-loop.h and inf-loop.h.
5592 (record_btrace_resume_exec_dir)
5593 (record_btrace_async_inferior_event_handler)
5594 (record_btrace_handle_async_inferior_event): New.
5595 (record_btrace_open): Create async event handler.
5596 (record_btrace_close): Delete async event handler.
5597 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5598 Mark async event handler.
5599 (record_btrace_execution_direction): New.
5600 (init_record_btrace_ops): Initialize to_execution_direction.
5602 2014-06-03 Doug Evans <xdje42@gmail.com>
5604 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5605 (gdbscm_make_parameter): Ditto.
5607 2014-06-03 Doug Evans <dje@google.com>
5609 * exec.c (exec_close_1): Call clear_section_table instead of
5610 resize_section_table.
5611 (clear_section_table): New function.
5612 (resize_section_table): Make static. Rename arg num_added to
5614 * exec.h (clear_section_table): Declare.
5615 (resize_section_table): Delete.
5616 * progspace.c (release_program_space): Call clear_section_table
5617 instead of resize_section_table.
5619 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5621 * NEWS (Python Scripting): Add entry about the new xmethods
5624 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5626 * python/py-xmethods.c: New file.
5627 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5628 (objfpy_dealloc): XDECREF on the new xmethods field.
5629 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5631 (objfpy_get_xmethods): New function.
5632 (objfile_getset): New entry 'xmethods'.
5633 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5634 (pspy_dealloc): XDECREF on the new xmethods field.
5635 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5637 (pspy_get_xmethods): New function.
5638 (pspace_getset): New entry 'xmethods'.
5639 * python/python-internal.h: Add declarations for new functions.
5640 * python/python.c (_initialize_python): Invoke
5641 gdbpy_initialize_xmethods.
5642 * python/lib/gdb/__init__.py (xmethods): New
5644 * python/lib/gdb/xmethod.py: New file.
5645 * python/lib/gdb/command/xmethods.py: New file.
5647 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5649 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5650 best match method returned by find_overload_match is an xmethod.
5651 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5652 the best matching operator returned by find_overload_match is an
5654 * valops.c: #include "extension.h".
5655 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5656 Return void. The list of matching source methods is returned in
5657 "fn_list" and a vector of matching debug method workers is
5658 returned in "xm_worker_vec". Update all callers.
5659 (value_find_oload_method_list): Likewise.
5660 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5661 non-NULL, then the index of the best matching method in this
5662 vector is returned. Update all callers.
5663 (find_overload_match): Include xmethods while performing overload
5666 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5668 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5669 * extension-priv.h (struct extension_language_ops): Add the
5671 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5672 get_matching_xmethod_workers, get_xmethod_argtypes,
5673 invoke_xmethod, free_xmethod_worker,
5674 free_xmethod_worker_vec): New functions.
5675 * extension.h: #include "common/vec.h".
5676 New function declarations.
5677 (struct xmethod_worker): New struct.
5678 (VEC (xmethod_worker_ptr)): New vector type.
5679 (xmethod_worker_ptr): New typedef.
5680 (xmethod_worker_vec): Likewise.
5681 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5683 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5684 (struct builtin_type): New field "xmethod".
5685 * valarith.c (value_ptradd): Assert that the value argument is not
5687 * valops.c (value_must_coerce_to_target): Return 0 for
5688 lval_xcallable values.
5689 * value.c (struct value): New field XM_WORKER in the field
5691 (value_address, value_raw_address): Return 0 for lval_xcallable
5693 (set_value_address): Assert that the value is not an
5695 (value_free): Free the associated xmethod worker when freeing
5696 lval_xcallable values.
5697 (set_value_component_location): Assert that the WHOLE value is not
5699 (value_of_xmethod, call_xmethod): New functions.
5700 * value.h: Declare "struct xmethod_worker".
5701 Declare new functions value_of_xmethod, call_xmethod.
5703 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5704 Pedro Alves <palves@redhat.com>
5706 PR breakpoints/17000
5707 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5708 New function, extracted from software_breakpoint_inserted_here_p.
5709 (software_breakpoint_inserted_here_p): Replace factored out code
5710 by call to find_non_raw_software_breakpoint_inserted_here.
5711 (bp_target_info_copy_insertion_state): New function.
5712 (bkpt_insert_location): Handle the case of a single-step
5713 breakpoint already inserted at the same address.
5714 (bkpt_remove_location): Handle the case of a single-step
5715 breakpoint still inserted at the same address.
5716 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5717 breakpoint already inserted at the same address.
5718 (deprecated_remove_raw_breakpoint): Handle the case of a
5719 non-raw breakpoint still inserted at the same address.
5720 (find_single_step_breakpoint): New function, extracted from
5721 single_step_breakpoint_inserted_here_p.
5722 (find_single_step_breakpoint): New function,
5723 factored out from single_step_breakpoint_inserted_here_p.
5724 (single_step_breakpoint_inserted_here_p): Reimplement.
5726 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5728 Pushed by Joel Brobecker <brobecker@adacore.com>
5729 * source.c (show_substitute_path_command): Fix display of matching
5732 2014-06-03 Gary Benson <gbenson@redhat.com>
5734 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5736 2014-06-02 Doug Evans <xdje42@gmail.com>
5738 Add parameter support for Guile.
5739 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5740 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5741 (scm-param.o): New rule.
5742 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5743 (gdbscm_misc_error): Declare.
5744 (gdbscm_canonicalize_command_name): Declare.
5745 (gdbscm_scm_to_host_string): Declare.
5746 (gdbscm_scm_from_host_string): Declare.
5747 (gdbscm_initialize_parameters): Declare.
5748 * guile/guile.c (initialize_gdb_module): Call
5749 gdbscm_initialize_parameters.
5750 * guile/lib/gdb.scm: Export parameter symbols.
5751 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5752 cmdscm_canonicalize_name and made public. All callers updated.
5753 * guile/scm-exception.c (gdbscm_misc_error): New function.
5754 * guile/scm-param.c: New file.
5755 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5756 (gdbscm_scm_to_host_string): New function.
5757 (gdbscm_scm_from_host_string): New function.
5758 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5760 2014-06-02 Doug Evans <xdje42@gmail.com>
5762 Add command support for Guile.
5763 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5764 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5765 (scm-cmd.o): New rule.
5766 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5767 (gdbscm_user_error_p): Declare.
5768 (gdbscm_parse_command_name): Declare.
5769 (gdbscm_valid_command_class_p): Declare.
5770 (gdbscm_initialize_commands): Declare.
5771 * guile/guile.c (initialize_gdb_module): Call
5772 gdbscm_initialize_commands.
5773 * guile/lib/gdb.scm: Export command symbols.
5774 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5775 (throw-user-error): New function.
5776 * guile/scm-cmd.c: New file.
5777 * guile/scm-exception.c (user_error_symbol): New static global.
5778 (gdbscm_user_error_p): New function.
5779 (gdbscm_initialize_exceptions): Set user_error_symbol.
5780 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5782 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5784 * top.c (command_loop): Handle comments here...
5785 (command_line_input): ... not here.
5787 2014-06-02 Doug Evans <xdje42@gmail.com>
5789 Add progspace support for Guile.
5790 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5791 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5792 (scm-progspace.o): New rule.
5793 * guile/guile-internal.h (pspace_smob): New typedef.
5794 (psscm_pspace_smob_pretty_printers): Declare.
5795 (psscm_pspace_smob_from_pspace): Declare.
5796 (psscm_scm_from_pspace): Declare.
5797 * guile/guile.c (initialize_gdb_module): Call
5798 gdbscm_initialize_pspaces.
5799 * guile/lib/gdb.scm: Export progspace symbols.
5800 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5802 (append-pretty-printer!): Ditto.
5803 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5805 * guile/scm-progspace.c: New file.
5807 2014-06-03 Alan Modra <amodra@gmail.com>
5809 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5810 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5812 2014-06-02 Doug Evans <dje@google.com>
5814 Add support for skeletonless type units.
5815 * dwarf2read.c (struct dwarf2_per_objfile): New member
5816 n_allocated_type_units.
5817 (struct dwarf2_per_objfile) <tu_stats>: New member
5818 nr_all_type_units_reallocs.
5819 (create_signatured_type_table_from_index): Initialize
5820 n_allocated_type_units
5821 (create_all_type_units): Ditto.
5822 (add_type_unit): Move up in file. New arg slot.
5823 All callers updated. Increase space for all_type_units more
5825 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5826 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5827 (lookup_dwp_signatured_type): Ditto.
5828 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5829 All callers updated.
5830 (build_type_psymtabs_1): Leave type_unit_groups as
5831 NULL if no TUs present.
5832 (print_tu_stats): New function.
5833 (process_skeletonless_type_unit): New function.
5834 (process_dwo_file_for_skeletonless_type_units): New
5836 (process_skeletonless_type_units): New function.
5837 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5838 Call print tu_stats if debugging enabled.
5840 2014-06-02 Pedro Alves <palves@redhat.com>
5842 * breakpoint.c (build_target_command_list): Don't build a command
5843 list if we have any duplicate location that isn't a dprintf.
5845 2014-06-02 Pedro Alves <palves@redhat.com>
5847 * breakpoint.c (dprintf_breakpoint_hit): New function.
5848 (initialize_breakpoint_ops): Install it as dprintf's
5849 breakpoint_hit method.
5851 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5853 * source.c (substitute_path_rule_matches): Simplify using
5854 filename_ncmp instead of FILENAME_CMP.
5856 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5858 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5860 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5862 * configure.ac: When Guile is available, check for the
5863 availability of 'scm_new_smob'.
5864 * configure, config.h.in: Regenerate.
5865 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5868 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5870 * frame.c (struct frame_info): Add stop_string field.
5871 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5872 (get_prev_frame_always): Old content moved into
5873 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5874 TRY_CATCH, handle MEMORY_ERROR exceptions.
5875 (frame_stop_reason_string): New function definition.
5876 * frame.h (unwind_stop_reason_to_string): Extend comment to
5877 mention frame_stop_reason_string.
5878 (frame_stop_reason_string): New function declaration.
5879 * stack.c (frame_info): Switch to frame_stop_reason_string.
5880 (backtrace_command_1): Switch to frame_stop_reason_string.
5881 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5882 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5883 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5885 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5887 * frame.c (frame_stop_reason_string): Rename to ...
5888 (unwind_stop_reason_to_string): this.
5889 * frame.h (frame_stop_reason_string): Rename to ...
5890 (unwind_stop_reason_to_string): this.
5891 * stack.c (frame_info): Update call to frame_stop_reason_string.
5892 (backtrace_command_1): Likewise.
5893 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5894 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5896 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5898 * frame.c (remove_prev_frame): New function.
5899 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5902 2014-05-29 Pedro Alves <palves@redhat.com>
5904 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5905 and make it const. When a single-step decays to a continue,
5906 clear 'step', not 'hw_step'. Pass whether the caller wanted
5907 to step to user_visible_resume_ptid, not what we ask the
5910 2014-05-29 Pedro Alves <palves@redhat.com>
5912 * infrun.c (process_event_stop_test, handle_step_into_function)
5913 (handle_step_into_function_backward): Adjust.
5914 Don't set the even thread's stop_step and call stop_waiting before
5915 calling end_stepping_range. Instead do that ...
5916 (end_stepping_range): ... here. Take an ecs pointer parameter.
5918 2014-05-29 Pedro Alves <palves@redhat.com>
5920 * infrun.c (stop_stepping): Rename to ...
5921 (stop_waiting): ... this.
5922 (proceed): Update comment.
5923 (process_event_stop_test, handle_inferior_event)
5924 (handle_signal_stop, handle_step_into_function)
5925 (handle_step_into_function_backward): Update.
5927 2014-05-29 Pedro Alves <palves@redhat.com>
5929 * infcall.c (run_inferior_call): Don't check whether the current
5930 thread is running after the proceed call.
5932 2014-05-29 Pedro Alves <palves@redhat.com>
5933 Tom Tromey <tromey@redhat.com>
5935 * NEWS: Mention "maint set target-async", "set mi-async", and that
5936 background execution commands are now always available.
5937 * target.h (target_async_permitted): Update comment.
5938 * target.c (target_async_permitted, target_async_permitted_1):
5940 (set_target_async_command): Rename to ...
5941 (maint_set_target_async_command): ... this.
5942 (show_target_async_command): Rename to ...
5943 (maint_show_target_async_command): ... this.
5944 (_initialize_target): Adjust.
5945 * infcmd.c (prepare_execution_command): Make extern.
5946 * inferior.h (prepare_execution_command): Declare.
5947 * infrun.c (set_observer_mode): Leave target async alone.
5948 * mi/mi-interp.c (mi_interpreter_init): Install
5949 mi_on_sync_execution_done as sync_execution_done observer.
5950 (mi_on_sync_execution_done): New function.
5951 (mi_execute_command_input_handler): Don't print the prompt if we
5952 just started a synchronous command with an async target.
5953 (mi_on_resume): Check sync_execution before printing prompt.
5954 * mi/mi-main.h (mi_async_p): Declare.
5955 * mi/mi-main.c: Include gdbcmd.h.
5956 (mi_async_p): New function.
5957 (mi_async, mi_async_1): New globals.
5958 (set_mi_async_command, show_mi_async_command, mi_async): New
5960 (exec_continue): Call prepare_execution_command.
5961 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5962 (mi_execute_async_cli_command): Use mi_async_p.
5963 (_initialize_mi_main): Install "set mi-async". Make
5964 "target-async" a deprecated alias.
5966 2014-05-29 Pedro Alves <palves@redhat.com>
5968 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5969 (_initialize_cli_interp): Adjust.
5970 * event-loop.c: Include "observer.h".
5971 (start_event_loop): Notify 'command_error' observers instead of
5972 calling display_gdb_prompt. Remove FIXME comment.
5973 * event-top.c (display_gdb_prompt): Remove call into the
5975 * inf-loop.c: Include "observer.h".
5976 (inferior_event_handler): Notify 'command_error' observers instead
5977 of calling display_gdb_prompt.
5978 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5979 observers instead of calling display_gdb_prompt.
5980 * interps.c (interp_set): Don't call display_gdb_prompt.
5981 (current_interp_display_prompt_p): Delete.
5982 * interps.h (interp_prompt_p): Delete declaration.
5983 (interp_prompt_p_ftype): Delete.
5984 (struct interp_procs) <prompt_proc_p>: Delete field.
5985 (current_interp_display_prompt_p): Delete declaration.
5986 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5987 (_initialize_mi_interp): Adjust.
5988 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5989 'command_error' observers.
5990 (tui_on_sync_execution_done, tui_on_command_error): New
5992 (tui_display_prompt_p): Delete.
5993 (_initialize_tui_interp): Adjust.
5995 2014-05-29 Pedro Alves <palves@redhat.com>
5998 * cli/cli-interp.c: Include infrun.h and observer.h.
5999 (cli_uiout, cli_interp): New globals.
6000 (cli_on_signal_received, cli_on_end_stepping_range)
6001 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6003 (cli_interpreter_init): Install them as 'end_stepping_range',
6004 'signal_received' 'signal_exited', 'exited' and 'no_history'
6006 (_initialize_cli_interp): Remove cli_interp local.
6007 * infrun.c (handle_inferior_event): Call the several stop reason
6008 observers instead of printing the stop reason directly.
6009 (end_stepping_range): New function.
6010 (print_end_stepping_range_reason, print_signal_exited_reason)
6011 (print_exited_reason, print_signal_received_reason)
6012 (print_no_history_reason): Make static, and add an uiout
6013 parameter. Print to that instead of to CURRENT_UIOUT.
6014 * infrun.h (print_end_stepping_range_reason)
6015 (print_signal_exited_reason, print_exited_reason)
6016 (print_signal_received_reason print_no_history_reason): New
6018 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6020 <cli_uiout>: New field.
6021 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6022 uiout for CLI output. Install 'signal_received',
6023 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6025 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6026 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6027 (mi_on_no_history): New functions.
6028 (ui_out_free_cleanup): Delete function.
6029 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6030 instead use the one already stored in the MI interpreter data.
6031 (mi_ui_out): Adjust.
6032 * tui/tui-interp.c: Include infrun.h and observer.h.
6033 (tui_interp): New global.
6034 (tui_on_signal_received, tui_on_end_stepping_range)
6035 (tui_on_signal_exited, tui_on_exited)
6036 (tui_on_no_history): New functions.
6037 (tui_init): Install them as 'end_stepping_range',
6038 'signal_received' 'signal_exited', 'exited' and 'no_history'
6040 (_initialize_tui_interp): Delete tui_interp local.
6042 2014-05-29 Pedro Alves <palves@redhat.com>
6045 * linux-nat.c (linux_nat_resume_callback): Rename the second
6046 parameter to 'except'. Skip LP if it points to EXCEPT.
6047 (linux_nat_resume): Don't mark the event lwp as not stopped
6048 before resuming sibling lwps. Instead ask
6049 linux_nat_resume_callback to skip the event lwp. Mark it as not
6050 stopped after actually resuming it.
6051 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6053 (wait_lwp): Mark the lwp as stopped here.
6054 (stop_wait_callback): Mark the lwp as not stopped right after
6055 resuming it. Don't mark lwps as stopped here.
6056 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6057 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6059 2014-05-29 Pedro Alves <palves@redhat.com>
6062 * infrun.c (resume): Determine how much to resume depending on
6063 whether the caller wanted a step, not whether we can hardware step
6064 the target. Mark all threads that we intend to run as running,
6065 unless we're calling an inferior function.
6066 (normal_stop): If the thread is running an infcall, don't finish
6068 * target.c (target_resume): Don't mark threads as running here.
6070 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6072 * serial.c (_initialize_serial): Remove support for
6073 the "set remotebaud" and "show remotebaud" commands.
6074 * NEWS: Add entry documenting the removal of that command.
6076 2014-05-28 Yao Qi <yao@codesourcery.com>
6078 * charset.c: Fix typo in comments.
6080 2014-05-27 Gary Benson <gbenson@redhat.com>
6082 * utils.c (internal_vproblem): Prompt for a bug report.
6084 2014-05-26 Andy Wingo <wingo@igalia.com>
6086 * guile/scm-arch.c (arscm_mark_arch_smob):
6087 * guile/scm-block.c (bkscm_mark_block_smob)
6088 (bkscm_mark_block_syms_progress_smob):
6089 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6090 * guile/scm-exception.c (exscm_mark_exception_smob):
6091 * guile/scm-frame.c (frscm_mark_frame_smob):
6092 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6093 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6094 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6095 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6096 (ppscm_mark_pretty_printer_worker_smob):
6097 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6098 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6099 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6100 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6102 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6105 2014-05-26 Andy Wingo <wingo@igalia.com>
6106 Doug Evans <xdje42@gmail.com>
6108 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6109 empty_base_class. All uses updated.
6110 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6111 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6113 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6114 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6115 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6116 (gdbscm_gsmob_has_property_p, add_property_name)
6117 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6118 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6119 (gdb-object-has-property?, gdb-object-properties): Remove.
6120 (gdb-object-kind): Renamed from gsmob-kind.
6122 2014-05-26 Andy Wingo <wingo@igalia.com>
6124 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6125 * configure: Regenerate.
6127 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6129 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6131 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6133 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6134 (replay_memory_access_read_only, replay_memory_access_read_write)
6135 (replay_memory_access_types, replay_memory_access)
6136 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6137 (cmd_set_record_btrace, cmd_show_record_btrace)
6138 (cmd_show_replay_memory_access): New.
6139 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6140 (record_btrace_remove_breakpoint): Replace
6141 record_btrace_allow_memory_access with replay_memory_access.
6142 (_initialize_record_btrace): Add commands.
6143 * NEWS: Announce it.
6145 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6147 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6149 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6151 * MAINTAINERS (Write After Approval): Move self back from
6154 2014-05-22 Pedro Alves <palves@redhat.com>
6156 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6157 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6158 (disable_randomization, enum exec_direction_kind)
6159 (execution_direction, stop_registers, start_remote)
6160 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6161 (wait_for_inferior, normal_stop, get_last_target_status)
6162 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6163 (insert_step_resume_breakpoint_at_sal)
6164 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6165 (set_step_info, print_stop_event, signal_stop_state)
6166 (signal_print_state, signal_pass_state, signal_stop_update)
6167 (signal_print_update, signal_pass_update)
6168 (update_signals_program_target, clear_exit_convenience_vars)
6169 (displaced_step_dump_bytes, update_observer_mode)
6170 (signal_catch_update, gdb_signal_from_command): Move
6172 * infrun.h: ... to this new file.
6173 * amd64-tdep.c: Include infrun.h.
6174 * annotate.c: Include infrun.h.
6175 * arch-utils.c: Include infrun.h.
6176 * arm-linux-tdep.c: Include infrun.h.
6177 * arm-tdep.c: Include infrun.h.
6178 * break-catch-sig.c: Include infrun.h.
6179 * breakpoint.c: Include infrun.h.
6180 * common/agent.c: Include infrun.h instead of inferior.h.
6181 * corelow.c: Include infrun.h.
6182 * event-top.c: Include infrun.h.
6183 * go32-nat.c: Include infrun.h.
6184 * i386-tdep.c: Include infrun.h.
6185 * inf-loop.c: Include infrun.h.
6186 * infcall.c: Include infrun.h.
6187 * infcmd.c: Include infrun.h.
6188 * infrun.c: Include infrun.h.
6189 * linux-fork.c: Include infrun.h.
6190 * linux-nat.c: Include infrun.h.
6191 * linux-thread-db.c: Include infrun.h.
6192 * monitor.c: Include infrun.h.
6193 * nto-tdep.c: Include infrun.h.
6194 * procfs.c: Include infrun.h.
6195 * record-btrace.c: Include infrun.h.
6196 * record-full.c: Include infrun.h.
6197 * remote-m32r-sdi.c: Include infrun.h.
6198 * remote-mips.c: Include infrun.h.
6199 * remote-notif.c: Include infrun.h.
6200 * remote-sim.c: Include infrun.h.
6201 * remote.c: Include infrun.h.
6202 * reverse.c: Include infrun.h.
6203 * rs6000-tdep.c: Include infrun.h.
6204 * s390-linux-tdep.c: Include infrun.h.
6205 * solib-irix.c: Include infrun.h.
6206 * solib-osf.c: Include infrun.h.
6207 * solib-svr4.c: Include infrun.h.
6208 * target.c: Include infrun.h.
6209 * top.c: Include infrun.h.
6210 * windows-nat.c: Include infrun.h.
6211 * mi/mi-interp.c: Include infrun.h.
6212 * mi/mi-main.c: Include infrun.h.
6213 * python/py-threadevent.c: Include infrun.h.
6215 2014-05-22 Pedro Alves <palves@redhat.com>
6217 * infrun.c (handle_inferior_event): Store the exit code for
6218 --return-child-result here, instead of ...
6219 (print_exited_reason): ... here.
6221 2014-05-21 Pedro Alves <palves@redhat.com>
6224 * gdbthread.h (struct thread_control_state): New field
6226 * infrun.c (follow_fork): Copy the new thread control field to the
6228 (clear_proceed_status_thread): Clear the new thread control field.
6229 (proceed): Set the new thread control field.
6230 * interps.h (command_interp): Declare.
6231 * interps.c (command_interpreter): New global.
6232 (command_interp): New function.
6233 (interp_exec): Set `command_interpreter' while here.
6234 * cli-out.c (cli_uiout_dtor): New function.
6235 (cli_ui_out_impl): Install it.
6236 * mi/mi-interp.c: Include cli-out.h.
6237 (mi_cmd_interpreter_exec): Add comment.
6238 (restore_current_uiout_cleanup): New function.
6239 (ui_out_free_cleanup): New function.
6240 (mi_on_normal_stop): If finishing an execution command started by
6241 a CLI command, or any kind of breakpoint-like event triggered,
6242 print the stop event to the output (CLI) stream.
6243 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6245 2014-05-21 Pedro Alves <palves@redhat.com>
6247 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6248 current source line having changed.
6249 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6250 * infrun.c (normal_stop): Adjust call to
6251 set_current_sal_from_frame.
6252 * source.c (clear_lines_listed_range): New function.
6253 (set_current_source_symtab_and_line, identify_source_line): Clear
6254 the lines listed range.
6255 (line_info): Handle the first "info line" after the current source
6256 line having changed.
6257 * stack.c (print_stack_frame): Remove center handling.
6258 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6261 2014-05-21 Pedro Alves <palves@redhat.com>
6263 * inf-child.c (inf_child_mourn_inferior): New function.
6264 * inf-child.h (inf_child_mourn_inferior): New declaration.
6265 * darwin-nat.c (darwin_mourn_inferior): Use
6266 inf_child_mourn_inferior.
6267 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6268 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6269 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6270 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6271 * windows-nat.c (windows_mourn_inferior): Likewise.
6273 2014-05-21 Doug Evans <xdje42@gmail.com>
6275 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6277 2014-05-21 Doug Evans <xdje42@gmail.com>
6279 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6280 (gdbscm_out_of_range_error): Ditto.
6281 (gdbscm_memory_error): Ditto.
6282 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6283 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6284 (gdbscm_out_of_range_error): Update.
6285 (gdbscm_memory_error): Update.
6286 (gdbscm_scm_to_target_string_unsafe): Delete.
6288 2014-05-21 Pedro Alves <palves@redhat.com>
6290 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6292 (inf_child_open_target): New function.
6293 (inf_child_open): Use inf_child_open_target to push the target
6294 instead of erroring out.
6295 (inf_child_disconnect, inf_child_close)
6296 (inf_child_maybe_unpush_target): New functions.
6297 (inf_child_target): Install inf_child_disconnect and
6298 inf_child_close. Store a pointer to the returned object.
6299 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6301 * target.c (auto_connect_native_target): New global.
6302 (show_default_run_target): New function.
6303 (find_default_run_target): Return NULL if automatically connecting
6304 to the native target is disabled.
6305 (_initialize_target): Install set/show auto-connect-native-target.
6306 * NEWS: Mention "set auto-connect-native-target", and "target
6308 * linux-nat.c (super_close): New global.
6309 (linux_nat_close): Call super_close.
6310 (linux_nat_add_target): Store a pointer to the base class's
6312 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6313 inf_child_maybe_unpush.
6314 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6316 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6317 the inferior. Use inf_child_maybe_unpush_target.
6318 (inf_ttrace_attach): Don't push the target if it is already
6320 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6321 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6322 after mourning the inferior. Use inf_child_maybe_unpush_target.
6323 (darwin_attach_pid): Don't push the target if it is already
6325 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6326 mourning the inferior. Use inf_child_maybe_unpush_target.
6327 (gnu_detach): Use inf_child_maybe_unpush_target.
6328 * go32-nat.c (go32_create_inferior): Don't push the target if it
6330 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6331 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6332 (procfs_open): Rename to ...
6333 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6334 comments. Can target_preopen before changing node. Call
6335 inf_child_open_target to push the target explicitly.
6336 (procfs_attach): Don't push the target if it is already pushed.
6337 (procfs_detach): Use inf_child_maybe_unpush_target.
6338 (procfs_create_inferior): Don't push the target if it is already
6340 (nto_native_ops): New global.
6341 (procfs_open): Reimplement.
6342 (procfs_native_open): New function.
6343 (init_procfs_targets): Install procfs_native_open as to_open of
6344 "target native". Store a pointer to the "native" target in
6346 * procfs.c (procfs_attach): Don't push the target if it is already
6348 (procfs_detach): Use inf_child_maybe_unpush_target.
6349 (procfs_mourn_inferior): Only unpush the target after mourning the
6350 inferior. Use inf_child_maybe_unpush_target.
6351 (procfs_init_inferior): Don't push the target if it is already
6353 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6354 if it is already pushed.
6356 2014-05-21 Pedro Alves <palves@redhat.com>
6358 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6359 and "procfs" targets are now called "native" instead.
6361 2014-05-21 Pedro Alves <palves@redhat.com>
6363 * go32-nat.c (go32_open): Delete.
6364 (go32_target): Don't override the to_open method.
6366 2014-05-21 Pedro Alves <palves@redhat.com>
6368 * nto-procfs.c (procfs_can_run): New function.
6369 (nto_procfs_ops): New global.
6370 (init_procfs_targets): New, based on procfs_target. Install
6371 "target native" in addition to "target procfs".
6372 (_initialize_procfs): Call init_procfs_targets instead of adding
6375 2014-05-21 Pedro Alves <palves@redhat.com>
6377 * windows-nat.c (windows_target): Don't override to_shortname,
6378 to_longname or to_doc.
6380 2014-05-21 Pedro Alves <palves@redhat.com>
6382 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6385 2014-05-21 Pedro Alves <palves@redhat.com>
6387 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6388 to_shortname, to_longname or to_doc.
6390 2014-05-21 Pedro Alves <palves@redhat.com>
6392 * go32-nat.c (go32_target): Don't override to_shortname,
6393 to_longname or to_doc.
6395 2014-05-21 Pedro Alves <palves@redhat.com>
6397 * inf-child.c (inf_child_open): Remove mention of "child".
6398 (inf_child_target): Rename target to "native" instead of "child".
6400 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6402 * Makefile.in (SFILES): Delete "regset.c".
6403 (COMMON_OBS): Delete "regset.o".
6405 * regset.h (regset_alloc): Delete prototype.
6407 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6409 * sparc-linux-tdep.c (sparc32_linux_gregset)
6410 (sparc32_linux_fpregset): New static regset structures.
6411 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6412 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6414 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6415 (sparc64_linux_fpregset): New static regset structures.
6416 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6417 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6418 New static regset structures.
6419 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6420 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6421 New static regset structures.
6422 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6423 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6424 New static regset structures.
6425 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6426 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6427 New static regset structures.
6428 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6430 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6432 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6433 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6434 register maps ("regmaps") from "*regset" to "*regmap". Do this
6435 for all regmap types and variables.
6436 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6437 (sparc32_linux_supply_core_gregset)
6438 (sparc32_linux_collect_core_gregset)
6439 (sparc32_linux_supply_core_fpregset)
6440 (sparc32_linux_collect_core_fpregset): Likewise.
6441 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6442 (sparc_gregmap, sparc_fpregmap): ... these.
6443 (sparc_supply_gregset, sparc_collect_gregset)
6444 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6445 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6446 (_initialize_sparc_nat): Rename regmaps.
6447 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6448 (sparc_gregmap, sparc_fpregmap): ... these.
6449 (sparc_supply_gregset, sparc_collect_gregset)
6450 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6451 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6453 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6454 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6456 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6458 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6459 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6460 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6462 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6463 (sparc32_bsd_fpregset): Rename to...
6464 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6465 (sparc32_bsd_fpregmap): ... these.
6466 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6467 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6468 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6469 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6470 (struct sparc_gregmap, struct sparc_fpregmap)
6471 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6472 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6473 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6474 (sparc32_supply_regset, sparc32_collect_gregset)
6475 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6477 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6478 (sparc64_linux_ptrace_gregmap): ... this.
6479 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6480 (_initialize_sparc64_linux_nat): Rename regmaps.
6481 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6482 (sparc64_linux_core_gregmap): ... this.
6483 (sparc64_linux_supply_core_gregset)
6484 (sparc64_linux_collect_core_gregset)
6485 (sparc64_linux_supply_core_fpregset)
6486 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6487 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6488 (sparc64_sol2_fpregset): Rename to...
6489 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6490 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6491 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6493 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6494 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6495 (sparc64_bsd_fpregset): Rename to...
6496 (struct sparc_gregmap, sparc64_sol2_gregmap)
6497 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6498 (sparc64_bsd_fpregmap): ... these.
6499 (sparc64_supply_gregset, sparc64_collect_gregset)
6500 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6502 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6503 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6504 (sparc64fbsd_gregmap): ... this.
6505 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6506 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6508 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6509 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6510 (sparc64nbsd_collect_fpregset): Likewise.
6511 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6512 (sparc64nbsd_gregmap): ... this.
6513 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6515 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6516 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6517 (sparc64obsd_gregmap): ... this.
6518 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6520 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6521 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6522 (sparc32nbsd_gregmap): ... this.
6523 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6526 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6528 * score-tdep.c (score7_linux_gregset): New static regset
6530 (score7_linux_regset_from_core_section): Remove dynamic regset
6532 (score_gdbarch_init): Drop allocation of tdep structure.
6533 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6535 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6537 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6539 (am33_regset_from_core_section): Remove dynamic regset
6542 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6544 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6545 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6547 (mips_linux_regset_from_core_section): Remove dynamic regset
6549 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6550 'gregset64', 'fpregset', and 'fpregset64'.
6551 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6552 deleted tdep fields.
6554 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6556 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6558 (amd64_regset_from_core_section): Remove dynamic regset
6560 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6562 (amd64obsd_regset_from_core_section): Remove dynamic regset
6564 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6566 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6567 x86-common regset supply function.
6568 * i386-tdep.c (i386_collect_gregset): Make static.
6569 (i386_gregset): New global regset structure.
6570 (i386_fpregset, i386_xstateregset): New static regset structures.
6571 (i386_regset_from_core_section): Remove dynamic regset
6573 (i386_gdbarch_init): Remove initialization of tdep fields
6574 'gregset', 'fpregset', and 'xstateregset'.
6575 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6576 'fpregset', and 'xstateregset'.
6577 (i386_collect_gregset): Remove prototype.
6578 (i386_gregset): New declaration.
6579 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6581 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6586 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6587 (arm_linux_vfpregset): New static regset structures.
6588 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6590 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6591 and 'vfpregset' fields.
6593 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6595 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6596 (aarch64_linux_fpregset): New static regset structures.
6597 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6598 of regset structures.
6599 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6602 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6604 * regset.h (struct regset): Remove gdbarch field.
6605 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6606 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6607 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6609 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6610 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6611 (ppc32_linux_vsxregset): Likewise.
6612 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6613 via the regcache instead of the regset.
6614 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6615 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6616 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6617 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6620 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6622 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6623 Constify structures.
6624 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6625 (alphanbsd_aout_gregset): Likewise.
6626 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6627 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6629 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6630 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6632 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6633 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6634 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6635 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6636 * m88k-tdep.c (m88k_gregset): Likewise.
6637 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6638 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6639 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6640 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6641 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6642 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6643 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6644 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6645 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6647 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6648 * sh-tdep.h (sh_corefile_gregset): Likewise.
6649 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6650 * vax-tdep.c (vax_gregset): Likewise.
6652 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6654 Fix TLS access for -static -pthread.
6655 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6656 (try_thread_db_load_1): Initialize it.
6657 (thread_db_get_thread_local_address): Call it if LM is zero.
6658 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6659 * target.h (struct target_ops) (to_get_thread_local_address): Add
6660 load_module_addr comment.
6662 2014-05-21 Pedro Alves <palves@redhat.com>
6664 * dcache.c (dcache_read_memory_partial): If reading the cache line
6665 fails, fallback to reading just the memory the caller wanted.
6667 2014-05-20 Doug Evans <dje@google.com>
6669 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6670 instead of get_current_arch.
6672 2014-05-20 Pedro Alves <palves@redhat.com>
6674 * NEWS: Mention that compare-sections now works with all targets.
6676 * remote.c (PACKET_qCRC): New enum value.
6677 (remote_verify_memory): Don't send qCRC if the target has no
6678 execution. Use packet_support/packet_ok. If the target doesn't
6679 support the qCRC packet, fallback to a deep memory copy.
6680 (compare_sections_command): Say "target image" instead of "remote
6682 (_initialize_remote): Add PACKET_qCRC to the list of config
6683 packets that have no associated command. Extend comment.
6684 * target.c (simple_verify_memory, default_verify_memory): New
6686 * target.h (struct target_ops) <to_verify_memory>: Default to
6687 default_verify_memory.
6688 (simple_verify_memory): New declaration.
6689 * target-delegates.c: Regenerate.
6691 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6693 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6695 2014-05-20 Hui Zhu <hui@codesourcery.com>
6696 Yao Qi <yao@codesourcery.com>
6699 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6700 and change address of sp and pc.
6702 2014-05-19 Tom Tromey <tromey@redhat.com>
6704 * gdbtypes.c (rank_function): Use XNEWVEC.
6705 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6707 2014-05-19 Doug Evans <dje@google.com>
6709 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6710 build_type_unit_groups and moved closer to only caller. Remove
6711 arguments. All references updated. Remove outdated .gdb_index
6713 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6714 build_type_psymtabs_1.
6716 2014-05-19 Doug Evans <dje@google.com>
6718 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6719 n_type_unit_groups, all_type_unit_groups. All uses removed.
6720 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6721 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6722 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6723 (add_type_unit_group_to_table): Delete.
6725 2014-05-19 Doug Evans <dje@google.com>
6727 * eval.c (evaluate_subexp_standard): Add some comments.
6729 2014-05-17 Doug Evans <xdje42@gmail.com>
6731 * progspace.c (remove_program_space): Delete, unused.
6732 * progspace.h (remove_program_space): Ditto.
6734 2014-05-17 Doug Evans <xdje42@gmail.com>
6736 * inferior.c (prune_inferiors): Fix comment.
6737 (remove_inferior_command): Call prune_program_spaces.
6739 2014-05-16 Doug Evans <dje@google.com>
6741 New command line option -D.
6743 * main.c (set_gdb_data_directory): New function.
6744 (captured_main): Recognize -D. Flag error for --data-directory "".
6745 Call set_gdb_data_directory.
6746 (print_gdb_help): Print --data-directory, -D.
6747 * main.h (set_gdb_data_directory): Declare.
6748 * top.c (staged_gdb_datadir): New static global.
6749 (set_gdb_datadir): Call set_gdb_data_directory
6750 (show_gdb_datadir): New function.
6751 (init_main): Update init of data-directory parameter.
6753 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6755 Import the "dirfd" gnulib module.
6756 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6757 * gnulib/aclocal.m4: Update.
6758 * gnulib/config.in: Update.
6759 * gnulib/configure: Update.
6760 * gnulib/import/Makefile.am: Update.
6761 * gnulib/import/Makefile.in: Update.
6762 * gnulib/import/dirfd.c: New.
6763 * gnulib/import/m4/dirfd.m4: New.
6764 * gnulib/import/m4/gnulib-cache.m4: Update.
6765 * gnulib/import/m4/gnulib-comp.m4: Update.
6767 2014-05-16 Pierre Muller <muller@sourceware.org>
6768 Yao Qi <yao@codesourcery.com>
6770 * valprint.c (print_wchar): Move the code on checking whether
6771 W is a printable wide char to the default branch of switch
6772 statement below. Call wchar_printable instead of gdb_iswprint.
6774 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6776 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6777 ldr.w and ldrd instructions.
6779 2014-05-15 Doug Evans <dje@google.com>
6781 * dwarf2read.c (read_structure_type): Delete outdated comments.
6783 2014-05-14 Tom Tromey <tromey@redhat.com>
6785 * macrocmd.c (print_macro_definition): Reindent.
6787 2014-05-13 Doug Evans <xdje42@gmail.com>
6789 * python/py-cmd.c (cmdpy_completer): Add comment.
6790 (completers): Make const.
6792 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6794 * infrun.c (resume): Remove should_resume (unused). Move up
6795 declaration of resume_ptid.
6797 2014-05-13 Tom Tromey <tromey@redhat.com>
6799 * language.h (unop_type_check): Remove.
6800 (binop_type_check): Don't declare.
6802 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6804 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6805 call to regcache_raw_collect.
6807 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6809 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6810 mi_console->quote as the quoting character.
6812 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6814 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6816 2014-04-29 Tom Tromey <tromey@redhat.com>
6818 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6819 "show debug varobj".
6821 2014-05-07 Kyle McMartin <kyle@redhat.com>
6823 Pushed by Joel Brobecker <brobecker@adacore.com>.
6824 * aarch64-tdep.c (aarch64_software_single_step): New function.
6825 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6826 with aarch64_software_single_step.
6828 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6832 2014-05-05 Keith Seitz <keiths@redhat.com>
6834 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6835 variable or history value is successfully parsed.
6837 2014-05-05 Yao Qi <yao@codesourcery.com>
6838 Pedro Alves <palves@redhat.com>
6840 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6841 address of blocks that intersects the requested range. Trim
6842 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6844 * ctf.c (ctf_xfer_partial): Likewise.
6846 2014-05-05 Yao Qi <yao@codesourcery.com>
6848 * printcmd.c (display_command): Remove the check to
6849 target_has_execution.
6851 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6853 * ppcobsd-nat.c: Include "obsd-nat.h".
6854 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6856 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6858 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6860 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6861 and 16-bit signed and unsigned arguments. Update comment.
6862 (stap_parse_probe_arguments): Extend code to handle such
6863 arguments. Use warning instead of complaint to notify about
6864 unrecognized bitness.
6866 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6868 PR breakpoints/16889
6869 * stap-probe.c (stap_parse_probe_arguments): Simplify
6870 check for non-prefixed probes (i.e., probes whose
6871 arguments do not start with "N@"). Always set the
6872 argument type to a sane value.
6874 2014-05-01 David Taylor <dtaylor@emc.com>
6876 * remote.c (compare_sections_command): Add -r option to compare
6877 all loadable read-only sections.
6879 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6881 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6882 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6884 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6885 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6886 Remove unused CORE_ADDR argument. Update all callers.
6888 2014-04-29 Pedro Alves <palves@redhat.com>
6890 * remote.c (struct packet_config) <detect>: Extend comment.
6891 (add_packet_config_cmd): Don't set the config's detect or support
6893 (init_all_packet_configs): Also initialize the config's 'detect'
6895 (reset_all_packet_configs_support): New function.
6896 (remote_open_1): Call reset_all_packet_configs_support instead of
6897 init_all_packet_configs.
6898 (_initialize_remote): Initialize all packet configs. Assert that
6899 all packets have an associated command, except a few known
6902 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6904 * dwarf2read.c (read_subrange_type): Handle dynamic
6905 DW_AT_lower_bound attributes.
6907 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6909 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6910 dynamic bounds before computing its upper bound.
6911 (ada_discrete_type_low_bound): Same as above with the lower bound.
6913 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6915 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6916 range types. Adjust the array handling implementation to
6917 take advantage of this change.
6918 (resolve_dynamic_range): New function, mostly extracted from
6919 resolve_dynamic_bounds.
6920 (resolve_dynamic_array): New function, mostly extracted from
6921 resolve_dynamic_bounds.
6922 (resolve_dynamic_bounds): Delete.
6923 (resolve_dynamic_type): Reimplement. Add handling of
6924 TYPE_CODE_RANGE types.
6926 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6928 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6929 handling of parallel ___XA types.
6931 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6933 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6934 unnecessary second call to static_unwrap_type.
6936 2014-04-27 Hui Zhu <hui@codesourcery.com>
6938 * stack.c (print_frame_info): Call do_gdb_disassembly with
6939 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6941 2014-04-26 Doug Evans <xdje42@gmail.com>
6943 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6945 2014-04-25 Pedro Alves <palves@redhat.com>
6948 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6949 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6950 and newline from built string.
6951 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6952 (linux_ptrace_attach_fail_reason): ... this.
6953 * linux-nat.c (linux_nat_attach): Adjust to use
6954 linux_ptrace_attach_fail_reason.
6956 2014-04-25 Pedro Alves <palves@redhat.com>
6958 * remote.c (struct remote_state): Remove multi_process_aware,
6959 non_stop_aware, cond_tracepoints, cond_breakpoints,
6960 breakpoint_commands, fast_tracepoints, static_tracepoints,
6961 install_in_trace, disconnected_tracing,
6962 enable_disable_tracepoints, string_tracing, and
6963 augmented_libraries_svr4_read fields.
6964 (remote_multi_process_p): Move further below in the file.
6965 (struct packet_config): Add comments.
6966 (update_packet_config): Delete function.
6967 (show_packet_config_cmd): Use packet_config_support.
6968 (add_packet_config_cmd): Use NULL as set callback.
6969 (packet_ok): "set remote foo-packet"-style commands no longer
6970 change config->supported -- adjust.
6971 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6972 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6973 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6974 (PACKET_QNonStop, PACKET_multiprocess_feature)
6975 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6976 (PACKET_DisconnectedTracing_feature)
6977 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6978 (set_remote_protocol_packet_cmd): Delete function.
6979 (packet_config_support, packet_support): New functions.
6980 (set_remote_protocol_Z_packet_cmd): Don't call
6981 update_packet_config.
6982 (remote_query_attached, remote_pass_signals)
6983 (remote_program_signals, remote_threads_info)
6984 (remote_threads_extra_info, remote_start_remote): Use
6986 (remote_start_remote): Use packet_config_support and
6988 (init_all_packet_configs): Set all packets to unknown support,
6989 instead of calling update_packet_config.
6990 (remote_check_symbols): Use packet_support.
6991 (remote_supported_packet): Unconditionally set the packet config's
6993 (remote_multi_process_feature, remote_non_stop_feature)
6994 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6995 (remote_breakpoint_commands_feature)
6996 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6997 (remote_install_in_trace_feature)
6998 (remote_disconnected_tracing_feature)
6999 (remote_enable_disable_tracepoint_feature)
7000 (remote_string_tracing_feature)
7001 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7002 (remote_protocol_features): Adjust to use remote_supported_packet
7003 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7004 "ConditionalTracepoints", "ConditionalBreakpoints",
7005 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7006 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7007 "EnableDisableTracepoints", and "tracenz".
7008 (remote_query_supported): Use packet_support.
7009 (remote_open_1): Adjust.
7010 (extended_remote_attach_1): Use packet_support. Switch on the
7011 result of packet_ok instead of checking whether the packet ended
7013 (remote_vcont_resume): Use packet_support.
7014 (remote_resume, remote_stop_ns, fetch_register_using_p)
7015 (remote_prepare_to_store, store_register_using_P)
7016 (check_binary_download, remote_write_bytes): Use packet_support.
7017 (remote_vkill): Use packet_support. Switch on the result of
7018 packet_ok instead of checking whether the packet ended up
7020 (extended_remote_supports_disable_randomization): Use
7022 (extended_remote_run): Switch on the result of packet_ok instead
7023 of checking whether the packet ended up disabled.
7024 (remote_insert_breakpoint, remote_remove_breakpoint)
7025 (remote_insert_watchpoint, remote_remove_watchpoint)
7026 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7028 (remote_search_memory): Use packet_config_support.
7029 (remote_get_thread_local_address, remote_get_tib_address)
7030 (remote_hostio_send_command, remote_can_execute_reverse): Use
7032 (remote_supports_cond_tracepoints)
7033 (remote_supports_cond_breakpoints)
7034 (remote_supports_fast_tracepoints)
7035 (remote_supports_static_tracepoints)
7036 (remote_supports_install_in_trace)
7037 (remote_supports_enable_disable_tracepoint)
7038 (remote_supports_string_tracing)
7039 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7040 the packet config says the feature is enabled or disabled.
7041 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7042 (remote_get_trace_status): Use packet_support.
7043 (remote_set_disconnected_tracing): Adjust to check whether the
7044 feature is enabled with packet_support.
7045 (remote_set_trace_buffer_size, remote_use_agent)
7046 (remote_can_use_agent, remote_supports_btrace): Use
7048 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7049 Use packet_config_support.
7050 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7051 the packet config says the feature is enabled or disabled.
7052 (set_range_stepping): Use packet_support.
7054 2014-04-25 Tom Tromey <tromey@redhat.com>
7056 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7059 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7061 * NEWS: Mention support for C99 variable length arrays.
7063 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7065 * ada-lang.c (standard_exc): Expand introductory comment.
7067 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7068 Walfred Tedeschi <walfred.tedeschi@intel.com>
7070 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7072 (amd64_linux_read_description): Add code to handle AVX512 xstate
7073 mask and return respective tdesc.
7074 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7075 and features/i386/x32-avx512-linux.c.
7076 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7077 (amd64_linux_core_read_description): Add code to handle AVX512
7078 xstate mask and return respective tdesc.
7079 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7080 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7082 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7083 (tdesc_amd64_avx512_linux): New prototype.
7084 (tdesc_x32_avx512_linux): Likewise.
7085 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7086 features/i386/x32-avx512.c.
7087 (amd64_ymm_avx512_names): New register names for pseudo
7089 (amd64_ymmh_avx512_names): New register names for raw registers
7091 (amd64_k_names): New register names for K registers.
7092 (amd64_zmmh_names): New register names for ZMM raw registers.
7093 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7094 (amd64_xmm_avx512_names): New register names for XMM16-31
7096 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7098 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7099 if feature is present.
7100 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7101 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7102 (AMD64_NUM_REGS): Adjust to new number of registers.
7103 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7104 registers supplied via XSTATE by AVX512 registers.
7105 (i386_linux_read_description): Add case for AVX512.
7106 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7107 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7108 (i386_linux_core_read_description): Add case for AVX512.
7109 (i386_linux_init_abi): Install supported register note section
7111 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7113 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7114 registers to be number of zmm7h + 1.
7115 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7116 * i386-tdep.c: Include features/i386/i386-avx512.c.
7117 (i386_zmm_names): Add ZMM pseudo register names array.
7118 (i386_zmmh_names): Add ZMM raw register names array.
7119 (i386_k_names): Add K raw register names array.
7120 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7121 registers. AVX512 has 16 more ZMM registers than there are YMM
7123 (i386_zmmh_regnum_p): Add function to look up register number of
7125 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7126 (i386_k_regnum_p): Likewise for K raw registers.
7127 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7128 registers added by AVX512.
7129 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7130 registers added by AVX512.
7131 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7133 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7134 (i386_pseudo_register_name): Add ZMM pseudo registers.
7135 (i386_zmm_type): Construct and return vector registers type for ZMM
7137 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7138 ZMM0-31 pseudo registers and K registers.
7139 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7140 and YMM16-31 registers from register cache.
7141 (i386_pseudo_register_write): Add code to write K, ZMM and
7143 (i386_register_reggroup_p): Add code to include/exclude AVX512
7144 registers in/from respective register groups.
7145 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7146 registers if feature is present in xcr0.
7147 (i386_gdbarch_init): Add code to initialize AVX512 feature
7148 variables in tdep structure, wire in pseudo registers and call
7149 initialize_tdesc_i386_avx512.
7150 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7152 (i386_regnum): Add AVX512 registers.
7153 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7154 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7155 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7156 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7158 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7159 (i386_ymm_avx512_regnum_p): Likewise.
7160 (i386_k_regnum_p): Likewise.
7161 (i386_zmm_regnum_p): Likewise.
7162 (i386_zmmh_regnum_p): Likewise.
7163 * i387-tdep.c : Update year in copyright notice.
7164 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7166 (XSAVE_YMM_AVX512_ADDR): New macro.
7167 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7169 (XSAVE_XMM_AVX512_ADDR): New macro.
7170 (xsave_avx512_k_offset): New table for K register offsets in
7172 (XSAVE_AVX512_K_ADDR): New macro.
7173 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7175 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7176 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7178 (i387_collect_xsave): Add code to collect AVX512 registers from
7180 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7181 of XMM16-31 registers.
7182 (I387_NUM_K_REGS): New define for number of K registers.
7183 (I387_K0_REGNUM): New define for K0 register number.
7184 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7185 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7186 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7188 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7189 (I387_XMM16_REGNUM): New define for XMM16 register number.
7190 (I387_YMM0_REGNUM): New define for YMM0 register number.
7191 (I387_KEND_REGNUM): New define for last K register number.
7192 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7193 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7195 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7197 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7199 * features/Makefile: Add AVX512 related files.
7200 * features/i386/32bit-avx512.xml: New file.
7201 * features/i386/64bit-avx512.xml: Likewise.
7202 * features/i386/amd64-avx512-linux.c: Likewise.
7203 * features/i386/amd64-avx512-linux.xml: Likewise.
7204 * features/i386/amd64-avx512.c: Likewise.
7205 * features/i386/amd64-avx512.xml: Likewise.
7206 * features/i386/i386-avx512-linux.c: Likewise.
7207 * features/i386/i386-avx512-linux.xml: Likewise.
7208 * features/i386/i386-avx512.c: Likewise.
7209 * features/i386/i386-avx512.xml: Likewise.
7210 * features/i386/x32-avx512-linux.c: Likewise.
7211 * features/i386/x32-avx512-linux.xml: Likewise.
7212 * features/i386/x32-avx512.c: Likewise.
7213 * features/i386/x32-avx512.xml: Likewise.
7214 * regformats/i386/amd64-avx512-linux.dat: New file.
7215 * regformats/i386/amd64-avx512.dat: Likewise.
7216 * regformats/i386/i386-avx512-linux.dat: Likewise.
7217 * regformats/i386/i386-avx512.dat: Likewise.
7218 * regformats/i386/x32-avx512-linux.dat: Likewise.
7219 * regformats/i386/x32-avx512.dat: Likewise.
7220 * NEWS: Add note about new support for AVX512.
7223 2014-04-23 Pedro Alves <palves@redhat.com>
7225 * breakpoint.c (insert_bp_location): Tolerate errors if the
7226 breakpoint is set in a user-loaded objfile.
7227 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7228 location is marked shlib_disabled. If the breakpoint is set in a
7229 user-loaded objfile is a GDB-side memory breakpoint, validate it
7230 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7231 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7233 * mem-break.c (memory_validate_breakpoint): New function.
7234 * objfiles.c (userloaded_objfile_contains_address_p): New
7236 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7237 * target.h (memory_validate_breakpoint): New declaration.
7239 2014-04-23 Pedro Alves <palves@redhat.com>
7241 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7242 the breakpoint is set in a shared library, only suppress
7243 errors for software breakpoints, not hardware breakpoints.
7245 2014-04-22 Pedro Alves <palves@redhat.com>
7247 * infrun.c (schedlock_applies): New function, factored out from
7248 find_thread_needs_step_over.
7249 (find_thread_needs_step_over): Use it.
7250 (switch_back_to_stepped_thread): Always clear trap_expected if the
7251 step over is finished. Return early if scheduler locking applies.
7252 Look for the stepping thread and a potential step-over thread with
7254 (currently_stepping_or_nexting_callback): Delete.
7256 2014-04-22 Nick Clifton <nickc@redhat.com>
7258 * NEWS: Mention that ARM sim now supports tracing.
7260 2014-04-22 Yao Qi <yao@codesourcery.com>
7262 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7264 * tracefile.c (tracefile_fetch_registers): ... it. New
7266 * tracefile.h (tracefile_fetch_registers): Declare.
7267 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7268 tracefile_fetch_registers.
7270 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7273 * windows-nat.c (thread_rec): Don't display a warning when
7274 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7275 fails for any reason, set th->suspended to -1, so that we don't
7276 try to resume such a thread. Also, don't return NULL in these
7277 cases, to avoid completely ruin the session due to "PC register is
7278 not available" error.
7279 (do_windows_fetch_inferior_registers): Check errors in
7280 GetThreadContext call.
7281 (windows_continue): Accept an additional argument KILLED; if not
7282 zero, ignore errors in the SetThreadContext call, since the
7283 inferior was killed and is shutting down.
7284 (windows_resume, get_windows_debug_event)
7285 (windows_create_inferior, windows_mourn_inferior)
7286 (windows_kill_inferior): All callers of windows_continue changed
7287 to adjust to its new calling sequence.
7289 2014-04-19 Yao Qi <yao@codesourcery.com>
7291 * ctf.c (ctf_open): Call post_create_inferior.
7293 2014-04-19 Yao Qi <yao@codesourcery.com>
7295 * ctf.c (handle_id): New static variable.
7296 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7297 value. Get the declaration of event "register" and get length
7298 of field "contents".
7300 2014-04-19 Yao Qi <yao@codesourcery.com>
7302 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7304 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7306 * valops.c (oload_method_static): Remove unnecessary argument
7307 METHOD. Update all callers.
7309 2014-04-18 Pedro alves <palves@redhat.com>
7310 Tom Tromey <tromey@redhat.com>
7313 * frame.c (get_prev_frame_1): Rename to ...
7314 (get_prev_frame_always): ... this, and make extern. Adjust.
7315 (skip_artificial_frames): Use get_prev_frame_always.
7316 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7317 (get_frame_unwind_stop_reason): Adjust to rename.
7318 * frame.h (get_prev_frame_always): Declare.
7319 * inline-frame.c: Include frame.h.
7320 (inline_frame_this_id): Use get_prev_frame_always.
7322 2014-04-18 Tristan Gingold <gingold@adacore.com>
7324 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7325 code by using bfd_mach_o_get_base_address.
7327 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7329 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7330 (spu_ax_pseudo_register_collect): New function.
7331 (spu_ax_pseudo_register_push_stack): Likewise.
7332 (spu_dwarf_reg_to_regnum): Likewise.
7333 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7335 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7337 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7338 Replace FRAME argument with FRAME_ID.
7339 * gdbarch.c, gdbarch.h: Regenerate.
7340 * findvar.c (default_value_from_register): Add GDBARCH argument;
7341 replace FRAME by FRAME_ID. No longer call get_frame_id.
7342 (value_from_register): Update call to gdbarch_value_from_register.
7343 * value.h (default_value_from_register): Update prototype.
7344 * s390-linux-tdep.c (s390_value_from_register): Update interface
7345 and call to default_value_from_register.
7346 * spu-tdep.c (spu_value_from_register): Likewise.
7348 * findvar.c (address_from_register): Remove TYPE argument.
7349 Do not call value_from_register; use gdbarch_value_from_register
7350 with null_frame_id instead.
7351 * value.h (address_from_register): Update prototype.
7352 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7353 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7354 address_from_register interface change.
7356 2014-04-17 Yao Qi <yao@codesourcery.com>
7358 * gdbtypes.h: Update comments to link to types and macros'
7361 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7363 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7365 2014-04-16 Keith Seitz <keiths@redhat.com>
7368 * dwarf2read.c (skip_one_die): Check that all relative-offset
7369 sibling DIEs fall within range of the current reader's buffer.
7370 (read_partial_die): Likewise.
7372 2014-04-16 Keith Seitz <keiths@redhat.com>
7375 * cp-namespace.c (lookup_symbol_file): If the type name of
7376 `this' is NULL, return immediately.
7378 2014-04-14 Keith Seitz <keiths@redhat.com>
7381 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7382 from symbol_matches_domain in symtab.c. All local callers
7383 of symbol_matches_domain updated.
7384 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7385 search STRUCT_DOMAIN.
7386 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7387 independently. standard_lookup will do that automatically.
7388 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7389 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7390 (cp_lookup_symbol_in_namespace): Likewise.
7391 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7392 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7393 may return a STRUCT_DOMAIN match.
7394 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7395 * cp-support.c: Include language.h.
7396 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7398 * psymtab.c (match_partial_symbol): Compare the requested
7399 domain with the symbol's domain directly.
7400 (lookup_partial_symbol): Likewise.
7401 * symtab.c (lookup_symbol_in_language): Explain when/why
7402 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7403 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7404 appropriate languages.
7405 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7406 and moved to ada-lang.c
7407 (lookup_block_symbol): Explain that this function only returns
7408 symbol matching the requested DOMAIN.
7409 Compare the requested domain with the symbol's domain directly.
7410 (iterate_over_symbols): Compare the requested domain with the
7411 symbol's domain directly.
7412 * symtab.h (symbol_matches_domain): Remove.
7414 2014-04-14 Tom Tromey <tromey@redhat.com>
7417 * c-exp.y (type_aggregate_p): New function.
7418 (qualified_name, classify_inner_name): Use it.
7419 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7420 and TYPE_TARGET_TYPE of an enum type.
7421 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7423 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7424 handle TYPE_DECLARED_CLASS.
7425 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7427 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7428 * valops.c (enum_constant_from_type): New function.
7429 (value_aggregate_elt): Use it.
7430 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7433 2014-04-14 Tom Tromey <tromey@redhat.com>
7435 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7436 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7438 * value.h (value_aggregate_elt): Update.
7440 2014-04-14 Tom Tromey <tromey@redhat.com>
7442 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7444 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7446 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7447 (evaluate_subexp_standard): Pass noside argument.
7448 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7449 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7450 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7451 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7452 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7454 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7456 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7457 points to a constant blob.
7459 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7461 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7462 property and store it as the high bound and flag the range accordingly.
7463 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7464 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7465 * gdbtypes.h (enum range_flags): New enum.
7466 (struct range_bounds): Add flags member.
7468 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7470 * c-typeprint.c (c_type_print_varspec_suffix): Added
7471 check for not yet resolved high bound. If unresolved, print
7472 "variable length" string to the console instead of random
7475 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7477 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7479 (ada_template_to_fixed_record_type_1): Likewise.
7480 (ada_to_fixed_type_1): Likewise.
7481 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7482 (cp_print_value): Likewise.
7483 * d-valprint.c (dynamic_array_type): Likewise.
7484 * findvar.c (address_of_variable): Likewise.
7485 * jv-valprint.c (java_value_print): Likewise.
7486 * valops.c (value_ind): Likewise.
7487 * value.c (coerce_ref): Likewise.
7489 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7491 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7492 value and retrieve the dynamic type size.
7494 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7496 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7497 passed to sizeof is dynamic evaluate the argument to compute the length.
7499 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7500 Joel Brobecker <brobecker@adacore.com>
7502 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7503 (dwarf2_evaluate_property): New function.
7504 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7505 * dwarf2read.c (attr_to_dynamic_prop): New function.
7506 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7508 * gdbtypes.c: Include dwarf2loc.h.
7509 (is_dynamic_type): New function.
7510 (resolve_dynamic_type): New function.
7511 (resolve_dynamic_bounds): New function.
7512 (get_type_length): New function.
7513 (check_typedef): Use get_type_length to compute type length.
7514 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7515 (TYPE_LOW_BOUND_KIND): New macro.
7516 (is_dynamic_type): New function prototype.
7517 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7518 to resolve dynamic properties of the type. Update comment.
7519 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7521 2014-04-14 Richard Henderson <rth@redhat.com>
7523 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7525 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7526 Doug Evans <xdje42@gmail.com>
7528 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7529 dereference TYPE_CODE_REF values.
7531 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7533 Revert the following changes due to regressions:
7535 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7536 (dwarf2_evaluate_property): New function.
7537 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7538 * dwarf2read.c (attr_to_dynamic_prop): New function.
7539 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7541 * gdbtypes.c: Include dwarf2loc.h.
7542 (is_dynamic_type): New function.
7543 (resolve_dynamic_type): New function.
7544 (resolve_dynamic_bounds): New function.
7545 (get_type_length): New function.
7546 (check_typedef): Use get_type_length to compute type length.
7547 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7548 (TYPE_LOW_BOUND_KIND): New macro.
7549 (is_dynamic_type): New function prototype.
7550 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7551 to resolve dynamic properties of the type. Update comment.
7552 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7554 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7555 passed to sizeof is dynamic evaluate the argument to compute the length.
7557 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7558 value and retrieve the dynamic type size.
7560 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7561 (ada_template_to_fixed_record_type_1): Likewise.
7562 (ada_to_fixed_type_1): Likewise.
7563 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7564 (cp_print_value): Likewise.
7565 * d-valprint.c (dynamic_array_type): Likewise.
7566 * eval.c (evaluate_subexp_with_coercion): Likewise.
7567 * findvar.c (address_of_variable): Likewise.
7568 * jv-valprint.c (java_value_print): Likewise.
7569 * valops.c (value_ind): Likewise.
7570 * value.c (coerce_ref): Likewise.
7572 * c-typeprint.c (c_type_print_varspec_suffix): Added
7573 check for not yet resolved high bound. If unresolved, print
7574 "variable length" string to the console instead of random
7577 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7578 property and store it as the high bound and flag the range accordingly.
7579 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7580 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7581 * gdbtypes.h (enum range_flags): New enum.
7582 (struct range_bounds): Add flags member.
7584 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7585 points to a constant blob.
7587 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7588 (evaluate_subexp_standard): Pass noside argument.
7589 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7590 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7591 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7592 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7593 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7595 2014-04-11 Keith Seitz <keiths@redhat.com>
7598 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7599 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7602 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7604 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7605 (evaluate_subexp_standard): Pass noside argument.
7606 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7607 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7608 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7609 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7610 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7612 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7614 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7615 points to a constant blob.
7617 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7619 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7620 property and store it as the high bound and flag the range accordingly.
7621 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7622 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7623 * gdbtypes.h (enum range_flags): New enum.
7624 (struct range_bounds): Add flags member.
7626 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7628 * c-typeprint.c (c_type_print_varspec_suffix): Added
7629 check for not yet resolved high bound. If unresolved, print
7630 "variable length" string to the console instead of random
7633 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7635 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7636 (ada_template_to_fixed_record_type_1): Likewise.
7637 (ada_to_fixed_type_1): Likewise.
7638 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7639 (cp_print_value): Likewise.
7640 * d-valprint.c (dynamic_array_type): Likewise.
7641 * eval.c (evaluate_subexp_with_coercion): Likewise.
7642 * findvar.c (address_of_variable): Likewise.
7643 * jv-valprint.c (java_value_print): Likewise.
7644 * valops.c (value_ind): Likewise.
7645 * value.c (coerce_ref): Likewise.
7647 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7649 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7650 value and retrieve the dynamic type size.
7652 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7654 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7655 passed to sizeof is dynamic evaluate the argument to compute the length.
7657 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7659 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7660 (dwarf2_evaluate_property): New function.
7661 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7662 * dwarf2read.c (attr_to_dynamic_prop): New function.
7663 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7665 * gdbtypes.c: Include dwarf2loc.h.
7666 (is_dynamic_type): New function.
7667 (resolve_dynamic_type): New function.
7668 (resolve_dynamic_bounds): New function.
7669 (get_type_length): New function.
7670 (check_typedef): Use get_type_length to compute type length.
7671 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7672 (TYPE_LOW_BOUND_KIND): New macro.
7673 (is_dynamic_type): New function prototype.
7674 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7675 to resolve dynamic properties of the type. Update comment.
7676 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7678 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7680 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7681 declaring high/low bounds and change uses accordingly. Call
7682 create_range_type instead of create_static_range_type.
7683 * gdbtypes.c (create_range_type): New function.
7684 (create_range_type): Convert bounds into struct bound_prop and pass
7685 them to create_range_type.
7686 * gdbtypes.h (struct bound_prop): New struct.
7687 (create_range_type): New function prototype.
7688 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7689 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7690 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7692 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7694 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7696 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7697 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7698 * ada-lang.c: All uses of create_range_type updated.
7699 * coffread.c: All uses of create_range_type updated.
7700 * dwarf2read.c: All uses of create_range_type updated.
7701 * f-exp.y: All uses of create_range_type updated.
7702 * m2-valprint.c: All uses of create_range_type updated.
7703 * mdebugread.c: All uses of create_range_type updated.
7704 * stabsread.c: All uses of create_range_type updated.
7705 * valops.c: All uses of create_range_type updated.
7706 * valprint.c: All uses of create_range_type updated.
7708 2014-04-10 Pedro Alves <palves@redhat.com>
7710 * breakpoint.c (single_step_breakpoints)
7711 (single_step_gdbarch): Move up in the file.
7712 (one_breakpoint_xfer_memory): New function, factored out from ...
7713 (breakpoint_xfer_memory): ... here. Also process single-step
7716 2014-04-09 Tristan Gingold <gingold@adacore.com>
7718 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7720 (darwin_decode_exception_message): Free port only after use.
7722 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7724 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7725 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7726 when setting the size of call_length.
7728 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7730 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7731 dereference TYPE_CODE_REF values.
7733 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7735 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7736 end of warning message.
7738 2014-04-03 Doug Evans <dje@google.com>
7740 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7741 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7743 2014-04-02 Alan Modra <amodra@gmail.com>
7745 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7746 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7747 (struct symbol_file_add_from_memory_args): Add size field.
7748 (find_vdso_size): New function.
7749 (add_vsyscall_page): Attempt to find vdso size.
7751 2014-04-01 Doug Evans <dje@google.com>
7753 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7755 2014-04-01 Tristan Gingold <gingold@adacore.com>
7757 * darwin-nat.c (darwin_encode_reply): Add prototype.
7758 (darwin_decode_exception_message): Reply to unknown inferiors.
7759 (darwin_decode_message): Handle message by id. Ignore message
7760 to unknown inferior.
7761 (darwin_wait): Discard unknown messages, add debug trace.
7763 2014-03-31 Doug Evans <dje@google.com>
7765 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7768 2014-03-31 Doug Evans <dje@google.com>
7770 New option "set print symbol-loading".
7772 * solib.c (solib_read_symbols): Only print symbol loading messages
7774 (solib_add): If symbol loading is in "brief" mode, notify user
7775 symbols are being loaded.
7776 (reload_shared_libraries_1): Ditto.
7777 * symfile.c (print_symbol_loading_off): New static global.
7778 (print_symbol_loading_brief): New static global.
7779 (print_symbol_loading_full): New static global.
7780 (print_symbol_loading_enums): New static global.
7781 (print_symbol_loading): New static global.
7782 (print_symbol_loading_p): New function.
7783 (symbol_file_add_with_addrs): Only print symbol loading messages
7785 (_initialize_symfile): Register "print symbol-loading" set/show
7787 * symfile.h (print_symbol_loading_p): Declare.
7789 2014-03-30 Doug Evans <xdje42@gmail.com>
7791 * infrun.c (set_last_target_status): New function.
7792 (handle_inferior_event): Call it.
7794 2014-03-30 Doug Evans <xdje42@gmail.com>
7796 * inferior.h (enum stop_kind): Improve comment.
7798 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7800 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7801 a reference, strip the reference layer before calling
7802 the lang_ops value_has_mutated callback.
7804 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7806 Remove some globals from our parser.
7807 * language.c (unk_lang_parser): Add "struct parser_state"
7809 * language.h (struct language_defn) <la_parser>: Likewise.
7810 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7811 (initialize_expout): Add "struct parser_state" argument.
7812 Rewrite function to use the parser state.
7813 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7814 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7815 write_exp_elt_longcst, write_exp_elt_dblcst,
7816 write_exp_elt_decfloatcst, write_exp_elt_type,
7817 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7818 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7819 write_dollar_variable): Likewise.
7820 (parse_exp_in_context_1): Use parser state.
7821 (insert_type_address_space): Add "struct parser_state" argument.
7823 (increase_expout_size): New function.
7824 * parser-defs.h: Forward declare "struct language_defn" and
7825 "struct parser_state".
7826 (expout, expout_size, expout_ptr): Remove extern declarations.
7827 (parse_gdbarch, parse_language): Rewrite macro declarations to
7828 accept the parser state.
7829 (struct parser_state): New struct.
7830 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7831 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7832 write_exp_elt_decfloatcst, write_exp_elt_type,
7833 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7834 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7835 write_exp_msymbol, write_dollar_variable,
7836 mark_struct_expression, insert_type_address_space): Add "struct
7837 parser_state" argument.
7838 (increase_expout_size): New function.
7839 * utils.c (do_clear_parser_state): New function.
7840 (make_cleanup_clear_parser_state): Likewise.
7841 * utils.h (make_cleanup_clear_parser_state): New function
7843 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7844 Update calls to write_exp* in order to pass the parser state.
7845 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7846 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7847 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7848 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7849 * stap-probe.c (stap_parse_register_operand): Likewise.
7850 (stap_parse_single_operand): Likewise.
7851 (stap_parse_argument_1): Likewise.
7852 (stap_parse_argument): Use parser state.
7853 * stap-probe.h: Include "parser-defs.h".
7854 (struct stap_parse_info) <pstate>: New field.
7855 * c-exp.y (parse_type): Rewrite to use parser state.
7856 (yyparse): Redefine to c_parse_internal.
7857 (pstate): New global variable.
7858 (parse_number): Add "struct parser_state" argument.
7859 (write_destructor_name): Likewise.
7860 (type_exp): Update calls to write_exp* and similars in order to
7862 (exp1, exp, variable, qualified_name, space_identifier,
7863 typename, typebase): Likewise.
7864 (write_destructor_name, parse_number, lex_one_token,
7865 classify_name, classify_inner_name, c_parse): Add "struct
7866 parser_state" argument. Update function to use parser state.
7867 * c-lang.h: Forward declare "struct parser_state".
7868 (c_parse): Add "struct parser_state" argument.
7869 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7870 (yyparse): Redefine macro to ada_parse_internal.
7871 (pstate): New variable.
7872 (write_int, write_object_renaming, write_var_or_type,
7873 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7874 type_int, type_long, type_long_long, type_float, type_double,
7875 type_long_double, type_char, type_boolean, type_system_address):
7876 Add "struct parser_state" argument.
7877 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7878 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7879 var_or_type, aggregate, aggregate_component_list,
7880 positional_list, others, component_group,
7881 component_associations): Update calls to write_exp* and similar
7882 functions in order to use parser state.
7883 (ada_parse, write_var_from_sym, write_int,
7884 write_exp_op_with_string, write_object_renaming,
7885 find_primitive_type, write_selectors, write_ambiguous_var,
7886 write_var_or_type, write_name_assoc, type_int, type_long,
7887 type_long_long, type_float, type_double, type_long_double,
7888 type_char, type_boolean, type_system_address): Add "struct
7889 parser_state" argument. Adjust function to use parser state.
7890 * ada-lang.c (parse): Likewise.
7891 * ada-lang.h: Forward declare "struct parser_state".
7892 (ada_parse): Add "struct parser_state" argument.
7893 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7894 calls to both functions.
7895 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7897 (yyparse): Redefine macro to f_parse_internal.
7898 (pstate): New variable.
7899 (parse_number): Add "struct parser_state" argument.
7900 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7901 and similars in order to use parser state.
7902 (parse_number): Adjust code to use parser state.
7904 (f_parse): New function.
7905 * f-lang.h: Forward declare "struct parser_state".
7906 (f_parse): Add "struct parser_state" argument.
7907 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7909 (yyparse): Redefine macro for java_parse_internal.
7910 (pstate): New variable.
7911 (push_expression_name, push_expression_name, insert_exp): Add
7912 "struct parser_state" argument.
7913 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7914 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7915 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7916 PostIncrementExpression, PostDecrementExpression,
7917 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7918 UnaryExpressionNotPlusMinus, CastExpression,
7919 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7920 RelationalExpression, EqualityExpression, AndExpression,
7921 ExclusiveOrExpression, InclusiveOrExpression,
7922 ConditionalAndExpression, ConditionalOrExpression,
7923 ConditionalExpression, Assignment, LeftHandSide): Update
7924 calls to write_exp* and similars in order to use parser state.
7925 (parse_number): Ajust code to use parser state.
7927 (java_parse): New function.
7928 (push_variable): Add "struct parser_state" argument. Adjust
7929 code to user parser state.
7930 (push_fieldnames, push_qualified_expression_name,
7931 push_expression_name, insert_exp): Likewise.
7932 * jv-lang.h: Forward declare "struct parser_state".
7933 (java_parse): Add "struct parser_state" argument.
7934 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7936 (yyparse): Redefine macro to m2_parse_internal.
7937 (pstate): New variable.
7938 (type_exp, exp, fblock, variable, type): Update calls to
7939 write_exp* and similars to use parser state.
7941 (m2_parse): New function.
7942 * m2-lang.h: Forward declare "struct parser_state".
7943 (m2_parse): Add "struct parser_state" argument.
7944 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7945 * objc-lang.h: Forward declare "struct parser_state".
7946 (end_msglist): Add "struct parser_state" argument.
7947 * p-exp.y (parse_type): Rewrite macro to use parser state.
7948 (yyparse): Redefine macro to pascal_parse_internal.
7949 (pstate): New variable.
7950 (parse_number): Add "struct parser_state" argument.
7951 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7952 write_exp* and similars in order to use parser state.
7953 (parse_number, yylex): Adjust code to use parser state.
7954 (pascal_parse): New function.
7955 * p-lang.h: Forward declare "struct parser_state".
7956 (pascal_parse): Add "struct parser_state" argument.
7957 * go-exp.y (parse_type): Rewrite macro to use parser state.
7958 (yyparse): Redefine macro to go_parse_internal.
7959 (pstate): New variable.
7960 (parse_number): Add "struct parser_state" argument.
7961 (type_exp, exp1, exp, variable, type): Update calls to
7962 write_exp* and similars in order to use parser state.
7963 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7964 to use parser state.
7965 (go_parse): Likewise.
7966 * go-lang.h: Forward declare "struct parser_state".
7967 (go_parse): Add "struct parser_state" argument.
7969 2014-03-27 Doug Evans <dje@google.com>
7971 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7973 2014-03-27 Doug Evans <dje@google.com>
7975 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7976 Remove argument abbrev_section. All callers updated.
7978 2014-03-27 Doug Evans <dje@google.com>
7980 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7981 addr_base, ranges_base.
7983 2014-03-26 Keith Seitz <keiths@redhat.com>
7985 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7986 types, not VAR_DOMAIN.
7988 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7990 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7992 * features/nios2-linux.c: Regenerated.
7993 * features/nios2.c: Regenerated.
7995 2014-03-25 Pedro Alves <palves@redhat.com>
7997 * cli/cli-script.c (script_from_file): Force the interpreter to
8000 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8002 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8003 small stack allocation.
8005 2014-03-24 Tristan Gingold <gingold@adacore.com>
8007 * darwin-nat.c (exc_server): Remove unused prototype.
8008 (darwin_dump_message): Correctly display data on x86_64.
8009 (darwin_encode_reply): Fix style.
8010 Add comments and fix indentation.
8012 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8014 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8016 2014-03-22 Doug Evans <xdje42@gmail.com>
8018 * infcmd.c: Whitespace fixes.
8019 (interrupt_command): Merge two function comments into one.
8021 2014-03-22 Doug Evans <xdje42@gmail.com>
8023 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8026 2014-03-22 Yao Qi <yao@codesourcery.com>
8028 * remote.c (target_read_live_memory): Remove.
8029 (memory_xfer_live_readonly_partial): Rename it to
8030 remote_xfer_live_readonly_partial. Remove argument 'object'.
8031 All callers updated. Call remote_read_bytes_1
8032 instead of target_read_live_memory.
8033 * tracepoint.c (set_traceframe_number): Remove.
8034 (make_cleanup_restore_traceframe_number): Likewise .
8035 * tracepoint.h (set_traceframe_number): Remove declaration.
8036 (make_cleanup_restore_traceframe_number): Likewise.
8038 2014-03-22 Yao Qi <yao@codesourcery.com>
8040 * remote.c (remote_read_bytes): Move code on reading from the
8042 (remote_read_bytes_1): ... here. New function.
8044 2014-03-22 Yao Qi <yao@codesourcery.com>
8046 * ctf.c (ctf_xfer_partial): Check the return value of
8047 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8048 return TARGET_XFER_UNAVAILABLE.
8049 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8050 * target.c (target_read_live_memory): Move it to remote.c.
8051 (memory_xfer_live_readonly_partial): Likewise.
8052 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8053 * remote.c (target_read_live_memory): Moved from target.c.
8054 (memory_xfer_live_readonly_partial): Likewise.
8055 (remote_read_bytes): Factored out from
8056 memory_xfer_partial_1.
8058 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8060 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8063 2014-03-21 Pedro Alves <palves@redhat.com>
8065 * infrun.c (normal_stop): Extend comment.
8067 2014-03-21 Hui Zhu <hui@codesourcery.com>
8068 Pedro Alves <palves@redhat.com>
8070 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8072 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8073 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8074 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8076 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8078 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8079 `z' formatted output modifier.
8081 2014-03-20 Tom Tromey <tromey@redhat.com>
8082 Sergio Durigan Junior <sergiodj@redhat.com>
8084 * probe.c (parse_probes): Turn assert into an ordinary error.
8085 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8086 exceptions when parsing probes. Rearrange the code for clarity.
8088 2014-03-20 Tom Tromey <tromey@redhat.com>
8091 * top.c (execute_command): Only dispatch events if the command
8094 2014-03-20 Tom Tromey <tromey@redhat.com>
8097 * infcall.c: Include event-top.h.
8098 (run_inferior_call): Call async_disable_stdin if needed.
8100 2014-03-20 Pedro Alves <palves@redhat.com>
8102 * infrun.c (prepare_to_proceed): Delete.
8103 (thread_still_needs_step_over): New function.
8104 (find_thread_needs_step_over): New function.
8105 (proceed): If the current thread needs a step-over, set its
8106 steping_over_breakpoint flag. Adjust to use
8107 find_thread_needs_step_over instead of prepare_to_proceed.
8108 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8109 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8111 (switch_back_to_stepped_thread): Step over breakpoints of all
8112 threads not the stepping thread, before switching back to the
8115 2014-03-20 Pedro Alves <palves@redhat.com>
8117 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8119 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8120 * infrun.c (saved_singlestep_ptid)
8121 (stepping_past_singlestep_breakpoint): Delete.
8122 (resume): Remove stepping_past_singlestep_breakpoint handling.
8123 (proceed): Store the prev_pc of the stepping thread too.
8124 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8126 (enum infwait_states): Delete infwait_thread_hop_state.
8127 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8129 (handle_inferior_event): Adjust.
8130 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8131 handling and the thread-hop code. Before removing single-step
8132 breakpoints, check whether the thread hit a single-step breakpoint
8133 of another thread. If it did, the trap is not a random signal.
8134 (switch_back_to_stepped_thread): If the event thread hit a
8135 single-step breakpoint, unblock it before switching to the
8136 stepping thread. Handle the case of the stepped thread having
8138 (keep_going): Handle the case of the current thread moving past a
8139 single-step breakpoint.
8141 2014-03-20 Pedro Alves <palves@redhat.com>
8144 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8145 are being stepped over.
8146 (breakpoint_address_match): Make extern.
8147 * breakpoint.h (breakpoint_address_match): New declaration.
8148 * inferior.h (stepping_past_instruction_at): New declaration.
8149 * infrun.c (struct step_over_info): New type.
8150 (step_over_info): New global.
8151 (set_step_over_info, clear_step_over_info)
8152 (stepping_past_instruction_at): New functions.
8153 (handle_inferior_event): Clear the step-over info when
8154 trap_expected is cleared.
8155 (resume): Remove now stale comment.
8156 (clear_proceed_status): Clear step-over info.
8157 (proceed): Adjust step-over handling to set or clear the step-over
8158 info instead of removing all breakpoints.
8159 (handle_signal_stop): When setting up a thread-hop, don't remove
8161 (stop_stepping): Clear step-over info.
8162 (keep_going): Adjust step-over handling to set or clear step-over
8163 info and then always inserting breakpoints, instead of removing
8164 all breakpoints when stepping over one.
8166 2014-03-20 Pedro Alves <palves@redhat.com>
8168 * infrun.c (previous_inferior_ptid): Adjust comment.
8169 (deferred_step_ptid): Delete.
8170 (infrun_thread_ptid_changed, prepare_to_proceed)
8171 (init_wait_for_inferior): Adjust.
8172 (handle_signal_stop): Delete deferred_step_ptid handling.
8174 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8177 * defs.h (sync_quit_force_run): New declaration.
8178 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8179 * event-top.c (async_sigterm_handler): New declaration.
8180 (async_sigterm_token): New variable.
8181 (async_init_signals): Create also async_sigterm_token.
8182 (async_sigterm_handler): New function.
8183 (sync_quit_force_run): New variable.
8184 (handle_sigterm): Replace quit_force call by other calls.
8185 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8187 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8189 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8190 offset into SPE pseudo registers.
8192 2014-03-18 Pedro Alves <palves@redhat.com>
8195 * inferior.h (print_stop_event): Declare.
8196 * infrun.c (print_stop_event): New, factored out from ...
8197 (normal_stop): ... this.
8198 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8199 of bpstat_print/print_stack_frame.
8201 2014-03-17 Tom Tromey <tromey@redhat.com>
8203 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8205 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8207 * ada-lang.c (decode_constrained_packed_array): Perform a
8208 minimal coercion for reference with coerce_ref instead of
8211 2014-03-17 Tristan Gingold <gingold@adacore.com>
8213 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8214 (darwin_solib_create_inferior_hook): Emit a warning if version
8217 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8219 * python/py-value.c (get_field_flag): Cast flag_name argument to
8220 PyObject_GetAttrString to support Python 2.4.
8222 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8224 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8225 (Global Maintainers): Remove Jan Kratochvil.
8227 2014-03-14 Pedro Alves <palves@redhat.com>
8229 * inferior.h (terminal_ours_for_output): Rename to ...
8230 (child_terminal_ours_for_output): ... this.
8231 (terminal_save_ours): Rename to ...
8232 (child_terminal_save_ours): ... this.
8233 (terminal_ours): Rename to ...
8234 (child_terminal_ours): ... this.
8235 (terminal_inferior): Rename to ...
8236 (child_terminal_inferior): ... this.
8237 (terminal_init_inferior): Rename to ...
8238 (child_terminal_init_inferior): ... this.
8239 (terminal_init_inferior_with_pgrp): Rename to ...
8240 (child_terminal_init_inferior_with_pgrp): ... this.
8241 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8242 (child_terminal_init_with_pgrp): ... this.
8243 (terminal_save_ours): Rename to ...
8244 (child_terminal_save_ours): ... this.
8245 (terminal_init_inferior): Rename to ...
8246 (child_terminal_init): ... this. Adjust.
8247 (terminal_inferior): Rename to ...
8248 (child_terminal_inferior): ... this.
8249 (terminal_ours_for_output): Rename to ...
8250 (child_terminal_ours_for_output): ... this. Adjust.
8251 (terminal_ours): Rename to ...
8252 (child_terminal_ours): ... this.
8253 (terminal_ours_1): Rename to ...
8254 (child_terminal_ours_1): ... this. Adjust.
8255 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8256 * windows-nat.c (do_initial_windows_stuff): Adjust.
8257 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8258 (gnu_terminal_init): ... this. Adjust.
8259 (gnu_target): Adjust.
8260 * inf-child.c (inf_child_target): Adjust.
8262 2014-03-13 Doug Evans <xdje42@gmail.com>
8265 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8268 2014-03-13 Doug Evans <xdje42@gmail.com>
8270 * value.c (record_latest_value): Call release_value_or_incref
8271 instead of release_value.
8273 2014-03-13 Pedro Alves <palves@redhat.com>
8275 * procfs.c (procfs_target): Don't override to_shortname,
8276 to_longname or to_doc.
8278 2014-03-13 Pedro Alves <palves@redhat.com>
8280 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8281 Unix in user visible strings.
8283 2014-03-12 Stan Shebs <stan@codesourcery.com>
8285 * gdbtypes.h: Annotate comments for Doxygen, add a page
8286 block comment with some general info.
8288 2014-03-12 Pedro Alves <palves@redhat.com>
8290 * infcmd.c (prepare_execution_command): New function, factored out
8291 from several execution commands.
8292 (run_command_1, continue_command, step_1, jump_command)
8293 (signal_command, until_command, advance_command, finish_command)
8294 (attach_command): Use prepare_execution_command.
8296 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8298 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8301 (struct arm_linux_thread_points): Removed.
8302 (struct arm_linux_process_info): New.
8303 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8304 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8305 (arm_linux_find_breakpoints_by_tid): Removed.
8306 (struct arch_lwp_info): New.
8307 (arm_linux_find_process_pid): New functions.
8308 (arm_linux_add_process): New functions.
8309 (arm_linux_process_info_get): New functions.
8310 (arm_linux_forget_process): New function.
8311 (arm_linux_get_debug_reg_state): New function.
8312 (struct update_registers_data): New.
8313 (update_registers_callback): New function.
8314 (arm_linux_insert_hw_breakpoint1): Updated.
8315 (arm_linux_remove_hw_breakpoint1): Updated.
8316 (arm_linux_insert_hw_breakpoint): Updated.
8317 (arm_linux_remove_hw_breakpoint): Updated.
8318 (arm_linux_insert_watchpoint): Updated.
8319 (arm_linux_remove_watchpoint): Updated.
8320 (arm_linux_new_thread): Updated.
8321 (arm_linux_prepare_to_resume): New function.
8322 (arm_linux_new_fork): New function.
8323 (_initialize_arm_linux_nat): Updated.
8325 2014-03-12 Pedro Alves <palves@redhat.com>
8327 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8329 2014-03-12 Tom Tromey <tromey@redhat.com>
8331 * inf-child.c (return_zero): New function.
8332 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8333 * aix-thread.c (aix_thread_inferior_created): New function.
8334 (aix_thread_attach): Remove.
8335 (init_aix_thread_ops): Don't set to_attach.
8336 (_initialize_aix_thread): Register inferior_created observer.
8337 * corelow.c (init_core_ops): Don't set to_attach or
8339 * exec.c (init_exec_ops): Don't set to_attach or
8341 * infcmd.c (run_command_1): Use find_run_target. Make direct
8343 (attach_command): Use find_attach_target. Make direct target
8345 * record-btrace.c (init_record_btrace_ops): Don't set
8347 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8349 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8350 set to_create_inferior.
8351 * target.c (complete_target_initialization): Add assertion.
8352 (target_create_inferior): Remove.
8353 (find_default_attach, find_default_create_inferior): Remove.
8354 (find_attach_target, find_run_target): New functions.
8355 (find_default_is_async_p, find_default_can_async_p)
8356 (target_supports_non_stop, target_attach): Remove.
8357 (init_dummy_target): Don't set to_create_inferior or
8358 to_supports_non_stop.
8359 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8360 TARGET_DEFAULT_FUNC.
8361 <to_create_inferior>: Add comment.
8362 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8363 TARGET_DEFAULT_RETURN.
8364 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8365 (find_attach_target, find_run_target): Declare.
8366 (target_create_inferior): Remove.
8367 (target_has_execution_1): Update comment.
8368 (target_supports_non_stop): Remove.
8369 * target-delegates.c: Rebuild.
8371 2014-03-12 Pedro Alves <palves@redhat.com>
8373 * inf-child.h: Update comment to not mention Unix.
8375 2014-03-12 Pedro Alves <palves@redhat.com>
8377 * inf-child.c: Update top comment to not mention Unix. Add
8378 generic comment describing how this target is meant to be used.
8379 (inf_child_post_attach, inf_child_post_startup_inferior)
8380 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8383 2014-03-12 Pedro Alves <palves@redhat.com>
8385 * nto-procfs.c: Include inf-child.h.
8386 (procfs_ops): Delete global.
8387 (procfs_can_run): Delete method.
8388 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8389 target pointer instead of referencing procfs_ops.
8390 (procfs_prepare_to_store): Delete.
8391 (init_procfs_ops): Delete function.
8392 (procfs_target): New function, based on init_procfs_ops, but
8393 inherit inf_child_target.
8394 (_initialize_procfs): Use procfs_target.
8396 2014-03-12 Pedro Alves <palves@redhat.com>
8398 * windows-nat.c: Include inf-child.h.
8399 (windows_ops): Delete global.
8400 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8402 (init_windows_ops): Delete function.
8403 (windows_target): New function, based on init_windows_ops, but
8404 inherit inf_child_target.
8405 (_initialize_windows_nat): Use windows_target. Install x86
8406 specific target methods here.
8408 2014-03-10 Doug Evans <xdje42@gmail.com>
8410 * guile/guile.c (call_initialize_gdb_module): New function.
8411 (initialize_guile): Replace call to scm_init_guile with call to
8414 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8416 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8417 in call to TYPE_CODE macro.
8419 2014-03-10 Jerome Guitton <guitton@adacore.com>
8421 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8422 Resolve tagged types to full view.
8424 2014-03-10 Hui Zhu <hui@codesourcery.com>
8426 * target.h (target_insert_breakpoint): Remove "hardware" from its
8429 2014-03-07 Doug Evans <dje@google.com>
8431 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8433 2014-03-07 Doug Evans <dje@google.com>
8435 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8436 Remove unused local comp_dir_attr. Assert exactly one of
8437 stub_comp_unit_die, stub_comp_dir is non-NULL.
8439 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8441 * target.h (complete_target_initialization, add_target):
8444 2014-03-07 Pedro Alves <palves@redhat.com>
8446 * go32-nat.c: Include inf-child.h.
8447 (go32_ops): Delete global.
8448 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8450 (go32_create_inferior): Push the passed in target pointer instead
8451 of referencing go32_ops.
8452 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8453 (go32_target): New function, based on init_go32_ops, but inherit
8455 (_initialize_go32_nat): Use go32_target. Move parts of
8458 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8460 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8461 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8462 SYMBOL_VALUE_ADDRESS.
8463 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8465 2014-03-06 Yao Qi <yao@codesourcery.com>
8467 * breakpoint.c (get_tracepoint_by_number): Remove argument
8468 optional_p. All callers updated. Adjust comments. Update
8470 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8472 2014-03-06 Yao Qi <yao@codesourcery.com>
8474 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8475 early if get_number returns zero. Use 'p' instead of 'args'.
8477 2014-03-06 Yao Qi <yao@codesourcery.com>
8479 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8482 2014-03-06 Yao Qi <yao@codesourcery.com>
8484 PR breakpoints/16508
8485 * tracepoint.c (check_trace_running): New function.
8486 (trace_find_command): Move code to check_trace_running and
8487 call check_trace_running.
8488 (trace_find_pc_command): Likewise.
8489 (trace_find_tracepoint_command): Likewise.
8490 (trace_find_line_command): Likewise.
8491 (trace_find_range_command): Likewise.
8492 * tracepoint.h (check_trace_running): Likewise.
8493 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8495 2014-03-06 Yao Qi <yao@codesourcery.com>
8497 * target.h (struct target_ops) <to_traceframe_info>: Use
8498 TARGET_DEFAULT_NORETURN (tcomplain ()).
8499 * target-delegates.c: Regenerated.
8501 2014-03-05 Pedro Alves <palves@redhat.com>
8504 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8505 void. Update comment.
8506 (dcache_xfer_memory): Delete.
8507 (dcache_read_memory_partial): New, based on the read bits of
8509 (dcache_update): Add status parameter. Use ULONGEST for len, and
8510 adjust. Discard cache lines if the reason for the update was
8512 * dcache.h (dcache_xfer_memory): Delete declaration.
8513 (dcache_read_memory_partial): New declaration.
8514 (dcache_update): Update prototype.
8515 * target.c (raw_memory_xfer_partial): Update the dcache here.
8516 (memory_xfer_partial_1): Don't handle dcache writes here.
8518 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8520 * remote-sim.c (gdbsim_load): Add const to prog.
8522 2014-03-03 Tom Tromey <tromey@redhat.com>
8524 * elfread.c (probe_key): Change to bfd_data.
8525 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8526 now per-BFD, not per-objfile.
8527 * stap-probe.c (stap_probe_destroy): Update comment.
8528 (handle_stap_probe): Allocate on the per-BFD obstack.
8530 2014-03-03 Tom Tromey <tromey@redhat.com>
8532 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8533 * breakpoint.c (create_longjmp_master_breakpoint): Use
8535 (add_location_to_breakpoint, bkpt_probe_insert_location)
8536 (bkpt_probe_remove_location): Update.
8537 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8538 * elfread.c (elf_symfile_relocate_probe): Remove.
8539 (elf_probe_fns): Update.
8540 (insert_exception_resume_breakpoint): Change type of "probe"
8541 parameter to bound_probe.
8542 (check_exception_resume): Update.
8543 * objfiles.c (objfile_relocate1): Don't relocate probes.
8544 * probe.c (bound_probe_s): New typedef.
8545 (parse_probes): Use get_probe_address. Set sal's objfile.
8546 (find_probe_by_pc): Return a bound_probe.
8547 (collect_probes): Return a VEC(bound_probe_s).
8548 (compare_probes): Update.
8549 (gen_ui_out_table_header_info): Change type of "probes"
8551 (info_probes_for_ops): Update.
8552 (get_probe_address): New function.
8553 (probe_safe_evaluate_at_pc): Update.
8554 * probe.h (struct probe_ops) <get_probe_address>: New field.
8555 <set_semaphore, clear_semaphore>: Add objfile parameter.
8556 (struct probe) <objfile>: Remove field.
8558 <address>: Update comment.
8559 (struct bound_probe): New.
8560 (find_probe_by_pc): Return a bound_probe.
8561 (get_probe_address): Declare.
8562 * solib-svr4.c (struct probe_and_action) <address>: New field.
8563 (hash_probe_and_action, equal_probe_and_action): Update.
8564 (register_solib_event_probe): Add address parameter.
8565 (solib_event_probe_at): Update.
8566 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8568 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8569 (stap_get_probe_address): New function.
8570 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8571 (compile_probe_arg): Update.
8572 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8574 (handle_stap_probe): Don't relocate the probe.
8575 (stap_relocate): Remove.
8576 (stap_gen_info_probes_table_values): Update.
8577 (stap_probe_ops): Remove stap_relocate.
8578 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8579 (debug_sym_probe_fns): Update.
8580 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8581 * symtab.c (init_sal): Use memset.
8582 * symtab.h (struct symtab_and_line) <objfile>: New field.
8583 * tracepoint.c (start_tracing, stop_tracing): Update.
8585 2014-03-03 Tom Tromey <tromey@redhat.com>
8587 * probe.h (parse_probes, find_probe_by_pc)
8588 (find_probes_in_objfile): Fix comments.
8590 2014-03-02 Doug Evans <xdje42@gmail.com>
8592 * infrun.c (handle_signal_stop): Replace test for
8593 TARGET_WAITKIND_STOPPED with an assert.
8595 2014-03-02 Doug Evans <xdje42@gmail.com>
8597 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8599 2014-03-02 Doug Evans <xdje42@gmail.com>
8601 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8603 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8605 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8607 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8609 * i386obsd-nat.c: Include "obsd-nat.h".
8610 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8612 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8614 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8616 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8618 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8620 * mips64obsd-nat.c: Include "obsd-nath".
8621 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8623 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8625 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8627 * amd64obsd-nat.c: Include "obsd-nat,h.
8628 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8630 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8632 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8634 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8635 (find_overload_match): Update call to find_oload_champ.
8636 (find_oload_champ_namespace_loop): Likewise
8638 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8640 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8642 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8643 * config/sparc/obsd64.mh: New file.
8644 * sparc64obsd-nat.c: New file.
8646 * obsd-nat.h: New file.
8647 * obsd-nat.c: New file.
8648 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8649 (ALLDEPFILES): Add obsd-nat.c.
8651 2014-02-28 Tom Tromey <tromey@redhat.com>
8653 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8654 * cli-out.h (cli_ui_out_impl): Now const.
8655 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8656 * ui-out.c (struct ui_out) <impl>: Now const.
8657 (default_ui_out_impl): Now const.
8658 (ui_out_new): Make 'impl' parameter const.
8659 * ui-out.h (ui_out_new): Update.
8661 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8663 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8665 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8667 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8669 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8671 Additional PR 8882 fix.
8672 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8674 2014-02-27 Pedro Alves <palves@redhat.com>
8676 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8679 2014-02-27 Pedro Alves <palves@redhat.com>
8682 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8683 * nat/linux-waitpid.c: Include string.h.
8684 (status_to_str): Moved here and made extern.
8685 * nat/linux-waitpid.h (status_to_str): New declaration.
8687 2014-02-27 Hui Zhu <hui@codesourcery.com>
8690 * infrun.c (ptid_match): Move ...
8691 * common/ptid.c (ptid_match): ... here.
8692 * inferior.h (ptid_match): Move ...
8693 * common/ptid.h (ptid_match): ... here.
8695 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8697 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8698 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8701 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8703 * obsd-tdep.c (obsd_auxv_parse): New function.
8704 (obsd_init_abi): Set auxv_parse.
8706 * gdbarch.sh (auxv_parse): New.
8707 * gdbarch.h: Regenerated.
8708 * gdbarch.c: Regenerated.
8709 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8711 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8713 * guile/scm-value.c (gdbscm_history_append_x): New function.
8714 (value_functions): Add it.
8716 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8718 * dwarf2read.c (attr_value_as_address): New function.
8719 (dwarf2_find_base_address, read_call_site_scope): Use
8720 attr_value_as_address in place of DW_ADDR.
8721 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8722 the low and high addresses. Slight rework of the handling
8723 of the high pc being a constant form, and limit it to
8724 DWARF verson 4 or higher.
8725 (dwarf2_record_block_ranges): Likewise.
8726 (read_partial_die): Likewise.
8727 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8729 2014-02-26 Tom Tromey <tromey@redhat.com>
8731 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8733 2014-02-26 Tom Tromey <tromey@redhat.com>
8735 * elfread.c (elf_read_minimal_symbols): Return early if
8736 minimal symbols have already been read. Add "ei" parameter.
8737 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8738 * minsyms.c (prim_record_minimal_symbol_full): Update.
8739 * objfiles.h (struct objstats) <n_minsyms>: Move...
8740 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8741 * symmisc.c (print_objfile_statistics): Update.
8743 2014-02-26 Tom Tromey <tromey@redhat.com>
8745 * elfread.c (elf_read_minimal_symbols): New function, from
8747 (elf_symfile_read): Call it.
8749 2014-02-26 Tom Tromey <tromey@redhat.com>
8751 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8752 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8753 (lookup_minimal_symbol_solib_trampoline)
8754 (lookup_minimal_symbol_by_pc_section_1)
8755 (lookup_minimal_symbol_and_objfile): Update.
8756 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8757 Don't allocate a minimal symbol if minsyms have already been read.
8758 (build_minimal_symbol_hash_tables): Update.
8759 (install_minimal_symbols): Do nothing if minsyms already read.
8760 Use the per-BFD obstack.
8761 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8762 * objfiles.c (allocate_objfile): Call
8763 terminate_minimal_symbol_table later.
8764 (have_minimal_symbols): Update.
8765 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8766 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8767 Move from struct objfile.
8768 <minsyms_read>: New field.
8769 (struct objfile) <msymbols, minimal_symbol_count,
8770 msymbol_hash, msymbol_demangled_hash>: Move.
8771 (ALL_OBJFILE_MSYMBOLS): Update.
8772 * symfile.c (read_symbols): Set minsyms_read.
8773 (reread_symbols): Update.
8774 * symmisc.c (dump_objfile, dump_msymbols): Update.
8776 2014-02-26 Tom Tromey <tromey@redhat.com>
8778 * minsyms.c (msymbols_sort): Remove.
8779 * minsyms.h (msymbols_sort): Remove.
8780 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8781 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8782 * elfread.c (elf_symtab_read): Don't add section offsets.
8783 * xcoffread.c (record_minimal_symbol): Don't add section offset
8784 to minimal symbol address.
8785 * somread.c (text_offset, data_offset): Remove.
8786 (som_symtab_read): Don't add section offsets to minimal symbol
8788 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8789 Don't add section offsets to minimal symbols.
8790 * coffread.c (coff_symtab_read): Don't add section offsets
8791 to minimal symbol addresses.
8792 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8793 to minimal symbol addresses.
8794 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8795 section offset to minimal symbol addresses.
8796 * mdebugread.c (parse_partial_symbols): Don't add section
8797 offset to minimal symbol addresses.
8798 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8799 offset to minimal symbol addresses.
8801 2014-02-26 Tom Tromey <tromey@redhat.com>
8803 * ada-lang.c (ada_main_name): Update.
8804 (ada_add_standard_exceptions): Update.
8805 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8806 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8807 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8808 * auxv.c (ld_so_xfer_auxv): Update.
8809 * avr-tdep.c (avr_scan_prologue): Update.
8810 * ax-gdb.c (gen_var_ref): Update.
8811 * blockframe.c (get_pc_function_start)
8812 (find_pc_partial_function_gnu_ifunc): Update.
8813 * breakpoint.c (create_overlay_event_breakpoint)
8814 (create_longjmp_master_breakpoint)
8815 (create_std_terminate_master_breakpoint)
8816 (create_exception_master_breakpoint): Update.
8817 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8818 * c-valprint.c (c_val_print): Update.
8819 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8820 * common/agent.c (agent_look_up_symbols): Update.
8821 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8822 * dwarf2loc.c (call_site_to_target_addr): Update.
8823 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8824 * elfread.c (elf_gnu_ifunc_record_cache)
8825 (elf_gnu_ifunc_resolve_by_got): Update.
8826 * findvar.c (default_read_var_value): Update.
8827 * frame.c (inside_main_func): Update.
8828 * frv-tdep.c (frv_frame_this_id): Update.
8829 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8830 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8832 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8833 (hppa_hpux_find_dummy_bpaddr): Update.
8834 * hppa-tdep.c (hppa_symbol_address): Update.
8835 * infcmd.c (until_next_command): Update.
8836 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8838 * linespec.c (minsym_found, add_minsym): Update.
8839 * linux-nat.c (get_signo): Update.
8840 * linux-thread-db.c (inferior_has_bug): Update.
8841 * m32c-tdep.c (m32c_return_value)
8842 (m32c_m16c_address_to_pointer): Update.
8843 * m32r-tdep.c (m32r_frame_this_id): Update.
8844 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8845 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8846 * maint.c (maintenance_translate_address): Update.
8847 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8848 (frob_address): New function.
8849 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8850 frob_address. Rename parameter to "pc_in".
8851 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8853 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8855 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8856 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8857 * objc-lang.c (find_objc_msgsend): Update.
8858 * objfiles.c (objfile_relocate1): Update.
8859 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8860 * p-valprint.c (pascal_val_print): Update.
8861 * parse.c (write_exp_msymbol): Update.
8862 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8863 (ppc_elfv2_skip_entrypoint): Update.
8864 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8865 * printcmd.c (build_address_symbolic, msym_info)
8866 (address_info): Update.
8867 * proc-service.c (ps_pglobal_lookup): Update.
8868 * psymtab.c (find_pc_sect_psymtab_closer)
8869 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8870 Change msymbol parameter to bound_minimal_symbol.
8871 * ravenscar-thread.c (get_running_thread_id): Update.
8872 * remote.c (remote_check_symbols): Update.
8873 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8875 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8876 * solib-dsbt.c (lm_base): Update.
8877 * solib-frv.c (lm_base, main_got): Update.
8878 * solib-irix.c (locate_base): Update.
8879 * solib-som.c (som_solib_create_inferior_hook)
8880 (link_map_start): Update.
8881 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8882 * solib-svr4.c (elf_locate_base, enable_break): Update.
8883 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8884 (flush_ea_cache): Update.
8885 * stabsread.c (define_symbol, scan_file_globals): Update.
8886 * stack.c (find_frame_funname): Update.
8887 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8888 (debug_qf_find_pc_sect_symtab): Update.
8889 * symfile.c (simple_read_overlay_table)
8890 (simple_overlay_update): Update.
8891 * symfile.h (struct quick_symbol_functions)
8892 <find_pc_sect_symtab>: Change type of msymbol to
8893 bound_minimal_symbol.
8894 * symmisc.c (dump_msymbols): Update.
8895 * symtab.c (find_pc_sect_symtab_via_partial)
8896 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8897 (search_symbols, print_msymbol_info): Update.
8898 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8899 (MSYMBOL_VALUE_ADDRESS): Redefine.
8900 (BMSYMBOL_VALUE_ADDRESS): New macro.
8901 * tracepoint.c (scope_info): Update.
8902 * tui/tui-disasm.c (tui_find_disassembly_address)
8903 (tui_get_begin_asm_address): Update.
8904 * valops.c (find_function_in_inferior): Update.
8905 * value.c (value_static_field, value_fn_field): Update.
8907 2014-02-26 Tom Tromey <tromey@redhat.com>
8909 * ada-lang.c (ada_update_initial_language): Update.
8910 (ada_main_name, ada_has_this_exception_support): Update.
8911 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8912 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8913 * arm-tdep.c (arm_skip_stub): Update.
8914 * auxv.c (ld_so_xfer_auxv): Update.
8915 * avr-tdep.c (avr_scan_prologue): Update.
8916 * ax-gdb.c (gen_var_ref): Update.
8917 * breakpoint.c (struct breakpoint_objfile_data)
8918 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8919 type to bound_minimal_symbol.
8920 (create_overlay_event_breakpoint)
8921 (create_longjmp_master_breakpoint)
8922 (create_std_terminate_master_breakpoint)
8923 (create_exception_master_breakpoint): Update.
8924 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8925 * c-exp.y (classify_name): Update.
8926 * coffread.c (coff_symfile_read): Update.
8927 * common/agent.c (agent_look_up_symbols): Update.
8928 * d-lang.c (d_main_name): Update.
8929 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8930 * dec-thread.c (enable_dec_thread): Update.
8931 * dwarf2loc.c (call_site_to_target_addr): Update.
8932 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8933 * eval.c (evaluate_subexp_standard): Update.
8934 * findvar.c (struct minsym_lookup_data) <result>: Change type
8935 to bound_minimal_symbol.
8937 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8938 * frame.c (inside_main_func): Update.
8939 * frv-tdep.c (frv_frame_this_id): Update.
8940 * gcore.c (call_target_sbrk): Update.
8941 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8942 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8944 * go-lang.c (go_main_name): Update.
8945 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8946 (hppa_hpux_find_import_stub_for_addr): Update.
8947 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8948 Update. Change return type.
8949 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8951 * jit.c (jit_breakpoint_re_set_internal): Update.
8952 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8954 * linux-nat.c (get_signo): Update.
8955 * linux-thread-db.c (inferior_has_bug): Update
8956 * m32c-tdep.c (m32c_return_value)
8957 (m32c_m16c_address_to_pointer): Update.
8958 * m32r-tdep.c (m32r_frame_this_id): Update.
8959 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8960 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8961 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8962 lookup_minimal_symbol. Change return type.
8963 (lookup_minimal_symbol): Remove.
8964 (lookup_bound_minimal_symbol): Update.
8965 (lookup_minimal_symbol_text): Change return type.
8966 (lookup_minimal_symbol_solib_trampoline): Change return type.
8967 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8968 (lookup_minimal_symbol_solib_trampoline): Change return type.
8969 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8970 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8971 (value_nsstring, find_imps): Update.
8972 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8973 * p-lang.c (pascal_main_name): Update.
8974 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8975 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8976 * proc-service.c (ps_pglobal_lookup): Update.
8977 * ravenscar-thread.c (get_running_thread_msymbol): Change
8979 (has_ravenscar_runtime, get_running_thread_id): Update.
8980 * remote.c (remote_check_symbols): Update.
8981 * sol-thread.c (ps_pglobal_lookup): Update.
8982 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8983 * solib-dsbt.c (lm_base): Update.
8984 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8986 * solib-irix.c (locate_base): Update.
8987 * solib-som.c (som_solib_create_inferior_hook)
8988 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8990 * solib-spu.c (spu_enable_break): Update.
8991 * solib-svr4.c (elf_locate_base, enable_break): Update.
8992 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8993 (flush_ea_cache): Update.
8994 * stabsread.c (define_symbol): Update.
8995 * symfile.c (simple_read_overlay_table): Update.
8996 * symtab.c (find_pc_sect_line): Update.
8997 * tracepoint.c (scope_info): Update.
8998 * tui-disasm.c (tui_get_begin_asm_address): Update.
8999 * value.c (value_static_field): Update.
9001 2014-02-26 Tom Tromey <tromey@redhat.com>
9003 * minsyms.c (prim_record_minimal_symbol_full): Use
9004 SET_MSYMBOL_VALUE_ADDRESS.
9005 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9006 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9007 SET_MSYMBOL_VALUE_ADDRESS.
9008 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9009 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9011 2014-02-26 Tom Tromey <tromey@redhat.com>
9013 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9014 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9015 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9016 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9017 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9018 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9019 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9020 * ada-lang.c (ada_main_name): Update.
9021 (ada_lookup_simple_minsym): Update.
9022 (ada_make_symbol_completion_list): Update.
9023 (ada_add_standard_exceptions): Update.
9024 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9025 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9026 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9027 * arm-tdep.c (skip_prologue_function): Update.
9028 (arm_skip_stack_protector, arm_skip_stub): Update.
9029 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9030 (arm_wince_skip_main_prologue): Update.
9031 * auxv.c (ld_so_xfer_auxv): Update.
9032 * avr-tdep.c (avr_scan_prologue): Update.
9033 * ax-gdb.c (gen_var_ref): Update.
9034 * block.c (call_site_for_pc): Update.
9035 * blockframe.c (get_pc_function_start): Update.
9036 (find_pc_partial_function_gnu_ifunc): Update.
9037 * breakpoint.c (create_overlay_event_breakpoint): Update.
9038 (create_longjmp_master_breakpoint): Update.
9039 (create_std_terminate_master_breakpoint): Update.
9040 (create_exception_master_breakpoint): Update.
9041 (resolve_sal_pc): Update.
9042 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9043 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9045 * c-valprint.c (c_val_print): Update.
9046 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9047 * coffread.c (coff_symfile_read): Update.
9048 * common/agent.c (agent_look_up_symbols): Update.
9049 * dbxread.c (find_stab_function_addr): Update.
9050 (end_psymtab): Update.
9051 * dwarf2loc.c (call_site_to_target_addr): Update.
9052 (func_verify_no_selftailcall): Update.
9053 (tailcall_dump): Update.
9054 (call_site_find_chain_1): Update.
9055 (dwarf_expr_reg_to_entry_parameter): Update.
9056 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9057 (elf_gnu_ifunc_resolve_by_got): Update.
9058 * f-valprint.c (info_common_command): Update.
9059 * findvar.c (read_var_value): Update.
9060 * frame.c (get_prev_frame_1): Update.
9061 (inside_main_func): Update.
9062 * frv-tdep.c (frv_skip_main_prologue): Update.
9063 (frv_frame_this_id): Update.
9064 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9065 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9066 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9067 (gnuv3_skip_trampoline): Update.
9068 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9069 (hppa64_hpux_in_solib_call_trampoline): Update.
9070 (hppa_hpux_skip_trampoline_code): Update.
9071 (hppa64_hpux_search_dummy_call_sequence): Update.
9072 (hppa_hpux_find_import_stub_for_addr): Update.
9073 (hppa_hpux_find_dummy_bpaddr): Update.
9074 * hppa-tdep.c (hppa_symbol_address)
9075 (hppa_lookup_stub_minimal_symbol): Update.
9076 * i386-tdep.c (i386_skip_main_prologue): Update.
9077 (i386_pe_skip_trampoline_code): Update.
9078 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9079 * infcall.c (get_function_name): Update.
9080 * infcmd.c (until_next_command): Update.
9081 * jit.c (jit_breakpoint_re_set_internal): Update.
9082 (jit_inferior_init): Update.
9083 * linespec.c (minsym_found): Update.
9084 (add_minsym): Update.
9085 * linux-fork.c (info_checkpoints_command): Update.
9086 * linux-nat.c (get_signo): Update.
9087 * linux-thread-db.c (inferior_has_bug): Update.
9088 * m32c-tdep.c (m32c_return_value): Update.
9089 (m32c_m16c_address_to_pointer): Update.
9090 (m32c_m16c_pointer_to_address): Update.
9091 * m32r-tdep.c (m32r_frame_this_id): Update.
9092 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9093 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9094 * maint.c (maintenance_translate_address): Update.
9095 * minsyms.c (add_minsym_to_hash_table): Update.
9096 (add_minsym_to_demangled_hash_table): Update.
9097 (msymbol_objfile): Update.
9098 (lookup_minimal_symbol): Update.
9099 (iterate_over_minimal_symbols): Update.
9100 (lookup_minimal_symbol_text): Update.
9101 (lookup_minimal_symbol_by_pc_name): Update.
9102 (lookup_minimal_symbol_solib_trampoline): Update.
9103 (lookup_minimal_symbol_by_pc_section_1): Update.
9104 (lookup_minimal_symbol_and_objfile): Update.
9105 (prim_record_minimal_symbol_full): Update.
9106 (compare_minimal_symbols): Update.
9107 (compact_minimal_symbols): Update.
9108 (build_minimal_symbol_hash_tables): Update.
9109 (install_minimal_symbols): Update.
9110 (terminate_minimal_symbol_table): Update.
9111 (find_solib_trampoline_target): Update.
9112 (minimal_symbol_upper_bound): Update.
9113 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9114 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9115 (mips_skip_pic_trampoline_code): Update.
9116 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9117 * objc-lang.c (selectors_info): Update.
9118 (classes_info): Update.
9119 (find_methods): Update.
9120 (find_imps): Update.
9121 (find_objc_msgsend): Update.
9122 * objfiles.c (objfile_relocate1): Update.
9123 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9124 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9125 * p-valprint.c (pascal_val_print): Update.
9126 * parse.c (write_exp_msymbol): Update.
9127 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9128 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9129 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9130 * printcmd.c (build_address_symbolic): Update.
9132 (address_info): Update.
9133 * proc-service.c (ps_pglobal_lookup): Update.
9134 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9135 (find_pc_sect_psymtab): Update.
9136 * python/py-framefilter.c (py_print_frame): Update.
9137 * ravenscar-thread.c (get_running_thread_id): Update.
9138 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9140 * remote.c (remote_check_symbols): Update.
9141 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9142 (rs6000_skip_trampoline_code): Update.
9143 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9144 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9145 * solib-dsbt.c (lm_base): Update.
9146 * solib-frv.c (lm_base): Update.
9148 * solib-irix.c (locate_base): Update.
9149 * solib-som.c (som_solib_create_inferior_hook): Update.
9150 (som_solib_desire_dynamic_linker_symbols): Update.
9151 (link_map_start): Update.
9152 * solib-spu.c (spu_enable_break): Update.
9153 (ocl_enable_break): Update.
9154 * solib-svr4.c (elf_locate_base): Update.
9155 (enable_break): Update.
9156 * spu-tdep.c (spu_get_overlay_table): Update.
9157 (spu_catch_start): Update.
9158 (flush_ea_cache): Update.
9159 * stabsread.c (define_symbol): Update.
9160 (scan_file_globals): Update.
9161 * stack.c (find_frame_funname): Update.
9162 (frame_info): Update.
9163 * symfile.c (simple_read_overlay_table): Update.
9164 (simple_overlay_update): Update.
9165 * symmisc.c (dump_msymbols): Update.
9166 * symtab.c (fixup_section): Update.
9167 (find_pc_sect_line): Update.
9168 (skip_prologue_sal): Update.
9169 (search_symbols): Update.
9170 (print_msymbol_info): Update.
9171 (rbreak_command): Update.
9172 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9173 (completion_list_objc_symbol): Update.
9174 (default_make_symbol_completion_list_break_on): Update.
9175 * tracepoint.c (scope_info): Update.
9176 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9177 (tui_get_begin_asm_address): Update.
9178 * valops.c (find_function_in_inferior): Update.
9179 * value.c (value_static_field): Update.
9180 (value_fn_field): Update.
9182 2014-02-26 Tom Tromey <tromey@redhat.com>
9184 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9185 bound minimal symbols. Move code that knows about minsym
9187 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9189 * minsyms.h (minimal_symbol_upper_bound): Declare.
9190 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9191 minimal_symbol_upper_bound.
9193 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9195 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9196 Use the type's name if its basic type does not have a tag.
9198 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9200 * dwarf2read.c (read_subrange_type): Add comment.
9202 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9204 * dwarf2read.c (update_enumeration_type_from_children): New
9205 function, mostly extracted from process_structure_scope.
9206 (read_enumeration_type): Call update_enumeration_type_from_children.
9207 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9208 and flag_flag_enum fields.
9210 2014-02-26 Pedro Alves <palves@redhat.com>
9212 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9213 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9214 to_xfer_partial method.
9216 2014-02-26 Pedro Alves <palves@redhat.com>
9218 * target.c (complete_target_initialization): Don't install
9219 default_xfer_partial as to_xfer_partial hook.
9221 (update_current_target): Don't INHERIT nor de_fault
9222 deprecated_xfer_memory. Delete de_fault macro.
9223 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9224 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9225 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9228 2014-02-26 Pedro Alves <palves@redhat.com>
9230 * go32-nat.c (my_write_child): New function.
9231 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9232 (go32_xfer_partial): New function.
9233 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9234 Instead install a to_xfer_partial hook.
9236 2014-02-26 Pedro Alves <palves@redhat.com>
9238 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9239 to_xfer_partial helper. Rewrite.
9240 (procfs_xfer_partial): New function.
9241 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9242 Install a to_xfer_partial hook.
9244 2014-02-26 Pedro Alves <palves@redhat.com>
9246 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9247 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9248 (m32r_xfer_partial): New function.
9249 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9250 Install a to_xfer_partial hook.
9252 2014-02-26 Pedro Alves <palves@redhat.com>
9254 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9256 (mips_xfer_partial): New function.
9257 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9258 hook. Install a to_xfer_partial hook.
9260 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9262 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9263 * gdbtypes.c (create_array_type_with_stride): New function,
9264 renaming create_array_type, but with an added parameter
9265 called "bit_stride".
9266 (create_array_type): Re-implement using
9267 create_array_type_with_stride.
9268 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9269 and DW_AT_bit_stride attributes.
9271 2014-02-26 Pedro Alves <palves@redhat.com>
9273 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9274 task-specific breakpoints.
9276 2014-02-25 Pedro Alves <palves@redhat.com>
9278 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9279 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9281 2014-02-25 Stan Shebs <stan@codesourcery.com>
9283 * defs.h: Annotate comments for Doxygen.
9285 2014-02-25 Tom Tromey <tromey@redhat.com>
9287 * target.h (target_ignore): Don't declare.
9288 * target.c (target_ignore): Remove.
9290 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9293 * auto-load.c (auto_load_objfile_script_1): Change filename to
9296 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9298 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9299 documentation. Adjust prototype to match the target_ops
9300 to_xfer_partial method. Adjust implementation accordingly.
9302 2014-02-25 Hui Zhu <hui@codesourcery.com>
9304 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9307 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9309 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9310 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9311 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9312 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9313 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9314 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9315 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9316 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9318 (rl78_register_type): Use a data pointer type for SP and
9319 new pseudo registers mentioned above. Use a 16 bit integer
9320 type for all other register pairs.
9321 (rl78_register_name, rl78_g10_register_name): Update for
9322 new pseudo registers.
9323 (rl78_pseudo_register_read): Likewise.
9324 (rl78_pseudo_register_write): Likewise.
9325 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9326 to the newly added pseudo registers.
9328 2014-02-24 Doug Evans <dje@google.com>
9330 * value.c (record_latest_value): Fix comment.
9331 * printcmd.c (print_command_1): Remove code to handle -1 return from
9332 record_latest_value.
9334 2014-02-24 Pedro Alves <palves@redhat.com>
9336 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9337 deprecated_xfer_memory hook.
9338 (procfs_xfer_partial): Call procfs_xfer_memory instead
9339 of the deprecated_xfer_memory target hook.
9340 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9343 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9345 * windows-nat.c (windows_xfer_shared_libraries): Return
9346 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9347 requested object is TARGET_OBJECT_LIBRARIES.
9349 2014-02-24 Yao Qi <yao@codesourcery.com>
9351 * target.h (enum target_xfer_status)
9352 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9353 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9355 * corefile.c (memory_error_message): User updated.
9356 * exec.c (section_table_read_available_memory): Likewise.
9357 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9358 * target.c (target_xfer_status_to_string): Likewise.
9359 (raw_memory_xfer_partial): Likewise.
9360 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9361 * valops.c (read_value_memory): Likewise.
9362 * exec.h: Update comments.
9364 2014-02-24 Yao Qi <yao@codesourcery.com>
9366 * target.c (target_xfer_status_to_string): Rename argument err
9368 * target.h (target_xfer_status_to_string): Update declaration.
9369 Replace target_xfer_error_to_string with
9370 target_xfer_status_to_string in comment.
9372 2014-02-24 Yao Qi <yao@codesourcery.com>
9374 * mips-linux-nat.c (super_close): Update its type.
9375 (mips_linux_close): Pass 'self' to super_close.
9377 2014-02-24 Yao Qi <yao@codesourcery.com>
9379 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9380 * corefile.c (read_memory): Adjusted.
9381 * target.c (target_write_with_progress): Adjusted.
9383 2014-02-23 Yao Qi <yao@codesourcery.com>
9387 2013-10-25 Yao Qi <yao@codesourcery.com>
9389 * remote.c (remote_traceframe_info): Return early if
9390 traceframe is not selected.
9392 2013-07-19 Yao Qi <yao@codesourcery.com>
9394 * target.c (update_current_target): Change the default action
9395 of 'to_traceframe_info' from tcomplain to return_zero.
9396 * target.h (struct target_ops) <to_traceframe_info>: Add more
9399 2014-02-23 Yao Qi <yao@codesourcery.com>
9401 * valops.c (read_value_memory): Rewrite it. Call
9402 target_xfer_partial in a loop.
9403 * exec.h (section_table_available_memory): Remove declaration.
9404 Move comments to ...
9405 * exec.c (section_table_available_memory): ... here. Make it
9408 2014-02-23 Yao Qi <yao@codesourcery.com>
9410 * exec.c (section_table_read_available_memory): New function.
9411 * exec.h (section_table_read_available_memory): Declare.
9412 * ctf.c (ctf_xfer_partial): Call
9413 section_table_read_available_memory.
9414 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9416 2014-02-23 Yao Qi <yao@codesourcery.com>
9418 * ctf.c (ctf_xfer_partial): Move code to ...
9419 * exec.c (exec_read_partial_read_only): ... it. New function.
9420 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9421 * tracefile.c: Include "exec.h".
9422 * exec.h (exec_read_partial_read_only): Declare.
9424 2014-02-23 Yao Qi <yao@codesourcery.com>
9426 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9427 (tfile_has_memory): Remove.
9428 (init_tfile_ops): Don't set fields to_has_all_memory and
9429 to_has_memory of tfile_ops.
9430 * tracefile.c (tracefile_has_all_memory): New function.
9431 (tracefile_has_memory): New function.
9432 (init_tracefile_ops): Initialize fields to_has_all_memory and
9433 to_has_memory of 'ops'.
9435 2014-02-23 Yao Qi <yao@codesourcery.com>
9437 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9438 (ctf_thread_alive, ctf_get_trace_status): Remove.
9439 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9441 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9442 (tfile_has_stack, tfile_has_registers): Remove.
9443 (tfile_thread_alive): Remove.
9444 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9446 * tracefile.c (tracefile_has_stack): New function.
9447 (tracefile_has_registers): New function.
9448 (tracefile_thread_alive): New function.
9449 (tracefile_get_trace_status): New function.
9450 (init_tracefile_ops): New function.
9451 * tracefile.h (init_tracefile_ops): Declare.
9453 2014-02-23 Yao Qi <yao@codesourcery.com>
9455 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9456 (O_LARGEFILE): Likewise.
9457 (tfile_ops): Likewise.
9458 (TRACE_HEADER_SIZE): Likewise.
9459 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9460 (cur_data_size): Likewise.
9461 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9462 (tfile_close, tfile_files_info): Likewise.
9463 (tfile_get_trace_status): Likewise.
9464 (tfile_get_tracepoint_status): Likewise.
9465 (tfile_get_traceframe_address): Likewise.
9466 (tfile_trace_find, match_blocktype): Likewise.
9467 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9468 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9469 (tfile_get_trace_state_variable_value): Likewise.
9470 (tfile_has_all_memory, tfile_has_memory): Likewise.
9471 (tfile_has_stack, tfile_has_registers): Likewise.
9472 (tfile_thread_alive, build_traceframe_info): Likewise.
9473 (tfile_traceframe_info, init_tfile_ops): Likewise.
9474 (_initialize_tracepoint): Don't call init_tfile_ops
9475 and add_target_with_completer.
9476 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9477 exec.h, completer.h and filenames.h.
9478 (_initialize_tracefile_tfile): New function.
9480 2014-02-23 Yao Qi <yao@codesourcery.com>
9482 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9484 (HFILES_NO_SRCDIR): Add tracefile.h.
9485 * ctf.c: Include "tracefile.h".
9486 * tracefile.h: New file.
9487 * tracefile.c: New file
9488 * tracefile-tfile.c: New file.
9489 * tracepoint.c: Include "tracefile.h".
9490 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9491 (stop_reason_names): Add const.
9492 (trace_file_writer_xfree): Move it to tracefile.c.
9493 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9494 (trace_save_ctf): Likewise.
9495 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9496 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9497 (tfile_write_header, tfile_write_regblock_type): Likewise.
9498 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9499 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9500 (tfile_write_raw_data, tfile_end): Likewise.
9501 (tfile_trace_file_writer_new): Likewise.
9502 (free_uploaded_tp): Make it extern.
9503 (free_uploaded_tsv): Make it extern.
9504 (_initialize_tracepoint): Move code to register command 'tsave'
9506 * tracepoint.h (stop_reason_names): Declare.
9507 (struct trace_frame_write_ops): Move it to tracefile.h.
9508 (struct trace_file_write_ops): Likewise.
9509 (struct trace_file_writer): Likewise.
9510 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9512 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9515 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9517 (get_cores_used_by_process): New parameter num_cores, use it.
9518 (linux_xfer_osdata_processes): Pass num_cores to it.
9519 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9522 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9524 * target.c (memory_xfer_partial): Fix length arg in call to
9525 breakpoint_xfer_memory.
9527 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9530 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9531 number comes after the + or - signs. Adjust length of register
9532 name to be extracted.
9534 2014-02-20 Tom Tromey <tromey@redhat.com>
9536 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9537 (ada_varobj_ops): Mark "extern".
9539 2014-02-20 Tom Tromey <tromey@redhat.com>
9541 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9543 2014-02-20 Doug Evans <xdje42@gmail.com>
9545 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9546 All callers updated.
9547 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9548 All callers updated.
9549 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9550 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9552 2014-02-20 lin zuojian <manjian2006@gmail.com>
9553 Joel Brobecker <brobecker@adacore.com>
9554 Doug Evans <xdje42@gmail.com>
9557 * dwarf2read.c (struct die_info): New member in_process.
9558 (reset_die_in_process): New function.
9559 (process_die): Set it at the start, reset when returning.
9560 (inherit_abstract_dies): Only call process_die if origin_child_die
9561 not already being processed.
9563 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9565 * windows-nat.c (handle_unload_dll): Add function documentation.
9566 (do_initial_windows_stuff): Add comment explaining why we wait
9567 until after inferior initialization has finished before
9568 processing all DLLs.
9570 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9572 * windows-nat.c (get_module_name): Delete.
9573 (windows_get_exec_module_filename): New function, mostly
9574 inspired from get_module_name.
9575 (windows_pid_to_exec_file): Replace call to get_module_name
9576 by call to windows_get_exec_module_filename.
9578 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9580 * windows-nat.c (handle_load_dll): Rewrite this function's
9581 introductory comment. Remove code using get_module_name
9582 to get the DLL's name.
9584 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9586 * windows-nat.c (get_windows_debug_event): Ignore
9587 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9588 if windows_initialization_done == 0.
9589 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9590 Adjust implementation to always load all DLLs.
9591 (do_initial_windows_stuff): Replace call to
9592 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9594 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9596 * windows-nat.c (_initialize_windows_nat): Deprecate the
9597 "dll-symbols" command. Turn the "add-shared-symbol-files"
9598 and "assf" aliases into commands, and deprecate them as well.
9599 * NEWS: Add entry explaining that "dll-symbols" and its two
9600 aliases are now deprecated.
9602 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9604 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9605 new-line in debug string. Remove trailing spaces.
9607 2014-02-19 Stan Shebs <stan@codesourcery.com>
9609 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9611 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9613 * NEWS: Add entry for the new feature
9614 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9617 2014-02-19 Stan Shebs <stan@codesourcery.com>
9619 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9621 2014-02-19 Pedro Alves <palves@redhat.com>
9623 * common/ptid.h (struct ptid): Mention that process_stratum
9624 targets should prefer ptid.lwp.
9626 2014-02-19 Pedro Alves <palves@redhat.com>
9628 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9629 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9630 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9631 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9632 store remote thread ids rather than ptid.tid.
9633 (_initialize_remote): Adjust.
9635 2014-02-19 Tom Tromey <tromey@redhat.com>
9637 * target.c (target_get_unwinder): Rewrite.
9638 (target_get_tailcall_unwinder): Rewrite.
9639 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9640 (record_btrace_to_get_tailcall_unwinder): New function.
9641 (init_record_btrace_ops): Update.
9642 * target.h (struct target_ops) <to_get_unwinder,
9643 to_get_tailcall_unwinder>: Now function pointers. Use
9644 TARGET_DEFAULT_RETURN.
9646 2014-02-19 Tom Tromey <tromey@redhat.com>
9648 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9650 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9652 2014-02-19 Tom Tromey <tromey@redhat.com>
9654 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9656 * target-delegates.c: Rebuild.
9657 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9658 TARGET_DEFAULT_FUNC.
9659 * target.c (default_target_decr_pc_after_break): Rename from
9660 forward_target_decr_pc_after_break. Simplify.
9661 (target_decr_pc_after_break): Rely on delegation.
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9665 * target.c (update_current_target): Do not INHERIT to_doc or
9666 to_magic. Do not de_fault to_open or to_close.
9668 2014-02-19 Tom Tromey <tromey@redhat.com>
9670 * gcore.h (objfile_find_memory_regions): Declare.
9671 * gcore.c (objfile_find_memory_regions): No longer static. Add
9673 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9674 * exec.c: Include gcore.h.
9675 (exec_set_find_memory_regions): Remove.
9676 (exec_find_memory_regions): Remove.
9677 (exec_do_find_memory_regions): Remove.
9678 (init_exec_ops): Update.
9679 * defs.h (exec_set_find_memory_regions): Remove.
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9683 * target-delegates.c: Rebuild.
9684 * target.h (struct target_ops) <to_extra_thread_info,
9685 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9686 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9687 not 0, in TARGET_DEFAULT_RETURN.
9689 2014-02-19 Tom Tromey <tromey@redhat.com>
9691 * target.c (complete_target_initialization): Remove casts. Use
9692 return_zero_has_execution.
9693 (return_zero): Add "ignore" argument.
9694 (return_zero_has_execution): New function.
9695 (init_dummy_target): Remove casts. Use
9696 return_zero_has_execution.
9698 2014-02-19 Tom Tromey <tromey@redhat.com>
9700 * target.c (update_current_target): Update comments. Do not
9703 2014-02-19 Tom Tromey <tromey@redhat.com>
9705 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9707 * corelow.c (core_read_description): Delegate when needed.
9708 * remote.c (remote_read_description): Delegate when needed.
9709 * target-delegates.c: Rebuild.
9710 * target.c (target_read_description): Rewrite.
9711 * target.h (struct target_ops) <to_read_description>: Update
9712 comment. Use TARGET_DEFAULT_RETURN.
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9716 * target-delegates.c: Rebuild.
9717 * target.c (update_current_target): Don't inherit or default
9719 (find_default_run_target): Check against delegate_can_run.
9720 * target.h (struct target_ops) <to_can_run>: Use
9721 TARGET_DEFAULT_RETURN.
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9725 * target-delegates.c: Rebuild.
9726 * target.c (target_disconnect): Unconditionally delegate.
9727 * target.h (struct target_ops) <to_disconnect>: Use
9728 TARGET_DEFAULT_NORETURN.
9730 2014-02-19 Tom Tromey <tromey@redhat.com>
9732 * record.c (record_stop): Unconditionally delegate.
9733 * target-delegates.c: Rebuild.
9734 * target.c (target_stop_recording): Unconditionally delegate.
9735 * target.h (struct target_ops) <to_stop_recording>: Use
9736 TARGET_DEFAULT_IGNORE.
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9740 * target-delegates.c: Rebuild.
9741 * target.c (target_enable_btrace): Unconditionally delegate.
9742 * target.h (struct target_ops) <to_enable_btrace>: Use
9743 TARGET_DEFAULT_NORETURN.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * target-delegates.c: Rebuild.
9748 * target.c (target_read_btrace): Unconditionally delegate.
9749 * target.h (struct target_ops) <to_read_btrace>: Use
9750 TARGET_DEFAULT_NORETURN.
9752 2014-02-19 Tom Tromey <tromey@redhat.com>
9754 * target-delegates.c: Rebuild.
9755 * target.c (target_teardown_btrace): Unconditionally delegate.
9756 * target.h (struct target_ops) <to_teardown_btrace>: Use
9757 TARGET_DEFAULT_NORETURN.
9759 2014-02-19 Tom Tromey <tromey@redhat.com>
9761 * target-delegates.c: Rebuild.
9762 * target.c (target_disable_btrace): Unconditionally delegate.
9763 * target.h (struct target_ops) <to_disable_btrace>: Use
9764 TARGET_DEFAULT_NORETURN.
9766 2014-02-19 Tom Tromey <tromey@redhat.com>
9768 * target-delegates.c: Rebuild.
9769 * target.c (default_search_memory): New function.
9770 (simple_search_memory): Update comment.
9771 (target_search_memory): Unconditionally delegate.
9772 * target.h (struct target_ops) <to_search_memory>: Use
9773 TARGET_DEFAULT_FUNC.
9775 2014-02-19 Tom Tromey <tromey@redhat.com>
9777 * auxv.c (default_auxv_parse): No longer static.
9778 (target_auxv_parse): Unconditionally delegate.
9779 * auxv.h (default_auxv_parse): Declare.
9780 * target-delegates.c: Rebuild.
9781 * target.c: Include auxv.h.
9782 * target.h (struct target_ops) <to_auxv_parse>: Use
9783 TARGET_DEFAULT_FUNC.
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9787 * target-delegates.c: Rebuild.
9788 * target.c (target_memory_map): Unconditionally delegate.
9789 * target.h (struct target_ops) <to_memory_map>: Use
9790 TARGET_DEFAULT_RETURN.
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9794 * target-delegates.c: Rebuild.
9795 * target.c (target_thread_alive): Unconditionally delegate.
9796 * target.h (struct target_ops) <to_thread_alive>: Use
9797 TARGET_DEFAULT_RETURN.
9799 2014-02-19 Tom Tromey <tromey@redhat.com>
9801 * target-delegates.c: Rebuild.
9802 * target.c (target_save_record): Unconditionally delegate.
9803 * target.h (struct target_ops) <to_save_record>: Use
9804 TARGET_DEFAULT_NORETURN.
9806 2014-02-19 Tom Tromey <tromey@redhat.com>
9808 * target-delegates.c: Rebuild.
9809 * target.c (target_delete_record): Unconditionally delegate.
9810 * target.h (struct target_ops) <to_delete_record>: Use
9811 TARGET_DEFAULT_NORETURN.
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9815 * target-delegates.c: Rebuild.
9816 * target.c (target_record_is_replaying): Unconditionally
9818 * target.h (struct target_ops) <to_record_is_replaying>: Use
9819 TARGET_DEFAULT_RETURN.
9821 2014-02-19 Tom Tromey <tromey@redhat.com>
9823 * target-delegates.c: Rebuild.
9824 * target.c (target_goto_record_begin): Unconditionally delegate.
9825 * target.h (struct target_ops) <to_goto_record_begin>: Use
9826 TARGET_DEFAULT_NORETURN.
9828 2014-02-19 Tom Tromey <tromey@redhat.com>
9830 * target-delegates.c: Rebuild.
9831 * target.c (target_goto_record_end): Unconditionally delegate.
9832 * target.h (struct target_ops) <to_goto_record_end>: Use
9833 TARGET_DEFAULT_NORETURN.
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9837 * target-delegates.c: Rebuild.
9838 * target.c (target_goto_record): Unconditionally delegate.
9839 * target.h (struct target_ops) <to_goto_record>: Use
9840 TARGET_DEFAULT_NORETURN.
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9844 * target-delegates.c: Rebuild.
9845 * target.c (target_insn_history): Unconditionally delegate.
9846 * target.h (struct target_ops) <to_insn_history>: Use
9847 TARGET_DEFAULT_NORETURN.
9849 2014-02-19 Tom Tromey <tromey@redhat.com>
9851 * target-delegates.c: Rebuild.
9852 * target.c (target_insn_history_from): Unconditionally delegate.
9853 * target.h (struct target_ops) <to_insn_history_from>: Use
9854 TARGET_DEFAULT_NORETURN.
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9858 * target-delegates.c: Rebuild.
9859 * target.c (target_insn_history_range): Unconditionally delegate.
9860 * target.h (struct target_ops) <to_insn_history_range>: Use
9861 TARGET_DEFAULT_NORETURN.
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9865 * target-delegates.c: Rebuild.
9866 * target.c (target_call_history): Unconditionally delegate.
9867 * target.h (struct target_ops) <to_call_history>: Use
9868 TARGET_DEFAULT_NORETURN.
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target-delegates.c: Rebuild.
9873 * target.c (target_call_history_from): Unconditionally delegate.
9874 * target.h (struct target_ops) <to_call_history_from>: Use
9875 TARGET_DEFAULT_NORETURN.
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target-delegates.c: Rebuild.
9880 * target.c (target_call_history_range): Unconditionally delegate.
9881 * target.h (struct target_ops) <to_call_history_range>: Use
9882 TARGET_DEFAULT_NORETURN.
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9886 * target-delegates.c: Rebuild.
9887 * target.c (target_verify_memory): Unconditionally delegate.
9888 * target.h (struct target_ops) <to_verify_memory>: Use
9889 TARGET_DEFAULT_NORETURN.
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9893 * target-delegates.c: Rebuild.
9894 * target.c (target_core_of_thread): Unconditionally delegate.
9895 * target.h (struct target_ops) <to_core_of_thread>: Use
9896 TARGET_DEFAULT_RETURN.
9898 2014-02-19 Tom Tromey <tromey@redhat.com>
9900 * target-delegates.c: Rebuild.
9901 * target.c (target_flash_done): Unconditionally delegate.
9902 * target.h (struct target_ops) <to_flash_done>: Use
9903 TARGET_DEFAULT_NORETURN.
9905 2014-02-19 Tom Tromey <tromey@redhat.com>
9907 * target-delegates.c: Rebuild.
9908 * target.c (target_flash_erase): Unconditionally delegate.
9909 * target.h (struct target_ops) <to_flash_erase>: Use
9910 TARGET_DEFAULT_NORETURN.
9912 2014-02-19 Tom Tromey <tromey@redhat.com>
9914 * target-delegates.c: Rebuild.
9915 * target.c (target_get_section_table): Unconditionally delegate.
9916 * target.h (struct target_ops) <to_get_section_table>: Use
9917 TARGET_DEFAULT_RETURN.
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9921 * target-delegates.c: Rebuild.
9922 * target.c (target_pid_to_str): Unconditionally delegate.
9923 (init_dummy_target): Don't initialize to_pid_to_str.
9924 (default_pid_to_str): Rename from dummy_pid_to_str.
9925 * target.h (struct target_ops) <to_pid_to_str>: Use
9926 TARGET_DEFAULT_FUNC.
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9930 * target-delegates.c: Rebuild.
9931 * target.c (target_find_new_threads): Unconditionally delegate.
9932 * target.h (struct target_ops) <to_find_new_threads>: Use
9933 TARGET_DEFAULT_RETURN.
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9937 * target-delegates.c: Rebuild.
9938 * target.c (target_program_signals): Unconditionally delegate.
9939 * target.h (struct target_ops) <to_program_signals>: Use
9940 TARGET_DEFAULT_IGNORE.
9942 2014-02-19 Tom Tromey <tromey@redhat.com>
9944 * target-delegates.c: Rebuild.
9945 * target.c (target_pass_signals): Unconditionally delegate.
9946 * target.h (struct target_ops) <to_pass_signals>: Use
9947 TARGET_DEFAULT_IGNORE.
9949 2014-02-19 Tom Tromey <tromey@redhat.com>
9951 * target-delegates.c: Rebuild.
9952 * target.c (default_mourn_inferior): New function.
9953 (target_mourn_inferior): Unconditionally delegate.
9954 * target.h (struct target_ops) <to_mourn_inferior>: Use
9955 TARGET_DEFAULT_FUNC.
9957 2014-02-19 Tom Tromey <tromey@redhat.com>
9959 * target-delegates.c: Rebuild.
9960 * target.c (default_follow_fork): New function.
9961 (target_follow_fork): Unconditionally delegate.
9962 * target.h (struct target_ops) <to_follow_fork>: Use
9963 TARGET_DEFAULT_FUNC.
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9967 * target-delegates.c: Rebuild.
9968 * target.c (target_kill): Unconditionally delegate.
9969 * target.h (struct target_ops) <to_kill>: Use
9970 TARGET_DEFAULT_NORETURN.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target-delegates.c: Rebuild.
9975 * target.c (target_masked_watch_num_registers): Unconditionally
9977 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9978 Use TARGET_DEFAULT_RETURN.
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9982 * target-delegates.c: Rebuild.
9983 * target.c (target_remove_mask_watchpoint): Unconditionally
9985 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9986 TARGET_DEFAULT_RETURN.
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9990 * target-delegates.c: Rebuild.
9991 * target.c (target_insert_mask_watchpoint): Unconditionally
9993 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9994 TARGET_DEFAULT_RETURN.
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9998 * target-delegates.c: Rebuild.
9999 * target.c (target_ranged_break_num_registers): Unconditionally
10001 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10002 Use TARGET_DEFAULT_RETURN.
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10006 * target-delegates.c: Rebuild.
10007 * target.c (target_fetch_registers): Unconditionally delegate.
10008 * target.h (struct target_ops) <to_fetch_registers>: Use
10009 TARGET_DEFAULT_NORETURN.
10011 2014-02-19 Tom Tromey <tromey@redhat.com>
10013 * target-delegates.c: Rebuild.
10014 * target.c (update_current_target): Don't inherit or default
10016 * target.h (struct target_ops) <to_stop>: Use
10017 TARGET_DEFAULT_IGNORE.
10019 2014-02-19 Tom Tromey <tromey@redhat.com>
10021 * target-delegates.c: Rebuild.
10022 * target.c (update_current_target): Don't inherit or default
10023 to_can_run_breakpoint_commands.
10024 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10025 Use TARGET_DEFAULT_RETURN.
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10029 * target-delegates.c: Rebuild.
10030 * target.c (update_current_target): Don't inherit or default
10031 to_supports_evaluation_of_breakpoint_conditions.
10032 * target.h (struct target_ops)
10033 <to_supports_evaluation_of_breakpoint_conditions>: Use
10034 TARGET_DEFAULT_RETURN.
10036 2014-02-19 Tom Tromey <tromey@redhat.com>
10038 * target-delegates.c: Rebuild.
10039 * target.c (update_current_target): Don't inherit or default
10040 to_augmented_libraries_svr4_read.
10041 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10042 Use TARGET_DEFAULT_RETURN.
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * target-delegates.c: Rebuild.
10047 * target.c (update_current_target): Don't inherit or default
10049 * target.h (struct target_ops) <to_can_use_agent>: Use
10050 TARGET_DEFAULT_RETURN.
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10054 * target-delegates.c: Rebuild.
10055 * target.c (update_current_target): Don't inherit or default
10057 * target.h (struct target_ops) <to_use_agent>: 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
10064 to_traceframe_info.
10065 (return_null): Remove.
10066 * target.h (struct target_ops) <to_traceframe_info>: Use
10067 TARGET_DEFAULT_RETURN.
10069 2014-02-19 Tom Tromey <tromey@redhat.com>
10071 * target-delegates.c: Rebuild.
10072 * target.c (update_current_target): Don't inherit or default
10073 to_static_tracepoint_markers_by_strid.
10074 * target.h (struct target_ops)
10075 <to_static_tracepoint_markers_by_strid>: Use
10076 TARGET_DEFAULT_NORETURN.
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10080 * target-delegates.c: Rebuild.
10081 * target.c (update_current_target): Don't inherit or default
10082 to_static_tracepoint_marker_at.
10083 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10084 Use TARGET_DEFAULT_RETURN.
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target-delegates.c: Rebuild.
10089 * target.c (update_current_target): Don't inherit or default
10090 to_set_permissions.
10091 * target.h (struct target_ops) <to_set_permissions>: Use
10092 TARGET_DEFAULT_IGNORE.
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10096 * target-delegates.c: Rebuild.
10097 * target.c (update_current_target): Don't inherit or default
10098 to_get_tib_address.
10099 * target.h (struct target_ops) <to_get_tib_address>: Use
10100 TARGET_DEFAULT_NORETURN.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target-delegates.c: Rebuild.
10105 * target.c (update_current_target): Don't inherit or default
10106 to_set_trace_notes.
10107 * target.h (struct target_ops) <to_set_trace_notes>: Use
10108 TARGET_DEFAULT_RETURN.
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10112 * target-delegates.c: Rebuild.
10113 * target.c (update_current_target): Don't initialize
10114 to_set_trace_buffer_size.
10115 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10116 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
10123 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10124 TARGET_DEFAULT_IGNORE.
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10128 * target-delegates.c: Rebuild.
10129 * target.c (update_current_target): Don't inherit or default
10130 to_set_disconnected_tracing.
10131 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10132 TARGET_DEFAULT_IGNORE.
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10136 * target-delegates.c: Rebuild.
10137 * target.c (update_current_target): Don't inherit or default
10138 to_get_min_fast_tracepoint_insn_len.
10139 (return_minus_one): Remove.
10140 * target.h (struct target_ops)
10141 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_raw_trace_data.
10148 * target.h (struct target_ops) <to_get_raw_trace_data>: 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_upload_trace_state_variables.
10156 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10157 Use 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 inherit or default
10163 to_upload_tracepoints.
10164 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10165 TARGET_DEFAULT_RETURN.
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_save_trace_data.
10172 * target.h (struct target_ops) <to_save_trace_data>: Use
10173 TARGET_DEFAULT_NORETURN.
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_get_trace_state_variable_value.
10180 * target.h (struct target_ops)
10181 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
10188 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10190 2014-02-19 Tom Tromey <tromey@redhat.com>
10192 * target-delegates.c: Rebuild.
10193 * target.c (update_current_target): Don't inherit or default
10195 * target.h (struct target_ops) <to_trace_stop>: Use
10196 TARGET_DEFAULT_NORETURN.
10198 2014-02-19 Tom Tromey <tromey@redhat.com>
10200 * target-delegates.c: Rebuild.
10201 * target.c (update_current_target): Don't inherit or default
10202 to_get_tracepoint_status.
10203 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10204 TARGET_DEFAULT_NORETURN.
10206 2014-02-19 Tom Tromey <tromey@redhat.com>
10208 * target-delegates.c: Rebuild.
10209 * target.c (update_current_target): Don't inherit or default
10210 to_get_trace_status.
10211 * target.h (struct target_ops) <to_get_trace_status>: Use
10212 TARGET_DEFAULT_RETURN.
10214 2014-02-19 Tom Tromey <tromey@redhat.com>
10216 * target-delegates.c: Rebuild.
10217 * target.c (update_current_target): Don't inherit or default
10219 * target.h (struct target_ops) <to_trace_start>: Use
10220 TARGET_DEFAULT_NORETURN.
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10224 * target-delegates.c: Rebuild.
10225 * target.c (update_current_target): Don't inherit or default
10226 to_trace_set_readonly_regions.
10227 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10228 Use TARGET_DEFAULT_NORETURN.
10230 2014-02-19 Tom Tromey <tromey@redhat.com>
10232 * target-delegates.c: Rebuild.
10233 * target.c (update_current_target): Don't inherit or default
10234 to_disable_tracepoint.
10235 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10236 TARGET_DEFAULT_NORETURN.
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10240 * target-delegates.c: Rebuild.
10241 * target.c (update_current_target): Don't inherit or default
10242 to_enable_tracepoint.
10243 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10244 TARGET_DEFAULT_NORETURN.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * target-delegates.c: Rebuild.
10249 * target.c (update_current_target): Don't inherit or default
10250 to_download_trace_state_variable.
10251 * target.h (struct target_ops) <to_download_trace_state_variable>:
10252 Use TARGET_DEFAULT_NORETURN.
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10256 * target-delegates.c: Rebuild.
10257 * target.c (update_current_target): Don't inherit or default
10258 to_can_download_tracepoint.
10259 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10260 TARGET_DEFAULT_RETURN.
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10264 * target-delegates.c: Rebuild.
10265 * target.c (update_current_target): Don't inherit or default
10266 to_download_tracepoint.
10267 * target.h (struct target_ops) <to_download_tracepoint>: Use
10268 TARGET_DEFAULT_NORETURN.
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10272 * target-delegates.c: Rebuild.
10273 * target.c (update_current_target): Don't inherit or default
10275 * target.h (struct target_ops) <to_trace_init>: Use
10276 TARGET_DEFAULT_RETURN.
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10280 * target-delegates.c: Rebuild.
10281 * target.c (update_current_target): Don't inherit or default
10282 to_supports_string_tracing.
10283 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10284 TARGET_DEFAULT_RETURN.
10286 2014-02-19 Tom Tromey <tromey@redhat.com>
10288 * target-delegates.c: Rebuild.
10289 * target.c (update_current_target): Don't inherit or default
10290 to_supports_enable_disable_tracepoint.
10291 * target.h (struct target_ops)
10292 <to_supports_enable_disable_tracepoint>: Use
10293 TARGET_DEFAULT_RETURN.
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_supports_multi_process.
10300 * target.h (struct target_ops) <to_supports_multi_process>: Use
10301 TARGET_DEFAULT_RETURN.
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_get_ada_task_ptid.
10308 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10309 TARGET_DEFAULT_FUNC.
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_thread_architecture.
10316 * target.h (struct target_ops) <to_thread_architecture>: Use
10317 TARGET_DEFAULT_FUNC.
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
10323 to_execution_direction.
10324 * target.h (struct target_ops) <to_execution_direction>: Use
10325 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
10332 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10333 TARGET_DEFAULT_RETURN.
10334 (target_can_execute_reverse): Unconditionally delegate.
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10338 * target-delegates.c: Rebuild.
10339 * target.c (update_current_target): Don't inherit or default
10341 (dummy_goto_bookmark): Remove.
10342 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10343 * target.h (struct target_ops) <to_goto_bookmark>: Use
10344 TARGET_DEFAULT_NORETURN.
10346 2014-02-19 Tom Tromey <tromey@redhat.com>
10348 * target-delegates.c: Rebuild.
10349 * target.c (update_current_target): Don't inherit or default
10351 (dummy_get_bookmark): Remove.
10352 (init_dummy_target): Don't inherit or default to_get_bookmark.
10353 * target.h (struct target_ops) <to_get_bookmark>: Use
10354 TARGET_DEFAULT_NORETURN
10356 2014-02-19 Tom Tromey <tromey@redhat.com>
10358 * target-delegates.c: Rebuild.
10359 * target.c (update_current_target): Don't inherit or default
10360 to_make_corefile_notes.
10361 (init_dummy_target): Don't initialize to_make_corefile_notes.
10362 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10363 TARGET_DEFAULT_FUNC.
10365 2014-02-19 Tom Tromey <tromey@redhat.com>
10367 * target-delegates.c: Rebuild.
10368 * target.c (update_current_target): Don't inherit or default
10369 to_find_memory_regions.
10370 (init_dummy_target): Don't initialize to_find_memory_regions.
10371 * target.h (struct target_ops) <to_find_memory_regions>: Use
10372 TARGET_DEFAULT_FUNC.
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10376 * target-delegates.c: Rebuild.
10377 * target.c (update_current_target): Don't inherit or default
10379 * target.h (struct target_ops) <to_log_command>: Use
10380 TARGET_DEFAULT_IGNORE.
10381 (target_log_command): Unconditionally delegate.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target-delegates.c: Rebuild.
10386 * target.c (update_current_target): Don't inherit or default
10387 to_pid_to_exec_file.
10388 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10389 TARGET_DEFAULT_RETURN.
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10393 * target-delegates.c: Rebuild.
10394 * target.c (update_current_target): Don't inherit or default
10396 (target_thread_name): Unconditionally delegate.
10397 * target.h (struct target_ops) <to_thread_name>: Use
10398 TARGET_DEFAULT_RETURN.
10400 2014-02-19 Tom Tromey <tromey@redhat.com>
10402 * target-delegates.c: Rebuild.
10403 * target.c (update_current_target): Don't inherit or default
10404 to_extra_thread_info.
10405 * target.h (struct target_ops) <to_extra_thread_info>: Use
10406 TARGET_DEFAULT_RETURN.
10408 2014-02-19 Tom Tromey <tromey@redhat.com>
10410 * target-delegates.c: Rebuild.
10411 * target.c (update_current_target): Don't inherit or default
10413 * target.h (struct target_ops) <to_has_exited>: Use
10414 TARGET_DEFAULT_RETURN..
10416 2014-02-19 Tom Tromey <tromey@redhat.com>
10418 * target-delegates.c: Rebuild.
10419 * target.c (update_current_target): Don't inherit or default
10420 to_set_syscall_catchpoint.
10421 (return_one): Remove.
10422 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10423 TARGET_DEFAULT_RETURN.
10425 2014-02-19 Tom Tromey <tromey@redhat.com>
10427 * target-delegates.c: Rebuild.
10428 * target.c (update_current_target): Don't inherit or default
10429 to_insert_exec_catchpoint.
10430 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10431 TARGET_DEFAULT_RETURN.
10433 2014-01-08 Tom Tromey <tromey@redhat.com>
10435 * target-delegates.c: Rebuild.
10436 * target.c (update_current_target): Don't inherit or default
10437 to_insert_exec_catchpoint.
10438 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10439 TARGET_DEFAULT_RETURN.
10441 2014-02-19 Tom Tromey <tromey@redhat.com>
10443 * target-delegates.c: Rebuild.
10444 * target.c (update_current_target): Don't inherit or default
10445 to_remove_vfork_catchpoint.
10446 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: 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_insert_vfork_catchpoint.
10454 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: 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
10461 to_remove_fork_catchpoint.
10462 * target.h (struct target_ops) <to_remove_fork_catchpoint>: 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_insert_fork_catchpoint.
10470 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10471 TARGET_DEFAULT_RETURN.
10473 2014-02-19 Tom Tromey <tromey@redhat.com>
10475 * target-delegates.c: Rebuild.
10476 * target.c (update_current_target): Don't inherit or default
10477 to_post_startup_inferior.
10478 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10479 TARGET_DEFAULT_IGNORE.
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10483 * target-delegates.c: Rebuild.
10484 * target.c (update_current_target): Don't inherit or default
10486 * target.h (struct target_ops) <to_load>: Use
10487 TARGET_DEFAULT_NORETURN.
10489 2014-02-19 Tom Tromey <tromey@redhat.com>
10491 * target-delegates.c: Rebuild.
10492 * target.c (update_current_target): Don't inherit or default
10494 * target.h (struct target_ops) <to_terminal_info>: Use
10495 TARGET_DEFAULT_FUNC.
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10499 * target-delegates.c: Rebuild.
10500 * target.c (update_current_target): Don't inherit or default
10501 to_terminal_save_ours.
10502 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10503 TARGET_DEFAULT_IGNORE.
10505 2014-02-19 Tom Tromey <tromey@redhat.com>
10507 * target-delegates.c: Rebuild.
10508 * target.c (update_current_target): Don't inherit or default
10510 * target.h (struct target_ops) <to_terminal_ours>: Use
10511 TARGET_DEFAULT_IGNORE.
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10515 * target-delegates.c: Rebuild.
10516 * target.c (update_current_target): Don't inherit or default
10517 to_terminal_ours_for_output.
10518 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10519 TARGET_DEFAULT_IGNORE.
10521 2014-02-19 Tom Tromey <tromey@redhat.com>
10523 * target-delegates.c: Rebuild.
10524 * target.c (update_current_target): Don't inherit or default
10525 to_terminal_inferior.
10526 * target.h (struct target_ops) <to_terminal_inferior>: Use
10527 TARGET_DEFAULT_IGNORE.
10529 2014-02-19 Tom Tromey <tromey@redhat.com>
10531 * target-delegates.c: Rebuild.
10532 * target.c (update_current_target): Don't inherit or default
10534 * target.h (struct target_ops) <to_terminal_init>: Use
10535 TARGET_DEFAULT_IGNORE.
10537 2014-02-19 Tom Tromey <tromey@redhat.com>
10539 * target-delegates.c: Rebuild.
10540 * target.c (update_current_target): Don't inherit or default
10541 to_can_accel_watchpoint_condition.
10542 * target.h (struct target_ops)
10543 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10545 2014-02-19 Tom Tromey <tromey@redhat.com>
10547 * target-delegates.c: Rebuild.
10548 * target.c (update_current_target): Don't inherit or default
10549 to_region_ok_for_hw_watchpoint.
10550 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10551 Use TARGET_DEFAULT_FUNC.
10553 2014-02-19 Tom Tromey <tromey@redhat.com>
10555 * target-delegates.c: Rebuild.
10556 * target.c (update_current_target): Don't inherit or default
10557 to_watchpoint_addr_within_range.
10558 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10559 Use TARGET_DEFAULT_FUNC.
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10563 * target-delegates.c: Rebuild.
10564 * target.c (update_current_target): Don't inherit or default
10565 to_remove_watchpoint.
10566 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10567 TARGET_DEFAULT_NORETURN.
10569 2014-02-19 Tom Tromey <tromey@redhat.com>
10571 * target-delegates.c: Rebuild.
10572 * target.c (update_current_target): Don't inherit or default
10573 to_insert_watchpoint.
10574 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10575 TARGET_DEFAULT_RETURN.
10577 2014-02-19 Tom Tromey <tromey@redhat.com>
10579 * target-delegates.c: Rebuild.
10580 * target.c (update_current_target): Don't inherit or default
10581 to_remove_hw_breakpoint.
10582 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10583 TARGET_DEFAULT_RETURN.
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10587 * target-delegates.c: Rebuild.
10588 * target.c (update_current_target): Don't inherit or default
10589 to_insert_hw_breakpoint.
10590 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10591 TARGET_DEFAULT_RETURN.
10593 2014-02-19 Tom Tromey <tromey@redhat.com>
10595 * target-delegates.c: Rebuild.
10596 * target.c (update_current_target): Don't inherit or default
10597 to_can_use_hw_breakpoint.
10598 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10599 TARGET_DEFAULT_RETURN.
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10603 * target-delegates.c: Rebuild.
10604 * target.c (update_current_target): Don't inherit or default
10606 * target.h (struct target_ops) <to_files_info>: Use
10607 TARGET_DEFAULT_IGNORE.
10609 2014-02-19 Tom Tromey <tromey@redhat.com>
10611 * target-delegates.c: Rebuild.
10612 * target.c (update_current_target): Don't inherit or default
10614 * target.h (struct target_ops) <to_store>: Use
10615 TARGET_DEFAULT_NORETURN.
10617 2014-02-19 Tom Tromey <tromey@redhat.com>
10619 * target-delegates.c: Rebuild.
10620 * target.c (update_current_target): Don't inherit or default
10622 * target.h (struct target_ops) <to_post_attach>: Use
10623 TARGET_DEFAULT_IGNORE.
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10627 * target-delegates.c: Rebuild.
10628 * target.c (update_current_target): Don't inherit or default
10630 (default_rcmd): New function.
10631 (do_monitor_command): Unconditionally delegate.
10632 * target.h (struct target_ops) <to_rmcd>: Use
10633 TARGET_DEFAULT_FUNC.
10635 2014-02-19 Tom Tromey <tromey@redhat.com>
10637 * target-delegates.c: Rebuild.
10638 * target.c (init_dummy_target): Don't initialize to_attach.
10639 (target_attach): Unconditionally delegate.
10640 * target.h (struct target_ops) <to_attach>: Use
10641 TARGET_DEFAULT_FUNC.
10643 2014-02-19 Tom Tromey <tromey@redhat.com>
10645 * target-delegates.c: Rebuild.
10646 * target.c (target_detach): Unconditionally delegate.
10647 (init_dummy_target): Don't initialize to_detach.
10648 * target.h (struct target_ops) <to_detach>: Use
10649 TARGET_DEFAULT_IGNORE.
10651 2014-02-19 Tom Tromey <tromey@redhat.com>
10653 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10655 (target_augmented_libraries_svr4_read): Add argument.
10656 * target.c (update_current_target): Update.
10657 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10660 2014-02-19 Tom Tromey <tromey@redhat.com>
10662 * target.h (struct target_ops) <to_call_history_range>: Add
10664 * target.c (target_call_history_range): Add argument.
10665 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10667 (record_btrace_call_history_from): Update.
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10671 * target.h (struct target_ops) <to_call_history_from>: Add
10673 * target.c (target_call_history_from): Add argument.
10674 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target.h (struct target_ops) <to_call_history>: Add argument.
10680 * target.c (target_call_history): Add argument.
10681 * record-btrace.c (record_btrace_call_history): Add 'self'
10684 2014-02-19 Tom Tromey <tromey@redhat.com>
10686 * target.h (struct target_ops) <to_insn_history_range>: Add
10688 * target.c (target_insn_history_range): Add argument.
10689 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10691 (record_btrace_insn_history_from): Update.
10693 2014-02-19 Tom Tromey <tromey@redhat.com>
10695 * target.h (struct target_ops) <to_insn_history_from>: Add
10697 * target.c (target_insn_history_from): Add argument.
10698 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10701 2014-02-19 Tom Tromey <tromey@redhat.com>
10703 * target.h (struct target_ops) <to_insn_history>: Add argument.
10704 * target.c (target_insn_history): Add argument.
10705 * record-btrace.c (record_btrace_insn_history): Add 'self'
10708 2014-02-19 Tom Tromey <tromey@redhat.com>
10710 * target.h (struct target_ops) <to_goto_record>: Add argument.
10711 * target.c (target_goto_record): Add argument.
10712 * record-full.c (record_full_goto): Add 'self' argument.
10713 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10715 2014-02-19 Tom Tromey <tromey@redhat.com>
10717 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10718 * target.c (target_goto_record_end): Add argument.
10719 * record-full.c (record_full_goto_end): Add 'self' argument.
10720 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10722 2014-02-19 Tom Tromey <tromey@redhat.com>
10724 * target.h (struct target_ops) <to_goto_record_begin>: Add
10726 * target.c (target_goto_record_begin): Add argument.
10727 * record-full.c (record_full_goto_begin): Add 'self' argument.
10728 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10731 2014-02-19 Tom Tromey <tromey@redhat.com>
10733 * target.h (struct target_ops) <to_record_is_replaying>: Add
10735 * target.c (target_record_is_replaying): Add argument.
10736 * record-full.c (record_full_is_replaying): Add 'self' argument.
10737 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10739 (record_btrace_xfer_partial, record_btrace_store_registers)
10740 (record_btrace_prepare_to_store, record_btrace_resume)
10741 (record_btrace_wait, record_btrace_decr_pc_after_break)
10742 (record_btrace_find_new_threads, record_btrace_thread_alive):
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * target.h (struct target_ops) <to_delete_record>: Add argument.
10748 * target.c (target_delete_record): Add argument.
10749 * record-full.c (record_full_delete): Add 'self' argument.
10751 2014-02-19 Tom Tromey <tromey@redhat.com>
10753 * target.h (struct target_ops) <to_save_record>: Add argument.
10754 * target.c (target_save_record): Add argument.
10755 * record-full.c (record_full_save): Add 'self' argument.
10756 (record_full_save): Add 'self' argument.
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10760 * target.h (struct target_ops) <to_info_record>: Add argument.
10761 * target.c (target_info_record): Add argument.
10762 * record.c (info_record_command): Add argument.
10763 * record-full.c (record_full_info): Add 'self' argument.
10764 * record-btrace.c (record_btrace_info): Add 'self' argument.
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10768 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10769 * target.c (target_stop_recording): Add argument.
10770 * record.c (record_stop): Add argument.
10771 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10774 2014-02-19 Tom Tromey <tromey@redhat.com>
10776 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10777 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10778 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10780 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10781 (_initialize_amd64_linux_nat): Use it.
10782 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10783 (_initialize_i386_linux_nat): Use it.
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10787 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10788 * target.c (target_teardown_btrace): Add argument.
10789 * remote.c (remote_teardown_btrace): Add 'self' argument.
10790 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10792 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10795 2014-02-19 Tom Tromey <tromey@redhat.com>
10797 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10798 * target.c (target_disable_btrace): Add argument.
10799 * remote.c (remote_disable_btrace): Add 'self' argument.
10800 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10802 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10807 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10808 * target.c (target_enable_btrace): Add argument.
10809 * remote.c (remote_enable_btrace): Add 'self' argument.
10810 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10812 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10817 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10818 (target_can_use_agent): Add argument.
10819 * target.c (update_current_target): Update.
10820 * remote.c (remote_can_use_agent): Add 'self' argument.
10821 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10823 2014-02-19 Tom Tromey <tromey@redhat.com>
10825 * target.h (struct target_ops) <to_use_agent>: Add argument.
10826 (target_use_agent): Add argument.
10827 * target.c (update_current_target): Update.
10828 * remote.c (remote_use_agent): Add 'self' argument.
10829 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10831 2014-02-19 Tom Tromey <tromey@redhat.com>
10833 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10834 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10835 (target_traceframe_info): Add argument.
10836 * target.c (update_current_target): Update.
10837 * remote.c (remote_traceframe_info): Add 'self' argument.
10838 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target.h (target_static_tracepoint_markers_by_strid): Add
10844 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10846 * target.c (update_current_target): Update.
10847 * remote.c (struct target_ops)
10848 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10849 * linux-nat.c (struct target_ops)
10850 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10852 2014-02-19 Tom Tromey <tromey@redhat.com>
10854 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10856 (target_static_tracepoint_marker_at): Add argument.
10857 * target.c (update_current_target): Update.
10858 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10863 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10864 (target_set_permissions): Add argument.
10865 * target.c (update_current_target): Update.
10866 * remote.c (remote_set_permissions): Add 'self' argument.
10867 (remote_start_remote): Update.
10869 2014-02-19 Tom Tromey <tromey@redhat.com>
10871 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10872 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10873 (target_get_tib_address): Add argument.
10874 * target.c (update_current_target): Update.
10875 * remote.c (remote_get_tib_address): Add 'self' argument.
10877 2014-02-19 Tom Tromey <tromey@redhat.com>
10879 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10880 (target_set_trace_notes): Add argument.
10881 * target.c (update_current_target): Update.
10882 * remote.c (remote_set_trace_notes): Add 'self' argument.
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10886 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10888 (target_set_trace_buffer_size): Add argument.
10889 * target.c (update_current_target): Update.
10890 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10894 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10896 (target_set_circular_trace_buffer): Add argument.
10897 * target.c (update_current_target): Update.
10898 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10901 2014-02-19 Tom Tromey <tromey@redhat.com>
10903 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10905 (target_set_disconnected_tracing): Add argument.
10906 * target.c (update_current_target): Update.
10907 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10909 2014-02-19 Tom Tromey <tromey@redhat.com>
10911 * target.h (struct target_ops)
10912 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10913 (target_get_min_fast_tracepoint_insn_len): Add argument.
10914 * target.c (update_current_target): Update.
10915 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10920 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10922 (target_get_raw_trace_data): Add argument.
10923 * target.c (update_current_target): Update.
10924 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10928 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10930 (target_upload_trace_state_variables): Add argument.
10931 * target.c (update_current_target): Update.
10932 * remote.c (remote_upload_trace_state_variables): Add 'self'
10934 (remote_start_remote): Update.
10936 2014-02-19 Tom Tromey <tromey@redhat.com>
10938 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10940 (target_upload_tracepoints): Add argument.
10941 * target.c (update_current_target): Update.
10942 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10943 (remote_start_remote): Update.
10945 2014-02-19 Tom Tromey <tromey@redhat.com>
10947 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10948 (target_save_trace_data): Add argument.
10949 * target.c (update_current_target): Update.
10950 * remote.c (remote_save_trace_data): Add 'self' argument.
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10954 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10956 * target.h (struct target_ops)
10957 <to_get_trace_state_variable_value>: Add argument.
10958 (target_get_trace_state_variable_value): Add argument.
10959 * target.c (update_current_target): Update.
10960 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10962 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10964 2014-02-19 Tom Tromey <tromey@redhat.com>
10966 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10967 * target.h (struct target_ops) <to_trace_find>: Add argument.
10968 (target_trace_find): Add argument.
10969 * target.c (update_current_target): Update.
10970 * remote.c (remote_trace_find): Add 'self' argument.
10971 * ctf.c (ctf_trace_find): Add 'self' argument.
10973 2014-02-19 Tom Tromey <tromey@redhat.com>
10975 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10976 (target_trace_stop): Add argument.
10977 * target.c (update_current_target): Update.
10978 * remote.c (remote_trace_stop): Add 'self' argument.
10980 2014-02-19 Tom Tromey <tromey@redhat.com>
10982 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10983 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10985 (target_get_tracepoint_status): Add argument.
10986 * target.c (update_current_target): Update.
10987 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10991 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10992 * target.h (struct target_ops) <to_get_trace_status>: Add
10994 (target_get_trace_status): Add argument.
10995 * target.c (update_current_target): Update.
10996 * remote.c (remote_get_trace_status): Add 'self' argument.
10997 (remote_start_remote, remote_can_download_tracepoint): Update.
10998 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11002 * target.h (struct target_ops) <to_trace_start>: Add argument.
11003 (target_trace_start): Add argument.
11004 * target.c (update_current_target): Update.
11005 * remote.c (remote_trace_start): Add 'self' argument.
11007 2014-02-19 Tom Tromey <tromey@redhat.com>
11009 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11011 (target_trace_set_readonly_regions): Add argument.
11012 * target.c (update_current_target): Update.
11013 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11018 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11020 (target_disable_tracepoint): Add argument.
11021 * target.c (update_current_target): Update.
11022 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11026 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11028 (target_enable_tracepoint): Add argument.
11029 * target.c (update_current_target): Update.
11030 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11032 2014-02-19 Tom Tromey <tromey@redhat.com>
11034 * target.h (struct target_ops) <to_download_trace_state_variable>:
11036 (target_download_trace_state_variable): Add argument.
11037 * target.c (update_current_target): Update.
11038 * remote.c (remote_download_trace_state_variable): Add 'self'
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11043 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11045 (target_can_download_tracepoint): Add argument.
11046 * target.c (update_current_target): Update.
11047 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11049 2014-02-19 Tom Tromey <tromey@redhat.com>
11051 * target.h (struct target_ops) <to_download_tracepoint>: Add
11053 (target_download_tracepoint): Add argument.
11054 * target.c (update_current_target): Update.
11055 * remote.c (remote_download_tracepoint): Add 'self' argument.
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11059 * target.h (struct target_ops) <to_trace_init>: Add argument.
11060 (target_trace_init): Add argument.
11061 * target.c (update_current_target): Update.
11062 * remote.c (remote_trace_init): Add 'self' argument.
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11066 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11067 * target.c (target_fileio_readlink): Add argument.
11068 * remote.c (remote_hostio_readlink): Add 'self' argument.
11069 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11071 2014-02-19 Tom Tromey <tromey@redhat.com>
11073 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11074 * target.c (target_fileio_unlink): Add argument.
11075 * remote.c (remote_hostio_unlink): Add 'self' argument.
11076 (remote_file_delete): Update.
11077 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11079 2014-02-19 Tom Tromey <tromey@redhat.com>
11081 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11082 * target.c (target_fileio_close): Add argument.
11083 * remote.c (remote_hostio_close): Add 'self' argument.
11084 (remote_hostio_close_cleanup): Update.
11085 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11087 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11089 2014-02-19 Tom Tromey <tromey@redhat.com>
11091 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11092 * target.c (target_fileio_pread): Add argument.
11093 * remote.c (remote_hostio_pread): Add 'self' argument.
11094 (remote_bfd_iovec_pread, remote_file_get): Update.
11095 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11097 2014-02-19 Tom Tromey <tromey@redhat.com>
11099 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11100 * target.c (target_fileio_pwrite): Add argument.
11101 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11102 (remote_file_put): Update.
11103 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11107 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11108 * target.c (target_fileio_open): Add argument.
11109 * remote.c (remote_hostio_open): Add 'self' argument.
11110 (remote_bfd_iovec_open): Add 'self' argument.
11111 (remote_file_put): Add 'self' argument.
11112 (remote_file_get): Add 'self' argument.
11113 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11117 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11119 (target_can_run_breakpoint_commands): Add argument.
11120 * target.c (update_current_target): Update.
11121 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11123 (remote_insert_breakpoint): Add 'self' argument.
11124 (remote_insert_hw_breakpoint): Add 'self' argument.
11125 (remote_can_run_breakpoint_commands): Add 'self' argument.
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * target.h (struct target_ops)
11130 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11131 (target_supports_evaluation_of_breakpoint_conditions): Add
11133 * target.c (update_current_target): Update.
11134 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11136 (remote_insert_breakpoint): Add 'self' argument.
11137 (remote_insert_hw_breakpoint): Add 'self' argument.
11138 (remote_supports_cond_breakpoints): Add 'self' argument.
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11142 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11144 (target_supports_string_tracing): Add argument.
11145 * target.c (update_current_target): Update.
11146 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11148 2014-02-19 Tom Tromey <tromey@redhat.com>
11150 * target.h (struct target_ops)
11151 <to_supports_disable_randomization>: Add argument.
11152 * target.c (find_default_supports_disable_randomization): Add
11154 (target_supports_disable_randomization): Add argument.
11155 (find_default_supports_disable_randomization): Add 'self'
11157 * remote.c (extended_remote_supports_disable_randomization): Add
11159 (remote_supports_disable_randomization): Add 'self' argument.
11160 (extended_remote_create_inferior): Update.
11161 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target.h (struct target_ops)
11167 <to_supports_enable_disable_tracepoint>: Add argument.
11168 (target_supports_enable_disable_tracepoint): Add argument.
11169 * target.c (update_current_target): Update.
11170 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11175 * target.h (struct target_ops) <to_supports_multi_process>: Add
11177 (target_supports_multi_process): Add argument.
11178 * target.c (update_current_target): Update.
11179 * remote.c (remote_supports_multi_process): Add 'self' argument.
11180 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11182 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11185 2014-02-19 Tom Tromey <tromey@redhat.com>
11187 * target.h (struct target_ops) <to_execution_direction>: Add
11189 (target_execution_direction): Add argument.
11190 * target.c (default_execution_direction): Add 'self' argument.
11191 * record-full.c (record_full_execution_direction): Add 'self'
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11196 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11198 (target_can_execute_reverse): Add argument.
11199 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11200 * record-full.c (record_full_can_execute_reverse): Add 'self'
11202 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11207 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11208 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11210 (target_get_ada_task_ptid): Add argument.
11211 * target.c (update_current_target): Update.
11212 (default_get_ada_task_ptid): Add 'self' argument.
11213 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11214 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11215 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11217 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11219 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11221 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11223 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11224 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11227 2014-02-19 Tom Tromey <tromey@redhat.com>
11229 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11230 (target_goto_bookmark): Add argument.
11231 * target.c (dummy_goto_bookmark): Add 'self' argument.
11232 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11234 2014-02-19 Tom Tromey <tromey@redhat.com>
11236 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11237 (target_get_bookmark): Add argument.
11238 * target.c (dummy_get_bookmark): Add 'self' argument.
11239 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11245 (target_make_corefile_notes): Add argument.
11246 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11247 * procfs.c (procfs_make_note_section): Add 'self' argument.
11248 (procfs_make_note_section): Add 'self' argument.
11249 (procfs_make_note_section): Add 'self' argument.
11250 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11252 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11253 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11254 * exec.c (exec_make_note_section): Add 'self' argument.
11255 (exec_make_note_section): Add 'self' argument.
11257 2014-02-19 Tom Tromey <tromey@redhat.com>
11259 * target.h (struct target_ops) <to_find_memory_regions>: Add
11261 (target_find_memory_regions): Add argument.
11262 * target.c (dummy_find_memory_regions): Add 'self' argument.
11263 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11264 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11265 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11266 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11267 * exec. (exec_do_find_memory_regions): New global.
11268 (exec_set_find_memory_regions): Rewrite.
11269 (exec_find_memory_regions): New function.
11270 (init_exec_ops): Use exec_find_memory_regions.
11272 2014-02-19 Tom Tromey <tromey@redhat.com>
11274 * target.h (struct target_ops) <to_supports_non_stop>: Add
11276 * target.c (find_default_supports_non_stop): Add argument.
11277 (target_supports_non_stop): Add argument.
11278 (find_default_supports_non_stop): Add 'self' argument.
11279 * remote.c (remote_supports_non_stop): Add 'self' argument.
11280 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11282 2014-02-19 Tom Tromey <tromey@redhat.com>
11284 * target.h (struct target_ops) <to_log_command>: Add argument.
11285 (target_log_command): Add argument.
11286 * serial.h (serial_log_command): Add 'self' argument.
11287 * serial.c (serial_log_command): Add 'self' argument.
11289 2014-02-19 Tom Tromey <tromey@redhat.com>
11291 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11292 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11294 (target_pid_to_exec_file): Add argument.
11295 * target.c (debug_to_pid_to_exec_file): Add argument.
11296 (update_current_target): Update.
11297 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11298 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11299 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11300 (linux_handle_extended_wait): Update.
11301 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11302 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11303 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11304 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11308 * target.h (struct target_ops) <to_rcmd>: Add argument.
11309 (target_rcmd): Add argument.
11310 * target.c (debug_to_rcmd): Add argument.
11311 (update_current_target, do_monitor_command): Update.
11312 * remote.c (remote_rcmd): Add 'self' argument.
11313 * monitor.c (monitor_rcmd): Add 'self' argument.
11315 2014-02-19 Tom Tromey <tromey@redhat.com>
11317 * windows-nat.c (windows_stop): Add 'self' argument.
11318 * target.h (struct target_ops) <to_stop>: Add argument.
11319 * target.c (target_stop): Add argument.
11320 (debug_to_stop): Add argument.
11321 (update_current_target): Update.
11322 * remote.c (remote_stop): Add 'self' argument.
11323 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11324 (gdbsim_cntrl_c): Update.
11325 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11326 * procfs.c (procfs_stop): Add 'self' argument.
11327 * nto-procfs.c (procfs_stop): Add 'self' argument.
11328 * monitor.c (monitor_stop): Add 'self' argument.
11329 (monitor_open): Update.
11330 * linux-nat.c (linux_nat_stop): Add argument.
11331 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11332 * gnu-nat.c (gnu_stop): Add 'self' argument.
11333 * darwin-nat.c (darwin_stop): Add 'self' argument.
11335 2014-02-19 Tom Tromey <tromey@redhat.com>
11337 * target.h (struct target_ops) <to_thread_name>: Add argument.
11338 * target.c (target_thread_name): Add argument.
11339 (update_current_target): Update.
11340 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11344 * target.h (struct target_ops) <to_extra_thread_info>: Add
11346 (target_extra_thread_info): Add argument.
11347 * target.c (update_current_target): Update.
11348 * remote.c (remote_threads_extra_info): Add 'self' argument.
11349 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11351 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11352 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11353 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11355 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11357 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11359 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11362 2014-02-19 Tom Tromey <tromey@redhat.com>
11364 * target.h (struct target_ops) <to_program_signals>: Add argument.
11365 * target.c (target_program_signals): Add argument.
11366 * remote.c (remote_program_signals): Add 'self' argument.
11368 2014-02-19 Tom Tromey <tromey@redhat.com>
11370 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11371 * target.c (target_pass_signals): Add argument.
11372 * remote.c (remote_pass_signals): Add 'self' argument.
11373 (remote_start_remote): Update.
11374 * procfs.c (procfs_pass_signals): Add 'self' argument.
11375 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11376 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11377 (linux_nat_create_inferior, linux_nat_attach): Update.
11379 2014-02-19 Tom Tromey <tromey@redhat.com>
11381 * windows-nat.c (windows_can_run): Add 'self' argument.
11382 * target.h (struct target_ops) <to_can_run>: Add argument.
11383 (target_can_run): Add argument.
11384 * target.c (debug_to_can_run): Add argument.
11385 (update_current_target): Update.
11386 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11387 * inf-child.c (inf_child_can_run): Add 'self' argument.
11388 * go32-nat.c (go32_can_run): Add 'self' argument.
11390 2014-02-19 Tom Tromey <tromey@redhat.com>
11392 * target.h (struct target_ops) <to_has_exited>: Add argument.
11393 (target_has_exited): Add argument.
11394 * target.c (debug_to_has_exited): Add argument.
11395 (update_current_target): Update.
11397 2014-02-19 Tom Tromey <tromey@redhat.com>
11399 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11401 (target_set_syscall_catchpoint): Add argument.
11402 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11404 * target.c (update_current_target): Update.
11406 2014-02-19 Tom Tromey <tromey@redhat.com>
11408 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11410 (target_remove_exec_catchpoint): Add argument.
11411 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11412 (update_current_target): Update.
11413 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11420 (target_insert_exec_catchpoint): Add argument.
11421 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11422 (update_current_target): Update.
11423 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11426 2014-02-19 Tom Tromey <tromey@redhat.com>
11428 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11430 (target_remove_vfork_catchpoint): Add argument.
11431 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11432 (update_current_target): Update.
11433 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11436 2014-02-19 Tom Tromey <tromey@redhat.com>
11438 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11440 (target_insert_vfork_catchpoint): Add argument.
11441 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11442 (update_current_target): Update.
11443 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11448 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11450 (target_remove_fork_catchpoint): Add argument.
11451 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11452 (update_current_target): Update.
11453 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11458 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11460 (target_insert_fork_catchpoint): Add argument.
11461 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11462 (update_current_target): Update.
11463 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11468 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11470 (target_post_startup_inferior): Add argument.
11471 * target.c (debug_to_post_startup_inferior): Add argument.
11472 (update_current_target): Update.
11473 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11475 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11477 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11479 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11481 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11483 (super_post_startup_inferior): Likewise.
11484 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11486 (super_post_startup_inferior): Likewise.
11487 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11488 Add 'self' argument.
11489 (super_post_startup_inferior): Likewise.
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11493 * target.h (struct target_ops) <to_load>: Add argument.
11494 * target.c (target_load): Add argument.
11495 (debug_to_load): Add argument.
11496 (update_current_target): Update.
11497 * remote.c (remote_load): Add 'self' argument.
11498 * remote-sim.c (gdbsim_load): Add 'self' argument.
11499 * remote-mips.c (mips_load): Add 'self' argument.
11500 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11501 * monitor.c (monitor_load): Add 'self' argument.
11502 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11506 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11507 (target_terminal_info): Add argument.
11508 * target.c (debug_to_terminal_info): Add argument.
11509 (default_terminal_info): Likewise.
11510 * inflow.c (child_terminal_info): Add 'self' argument.
11511 * inferior.h (child_terminal_info): Add 'self' argument.
11512 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11518 (target_terminal_save_ours): Add argument.
11519 * target.c (debug_to_terminal_save_ours): Add argument.
11520 (update_current_target): Update.
11521 * inflow.c (terminal_save_ours): Add 'self' argument.
11522 * inferior.h (terminal_save_ours): Add 'self' argument.
11524 2014-02-19 Tom Tromey <tromey@redhat.com>
11526 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11527 (target_terminal_ours): Add argument.
11528 * target.c (debug_to_terminal_ours): Add argument.
11529 (update_current_target): Update.
11530 * remote.c (remote_terminal_ours): Add 'self' argument.
11531 (remote_close): Update.
11532 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11533 * inflow.c (terminal_ours): Add 'self' argument.
11534 * inferior.h (terminal_ours): Add 'self' argument.
11535 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11537 2014-02-19 Pedro Alves <palves@redhat.com>
11538 Tom Tromey <tromey@redhat.com>
11540 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11542 (target_terminal_ours_for_output): Add argument.
11543 * target.c (debug_to_terminal_ours_for_output): Add argument.
11544 (update_current_target): Update.
11545 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11546 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11547 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11549 2014-02-19 Tom Tromey <tromey@redhat.com>
11551 * target.h (struct target_ops) <to_terminal_inferior>: Add
11553 * target.c (target_terminal_inferior): Add argument.
11554 (update_current_target): Update.
11555 * remote.c (remote_terminal_inferior): Add 'self' argument.
11556 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11557 * inflow.c (terminal_inferior): Add 'self' argument.
11558 * inferior.h (terminal_inferior): Add 'self' argument.
11559 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11560 (go32_terminal_inferior): Add 'self' argument.
11562 2014-02-19 Tom Tromey <tromey@redhat.com>
11564 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11565 (target_terminal_init): Add argument.
11566 * target.c (debug_to_terminal_init): Add argument.
11567 (update_current_target): Update.
11568 * inflow.c (terminal_init_inferior): Add 'self' argument.
11569 * inferior.h (terminal_init_inferior): Add 'self' argument.
11570 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11571 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11573 2014-02-19 Tom Tromey <tromey@redhat.com>
11575 * target.h (struct target_ops)
11576 <to_can_accel_watchpoint_condition>: Add argument.
11577 (target_can_accel_watchpoint_condition): Add argument.
11578 * target.c (debug_to_can_accel_watchpoint_condition): Add
11580 (update_current_target): Update.
11581 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11584 2014-02-19 Tom Tromey <tromey@redhat.com>
11586 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11588 (target_region_ok_for_hw_watchpoint): Add argument.
11589 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11590 (default_region_ok_for_hw_watchpoint): Add argument.
11591 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11592 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11594 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11596 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11598 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11600 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11602 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11604 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11605 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11607 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11608 Add 'self' argument.
11610 2014-02-19 Tom Tromey <tromey@redhat.com>
11612 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11614 (target_insert_watchpoint): Add argument.
11615 * target.c (debug_to_insert_watchpoint): Add argument.
11616 (update_current_target): Update.
11617 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11618 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11619 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11620 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11621 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11622 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11624 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11625 (procfs_insert_hw_watchpoint): Add 'self' argument.
11626 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11628 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11630 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11632 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11633 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11635 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11638 2014-02-19 Tom Tromey <tromey@redhat.com>
11640 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11642 (target_remove_watchpoint): Add argument.
11643 * target.c (debug_to_remove_watchpoint): Add argument.
11644 (update_current_target): Update.
11645 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11646 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11647 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11648 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11649 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11650 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11652 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11653 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11655 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11657 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11659 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11660 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11662 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11669 (target_remove_hw_breakpoint): Add argument.
11670 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11671 (update_current_target): Update.
11672 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11673 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11675 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11676 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11678 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11683 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11685 (target_insert_hw_breakpoint): Add argument.
11686 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11687 (update_current_target): Update.
11688 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11689 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11691 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11692 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11693 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11695 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11700 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11702 (target_can_use_hardware_watchpoint): Add argument.
11703 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11704 (update_current_target): Update.
11705 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11707 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11709 * remote.c (remote_check_watch_resources): Add 'self' argument.
11710 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11711 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11713 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11714 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11716 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11718 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11720 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11722 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11724 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11726 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11727 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11729 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11732 2014-02-19 Tom Tromey <tromey@redhat.com>
11734 * target.h (struct target_ops) <to_post_attach>: Add argument.
11735 (target_post_attach): Add argument.
11736 * target.c (debug_to_post_attach): Add argument.
11737 (update_current_target): Update.
11738 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11739 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11740 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11741 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11742 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11744 2014-02-19 Tom Tromey <tromey@redhat.com>
11746 * windows-nat.c (windows_close): Add 'self' argument.
11747 * tracepoint.c (tfile_close): Add 'self' argument.
11748 * target.h (struct target_ops) <to_close>: Add argument.
11749 * target.c (target_close): Add argument.
11750 (update_current_target): Update.
11751 * remote.c (remote_close): Add 'self' argument.
11752 * remote-sim.c (gdbsim_close): Add 'self' argument.
11753 * remote-mips.c (mips_close): Add 'self' argument.
11754 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11755 * record-full.c (record_full_close): Add 'self' argument.
11756 * record-btrace.c (record_btrace_close): Add 'self' argument.
11757 * monitor.h (monitor_close): Add 'self' argument.
11758 * monitor.c (monitor_close): Add 'self' argument.
11759 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11760 * linux-nat.c (linux_nat_close): Add argument.
11761 * go32-nat.c (go32_close): Add 'self' argument.
11762 * exec.c (exec_close_1): Add 'self' argument.
11763 * ctf.c (ctf_close): Add 'self' argument.
11764 * corelow.c (core_close): Add 'self' argument.
11765 (core_close_cleanup): Update.
11766 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11767 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11769 2014-02-19 Tom Tromey <tromey@redhat.com>
11771 * remote.c (remote_load): New function.
11772 (init_remote_ops): Use it.
11774 2014-02-19 Tom Tromey <tromey@redhat.com>
11776 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11778 * common/linux-btrace.h (linux_supports_btrace): Update.
11779 * remote.c (remote_supports_btrace): Add "self" argument.
11780 * target-delegates.c: Rebuild.
11781 * target.c (target_supports_btrace): Remove.
11782 * target.h (struct target_ops) <to_supports_btrace>: Add
11783 target_ops argument.
11784 (target_supports_btrace): New define.
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * record-full.c (record_full_beneath_to_resume_ops)
11789 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11790 (record_full_beneath_to_wait)
11791 (record_full_beneath_to_store_registers_ops)
11792 (record_full_beneath_to_store_registers)
11793 (record_full_beneath_to_xfer_partial_ops)
11794 (record_full_beneath_to_xfer_partial)
11795 (record_full_beneath_to_insert_breakpoint_ops)
11796 (record_full_beneath_to_insert_breakpoint)
11797 (record_full_beneath_to_remove_breakpoint_ops)
11798 (record_full_beneath_to_remove_breakpoint)
11799 (record_full_beneath_to_stopped_by_watchpoint)
11800 (record_full_beneath_to_stopped_data_address)
11801 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11802 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11803 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11804 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11805 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11806 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11807 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11808 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11809 (record_full_resume, record_full_wait_1)
11810 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11811 (record_full_store_registers, record_full_xfer_partial)
11812 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11813 (record_full_async, record_full_core_xfer_partial): Use target
11815 * target-delegates.c: Rebuild.
11816 * target.c (current_xfer_partial): Remove.
11817 (update_current_target): Do not INHERIT or de_fault
11818 to_insert_breakpoint, to_remove_breakpoint,
11819 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11820 to_is_async_p, to_async. Do not set to_xfer_partial field.
11821 (default_xfer_partial): Simplify.
11822 (current_xfer_partial): Remove.
11823 (target_wait, target_resume): Simplify.
11824 (find_default_can_async_p, find_default_is_async_p): Update.
11825 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11826 to_xfer_partial, to_stopped_by_watchpoint,
11827 to_stopped_data_address.
11828 (target_store_registers): Simplify.
11829 (forward_target_remove_breakpoint)
11830 (forward_target_insert_breakpoint): Remove.
11831 (target_remove_breakpoint, target_insert_breakpoint)
11832 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11833 * target.h (struct target_ops) <to_resume, to_wait,
11834 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11835 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11836 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11838 (forward_target_remove_breakpoint)
11839 (forward_target_insert_breakpoint): Remove.
11840 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11842 (record_btrace_insert_breakpoint): Delegate directly.
11844 2014-02-19 Tom Tromey <tromey@redhat.com>
11847 * target-delegates.c: New file.
11848 * target.c: Include target-delegates.c.
11849 (init_dummy_target): Call install_dummy_methods.
11850 (complete_target_initialization): Call install_delegators.
11851 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11852 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11853 * make-target-delegates: New file.
11855 2014-02-19 Tom Tromey <tromey@redhat.com>
11857 * record.c (find_record_target): Use find_target_at.
11858 * target.c (find_target_at): New function.
11859 * target.h (find_target_at): Declare.
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11863 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11864 Add 'ops' argument.
11865 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11867 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11868 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11870 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11872 * linux-nat.c (save_sigtrap): Update.
11873 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11874 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11875 (linux_nat_close): Update.
11876 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11878 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11880 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11881 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11882 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11883 (tmp_to_async): Add 'ops' argument.
11884 (record_full_stopped_by_watchpoint, record_full_async)
11885 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11887 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11888 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11889 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11890 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11891 (remote_is_async_p, remote_async): Add 'ops' argument.
11892 (remote_stopped_data_address): Update.
11893 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11894 * target.c (update_current_target)
11895 (find_default_can_async_p, find_default_is_async_p): Update.
11896 (init_dummy_target): Update.
11897 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11898 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11899 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11900 (target_can_async_p, target_is_async_p, target_async)
11901 (target_stopped_by_watchpoint): Update.
11903 2014-02-19 Yao Qi <yao@codesourcery.com>
11906 * gdbarch.sh: Remove startup_gdbarch.
11907 * gdbarch.c: Regenerated.
11908 * gdbarch.h: Likewise.
11910 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11912 * rl78-tdep.c (rl78_g10_register_name): New function.
11913 (rl78_return_value): Add g10 support.
11914 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11917 2014-02-17 Doug Evans <xdje42@gmail.com>
11919 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11920 (SUBDIR_GUILE_SRCS): Ditto.
11921 (scm-gsmob.o): Ditto.
11923 2014-02-17 Yao Qi <yao@codesourcery.com>
11925 * gnu-nat.c (ILL_RPC): Declare defined function.
11927 2014-02-17 Yao Qi <yao@codesourcery.com>
11929 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11930 mach_msg_type_number_t.
11931 (gnu_write_inferior): Likewise.
11933 2014-02-17 Yao Qi <yao@codesourcery.com>
11935 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11937 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11938 (inf_validate_procs, inf_signal): Likewise.
11939 (S_exception_raise_request): Likewise.
11940 (do_mach_notify_dead_name): Likewise.
11941 (steal_exc_port): Likewise.
11942 (gnu_read_inferior): Change 'copy_count''s type to
11943 mach_msg_type_number_t.
11944 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11947 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11949 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11950 flag. Adjust all users; in particular...
11951 (gnu_wait): ..., don't decrement its value in here...
11952 (gnu_create_inferior): ..., and instead set the flag in here,
11953 around the startup_inferior call, and call that one with
11954 START_INFERIOR_TRAPS_EXPECTED.
11956 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11957 (ILL_RPC): ... new macro.
11958 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11959 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11960 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11961 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11962 functions with ILL_RPC macro.
11963 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11964 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11965 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11966 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11967 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11968 (S_proc_getlogin_reply, S_proc_getsid_reply)
11969 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11970 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11971 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11972 (S_proc_getnports_reply, S_proc_is_important_reply)
11973 (S_proc_get_code_reply): New stub functions, generated with
11976 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11977 collected the type check structures.
11979 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11981 2014-02-14 Doug Evans <dje@google.com>
11983 * target.c (target_write_partial): Fix result type.
11985 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11987 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11988 the proper offsets to access fpregset_t.
11990 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11992 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11993 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11994 * h8300-tdep.c (setmachinelist): Remove global.
11995 * hppa-tdep.c (hppa_sigtramp): Remove global.
11996 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11997 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11998 * ravenscar-thread.c (update_target_observer): Remove global.
11999 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12001 2014-02-12 Tom Tromey <tromey@redhat.com>
12003 * common/rsp-low.c: Update comments.
12004 * common/rsp-low.h: Update comments.
12006 2014-02-12 Tom Tromey <tromey@redhat.com>
12008 * common/rsp-low.c (convert_ascii_to_int): Remove.
12009 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12011 2014-02-12 Tom Tromey <tromey@redhat.com>
12013 * common/rsp-low.h (unhexify): Don't declare.
12014 * common/rsp-low.c (unhexify): Remove.
12016 2014-02-12 Tom Tromey <tromey@redhat.com>
12018 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12019 * common/rsp-low.c (convert_int_to_ascii): Remove.
12021 2014-02-12 Tom Tromey <tromey@redhat.com>
12023 * common/rsp-low.h (hexify): Don't declare.
12024 * common/rsp-low.c (hexify): Remove.
12026 2014-02-12 Tom Tromey <tromey@redhat.com>
12028 * common/rsp-low.c (hexify): Never take strlen of argument.
12030 2014-02-12 Tom Tromey <tromey@redhat.com>
12032 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12033 * remote.c (extended_remote_run, remote_rcmd)
12034 (remote_download_trace_state_variable, remote_save_trace_data)
12035 (remote_set_trace_notes): Update.
12036 * tracepoint.c (encode_source_string, tfile_write_status)
12037 (tfile_write_uploaded_tsv): Update.
12039 2014-02-12 Tom Tromey <tromey@redhat.com>
12041 * tracepoint.c: Include rsp-low.h.
12042 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12043 * remote.c: Include rsp-low.h.
12044 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12045 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12046 (remote_unescape_input): Move to common/rsp-low.c.
12047 * common/rsp-low.h: New file.
12048 * common/rsp-low.c: New file.
12049 * Makefile.in (SFILES): Add common/rsp-low.c.
12050 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12051 (COMMON_OBS): Add rsp-low.o.
12052 (rsp-low.o): New target.
12054 2014-02-12 Tom Tromey <tromey@redhat.com>
12056 * utils.h: Include print-utils.h.
12057 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12058 (int_string, core_addr_to_string, core_addr_to_string_nz)
12059 (hex_string, hex_string_custom): Don't declare.
12060 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12061 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12062 (hex_string_custom, int_string, core_addr_to_string)
12063 (core_addr_to_string_nz, host_address_to_string): Move to
12064 common/print-utils.c.
12065 * common/print-utils.h: New file.
12066 * common/print-utils.c: New file
12067 * Makefile.in (SFILES): Add common/print-utils.c.
12068 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12069 (COMMON_OBS): Add print-utils.o.
12070 (print-utils.o): New target.
12072 2014-02-12 Tom Tromey <tromey@redhat.com>
12074 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12076 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12078 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12080 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12082 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12083 if a PT_IO ptrace request returns sucessfully but indicates that 0
12084 bytes were transferred.
12086 2014-02-12 Pedro Alves <palves@redhat.com>
12087 Kevin Buettner <kevinb@redhat.com>
12089 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12090 TYPE_INSTANCE_FLAG_CODE_SPACE.
12092 2014-02-12 Pedro Alves <palves@redhat.com>
12094 * h8300-tdep.c (pseudo_from_raw_register)
12095 (raw_from_pseudo_register): New functions.
12096 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12099 2014-02-12 Pedro Alves <palves@redhat.com>
12101 * h8300-tdep.c (h8300_register_sim_regno): New function.
12102 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12103 gdbarch_register_sim_regno hook.
12105 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12107 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12109 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12111 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12113 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12115 * obsd-tdep.h (obsd_init_abi): New prototype.
12116 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12117 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12118 (obsd_init_abi): New functions.
12119 * i386obsd-tdep.c: Include "obsd-tdep.h".
12120 (i386obsd_init_abi): Call obsd_init_abi.
12121 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12122 (amd64obsd_init_abi): Call obsd_init_abi.
12123 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12124 obsd-tdep.c to gdb_target_obs.
12126 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12128 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12129 double float arguments to 16-byte in the argument slots.
12131 2014-02-11 Doug Evans <xdje42@gmail.com>
12133 * configure.ac: Don't crash if pkg-config is not found and guile
12134 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12136 * configure: Regenerate.
12138 2014-02-11 Yao Qi <yao@codesourcery.com>
12140 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12141 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12142 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12143 * gnu-nat.c (gnu_xfer_memory): Likewise.
12144 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12145 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12146 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12147 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12149 2014-02-11 Yao Qi <yao@codesourcery.com>
12151 * target.h (enum target_xfer_error): Rename to ...
12152 (enum target_xfer_status): ... it. New. All users updated.
12153 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12155 (TARGET_XFER_STATUS_ERROR_P): New macro.
12156 (target_xfer_error_to_string): Remove declaration.
12157 (target_xfer_status_to_string): Declare.
12158 (target_xfer_partial_ftype): Adjust it.
12159 (struct target_ops) <to_xfer_partial>: Return
12160 target_xfer_status. Add argument xfered_len. Update
12162 * target.c (target_xfer_error_to_string): Rename to ...
12163 (target_xfer_status_to_string): ... it. New. All callers
12165 (target_read_live_memory): Likewise. Call target_xfer_partial
12166 instead of target_read.
12167 (memory_xfer_live_readonly_partial): Return
12168 target_xfer_status. Add argument xfered_len.
12169 (raw_memory_xfer_partial): Likewise.
12170 (memory_xfer_partial_1): Likewise.
12171 (memory_xfer_partial): Likewise.
12172 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12173 properly. Update debug message.
12174 (default_xfer_partial, current_xfer_partial): Likewise.
12175 (target_write_partial): Likewise.
12176 (target_read_partial): Likewise. All callers updated.
12177 (read_whatever_is_readable): Likewise.
12178 (target_write_with_progress): Likewise.
12179 (target_read_alloc_1): Likewise.
12181 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12182 * auxv.c (procfs_xfer_auxv): Likewise.
12183 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12184 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12185 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12186 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12187 * corefile.c (read_memory): Adjust.
12188 * corelow.c (core_xfer_partial): Likewise.
12189 * ctf.c (ctf_xfer_partial): Likewise.
12190 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12192 (darwin_xfer_partial): Likewise.
12193 * exec.c (section_table_xfer_memory_partial): Likewise. All
12195 (exec_xfer_partial): Likewise.
12196 * exec.h (section_table_xfer_memory_partial): Update
12198 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12200 (gnu_xfer_partial): Likewise.
12201 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12202 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12203 (ia64_hpux_xfer_solib_got): Likewise.
12204 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12205 type of 'partial_len' to ULONGEST.
12206 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12207 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12208 (linux_nat_xfer_partial): Likewise.
12209 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12210 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12211 * monitor.c (monitor_xfer_memory): Likewise.
12212 (monitor_xfer_partial): Likewise.
12213 * procfs.c (procfs_xfer_partial): Likewise.
12214 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12215 * record-full.c (record_full_xfer_partial): Likewise.
12216 (record_full_core_xfer_partial): Likewise.
12217 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12218 (gdbsim_xfer_partial): Likewise.
12219 * remote.c (remote_write_bytes_aux): Likewise. All callers
12221 (remote_write_bytes, remote_read_bytes): Likewise. All
12223 (remote_flash_erase): Likewise. All callers updated.
12224 (remote_write_qxfer): Likewise. All callers updated.
12225 (remote_read_qxfer): Likewise. All callers updated.
12226 (remote_xfer_partial): Likewise.
12227 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12228 (rs6000_xfer_shared_libraries): Likewise.
12229 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12230 (sol_thread_xfer_partial): Likewise.
12231 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12232 (sparc_xfer_partial): Likewise.
12233 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12235 (spu_xfer_partial): Likewise.
12236 * spu-multiarch.c (spu_xfer_partial): Likewise.
12237 * tracepoint.c (tfile_xfer_partial): Likewise.
12238 * windows-nat.c (windows_xfer_memory): Likewise.
12239 (windows_xfer_shared_libraries): Likewise.
12240 (windows_xfer_partial): Likewise.
12241 * valprint.c: Replace 'target_xfer_error' with
12242 'target_xfer_status' in comments.
12244 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12246 Checked in by Joel Brobecker <brobecker@adacore.com>.
12247 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12249 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12251 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12252 function parameters.
12254 2014-02-10 Will Newton <will.newton@linaro.org>
12256 * elfread.c (elf_rel_plt_read): Look for a .got section if
12257 looking up .got.plt fails.
12258 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12259 on address passed to elf_gnu_ifunc_record_cache.
12260 (elf_gnu_ifunc_resolve_addr): Likewise.
12261 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12263 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12265 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12266 (X_RETTURN): New macro.
12267 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12269 * sparc64-tdep.c (sparc64_init_abi): Hook
12270 sparc_in_function_epilogue_p.
12272 2014-02-10 Gary Benson <gbenson@redhat.com>
12274 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12275 Rename name_matcher to symbol_matcher.
12277 2014-02-10 Gary Benson <gbenson@redhat.com>
12279 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12280 Use expand_symtabs_file_matcher_ftype and
12281 expand_symtabs_symbol_matcher_ftype.
12283 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12285 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12286 (struct ada_symbol_cache): New.
12287 (ada_free_symbol_cache): Forward declare.
12288 (struct ada_pspace_data): New.
12289 (ada_pspace_data_handle): New static global.
12290 (get_ada_pspace_data, ada_pspace_data_cleanup)
12291 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12292 (cache_space, cache): Delete, now folded inside struct
12294 (ada_get_symbol_cache): New function.
12295 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12297 (_initialize_ada_language): Remove initialization of cache_space.
12298 Move call to observer_attach_inferior_exit up, grouping it
12299 with the other observer registrations inside this function.
12300 Rename command to be more general. Add call to
12301 register_program_space_data_with_cleanup.
12303 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12305 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12306 ada_new_objfile_observer.
12307 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12308 (_initialize_tasks): Update uses of ada_new_objfile_observer
12309 and ada_tasks_normal_stop_observer.
12311 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12313 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12314 returned by the 'Length attribute to integer.
12316 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12318 * ada-lang.c (_initialize_ada_language): Initialize
12319 cache_space obstack.
12321 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12323 * ada-lang.c (HASH_SIZE): New macro.
12324 (struct cache_entry): New type.
12325 (cache_space, cache): New static globals.
12326 (ada_clear_symbol_cache, find_entry): New functions.
12327 (lookup_cached_symbol, cache_symbol): Implement.
12328 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12329 (_initialize_ada_language): Attach ada_new_objfile_observer
12330 and ada_free_objfile_observer.
12332 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12334 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12335 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12336 struct block * parameter.
12337 (ada_lookup_symbol_list_worker): Constify local variable "block".
12338 Remove cast which is no longer necessary.
12340 2014-02-10 Doug Evans <xdje42@gmail.com>
12342 Add Guile as an extension language.
12343 * NEWS: Mention Guile scripting.
12344 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12345 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12346 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12347 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12348 (CLIBS): Add GUILE_LIBS.
12349 (install-guile): New rule.
12350 (guile.o): New rule.
12351 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12352 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12353 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12354 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12355 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12356 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12357 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12358 * configure.ac: New option --with-guile.
12359 * configure: Regenerate.
12360 * config.in: Regenerate.
12361 * auto-load.c: Remove #include "python/python.h". Add #include
12362 "gdb/section-scripts.h".
12363 (source_section_scripts): Handle Guile scripts.
12364 (_initialize_auto_load): Add name of Guile objfile script to
12365 scripts-directory help text.
12366 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12367 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12368 (struct breakpoint): New member scm_bp_object.
12369 * defs.h (enum command_control_type): New value guile_control.
12370 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12372 (show_user): Update comment.
12373 (_initialize_cli_cmds): Update help text for "show user". Update help
12374 text for max-user-call-depth.
12375 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12377 (multi_line_command_p): Add guile_control.
12378 (print_command_lines): Handle guile_control.
12379 (execute_control_command, recurse_read_control_structure): Ditto.
12380 (process_next_line): Recognize "guile" commands.
12381 * disasm.c (gdb_disassemble_info): Make non-static.
12382 * disasm.h: #include "dis-asm.h".
12383 (struct gdbarch): Add forward decl.
12384 (gdb_disassemble_info): Declare.
12385 * extension.c: #include "guile/guile.h".
12386 (extension_languages): Add guile.
12387 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12388 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12389 * gdbtypes.c (get_unsigned_type_max): New function.
12390 (get_signed_type_minmax): New function.
12391 * gdbtypes.h (get_unsigned_type_max): Declare.
12392 (get_signed_type_minmax): Declare.
12393 * guile/README: New file.
12394 * guile/guile-internal.h: New file.
12395 * guile/guile.c: New file.
12396 * guile/guile.h: New file.
12397 * guile/scm-arch.c: New file.
12398 * guile/scm-auto-load.c: New file.
12399 * guile/scm-block.c: New file.
12400 * guile/scm-breakpoint.c: New file.
12401 * guile/scm-disasm.c: New file.
12402 * guile/scm-exception.c: New file.
12403 * guile/scm-frame.c: New file.
12404 * guile/scm-gsmob.c: New file.
12405 * guile/scm-iterator.c: New file.
12406 * guile/scm-lazy-string.c: New file.
12407 * guile/scm-math.c: New file.
12408 * guile/scm-objfile.c: New file.
12409 * guile/scm-ports.c: New file.
12410 * guile/scm-pretty-print.c: New file.
12411 * guile/scm-safe-call.c: New file.
12412 * guile/scm-string.c: New file.
12413 * guile/scm-symbol.c: New file.
12414 * guile/scm-symtab.c: New file.
12415 * guile/scm-type.c: New file.
12416 * guile/scm-utils.c: New file.
12417 * guile/scm-value.c: New file.
12418 * guile/lib/gdb.scm: New file.
12419 * guile/lib/gdb/boot.scm: New file.
12420 * guile/lib/gdb/experimental.scm: New file.
12421 * guile/lib/gdb/init.scm: New file.
12422 * guile/lib/gdb/iterator.scm: New file.
12423 * guile/lib/gdb/printing.scm: New file.
12424 * guile/lib/gdb/types.scm: New file.
12425 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12426 (VPATH): Add $(GUILE_SRCDIR).
12427 (GUILE_DIR): New variable.
12428 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12429 (all): Add stamp-guile dependency.
12430 (stamp-guile): New rule.
12431 (clean-guile, install-guile, uninstall-guile): New rules.
12432 (install-only): Add install-guile dependency.
12433 (uninstall): Add uninstall-guile dependency.
12434 (clean): Add clean-guile dependency.
12436 2014-02-09 Doug Evans <xdje42@gmail.com>
12438 Revert this patch (which I approved, mea culpa).
12440 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12442 * Makefile.in (all-lib): Remove.
12443 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12445 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12447 Fix Python stack corruption.
12448 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12451 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12453 * Makefile.in (all-lib): Remove.
12454 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12456 2014-02-07 Doug Evans <dje@google.com>
12458 * extension-priv.h (extension_language_script_ops): Add comment.
12459 (extension_language_ops): Add comment.
12460 (active_ext_lang_state): Fix typo in comment.
12462 2014-02-07 Pedro Alves <palves@redhat.com>
12464 PR breakpoints/16292
12465 * infrun.c (handle_signal_stop) <signal arrives while stepping
12466 over a breakpoint>: Switch back to the stepping thread.
12468 2014-02-07 Yao Qi <yao@codesourcery.com>
12470 * target.c (target_xfer_partial): Return zero if LEN is zero.
12472 2014-02-07 Yao Qi <yao@codesourcery.com>
12474 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12475 (ld_so_xfer_auxv): Likewise.
12476 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12477 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12478 * corelow.c (core_xfer_partial): Likewise.
12479 * ctf.c (ctf_xfer_partial): Likewise.
12480 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12481 (darwin_xfer_partial): Likewise.
12482 * exec.c (exec_xfer_partial): Likewise.
12483 * gnu-nat.c (gnu_xfer_partial): Likewise.
12484 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12485 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12486 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12487 * linux-nat.c (linux_xfer_siginfo): Likewise.
12488 (linux_proc_xfer_spu): Likewise.
12489 * procfs.c (procfs_xfer_partial): Likewise.
12490 * record-full.c (record_full_xfer_partial): Likewise.
12491 (record_full_core_xfer_partial): Likewise.
12492 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12493 * remote.c (remote_write_qxfer): Likewise.
12494 (remote_write_qxfer, remote_read_qxfer): Likewise.
12495 (remote_xfer_partial): Likewise.
12496 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12497 (rs6000_xfer_shared_libraries): Likewise.
12498 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12499 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12500 (spu_xfer_partial): Likewise.
12501 * target.c (memory_xfer_partial_1): Likewise.
12502 * tracepoint.c (tfile_xfer_partial): Likewise.
12503 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12504 (windows_xfer_partial): Likewise.
12506 2014-02-07 Yao Qi <yao@codesourcery.com>
12508 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12510 (core_xfer_shared_libraries_aix): Likewise.
12511 * gdbarch.c, gdbarch.h: Regenerated.
12512 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12513 ULONGEST. Change 'len_avail' type to ULONGEST.
12514 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12515 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12517 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12519 2014-02-07 Yao Qi <yao@codesourcery.com>
12521 * corefile.c (memory_error): Get 'exception' from ERR and pass
12522 'exception' to throw_error.
12524 2014-02-06 Doug Evans <xdje42@gmail.com>
12526 * configure.ac (libpython checking): Remove all but python.o from
12527 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12528 * configure: Regenerate.
12530 * Makefile.in (SFILES): Add extension.c.
12531 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12532 (COMMON_OBS): Add extension.o.
12533 * extension.h: New file.
12534 * extension-priv.h: New file.
12535 * extension.c: New file.
12537 * python/python-internal.h: #include "extension.h".
12538 (gdbpy_auto_load_enabled): Declare.
12539 (gdbpy_apply_val_pretty_printer): Declare.
12540 (gdbpy_apply_frame_filter): Declare.
12541 (gdbpy_preserve_values): Declare.
12542 (gdbpy_breakpoint_cond_says_stop): Declare.
12543 (gdbpy_breakpoint_has_cond): Declare.
12544 (void source_python_script_for_objfile): Delete.
12545 * python/python.c: #include "extension-priv.h".
12546 Delete inclusion of "observer.h".
12547 (extension_language_python): Moved here and renamed from
12548 script_language_python in py-auto-load.c.
12549 Redefined to be of type extension_language_defn.
12550 (python_extension_script_ops): New global.
12551 (python_extension_ops): New global.
12552 (struct python_env): New member previous_active.
12553 (restore_python_env): Call restore_active_ext_lang.
12554 (ensure_python_env): Call set_active_ext_lang.
12555 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12557 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12559 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12561 (gdbpy_eval_from_control_command): Renamed from
12562 eval_python_from_control_command, made static. New arg extlang.
12563 (gdbpy_source_script) Renamed from source_python_script, made static.
12565 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12566 result to int. New arg extlang.
12567 (gdbpy_source_objfile_script): Renamed from
12568 source_python_script_for_objfile, made static. New arg extlang.
12569 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12570 static. New args extlang, extlang_printers. Change result type to
12572 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12573 static. New arg extlang. Rename arg printers to extlang_printers
12574 and change type to ext_lang_type_printers *.
12575 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12576 static. Replace argument arg with extlang, extlang_printers.
12577 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12578 (!HAVE_PYTHON, source_python_script): Delete.
12579 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12580 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12581 (!HAVE_PYTHON, start_type_printers): Delete.
12582 (!HAVE_PYTHON, apply_type_printers): Delete.
12583 (!HAVE_PYTHON, free_type_printers): Delete.
12584 (_initialize_python): Delete call to observer_attach_before_prompt.
12585 (finalize_python): Set/restore active extension language.
12586 (gdbpy_finish_initialization) Renamed from
12587 finish_python_initialization, made static. New arg extlang.
12588 (gdbpy_initialized): New function.
12589 * python/python.h: #include "extension.h". Delete #include
12590 "value.h", "mi/mi-cmds.h".
12591 (extension_language_python): Declare.
12592 (GDBPY_AUTO_FILE_NAME): Delete.
12593 (enum py_bt_status): Moved to extension.h and renamed to
12594 ext_lang_bt_status.
12595 (enum frame_filter_flags): Moved to extension.h.
12596 (enum py_frame_args): Moved to extension.h and renamed to
12597 ext_lang_frame_args.
12598 (finish_python_initialization): Delete.
12599 (eval_python_from_control_command): Delete.
12600 (source_python_script): Delete.
12601 (apply_val_pretty_printer): Delete.
12602 (apply_frame_filter): Delete.
12603 (preserve_python_values): Delete.
12604 (gdbpy_script_language_defn): Delete.
12605 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12606 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12608 * auto-load.c: #include "extension.h".
12609 (GDB_AUTO_FILE_NAME): Delete.
12610 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12611 (script_language_gdb): Delete, moved to extension.c and renamed to
12612 extension_language_gdb.
12613 (source_gdb_script_for_objfile): Delete.
12614 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12615 (loaded_script): Change type of language member to
12616 struct extension_language_defn *.
12617 (init_loaded_scripts_info): Initialize
12618 unsupported_script_warning_printed.
12619 (maybe_add_script): Make static. Change type of language arg to
12620 struct extension_language_defn *.
12621 (clear_section_scripts): Reset unsupported_script_warning_printed.
12622 (auto_load_objfile_script_1): Rewrite to use extension language API.
12623 (auto_load_objfile_script): Make public. Remove support-compiled-in
12624 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12625 (source_section_scripts): Rewrite to use extension language API.
12626 (load_auto_scripts_for_objfile): Rewrite to use
12627 auto_load_scripts_for_objfile.
12628 (collect_matching_scripts_data): Change type of language member to
12629 struct extension_language_defn *.
12630 (auto_load_info_scripts): Change type of language arg to
12631 struct extension_language_defn *.
12632 (unsupported_script_warning_print): New function.
12633 (script_not_found_warning_print): Make static.
12634 (_initialize_auto_load): Rewrite construction of scripts-directory
12636 * auto-load.h (struct objfile): Add forward decl.
12637 (struct script_language): Delete.
12638 (struct auto_load_pspace_info): Add forward decl.
12639 (struct extension_language_defn): Add forward decl.
12640 (maybe_add_script): Delete.
12641 (auto_load_objfile_script): Declare.
12642 (script_not_found_warning_print): Delete.
12643 (auto_load_info_scripts): Update prototype.
12644 (auto_load_gdb_scripts_enabled): Declare.
12645 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12646 auto_load_python_scripts_enabled and made public.
12647 (script_language_python): Delete, moved to python.c.
12648 (gdbpy_script_language_defn): Delete.
12649 (info_auto_load_python_scripts): Update to use
12650 extension_language_python.
12652 * breakpoint.c (condition_command): Replace call to
12653 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12654 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12655 with call to breakpoint_ext_lang_cond_says_stop.
12656 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12657 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12658 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12659 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12661 (local_setattro): Print name of extension language with existing
12664 * valprint.c (val_print, value_print): Update to call
12665 apply_ext_lang_val_pretty_printer.
12666 * cp-valprint.c (cp_print_value): Update call to
12667 apply_ext_lang_val_pretty_printer.
12668 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12669 (gdbpy_apply_val_pretty_printer): Renamed from
12670 apply_val_pretty_printer. New arg extlang.
12671 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12673 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12674 extension language API.
12675 * cli/cli-script.c (execute_control_command): Update to call
12676 eval_ext_lang_from_control_command.
12678 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12679 enum ext_lang_bt_status values. Update call to
12680 apply_ext_lang_frame_filter.
12681 (mi_cmd_stack_list_locals): Ditto.
12682 (mi_cmd_stack_list_args): Ditto.
12683 (mi_cmd_stack_list_variables): Ditto.
12684 * mi/mi-main.c: Delete #include "python/python-internal.h".
12685 Add #include "extension.h".
12686 (mi_cmd_list_features): Replace reference to python internal variable
12687 gdb_python_initialized with call to ext_lang_initialized_p.
12689 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12690 Update to use enum ext_lang_frame_args. Update to call
12691 apply_ext_lang_frame_filter.
12692 * python/py-framefilter.c (extract_sym): Update to use enum
12693 ext_lang_bt_status.
12694 (extract_value, py_print_type, py_print_value): Ditto.
12695 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12696 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12697 (py_print_frame): Ditto.
12698 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12699 New arg extlang. Update to use enum ext_lang_bt_status.
12701 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12702 finish_python_initialization. Replace with call to
12703 finish_ext_lang_initialization.
12705 * typeprint.c (do_free_global_table): Update to call
12706 free_ext_lang_type_printers.
12707 (create_global_typedef_table): Update to call
12708 start_ext_lang_type_printers.
12709 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12710 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12711 (type_print_options): Change type of global_printers from "void *"
12712 to "struct ext_lang_type_printers *".
12714 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12715 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12716 (gdbpy_preserve_values): Renamed from preserve_python_values.
12718 (!HAVE_PYTHON, preserve_python_values): Delete.
12720 * utils.c (quit_flag): Delete, moved to extension.c.
12721 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12724 * eval.c: Delete #include "python/python.h".
12725 * main.c: Delete #include "python/python.h".
12727 * defs.h: Update comment.
12729 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12733 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12735 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12738 2014-02-05 Yao Qi <yao@codesourcery.com>
12740 * remote.c (remote_pass_signals): Remove local 'buf' and use
12742 (remote_program_signals): Likewise.
12744 2014-02-05 Yao Qi <yao@codesourcery.com>
12746 * ctf.c: Include "inferior.h" and "gdbthread.h".
12747 (CTF_PID): A new macro.
12748 (ctf_open): Call inferior_appeared and add_thread_silent.
12749 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12750 (ctf_thread_alive): New function.
12751 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12753 2014-02-05 Yao Qi <yao@codesourcery.com>
12757 2013-05-24 Yao Qi <yao@codesourcery.com>
12759 * tracepoint.c (TFILE_PID): Remove.
12760 (tfile_open): Don't add thread and inferior.
12761 (tfile_close): Don't set 'inferior_ptid'. Don't call
12762 exit_inferior_silent.
12763 (tfile_thread_alive): Remove.
12764 (init_tfile_ops): Don't set field 'to_thread_alive' of
12767 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12769 * remote.c (remote_start_remote): Call remote_check_symbols even
12770 if only symbol-file (not file) has been given.
12772 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12774 * gdbarch.sh (skip_entrypoint): New callback.
12775 * gdbarch.c, gdbarch.h: Regenerate.
12776 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12777 * infrun.c (fill_in_stop_func): Likewise.
12778 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12779 (ppc_elfv2_elf_make_msymbol_special): New function.
12780 (ppc_elfv2_skip_entrypoint): Likewise.
12781 (ppc_linux_init_abi): Install them for ELFv2.
12783 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12785 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12786 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12787 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12788 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12789 structures returned in GPRs.
12791 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12793 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12794 offset to the stack parameter list for the ELFv2 ABI.
12796 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12798 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12799 set_gdbarch_convert_from_func_ptr_addr and
12800 set_gdbarch_elf_make_msymbol_special for ELFv1.
12801 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12802 function descriptors on ELFv1.
12803 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12804 set up r12 at function entry.
12806 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12808 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12809 (struct gdbarch_tdep): New member elf_abi.
12811 * rs6000-tdep.c: Include "elf/ppc64.h".
12812 (rs6000_gdbarch_init): Detect ELF ABI version.
12814 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12816 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12817 within a register pair holding a DFP 128-bit value on little-endian.
12818 (ppc64_sysv_abi_return_value_base): Likewise.
12819 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12820 (dfp_pseudo_register_write): Likewise.
12822 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12824 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12825 offset on little-endian when passing _Decimal32.
12826 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12828 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12830 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12831 of the overlapped FP register within the VSX register on little-
12833 (efpr_pseudo_register_write): Likewise.
12835 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12837 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12838 offset on little-endian when passing small structures.
12840 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12842 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12843 (struct ppc64_sysv_argpos): New data structure.
12844 (ppc64_sysv_abi_push_float): Remove.
12845 (ppc64_sysv_abi_push_val): New function.
12846 (ppc64_sysv_abi_push_integer): Likewise.
12847 (ppc64_sysv_abi_push_freg): Likewise.
12848 (ppc64_sysv_abi_push_vreg): Likewise.
12849 (ppc64_sysv_abi_push_param): Likewise.
12850 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12851 (ppc64_sysv_abi_return_value_base): New function.
12852 (ppc64_sysv_abi_return_value): Refactor to use it.
12854 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12856 * NEWS: Document new target powerpc64le-*-linux*.
12858 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12860 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12861 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12863 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12864 register set used in ELF core dumps. Add floating-point register set.
12866 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12868 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12869 dwarf2_to_gdb[] table using symbolic constants. Adjust
12870 penultimate entry from number representing the PC register
12871 to symbolic constant representing the MDR register. Add
12872 constant for the PC register to the end of the table.
12874 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12876 * bsd-kvm.c: Include <sys/param.h>
12878 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12880 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12882 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12884 * ada-lang.h (clear_ada_sym_cache): Delete.
12886 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12888 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12890 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12892 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12893 the sigreturn register save area only if the syscall is
12896 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12898 * valops.c (value_slice): Minor reformatting.
12900 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12902 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12904 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12906 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12907 New static globals.
12908 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12909 (ada_ignore_descriptive_types_p): New static global.
12910 (find_parallel_type_by_descriptive_type): Return immediately
12911 if ada_ignore_descriptive_types_p is set.
12912 (_initialize_ada_language): Register new commands "maintenance
12913 set ada", "maintenance show ada", "maintenance set ada
12914 ignore-descriptive-types" and "maintenance show ada
12915 ignore-descriptive-types".
12916 * NEWS: Add entry for new "maint ada set/show
12917 ignore-descriptive-types" commands.
12919 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12921 * record-btrace.c (record_btrace_close): Call btrace_teardown
12924 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12926 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12929 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12931 * ada-typeprint (type_is_full_subrange_of_target_type):
12933 (print_range): Add parameter bounds_prefered_p. If not set,
12934 try printing range types using the name of their base type.
12935 (print_range_type): Add parameter bounds_prefered_p.
12936 Use it in call to print_range.
12937 (print_array_type, ada_print_type): Update calls to print_range
12938 and print_range_type.
12940 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12942 * ada-typeprint.c (print_array_type, print_choices, print_range)
12943 (print_range_bound, print_dynamic_range_bound, print_range_type):
12944 Remove declaration.
12946 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12948 * ada-typeprint.c (print_range): Add missing empty line
12949 after local declaration.
12951 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12953 * ada-valprint.c (print_optional_low_bound): Get index_type's
12954 target type for as long as it is a TYPE_CODE_RANGE.
12956 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12958 * procfs.c (procfs_make_note_section): Remove assertion and
12959 associated comment.
12961 2014-01-24 Yao Qi <yao@codesourcery.com>
12963 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12964 * corelow.c (get_core_siginfo): Likewise.
12966 2014-01-24 Yao Qi <yao@codesourcery.com>
12968 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12969 ULONGEST. Don't check 'len' is negative.
12970 (remote_write_bytes): Change type of 'len' to ULONGEST.
12972 2014-01-23 Tom Tromey <tromey@redhat.com>
12975 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12976 Handle exception from frame.block.
12977 (FrameVars.fetch_frame_locals): Likewise.
12979 2014-01-23 Tom Tromey <tromey@redhat.com>
12982 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12983 on a NULL pointer. Move "goto error" to correct place.
12985 2014-01-23 Tom Tromey <tromey@redhat.com>
12988 * python/py-framefilter.c (apply_frame_filter): Call
12989 ensure_python_env after computing gdbarch.
12991 2014-01-23 Yao Qi <yao@codesourcery.com>
12993 * target.c (raw_memory_xfer_partial): Change argument type
12994 from void * to gdb_byte *.
12995 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12997 2014-01-22 Doug Evans <dje@google.com>
12999 New gdbserver option --debug-format=timestamp.
13000 * NEWS: Mention it.
13002 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13004 * syscalls/s390x-linux.xml: New file.
13005 * syscalls/s390-linux.xml: New file.
13006 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13007 (XML_SYSCALL_FILENAME_S390X): Likewise.
13008 (op_svc): New enum value for SVC opcode.
13009 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13010 (s390_linux_get_syscall_number): New function.
13011 (s390_gdbarch_init): Register '*get_syscall_number' and the
13012 syscall xml file name.
13013 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13014 "s390-linux.xml" and "s390x-linux.xml".
13015 * NEWS: Announce new feature.
13017 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13019 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13021 2014-01-22 Pedro Alves <palves@redhat.com>
13023 * xtensa-config.c: Include defs.h.
13025 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13027 * common/common-utils.h: Add "ARI:" comment beside __func__
13030 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13032 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13033 documentation a bit.
13035 2014-01-21 Roland McGrath <mcgrathr@google.com>
13037 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13038 * configure: Regenerate.
13039 * aclocal.m4: Regenerate.
13040 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13041 New substituted variables.
13042 (install-strip): New target.
13043 (INSTALL_SCRIPT): New substituted variable.
13044 (FLAGS_TO_PASS): Add it.
13045 (install-only): Use $(INSTALL_SCRIPT) rather than
13046 $(INSTALL_PROGRAM) for gcore.
13048 2014-01-20 Tom Tromey <tromey@redhat.com>
13050 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13053 2014-01-20 Tom Tromey <tromey@redhat.com>
13055 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13056 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13057 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13058 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13059 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13060 (struct cmd_list_element) <flags>: Remove.
13061 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13062 doc_allocated>: New fields.
13063 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13065 * maint.c (maintenance_do_deprecate): Update.
13066 * top.c (execute_command): Update.
13068 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13070 * xtensa-linux-nat.c: Include asm/ptrace.h.
13072 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13074 * Makefile.in (SFILES): Add d-support.c.
13075 (COMMON_OBS): Add d-support.o.
13076 * d-lang.h (d_parse_symbol): Add comment, now defined in
13078 * d-lang.c (parse_call_convention)
13079 (parse_attributes, parse_function_types)
13080 (parse_function_args, parse_type, parse_identifier)
13081 (call_convention_p, d_parse_symbol): Move functions to ...
13082 * d-support.c: ... New file.
13084 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13086 * d-lang.h (d_parse_symbol): Add declaration.
13087 * d-lang.c (extract_identifiers)
13088 (extract_type_info): Remove functions.
13089 (parse_call_convention, parse_attributes)
13090 (parse_function_types, parse_function_args)
13091 (parse_type, parse_identifier, call_convention_p)
13092 (d_parse_symbol): New functions.
13093 (d_demangle): Use d_parse_symbol to demangle D symbols.
13095 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13097 * d-lang.h (struct builtin_d_type): New data type.
13098 (builtin_d_type): Add declaration.
13099 * d-lang.c (d_language_arch_info, build_d_types)
13100 (builtin_d_type): New functions.
13101 (enum d_primitive_types): New data type.
13102 (d_language_defn): Change c_language_arch_info to
13103 d_language_arch_info.
13104 (d_type_data): New static variable.
13105 (_initialize_d_language): Initialize d_type_data.
13107 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13109 * d-lang.h (d_main_name): Add declaration.
13110 * d-lang.c (d_main_name): New function.
13111 * symtab.c (find_main_name): Add call to d_main_name.
13113 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13115 * d-lang.c (d_language_defn): Change macro_expansion_c to
13116 macro_expansion_no.
13118 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13120 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13122 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13124 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13125 gdb_exception" declaration.
13126 * remote.c (getpkt_or_notif_sane): Likewise.
13128 2014-01-17 Doug Evans <dje@google.com>
13130 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13131 function, contents of dirnames_to_char_ptr_vec_append moved here.
13132 (delim_string_to_char_ptr_vec): New function.
13133 (dirnames_to_char_ptr_vec_append): Rewrite.
13134 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13136 2014-01-17 Doug Evans <dje@google.com>
13138 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13140 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13141 #include "common-utils.h".
13142 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13143 * common/vec.h (VEC_ASSERT_PASS): Update.
13144 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13145 (MACH_CHECK_ERROR): Update.
13147 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13149 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13151 * gdbarch.h: Regenerate.
13153 2014-01-16 Tom Tromey <tromey@redhat.com>
13155 * value.c (struct value) <regnum>: Move earlier.
13157 2014-01-16 Tom Tromey <tromey@redhat.com>
13159 * remote.c (extended_remote_create_inferior): Rename from
13160 extended_remote_create_inferior_1. Add "ops" argument. Remove
13161 old implementation.
13163 2014-01-16 Pedro Alves <palves@redhat.com>
13165 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13166 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13169 2014-01-16 Doug Evans <dje@google.com>
13171 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13173 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13175 * btrace.h (btrace_thread_flag): New.
13176 (struct btrace_thread_info) <flags>: New.
13177 * record-btrace.c (record_btrace_resume_thread)
13178 (record_btrace_find_thread_to_move, btrace_step_no_history)
13179 (btrace_step_stopped, record_btrace_start_replaying)
13180 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13181 (record_btrace_find_resume_thread): New.
13182 (record_btrace_resume, record_btrace_wait): Extend.
13183 (record_btrace_can_execute_reverse): New.
13184 (record_btrace_open): Fail in non-stop mode.
13185 (record_btrace_set_replay): Split into this, ...
13186 (record_btrace_stop_replaying): ... this, ...
13187 (record_btrace_clear_histories): ... and this.
13188 (init_record_btrace_ops): Init to_can_execute_reverse.
13189 * NEWS: Announce it.
13191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13193 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13194 (forward_target_decr_pc_after_break)
13195 (target_decr_pc_after_break): New.
13196 * target.c (forward_target_decr_pc_after_break)
13197 (target_decr_pc_after_break): New.
13198 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13199 instead of gdbarch_decr_pc_after_break.
13200 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13201 instead of gdbarch_decr_pc_after_break.
13202 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13203 instead of gdbarch_decr_pc_after_break.
13204 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13205 instead of gdbarch_decr_pc_after_break.
13206 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13207 instead of gdbarch_decr_pc_after_break.
13208 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13209 instead of gdbarch_decr_pc_after_break.
13211 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13213 * btrace.c: Include regcache.h.
13214 (btrace_add_pc): New.
13215 (btrace_enable): Call btrace_add_pc.
13216 (btrace_is_empty): New.
13217 * btrace.h (btrace_is_empty): New.
13218 * record-btrace.c (require_btrace, record_btrace_info): Call
13221 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13223 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13224 Support delta reads.
13225 (linux_disable_btrace): Change return type.
13226 * common/linux-btrace.h (linux_read_btrace): Change parameters
13227 and return type to allow error reporting. Update users.
13228 (linux_disable_btrace): Change return type. Update users.
13229 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13231 (btrace_error): New.
13232 (btrace_block) <begin>: Comment on BEGIN == 0.
13233 * btrace.c (btrace_compute_ftrace): Start from the end of
13235 (btrace_stitch_trace, btrace_clear_history): New.
13236 (btrace_fetch): Read delta trace, return if replaying.
13237 (btrace_clear): Move clear history code to btrace_clear_history.
13238 (parse_xml_btrace): Throw an error if parsing failed.
13239 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13240 and return type to allow error reporting.
13241 (target_read_btrace): Change parameters and return type to allow
13243 * target.c (target_read_btrace): Update.
13244 * remote.c (remote_read_btrace): Support delta reads. Pass
13246 * NEWS: Announce it.
13248 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13250 * record.h (record_btrace_frame_unwind)
13251 (record_btrace_tailcall_frame_unwind): New declarations.
13252 * dwarf2-frame: Include record.h
13253 (dwarf2_frame_cfa): Throw an error for btrace frames.
13254 * record-btrace.c: Include hashtab.h.
13255 (btrace_get_bfun_name): New.
13256 (btrace_call_history): Call btrace_get_bfun_name.
13257 (struct btrace_frame_cache): New.
13259 (bfcache_hash, bfcache_eq, bfcache_new): New.
13260 (btrace_get_frame_function): New.
13261 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13262 (record_btrace_frame_this_id): Compute own id.
13263 (record_btrace_frame_prev_register): Provide PC, throw_error
13264 for all other registers.
13265 (record_btrace_frame_sniffer): Detect btrace frames.
13266 (record_btrace_tailcall_frame_sniffer): New.
13267 (record_btrace_frame_dealloc_cache): New.
13268 (record_btrace_frame_unwind): Add new functions.
13269 (record_btrace_tailcall_frame_unwind): New.
13270 (_initialize_record_btrace): Allocate cache.
13271 * btrace.c (btrace_clear): Call reinit_frame_cache.
13272 * NEWS: Announce it.
13274 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13276 * record-btrace.c (record_btrace_set_replay)
13277 (record_btrace_goto_begin, record_btrace_goto_end)
13278 (record_btrace_goto): New.
13279 (init_record_btrace_ops): Initialize them.
13280 * NEWS: Announce it.
13282 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13284 * record-btrace.c (record_btrace_find_new_threads)
13285 (record_btrace_thread_alive): New.
13286 (init_record_btrace_ops): Initialize to_find_new_threads and
13289 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13291 * record-btrace.c (record_btrace_resume): New.
13292 (record_btrace_wait): New.
13293 (init_record_btrace_ops): Initialize to_wait and to_resume.
13295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13297 * record-btrace.c (record_btrace_xfer_partial)
13298 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13299 (record_btrace_allow_memory_access): New.
13300 (init_record_btrace_ops): Initialize new methods.
13301 * target.c (raw_memory_xfer_partial): Bail out if target reports
13302 that this memory is not available.
13304 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13306 * target.h (target_ops) <to_insert_breakpoint>
13307 <to_remove_breakpoint>: Add target_ops parameter.
13308 (forward_target_insert_breakpoint): New.
13309 (forward_target_remove_breakpoint): New.
13310 (memory_remove_breakpoint, memory_insert_breakpoint):
13311 Add target_ops parameter.
13312 * target.c (target_insert_breakpoint): Split into this and ...
13313 (forward_target_insert_breakpoint): ... this.
13314 (target_remove_breakpoint): Split into this and ...
13315 (forward_target_remove_breakpoint): ... this.
13316 (debug_to_insert_breakpoint): Add target_ops parameter.
13317 Call forward_target_insert_breakpoint.
13318 (debug_to_remove_breakpoint): Add target_ops parameter.
13319 Call forward_target_remove_breakpoint.
13320 (update_current_target): Do not inherit or default to_insert_breakpoint
13321 and to_remove_breakpoint.
13322 * corelow.c (ignore): Add target_ops parameter.
13323 * exec.c (ignore): Add target_ops parameter.
13324 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13325 Add target_ops parameter.
13326 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13327 Add target_ops parameter.
13328 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13329 Add target_ops parameter.
13330 * record-full.c (record_full_beneath_to_insert_breakpoint)
13331 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13332 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13333 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13334 (record_full_core_remove_breakpoint): Add target_ops parameter.
13336 (record_full_beneath_to_insert_breakpoint_ops)
13337 (record_full_beneath_to_remove_breakpoint_ops)
13338 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13339 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13340 tmp_to_remove_breakpoint_ops,
13341 record_full_beneath_to_insert_breakpoint_ops, and
13342 record_full_beneath_to_remove_breakpoint_ops.
13343 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13344 (m32r_remove_breakpoint): Add target_ops parameter.
13345 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13346 Add target_ops parameter.
13347 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13348 Add target_ops parameter.
13350 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13351 Markus Metzger <markus.t.metzger@intel.com>
13353 * record-btrace.c: Include frame-unwind.h.
13354 (record_btrace_frame_unwind_stop_reason)
13355 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13356 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13358 (init_record_btrace_ops): Install it.
13360 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13362 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13365 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13367 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13370 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13372 * frame-unwind.c: Include target.h.
13373 (frame_unwind_try_unwinder): New function with code from ...
13374 (frame_unwind_find_by_frame): ... here. New variable
13375 unwinder_from_target, call also target_get_unwinder)
13376 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13377 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13378 * target.h (struct target_ops): New fields to_get_unwinder and
13379 to_get_tailcall_unwinder.
13380 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13384 * record-btrace.c (record_btrace_fetch_registers)
13385 (record_btrace_store_registers)
13386 (record_btrace_to_prepare_to_store): New.
13387 (init_record_btrace_ops): Add the above.
13389 2014-01-16 Tom Tromey <tromey@redhat.com>
13391 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13392 * target.h (struct target_ops) <to_prepare_to_store>: Add
13394 (target_prepare_to_store): Add argument.
13395 * target.c (debug_to_prepare_to_store): Add argument.
13396 (update_current_target): Update.
13397 * remote.c (remote_prepare_to_store): Add 'self' argument.
13398 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13399 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13400 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13401 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13403 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13404 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13405 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13406 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13407 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13409 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13411 * btrace.h (replay) <replay>: New.
13412 (btrace_is_replaying): New.
13413 * btrace.c (btrace_clear): Free replay iterator.
13414 (btrace_is_replaying): New.
13415 * record-btrace.c (record_btrace_is_replaying): New.
13416 (record_btrace_info): Print insn number if replaying.
13417 (record_btrace_insn_history): Start at replay position.
13418 (record_btrace_call_history): Start at replay position.
13419 (init_record_btrace_ops): Init to_record_is_replaying.
13421 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13423 * record-btrace.c (record_btrace_insn_history_range): Include
13425 (record_btrace_insn_history_from): Adjust range.
13426 (record_btrace_call_history_range): Include
13428 (record_btrace_call_history_from): Adjust range.
13429 * NEWS: Announce changes.
13431 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13433 * record.h (enum record_print_flag)
13434 <record_print_indent_calls>: New.
13435 * record.c (get_call_history_modifiers): Recognize /c modifier.
13436 (_initialize_record): Document /c modifier.
13437 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13438 Reorder fields. Optionally indent the function name. Update
13440 * NEWS: Announce changes.
13442 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13444 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13446 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13448 * btrace.c (ftrace_new_function): Start counting at one.
13449 * record-btrace.c (record_btrace_info): Adjust number of calls
13451 * NEWS: Announce it.
13453 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13455 * record-btrace.c (btrace_call_history_insn_range): Print
13456 insn range as [begin, end].
13458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13460 * btrace.h (struct btrace_func_link): New.
13461 (enum btrace_function_flag): New.
13462 (struct btrace_inst): Rename to ...
13463 (struct btrace_insn): ...this. Update all users.
13464 (struct btrace_func) <ibegin, iend>: Remove.
13465 (struct btrace_func_link): New.
13466 (struct btrace_func): Rename to ...
13467 (struct btrace_function): ...this. Update all users.
13468 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13469 (number, level, flags>: New.
13470 (struct btrace_insn_iterator): Rename to ...
13471 (struct btrace_insn_history): ...this.
13473 (struct btrace_insn_iterator, btrace_call_iterator): New.
13474 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13475 (struct btrace_target_info) <begin, end, level>
13476 <insn_history, call_history>: New.
13477 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13478 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13479 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13480 (btrace_call_number, btrace_call_begin, btrace_call_end)
13481 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13482 (btrace_find_function_by_number, btrace_set_insn_history)
13483 (btrace_set_call_history): New.
13484 * btrace.c (btrace_init_insn_iterator)
13485 (btrace_init_func_iterator, compute_itrace): Remove.
13486 (ftrace_print_function_name, ftrace_print_filename)
13487 (ftrace_skip_file): Change
13488 parameter to const.
13489 (ftrace_init_func): Remove.
13490 (ftrace_debug): Use new btrace_function fields.
13491 (ftrace_function_switched): Also consider gaining and
13492 losing symbol information).
13493 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13494 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13495 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13497 (ftrace_new_function): Move. Remove debug print.
13498 (ftrace_update_lines, ftrace_update_insns): New.
13499 (ftrace_update_function): Check for call, ret, and jump.
13500 (compute_ftrace): Renamed to ...
13501 (btrace_compute_ftrace): ...this. Rewritten to compute call
13503 (btrace_fetch, btrace_clear): Updated.
13504 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13505 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13506 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13507 (btrace_call_number, btrace_call_begin, btrace_call_end)
13508 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13509 (btrace_find_function_by_number, btrace_set_insn_history)
13510 (btrace_set_call_history): New.
13511 * record-btrace.c (require_btrace): Use new btrace thread
13513 (record_btrace_info, btrace_insn_history)
13514 (record_btrace_insn_history, record_btrace_insn_history_range):
13515 Use new btrace thread info fields and new iterator.
13516 (btrace_func_history_src_line): Rename to ...
13517 (btrace_call_history_src_line): ...this. Use new btrace
13518 thread info fields.
13519 (btrace_func_history): Rename to ...
13520 (btrace_call_history): ...this. Use new btrace thread info
13521 fields and new iterator.
13522 (record_btrace_call_history, record_btrace_call_history_range):
13523 Use new btrace thread info fields and new iterator.
13525 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13527 * frame.h (frame_id_build_unavailable_stack_special): New.
13528 * frame.c (frame_id_build_unavailable_stack_special): New.
13530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13532 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13533 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13534 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13536 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13537 (i386_insn_is_jump, i386_jmp_p): New.
13538 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13539 insn_is_jump to gdbarch.
13540 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13541 * gdbarch.h: Regenerated.
13542 * gdbarch.c: Regenerated.
13543 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13544 (default_insn_is_jump): New.
13545 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13546 (default_insn_is_jump): New.
13548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13550 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13552 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13553 (btrace_read_type) <btrace_read_new>: Change to ...
13554 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13558 * common/linux-btrace.c (linux_read_btrace): Free trace from
13559 previous iteration.
13561 2014-01-15 Doug Evans <dje@google.com>
13563 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13566 2014-01-15 Tom Tromey <tromey@redhat.com>
13568 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13569 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13570 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13571 (set_objfile_main_name): New function.
13572 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13573 language_of_main>: New fields.
13574 (set_objfile_main_name): Declare.
13575 * symtab.c (find_main_name): Loop over objfiles to find the main
13577 (set_main_name): Now static.
13578 (get_main_info): Add comment.
13579 * symtab.h (set_main_name): Don't declare.
13581 2014-01-15 Tom Tromey <tromey@redhat.com>
13583 * symtab.c (main_progspace_key): New global.
13584 (struct main_info): New.
13585 (name_of_main, language_of_main): Remove.
13586 (get_main_info, main_info_cleanup): New function.
13587 (set_main_name, main_name, main_language): Use get_main_info.
13588 (_initialize_symtab): Initialize main_progspace_key.
13590 2014-01-15 Tom Tromey <tromey@redhat.com>
13592 * dbxread.c (process_one_symbol): Update.
13593 * dwarf2read.c (read_partial_die): Update.
13594 * symfile.c (set_initial_language): Call main_language.
13595 * symtab.c (language_of_main): Now static.
13596 (set_main_name): Add 'lang' parameter.
13597 (find_main_name): Update.
13598 (main_language): New function.
13599 (symtab_observer_executable_changed): Update.
13600 * symtab.h (set_main_name): Update.
13601 (language_of_main): Remove.
13602 (main_language): Declare.
13604 2014-01-15 Tom Tromey <tromey@redhat.com>
13606 * symfile.c (init_entry_point_info): Use new "initialized" field.
13608 * objfiles.h (struct entry_point) <initialized>: New field.
13609 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13610 (struct objfile) <ei>: ...here. Remove.
13611 * objfiles.c (entry_point_address_query): Update.
13613 2014-01-15 Tom Tromey <tromey@redhat.com>
13615 * objfiles.c (entry_point_address_query): Relocate entry point
13617 (objfile_relocate1): Do not relocate entry point address.
13618 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13619 <the_bfd_section_index>: New field.
13620 * symfile.c (init_entry_point_info): Find the entry point's
13623 2014-01-15 Tom Tromey <tromey@redhat.com>
13625 * solib-frv.c (enable_break): Use entry_point_address_query.
13627 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13629 * NEWS: Add note on improved process record-replay on
13630 arm*-linux* targets.
13632 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13634 * arm-tdep.c (enum arm_record_result): New enum.
13635 (arm_record_unsupported_insn): New function.
13636 (arm_record_coproc_data_proc): Removed.
13637 (thumb2_record_ld_st_multiple): New function.
13638 (thumb2_record_ld_st_dual_ex_tbb): New function.
13639 (thumb2_record_data_proc_sreg_mimm): New function.
13640 (thumb2_record_ps_dest_generic): New function.
13641 (thumb2_record_branch_misc_cntrl): New function.
13642 (thumb2_record_str_single_data): New function.
13643 (thumb2_record_ld_mem_hints): New function.
13644 (thumb2_record_ld_word): New function.
13645 (thumb2_record_lmul_lmla_div): New function.
13646 (thumb2_record_decode_insn_handler): New function.
13647 (decode_insn): Add thumb32 instruction handlers.
13649 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13651 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13652 (struct arm_linux_record_tdep): Declare.
13653 (arm_canonicalize_syscall): New function.
13654 (arm_all_but_pc_registers_record): New function.
13655 (arm_linux_syscall_record): New function.
13656 (arm_linux_init_abi): Add syscall recording constructs.
13657 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13658 decoding. (arm_record_coproc_data_proc): Update arm syscall
13660 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13661 <arm_syscall_record>: New field.
13662 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13665 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13667 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13668 register for push instruction recording.
13670 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13672 * arm-tdep.c (thumb_record_misc): Update to correct logical
13673 error while recording ldm, ldmia and pop instructions.
13675 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13677 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13679 2014-01-15 Pedro Alves <palves@redhat.com>
13681 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13682 (go32_resume, go32_fetch_registers, store_register)
13683 (go32_store_registers, go32_prepare_to_store)
13684 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13685 (go32_create_inferior, go32_can_run, go32_terminal_init)
13686 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13689 2014-01-15 Tom Tromey <tromey@redhat.com>
13691 * target.h (async_callback_ftype): New typedef.
13692 (struct target_ops) <to_async>: Use it.
13694 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13696 * python/py-value.c (get_field_type): Remove unnecessary curly
13697 braces for single-statement if block.
13699 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13701 * python/py-type.c (convert_field): Add missing empty line
13702 after declarations.
13704 2014-01-14 Doug Evans <dje@google.com>
13706 * symfile.h (expand_symtabs_matching): Renamed from
13707 expand_partial_symbol_names. Update prototype.
13708 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13709 * symfile.c (expand_symtabs_matching): Renamed from
13710 expand_partial_symbol_names. New args file_matcher, kind.
13711 Rename arg fun to symbol_matcher.
13712 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13713 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13714 ada_expand_partial_symbol_name.
13715 (ada_make_symbol_completion_list): Update to call
13716 expand_symtabs_matching.
13717 (ada_add_global_exceptions): Call expand_symtabs_matching.
13718 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13719 call map_symbol_filenames.
13720 * symtab.c (sources_info): Update to call map_symbol_filenames.
13721 (search_symbols): Call expand_symtabs_matching.
13722 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13723 (default_make_symbol_completion_list_break_on): Update to call
13724 expand_symtabs_matching.
13725 (make_source_files_completion_list): Update to call
13726 map_symbol_filenames.
13728 2014-01-14 Doug Evans <dje@google.com>
13730 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13731 (expand_symtabs_symbol_matcher_ftype): New typedef.
13732 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13733 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13734 * symfile.c (expand_partial_symbol_names): Update to use
13735 expand_symtabs_symbol_matcher_ftype.
13736 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13737 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13738 Arg name_matcher renamed to symbol_matcher.
13739 * psymtab.c (recursively_search_psymtabs): Update to use
13740 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13742 (expand_symtabs_matching_via_partial): Update to use
13743 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13744 Arg name_matcher renamed to symbol_matcher.
13746 2014-01-14 Doug Evans <dje@google.com>
13748 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13749 (map_partial_symbol_filenames): Ditto.
13750 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13751 (map_partial_symbol_filenames): Ditto.
13752 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13753 (map_partial_symbol_filenames): Ditto.
13754 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13755 (map_partial_symbol_filenames): Ditto.
13756 * symtab.c: Delete #include "psymtab.h".
13758 2014-01-14 Pedro Alves <palves@redhat.com>
13759 Tom Tromey <tromey@redhat.com>
13761 * infrun.c (use_displaced_stepping): Use find_record_target
13762 instead of RECORD_IS_USED.
13763 (adjust_pc_after_break): Use record_full_is_used instead of
13765 * record-btrace.c (record_btrace_open): Call record_preopen
13766 instead of checking RECORD_IS_USED.
13767 * record-full.c (record_full_shortname)
13768 (record_full_core_shortname): New globals.
13769 (record_full_is_used): New function.
13770 (find_full_open): Call record_preopen instead of checking
13772 (init_record_full_ops): Set the target's shortname to
13773 record_full_shortname.
13774 (init_record_full_core_ops): Set the target's shortname to
13775 record_full_core_shortname.
13776 * record-full.h (record_full_is_used): Declare.
13777 * record.c (find_record_target): Make extern.
13778 (record_preopen): New function.
13779 * record.h (RECORD_IS_USED): Delete macro.
13780 (find_record_target, record_preopen): Declare functions.
13782 2014-01-14 Yao Qi <yao@codesourcery.com>
13784 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13785 'len''s type to ULONGEST.
13786 (core_xfer_shared_libraries_aix): Likewise.
13787 * gdbarch.c, gdbarch.h: Regenerated.
13788 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13789 Change type of 'len' to ULONGEST.
13790 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13791 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13793 2014-01-14 Yao Qi <yao@codesourcery.com>
13795 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13796 type of 'len' to ULONGEST.
13797 (linux_xfer_osdata_processgroups): Likewise.
13798 (linux_xfer_osdata_threads): Likewise.
13799 (linux_xfer_osdata_fds): Likewise.
13800 (linux_xfer_osdata_isockets): Likewise.
13801 (linux_xfer_osdata_shm): Likewise.
13802 (linux_xfer_osdata_sem): Likewise.
13803 (linux_xfer_osdata_msg): Likewise.
13804 (linux_common_xfer_osdata): Likewise.
13805 (struct osdata_type) <getter>: Likewise.
13806 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13809 2014-01-14 Yao Qi <yao@codesourcery.com>
13811 * target.h (target_xfer_partial_ftype): Update.
13812 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13814 * aix-thread.c (aix_thread_xfer_partial): Change type of
13815 argument 'len' to ULONGEST.
13816 * auxv.c (procfs_xfer_auxv): Likewise.
13817 (ld_so_xfer_auxv): Likewise.
13818 (memory_xfer_auxv): Likewise.
13819 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13820 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13821 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13822 * corelow.c (core_xfer_partial): Likewise.
13823 * ctf.c (ctf_xfer_partial): Likewise.
13824 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13826 (darwin_read_dyld_info): Likewise.
13827 (darwin_xfer_partial): Likewise.
13828 * exec.c (section_table_xfer_memory_partial): Likewise.
13829 (exec_xfer_partial): Likewise.
13830 * exec.h (section_table_xfer_memory_partial): Update
13832 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13833 instead of plongest.
13834 (gnu_xfer_partial): Likewise.
13835 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13836 (ia64_hpux_xfer_solib_got): Likewise.
13837 (ia64_hpux_xfer_partial): Likewise.
13838 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13839 * inf-ptrace.c (inf_ptrace_xfer_partial):
13840 * inf-ttrace.c (inf_ttrace_xfer_partial):
13841 * linux-nat.c (linux_xfer_siginfo): Likewise.
13842 (linux_nat_xfer_partial): Likewise.
13843 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13844 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13845 * monitor.c (monitor_xfer_memory): Likewise.
13846 (monitor_xfer_partial): Likewise.
13847 * procfs.c (procfs_xfer_partial): Likewise.
13848 * record-full.c (record_full_xfer_partial): Likewise.
13849 (record_full_core_xfer_partial): Likewise.
13850 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13851 instead of plongest.
13852 (gdbsim_xfer_partial): Likewise.
13853 * remote.c (remote_xfer_partial): Likewise.
13854 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13855 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13857 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13858 (rs6000_xfer_shared_libraries): Likewise.
13859 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13860 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13861 (sparc_xfer_partial): Likewise.
13862 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13863 (spu_xfer_partial): Likewise.
13864 * spu-multiarch.c (spu_xfer_partial): Likewise.
13865 * target.c (target_read_live_memory): Likewise.
13866 (memory_xfer_live_readonly_partial): Likewise.
13867 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13868 (target_xfer_partial, default_xfer_partial): Likewise.
13869 (current_xfer_partial): Likewise.
13870 * tracepoint.c (tfile_xfer_partial): Likewise.
13871 * windows-nat.c (windows_xfer_memory): Likewise. Call
13872 pulongest instead of plongest.
13873 (windows_xfer_partial): Likewise.
13874 (windows_xfer_shared_libraries): Likewise.
13876 2014-01-14 Yao Qi <yao@codesourcery.com>
13878 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13879 target_xfer_partial_ftype.
13881 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13885 * valops.c (value_struct_elt_bitpos): New function
13886 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13887 object to 'None' if the field name is an empty string ("").
13888 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13889 attribute to look for a field when 'name' is 'None'.
13890 (get_field_type): New function
13892 2014-01-13 Doug Evans <dje@google.com>
13895 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13896 (try_open_dwop_file): Ditto.
13897 * gdb_bfd.c: #include "vec.h".
13898 (bfdp): New typedef.
13899 (struct gdb_bfd_data): New member included_bfds.
13900 (gdb_bfd_unref): Unref all included bfds.
13901 (gdb_bfd_record_inclusion): New function.
13902 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13904 2014-01-13 Tom Tromey <tromey@redhat.com>
13906 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13908 2014-01-13 Tom Tromey <tromey@redhat.com>
13910 * defs.h (use_windows): Remove.
13911 * gdb.c (main): Update.
13912 * main.c (captured_main, gdb_main): Update.
13913 * main.h (struct captured_main_args) <use_windows>: Remove.
13914 * top.c (use_windows): Remove.
13916 2014-01-13 Tom Tromey <tromey@redhat.com>
13918 * defs.h (deprecated_flush_hook): Remove.
13920 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13923 * linux-thread-db.c (try_thread_db_load): Add parameter
13924 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13925 (try_thread_db_load_from_pdir_1): Move it there from here.
13926 (try_thread_db_load_from_sdir): Update caller.
13927 (try_thread_db_load_from_dir): Move it there from here.
13929 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13931 * regformats/regdat.sh: Always rewrite the register file.
13933 2014-01-13 Pedro Alves <palves@redhat.com>
13935 * Makefile.in (CHECK_HEADERS): New variable.
13936 (check-headers:): New rule.
13938 2014-01-13 Tom Tromey <tromey@redhat.com>
13940 * cli/cli-setshow.c (do_set_command): Update.
13941 * defs.h (deprecated_set_hook): Remove.
13942 * top.c (deprecated_set_hook): Remove.
13944 2014-01-13 Pedro Alves <palves@redhat.com>
13946 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13947 the tracepoint if the PC is a pseudo-register.
13949 2014-01-13 Tom Tromey <tromey@redhat.com>
13951 * defs.h (XCALLOC): Remove.
13952 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13953 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13954 * dwarf2loc.c (allocate_piece_closure): Likewise.
13955 * elfread.c (elf_symfile_segments): Likewise.
13956 (elf_symfile_segments): Likewise.
13957 * gdbtypes.c (copy_type_recursive): Likewise.
13958 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13959 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13960 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13962 * mt-tdep.c (mt_gdbarch_init): Likewise.
13963 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13965 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13966 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13967 * registry.c (registry_alloc_data): Likewise.
13968 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13969 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13970 * serial.c (serial_fdopen_ops): Likewise.
13971 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13973 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13974 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13977 2014-01-13 Tom Tromey <tromey@redhat.com>
13979 * defs.h (XMALLOC): Remove.
13980 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13981 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13982 * cli-out.c (struct ui_out *): Likewise.
13983 * cli/cli-dump.c (add_dump_command): Likewise.
13984 (add_dump_command): Likewise.
13985 * complaints.c (get_complaints): Likewise.
13986 (find_complaint): Likewise.
13987 * dwarf2-frame.c (execute_cfa_program): Likewise.
13988 * dwarf2read.c (abbrev_table_read_table): Likewise.
13989 * gdbarch.sh: Likewise.
13990 * gdbarch.c: Rebuild.
13991 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13992 * interps.c (interp_new): Likewise.
13993 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13994 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13995 * mi/mi-console.c (mi_console_file_new): Likewise.
13996 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13997 * mi/mi-out.c (mi_out_new): Likewise.
13998 * mi/mi-parse.c (mi_parse): Likewise.
13999 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14000 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14001 * observer.c (xalloc_observer_list_node): Likewise.
14002 * regcache.c (regcache_xmalloc_1): Likewise.
14003 * reggroups.c (reggroup_new): Likewise.
14004 (_initialize_reggroup): Likewise.
14005 * registry.c (register_data_with_cleanup): Likewise.
14006 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14007 * ser-base.c (serial_ttystate): Likewise.
14008 * ser-mingw.c (make_pipe_state): Likewise.
14009 * ser-pipe.c (pipe_open): Likewise.
14010 * serial.c (serial_open): Likewise.
14011 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14012 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14013 (tui_alloc_win_info): Likewise.
14014 (tui_add_content_elements): Likewise.
14015 * tui/tui-file.c (tui_file_new): Likewise.
14016 * tui/tui-out.c (tui_out_new): Likewise.
14017 * ui-file.c (mem_file_new): Likewise.
14018 * ui-out.c (push_level): Likewise.
14019 (make_cleanup_ui_out_end): Likewise.
14020 (append_header_to_list): Likewise.
14021 (ui_out_new): Likewise.
14022 * user-regs.c (user_reg_add_builtin): Likewise.
14024 2014-01-13 Tom Tromey <tromey@redhat.com>
14026 * defs.h (XZALLOC): Remove.
14027 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14028 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14029 (get_ada_tasks_inferior_data): Likewise.
14030 * auto-load.c (get_auto_load_pspace_data): Likewise.
14031 * auxv.c (get_auxv_inferior_data): Likewise.
14032 * bfd-target.c (target_bfd_reopen): Likewise.
14033 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14034 (deprecated_insert_raw_breakpoint): Likewise.
14035 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14036 * corelow.c (core_open): Likewise.
14037 * darwin-nat.c (darwin_check_new_threads): Likewise.
14038 (darwin_attach_pid): Likewise.
14039 * dummy-frame.c (dummy_frame_push): Likewise.
14040 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14041 * dwarf2loc.c (allocate_piece_closure): Likewise.
14042 * elfread.c (elf_symfile_segments): Likewise.
14043 * eval.c (ptrmath_type_p): Likewise.
14044 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14045 * gdbtypes.c (alloc_type_arch): Likewise.
14046 (alloc_type_instance): Likewise.
14047 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14048 * inf-child.c (inf_child_can_use_agent): Likewise.
14049 * inflow.c (get_inflow_inferior_data): Likewise.
14050 * infrun.c (save_infcall_suspend_state): Likewise.
14051 * jit.c (jit_reader_load): Likewise.
14052 (get_jit_objfile_data): Likewise.
14053 (get_jit_program_space_data): Likewise.
14054 (jit_object_open_impl): Likewise.
14055 (jit_symtab_open_impl): Likewise.
14056 (jit_block_open_impl): Likewise.
14057 (jit_frame_sniffer): Likewise.
14058 * linux-fork.c (add_fork): Likewise.
14059 * maint.c (make_command_stats_cleanup): Likewise.
14060 * objfiles.c (get_objfile_pspace_data): Likewise.
14061 * opencl-lang.c (struct lval_closure): Likewise.
14062 * osdata.c (osdata_start_osdata): Likewise.
14063 * progspace.c (new_address_space): Likewise.
14064 (add_program_space): Likewise.
14065 * remote-sim.c (get_sim_inferior_data): Likewise.
14066 * sh-tdep.c (sh_gdbarch_init): Likewise.
14067 * skip.c (Ignore): Likewise.
14068 (skip_delete_command): Likewise.
14069 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14070 (library_list_start_library): Likewise.
14071 (solib_aix_current_sos): Likewise.
14072 * solib-darwin.c (get_darwin_info): Likewise.
14073 (darwin_current_sos): Likewise.
14074 * solib-dsbt.c (get_dsbt_info): Likewise.
14075 * solib-ia64-hpux.c (new_so_list): Likewise.
14076 (ia64_hpux_get_solib_linkage_addr): Likewise.
14077 * solib-spu.c (append_ocl_sos): Likewise.
14078 (spu_current_sos): Likewise.
14079 * solib-svr4.c (get_svr4_info): Likewise.
14080 (svr4_keep_data_in_core): Likewise.
14081 (library_list_start_library): Likewise.
14082 (svr4_default_sos): Likewise.
14083 (svr4_read_so_list): Likewise.
14084 * solib-target.c (library_list_start_library): Likewise.
14085 (solib_target_current_sos): Likewise.
14086 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14087 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14088 * symfile.c (default_symfile_segments): Likewise.
14089 * target-descriptions.c (tdesc_data_init): Likewise.
14090 (tdesc_create_reg): Likewise.
14091 (struct tdesc_type *): Likewise.
14092 (tdesc_create_vector): Likewise.
14093 (tdesc_set_struct_size): Likewise.
14094 (struct tdesc_type *): Likewise.
14095 (tdesc_free_feature): Likewise.
14096 (tdesc_create_feature): Likewise.
14097 * windows-nat.c (windows_add_thread): Likewise.
14098 (windows_make_so): Likewise.
14099 * xml-support.c (gdb_xml_body_text): Likewise.
14100 (gdb_xml_create_parser_and_cleanup): Likewise.
14101 (xml_process_xincludes): Likewise.
14102 * xml-syscall.c (allocate_syscalls_info): Likewise.
14103 (syscall_create_syscall_desc): Likewise.
14105 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14107 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14108 function, with code from i386_stap_parse_special_token.
14109 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14110 (i386_stap_parse_special_token): Move code to the two functions
14111 above; simplify it.
14113 2014-01-09 Pedro Alves <palves@redhat.com>
14114 Hui Zhu <hui@codesourcery.com>
14117 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14118 bp_err_string. Don't mark the location shlib_disabled if the
14119 error thrown wasn't a generic or memory error. Catch errors
14120 thrown while inserting breakpoints in overlayed code. Output
14121 error message of software breakpoints.
14122 * remote.c (remote_insert_breakpoint): If this breakpoint has
14123 target-side commands but this stub doesn't support Z0 packets,
14124 throw NOT_SUPPORTED_ERROR error.
14125 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14126 * target.h (target_insert_breakpoint): Extend comment.
14127 (target_insert_hw_breakpoint): Add comment.
14129 2014-01-08 Pedro Alves <palves@redhat.com>
14131 * remote.c (remote_add_thread): Add threads silently if starting
14133 (remote_notice_new_inferior): If in all-stop, and starting up,
14134 don't call notice_new_inferior.
14135 (get_current_thread): New function, factored out from ...
14136 (add_current_inferior_and_thread): ... this. Adjust.
14137 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14138 found any thread, then select the remote's current thread as GDB's
14139 current thread too.
14141 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14143 * NEWS: Create a new section for the next release branch.
14144 Rename the section of the current branch, now that it has
14147 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14149 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14150 * version.in: Bump version to 7.7.50.DATE-cvs.
14152 2014-01-08 Yao Qi <yao@codesourcery.com>
14154 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14155 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14156 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14158 2014-01-08 Yao Qi <yao@codesourcery.com>
14160 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14161 return value of bfd_get_filename to symbol_file_add_from_bfd.
14163 2014-01-08 Pierre Muller <muller@sourceware.org>
14166 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14167 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14168 to prim_record_mininal_symbol_and_info.
14169 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14170 in call to prim_record_minimal_symbol_and_info.
14171 (read_pe_exported_syms): Set index field of section_data.
14173 2014-01-07 Andrew Pinski <apinski@cavium.com>
14175 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14176 * features/aarch64.c: Regenerate.
14178 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14180 * target.c (return_null): Define.
14181 (update_current_target): Use it instead of return_zero for
14182 functions that return a pointer.
14184 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14186 * source.c (add_path): Fix check for duplicated paths in the previously
14189 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14191 * ada-lang.c: Remove duplicated include statements.
14192 * alphabsd-nat.c: Ditto.
14193 * amd64-darwin-tdep.c: Ditto.
14194 * amd64fbsd-nat.c: Ditto.
14195 * auto-load.c: Ditto.
14197 * breakpoint.c: Ditto.
14198 * dbxread.c: Ditto.
14199 * fork-child.c: Ditto.
14200 * gdb_usleep.c: Ditto.
14201 * i386-darwin-tdep.c: Ditto.
14202 * i386fbsd-nat.c: Ditto.
14204 * inferior.c: Ditto.
14205 * jv-lang.c: Ditto.
14206 * linux-nat.c: Ditto.
14207 * linux-tdep.c: Ditto.
14208 * m68kbsd-nat.c: Ditto.
14209 * m68klinux-nat.c: Ditto.
14210 * microblaze-tdep.c: Ditto.
14211 * mips-linux-tdep.c: Ditto.
14212 * mn10300-tdep.c: Ditto.
14213 * nto-tdep.c: Ditto.
14214 * opencl-lang.c: Ditto.
14216 * printcmd.c: Ditto.
14217 * regcache.c: Ditto.
14218 * remote-m32r-sdi.c: Ditto.
14220 * symfile.c: Ditto.
14222 * tilegx-linux-nat.c: Ditto.
14223 * tilegx-tdep.c: Ditto.
14224 * tracepoint.c: Ditto.
14226 * vaxbsd-nat.c: Ditto.
14227 * windows-nat.c: Ditto.
14228 * xtensa-tdep.c: Ditto.
14230 2014-01-07 Yao Qi <yao@codesourcery.com>
14232 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14234 2014-01-07 Yao Qi <yao@codesourcery.com>
14235 Joel Brobecker <brobecker@adacore.com>
14237 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14238 (pdc_write_regs): Likewise.
14239 (fetch_regs_kernel_thread): Likewise.
14240 (store_regs_kernel_thread): Likewise.
14242 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14244 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14245 tagged type objects to their actual type.
14247 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14249 * ada-valprint.c (print_field_values): Add "language" parameter.
14250 Update calls to print_field_values and print_variant_part.
14251 Pass new parameter "language" in call to val_print instead
14252 of "current_language". Replace call to ada_val_print by call
14254 (print_variant_part): Add "language" parameter.
14255 (ada_val_print_struct_union): Update call to print_field_values.
14257 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14259 * ada-valprint.c (ui_memcpy): Delete.
14260 (ada_print_floating): Update documentation. Add empty line
14261 between between function documentation and implementation.
14262 Delete variable "buffer". Use ui_file_xstrdup in place of
14263 ui_file_put. Minor adjustments following this change.
14265 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14267 * ada-valprint.c (ada_val_print_string): New function,
14268 extracted from ada_val_print_array.
14269 (ada_val_print_array): Replace extracted code by call
14270 to ada_val_print_string followed by a return. Move
14271 "else" branch to the function's top block.
14273 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14275 * ada-valprint.c (ada_val_print_array): Move implementation
14276 down. Rename parameter "offset" and "val" into "offset_aligned"
14277 and "original_value" respectively. Add parameter "offset".
14279 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14281 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14282 re-organizing the code. Change the "???" message printed
14283 when target type is a TYPE_CODE_UNDEF into
14284 "<ref to undefined type>".
14286 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14288 * ada-valprint.c (print_record): Delete, implementation inlined...
14289 (ada_val_print_struct_union): ... here. Remove call to
14290 ada_check_typedef in inlined implementation.
14292 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14294 * ada-valprint.c (ada_val_print_gnat_array): New function,
14295 extracted from ada_val_print_1;
14296 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14297 (ada_val_print_flt, ada_val_print_struct_union)
14298 (ada_val_print_ref): Likewise.
14299 (ada_val_print_1): Delete variables i and elttype.
14300 Replace extracted-out code by call to corresponding
14303 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14305 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14307 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14309 * ada-valprint.c (ada_val_print_1): Replace calls to
14310 ada_val_print_1 by calls to val_print.
14312 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14314 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14315 Update calls to self accordingly. Replace calls to c_val_print
14316 by calls to val_print.
14318 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14320 * ada-valprint.c (print_record): Delete declaration.
14321 (adjust_type_signedness, ada_val_print_1): Likewise.
14322 (ada_val_print): Move function implementation down.
14323 (print_variant_part, print_field_values, print_record):
14324 Move function implementation up.
14326 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14328 * python/py-type.c (typy_get_name): New function.
14329 (type_object_getset): Add entry for attribute "name".
14330 * NEWS: Add entry mentioning this new attribute.
14332 2014-01-07 Yao Qi <yao@codesourcery.com>
14334 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14337 2014-01-07 Yao Qi <yao@codesourcery.com>
14339 * gnu-nat.c (info_port_rights): Add qualifier const to
14342 2014-01-07 Yao Qi <yao@codesourcery.com>
14344 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14346 2014-01-07 Yao Qi <yao@codesourcery.com>
14348 * gnu-nat.c (make_inf) Update declaration.
14349 (make_inf): Make it static.
14350 (inf_set_traced): Likewise.
14351 (inf_port_to_thread, inf_task_died_status): Likewise.
14353 2014-01-07 Yao Qi <yao@codesourcery.com>
14355 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14357 2014-01-07 Yao Qi <yao@codesourcery.com>
14359 * gnu-nat.c (_initialize_gnu_nat): Declare.
14361 2014-01-07 Yao Qi <yao@codesourcery.com>
14363 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14365 (struct gdbarch_info) <byte_order>: Change type to
14367 <byte_order_for_code>: Likewise.
14368 * gdbarch.c, gdbarch.h: Regenerated.
14370 2014-01-06 Sasha Smundak <asmundak@google.com>
14372 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14374 2014-01-06 Tom Tromey <tromey@redhat.com>
14376 * doublest.c (convert_doublest_to_floatformat): Use const, not
14378 * somread.c (som_symtab_read): Likewise.
14380 2014-01-07 Hui Zhu <hui@codesourcery.com>
14382 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14383 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14384 (gdb_bfd_fopen): Ditto.
14385 (gdb_bfd_openr): Ditto.
14386 (gdb_bfd_openw): Ditto.
14387 (gdb_bfd_openr_iovec): Ditto.
14388 (gdb_bfd_fdopenr): Ditto.
14389 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14390 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14392 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14394 * symfile-mem.c (symbol_file_add_from_memory): Removed
14395 gdb_bfd_stash_filename.
14397 2014-01-03 Doug Evans <dje@google.com>
14399 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14402 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14404 Update year range in copyright notice of all files.
14406 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14408 * top.c (print_gdb_version): Set copyright year to 2014.
14410 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14412 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14414 For older changes see ChangeLog-2013.
14420 version-control: never